literal glossary entry w/underscore text overrun

Here should go questions about transforming XML with XSLT and FOP.
P4jjb
Posts: 32
Joined: Tue Dec 18, 2012 3:22 am

literal glossary entry w/underscore text overrun

Post by P4jjb »

Hi all,

In the PDF glossary, long <glossentry><literal>terms with hyphens line wrap, but long <glossentry><literal> terms with underscores do not line wrap and thus break into the term definition cell.
Has anyone else had this issue?
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: literal glossary entry w/underscore text overrun

Post by Radu »

Hi,

Sorry for the delay.
This is how the PDF processor (Apache FOP by default) handles consecutive character data, it breaks at "-" but not at "_". It seems to obey the following line breaking specification:

http://unicode.org/reports/tr14/

From what I've googled a suggestion would be to use non-showing characters like zero width spaces (U+200B) in the term content in order to allow the PDF processor to break the line at some point:

http://apache-fop.1065347.n5.nabble.com ... 10418.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
P4jjb
Posts: 32
Joined: Tue Dec 18, 2012 3:22 am

Re: literal glossary entry w/underscore text overrun

Post by P4jjb »

Thanks Radu, that did the trick.
Post Reply