Details
-
Bug
-
Status: Open
-
Resolution: Unresolved
-
0.20.5
-
None
-
None
-
Operating System: Linux
Platform: PC
-
36408
Description
If a <fo:block> node in the XSL:FO source given to FOP has the hyphenate="true"
attribute set, enabling hyphenation, and the contents of the block have lots of
consecutive digits stretching beyond the block boundary, like so:
<-- boundary The phone number is 12345678901234567890. |
then FOP splits the consecutive digits at the boundary, rendering the text like so:
<-- boundary The phone number is 1234567890123 4567890. |
I would prefer it to treat the entire digit sequence as a single,
non-hyphenatable word, causing it to render as follows:
<-- boundary The phone number is 12345678901234567890. |
However, I couldn't find out any way to configure FOP to do this, because it
uses the same hyphenation pattern format as TeX, and apparently TeX only takes
letters, not other symbols, into account when parsing the hyphenation rules.
Is there some kind of way I could stop FOP from splitting consecutive digits
onto separate rows?