README revision 341630
1# $FreeBSD: stable/11/tools/tools/locale/README 341630 2018-12-06 11:49:52Z yuripv $
2
3To generate the locales:
4
5Tools needed:
6	java (openjdk >= 8)
7	perl
8	converters/p5-Text-Iconv
9	devel/p5-Tie-IxHash
10	textproc/p5-XML-Parser
11
12Fetch CLDR data from: http://unicode.org/Public/cldr/.  You need all of the
13core.zip, keyboards.zip, and tools.zip.
14
15Extract:
16	mkdir -p ~/unicode/cldr/v33.0
17	cd ~/unicode/cldr/v33.0
18	unzip ~/core.zip ~/keyboards.zip ~/tools.zip
19
20Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest.
21
22Extract:
23	mkdir -p ~/unicode/UNIDATA/11.0.0
24	cd ~/unicode/UNIDATA/11.0.0
25	unzip ~/UCD.zip
26
27Either modify tools/tools/locales/etc/unicode.conf or export variables:
28	CLDRDIR=~/unicode/cldr/v33.0; export CLDRDIR
29	UNIDATADIR=~/unicode/UNIDATA/9.0.0; export UNIDATADIR
30
31Build the CLDR tools:
32	cd $CLDRDIR/tools/java
33	ant jar
34
35Run:
36	make POSIX
37	make
38	make install
39