[xep-support] preventing line breaks before punctuation
Geoff Levner
geoff at n-generate.com
Mon Oct 30 06:39:53 PST 2006
I agree with you, in theory. But in fact, XSLT is very poorly
equipped for dealing with this problem, which is essentially to
replace all occurrences of a regular expression in a string with
another regular expression. And to provide a full solution for the
problem -- which involves detecting cases where the space(s) and the
punctuation mark are separated by XML markup -- would call for some
truly gnarly XSLT code.
Geoff
On 30 Oct 2006, at 14:12, W. Eliot Kimber wrote:
> However, I also know that the line casting algorithms that any
> composition system will use are by their nature complex and it may
> not be easy to add something like a rule that says "if language is
> {any language that uses French typographic conventions} treat space
> before {relevant punctuation character} as non-breaking space".
>
> I would think that this is something that can be addressed fairly
> well in the initial FO generation process even if you'd rather not
> have to do so and doing so will likely slow down the transform
> (because you have to examine most, if not all, text nodes in the
> input document).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20061030/d2c3fb19/attachment.html>
More information about the Xep-support
mailing list