[xep-support] preventing line breaks before punctuation

Geoff Levner geoff at n-generate.com
Sat Oct 28 06:23:12 PDT 2006


Yes, they do.  But we want the formatting to work on straight text,  
without requiring the user to enter any special characters.  For now  
we solve the problem with an XSLT stylesheet which inserts non- 
breaking space characters wherever it finds a space followed by a  
colon, semicolon, question mark or exclamation point.  But that's a  
kludge: it's inefficient, and it won't work if the space is separated  
from the punctuation mark by an XML tag.  It seems to me this should  
be the rule for line breaking when the language is French, or there  
should at least be a way to make it the rule.

On 28 Oct 2006, at 14:35, Emmanuel Begue wrote:

> Hi,
>
> Wouldn't non-breakbable spaces work?
> <xsl:value-of select="'&#160;'"/>
>
> Regards,
> EB
>
>> -----Original Message-----
>> From: owner-xep-support at renderx.com
>> [mailto:owner-xep-support at renderx.com]On Behalf Of Geoff Levner
>> Sent: Saturday, October 28, 2006 1:29 PM
>> To: xep-support at renderx.com
>> Subject: [xep-support] preventing line breaks before punctuation
>>
>>
>> In French, punctuation characters like the colon and semicolon are
>> separated from the preceding word by a space.  (Par exemple : noter
>> l'espace.)  But the word and the colon following it should never be
>> put on separate lines.
>>
>> Does anybody know of a way to prevent XEP from inserting line breaks
>> before an isolated colon or semicolon?
>>
>> Thanks,
>> Geoff
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list