git: Add locale tool to generate "rollup" UTF-8 src file

John Marino marino at crater.dragonflybsd.org
Sun Aug 16 13:32:30 PDT 2015


commit 775a693d971d3b6e2e5b71b5566451b0c6d2da0d
Author: John Marino <draco at marino.st>
Date:   Sun Aug 16 21:06:50 2015 +0200

    Add locale tool to generate "rollup" UTF-8 src file
    
    The first version of the "common" UTF-8 file was hand-assembled by myself.
    This is obviously prone to error and is very hard to maintain (the
    previous incarnation was never maintained; not once after it was added).
    
    To address these issues, create a new tool (using cldr2def as inspiration)
    to create a composite UTF-8 source files using all available POSIX input
    from CLDR.  What can't be generated still comes from a manual fragment
    that is added to the common source file at the end.
    
    This allows periodic maintenance when CLDR issues new releases.  We are
    converging on using this composite (aka "rollup") file for all UTF-8
    locales.

Summary of changes:
 tools/tools/locale/Makefile                        |   19 +-
 .../tools/locale/etc/common.UTF-8.src              | 9815 +++++++++++---------
 tools/tools/locale/etc/en_COMMON.UTF-8.src         | 7250 ---------------
 tools/tools/locale/etc/manual-input.UTF-8          |  760 ++
 tools/tools/locale/tools/utf8-rollup.pl            |  373 +
 5 files changed, 6661 insertions(+), 11556 deletions(-)
 copy share/ctypedef/xx_Comm_US.UTF-8.src => tools/tools/locale/etc/common.UTF-8.src (56%)
 delete mode 100644 tools/tools/locale/etc/en_COMMON.UTF-8.src
 create mode 100644 tools/tools/locale/etc/manual-input.UTF-8
 create mode 100644 tools/tools/locale/tools/utf8-rollup.pl

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/775a693d971d3b6e2e5b71b5566451b0c6d2da0d


-- 
DragonFly BSD source repository


More information about the Commits mailing list