Bug 41443

Summary: [PATCH] FOP can't handle mixed-case hyphenation exceptions
Product: Fop - Now in Jira Reporter: Joe A. <joe-fop>
Component: generalAssignee: fop-dev
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 0.93   
Target Milestone: ---   
Hardware: Other   
OS: other   
Attachments: Patch to convert exceptions to lower-case

Description Joe A. 2007-01-23 09:59:14 UTC
FOP can't handle mixed-case words (for example German nouns) as hyphenation 
exceptions, for example "Dateiname" (file name) which is hyphenated 
as "Datein-ame" ("Datei-name" would be correct).

The words in the stoplist are mixed-case. However, when FOP checks if there's 
an hyphenation exception for a certain word (that is, it is in the stop list), 
all the characters of the word have already been converted to lowercase. 
Therefore mixed-case words in the stoplist cannot be found.

With the attached patch applied, FOP enters the exception words in lowercase 
into the stop list.
Comment 1 Joe A. 2007-01-23 10:00:58 UTC
Created attachment 19443 [details]
Patch to convert exceptions to lower-case
Comment 2 J.Pietschmann 2007-01-23 13:00:12 UTC
A better solution is to normalize the word using the character classes defined
in the hyphenation file, rather then doing a plain toLower.
Comment 3 Glenn Adams 2012-04-07 01:42:01 UTC
resetting P2 open bugs to P3 pending further review
Comment 4 Glenn Adams 2012-04-11 03:22:04 UTC
increase priority for bugs with a patch