Apache-fop: hyphenation for identifiers
Posted: Wed Dec 04, 2013 11:19 am
Hi,
since one use-case of oxygen is writing specifications in a dita-derived document-type we have lots of identifiers in our texts. For these the standrd hyphenation patterns are not sufficient.
For instance identifieres like THIS_IS_AN_IDENTIFIER or ThisIsAnIdentifier. Suitable hyphenatin points would obvioulsy be right after an underscore or after a lower-case letter followed by an upper-case letter. Is there an easy way to make apache-fop do this? (The hyphen pattern file for German with 14k+ entries is quite scary...)
Furthermore there are some identifiers without any patterns I could think of. Thus, I'd need a way to set the possible hyphenation positions explicitly. In Framemaker this can be done by adding a soft hyphen right in the word and in latex you can define the hyphenation for individual words.
Is there anything similar that is working with oxygen and Apache-fop?
Thanks for any advice,
Patrik
since one use-case of oxygen is writing specifications in a dita-derived document-type we have lots of identifiers in our texts. For these the standrd hyphenation patterns are not sufficient.
For instance identifieres like THIS_IS_AN_IDENTIFIER or ThisIsAnIdentifier. Suitable hyphenatin points would obvioulsy be right after an underscore or after a lower-case letter followed by an upper-case letter. Is there an easy way to make apache-fop do this? (The hyphen pattern file for German with 14k+ entries is quite scary...)
Furthermore there are some identifiers without any patterns I could think of. Thus, I'd need a way to set the possible hyphenation positions explicitly. In Framemaker this can be done by adding a soft hyphen right in the word and in latex you can define the hyphenation for individual words.
Is there anything similar that is working with oxygen and Apache-fop?
Thanks for any advice,
Patrik