Tweaks we need to do
Posted by mholmes on 09 May 2007 in Activity log
Working on the Encodage file, I noticed a problem we have to solve. In French, it is customary to leave a space before various punctuation marks, such as colons. When text is wrapped, this can result in the colon being wrapped to the next line, which is clearly wrong. The W3C recommends using non-breaking space characters instead of spaces in this context, but that's too much to ask of people producing content. However, we can use a the fn:replace()
function in XPath 2/XSLT 2.0 to insert the non-breaking spaces automatically. We just need a list of all contexts in which this space can occur.
This entry was posted by Martin and filed under Activity log.