Numberings for selected languages

Numberer implementations are available for several selected European languages, and you can use these as a prototype to write your own.

In Saxon-PE/EE these numberers are used for the given languages only if the JAR file containing the ICU libraries is not available on the classpath. (This is a transitional arrangement for Saxon 9.6, to ease transition to ICU. This mechanism will probably be dropped in a later release.) These numberers are not built in with Saxon-HE, but are available as open source code, and it is possible to configure them by writing a subclass of LocalizerFactory and registering it with the Configuration.

The languages available are:

code

Language

Class

da

Danish

net.sf.saxon.option.local.Numberer_da

de

German

net.sf.saxon.option.local.Numberer_de

en

English

net.sf.saxon.option.local.Numberer_en

fr

French

net.sf.saxon.option.local.Numberer_fr

fr-BE

French (Belgium)

net.sf.saxon.option.local.Numberer_frBE

it

Italian

net.sf.saxon.option.local.Numberer_it

nl

Dutch

net.sf.saxon.option.local.Numberer_nl

nl-BE

Flemish (Belgium)

net.sf.saxon.option.local.Numberer_nlBE

sv

Swedish

net.sf.saxon.option.local.Numberer_sv

For English, the language codes en-x-hyphen and en-x-nohyphen can be used to control whether numbers in the range 21 to 99 are spelled out with hyphen or space as a separator ("thirty-one" versus "thirty one"). By default, a hyphen is used for ordinal numbers, while a space is used for cardinal numbers.