Lennart Johansson commented on FOP-2044:

Highly appreciate the actions.

Tips: Personally I would vote for an extra hardcoded break as a "last effort" 
if nothing else helps, to ensure that text in a "table cell" NEVER overflows 
into another cell, destroying other texts, due to hyphenation problems. 
Actually I have also seen that XEP tries another type of last-effort solution, 
to decrease the space-between-characters on the troublesome line causing 
horizontally dense text, rather than overflowing a table-cell. If the last 
effort is successful, use an INFO: instead of a WARNING message.
Still it might be OK for "text-that-could-not-be-broken" to "slightly" overflow 
the text area into the page margin of a PDF-page (at least as long as it does 
not reach outside the page edge and disappears) - it is only in table cells 
that an overflow can destroys "other text".
However, maybe it is difficult for the FOP hyphenation code to know, if it is 
in a table cell or somewhere else, especially if if needs to consider also 
right-to-left text direction or similar?
Best Regards / Lennart

> [PATCH] Hyphenation of Uppercase Words, Combined with Underlines
> ----------------------------------------------------------------
>                 Key: FOP-2044
>                 URL: https://issues.apache.org/jira/browse/FOP-2044
>             Project: Fop
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 1.0
>         Environment: Operating System: All
> Platform: All
>            Reporter: Thomas Schraitle
>            Assignee: Robert Meyer
>             Fix For: trunk
>         Attachments: fop-trunk-jan02-2014-test-fop-2044.fo, 
> fop-trunk-jan02-2014.log, fop-trunk-jan92-2914-test-fop-2044.pdf, output.pdf, 
> patch.diff, patch2.diff, uppercase-hyphen.fo, uppercase-hyphen.pdf
> Consider the attached FO file which combines words of lowercase and uppercase 
> letters.
> As it is expected, the word "expected" is hyphenated correctly (example 2). 
> Also the uppercase "SUCCESS". Even combined with underlines before and after 
> the word (see example 4 and 5).
> However, if there is another word (like OCF_SUCCESS) the word isn't 
> hyphenated at all anymore. I don't know if this is an expected behaviour or 
> an issue in the hyphenation patterns. Interestingly, XEP from RenderX 
> hyphenates it as "OCF_SUC-CESS". As far as I know, they use also the TeX 
> hyphenation patterns as FOP.

This message was sent by Atlassian JIRA

Reply via email to