[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]


Just noted: why don't we use java.text.BreakIterator? It can break lines
as well as words and sentences, and it can do so in a localized way.
Plus, it's standard JDK 1.1. As long as we stay on the Java platform,
why not use the intelligence that's there? If we want user-defined
splitting points just based on the text, not additional structural
considerations, we can write own subclasses of BreakIterator. We'll also
need to write an own underlying CharacterIterator, but that should be trivial.

(Where to use it? Well, in FText and in Nile1Div implementations, obviously.)

- Benja