Hi, I am trying to implement a BreakIterator/Hyphenator for my script. The "hyphenator" is purely algorithmic, (i.e., it doesn't require any external dictionaries or tables). So I thought of reimplementing getLineBreak.
Although I have successfully subclassed BreakIterator_CTL, I am not able to return the right results. When I set the LineBreakResults.breakType to BreakType::Hyphenation, OOo (1.9.116) just crashes. The value in which it works is BreakType::WordBoundary, but this always breaks on a word boundary and never at the correct hyphenation point. I am assuming that it is because I don't correctly initialize the lbr.rHyphenatedWord. At this point, I am stuck. What value do I copy into the rHyphenatedWord ? In my script, there is no hyphen to denote a line break; the line just breaks after the grapheme. So do I insert ZWSP at the appropriate position or some other Unicode character ? How would I do that in code ? An example code to copy the word and insert the appropriate break character at any position would be greatly appreciated. Also if possible, a link to the API documentation for BreakIterator would be very helpful. Rajeev J Sebastian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
