Re: [xep-support] preventing line breaks before punctuation

From: Geoff Levner <geoff@n-generate.com>
Date: Mon Oct 30 2006 - 06:39:53 PST

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

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon Oct 30 06:49:07 2006

This archive was generated by hypermail 2.1.8 : Mon Oct 30 2006 - 06:49:08 PST