67
edits
Line 7: | Line 7: | ||
To regenerate the tables in nsUnicodePropertyData.cpp: | To regenerate the tables in nsUnicodePropertyData.cpp: | ||
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. | |||
The Unicode data files listed above should be together in one directory. | |||
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. | |||
From intl/unicharutil/util, run the command: | |||
perl ../tools/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 == |
edits