>Is it possible for us to specify that it is a single entity?
You need to provide a suitably instance of
http://download.java.net/jdk7/docs/api/java/util/Locale.html
. To supply an custom locale, install a custom
http://download.java.net/jdk7/docs/api/java/util/spi/LocaleServiceProvider.html
.
Supersedes: <Locale-20071217081455@ram.dialup.fu-berlin.de>
>it breaks words like P-2345 into P- and 2345 as two separate line
>entities. Is it possible for us to specify that it is a single entity?
Superseding my previous answer:
I am not sure about this.
There seems to be the possibility to install a custom
java.text.spi.BreakIteratorProvider, or a custom
java.util.spi.LocaleServiceProvider.
One of them possibly can be specified to regard »-« to be
an in-word character.
However, I have never done this and I don't know the
details.
Stefan Ram - 17 Dec 2007 07:58 GMT
>There seems to be the possibility to install a custom
>java.text.spi.BreakIteratorProvider, or a custom
>java.util.spi.LocaleServiceProvider.
See also:
http://java.sun.com/docs/books/tutorial/i18n/locale/services.html