[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: end-of-sentence full stop in XSL:FO?
From: Torsten Bronger <bronger@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Dec 2004 19:13:21 +0100
bronger
HallC6chen!

JBryant@xxxxxxxxx writes:

> Here's a link that deals with the issue. It gives a decent set of
> cases for programmatically identifying whether a period ends a
> sentence.
>
> http://bulba.sdsu.edu/~malouf/ling571/17handout.pdf

This is an interesting text; however, I need a markup solution.
The three best alternatives so far:

* 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.

TschC6,
Torsten.

--
Torsten Bronger, aquisgrana, europa vetus

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.