[ 
https://issues.apache.org/jira/browse/FOP-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13564391#comment-13564391
 ] 

Lennart Johansson commented on FOP-2044:
----------------------------------------

Holding my thumbs that it will be solved. Even if it can not find any 
applicable hyphenation rules, FOP needs to enforce some kind of hypenation to 
avoiding overflow into adjacent fields for long words in only 
UPPERCASE_AND_UNDERLINE. Whatever break is better than overflow. I guess one 
difficulty might also be to calculate how much space is needed, i.e. when a 
break must be forced. Good luck!

                
> [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
>         Attachments: output.pdf, patch.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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to