I18n:Updating Unicode version: Difference between revisions
Jump to navigation
Jump to search
Line 50: | Line 50: | ||
#Download the latest version of DerivedCoreProperties.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt. | #Download the latest version of DerivedCoreProperties.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt. | ||
#Copy this file to intl/unicharutil/tools/DerivedCoreProperties.txt in the mozilla source tree | #Copy this file to intl/unicharutil/tools/DerivedCoreProperties.txt in the mozilla source tree | ||
#Run <tt>perl genignorable.pl | perl ccmapbin.pl - gIgnorableCCMapExt ignorable</tt> in intl/unicharutil/tools. This creates a new version of gfx/thebes/src/ignorable.x-ccmap | #Run <tt>perl genignorable.pl | perl ccmapbin.pl - gIgnorableCCMapExt ignorable</tt> in intl/unicharutil/tools. This creates a new version of gfx/thebes/src/ignorable.x-ccmap | ||
Revision as of 16:33, 24 May 2010
This document describes the process of updating the files in the Mozilla codebase that are generated from Unicode data files.
Case conversion
- Download the latest version of UnicodeData.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
- Copy this file to intl/unicharutil/tools/UnicodeData-Latest.txt in the mozilla source tree
- Until bug 210501 is fixed you will have to edit UnicodeData-Latest.txt by hand and delete all the lines for codepoints above FFFF
- Run perl gencasetable.pl in intl/unichar/tools. This creates a new version of intl/unicharutil/src/casetable.h
Character properties
- Download the latest version of UnicodeData.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
- Copy this file to intl/unicharutil/tools/UnicodeData-Latest.txt in the mozilla source tree
- Run perl gencattable.pl in intl/unichar/tools. This creates a new version of intl/unicharutil/src/cattable.h
- The previous step will probably issue warnings like the following:
WARNING, Unicode Database now contain characters which we have not considered. change this program !!! Problem- U+010900 - U+010907 range
In this case, you will need to edit @range in gencattable.pl to include the new ranges
Normalization
Transliteration
- Download the latest version of UnicodeData.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
- Copy this file to intl/unicharutil/tools/UnicodeData-Latest.txt in the mozilla source tree
- Run perl gentransliterate.pl in intl/unichar/tools. This creates a new version of intl/unicharutil/tables/transliterate.properties
Bidi
- Download the latest version of BidiMirroring.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/BidiMirroring.txt
- Copy this file to intl/unicharutils/util/BidiMirroring.txt in the mozilla source tree
- Run perl gensymmtable.pl in intl/unicharutils/util. This creates a new version of intl/unicharutils/util/symmtable.h
- Download the latest version of UnicodeData.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
- Copy this file to intl/unicharutils/util/UnicodeData-Latest.txt in the mozilla source tree
- Run perl genbidicattable.pl in intl/unicharutils/util. This creates a new version of intl/unicharutils/util/bidicattable.h
- The previous step will probably issue warnings like the following:
WARNING, Unicode Database now contain characters which we have not considered. change this program !!! Problem- U+010900 - U+010907 range
In this case, you will need to edit @range in genbidicattable.pl to include the new ranges
Default ignorable characters
- Download the latest version of UnicodeData.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/UnicodeData.txt.
- Copy this file to intl/unicharutil/tools/UnicodeData-Latest.txt in the mozilla source tree
- Download the latest version of DerivedCoreProperties.txt from the Unicode website. The current version can be found at http://www.unicode.org/Public/UNIDATA/DerivedCoreProperties.txt.
- Copy this file to intl/unicharutil/tools/DerivedCoreProperties.txt in the mozilla source tree
- Run perl genignorable.pl | perl ccmapbin.pl - gIgnorableCCMapExt ignorable in intl/unicharutil/tools. This creates a new version of gfx/thebes/src/ignorable.x-ccmap
Other
Punctuation marks: See bug 375291 for more.