Page 1 of 1

literal glossary entry w/underscore text overrun

Posted: Tue Jan 22, 2013 11:17 pm
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?

Re: literal glossary entry w/underscore text overrun

Posted: Thu Feb 07, 2013 6:07 pm
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

Re: literal glossary entry w/underscore text overrun

Posted: Fri Feb 15, 2013 3:00 am
by P4jjb
Thanks Radu, that did the trick.