Bug 41443 - [PATCH] FOP can't handle mixed-case hyphenation exceptions
Summary: [PATCH] FOP can't handle mixed-case hyphenation exceptions
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.93
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 09:59 UTC by Joe A.
Modified: 2012-04-11 03:22 UTC (History)
0 users



Attachments
Patch to convert exceptions to lower-case (440 bytes, patch)
2007-01-23 10:00 UTC, Joe A.
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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