Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] end-of-sentence full stop in XSL:FO?

From: Ian Tindale <ian.tindale@--------->
To:
Date: 1/2/2005 1:50:00 PM
On Tue, 28 Dec 2004 19:13:21 +0100, Torsten Bronger
<bronger@xxxxxxxxxxxxxxxxxxxxx> wrote:
 
> * Treat every dot as an end-of-sentence unless it is immediately
>   followed by an <neos/> ("not end-of-sentence").
> 
> * Mark abbreviation dots, if followed by whitespace, with an
>   immediately following &#x200b; (zero width space).  [It would be
>   prettier to mark end-of-sentence dots this way, but this would be
>   much more invasive.]
> 
> * Mark abbreviations with <abbrev>e.g.</abbrev>.  The cleanest
>   solution, but in my special case *much* more difficult to
>   implement than the other two, because I have an input stream to
>   convert to XML, and when I see the dot it's already to late for
>   inserting a tag.

Find full-stops followed by spaces followed by a capital letter.
Admittedly, it won't find 'em all, but it might let most abbrev. cases
fall through unless they're somehow followed by a capitalisation.
Maybe the 'sentence' should be an accepted or even implicit inline fo
unit (at about the same level as the implicit inline glyph-stacking
line-building and line-breaking stage within a block)? It could have a
real-world use - imagine a user-agent that wants to offer the reader a
means to quickly 'skip' from sentence to sentence for some
focus-related reason?

-- 
Ian K Tindale
http://tindale.dyn.nu/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent