NavigationActions methods such as wordBreaksBackwards, wordBreaksForwards and so on use:
BreakIterator.getWordInstance()
which uses the default jvm locale but the text may not be written in that locale, for instance I know of many writers who are not native English speakers who write in English. It would be good to be able to specify the locale for the iterators used. Even better it would be good to be able to mark a section of text as using a specific locale, there are writers who write in multiple different languages.
The locale setting would need to be on a per area basis since there is no guarantee that the text for all areas in a jvm would be using the same locale.
NavigationActions methods such as wordBreaksBackwards, wordBreaksForwards and so on use:
BreakIterator.getWordInstance()which uses the default jvm locale but the text may not be written in that locale, for instance I know of many writers who are not native English speakers who write in English. It would be good to be able to specify the locale for the iterators used. Even better it would be good to be able to mark a section of text as using a specific locale, there are writers who write in multiple different languages.
The locale setting would need to be on a per area basis since there is no guarantee that the text for all areas in a jvm would be using the same locale.