I18n:Updating Unicode version: Difference between revisions

Jump to navigation Jump to search
Line 7: Line 7:
To regenerate the tables in nsUnicodePropertyData.cpp:
To regenerate the tables in nsUnicodePropertyData.cpp:


(1) Download the current Unicode data files from
Download the current Unicode data files from http://www.unicode.org/Public/UNIDATA/<br>NB: not all the files are actually needed; currently, we require
* UnicodeData.txt
* Scripts.txt
* EastAsianWidth.txt
* BidiMirroring.txt
* HangulSyllableType.txt
* ReadMe.txt (to record version/date of the UCD)
* Unihan_Variants.txt (from Unihan.zip)
though this may change if we find a need for additional properties.


        http://www.unicode.org/Public/UNIDATA/
The Unicode data files listed above should be together in one directory.


    NB: not all the files are actually needed; currently, we require
We also require the file http://www.unicode.org/Public/security/latest/xidmodifications.txt<br>This file should be in a sub-directory "security" immediately below the directory containing the other Unicode data files.
      - UnicodeData.txt
From intl/unicharutil/util, run the command:
      - Scripts.txt
perl ../tools/genUnicodePropertyData.pl /path/to/hb-common.h /path/to/UCD-directory
      - EastAsianWidth.txt
(where hb-common.h is found in the gfx/harfbuzz/src directory).
      - BidiMirroring.txt
      - HangulSyllableType.txt
      - ReadMe.txt (to record version/date of the UCD)
      - Unihan_Variants.txt (from Unihan.zip)
    though this may change if we find a need for additional properties.


    The Unicode data files listed above should be together in one directory.
This will generate (or overwrite!) the files
    We also require the file
* nsUnicodePropertyData.cpp
        http://www.unicode.org/Public/security/latest/xidmodifications.txt
* nsUnicodeScriptCodes.h
    This file should be in a sub-directory "security" immediately below the
in the current directory.
        directory containing the other Unicode data files.
 
(2) Run this tool using a command line of the form
 
        perl genUnicodePropertyData.pl \
                /path/to/hb-common.h  \
                /path/to/UCD-directory
 
    (where hb-common.h is found in the gfx/harfbuzz/src directory).
 
    This will generate (or overwrite!) the files
 
        nsUnicodePropertyData.cpp
        nsUnicodeScriptCodes.h
 
    in the current directory.


== Normalization ==
== Normalization ==
67

edits

Navigation menu