git: locales: Import unused FreeBSD tool to generate locales
John Marino
marino at crater.dragonflybsd.org
Thu Jul 23 13:44:43 PDT 2015
commit 252345ebec4e8957a908d352a149589ec3dfee09
Author: John Marino <draco at marino.st>
Date: Thu Jul 23 22:31:13 2015 +0200
locales: Import unused FreeBSD tool to generate locales
Five years ago, Edwin Groothuis put in a *LOT* of work to create a perl-
based tool that would use the latest Unicode release from The Unicode
Consortium <http://unicode.org> and the latest Unicode CLDR release from
the same organization, and generate all the locale defintions for numeric,
monetary, time, and messages, including generating a readable Makefile.
The tool has the ability to define the conversions from Unicode to lower
resolution formats. While there were some minor bugs in it, the tool now
works, but for reasons unknown to me right now, it was never imported into
FreeBSD, nor used to improve their localization 5 years ago.
I've generated the new locale definitions which will go in soon. Note
that the Unicode Consortium no longer provides the "posix" definitions
the tool reads, so these definitions are 3 years old. Supposedly they
provide tools to generate the POSIX definitions, but I haven't found them
yet. Once I do, I'll regenerate the locales with the latest CLDR.
Refer: https://wiki.freebsd.org/LocaleNewApproach
Summary of changes:
tools/tools/locale/Makefile | 55 +
tools/tools/locale/etc/charmaps.xml | 705 +
tools/tools/locale/etc/charmaps/ARMSCII-8.TXT | 263 +
tools/tools/locale/etc/charmaps/Big5.TXT | 13806 +++++
tools/tools/locale/etc/charmaps/Big5HKSCS.TXT | 18528 +++++++
tools/tools/locale/etc/charmaps/CP1131.TXT | 265 +
tools/tools/locale/etc/charmaps/CP1251.TXT | 276 +
tools/tools/locale/etc/charmaps/CP866.TXT | 277 +
tools/tools/locale/etc/charmaps/GB18030.TXT | 63490 +++++++++++++++++++++++
tools/tools/locale/etc/charmaps/GB2312.TXT | 7512 +++
tools/tools/locale/etc/charmaps/GBK.TXT | 21924 ++++++++
tools/tools/locale/etc/charmaps/ISCII-DEV.TXT | 450 +
tools/tools/locale/etc/charmaps/ISO8859-1.TXT | 305 +
tools/tools/locale/etc/charmaps/ISO8859-13.TXT | 301 +
tools/tools/locale/etc/charmaps/ISO8859-15.TXT | 305 +
tools/tools/locale/etc/charmaps/ISO8859-2.TXT | 305 +
tools/tools/locale/etc/charmaps/ISO8859-4.TXT | 305 +
tools/tools/locale/etc/charmaps/ISO8859-5.TXT | 305 +
tools/tools/locale/etc/charmaps/ISO8859-7.TXT | 310 +
tools/tools/locale/etc/charmaps/ISO8859-9.TXT | 309 +
tools/tools/locale/etc/charmaps/KOI8-R.TXT | 304 +
tools/tools/locale/etc/charmaps/KOI8-U.TXT | 312 +
tools/tools/locale/etc/charmaps/PT154.TXT | 293 +
tools/tools/locale/etc/charmaps/SJIS.TXT | 11429 ++++
tools/tools/locale/etc/charmaps/US-ASCII.TXT | 137 +
tools/tools/locale/etc/charmaps/charmaps.txt | 35 +
tools/tools/locale/etc/charmaps/eucCN.TXT | 7458 +++
tools/tools/locale/etc/charmaps/eucJP.TXT | 15022 ++++++
tools/tools/locale/etc/charmaps/eucKR.TXT | 17324 +++++++
tools/tools/locale/etc/la_LN.UTF-8.src | 68 +
tools/tools/locale/etc/unicode.conf | 2 +
tools/tools/locale/tools/UTF82encoding.pl | 78 +
tools/tools/locale/tools/changeoffset.pl | 30 +
tools/tools/locale/tools/charmaps.pm | 160 +
tools/tools/locale/tools/cldr2def.pl | 690 +
tools/tools/locale/tools/finalize | 39 +
tools/tools/locale/tools/unicode2src.pl | 144 +
tools/tools/locale/tools/whatis.pl | 29 +
38 files changed, 183550 insertions(+)
create mode 100644 tools/tools/locale/Makefile
create mode 100644 tools/tools/locale/etc/charmaps.xml
create mode 100644 tools/tools/locale/etc/charmaps/ARMSCII-8.TXT
create mode 100644 tools/tools/locale/etc/charmaps/Big5.TXT
create mode 100644 tools/tools/locale/etc/charmaps/Big5HKSCS.TXT
create mode 100644 tools/tools/locale/etc/charmaps/CP1131.TXT
create mode 100644 tools/tools/locale/etc/charmaps/CP1251.TXT
create mode 100644 tools/tools/locale/etc/charmaps/CP866.TXT
create mode 100644 tools/tools/locale/etc/charmaps/GB18030.TXT
create mode 100644 tools/tools/locale/etc/charmaps/GB2312.TXT
create mode 100644 tools/tools/locale/etc/charmaps/GBK.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISCII-DEV.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-1.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-13.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-15.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-2.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-4.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-5.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-7.TXT
create mode 100644 tools/tools/locale/etc/charmaps/ISO8859-9.TXT
create mode 100644 tools/tools/locale/etc/charmaps/KOI8-R.TXT
create mode 100644 tools/tools/locale/etc/charmaps/KOI8-U.TXT
create mode 100644 tools/tools/locale/etc/charmaps/PT154.TXT
create mode 100644 tools/tools/locale/etc/charmaps/SJIS.TXT
create mode 100644 tools/tools/locale/etc/charmaps/US-ASCII.TXT
create mode 100644 tools/tools/locale/etc/charmaps/charmaps.txt
create mode 100644 tools/tools/locale/etc/charmaps/eucCN.TXT
create mode 100644 tools/tools/locale/etc/charmaps/eucJP.TXT
create mode 100644 tools/tools/locale/etc/charmaps/eucKR.TXT
create mode 100644 tools/tools/locale/etc/la_LN.UTF-8.src
create mode 100644 tools/tools/locale/etc/unicode.conf
create mode 100755 tools/tools/locale/tools/UTF82encoding.pl
create mode 100755 tools/tools/locale/tools/changeoffset.pl
create mode 100644 tools/tools/locale/tools/charmaps.pm
create mode 100755 tools/tools/locale/tools/cldr2def.pl
create mode 100755 tools/tools/locale/tools/finalize
create mode 100755 tools/tools/locale/tools/unicode2src.pl
create mode 100755 tools/tools/locale/tools/whatis.pl
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/252345ebec4e8957a908d352a149589ec3dfee09
--
DragonFly BSD source repository
More information about the Commits
mailing list