--- Comment #2 from Glenn Adams <> 2012-04-17 16:54:32 UTC ---
the problem is in o.a.f.hyphenation.HyphenationTree#hyphenate, specifically in:

                if (!bEndOfLetters) {
                    word[i - iIgnoreAtBeginning] = (char)nc;
                } else {
                    return null;

when '_' is encountered after a letter (as opposed to beginning of word),
bEndOfLetters is set to true, which causes the hyphenate algorithm to bail out;

a better approach would be to divide the input word into segments separated by
non-letter characters, hyphenate each segment separately, then collect and
return the union of hyphenation points from these segments

would anyone like to submit a patch?

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to