[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: "W. Eliot Kimber" <ekimber@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 28 Dec 2004 11:39:53 -0600
sentence breaks
Torsten Bronger wrote:

Can you explain why you need to make this distinction? [...]


After a sentence, a bigger skip should be inserted (in certain
languages).  This distinction in made by TeX, and I write an XML to
LaTeX converter.  I need a way to preserve the end-of-sentence
information in the XML markup.  There are a couple of ways of
course, all of which more or less inelegant.

I just want to know whether there is already a way to express that,
so that I avoid re-inventing it.

As far as I know there is no FO-defined way to indicate the end of a sentence. I would expect any good FO implementation to do this automatically.


What FO engine are you using?

Per the other response to this thread, you could always detect the sentence breaks yourself and either insert the appropriate absolute space characters (say using a SAX filter on the input to the XSLT process) or generate a space leader with the appropriate spacing. The only issue there is that would tend to disallow breaking of lines at sentence boundaries, so that might not work.

Really, this is a function of the renderer implementation and not something that the creator of the FO data should have to worry about, just like hyphenation or kerning or other aspects of line composition.

Cheers,

Eliot
--
W. Eliot Kimber
Professional Services
Innodata Isogen
9390 Research Blvd, #410
Austin, TX 78759
(512) 372-8122

eliot@xxxxxxxxxxxxxxxxxxx
www.innodata-isogen.com

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.