Changeset View
Changeset View
Standalone View
Standalone View
head/tools/tools/locale/README
# $FreeBSD$ | # $FreeBSD$ | ||||
To generate the locales: | To generate the locales: | ||||
Tools needed: java, perl, devel/p5-Tie-IxHash, converters/p5-Text-Iconv and | Tools needed: | ||||
java (openjdk >= 8) | |||||
perl | |||||
converters/p5-Text-Iconv | |||||
devel/p5-Tie-IxHash | |||||
textproc/p5-XML-Parser | textproc/p5-XML-Parser | ||||
fetch cldr data from: http://cldr.unicode.org | Fetch CLDR data from: http://unicode.org/Public/cldr/. You need all of the | ||||
extract in a directory ~/unicode/cldr/v30.0.3 for example | core.zip, keyboards.zip, and tools.zip. | ||||
fetch unidata from http://www.unicode.org/Public/zipped/ (latest version) | |||||
extract in a directory ~/unicode/UNIDATA/9.0.0 for example | |||||
Note that the prebuilt cldr tools are not working on freebsd, it needs to | Extract: | ||||
be rebuilt: | mkdir -p ~/unicode/cldr/v33.0 | ||||
cd $CLDRDIR/tools/java | cd ~/unicode/cldr/v33.0 | ||||
ant build | unzip ~/core.zip ~/keyboards.zip ~/tools.zip | ||||
either modify tools/tools/locales/etc/unicode.conf or export variables: | Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest. | ||||
CLDRDIR="~/unicode/cldr/v30.0.3" | |||||
UNIDATADIR="~/unicode/UNIDATA/9.0.0" | |||||
run: | Extract: | ||||
mkdir -p ~/unicode/UNIDATA/11.0.0 | |||||
cd ~/unicode/UNIDATA/11.0.0 | |||||
unzip ~/UCD.zip | |||||
Either modify tools/tools/locales/etc/unicode.conf or export variables: | |||||
CLDRDIR=~/unicode/cldr/v33.0; export CLDRDIR | |||||
UNIDATADIR=~/unicode/UNIDATA/9.0.0; export UNIDATADIR | |||||
Build the CLDR tools: | |||||
cd $CLDRDIR/tools/java | |||||
ant jar | |||||
Run: | |||||
make POSIX | make POSIX | ||||
make | |||||
make install | make install |