Changeset View
Changeset View
Standalone View
Standalone View
tools/tools/locale/README
# $FreeBSD$ | # $FreeBSD$ | ||||
To generate the locales: | To generate the locales: | ||||
Tools needed: | Tools needed: | ||||
java (openjdk >= 8) | java (openjdk >= 8) | ||||
perl | perl | ||||
converters/p5-Text-Iconv | converters/p5-Text-Iconv | ||||
devel/p5-Tie-IxHash | devel/p5-Tie-IxHash | ||||
textproc/p5-XML-Parser | textproc/p5-XML-Parser | ||||
Fetch CLDR data from: http://unicode.org/Public/cldr/. You need all of the | 1. Fetch CLDR data from: http://unicode.org/Public/cldr/. You need all of the | ||||
core.zip, keyboards.zip, and tools.zip. | core.zip, keyboards.zip, and tools.zip. | ||||
2. Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest. | |||||
Extract: | 3. Extract: | ||||
mkdir -p ~/unicode/cldr/v33.0 | mkdir -p ~/unicode | ||||
cd ~/unicode/cldr/v33.0 | cd ~/unicode | ||||
unzip ~/core.zip ~/keyboards.zip ~/tools.zip | unzip ~/core.zip | ||||
unzip ~/keyboards.zip | |||||
Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest. | unzip ~/tools.zip | ||||
Extract: | |||||
mkdir -p ~/unicode/UNIDATA/11.0.0 | |||||
cd ~/unicode/UNIDATA/11.0.0 | |||||
unzip ~/UCD.zip | unzip ~/UCD.zip | ||||
4. Export variable: | |||||
Either modify tools/tools/locales/etc/unicode.conf or export variables: | UNIDIR=~/unicode; export UNIDIR | ||||
CLDRDIR=~/unicode/cldr/v33.0; export CLDRDIR | 5. Build the CLDR tools: | ||||
UNIDATADIR=~/unicode/UNIDATA/9.0.0; export UNIDATADIR | cd $UNIDIR/tools/java | ||||
Build the CLDR tools: | |||||
cd $CLDRDIR/tools/java | |||||
ant jar | ant jar | ||||
6. Build POSIX data files from CLDR data: | |||||
Run: | |||||
make POSIX | make POSIX | ||||
7. Build and install new locale data: | |||||
make | make | ||||
make install | make install |