| 1 |
* Copyright (C) 2016 and later: Unicode, Inc. and others. |
| 2 |
* License & terms of use: http://www.unicode.org/copyright.html |
| 3 |
* Copyright (C) 2004-2016, International Business Machines |
| 4 |
* Corporation and others. All Rights Reserved. |
| 5 |
* |
| 6 |
* file name: changes.txt |
| 7 |
* encoding: US-ASCII |
| 8 |
* tab size: 8 (not used) |
| 9 |
* indentation:4 |
| 10 |
* |
| 11 |
* created on: 2004may06 |
| 12 |
* created by: Markus W. Scherer |
| 13 |
|
| 14 |
* change log for Unicode updates |
| 15 |
|
| 16 |
For an overview, see https://unicode-org.github.io/icu/processes/unicode-update |
| 17 |
|
| 18 |
Notes: |
| 19 |
|
| 20 |
This log includes several command lines as used in the update process. |
| 21 |
Some of them include a console prompt with the present working directory (pwd) followed by a $ sign. |
| 22 |
Use a console window that is set to that directory, or cd to there, |
| 23 |
and then paste the command that follows the $ sign. |
| 24 |
|
| 25 |
Most command lines use environment variables to make them more portable across versions |
| 26 |
and machine configurations. When you set up a console window, copy & paste the `export` commands |
| 27 |
from near the top of the current section before pasting tool command lines. |
| 28 |
Adjust the environment variables to the current version and your machine setup. |
| 29 |
(The command lines are currently as used on Linux.) |
| 30 |
|
| 31 |
Syntax of this file: |
| 32 |
|
| 33 |
`***` - section heading |
| 34 |
`*` - sub heading |
| 35 |
`-` - 1st level bullet |
| 36 |
`+` - 2nd level bullet |
| 37 |
`=` - 1st level bullet |
| 38 |
`->` - "the previous things leads to...", OR a 2nd level bullet/item |
| 39 |
|
| 40 |
---------------------------------------------------------------------------- *** |
| 41 |
|
| 42 |
* New ISO 15924 script codes |
| 43 |
|
| 44 |
Normally, add new script codes as part of a Unicode update. |
| 45 |
See https://unicode-org.github.io/icu/processes/release/tasks/standards#update-script-code-enums |
| 46 |
and see the change logs below. |
| 47 |
|
| 48 |
---------------------------------------------------------------------------- *** |
| 49 |
|
| 50 |
Unicode 16.0 update for ICU 76 |
| 51 |
|
| 52 |
https://www.unicode.org/versions/Unicode16.0.0/ |
| 53 |
https://www.unicode.org/versions/beta-16.0.0.html |
| 54 |
https://www.unicode.org/Public/draft/ |
| 55 |
https://www.unicode.org/reports/uax-proposed-updates.html |
| 56 |
https://www.unicode.org/reports/tr44/tr44-33.html |
| 57 |
|
| 58 |
https://unicode-org.atlassian.net/browse/ICU-22707 Unicode 16 |
| 59 |
https://unicode-org.atlassian.net/browse/CLDR-17226 BRS Unicode 16 |
| 60 |
|
| 61 |
https://github.com/unicode-org/unicodetools/pull/774 delete the RecommendedSetGenerator |
| 62 |
|
| 63 |
https://github.com/unicode-org/unicodetools/issues/492 adjust cldr/*BreakTest generation for Unicode 15.1 |
| 64 |
|
| 65 |
* Command-line environment setup |
| 66 |
|
| 67 |
Markus: |
| 68 |
|
| 69 |
export UNIDATA_ROOT=~/unidata |
| 70 |
export UNICODE_DATA=$UNIDATA_ROOT/uni16/final |
| 71 |
export CLDR_SRC=~/cldr/uni/src |
| 72 |
export ICU_ROOT=~/icu/uni |
| 73 |
export ICU_SRC=$ICU_ROOT/src |
| 74 |
export ICU_OUT=$ICU_ROOT/dbg |
| 75 |
export ICUDT=icudt76b |
| 76 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 77 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 78 |
export LD_LIBRARY_PATH=$ICU_OUT/icu4c/lib |
| 79 |
export UNICODE_TOOLS=~/unitools/mine/src |
| 80 |
|
| 81 |
Elango: |
| 82 |
|
| 83 |
export UNIDATA_ROOT=~/oss/unidata |
| 84 |
export UNICODE_DATA=$UNIDATA_ROOT/uni16/final |
| 85 |
export CLDR_SRC=~/oss/cldr/mine/src |
| 86 |
export ICU_ROOT=~/oss/icu |
| 87 |
export ICU_SRC=$ICU_ROOT |
| 88 |
export ICU_OUT=$ICU_ROOT |
| 89 |
export ICUDT=icudt76b |
| 90 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 91 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 92 |
export LD_LIBRARY_PATH=$ICU_OUT/icu4c/lib |
| 93 |
export UNICODE_TOOLS=~/oss/unicodetools/mine/src |
| 94 |
|
| 95 |
*** Unicode version numbers |
| 96 |
- icu4c/source/data/makedata.mak |
| 97 |
- icu4c/source/common/unicode/uchar.h |
| 98 |
- com.ibm.icu.util.VersionInfo |
| 99 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 100 |
|
| 101 |
*** Configure: Build Unicode data for ICU4J |
| 102 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 103 |
so that the makefiles see the new version number. |
| 104 |
- FYI: The option that adds the additional Unicode data files for ICU4J is |
| 105 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data |
| 106 |
- Markus's version: |
| 107 |
cd $ICU_OUT/icu4c |
| 108 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data CXXFLAGS="-DU_USING_ICU_NAMESPACE=0 -Wimplicit-fallthrough" CPPFLAGS="-DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -fsanitize=bounds" LDFLAGS=-fsanitize=bounds ../../src/icu4c/source/runConfigureICU --enable-debug --disable-release Linux/clang --prefix=/usr/local/google/home/mscherer/icu/mine/inst/icu4c > config.out 2>&1 ; tail config.out |
| 109 |
- Elango's version (diff default C++ compiler & in-source build paths): |
| 110 |
cd $ICU_OUT/icu4c/source |
| 111 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data CXXFLAGS="-DU_USING_ICU_NAMESPACE=0 -Wimplicit-fallthrough" CPPFLAGS="-DU_NO_DEFAULT_INCLUDE_UTF_HEADERS=1 -fsanitize=bounds" LDFLAGS=-fsanitize=bounds ./runConfigureICU --enable-debug --disable-release Linux/gcc --prefix=/usr/local/google/home/elango/oss/icu/icu4c > config.out 2>&1 ; tail config.out |
| 112 |
|
| 113 |
*** data files & enums & parser code |
| 114 |
|
| 115 |
* download files |
| 116 |
- same as for the early Unicode Tools setup and data refresh: |
| 117 |
https://github.com/unicode-org/unicodetools/blob/main/docs/index.md |
| 118 |
https://github.com/unicode-org/unicodetools/blob/main/docs/inputdata.md |
| 119 |
- mkdir -p $UNICODE_DATA |
| 120 |
- download Unicode files into $UNICODE_DATA |
| 121 |
+ use an FTP client; anonymous FTP from www.unicode.org at /Public/draft etc. |
| 122 |
+ subfolders: emoji, idna, security, ucd, uca |
| 123 |
+ for pre-release (alpha, beta) data files: |
| 124 |
~ if one of us produces the alpha.zip or beta.zip collection of data files for publication, |
| 125 |
then we can use its contents directly (no FTP from unicode.org necessary) |
| 126 |
~ otherwise download from https://www.unicode.org/Public/draft/ |
| 127 |
~ you can omit or discard the UCD/charts/ and UCD/ucdxml/ files/folders |
| 128 |
~ you can omit or discard UCD/ucd/Unihan.zip |
| 129 |
+ alternate way of fetching files, if available: |
| 130 |
copy the files from a Unicode Tools workspace that is up to date with |
| 131 |
https://github.com/unicode-org/unicodetools |
| 132 |
and which might at this point be *ahead* of "Public" |
| 133 |
~ before the Unicode release copy files from "dev" subfolders, for example |
| 134 |
https://github.com/unicode-org/unicodetools/tree/main/unicodetools/data/ucd/dev |
| 135 |
+ for final-release data files, the source of truth is the files in |
| 136 |
https://www.unicode.org/Public/(version) [=UCD], |
| 137 |
https://www.unicode.org/Public/UCA/(version), |
| 138 |
https://www.unicode.org/Public/idna/(version), |
| 139 |
etc. |
| 140 |
- get the CLDR version of GraphemeBreakTest.txt from CLDR (if it has been updated there already) |
| 141 |
or from the UCD/cldr/ output folder of the Unicode Tools: |
| 142 |
From Unicode 12/CLDR 35/ICU 64 to Unicode 15.0/CLDR 43/ICU 73, |
| 143 |
CLDR used modified grapheme break rules. |
| 144 |
This might happen again. |
| 145 |
+ To check in the Unicode Tools workspace: |
| 146 |
~/unitools/mine/Generated$ meld UCD/16.0.0/auxiliary/*GraphemeBreakTest.txt UCD/16.0.0/cldr/GraphemeBreakTest-cldr.txt |
| 147 |
+ If different, and after copying into CLDR: |
| 148 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt icu4c/source/test/testdata |
| 149 |
or |
| 150 |
cp ~/unitools/mine/Generated/UCD/16.0.0/cldr/GraphemeBreakTest-cldr.txt icu4c/source/test/testdata/GraphemeBreakTest.txt |
| 151 |
cp ~/unitools/mine/Generated/UCD/16.0.0/cldr/GraphemeBreakTest-cldr.txt $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 152 |
cp ~/unitools/mine/Generated/UCD/16.0.0/cldr/GraphemeBreakTest-cldr.html $CLDR_SRC/common/properties/segments/GraphemeBreakTest.html |
| 153 |
+ We may need CLDR versions of WordBreakTest.txt and LineBreakTest.txt |
| 154 |
unless Unicode 16 and CLDR 46 eliminate their differences: |
| 155 |
unicodetools issue #492 |
| 156 |
|
| 157 |
* process and/or copy files |
| 158 |
- cd $ICU_SRC/tools/unicode |
| 159 |
py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 160 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 161 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 162 |
the tool has an --only_ppucd option: |
| 163 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 164 |
e.g. |
| 165 |
py/preparseucd.py $UNICODE_DATA --only_ppucd /tmp/ppucd.txt |
| 166 |
|
| 167 |
* new constants for new property values |
| 168 |
- preparseucd.py error: |
| 169 |
ValueError: missing uchar.h enum constants for some property values: |
| 170 |
[('blk', {'Garay', 'Tulu_Tigalari', 'Todhri', 'Sunuwar', 'Egyptian_Hieroglyphs_Ext_A', 'Kirat_Rai', 'Symbols_For_Legacy_Computing_Sup', 'Myanmar_Ext_C', 'Ol_Onal', 'Gurung_Khema'}), |
| 171 |
('sc', {'Gara', 'Onao', 'Todr', 'Krai', 'Tutg', 'Sunu', 'Gukh'}), |
| 172 |
('InSC', {'Reordering_Killer'})] |
| 173 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 174 |
(cd $UNIDATA_ROOT && diff -u uni15.1/final/ucd/PropertyValueAliases.txt uni16/alpha/UCD/ucd/PropertyValueAliases.txt | egrep '^[-+][a-zA-Z]') |
| 175 |
+age; 16.0 ; V16_0 |
| 176 |
+blk; Egyptian_Hieroglyphs_Ext_A ; Egyptian_Hieroglyphs_Extended_A |
| 177 |
+blk; Garay ; Garay |
| 178 |
+blk; Gurung_Khema ; Gurung_Khema |
| 179 |
+blk; Kirat_Rai ; Kirat_Rai |
| 180 |
+blk; Myanmar_Ext_C ; Myanmar_Extended_C |
| 181 |
+blk; Ol_Onal ; Ol_Onal |
| 182 |
+blk; Sunuwar ; Sunuwar |
| 183 |
+blk; Symbols_For_Legacy_Computing_Sup ; Symbols_For_Legacy_Computing_Supplement |
| 184 |
+blk; Todhri ; Todhri |
| 185 |
+blk; Tulu_Tigalari ; Tulu_Tigalari |
| 186 |
+InSC; Reordering_Killer ; Reordering_Killer |
| 187 |
-jg ; Teh_Marbuta_Goal ; Hamza_On_Heh_Goal |
| 188 |
+jg ; Teh_Marbuta_Goal ; Teh_Marbuta_Goal ; Hamza_On_Heh_Goal |
| 189 |
+sc ; Gara ; Garay |
| 190 |
+sc ; Gukh ; Gurung_Khema |
| 191 |
+sc ; Krai ; Kirat_Rai |
| 192 |
+sc ; Onao ; Ol_Onal |
| 193 |
+sc ; Sunu ; Sunuwar |
| 194 |
+sc ; Todr ; Todhri |
| 195 |
+sc ; Tutg ; Tulu_Tigalari |
| 196 |
+ copy new API constants from the preparseucd.py output into the .h/.java files, |
| 197 |
add/adjust comments, wrap lines, and set numeric values |
| 198 |
+ (ignore Age: no API constants for that) |
| 199 |
+ Block: uchar.h before UBLOCK_COUNT, |
| 200 |
UCharacter.UnicodeBlock IDs, UCharacter.UnicodeBlock objects |
| 201 |
+ Script: uscript.h & com.ibm.icu.lang.UScript |
| 202 |
+ for new scripts: fix expectedLong names |
| 203 |
in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 204 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 205 |
+ Indic_Syllabic_Category: uchar.h & UCharacter.IndicSyllabicCategory |
| 206 |
+ after adding new API constants, run preparseucd.py again |
| 207 |
|
| 208 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 209 |
(not strictly necessary for NOT_ENCODED scripts) |
| 210 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 211 |
|
| 212 |
* build ICU |
| 213 |
to make sure that there are no syntax errors |
| 214 |
|
| 215 |
$ICU_OUT/icu4c$ echo;echo; date; make -j20 tests &> out.txt ; tail -n 30 out.txt ; date |
| 216 |
|
| 217 |
* Bazel build process |
| 218 |
|
| 219 |
See https://unicode-org.github.io/icu/processes/unicode-update#bazel-build-process |
| 220 |
for an overview and for setup instructions. |
| 221 |
|
| 222 |
Consider running `bazelisk --version` outside of the $ICU_SRC folder |
| 223 |
to find out the latest `bazel` version, and |
| 224 |
copying that version number into the $ICU_SRC/.bazeliskrc config file. |
| 225 |
(Revert if you find incompatibilities, or, better, update our build & config files.) |
| 226 |
|
| 227 |
* generate data files |
| 228 |
|
| 229 |
- remember to define the environment variables |
| 230 |
(see the start of the section for this Unicode version) |
| 231 |
- cd $ICU_SRC |
| 232 |
- optional but not necessary: |
| 233 |
bazelisk clean |
| 234 |
or even |
| 235 |
bazelisk clean --expunge |
| 236 |
- build/bootstrap/generate new files: |
| 237 |
icu4c/source/data/unidata/generate.sh |
| 238 |
|
| 239 |
* run & fix ICU4C tests |
| 240 |
- Note: Some of the collation data and test data will be updated below, |
| 241 |
so at this time we might get some collation test failures. |
| 242 |
Ignore these for now. |
| 243 |
- Some properties are hardcoded in the ICU libraries because they apply to |
| 244 |
few characters or ranges, and are not expected to change often. |
| 245 |
They are tested at least in C++ intltest (e.g., against ppucd.txt). |
| 246 |
If these tests fail, then update the implementation and the tests. |
| 247 |
- update CLDR GraphemeBreakTest.txt |
| 248 |
(see the download section above about this file) |
| 249 |
cd ~/unitools/mine/Generated |
| 250 |
cp UCD/16.0.0/cldr/GraphemeBreakTest-cldr.txt $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 251 |
cp UCD/16.0.0/cldr/GraphemeBreakTest-cldr.html $CLDR_SRC/common/properties/segments/GraphemeBreakTest.html |
| 252 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt $ICU_SRC/icu4c/source/test/testdata |
| 253 |
- Robin or Andy helps with RBBI & spoof check test failures |
| 254 |
|
| 255 |
* collation: CLDR collation root, UCA DUCET |
| 256 |
|
| 257 |
- UCA DUCET goes into Mark's Unicode tools, |
| 258 |
and a tool-tailored version goes into CLDR, see |
| 259 |
https://github.com/unicode-org/unicodetools/blob/main/docs/uca/index.md |
| 260 |
|
| 261 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 262 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 263 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 264 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 265 |
(note removing the underscore before "Rules") |
| 266 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 267 |
- restore TODO diffs in UCARules.txt |
| 268 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 269 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 270 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 271 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 272 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 273 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 274 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/collate/src/test/resources/com/ibm/icu/dev/data |
| 275 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 276 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 277 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 278 |
|
| 279 |
- update CollationFCD.java: |
| 280 |
copy & paste the initializers of lcccIndex[] etc. |
| 281 |
from |
| 282 |
$ICU_SRC/icu4c/source/i18n/collationfcd.cpp |
| 283 |
to |
| 284 |
$ICU_SRC/icu4j/main/collate/src/main/java/com/ibm/icu/impl/coll/CollationFCD.java |
| 285 |
- generate data files, as above (generate.sh), now to pick up new collation data |
| 286 |
- rebuild ICU4C (make clean, make check, as usual) |
| 287 |
|
| 288 |
* Unihan collators |
| 289 |
https://github.com/unicode-org/unicodetools/blob/main/docs/unihan.md |
| 290 |
- run Unicode Tools GenerateUnihanCollators & GenerateUnihanCollatorFiles, |
| 291 |
check CLDR diffs, copy to CLDR, test CLDR, ... as documented there |
| 292 |
- generate ICU zh collation data |
| 293 |
WARNING: outdated, don't do this, follow the tools/cldr/cldr-to-icu/README.md file! |
| 294 |
--- Old text from here: |
| 295 |
instructions inspired by |
| 296 |
https://github.com/unicode-org/icu/blob/main/tools/cldr/cldr-to-icu/README.txt and |
| 297 |
https://github.com/unicode-org/icu/blob/main/icu4c/source/data/cldr-icu-readme.txt |
| 298 |
+ setup: |
| 299 |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 |
| 300 |
(didn't work without setting JAVA_HOME, |
| 301 |
nor with the Google default of /usr/local/buildtools/java/jdk |
| 302 |
[Google security limitations in the XML parser]) |
| 303 |
export TOOLS_ROOT=$ICU_SRC/tools |
| 304 |
export CLDR_DIR=$CLDR_SRC |
| 305 |
export CLDR_DATA_DIR=$CLDR_DIR |
| 306 |
(pointing to the "raw" data, not cldr-staging/.../production should be ok for the relevant files) |
| 307 |
cd "$TOOLS_ROOT/cldr/lib" |
| 308 |
./install-cldr-jars.sh "$CLDR_DIR" |
| 309 |
+ generate the files we need |
| 310 |
cd "$TOOLS_ROOT/cldr/cldr-to-icu" |
| 311 |
ant -f build-icu-data.xml -DoutDir=/tmp/icu -DoutputTypes=coll,transforms -DlocaleIdFilter='zh.*' |
| 312 |
+ diff |
| 313 |
cd $ICU_SRC |
| 314 |
meld icu4c/source/data/coll/zh.txt /tmp/icu/coll/zh.txt |
| 315 |
meld icu4c/source/data/translit/Hani_Latn.txt /tmp/icu/translit/Hani_Latn.txt |
| 316 |
+ copy into the source tree |
| 317 |
cd $ICU_SRC |
| 318 |
cp /tmp/icu/coll/zh.txt icu4c/source/data/coll/zh.txt |
| 319 |
cp /tmp/icu/translit/Hani_Latn.txt icu4c/source/data/translit/Hani_Latn.txt |
| 320 |
- rebuild ICU4C |
| 321 |
|
| 322 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 323 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 324 |
(the full ones have comments, useful for debugging) |
| 325 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 326 |
utility/MultithreadTest/TestCollators will fail as well; |
| 327 |
fix the conformance test before looking into the multi-thread test |
| 328 |
|
| 329 |
* update Java data files |
| 330 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 331 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 332 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 333 |
- $ICU_OUT/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 334 |
NOTE: If you get the error "No rule to make target 'out/build/icudt70l/uprops.icu'", |
| 335 |
you need to reconfigure with unicore data; see the "configure" line above. |
| 336 |
output: |
| 337 |
... |
| 338 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 339 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt76b |
| 340 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt76b |
| 341 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt76l.dat ./out/icu4j/icudt76b.dat -s ./out/build/icudt76l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt76b |
| 342 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt76b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt76b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt76b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt76b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt76b" |
| 343 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt76b/ |
| 344 |
mkdir -p /tmp/icu4j/main/shared/data |
| 345 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 346 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt76b/ |
| 347 |
mkdir -p /tmp/icu4j/main/shared/data |
| 348 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 349 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 350 |
- copy the binary data files into the ICU4J tree |
| 351 |
cd $ICU_OUT/icu4c/data/out/icu4j |
| 352 |
cp -v com/ibm/icu/impl/data/icudata/coll/* $ICU_SRC/icu4j/main/collate/src/main/resources/com/ibm/icu/impl/data/icudata/coll |
| 353 |
cp -v com/ibm/icu/impl/data/icudata/brkitr/* $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/icudata/brkitr |
| 354 |
cp -v com/ibm/icu/impl/data/icudata/confusables.cfu $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/icudata |
| 355 |
cp -v com/ibm/icu/impl/data/icudata/*.nrm $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/icudata |
| 356 |
cd com/ibm/icu/impl/data/icudata/ |
| 357 |
ls *.icu | egrep -v "cnvalias.icu" | awk '{print "cp " $0 " $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/icudata";}' | sh |
| 358 |
- The procedure above is very conservative: |
| 359 |
It refreshes only the parts of the ICU4J data that we think are affected by a Unicode data update. |
| 360 |
It avoids dealing with any other discrepancies |
| 361 |
between the source and generated data files. |
| 362 |
*If* instead we wanted to refresh *all* of the ICU4J data from ICU4C: |
| 363 |
$ICU_OUT/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 364 |
|
| 365 |
* refresh Java test .txt files |
| 366 |
- copy new .txt files into ICU4J's main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 367 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 368 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 369 |
cd ../../test/testdata |
| 370 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 371 |
cp -v $UNICODE_DATA/UCD/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 372 |
|
| 373 |
* run & fix ICU4J tests |
| 374 |
|
| 375 |
*** API additions |
| 376 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 377 |
|
| 378 |
*** CLDR numbering systems |
| 379 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 380 |
for example: |
| 381 |
~/unitools/mine/src$ diff -u unicodetools/data/ucd/15.1.0/extracted/DerivedGeneralCategory.txt unicodetools/data/ucd/dev/extracted/DerivedGeneralCategory.txt | grep '; Nd' | egrep '^\+' |
| 382 |
--> |
| 383 |
+10D40..10D49 ; Nd # [10] GARAY DIGIT ZERO..GARAY DIGIT NINE |
| 384 |
+116D0..116E3 ; Nd # [20] MYANMAR PAO DIGIT ZERO..MYANMAR EASTERN PWO KAREN DIGIT NINE |
| 385 |
+11BF0..11BF9 ; Nd # [10] SUNUWAR DIGIT ZERO..SUNUWAR DIGIT NINE |
| 386 |
+16130..16139 ; Nd # [10] GURUNG KHEMA DIGIT ZERO..GURUNG KHEMA DIGIT NINE |
| 387 |
+16D70..16D79 ; Nd # [10] KIRAT RAI DIGIT ZERO..KIRAT RAI DIGIT NINE |
| 388 |
+1CCF0..1CCF9 ; Nd # [10] OUTLINED DIGIT ZERO..OUTLINED DIGIT NINE |
| 389 |
+1E5F1..1E5FA ; Nd # [10] OL ONAL DIGIT ZERO..OL ONAL DIGIT NINE |
| 390 |
--> https://github.com/unicode-org/cldr/pull/3658 |
| 391 |
|
| 392 |
*** merge the Unicode update branch back onto the main branch |
| 393 |
- make sure that changes to Unicode tools are checked in: |
| 394 |
https://github.com/unicode-org/unicodetools |
| 395 |
|
| 396 |
---------------------------------------------------------------------------- *** |
| 397 |
|
| 398 |
Unicode 15.1 update for ICU 74 |
| 399 |
|
| 400 |
https://www.unicode.org/versions/Unicode15.1.0/ |
| 401 |
https://www.unicode.org/versions/beta-15.1.0.html |
| 402 |
https://www.unicode.org/Public/draft/ |
| 403 |
https://www.unicode.org/reports/uax-proposed-updates.html |
| 404 |
https://www.unicode.org/reports/tr44/tr44-31.html |
| 405 |
|
| 406 |
https://unicode-org.atlassian.net/browse/ICU-22404 Unicode 15.1 |
| 407 |
https://unicode-org.atlassian.net/browse/CLDR-16669 BRS Unicode 15.1 |
| 408 |
|
| 409 |
https://github.com/unicode-org/unicodetools/issues/492 adjust cldr/*BreakTest generation for Unicode 15.1 |
| 410 |
|
| 411 |
* Command-line environment setup |
| 412 |
|
| 413 |
Markus: |
| 414 |
|
| 415 |
export UNIDATA_ROOT=~/unidata |
| 416 |
export UNICODE_DATA=$UNIDATA_ROOT/uni15.1/final |
| 417 |
export CLDR_SRC=~/cldr/uni/src |
| 418 |
export ICU_ROOT=~/icu/uni |
| 419 |
export ICU_SRC=$ICU_ROOT/src |
| 420 |
export ICU_OUT=$ICU_ROOT/dbg |
| 421 |
export ICUDT=icudt74b |
| 422 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 423 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 424 |
export LD_LIBRARY_PATH=$ICU_OUT/icu4c/lib |
| 425 |
export UNICODE_TOOLS=~/unitools/mine/src |
| 426 |
|
| 427 |
Elango: |
| 428 |
|
| 429 |
export UNIDATA_ROOT=~/oss/unidata |
| 430 |
export UNICODE_DATA=$UNIDATA_ROOT/uni15.1/snapshot |
| 431 |
export CLDR_SRC=~/oss/cldr/mine/src |
| 432 |
export ICU_ROOT=~/oss/icu |
| 433 |
export ICU_SRC=$ICU_ROOT |
| 434 |
export ICU_OUT=$ICU_ROOT |
| 435 |
export ICUDT=icudt74b |
| 436 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 437 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 438 |
export LD_LIBRARY_PATH=$ICU_OUT/icu4c/lib |
| 439 |
export UNICODE_TOOLS=~/oss/unicodetools/mine/src |
| 440 |
|
| 441 |
*** Unicode version numbers |
| 442 |
- makedata.mak |
| 443 |
- uchar.h |
| 444 |
- com.ibm.icu.util.VersionInfo |
| 445 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 446 |
|
| 447 |
*** Configure: Build Unicode data for ICU4J |
| 448 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 449 |
so that the makefiles see the new version number. |
| 450 |
cd $ICU_OUT/icu4c |
| 451 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ../../../doconfig-clang-dbg.sh |
| 452 |
|
| 453 |
*** data files & enums & parser code |
| 454 |
|
| 455 |
* download files |
| 456 |
- same as for the early Unicode Tools setup and data refresh: |
| 457 |
https://github.com/unicode-org/unicodetools/blob/main/docs/index.md |
| 458 |
https://github.com/unicode-org/unicodetools/blob/main/docs/inputdata.md |
| 459 |
- mkdir -p $UNICODE_DATA |
| 460 |
- download Unicode files into $UNICODE_DATA |
| 461 |
+ new since Unicode 15.1: |
| 462 |
for the pre-release (alpha, beta) data files, |
| 463 |
download all of https://www.unicode.org/Public/draft/ |
| 464 |
(you can omit or discard the UCD/charts/ and UCD/ucdxml/ files/folders) |
| 465 |
+ if one of us produces the alpha.zip or beta.zip collection of data files for publication, |
| 466 |
then we can use its contents directly (no FTP from unicode.org necessary) |
| 467 |
+ for final-release data files, the source of truth are the files in |
| 468 |
https://www.unicode.org/Public/(version) [=UCD], |
| 469 |
https://www.unicode.org/Public/UCA/(version), |
| 470 |
https://www.unicode.org/Public/idna/(version), |
| 471 |
etc. |
| 472 |
+ use an FTP client; anonymous FTP from www.unicode.org at /Public/draft etc. |
| 473 |
+ subfolders: emoji, idna, security, ucd, uca |
| 474 |
+ whichever way you download the files: |
| 475 |
~ inside ucd: extract Unihan.zip to "here" (.../UCD/ucd/Unihan/*.txt), delete Unihan.zip |
| 476 |
~ split Unihan into single-property files |
| 477 |
~/unitools/mine/src$ py/splitunihan.py $UNICODE_DATA/UCD/ucd/Unihan |
| 478 |
~ FYI: for updating ICU, we do not actually need Unihan.zip contents |
| 479 |
+ alternate way of fetching files, if available: |
| 480 |
copy the files from a Unicode Tools workspace that is up to date with |
| 481 |
https://github.com/unicode-org/unicodetools |
| 482 |
and which might at this point be *ahead* of "Public" |
| 483 |
~ before the Unicode release copy files from "dev" subfolders, for example |
| 484 |
https://github.com/unicode-org/unicodetools/tree/main/unicodetools/data/ucd/dev |
| 485 |
- get the CLDR version of GraphemeBreakTest.txt from CLDR (if it has been updated there already) |
| 486 |
or from the UCD/cldr/ output folder of the Unicode Tools: |
| 487 |
From Unicode 12/CLDR 35/ICU 64 to Unicode 15.0/CLDR 43/ICU 73, |
| 488 |
CLDR used modified grapheme break rules. |
| 489 |
This might happen again. |
| 490 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt icu4c/source/test/testdata |
| 491 |
or |
| 492 |
cp ~/unitools/mine/Generated/UCD/15.1.0/cldr/GraphemeBreakTest-cldr.txt icu4c/source/test/testdata/GraphemeBreakTest.txt |
| 493 |
cp ~/unitools/mine/Generated/UCD/15.1.0/cldr/GraphemeBreakTest-cldr.txt $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 494 |
cp ~/unitools/mine/Generated/UCD/15.1.0/cldr/GraphemeBreakTest-cldr.html $CLDR_SRC/common/properties/segments/GraphemeBreakTest.html |
| 495 |
+ Done: figure out whether we need a CLDR version of LineBreakTest.txt: |
| 496 |
unicodetools issue #492 |
| 497 |
We should have had one, and instead rbbitst.cpp has "known issue" exception. |
| 498 |
Unicode 16 and CLDR 46 might get back to having the same behavior. |
| 499 |
- cp -v $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 500 |
+ done in ICU 76: modify preparseucd.py to copy this file |
| 501 |
|
| 502 |
* Note: Since Unicode 15.1, data files are no longer published with version suffixes |
| 503 |
even during the alpha or beta. |
| 504 |
Thus we no longer need steps & tools to remove those suffixes. |
| 505 |
(remove this note next time) |
| 506 |
|
| 507 |
* process and/or copy files |
| 508 |
- cd $ICU_SRC/tools/unicode |
| 509 |
py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 510 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 511 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 512 |
the tool has an --only_ppucd option: |
| 513 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 514 |
|
| 515 |
* new constants for new property values |
| 516 |
- preparseucd.py error: |
| 517 |
ValueError: missing uchar.h enum constants for some property values: [('blk', {'CJK_Ext_I'}), ('lb', {'VF', 'VI', 'AS', 'AK', 'AP'})] |
| 518 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 519 |
cd $UNIDATA_ROOT |
| 520 |
$ diff -u uni15.0/ucd/PropertyValueAliases.txt uni15.1/snapshot/UCD/ucd/PropertyValueAliases.txt | egrep '^[-+][a-zA-Z]' |
| 521 |
+age; 15.1 ; V15_1 |
| 522 |
+blk; CJK_Ext_I ; CJK_Unified_Ideographs_Extension_I |
| 523 |
+IDSU; N ; No ; F ; False |
| 524 |
+IDSU; Y ; Yes ; T ; True |
| 525 |
+ID_Compat_Math_Continue; N ; No ; F ; False |
| 526 |
+ID_Compat_Math_Continue; Y ; Yes ; T ; True |
| 527 |
+ID_Compat_Math_Start; N ; No ; F ; False |
| 528 |
+ID_Compat_Math_Start; Y ; Yes ; T ; True |
| 529 |
+lb ; AK ; Aksara |
| 530 |
+lb ; AP ; Aksara_Prebase |
| 531 |
+lb ; AS ; Aksara_Start |
| 532 |
+lb ; VF ; Virama_Final |
| 533 |
+lb ; VI ; Virama |
| 534 |
-> add new blocks to uchar.h before UBLOCK_COUNT |
| 535 |
use long property names for enum constants, |
| 536 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 537 |
cd $UNIDATA_ROOT |
| 538 |
$ diff -u uni15.0/ucd/Blocks.txt uni15.1/snapshot/UCD/ucd/Blocks.txt | egrep '^[-+][0-9A-Z]' |
| 539 |
+2EBF0..2EE4F; CJK Unified Ideographs Extension I |
| 540 |
(ignore blocks whose end code point changed) |
| 541 |
-> add new blocks to UCharacter.UnicodeBlock IDs |
| 542 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 543 |
replace public static final int \1_ID = \2; \3 |
| 544 |
-> add new blocks to UCharacter.UnicodeBlock objects |
| 545 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 546 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 547 |
-> add new line break values to uchar.h & UCharacter.LineBreak |
| 548 |
|
| 549 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 550 |
(not strictly necessary for NOT_ENCODED scripts) |
| 551 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 552 |
|
| 553 |
* build ICU |
| 554 |
to make sure that there are no syntax errors |
| 555 |
|
| 556 |
$ICU_OUT/icu4c$ echo;echo; date; make -j7 tests &> out.txt ; tail -n 30 out.txt ; date |
| 557 |
|
| 558 |
* update spoof checker UnicodeSet initializers: |
| 559 |
inclusionPat & recommendedPat in i18n/uspoof.cpp |
| 560 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 561 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 562 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 563 |
- run the tool (no special environment variables needed) |
| 564 |
cd $UNICODE_TOOLS |
| 565 |
mvn -s ~/.m2/settings.xml compile exec:java -Dexec.mainClass="org.unicode.text.tools.RecommendedSetGenerator" \ |
| 566 |
-Dexec.args="" -am -pl unicodetools -DCLDR_DIR=$(cd ../../../cldr/mine/src ; pwd) -DUNICODETOOLS_REPO_DIR=$(pwd) |
| 567 |
- copy & paste from the Console output into the .cpp & .java files |
| 568 |
|
| 569 |
* check hardcoded IDS_Unary_Operator |
| 570 |
- new in Unicode 15.1, hardcoded because trivial, and unlikely to change |
| 571 |
- check that it has not changed: |
| 572 |
(cd $UNICODE_DATA && grep -r --include=PropList.txt IDS_Unary_Operator) |
| 573 |
- if it has changed, then update the implementation and the tests |
| 574 |
- Since ICU 75, this property is tested in C++ intltest against ppucd.txt. |
| 575 |
|
| 576 |
* check hardcoded ID_Compat_Math_Start & ID_Compat_Math_Continue |
| 577 |
- new in Unicode 15.1, hardcoded because trivial, and unlikely to change |
| 578 |
- check that they have not changed: |
| 579 |
(cd $UNICODE_DATA && grep -r --include=PropList.txt ID_Compat_Math) |
| 580 |
- if they have changed, then update the implementation and the tests |
| 581 |
- Since ICU 75, these properties are tested in C++ intltest against ppucd.txt. |
| 582 |
|
| 583 |
* Bazel build process |
| 584 |
|
| 585 |
See https://unicode-org.github.io/icu/processes/unicode-update#bazel-build-process |
| 586 |
for an overview and for setup instructions. |
| 587 |
|
| 588 |
Consider running `bazelisk --version` outside of the $ICU_SRC folder |
| 589 |
to find out the latest `bazel` version, and |
| 590 |
copying that version number into the $ICU_SRC/.bazeliskrc config file. |
| 591 |
(Revert if you find incompatibilities, or, better, update our build & config files.) |
| 592 |
|
| 593 |
* generate data files |
| 594 |
|
| 595 |
- remember to define the environment variables |
| 596 |
(see the start of the section for this Unicode version) |
| 597 |
- cd $ICU_SRC |
| 598 |
- optional but not necessary: |
| 599 |
bazelisk clean |
| 600 |
or even |
| 601 |
bazelisk clean --expunge |
| 602 |
- build/bootstrap/generate new files: |
| 603 |
icu4c/source/data/unidata/generate.sh |
| 604 |
|
| 605 |
* Since Unicode 15.1, the UTS #46 data derivation no longer looks at the decompositions (NFD). |
| 606 |
These characters are now just valid, no longer disallowed_STD3_valid. |
| 607 |
Remove special handling of U+2260, U+226E, U+226F (isNonASCIIDisallowedSTD3Valid()) |
| 608 |
from uts46.cpp & UTS46.java, |
| 609 |
and special test code from uts46test.cpp & UTS46Test.java. |
| 610 |
(remove this section next time) |
| 611 |
|
| 612 |
* run & fix ICU4C tests |
| 613 |
- Note: Some of the collation data and test data will be updated below, |
| 614 |
so at this time we might get some collation test failures. |
| 615 |
Ignore these for now. |
| 616 |
- fix Unicode Tools class Segmenter to generate correct *BreakTest.txt files |
| 617 |
- update CLDR GraphemeBreakTest.txt |
| 618 |
cd ~/unitools/mine/Generated |
| 619 |
cp UCD/15.1.0/cldr/GraphemeBreakTest-cldr.txt $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 620 |
cp UCD/15.1.0/cldr/GraphemeBreakTest-cldr.html $CLDR_SRC/common/properties/segments/GraphemeBreakTest.html |
| 621 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt $ICU_SRC/icu4c/source/test/testdata |
| 622 |
- Robin or Andy helps with RBBI & spoof check test failures |
| 623 |
|
| 624 |
* collation: CLDR collation root, UCA DUCET |
| 625 |
|
| 626 |
- UCA DUCET goes into Mark's Unicode tools, |
| 627 |
and a tool-tailored version goes into CLDR, see |
| 628 |
https://github.com/unicode-org/unicodetools/blob/main/docs/uca/index.md |
| 629 |
|
| 630 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 631 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 632 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 633 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 634 |
(note removing the underscore before "Rules") |
| 635 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 636 |
- restore TODO diffs in UCARules.txt |
| 637 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 638 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 639 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 640 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 641 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 642 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 643 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 644 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 645 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 646 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 647 |
|
| 648 |
- generate data files, as above (generate.sh), now to pick up new collation data |
| 649 |
- update CollationFCD.java: |
| 650 |
copy & paste the initializers of lcccIndex[] etc. from |
| 651 |
ICU4C/source/i18n/collationfcd.cpp to |
| 652 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 653 |
- rebuild ICU4C (make clean, make check, as usual) |
| 654 |
|
| 655 |
* Unihan collators |
| 656 |
https://github.com/unicode-org/unicodetools/blob/main/docs/unihan.md |
| 657 |
- run Unicode Tools GenerateUnihanCollators & GenerateUnihanCollatorFiles, |
| 658 |
check CLDR diffs, copy to CLDR, test CLDR, ... as documented there |
| 659 |
- generate ICU zh collation data |
| 660 |
instructions inspired by |
| 661 |
https://github.com/unicode-org/icu/blob/main/tools/cldr/cldr-to-icu/README.txt and |
| 662 |
https://github.com/unicode-org/icu/blob/main/icu4c/source/data/cldr-icu-readme.txt |
| 663 |
+ setup: |
| 664 |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 |
| 665 |
(didn't work without setting JAVA_HOME, |
| 666 |
nor with the Google default of /usr/local/buildtools/java/jdk |
| 667 |
[Google security limitations in the XML parser]) |
| 668 |
export TOOLS_ROOT=$ICU_SRC/tools |
| 669 |
export CLDR_DIR=$CLDR_SRC |
| 670 |
export CLDR_DATA_DIR=$CLDR_DIR |
| 671 |
(pointing to the "raw" data, not cldr-staging/.../production should be ok for the relevant files) |
| 672 |
cd "$TOOLS_ROOT/cldr/lib" |
| 673 |
./install-cldr-jars.sh "$CLDR_DIR" |
| 674 |
+ generate the files we need |
| 675 |
cd "$TOOLS_ROOT/cldr/cldr-to-icu" |
| 676 |
ant -f build-icu-data.xml -DoutDir=/tmp/icu -DoutputTypes=coll,transforms -DlocaleIdFilter='zh.*' |
| 677 |
+ diff |
| 678 |
cd $ICU_SRC |
| 679 |
meld icu4c/source/data/coll/zh.txt /tmp/icu/coll/zh.txt |
| 680 |
meld icu4c/source/data/translit/Hani_Latn.txt /tmp/icu/translit/Hani_Latn.txt |
| 681 |
+ copy into the source tree |
| 682 |
cd $ICU_SRC |
| 683 |
cp /tmp/icu/coll/zh.txt icu4c/source/data/coll/zh.txt |
| 684 |
cp /tmp/icu/translit/Hani_Latn.txt icu4c/source/data/translit/Hani_Latn.txt |
| 685 |
- rebuild ICU4C |
| 686 |
|
| 687 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 688 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 689 |
(the full ones have comments, useful for debugging) |
| 690 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 691 |
utility/MultithreadTest/TestCollators will fail as well; |
| 692 |
fix the conformance test before looking into the multi-thread test |
| 693 |
|
| 694 |
* update Java data files |
| 695 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 696 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 697 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 698 |
- $ICU_OUT/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 699 |
NOTE: If you get the error "No rule to make target 'out/build/icudt70l/uprops.icu'", |
| 700 |
you need to reconfigure with unicore data; see the "configure" line above. |
| 701 |
output: |
| 702 |
... |
| 703 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 704 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt74b |
| 705 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt74b |
| 706 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt74l.dat ./out/icu4j/icudt74b.dat -s ./out/build/icudt74l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt74b |
| 707 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt74b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt74b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt74b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt74b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt74b" |
| 708 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt74b/ |
| 709 |
mkdir -p /tmp/icu4j/main/shared/data |
| 710 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 711 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt74b/ |
| 712 |
mkdir -p /tmp/icu4j/main/shared/data |
| 713 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 714 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 715 |
- copy the binary data files into the ICU4J tree |
| 716 |
cd $ICU_OUT/icu4c/data/out/icu4j |
| 717 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/$ICUDT/coll |
| 718 |
cp -v com/ibm/icu/impl/data/$ICUDT/brkitr/* $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 719 |
cp -v com/ibm/icu/impl/data/$ICUDT/confusables.cfu $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/$ICUDT |
| 720 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.nrm $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/$ICUDT |
| 721 |
cd com/ibm/icu/impl/data/$ICUDT/ |
| 722 |
ls *.icu | egrep -v "cnvalias.icu" | awk '{print "cp " $0 " $ICU_SRC/icu4j/main/core/src/main/resources/com/ibm/icu/impl/data/$ICUDT";}' | sh |
| 723 |
- The procedure above is very conservative: |
| 724 |
It refreshes only the parts of the ICU4J data that we think are affected by a Unicode data update. |
| 725 |
It avoids dealing with any other discrepancies |
| 726 |
between the source and generated data files. |
| 727 |
*If* instead we wanted to refresh *all* of the ICU4J data from ICU4C: |
| 728 |
$ICU_OUT/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 729 |
|
| 730 |
* refresh Java test .txt files |
| 731 |
- copy new .txt files into ICU4J's main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 732 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 733 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 734 |
cd ../../test/testdata |
| 735 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 736 |
cp -v $UNICODE_DATA/UCD/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/core/src/test/resources/com/ibm/icu/dev/data/unicode |
| 737 |
|
| 738 |
* run & fix ICU4J tests |
| 739 |
|
| 740 |
*** API additions |
| 741 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 742 |
|
| 743 |
*** CLDR numbering systems |
| 744 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 745 |
for example: |
| 746 |
~/icu/mine/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt > /tmp/icu/nv4-15.txt |
| 747 |
~/icu/uni/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt > /tmp/icu/nv4-15.1.txt |
| 748 |
~/icu/uni/src$ diff -u /tmp/icu/nv4-15.txt /tmp/icu/nv4-15.1.txt |
| 749 |
--> |
| 750 |
(empty this time) |
| 751 |
or: |
| 752 |
~/unitools/mine/src$ diff -u unicodetools/data/ucd/15.0.0/extracted/DerivedGeneralCategory.txt unicodetools/data/ucd/dev/extracted/DerivedGeneralCategory.txt | grep '; Nd' | egrep '^\+' |
| 753 |
--> |
| 754 |
(empty this time) |
| 755 |
Unicode 15.1: |
| 756 |
(none this time) |
| 757 |
|
| 758 |
*** merge the Unicode update branch back onto the main branch |
| 759 |
- do not merge the icudata.jar and testdata.jar, |
| 760 |
instead rebuild them from merged & tested ICU4C |
| 761 |
- if there is a merge conflict in icudata.jar, here is one way to deal with it: |
| 762 |
+ remove icudata.jar from the commit so that rebasing is trivial |
| 763 |
+ ~/icu/uni/src$ git restore --source=main icu4j/main/shared/data/icudata.jar |
| 764 |
+ ~/icu/uni/src$ git commit -a --amend |
| 765 |
+ switch to main, pull updates, switch back to the dev branch |
| 766 |
+ ~/icu/uni/src$ git rebase main |
| 767 |
+ rebuild icudata.jar |
| 768 |
+ ~/icu/uni/src$ git commit -a --amend |
| 769 |
+ ~/icu/uni/src$ git push -f |
| 770 |
- make sure that changes to Unicode tools are checked in: |
| 771 |
https://github.com/unicode-org/unicodetools |
| 772 |
|
| 773 |
---------------------------------------------------------------------------- *** |
| 774 |
|
| 775 |
CLDR 43 root collation update for ICU 73 |
| 776 |
|
| 777 |
Partial update only for the root collation. |
| 778 |
See |
| 779 |
- https://unicode-org.atlassian.net/browse/CLDR-15946 |
| 780 |
Treat quote marks as equivalent when strength=UCOL_PRIMARY |
| 781 |
- https://github.com/unicode-org/cldr/pull/2691 |
| 782 |
CLDR-15946 make fancy quotes primary-equal to ASCII fallbacks |
| 783 |
- https://github.com/unicode-org/cldr/pull/2833 |
| 784 |
CLDR-15946 make fancy quotes secondary-different from each other |
| 785 |
|
| 786 |
The related changes to tailorings were already integrated in an earlier PR for |
| 787 |
https://unicode-org.atlassian.net/browse/ICU-22220 ICU 73rc BRS. |
| 788 |
|
| 789 |
This update is for the root collation, |
| 790 |
which is handled by different tools than the locale data updates. |
| 791 |
|
| 792 |
* Command-line environment setup |
| 793 |
|
| 794 |
export UNICODE_DATA=~/unidata/uni15/20220830 |
| 795 |
export CLDR_SRC=~/cldr/uni/src |
| 796 |
export ICU_ROOT=~/icu/uni |
| 797 |
export ICU_SRC=$ICU_ROOT/src |
| 798 |
export ICUDT=icudt73b |
| 799 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 800 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 801 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 802 |
|
| 803 |
*** Configure: Build Unicode data for ICU4J |
| 804 |
cd $ICU_ROOT/dbg/icu4c |
| 805 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ../../../doconfig-clang-dbg.sh |
| 806 |
|
| 807 |
* Bazel build process |
| 808 |
|
| 809 |
See https://unicode-org.github.io/icu/processes/unicode-update#bazel-build-process |
| 810 |
for an overview and for setup instructions. |
| 811 |
|
| 812 |
Consider running `bazelisk --version` outside of the $ICU_SRC folder |
| 813 |
to find out the latest `bazel` version, and |
| 814 |
copying that version number into the $ICU_SRC/.bazeliskrc config file. |
| 815 |
(Revert if you find incompatibilities, or, better, update our build & config files.) |
| 816 |
|
| 817 |
* generate data files |
| 818 |
|
| 819 |
- remember to define the environment variables |
| 820 |
(see the start of the section for this Unicode version) |
| 821 |
- cd $ICU_SRC |
| 822 |
- optional but not necessary: |
| 823 |
bazelisk clean |
| 824 |
or even |
| 825 |
bazelisk clean --expunge |
| 826 |
- build/bootstrap/generate new files: |
| 827 |
icu4c/source/data/unidata/generate.sh |
| 828 |
|
| 829 |
* collation: CLDR collation root, UCA DUCET |
| 830 |
|
| 831 |
- UCA DUCET goes into Mark's Unicode tools, |
| 832 |
and a tool-tailored version goes into CLDR, see |
| 833 |
https://github.com/unicode-org/unicodetools/blob/main/docs/uca/index.md |
| 834 |
|
| 835 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 836 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 837 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 838 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 839 |
(note removing the underscore before "Rules") |
| 840 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 841 |
- restore TODO diffs in UCARules.txt |
| 842 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 843 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 844 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 845 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 846 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 847 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 848 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 849 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 850 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 851 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 852 |
|
| 853 |
- generate data files, as above (generate.sh), now to pick up new collation data |
| 854 |
- rebuild ICU4C (make clean, make check, as usual) |
| 855 |
|
| 856 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 857 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 858 |
(the full ones have comments, useful for debugging) |
| 859 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 860 |
utility/MultithreadTest/TestCollators will fail as well; |
| 861 |
fix the conformance test before looking into the multi-thread test |
| 862 |
|
| 863 |
* update Java data files |
| 864 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 865 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 866 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 867 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 868 |
NOTE: If you get the error "No rule to make target 'out/build/icudt70l/uprops.icu'", |
| 869 |
you need to reconfigure with unicore data; see the "configure" line above. |
| 870 |
output: |
| 871 |
... |
| 872 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 873 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt73b |
| 874 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt73b |
| 875 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt73l.dat ./out/icu4j/icudt73b.dat -s ./out/build/icudt73l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt73b |
| 876 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt73b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt73b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt73b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt73b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt73b" |
| 877 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt73b/ |
| 878 |
mkdir -p /tmp/icu4j/main/shared/data |
| 879 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 880 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt73b/ |
| 881 |
mkdir -p /tmp/icu4j/main/shared/data |
| 882 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 883 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 884 |
- copy the big-endian Unicode data files to another location, |
| 885 |
separate from the other data files, |
| 886 |
and then refresh ICU4J |
| 887 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 888 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 889 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 890 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 891 |
- new for ICU 73: also copy the binary data files directly into the ICU4J tree |
| 892 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* $ICU_SRC/icu4j/maven-build/maven-icu4j-datafiles/src/main/resources/com/ibm/icu/impl/data/$ICUDT/coll |
| 893 |
|
| 894 |
* When refreshing all of ICU4J data from ICU4C |
| 895 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 896 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 897 |
or |
| 898 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 899 |
|
| 900 |
* refresh Java test .txt files |
| 901 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 902 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 903 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 904 |
cd ../../test/testdata |
| 905 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 906 |
cp -v $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 907 |
|
| 908 |
* run & fix ICU4J tests |
| 909 |
|
| 910 |
*** merge the Unicode update branch back onto the main branch |
| 911 |
- do not merge the icudata.jar and testdata.jar, |
| 912 |
instead rebuild them from merged & tested ICU4C |
| 913 |
- if there is a merge conflict in icudata.jar, here is one way to deal with it: |
| 914 |
+ remove icudata.jar from the commit so that rebasing is trivial |
| 915 |
+ ~/icu/uni/src$ git restore --source=main icu4j/main/shared/data/icudata.jar |
| 916 |
+ ~/icu/uni/src$ git commit -a --amend |
| 917 |
+ switch to main, pull updates, switch back to the dev branch |
| 918 |
+ ~/icu/uni/src$ git rebase main |
| 919 |
+ rebuild icudata.jar |
| 920 |
+ ~/icu/uni/src$ git commit -a --amend |
| 921 |
+ ~/icu/uni/src$ git push -f |
| 922 |
- make sure that changes to Unicode tools are checked in: |
| 923 |
https://github.com/unicode-org/unicodetools |
| 924 |
|
| 925 |
---------------------------------------------------------------------------- *** |
| 926 |
|
| 927 |
Unicode 15.0 update for ICU 72 |
| 928 |
|
| 929 |
https://www.unicode.org/versions/Unicode15.0.0/ |
| 930 |
https://www.unicode.org/versions/beta-15.0.0.html |
| 931 |
https://www.unicode.org/Public/15.0.0/ucd/ |
| 932 |
https://www.unicode.org/reports/uax-proposed-updates.html |
| 933 |
https://www.unicode.org/reports/tr44/tr44-29.html |
| 934 |
|
| 935 |
https://unicode-org.atlassian.net/browse/ICU-21980 Unicode 15 |
| 936 |
https://unicode-org.atlassian.net/browse/CLDR-15516 Unicode 15 |
| 937 |
https://unicode-org.atlassian.net/browse/CLDR-15253 Unicode 15 script metadata (in CLDR 41) |
| 938 |
|
| 939 |
* Command-line environment setup |
| 940 |
|
| 941 |
export UNICODE_DATA=~/unidata/uni15/20220830 |
| 942 |
export CLDR_SRC=~/cldr/uni/src |
| 943 |
export ICU_ROOT=~/icu/uni |
| 944 |
export ICU_SRC=$ICU_ROOT/src |
| 945 |
export ICUDT=icudt72b |
| 946 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 947 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 948 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 949 |
|
| 950 |
*** Unicode version numbers |
| 951 |
- makedata.mak |
| 952 |
- uchar.h |
| 953 |
- com.ibm.icu.util.VersionInfo |
| 954 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 955 |
|
| 956 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 957 |
so that the makefiles see the new version number. |
| 958 |
cd $ICU_ROOT/dbg/icu4c |
| 959 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ../../../doconfig-clang-dbg.sh |
| 960 |
|
| 961 |
*** data files & enums & parser code |
| 962 |
|
| 963 |
* download files |
| 964 |
- same as for the early Unicode Tools setup and data refresh: |
| 965 |
https://github.com/unicode-org/unicodetools/blob/main/docs/index.md |
| 966 |
https://github.com/unicode-org/unicodetools/blob/main/docs/inputdata.md |
| 967 |
- mkdir -p $UNICODE_DATA |
| 968 |
- download Unicode files into $UNICODE_DATA |
| 969 |
+ subfolders: emoji, idna, security, ucd, uca |
| 970 |
+ old way of fetching files: from the "Public" area on unicode.org |
| 971 |
~ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 972 |
~ split Unihan into single-property files |
| 973 |
~/unitools/mine/src$ py/splitunihan.py $UNICODE_DATA/ucd/Unihan |
| 974 |
+ new way of fetching files, if available: |
| 975 |
copy the files from a Unicode Tools workspace that is up to date with |
| 976 |
https://github.com/unicode-org/unicodetools |
| 977 |
and which might at this point be *ahead* of "Public" |
| 978 |
~ before the Unicode release copy files from "dev" subfolders, for example |
| 979 |
https://github.com/unicode-org/unicodetools/tree/main/unicodetools/data/ucd/dev |
| 980 |
+ get GraphemeBreakTest-cldr.txt from $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 981 |
or from the UCD/cldr/ output folder of the Unicode Tools: |
| 982 |
Since Unicode 12/CLDR 35/ICU 64 CLDR uses modified break rules. |
| 983 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt icu4c/source/test/testdata |
| 984 |
or |
| 985 |
cp ~/unitools/mine/Generated/UCD/15.0.0/cldr/GraphemeBreakTest-cldr.txt icu4c/source/test/testdata/GraphemeBreakTest.txt |
| 986 |
|
| 987 |
* for manual diffs and for Unicode Tools input data updates: |
| 988 |
remove version suffixes from the file names |
| 989 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 990 |
(see https://github.com/unicode-org/unicodetools/blob/main/docs/inputdata.md) |
| 991 |
|
| 992 |
* process and/or copy files |
| 993 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 994 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 995 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 996 |
the tool has an --only_ppucd option: |
| 997 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 998 |
|
| 999 |
- cp -v $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 1000 |
|
| 1001 |
* new constants for new property values |
| 1002 |
- preparseucd.py error: |
| 1003 |
ValueError: missing uchar.h enum constants for some property values: [('blk', {'Nag_Mundari', 'CJK_Ext_H', 'Kawi', 'Kaktovik_Numerals', 'Devanagari_Ext_A', 'Arabic_Ext_C', 'Cyrillic_Ext_D'}), ('sc', {'Nagm', 'Kawi'})] |
| 1004 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 1005 |
~/unidata$ diff -u uni14/20210922/ucd/PropertyValueAliases.txt uni15/beta/ucd/PropertyValueAliases.txt | egrep '^[-+][a-zA-Z]' |
| 1006 |
+age; 15.0 ; V15_0 |
| 1007 |
+blk; Arabic_Ext_C ; Arabic_Extended_C |
| 1008 |
+blk; CJK_Ext_H ; CJK_Unified_Ideographs_Extension_H |
| 1009 |
+blk; Cyrillic_Ext_D ; Cyrillic_Extended_D |
| 1010 |
+blk; Devanagari_Ext_A ; Devanagari_Extended_A |
| 1011 |
+blk; Kaktovik_Numerals ; Kaktovik_Numerals |
| 1012 |
+blk; Kawi ; Kawi |
| 1013 |
+blk; Nag_Mundari ; Nag_Mundari |
| 1014 |
+sc ; Kawi ; Kawi |
| 1015 |
+sc ; Nagm ; Nag_Mundari |
| 1016 |
-> add new blocks to uchar.h before UBLOCK_COUNT |
| 1017 |
use long property names for enum constants, |
| 1018 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 1019 |
~/unidata$ diff -u uni14/20210922/ucd/Blocks.txt uni15/beta/ucd/Blocks.txt | egrep '^[-+][0-9A-Z]' |
| 1020 |
+10EC0..10EFF; Arabic Extended-C |
| 1021 |
+11B00..11B5F; Devanagari Extended-A |
| 1022 |
+11F00..11F5F; Kawi |
| 1023 |
-13430..1343F; Egyptian Hieroglyph Format Controls |
| 1024 |
+13430..1345F; Egyptian Hieroglyph Format Controls |
| 1025 |
+1D2C0..1D2DF; Kaktovik Numerals |
| 1026 |
+1E030..1E08F; Cyrillic Extended-D |
| 1027 |
+1E4D0..1E4FF; Nag Mundari |
| 1028 |
+31350..323AF; CJK Unified Ideographs Extension H |
| 1029 |
(ignore blocks whose end code point changed) |
| 1030 |
-> add new blocks to UCharacter.UnicodeBlock IDs |
| 1031 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 1032 |
replace public static final int \1_ID = \2; \3 |
| 1033 |
-> add new blocks to UCharacter.UnicodeBlock objects |
| 1034 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 1035 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 1036 |
-> add new scripts to uscript.h & com.ibm.icu.lang.UScript |
| 1037 |
Eclipse find USCRIPT_([^ ]+) *= ([0-9]+),(/.+) |
| 1038 |
replace public static final int \1 = \2; \3 |
| 1039 |
-> for new scripts: fix expectedLong names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 1040 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 1041 |
|
| 1042 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 1043 |
(not strictly necessary for NOT_ENCODED scripts) |
| 1044 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 1045 |
|
| 1046 |
* build ICU |
| 1047 |
to make sure that there are no syntax errors |
| 1048 |
|
| 1049 |
$ICU_ROOT/dbg/icu4c$ echo;echo; date; make -j7 tests &> out.txt ; tail -n 30 out.txt ; date |
| 1050 |
|
| 1051 |
* update spoof checker UnicodeSet initializers: |
| 1052 |
inclusionPat & recommendedPat in i18n/uspoof.cpp |
| 1053 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 1054 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 1055 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 1056 |
- run the tool (no special environment variables needed) |
| 1057 |
- copy & paste from the Console output into the .cpp & .java files |
| 1058 |
|
| 1059 |
* Bazel build process |
| 1060 |
|
| 1061 |
See https://unicode-org.github.io/icu/processes/unicode-update#bazel-build-process |
| 1062 |
for an overview and for setup instructions. |
| 1063 |
|
| 1064 |
Consider running `bazelisk --version` outside of the $ICU_SRC folder |
| 1065 |
to find out the latest `bazel` version, and |
| 1066 |
copying that version number into the $ICU_SRC/.bazeliskrc config file. |
| 1067 |
(Revert if you find incompatibilities, or, better, update our build & config files.) |
| 1068 |
|
| 1069 |
* generate data files |
| 1070 |
|
| 1071 |
- remember to define the environment variables |
| 1072 |
(see the start of the section for this Unicode version) |
| 1073 |
- cd $ICU_SRC |
| 1074 |
- optional but not necessary: |
| 1075 |
bazelisk clean |
| 1076 |
- build/bootstrap/generate new files: |
| 1077 |
icu4c/source/data/unidata/generate.sh |
| 1078 |
|
| 1079 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 1080 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 1081 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 1082 |
~/unitools/mine/src$ grep disallowed_STD3_valid unicodetools/data/idna/dev/IdnaMappingTable.txt |
| 1083 |
- Unicode 6.0..15.0: U+2260, U+226E, U+226F |
| 1084 |
- nothing new in this Unicode version, no test file to update |
| 1085 |
|
| 1086 |
* run & fix ICU4C tests |
| 1087 |
- Note: Some of the collation data and test data will be updated below, |
| 1088 |
so at this time we might get some collation test failures. |
| 1089 |
Ignore these for now. |
| 1090 |
- fix Unicode Tools class Segmenter to generate correct *BreakTest.txt files |
| 1091 |
(no rule changes in Unicode 15) |
| 1092 |
- update CLDR GraphemeBreakTest.txt |
| 1093 |
cd ~/unitools/mine/Generated |
| 1094 |
cp UCD/15.0.0/cldr/GraphemeBreakTest-cldr.txt $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 1095 |
cp UCD/15.0.0/cldr/GraphemeBreakTest-cldr.html $CLDR_SRC/common/properties/segments/GraphemeBreakTest.html |
| 1096 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt $ICU_SRC/icu4c/source/test/testdata |
| 1097 |
- Andy helps with RBBI & spoof check test failures |
| 1098 |
|
| 1099 |
* collation: CLDR collation root, UCA DUCET |
| 1100 |
|
| 1101 |
- UCA DUCET goes into Mark's Unicode tools, |
| 1102 |
and a tool-tailored version goes into CLDR, see |
| 1103 |
https://github.com/unicode-org/unicodetools/blob/main/docs/uca/index.md |
| 1104 |
|
| 1105 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 1106 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 1107 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 1108 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 1109 |
(note removing the underscore before "Rules") |
| 1110 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 1111 |
- restore TODO diffs in UCARules.txt |
| 1112 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 1113 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 1114 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 1115 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 1116 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 1117 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 1118 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 1119 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 1120 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 1121 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 1122 |
|
| 1123 |
- generate data files, as above (generate.sh), now to pick up new collation data |
| 1124 |
- update CollationFCD.java: |
| 1125 |
copy & paste the initializers of lcccIndex[] etc. from |
| 1126 |
ICU4C/source/i18n/collationfcd.cpp to |
| 1127 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 1128 |
- rebuild ICU4C (make clean, make check, as usual) |
| 1129 |
|
| 1130 |
* Unihan collators |
| 1131 |
https://github.com/unicode-org/unicodetools/blob/main/docs/unihan.md |
| 1132 |
- run Unicode Tools GenerateUnihanCollators & GenerateUnihanCollatorFiles, |
| 1133 |
check CLDR diffs, copy to CLDR, test CLDR, ... as documented there |
| 1134 |
- generate ICU zh collation data |
| 1135 |
instructions inspired by |
| 1136 |
https://github.com/unicode-org/icu/blob/main/tools/cldr/cldr-to-icu/README.txt and |
| 1137 |
https://github.com/unicode-org/icu/blob/main/icu4c/source/data/cldr-icu-readme.txt |
| 1138 |
+ setup: |
| 1139 |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 |
| 1140 |
(didn't work without setting JAVA_HOME, |
| 1141 |
nor with the Google default of /usr/local/buildtools/java/jdk |
| 1142 |
[Google security limitations in the XML parser]) |
| 1143 |
export TOOLS_ROOT=~/icu/uni/src/tools |
| 1144 |
export CLDR_DIR=~/cldr/uni/src |
| 1145 |
export CLDR_DATA_DIR=~/cldr/uni/src |
| 1146 |
(pointing to the "raw" data, not cldr-staging/.../production should be ok for the relevant files) |
| 1147 |
cd "$TOOLS_ROOT/cldr/lib" |
| 1148 |
./install-cldr-jars.sh "$CLDR_DIR" |
| 1149 |
+ generate the files we need |
| 1150 |
cd "$TOOLS_ROOT/cldr/cldr-to-icu" |
| 1151 |
ant -f build-icu-data.xml -DoutDir=/tmp/icu -DoutputTypes=coll,transforms -DlocaleIdFilter='zh.*' |
| 1152 |
+ diff |
| 1153 |
cd $ICU_SRC |
| 1154 |
meld icu4c/source/data/coll/zh.txt /tmp/icu/coll/zh.txt |
| 1155 |
meld icu4c/source/data/translit/Hani_Latn.txt /tmp/icu/translit/Hani_Latn.txt |
| 1156 |
+ copy into the source tree |
| 1157 |
cd $ICU_SRC |
| 1158 |
cp /tmp/icu/coll/zh.txt icu4c/source/data/coll/zh.txt |
| 1159 |
cp /tmp/icu/translit/Hani_Latn.txt icu4c/source/data/translit/Hani_Latn.txt |
| 1160 |
- rebuild ICU4C |
| 1161 |
|
| 1162 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 1163 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 1164 |
(the full ones have comments, useful for debugging) |
| 1165 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 1166 |
utility/MultithreadTest/TestCollators will fail as well; |
| 1167 |
fix the conformance test before looking into the multi-thread test |
| 1168 |
|
| 1169 |
* update Java data files |
| 1170 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 1171 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 1172 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1173 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 1174 |
NOTE: If you get the error "No rule to make target 'out/build/icudt70l/uprops.icu'", |
| 1175 |
you need to reconfigure with unicore data; see the "configure" line above. |
| 1176 |
output: |
| 1177 |
... |
| 1178 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 1179 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt72b |
| 1180 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt72b |
| 1181 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt72l.dat ./out/icu4j/icudt72b.dat -s ./out/build/icudt72l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt72b |
| 1182 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt72b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt72b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt72b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt72b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt72b" |
| 1183 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt72b/ |
| 1184 |
mkdir -p /tmp/icu4j/main/shared/data |
| 1185 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 1186 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt72b/ |
| 1187 |
mkdir -p /tmp/icu4j/main/shared/data |
| 1188 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 1189 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 1190 |
- copy the big-endian Unicode data files to another location, |
| 1191 |
separate from the other data files, |
| 1192 |
and then refresh ICU4J |
| 1193 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 1194 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 1195 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 1196 |
cp -v com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1197 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1198 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 1199 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1200 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 1201 |
cp -v com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 1202 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 1203 |
|
| 1204 |
* When refreshing all of ICU4J data from ICU4C |
| 1205 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 1206 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 1207 |
or |
| 1208 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 1209 |
|
| 1210 |
* refresh Java test .txt files |
| 1211 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1212 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 1213 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1214 |
cd ../../test/testdata |
| 1215 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1216 |
cp -v $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1217 |
|
| 1218 |
* run & fix ICU4J tests |
| 1219 |
|
| 1220 |
*** API additions |
| 1221 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 1222 |
|
| 1223 |
*** CLDR numbering systems |
| 1224 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 1225 |
for example: |
| 1226 |
~/icu/mine/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt > /tmp/icu/nv4-14.txt |
| 1227 |
~/icu/uni/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt > /tmp/icu/nv4-15.txt |
| 1228 |
~/icu/uni/src$ diff -u /tmp/icu/nv4-14.txt /tmp/icu/nv4-15.txt |
| 1229 |
--> |
| 1230 |
+cp;11F54;-Alpha;gc=Nd;InSC=Number;lb=NU;na=KAWI DIGIT FOUR;nt=De;nv=4;SB=NU;WB=NU;-XIDS |
| 1231 |
+cp;1E4F4;-Alpha;gc=Nd;-IDS;lb=NU;na=NAG MUNDARI DIGIT FOUR;nt=De;nv=4;SB=NU;WB=NU;-XIDS |
| 1232 |
or: |
| 1233 |
~/unitools/mine/src$ diff -u unicodetools/data/ucd/14.0.0-Update/extracted/DerivedGeneralCategory.txt unicodetools/data/ucd/dev/extracted/DerivedGeneralCategory.txt | grep '; Nd' | egrep '^\+' |
| 1234 |
--> |
| 1235 |
+11F50..11F59 ; Nd # [10] KAWI DIGIT ZERO..KAWI DIGIT NINE |
| 1236 |
+1E4F0..1E4F9 ; Nd # [10] NAG MUNDARI DIGIT ZERO..NAG MUNDARI DIGIT NINE |
| 1237 |
Unicode 15: |
| 1238 |
kawi 11F50..11F59 Kawi |
| 1239 |
nagm 1E4F0..1E4F9 Nag Mundari |
| 1240 |
https://github.com/unicode-org/cldr/pull/2041 |
| 1241 |
|
| 1242 |
*** merge the Unicode update branches back onto the trunk |
| 1243 |
- do not merge the icudata.jar and testdata.jar, |
| 1244 |
instead rebuild them from merged & tested ICU4C |
| 1245 |
- if there is a merge conflict in icudata.jar, here is one way to deal with it: |
| 1246 |
+ remove icudata.jar from the commit so that rebasing is trivial |
| 1247 |
+ ~/icu/uni/src$ git restore --source=main icu4j/main/shared/data/icudata.jar |
| 1248 |
+ ~/icu/uni/src$ git commit -a --amend |
| 1249 |
+ switch to main, pull updates, switch back to the dev branch |
| 1250 |
+ ~/icu/uni/src$ git rebase main |
| 1251 |
+ rebuild icudata.jar |
| 1252 |
+ ~/icu/uni/src$ git commit -a --amend |
| 1253 |
+ ~/icu/uni/src$ git push -f |
| 1254 |
- make sure that changes to Unicode tools are checked in: |
| 1255 |
https://github.com/unicode-org/unicodetools |
| 1256 |
|
| 1257 |
---------------------------------------------------------------------------- *** |
| 1258 |
|
| 1259 |
Unicode 14.0 update for ICU 70 |
| 1260 |
|
| 1261 |
https://www.unicode.org/versions/Unicode14.0.0/ |
| 1262 |
https://www.unicode.org/versions/beta-14.0.0.html |
| 1263 |
https://www.unicode.org/Public/14.0.0/ucd/ |
| 1264 |
https://www.unicode.org/reports/uax-proposed-updates.html |
| 1265 |
https://www.unicode.org/reports/tr44/tr44-27.html |
| 1266 |
|
| 1267 |
https://unicode-org.atlassian.net/browse/CLDR-14801 |
| 1268 |
https://unicode-org.atlassian.net/browse/ICU-21635 |
| 1269 |
|
| 1270 |
* Command-line environment setup |
| 1271 |
|
| 1272 |
export UNICODE_DATA=~/unidata/uni14/20210903 |
| 1273 |
export CLDR_SRC=~/cldr/uni/src |
| 1274 |
export ICU_ROOT=~/icu/uni |
| 1275 |
export ICU_SRC=$ICU_ROOT/src |
| 1276 |
export ICUDT=icudt70b |
| 1277 |
export ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 1278 |
export ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 1279 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 1280 |
|
| 1281 |
*** Unicode version numbers |
| 1282 |
- makedata.mak |
| 1283 |
- uchar.h |
| 1284 |
- com.ibm.icu.util.VersionInfo |
| 1285 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 1286 |
|
| 1287 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 1288 |
so that the makefiles see the new version number. |
| 1289 |
cd $ICU_ROOT/dbg/icu4c |
| 1290 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ../../../doconfig-clang-dbg.sh |
| 1291 |
|
| 1292 |
*** data files & enums & parser code |
| 1293 |
|
| 1294 |
* download files |
| 1295 |
- same as for the early Unicode Tools setup and data refresh: |
| 1296 |
https://github.com/unicode-org/unicodetools/blob/main/docs/index.md |
| 1297 |
https://github.com/unicode-org/unicodetools/blob/main/docs/inputdata.md |
| 1298 |
- mkdir -p $UNICODE_DATA |
| 1299 |
- download Unicode files into $UNICODE_DATA |
| 1300 |
+ subfolders: emoji, idna, security, ucd, uca |
| 1301 |
+ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 1302 |
+ split Unihan into single-property files |
| 1303 |
~/unitools/mine/src$ py/splitunihan.py $UNICODE_DATA/ucd/Unihan |
| 1304 |
+ get GraphemeBreakTest-cldr.txt from $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 1305 |
or from the UCD/cldr/ output folder of the Unicode Tools: |
| 1306 |
Since Unicode 12/CLDR 35/ICU 64 CLDR uses modified break rules. |
| 1307 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt icu4c/source/test/testdata |
| 1308 |
or |
| 1309 |
cp ~/unitools/mine/Generated/UCD/d19/cldr/GraphemeBreakTest-cldr-14.0.0d19.txt icu4c/source/test/testdata/GraphemeBreakTest.txt |
| 1310 |
|
| 1311 |
* for manual diffs and for Unicode Tools input data updates: |
| 1312 |
remove version suffixes from the file names |
| 1313 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 1314 |
(see https://github.com/unicode-org/unicodetools/blob/main/docs/inputdata.md) |
| 1315 |
|
| 1316 |
* process and/or copy files |
| 1317 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 1318 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 1319 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 1320 |
the tool has an --only_ppucd option: |
| 1321 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 1322 |
|
| 1323 |
- cp -v $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 1324 |
|
| 1325 |
* new constants for new property values |
| 1326 |
- preparseucd.py error: |
| 1327 |
ValueError: missing uchar.h enum constants for some property values: |
| 1328 |
[(u'blk', set([u'Toto', u'Tangsa', u'Cypro_Minoan', u'Arabic_Ext_B', u'Vithkuqi', u'Old_Uyghur', u'Latin_Ext_F', u'UCAS_Ext_A', u'Kana_Ext_B', u'Ethiopic_Ext_B', u'Latin_Ext_G', u'Znamenny_Music'])), |
| 1329 |
(u'jg', set([u'Vertical_Tail', u'Thin_Yeh'])), |
| 1330 |
(u'sc', set([u'Toto', u'Ougr', u'Vith', u'Tnsa', u'Cpmn']))] |
| 1331 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 1332 |
~/unidata$ diff -u uni13/20200304/ucd/PropertyValueAliases.txt uni14/20210609/ucd/PropertyValueAliases.txt | egrep '^[-+][a-zA-Z]' |
| 1333 |
+age; 14.0 ; V14_0 |
| 1334 |
+blk; Arabic_Ext_B ; Arabic_Extended_B |
| 1335 |
+blk; Cypro_Minoan ; Cypro_Minoan |
| 1336 |
+blk; Ethiopic_Ext_B ; Ethiopic_Extended_B |
| 1337 |
+blk; Kana_Ext_B ; Kana_Extended_B |
| 1338 |
+blk; Latin_Ext_F ; Latin_Extended_F |
| 1339 |
+blk; Latin_Ext_G ; Latin_Extended_G |
| 1340 |
+blk; Old_Uyghur ; Old_Uyghur |
| 1341 |
+blk; Tangsa ; Tangsa |
| 1342 |
+blk; Toto ; Toto |
| 1343 |
+blk; UCAS_Ext_A ; Unified_Canadian_Aboriginal_Syllabics_Extended_A |
| 1344 |
+blk; Vithkuqi ; Vithkuqi |
| 1345 |
+blk; Znamenny_Music ; Znamenny_Musical_Notation |
| 1346 |
+jg ; Thin_Yeh ; Thin_Yeh |
| 1347 |
+jg ; Vertical_Tail ; Vertical_Tail |
| 1348 |
+sc ; Cpmn ; Cypro_Minoan |
| 1349 |
+sc ; Ougr ; Old_Uyghur |
| 1350 |
+sc ; Tnsa ; Tangsa |
| 1351 |
+sc ; Toto ; Toto |
| 1352 |
+sc ; Vith ; Vithkuqi |
| 1353 |
-> add new blocks to uchar.h before UBLOCK_COUNT |
| 1354 |
use long property names for enum constants, |
| 1355 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 1356 |
~/unidata$ diff -u uni13/20200304/ucd/Blocks.txt uni14/20210609/ucd/Blocks.txt | egrep '^[-+][0-9A-Z]' |
| 1357 |
+0870..089F; Arabic Extended-B |
| 1358 |
+10570..105BF; Vithkuqi |
| 1359 |
+10780..107BF; Latin Extended-F |
| 1360 |
+10F70..10FAF; Old Uyghur |
| 1361 |
-11700..1173F; Ahom |
| 1362 |
+11700..1174F; Ahom |
| 1363 |
+11AB0..11ABF; Unified Canadian Aboriginal Syllabics Extended-A |
| 1364 |
+12F90..12FFF; Cypro-Minoan |
| 1365 |
+16A70..16ACF; Tangsa |
| 1366 |
-18D00..18D8F; Tangut Supplement |
| 1367 |
+18D00..18D7F; Tangut Supplement |
| 1368 |
+1AFF0..1AFFF; Kana Extended-B |
| 1369 |
+1CF00..1CFCF; Znamenny Musical Notation |
| 1370 |
+1DF00..1DFFF; Latin Extended-G |
| 1371 |
+1E290..1E2BF; Toto |
| 1372 |
+1E7E0..1E7FF; Ethiopic Extended-B |
| 1373 |
(ignore blocks whose end code point changed) |
| 1374 |
-> add new blocks to UCharacter.UnicodeBlock IDs |
| 1375 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 1376 |
replace public static final int \1_ID = \2; \3 |
| 1377 |
-> add new blocks to UCharacter.UnicodeBlock objects |
| 1378 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 1379 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 1380 |
-> add new scripts to uscript.h & com.ibm.icu.lang.UScript |
| 1381 |
Eclipse find USCRIPT_([^ ]+) *= ([0-9]+),(/.+) |
| 1382 |
replace public static final int \1 = \2; \3 |
| 1383 |
-> for new scripts: fix expectedLong names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 1384 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 1385 |
-> add new joining groups to uchar.h & UCharacter.JoiningGroup |
| 1386 |
|
| 1387 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 1388 |
(not strictly necessary for NOT_ENCODED scripts) |
| 1389 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 1390 |
|
| 1391 |
* build ICU |
| 1392 |
to make sure that there are no syntax errors |
| 1393 |
|
| 1394 |
$ICU_ROOT/dbg/icu4c$ echo;echo; date; make -j7 tests &> out.txt ; tail -n 30 out.txt ; date |
| 1395 |
|
| 1396 |
* update spoof checker UnicodeSet initializers: |
| 1397 |
inclusionPat & recommendedPat in i18n/uspoof.cpp |
| 1398 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 1399 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 1400 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 1401 |
- run the tool (no special environment variables needed) |
| 1402 |
- copy & paste from the Console output into the .cpp & .java files |
| 1403 |
|
| 1404 |
* Bazel build process |
| 1405 |
|
| 1406 |
See https://unicode-org.github.io/icu/processes/unicode-update#bazel-build-process |
| 1407 |
for an overview and for setup instructions. |
| 1408 |
|
| 1409 |
Consider running `bazelisk --version` outside of the $ICU_SRC folder |
| 1410 |
to find out the latest `bazel` version, and |
| 1411 |
copying that version number into the $ICU_SRC/.bazeliskrc config file. |
| 1412 |
(Revert if you find incompatibilities, or, better, update our build & config files.) |
| 1413 |
|
| 1414 |
* generate data files |
| 1415 |
|
| 1416 |
- remember to define the environment variables |
| 1417 |
(see the start of the section for this Unicode version) |
| 1418 |
- cd $ICU_SRC |
| 1419 |
- optional but not necessary: |
| 1420 |
bazelisk clean |
| 1421 |
- build/bootstrap/generate new files: |
| 1422 |
icu4c/source/data/unidata/generate.sh |
| 1423 |
|
| 1424 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 1425 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 1426 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 1427 |
- Unicode 6.0..14.0: U+2260, U+226E, U+226F |
| 1428 |
- nothing new in this Unicode version, no test file to update |
| 1429 |
|
| 1430 |
* run & fix ICU4C tests |
| 1431 |
- fix Unicode Tools class Segmenter to generate correct *BreakTest.txt files |
| 1432 |
- update CLDR GraphemeBreakTest.txt |
| 1433 |
cd ~/unitools/mine/Generated |
| 1434 |
cp UCD/d22d/cldr/GraphemeBreakTest-cldr.txt $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 1435 |
cp UCD/d22d/cldr/GraphemeBreakTest-cldr.html $CLDR_SRC/common/properties/segments/GraphemeBreakTest.html |
| 1436 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt $ICU_SRC/icu4c/source/test/testdata |
| 1437 |
- Andy helps with RBBI & spoof check test failures |
| 1438 |
|
| 1439 |
* collation: CLDR collation root, UCA DUCET |
| 1440 |
|
| 1441 |
- UCA DUCET goes into Mark's Unicode tools, |
| 1442 |
and a tool-tailored version goes into CLDR, see |
| 1443 |
https://github.com/unicode-org/unicodetools/blob/main/docs/uca/index.md |
| 1444 |
|
| 1445 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 1446 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 1447 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 1448 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 1449 |
(note removing the underscore before "Rules") |
| 1450 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 1451 |
- restore TODO diffs in UCARules.txt |
| 1452 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 1453 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 1454 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 1455 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 1456 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 1457 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 1458 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 1459 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 1460 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 1461 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 1462 |
|
| 1463 |
- generate data files, as above (generate.sh), now to pick up new collation data |
| 1464 |
- update CollationFCD.java: |
| 1465 |
copy & paste the initializers of lcccIndex[] etc. from |
| 1466 |
ICU4C/source/i18n/collationfcd.cpp to |
| 1467 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 1468 |
- rebuild ICU4C (make clean, make check, as usual) |
| 1469 |
|
| 1470 |
* Unihan collators |
| 1471 |
https://github.com/unicode-org/unicodetools/blob/main/docs/unihan.md |
| 1472 |
- run Unicode Tools GenerateUnihanCollators & GenerateUnihanCollatorFiles, |
| 1473 |
check CLDR diffs, copy to CLDR, test CLDR, ... as documented there |
| 1474 |
- generate ICU zh collation data |
| 1475 |
instructions inspired by |
| 1476 |
https://github.com/unicode-org/icu/blob/main/tools/cldr/cldr-to-icu/README.txt and |
| 1477 |
https://github.com/unicode-org/icu/blob/main/icu4c/source/data/cldr-icu-readme.txt |
| 1478 |
+ setup: |
| 1479 |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 |
| 1480 |
(didn't work without setting JAVA_HOME, |
| 1481 |
nor with the Google default of /usr/local/buildtools/java/jdk |
| 1482 |
[Google security limitations in the XML parser]) |
| 1483 |
export TOOLS_ROOT=~/icu/uni/src/tools |
| 1484 |
export CLDR_DIR=~/cldr/uni/src |
| 1485 |
export CLDR_DATA_DIR=~/cldr/uni/src |
| 1486 |
(pointing to the "raw" data, not cldr-staging/.../production should be ok for the relevant files) |
| 1487 |
cd "$TOOLS_ROOT/cldr/lib" |
| 1488 |
./install-cldr-jars.sh "$CLDR_DIR" |
| 1489 |
+ generate the files we need |
| 1490 |
cd "$TOOLS_ROOT/cldr/cldr-to-icu" |
| 1491 |
ant -f build-icu-data.xml -DoutDir=/tmp/icu -DoutputTypes=coll,transforms -DlocaleIdFilter='zh.*' |
| 1492 |
+ diff |
| 1493 |
cd $ICU_SRC |
| 1494 |
meld icu4c/source/data/coll/zh.txt /tmp/icu/coll/zh.txt |
| 1495 |
meld icu4c/source/data/translit/Hani_Latn.txt /tmp/icu/translit/Hani_Latn.txt |
| 1496 |
+ copy into the source tree |
| 1497 |
cd $ICU_SRC |
| 1498 |
cp /tmp/icu/coll/zh.txt icu4c/source/data/coll/zh.txt |
| 1499 |
cp /tmp/icu/translit/Hani_Latn.txt icu4c/source/data/translit/Hani_Latn.txt |
| 1500 |
- rebuild ICU4C |
| 1501 |
|
| 1502 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 1503 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 1504 |
(the full ones have comments, useful for debugging) |
| 1505 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 1506 |
utility/MultithreadTest/TestCollators will fail as well; |
| 1507 |
fix the conformance test before looking into the multi-thread test |
| 1508 |
|
| 1509 |
* update Java data files |
| 1510 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 1511 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 1512 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1513 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 1514 |
NOTE: If you get the error "No rule to make target 'out/build/icudt70l/uprops.icu'", |
| 1515 |
you need to reconfigure with unicore data; see the "configure" line above. |
| 1516 |
output: |
| 1517 |
... |
| 1518 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 1519 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt70b |
| 1520 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt70b |
| 1521 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt70l.dat ./out/icu4j/icudt70b.dat -s ./out/build/icudt70l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt70b |
| 1522 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt70b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt70b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt70b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt70b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt70b" |
| 1523 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt70b/ |
| 1524 |
mkdir -p /tmp/icu4j/main/shared/data |
| 1525 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 1526 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt70b/ |
| 1527 |
mkdir -p /tmp/icu4j/main/shared/data |
| 1528 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 1529 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 1530 |
- copy the big-endian Unicode data files to another location, |
| 1531 |
separate from the other data files, |
| 1532 |
and then refresh ICU4J |
| 1533 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 1534 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 1535 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 1536 |
cp -v com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1537 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1538 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 1539 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1540 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 1541 |
cp -v com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 1542 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 1543 |
|
| 1544 |
* When refreshing all of ICU4J data from ICU4C |
| 1545 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 1546 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 1547 |
or |
| 1548 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 1549 |
|
| 1550 |
* refresh Java test .txt files |
| 1551 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1552 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 1553 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1554 |
cd ../../test/testdata |
| 1555 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1556 |
cp -v $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1557 |
|
| 1558 |
* run & fix ICU4J tests |
| 1559 |
|
| 1560 |
*** API additions |
| 1561 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 1562 |
|
| 1563 |
*** CLDR numbering systems |
| 1564 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 1565 |
for example: |
| 1566 |
~/icu/mine/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt > /tmp/icu/nv4-13.txt |
| 1567 |
~/icu/uni/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt > /tmp/icu/nv4-14.txt |
| 1568 |
~/icu/uni/src$ diff -u /tmp/icu/nv4-13.txt /tmp/icu/nv4-14.txt |
| 1569 |
--> |
| 1570 |
+cp;16AC4;-Alpha;gc=Nd;-IDS;lb=NU;na=TANGSA DIGIT FOUR;nt=De;nv=4;SB=NU;WB=NU;-XIDS |
| 1571 |
Unicode 14: |
| 1572 |
tnsa 16AC0..16AC9 Tangsa |
| 1573 |
https://github.com/unicode-org/cldr/pull/1326 |
| 1574 |
|
| 1575 |
*** merge the Unicode update branches back onto the trunk |
| 1576 |
- do not merge the icudata.jar and testdata.jar, |
| 1577 |
instead rebuild them from merged & tested ICU4C |
| 1578 |
- make sure that changes to Unicode tools are checked in: |
| 1579 |
https://github.com/unicode-org/unicodetools |
| 1580 |
|
| 1581 |
---------------------------------------------------------------------------- *** |
| 1582 |
|
| 1583 |
Unicode 13.0 update for ICU 66 |
| 1584 |
|
| 1585 |
https://www.unicode.org/versions/Unicode13.0.0/ |
| 1586 |
https://www.unicode.org/versions/beta-13.0.0.html |
| 1587 |
https://www.unicode.org/Public/13.0.0/ucd/ |
| 1588 |
https://www.unicode.org/reports/uax-proposed-updates.html |
| 1589 |
https://www.unicode.org/reports/tr44/tr44-25.html |
| 1590 |
|
| 1591 |
https://unicode-org.atlassian.net/browse/CLDR-13387 |
| 1592 |
https://unicode-org.atlassian.net/browse/ICU-20893 |
| 1593 |
|
| 1594 |
* Command-line environment setup |
| 1595 |
|
| 1596 |
UNICODE_DATA=~/unidata/uni13/20200212 |
| 1597 |
CLDR_SRC=~/cldr/uni/src |
| 1598 |
ICU_ROOT=~/icu/uni |
| 1599 |
ICU_SRC=$ICU_ROOT/src |
| 1600 |
ICUDT=icudt66b |
| 1601 |
ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 1602 |
ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 1603 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 1604 |
|
| 1605 |
*** Unicode version numbers |
| 1606 |
- makedata.mak |
| 1607 |
- uchar.h |
| 1608 |
- com.ibm.icu.util.VersionInfo |
| 1609 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 1610 |
|
| 1611 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 1612 |
so that the makefiles see the new version number. |
| 1613 |
cd $ICU_ROOT/dbg/icu4c |
| 1614 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ../../../doconfig-clang-dbg.sh |
| 1615 |
|
| 1616 |
*** data files & enums & parser code |
| 1617 |
|
| 1618 |
* download files |
| 1619 |
- mkdir -p $UNICODE_DATA |
| 1620 |
- download Unicode files into $UNICODE_DATA |
| 1621 |
+ subfolders: emoji, idna, security, ucd, uca |
| 1622 |
+ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 1623 |
+ split Unihan into single-property files |
| 1624 |
~/unitools/trunk/src$ py/splitunihan.py $UNICODE_DATA/ucd/Unihan |
| 1625 |
+ get GraphemeBreakTest-cldr.txt from $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt |
| 1626 |
or from the ucd/cldr/ output folder of the Unicode Tools: |
| 1627 |
Since Unicode 12/CLDR 35/ICU 64 CLDR uses modified break rules. |
| 1628 |
cp $CLDR_SRC/common/properties/segments/GraphemeBreakTest.txt icu4c/source/test/testdata |
| 1629 |
|
| 1630 |
* for manual diffs and for Unicode Tools input data updates: |
| 1631 |
remove version suffixes from the file names |
| 1632 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 1633 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 1634 |
|
| 1635 |
* process and/or copy files |
| 1636 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 1637 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 1638 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 1639 |
the tool has an --only_ppucd option: |
| 1640 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 1641 |
|
| 1642 |
- cp -v $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 1643 |
|
| 1644 |
* new constants for new property values |
| 1645 |
- preparseucd.py error: |
| 1646 |
ValueError: missing uchar.h enum constants for some property values: |
| 1647 |
[(u'blk', set([u'Symbols_For_Legacy_Computing', u'Dives_Akuru', u'Yezidi', |
| 1648 |
u'Tangut_Sup', u'CJK_Ext_G', u'Khitan_Small_Script', u'Chorasmian', u'Lisu_Sup'])), |
| 1649 |
(u'sc', set([u'Chrs', u'Diak', u'Kits', u'Yezi'])), |
| 1650 |
(u'InPC', set([u'Top_And_Bottom_And_Left']))] |
| 1651 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 1652 |
blk; Chorasmian ; Chorasmian |
| 1653 |
blk; CJK_Ext_G ; CJK_Unified_Ideographs_Extension_G |
| 1654 |
blk; Dives_Akuru ; Dives_Akuru |
| 1655 |
blk; Khitan_Small_Script ; Khitan_Small_Script |
| 1656 |
blk; Lisu_Sup ; Lisu_Supplement |
| 1657 |
blk; Symbols_For_Legacy_Computing ; Symbols_For_Legacy_Computing |
| 1658 |
blk; Tangut_Sup ; Tangut_Supplement |
| 1659 |
blk; Yezidi ; Yezidi |
| 1660 |
-> add to uchar.h before UBLOCK_COUNT |
| 1661 |
use long property names for enum constants, |
| 1662 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 1663 |
-> add to UCharacter.UnicodeBlock IDs |
| 1664 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 1665 |
replace public static final int \1_ID = \2; \3 |
| 1666 |
-> add to UCharacter.UnicodeBlock objects |
| 1667 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 1668 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 1669 |
|
| 1670 |
sc ; Chrs ; Chorasmian |
| 1671 |
sc ; Diak ; Dives_Akuru |
| 1672 |
sc ; Kits ; Khitan_Small_Script |
| 1673 |
sc ; Yezi ; Yezidi |
| 1674 |
-> uscript.h & com.ibm.icu.lang.UScript |
| 1675 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 1676 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 1677 |
|
| 1678 |
InPC; Top_And_Bottom_And_Left ; Top_And_Bottom_And_Left |
| 1679 |
-> uchar.h enum UIndicPositionalCategory & UCharacter.java IndicPositionalCategory |
| 1680 |
|
| 1681 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 1682 |
(not strictly necessary for NOT_ENCODED scripts) |
| 1683 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 1684 |
|
| 1685 |
* build ICU (make install) |
| 1686 |
to make sure that there are no syntax errors, and |
| 1687 |
so that the tools build can pick up the new definitions from the installed header files. |
| 1688 |
|
| 1689 |
$ICU_ROOT/dbg/icu4c$ echo;echo; date; make -j7 install &> out.txt ; tail -n 30 out.txt ; date |
| 1690 |
|
| 1691 |
* update spoof checker UnicodeSet initializers: |
| 1692 |
inclusionPat & recommendedPat in i18n/uspoof.cpp |
| 1693 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 1694 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 1695 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 1696 |
- update the hardcoded version number there in the DIRECTORY path |
| 1697 |
- run the tool (no special environment variables needed) |
| 1698 |
- copy & paste from the Console output into the .cpp & .java files |
| 1699 |
|
| 1700 |
* generate normalization data files |
| 1701 |
cd $ICU_ROOT/dbg/icu4c |
| 1702 |
bin/gennorm2 -o $ICU_SRC/icu4c/source/common/norm2_nfc_data.h -s $ICU4C_UNIDATA/norm2 nfc.txt --csource |
| 1703 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt |
| 1704 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt |
| 1705 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 1706 |
bin/gennorm2 -o $ICU4C_DATA_IN/uts46.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt uts46.txt |
| 1707 |
|
| 1708 |
* build ICU (make install) |
| 1709 |
so that the tools build can pick up the new definitions from the installed header files. |
| 1710 |
|
| 1711 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install &> out.txt ; tail -n 30 out.txt ; date |
| 1712 |
|
| 1713 |
* build Unicode tools using CMake+make |
| 1714 |
|
| 1715 |
$ICU_SRC/tools/unicode/c/icudefs.txt: |
| 1716 |
|
| 1717 |
# Location (--prefix) of where ICU was installed. |
| 1718 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/icu/mine/inst/icu4c) |
| 1719 |
# Location of the ICU4C source tree. |
| 1720 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/icu/uni/src/icu4c) |
| 1721 |
|
| 1722 |
$ICU_ROOT/dbg$ |
| 1723 |
mkdir -p tools/unicode/c |
| 1724 |
cd tools/unicode/c |
| 1725 |
|
| 1726 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 1727 |
cmake ../../../../src/tools/unicode/c |
| 1728 |
make |
| 1729 |
|
| 1730 |
* generate core properties data files |
| 1731 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 1732 |
genprops/genprops $ICU_SRC/icu4c |
| 1733 |
- tool failure: |
| 1734 |
genprops: Script_Extensions indexes overflow bit field |
| 1735 |
genprops: error parsing or setting values from ppucd.txt line 32696 - U_BUFFER_OVERFLOW_ERROR |
| 1736 |
-> uprops.icu data file format : |
| 1737 |
add two more bits to store a script code or Script_Extensions index |
| 1738 |
-> generator code, C++ & Java runtime, uprops.icu format version 7.7 |
| 1739 |
- rebuild ICU (make install) & tools |
| 1740 |
|
| 1741 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 1742 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 1743 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 1744 |
- Unicode 6.0..13.0: U+2260, U+226E, U+226F |
| 1745 |
- nothing new in this Unicode version, no test file to update |
| 1746 |
|
| 1747 |
* run & fix ICU4C tests |
| 1748 |
- fix Unicode Tools class Segmenter to generate correct *BreakTest.txt files |
| 1749 |
- Andy helps with RBBI & spoof check test failures |
| 1750 |
|
| 1751 |
* collation: CLDR collation root, UCA DUCET |
| 1752 |
|
| 1753 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 1754 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 1755 |
diff the main mapping file, look for bad changes |
| 1756 |
(for example, more bytes per weight for common characters) |
| 1757 |
~/svn.unitools/trunk$ sed -r -f ~/cldr/uni/src/tools/scripts/uca/blankweights.sed ../Generated/UCA/13.0.0/CollationAuxiliary/FractionalUCA.txt > ../frac-13.0.txt |
| 1758 |
~/svn.unitools/trunk$ meld ../frac-12.1.txt ../frac-13.0.txt |
| 1759 |
|
| 1760 |
- CLDR root data files are checked into $CLDR_SRC/common/uca/ |
| 1761 |
cp (Unicode Tools UCA generated)/CollationAuxiliary/* $CLDR_SRC/common/uca/ |
| 1762 |
|
| 1763 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 1764 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 1765 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 1766 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 1767 |
(note removing the underscore before "Rules") |
| 1768 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 1769 |
- restore TODO diffs in UCARules.txt |
| 1770 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 1771 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 1772 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 1773 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 1774 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 1775 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 1776 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 1777 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 1778 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 1779 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 1780 |
|
| 1781 |
- run genuca |
| 1782 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 1783 |
genuca/genuca --hanOrder implicit $ICU_SRC/icu4c && \ |
| 1784 |
genuca/genuca --hanOrder radical-stroke $ICU_SRC/icu4c |
| 1785 |
- rebuild ICU4C |
| 1786 |
|
| 1787 |
* Unihan collators |
| 1788 |
https://sites.google.com/site/unicodetools/unihan |
| 1789 |
- run Unicode Tools |
| 1790 |
org.unicode.draft.GenerateUnihanCollators |
| 1791 |
with VM arguments |
| 1792 |
-ea |
| 1793 |
-DSVN_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools/trunk |
| 1794 |
-DOTHER_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools |
| 1795 |
-DUCD_DIR=/usr/local/google/home/mscherer/svn.unitools/trunk/data |
| 1796 |
-DCLDR_DIR=/usr/local/google/home/mscherer/cldr/uni/src |
| 1797 |
-DUVERSION=13.0.0 |
| 1798 |
- run Unicode Tools |
| 1799 |
org.unicode.draft.GenerateUnihanCollatorFiles |
| 1800 |
with the same arguments |
| 1801 |
- check CLDR diffs |
| 1802 |
cd $CLDR_SRC |
| 1803 |
meld common/collation/zh.xml ../Generated/cldr/han/replace/zh.xml |
| 1804 |
meld common/transforms/Han-Latin.xml ../Generated/cldr/han/replace/Han-Latin.xml |
| 1805 |
- copy to CLDR |
| 1806 |
cd $CLDR_SRC |
| 1807 |
cp ../Generated/cldr/han/replace/zh.xml common/collation/zh.xml |
| 1808 |
cp ../Generated/cldr/han/replace/Han-Latin.xml common/transforms/Han-Latin.xml |
| 1809 |
- run CLDR unit tests, commit to CLDR |
| 1810 |
- generate ICU zh collation data: run CLDR |
| 1811 |
org.unicode.cldr.icu.NewLdml2IcuConverter |
| 1812 |
with program arguments |
| 1813 |
-t collation |
| 1814 |
-s /usr/local/google/home/mscherer/cldr/uni/src/common/collation |
| 1815 |
-m /usr/local/google/home/mscherer/cldr/uni/src/common/supplemental |
| 1816 |
-d /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/coll |
| 1817 |
-p /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/xml/collation |
| 1818 |
zh |
| 1819 |
and VM arguments |
| 1820 |
-ea |
| 1821 |
-DCLDR_DIR=/usr/local/google/home/mscherer/cldr/uni/src |
| 1822 |
- rebuild ICU4C |
| 1823 |
|
| 1824 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 1825 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 1826 |
(the full ones have comments, useful for debugging) |
| 1827 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 1828 |
utility/MultithreadTest/TestCollators will fail as well; |
| 1829 |
fix the conformance test before looking into the multi-thread test |
| 1830 |
|
| 1831 |
* update Java data files |
| 1832 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 1833 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 1834 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1835 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 1836 |
output: |
| 1837 |
... |
| 1838 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 1839 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt66b |
| 1840 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt66b |
| 1841 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt66l.dat ./out/icu4j/icudt66b.dat -s ./out/build/icudt66l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt66b |
| 1842 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt66b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt66b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt66b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt66b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt66b" |
| 1843 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt66b/ |
| 1844 |
mkdir -p /tmp/icu4j/main/shared/data |
| 1845 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 1846 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt66b/ |
| 1847 |
mkdir -p /tmp/icu4j/main/shared/data |
| 1848 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 1849 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 1850 |
- copy the big-endian Unicode data files to another location, |
| 1851 |
separate from the other data files, |
| 1852 |
and then refresh ICU4J |
| 1853 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 1854 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 1855 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 1856 |
cp -v com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1857 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1858 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 1859 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 1860 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 1861 |
cp -v com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 1862 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 1863 |
|
| 1864 |
* When refreshing all of ICU4J data from ICU4C |
| 1865 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 1866 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 1867 |
or |
| 1868 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 1869 |
|
| 1870 |
* update CollationFCD.java |
| 1871 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 1872 |
ICU4C/source/i18n/collationfcd.cpp to |
| 1873 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 1874 |
|
| 1875 |
* refresh Java test .txt files |
| 1876 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1877 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 1878 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1879 |
cd ../../test/testdata |
| 1880 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1881 |
cp -v $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 1882 |
|
| 1883 |
* run & fix ICU4J tests |
| 1884 |
|
| 1885 |
*** API additions |
| 1886 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 1887 |
|
| 1888 |
*** CLDR numbering systems |
| 1889 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 1890 |
for example, look for |
| 1891 |
~/icu/uni/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt |
| 1892 |
in new blocks (Blocks.txt) |
| 1893 |
Unicode 13: |
| 1894 |
diak 11950..11959 Dives_Akuru |
| 1895 |
|
| 1896 |
*** merge the Unicode update branches back onto the trunk |
| 1897 |
- do not merge the icudata.jar and testdata.jar, |
| 1898 |
instead rebuild them from merged & tested ICU4C |
| 1899 |
- make sure that changes to Unicode tools are checked in: |
| 1900 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 1901 |
|
| 1902 |
---------------------------------------------------------------------------- *** |
| 1903 |
|
| 1904 |
Unicode 12.1 update for ICU 64.2 |
| 1905 |
|
| 1906 |
** This is an abbreviated update with one new character for the new |
| 1907 |
** Japanese era expected to start on 2019-May-01: U+32FF SQUARE ERA NAME REIWA |
| 1908 |
https://en.wikipedia.org/wiki/Reiwa_period |
| 1909 |
|
| 1910 |
http://www.unicode.org/versions/Unicode12.1.0/ |
| 1911 |
|
| 1912 |
ICU-20497 Unicode 12.1 |
| 1913 |
|
| 1914 |
cldrbug 11978: Unicode 12.1 |
| 1915 |
|
| 1916 |
* Command-line environment setup |
| 1917 |
|
| 1918 |
UNICODE_DATA=~/unidata/uni121/20190403 |
| 1919 |
CLDR_SRC=~/svn.cldr/uni |
| 1920 |
ICU_ROOT=~/icu/uni |
| 1921 |
ICU_SRC=$ICU_ROOT/src |
| 1922 |
ICUDT=icudt64b |
| 1923 |
ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 1924 |
ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 1925 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 1926 |
|
| 1927 |
*** Unicode version numbers |
| 1928 |
- makedata.mak |
| 1929 |
- uchar.h |
| 1930 |
- com.ibm.icu.util.VersionInfo |
| 1931 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 1932 |
|
| 1933 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 1934 |
so that the makefiles see the new version number. |
| 1935 |
cd $ICU_ROOT/dbg/icu4c |
| 1936 |
ICU_DATA_BUILDTOOL_OPTS=--include_uni_core_data ../../../doconfig-clang-dbg.sh |
| 1937 |
|
| 1938 |
*** data files & enums & parser code |
| 1939 |
|
| 1940 |
* download files |
| 1941 |
- mkdir -p $UNICODE_DATA |
| 1942 |
- download Unicode files into $UNICODE_DATA |
| 1943 |
+ subfolders: emoji, idna, security, ucd, uca |
| 1944 |
+ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 1945 |
|
| 1946 |
* for manual diffs and for Unicode Tools input data updates: |
| 1947 |
remove version suffixes from the file names |
| 1948 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 1949 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 1950 |
|
| 1951 |
* process and/or copy files |
| 1952 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 1953 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 1954 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 1955 |
the tool has an --only_ppucd option: |
| 1956 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 1957 |
|
| 1958 |
- cp -v $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 1959 |
|
| 1960 |
* build ICU (make install) |
| 1961 |
so that the tools build can pick up the new definitions from the installed header files. |
| 1962 |
|
| 1963 |
$ICU_ROOT/dbg/icu4c$ echo;echo; date; make -j7 install &> out.txt ; tail -n 30 out.txt ; date |
| 1964 |
|
| 1965 |
* update spoof checker UnicodeSet initializers: |
| 1966 |
inclusionPat & recommendedPat in uspoof.cpp |
| 1967 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 1968 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 1969 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 1970 |
- update the hardcoded version number there in the DIRECTORY path |
| 1971 |
- run the tool (no special environment variables needed) |
| 1972 |
- copy & paste from the Console output into the .cpp & .java files |
| 1973 |
|
| 1974 |
* generate normalization data files |
| 1975 |
cd $ICU_ROOT/dbg/icu4c |
| 1976 |
bin/gennorm2 -o $ICU_SRC/icu4c/source/common/norm2_nfc_data.h -s $ICU4C_UNIDATA/norm2 nfc.txt --csource |
| 1977 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt |
| 1978 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt |
| 1979 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 1980 |
bin/gennorm2 -o $ICU4C_DATA_IN/uts46.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt uts46.txt |
| 1981 |
|
| 1982 |
* build ICU (make install) |
| 1983 |
so that the tools build can pick up the new definitions from the installed header files. |
| 1984 |
|
| 1985 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install &> out.txt ; tail -n 30 out.txt ; date |
| 1986 |
|
| 1987 |
* build Unicode tools using CMake+make |
| 1988 |
|
| 1989 |
$ICU_SRC/tools/unicode/c/icudefs.txt: |
| 1990 |
|
| 1991 |
# Location (--prefix) of where ICU was installed. |
| 1992 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/icu/mine/inst/icu4c) |
| 1993 |
# Location of the ICU4C source tree. |
| 1994 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/icu/uni/src/icu4c) |
| 1995 |
|
| 1996 |
$ICU_ROOT/dbg$ |
| 1997 |
mkdir -p tools/unicode/c |
| 1998 |
cd tools/unicode/c |
| 1999 |
|
| 2000 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2001 |
cmake ../../../../src/tools/unicode/c |
| 2002 |
make |
| 2003 |
|
| 2004 |
* generate core properties data files |
| 2005 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2006 |
genprops/genprops $ICU_SRC/icu4c |
| 2007 |
genuca/genuca --hanOrder implicit $ICU_SRC/icu4c && \ |
| 2008 |
genuca/genuca --hanOrder radical-stroke $ICU_SRC/icu4c |
| 2009 |
- rebuild ICU (make install) & tools |
| 2010 |
|
| 2011 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 2012 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 2013 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 2014 |
- Unicode 6.0..12.1: U+2260, U+226E, U+226F |
| 2015 |
- nothing new in this Unicode version, no test file to update |
| 2016 |
|
| 2017 |
* run & fix ICU4C tests |
| 2018 |
- Andy handles RBBI & spoof check test failures |
| 2019 |
|
| 2020 |
* collation: CLDR collation root, UCA DUCET |
| 2021 |
|
| 2022 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 2023 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 2024 |
diff the main mapping file, look for bad changes |
| 2025 |
(for example, more bytes per weight for common characters) |
| 2026 |
~/svn.unitools/trunk$ sed -r -f ~/svn.cldr/uni/tools/scripts/uca/blankweights.sed ../Generated/UCA/12.1.0/CollationAuxiliary/FractionalUCA.txt > ../frac-12.1.txt |
| 2027 |
~/svn.unitools/trunk$ meld ../frac-12.txt ../frac-12.1.txt |
| 2028 |
|
| 2029 |
- CLDR root data files are checked into $CLDR_SRC/common/uca/ |
| 2030 |
cp (Unicode Tools UCA generated)/CollationAuxiliary/* $CLDR_SRC/common/uca/ |
| 2031 |
|
| 2032 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 2033 |
cp -v $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 2034 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 2035 |
cp -v $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 2036 |
(note removing the underscore before "Rules") |
| 2037 |
cp -v $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 2038 |
- restore TODO diffs in UCARules.txt |
| 2039 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 2040 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 2041 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 2042 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 2043 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 2044 |
cp -v $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 2045 |
cp -v $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 2046 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 2047 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 2048 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 2049 |
|
| 2050 |
- run genuca, see command line above |
| 2051 |
- rebuild ICU4C |
| 2052 |
|
| 2053 |
* Unihan collators |
| 2054 |
https://sites.google.com/site/unicodetools/unihan |
| 2055 |
- run Unicode Tools |
| 2056 |
org.unicode.draft.GenerateUnihanCollators |
| 2057 |
with VM arguments |
| 2058 |
-ea |
| 2059 |
-DSVN_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools/trunk |
| 2060 |
-DOTHER_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools |
| 2061 |
-DUCD_DIR=/usr/local/google/home/mscherer/svn.unitools/trunk/data |
| 2062 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni |
| 2063 |
-DUVERSION=12.1.0 |
| 2064 |
- run Unicode Tools |
| 2065 |
org.unicode.draft.GenerateUnihanCollatorFiles |
| 2066 |
with the same arguments |
| 2067 |
- check CLDR diffs |
| 2068 |
cd $CLDR_SRC |
| 2069 |
meld common/collation/zh.xml ../Generated/cldr/han/replace/zh.xml |
| 2070 |
meld common/transforms/Han-Latin.xml ../Generated/cldr/han/replace/Han-Latin.xml |
| 2071 |
- copy to CLDR |
| 2072 |
cd $CLDR_SRC |
| 2073 |
cp ../Generated/cldr/han/replace/zh.xml common/collation/zh.xml |
| 2074 |
cp ../Generated/cldr/han/replace/Han-Latin.xml common/transforms/Han-Latin.xml |
| 2075 |
- run CLDR unit tests, commit to CLDR |
| 2076 |
- generate ICU zh collation data: run CLDR |
| 2077 |
org.unicode.cldr.icu.NewLdml2IcuConverter |
| 2078 |
with program arguments |
| 2079 |
-t collation |
| 2080 |
-s /usr/local/google/home/mscherer/svn.cldr/uni/common/collation |
| 2081 |
-m /usr/local/google/home/mscherer/svn.cldr/uni/common/supplemental |
| 2082 |
-d /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/coll |
| 2083 |
-p /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/xml/collation |
| 2084 |
zh |
| 2085 |
and VM arguments |
| 2086 |
-ea |
| 2087 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni |
| 2088 |
- rebuild ICU4C |
| 2089 |
|
| 2090 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 2091 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 2092 |
(the full ones have comments, useful for debugging) |
| 2093 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 2094 |
utility/MultithreadTest/TestCollators will fail as well; |
| 2095 |
fix the conformance test before looking into the multi-thread test |
| 2096 |
|
| 2097 |
* update Java data files |
| 2098 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 2099 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 2100 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2101 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2102 |
output: |
| 2103 |
... |
| 2104 |
make[1]: Entering directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 2105 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt64b |
| 2106 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt64b |
| 2107 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt64l.dat ./out/icu4j/icudt64b.dat -s ./out/build/icudt64l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt64b |
| 2108 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt64b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt64b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt64b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt64b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt64b" |
| 2109 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt64b/ |
| 2110 |
mkdir -p /tmp/icu4j/main/shared/data |
| 2111 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 2112 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt64b/ |
| 2113 |
mkdir -p /tmp/icu4j/main/shared/data |
| 2114 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 2115 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 2116 |
- copy the big-endian Unicode data files to another location, |
| 2117 |
separate from the other data files, |
| 2118 |
and then refresh ICU4J |
| 2119 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 2120 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 2121 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 2122 |
cp -v com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2123 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2124 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 2125 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2126 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 2127 |
cp -v com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 2128 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 2129 |
|
| 2130 |
* When refreshing all of ICU4J data from ICU4C |
| 2131 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2132 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 2133 |
or |
| 2134 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 2135 |
|
| 2136 |
* update CollationFCD.java |
| 2137 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 2138 |
ICU4C/source/i18n/collationfcd.cpp to |
| 2139 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 2140 |
|
| 2141 |
* refresh Java test .txt files |
| 2142 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2143 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 2144 |
cp -v confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2145 |
cd ../../test/testdata |
| 2146 |
cp -v BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2147 |
cp -v $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2148 |
|
| 2149 |
* run & fix ICU4J tests |
| 2150 |
|
| 2151 |
*** API additions |
| 2152 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 2153 |
|
| 2154 |
*** CLDR numbering systems |
| 2155 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 2156 |
for example, look for |
| 2157 |
~/icu/uni/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt |
| 2158 |
in new blocks (Blocks.txt) |
| 2159 |
Unicode 12: using Unicode 12 CLDR ticket #11478 |
| 2160 |
hmnp 1E140..1E149 Nyiakeng_Puachue_Hmong |
| 2161 |
wcho 1E2F0..1E2F9 Wancho |
| 2162 |
Unicode 11: using Unicode 11 CLDR ticket #10978 |
| 2163 |
rohg 10D30..10D39 Hanifi_Rohingya |
| 2164 |
gong 11DA0..11DA9 Gunjala_Gondi |
| 2165 |
Earlier: CLDR tickets specific to adding new numbering systems. |
| 2166 |
Unicode 10: http://unicode.org/cldr/trac/ticket/10219 |
| 2167 |
Unicode 9: http://unicode.org/cldr/trac/ticket/9692 |
| 2168 |
|
| 2169 |
*** merge the Unicode update branches back onto the trunk |
| 2170 |
- do not merge the icudata.jar and testdata.jar, |
| 2171 |
instead rebuild them from merged & tested ICU4C |
| 2172 |
- make sure that changes to Unicode tools are checked in: |
| 2173 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 2174 |
|
| 2175 |
---------------------------------------------------------------------------- *** |
| 2176 |
|
| 2177 |
Unicode 12.0 update for ICU 64 |
| 2178 |
|
| 2179 |
http://www.unicode.org/versions/Unicode12.0.0/ |
| 2180 |
http://unicode.org/versions/beta-12.0.0.html |
| 2181 |
https://www.unicode.org/review/pri389/ |
| 2182 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 2183 |
http://www.unicode.org/reports/tr44/tr44-23.html |
| 2184 |
|
| 2185 |
ICU-20203 Unicode 12 |
| 2186 |
|
| 2187 |
ICU-20111 move text layout properties data into a data file |
| 2188 |
|
| 2189 |
cldrbug 11478: Unicode 12 |
| 2190 |
Accidentally used ^/trunk instead of ^/branches/markus/uni12 |
| 2191 |
|
| 2192 |
* Command-line environment setup |
| 2193 |
|
| 2194 |
UNICODE_DATA=~/unidata/uni12/20190309 |
| 2195 |
CLDR_SRC=~/svn.cldr/uni |
| 2196 |
ICU_ROOT=~/icu/uni |
| 2197 |
ICU_SRC=$ICU_ROOT/src |
| 2198 |
ICUDT=icudt63b |
| 2199 |
ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 2200 |
ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 2201 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 2202 |
|
| 2203 |
*** Unicode version numbers |
| 2204 |
- makedata.mak |
| 2205 |
- uchar.h |
| 2206 |
- com.ibm.icu.util.VersionInfo |
| 2207 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 2208 |
|
| 2209 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 2210 |
so that the makefiles see the new version number. |
| 2211 |
|
| 2212 |
*** data files & enums & parser code |
| 2213 |
|
| 2214 |
* download files |
| 2215 |
- mkdir -p $UNICODE_DATA |
| 2216 |
- download Unicode files into $UNICODE_DATA |
| 2217 |
+ subfolders: emoji, idna, security, ucd, uca |
| 2218 |
+ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 2219 |
|
| 2220 |
* for manual diffs and for Unicode Tools input data updates: |
| 2221 |
remove version suffixes from the file names |
| 2222 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 2223 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 2224 |
|
| 2225 |
* process and/or copy files |
| 2226 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 2227 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 2228 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 2229 |
the tool has an --only_ppucd option: |
| 2230 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 2231 |
|
| 2232 |
- cp $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 2233 |
|
| 2234 |
* build ICU (make install) |
| 2235 |
so that the tools build can pick up the new definitions from the installed header files. |
| 2236 |
|
| 2237 |
$ICU_ROOT/dbg/icu4c$ echo;echo; date; make -j7 install &> out.txt ; tail -n 30 out.txt ; date |
| 2238 |
|
| 2239 |
* new constants for new property values |
| 2240 |
- preparseucd.py error: |
| 2241 |
ValueError: missing uchar.h enum constants for some property values: |
| 2242 |
[(u'blk', set([u'Symbols_And_Pictographs_Ext_A', u'Elymaic', |
| 2243 |
u'Ottoman_Siyaq_Numbers', u'Nandinagari', u'Nyiakeng_Puachue_Hmong', |
| 2244 |
u'Small_Kana_Ext', u'Egyptian_Hieroglyph_Format_Controls', u'Wancho', u'Tamil_Sup'])), |
| 2245 |
(u'sc', set([u'Nand', u'Wcho', u'Elym', u'Hmnp']))] |
| 2246 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 2247 |
blk; Egyptian_Hieroglyph_Format_Controls; Egyptian_Hieroglyph_Format_Controls |
| 2248 |
blk; Elymaic ; Elymaic |
| 2249 |
blk; Nandinagari ; Nandinagari |
| 2250 |
blk; Nyiakeng_Puachue_Hmong ; Nyiakeng_Puachue_Hmong |
| 2251 |
blk; Ottoman_Siyaq_Numbers ; Ottoman_Siyaq_Numbers |
| 2252 |
blk; Small_Kana_Ext ; Small_Kana_Extension |
| 2253 |
blk; Symbols_And_Pictographs_Ext_A ; Symbols_And_Pictographs_Extended_A |
| 2254 |
blk; Tamil_Sup ; Tamil_Supplement |
| 2255 |
blk; Wancho ; Wancho |
| 2256 |
-> add to uchar.h |
| 2257 |
use long property names for enum constants, |
| 2258 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 2259 |
-> add to UCharacter.UnicodeBlock IDs |
| 2260 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 2261 |
replace public static final int \1_ID = \2; \3 |
| 2262 |
-> add to UCharacter.UnicodeBlock objects |
| 2263 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 2264 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \3 |
| 2265 |
|
| 2266 |
sc ; Elym ; Elymaic |
| 2267 |
sc ; Hmnp ; Nyiakeng_Puachue_Hmong |
| 2268 |
sc ; Nand ; Nandinagari |
| 2269 |
sc ; Wcho ; Wancho |
| 2270 |
-> uscript.h & com.ibm.icu.lang.UScript |
| 2271 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 2272 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 2273 |
|
| 2274 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 2275 |
(not strictly necessary for NOT_ENCODED scripts) |
| 2276 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 2277 |
|
| 2278 |
* update spoof checker UnicodeSet initializers: |
| 2279 |
inclusionPat & recommendedPat in uspoof.cpp |
| 2280 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 2281 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 2282 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 2283 |
- update the hardcoded version number there in the DIRECTORY path |
| 2284 |
- run the tool (no special environment variables needed) |
| 2285 |
- copy & paste from the Console output into the .cpp & .java files |
| 2286 |
|
| 2287 |
* generate normalization data files |
| 2288 |
cd $ICU_ROOT/dbg/icu4c |
| 2289 |
bin/gennorm2 -o $ICU_SRC/icu4c/source/common/norm2_nfc_data.h -s $ICU4C_UNIDATA/norm2 nfc.txt --csource |
| 2290 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt |
| 2291 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt |
| 2292 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 2293 |
bin/gennorm2 -o $ICU4C_DATA_IN/uts46.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt uts46.txt |
| 2294 |
|
| 2295 |
* build ICU (make install) |
| 2296 |
so that the tools build can pick up the new definitions from the installed header files. |
| 2297 |
|
| 2298 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install &> out.txt ; tail -n 30 out.txt ; date |
| 2299 |
|
| 2300 |
* build Unicode tools using CMake+make |
| 2301 |
|
| 2302 |
$ICU_SRC/tools/unicode/c/icudefs.txt: |
| 2303 |
|
| 2304 |
# Location (--prefix) of where ICU was installed. |
| 2305 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/icu/mine/inst/icu4c) |
| 2306 |
# Location of the ICU4C source tree. |
| 2307 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/icu/uni/src/icu4c) |
| 2308 |
|
| 2309 |
$ICU_ROOT/dbg$ |
| 2310 |
mkdir -p tools/unicode/c |
| 2311 |
cd tools/unicode/c |
| 2312 |
|
| 2313 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2314 |
cmake ../../../../src/tools/unicode/c |
| 2315 |
make |
| 2316 |
|
| 2317 |
* generate core properties data files |
| 2318 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2319 |
genprops/genprops $ICU_SRC/icu4c |
| 2320 |
genuca/genuca --hanOrder implicit $ICU_SRC/icu4c && \ |
| 2321 |
genuca/genuca --hanOrder radical-stroke $ICU_SRC/icu4c |
| 2322 |
- rebuild ICU (make install) & tools |
| 2323 |
|
| 2324 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 2325 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 2326 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 2327 |
- Unicode 6.0..12.0: U+2260, U+226E, U+226F |
| 2328 |
- nothing new in this Unicode version, no test file to update |
| 2329 |
|
| 2330 |
* run & fix ICU4C tests |
| 2331 |
- update test of default bidi classes: |
| 2332 |
Bidi range \U0001ED00-\U0001ED4F changes default from R to AL, |
| 2333 |
see diffs in DerivedBidiClass.txt |
| 2334 |
+ /tsutil/cucdtst/TestUnicodeData enumDefaultsRange() defaultBidi[] |
| 2335 |
+ UCharacterTest.java TestIteration() defaultBidi[] |
| 2336 |
- Andy handles RBBI & spoof check test failures |
| 2337 |
|
| 2338 |
* collation: CLDR collation root, UCA DUCET |
| 2339 |
|
| 2340 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 2341 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 2342 |
diff the main mapping file, look for bad changes |
| 2343 |
(for example, more bytes per weight for common characters) |
| 2344 |
~/svn.unitools/trunk$ sed -r -f ~/svn.cldr/uni/tools/scripts/uca/blankweights.sed ../Generated/UCA/12.0.0/CollationAuxiliary/FractionalUCA.txt > ../frac-12.txt |
| 2345 |
~/svn.unitools/trunk$ meld ../frac-11.txt ../frac-12.txt |
| 2346 |
|
| 2347 |
- CLDR root data files are checked into $CLDR_SRC/common/uca/ |
| 2348 |
cp (Unicode Tools UCA generated)/CollationAuxiliary/* $CLDR_SRC/common/uca/ |
| 2349 |
|
| 2350 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 2351 |
cp $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 2352 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 2353 |
cp $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 2354 |
(note removing the underscore before "Rules") |
| 2355 |
cp $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 2356 |
- restore TODO diffs in UCARules.txt |
| 2357 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 2358 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 2359 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 2360 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 2361 |
cp $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 2362 |
cp $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 2363 |
cp $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 2364 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 2365 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 2366 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 2367 |
|
| 2368 |
- run genuca, see command line above; |
| 2369 |
deal with |
| 2370 |
Error: Unknown script for first-primary sample character U+119CE on line 29233 of /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/unidata/FractionalUCA.txt: |
| 2371 |
FDD1 119CE; [71 CD 02, 05, 05] # Nandinagari first primary (compressible) |
| 2372 |
(add the character to genuca.cpp sampleCharsToScripts[]) |
| 2373 |
+ This time, I added code to genuca.cpp to use uscript_getSampleUnicodeString(script) |
| 2374 |
and cache its values. |
| 2375 |
Works as long as the script metadata is updated before the collation data. |
| 2376 |
- rebuild ICU4C |
| 2377 |
|
| 2378 |
* Unihan collators |
| 2379 |
https://sites.google.com/site/unicodetools/unihan |
| 2380 |
- run Unicode Tools |
| 2381 |
org.unicode.draft.GenerateUnihanCollators |
| 2382 |
with VM arguments |
| 2383 |
-ea |
| 2384 |
-DSVN_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools/trunk |
| 2385 |
-DOTHER_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools |
| 2386 |
-DUCD_DIR=/usr/local/google/home/mscherer/svn.unitools/trunk/data |
| 2387 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni |
| 2388 |
-DUVERSION=12.0.0 |
| 2389 |
- run Unicode Tools |
| 2390 |
org.unicode.draft.GenerateUnihanCollatorFiles |
| 2391 |
with the same arguments |
| 2392 |
- check CLDR diffs |
| 2393 |
cd $CLDR_SRC |
| 2394 |
meld common/collation/zh.xml ../Generated/cldr/han/replace/zh.xml |
| 2395 |
meld common/transforms/Han-Latin.xml ../Generated/cldr/han/replace/Han-Latin.xml |
| 2396 |
- copy to CLDR |
| 2397 |
cd $CLDR_SRC |
| 2398 |
cp ../Generated/cldr/han/replace/zh.xml common/collation/zh.xml |
| 2399 |
cp ../Generated/cldr/han/replace/Han-Latin.xml common/transforms/Han-Latin.xml |
| 2400 |
- run CLDR unit tests, commit to CLDR |
| 2401 |
- generate ICU zh collation data: run CLDR |
| 2402 |
org.unicode.cldr.icu.NewLdml2IcuConverter |
| 2403 |
with program arguments |
| 2404 |
-t collation |
| 2405 |
-s /usr/local/google/home/mscherer/svn.cldr/uni/common/collation |
| 2406 |
-m /usr/local/google/home/mscherer/svn.cldr/uni/common/supplemental |
| 2407 |
-d /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/coll |
| 2408 |
-p /usr/local/google/home/mscherer/icu/uni/src/icu4c/source/data/xml/collation |
| 2409 |
zh |
| 2410 |
and VM arguments |
| 2411 |
-ea |
| 2412 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni |
| 2413 |
- rebuild ICU4C |
| 2414 |
|
| 2415 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 2416 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 2417 |
(the full ones have comments, useful for debugging) |
| 2418 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 2419 |
utility/MultithreadTest/TestCollators will fail as well; |
| 2420 |
fix the conformance test before looking into the multi-thread test |
| 2421 |
|
| 2422 |
* update Java data files |
| 2423 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 2424 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 2425 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2426 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2427 |
output: |
| 2428 |
... |
| 2429 |
Unicode .icu files built to ./out/build/icudt63l |
| 2430 |
echo timestamp > uni-core-data |
| 2431 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt63b |
| 2432 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt63b |
| 2433 |
echo pnames.icu uprops.icu ucase.icu ubidi.icu nfc.nrm > ./out/icu4j/add.txt |
| 2434 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt63l.dat ./out/icu4j/icudt63b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt63l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt63b |
| 2435 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt63b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt63b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt63b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt63b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt63b" |
| 2436 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt63b/ |
| 2437 |
mkdir -p /tmp/icu4j/main/shared/data |
| 2438 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 2439 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt63b/ |
| 2440 |
mkdir -p /tmp/icu4j/main/shared/data |
| 2441 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 2442 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/icu/uni/dbg/icu4c/data' |
| 2443 |
- copy the big-endian Unicode data files to another location, |
| 2444 |
separate from the other data files, |
| 2445 |
and then refresh ICU4J |
| 2446 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 2447 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 2448 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 2449 |
cp -v com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2450 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2451 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 2452 |
cp -v com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2453 |
cp -v com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 2454 |
cp -v com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 2455 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 2456 |
|
| 2457 |
* When refreshing all of ICU4J data from ICU4C |
| 2458 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2459 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 2460 |
or |
| 2461 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 2462 |
|
| 2463 |
* update CollationFCD.java |
| 2464 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 2465 |
ICU4C/source/i18n/collationfcd.cpp to |
| 2466 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 2467 |
|
| 2468 |
* refresh Java test .txt files |
| 2469 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2470 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 2471 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2472 |
cd ../../test/testdata |
| 2473 |
cp BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2474 |
cp $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2475 |
|
| 2476 |
* run & fix ICU4J tests |
| 2477 |
|
| 2478 |
*** API additions |
| 2479 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 2480 |
|
| 2481 |
*** CLDR numbering systems |
| 2482 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 2483 |
for example, look for |
| 2484 |
~/icu/uni/src$ egrep ';gc=Nd.+;nv=4' icu4c/source/data/unidata/ppucd.txt |
| 2485 |
in new blocks (Blocks.txt) |
| 2486 |
Unicode 12: using Unicode 12 CLDR ticket #11478 |
| 2487 |
hmnp 1E140..1E149 Nyiakeng_Puachue_Hmong |
| 2488 |
wcho 1E2F0..1E2F9 Wancho |
| 2489 |
Unicode 11: using Unicode 11 CLDR ticket #10978 |
| 2490 |
rohg 10D30..10D39 Hanifi_Rohingya |
| 2491 |
gong 11DA0..11DA9 Gunjala_Gondi |
| 2492 |
Earlier: CLDR tickets specific to adding new numbering systems. |
| 2493 |
Unicode 10: http://unicode.org/cldr/trac/ticket/10219 |
| 2494 |
Unicode 9: http://unicode.org/cldr/trac/ticket/9692 |
| 2495 |
|
| 2496 |
*** merge the Unicode update branches back onto the trunk |
| 2497 |
- do not merge the icudata.jar and testdata.jar, |
| 2498 |
instead rebuild them from merged & tested ICU4C |
| 2499 |
- make sure that changes to Unicode tools are checked in: |
| 2500 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 2501 |
|
| 2502 |
---------------------------------------------------------------------------- *** |
| 2503 |
|
| 2504 |
ICU 63 addition of ICU support of text layout properties InPC, InSC, vo |
| 2505 |
|
| 2506 |
* Command-line environment setup |
| 2507 |
|
| 2508 |
UNICODE_DATA=~/unidata/uni11/20180609 |
| 2509 |
CLDR_SRC=~/svn.cldr/uni |
| 2510 |
ICU_ROOT=~/icu/mine |
| 2511 |
ICU_SRC=$ICU_ROOT/src |
| 2512 |
ICUDT=icudt62b |
| 2513 |
ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 2514 |
ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 2515 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 2516 |
|
| 2517 |
*** Links |
| 2518 |
|
| 2519 |
https://unicode-org.atlassian.net/browse/ICU-8966 InPC & InSC |
| 2520 |
https://unicode-org.atlassian.net/browse/ICU-12850 vo |
| 2521 |
|
| 2522 |
*** data files & enums & parser code |
| 2523 |
|
| 2524 |
* API additions |
| 2525 |
- for each of the three new enumerated properties |
| 2526 |
+ uchar.h: add the enum UProperty constant UCHAR_<long prop name> |
| 2527 |
+ uchar.h: update UCHAR_INT_LIMIT |
| 2528 |
+ uchar.h: add the enum U<long prop name> |
| 2529 |
with constants U_<short prop name>_<long value name> |
| 2530 |
+ UProperty.java: add the constant <long prop name> |
| 2531 |
+ UProperty.java: update INT_LIMIT |
| 2532 |
+ UCharacter.java: add the interface <long prop name> |
| 2533 |
with constants <long value name> |
| 2534 |
|
| 2535 |
* process and/or copy files |
| 2536 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 2537 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 2538 |
+ It also writes tools/unicode/c/genprops/pnames_data.h with property and value |
| 2539 |
names and aliases. |
| 2540 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 2541 |
the tool has an --only_ppucd option: |
| 2542 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 2543 |
|
| 2544 |
* preparseucd.py changes |
| 2545 |
- add new property short names (uppercase) to _prop_and_value_re |
| 2546 |
so that ParseUCharHeader() parses the new enum constants |
| 2547 |
|
| 2548 |
* build ICU (make install) |
| 2549 |
so that the tools build can pick up the new definitions from the installed header files. |
| 2550 |
|
| 2551 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install > out.txt 2>&1 ; tail -n 30 out.txt ; date |
| 2552 |
|
| 2553 |
* build Unicode tools using CMake+make |
| 2554 |
|
| 2555 |
$ICU_SRC/tools/unicode/c/icudefs.txt: |
| 2556 |
|
| 2557 |
# Location (--prefix) of where ICU was installed. |
| 2558 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/icu/mine/inst/icu4c) |
| 2559 |
# Location of the ICU4C source tree. |
| 2560 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/icu/mine/src/icu4c) |
| 2561 |
|
| 2562 |
$ICU_ROOT/dbg$ |
| 2563 |
mkdir -p tools/unicode/c |
| 2564 |
cd tools/unicode/c |
| 2565 |
|
| 2566 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2567 |
cmake ../../../../../src/tools/unicode/c |
| 2568 |
make |
| 2569 |
|
| 2570 |
* generate core properties data files |
| 2571 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2572 |
genprops/genprops $ICU_SRC/icu4c |
| 2573 |
- rebuild ICU (make install) & tools |
| 2574 |
|
| 2575 |
* write data for runtime, hardcoded for now |
| 2576 |
- add genprops/layoutpropsbuilder.cpp with pieces from sibling files |
| 2577 |
- generate new icu4c/source/common/ulayout_props_data.h |
| 2578 |
- for each of the three new enumerated properties |
| 2579 |
+ int property max value |
| 2580 |
+ small, 8-bit UCPTrie |
| 2581 |
(A small 16-bit trie with bit fields for these three properties |
| 2582 |
is very nearly the same size as the sum of the three.) |
| 2583 |
|
| 2584 |
* wire into C++ |
| 2585 |
- uprops.cpp: #include ulayout_props_data.h |
| 2586 |
- uprops.cpp: add getInPC() etc. functions |
| 2587 |
- uprops.cpp: add lines to intProps[], include max values |
| 2588 |
- uprops.h: add UPropertySource constants |
| 2589 |
- uprops.cpp: add uprops_addPropertyStarts(src) |
| 2590 |
- uniset_props.cpp: add to UnicodeSet_initInclusion() |
| 2591 |
- intltest/ucdtest.cpp: write unit tests |
| 2592 |
|
| 2593 |
* update Java data files |
| 2594 |
- refresh just the pnames.icu file with the new property [value] names, just to be safe |
| 2595 |
- see $ICU_SRC/icu4c/source/data/icu4j-readme.txt |
| 2596 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2597 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2598 |
- copy the big-endian Unicode data files to another location, |
| 2599 |
separate from the other data files, |
| 2600 |
and then refresh ICU4J |
| 2601 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 2602 |
cp com/ibm/icu/impl/data/$ICUDT/pnames.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2603 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 2604 |
|
| 2605 |
* wire into Java |
| 2606 |
- UCharacterProperty.java: add new SRC_INPC etc. constants as in C++ |
| 2607 |
- UCharacterProperty.java: for each new property |
| 2608 |
+ create a nested class to hold its CodePointTrie |
| 2609 |
+ initialize it from a string literal |
| 2610 |
+ paste in the initializer printed by genprops |
| 2611 |
+ add a new IntProperty object to the intProps[] array |
| 2612 |
+ use the correct max int value for each property, also printed by genprops |
| 2613 |
- UCharacterProperty.java: add ulayout_addPropertyStarts(src, set) |
| 2614 |
- UnicodeSet.java: add to getInclusions() |
| 2615 |
- UCharacterTest.java: write unit tests |
| 2616 |
|
| 2617 |
---------------------------------------------------------------------------- *** |
| 2618 |
|
| 2619 |
Unicode 11.0 update for ICU 62 |
| 2620 |
|
| 2621 |
http://www.unicode.org/versions/Unicode11.0.0/ |
| 2622 |
http://unicode.org/versions/beta-11.0.0.html |
| 2623 |
https://www.unicode.org/review/pri372/ |
| 2624 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 2625 |
http://www.unicode.org/reports/tr44/tr44-21.html |
| 2626 |
|
| 2627 |
* Command-line environment setup |
| 2628 |
|
| 2629 |
UNICODE_DATA=~/unidata/uni11/20180521 |
| 2630 |
CLDR_SRC=~/svn.cldr/uni |
| 2631 |
ICU_ROOT=~/svn.icu/uni |
| 2632 |
ICU_SRC=$ICU_ROOT/src |
| 2633 |
ICUDT=icudt61b |
| 2634 |
ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 2635 |
ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 2636 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 2637 |
|
| 2638 |
*** ICU Trac |
| 2639 |
|
| 2640 |
- ticket:13630: Unicode 11 |
| 2641 |
- ^/branches/markus/uni11 |
| 2642 |
|
| 2643 |
*** CLDR Trac |
| 2644 |
|
| 2645 |
- cldrbug 10978: Unicode 11 |
| 2646 |
- ^/branches/markus/uni11 |
| 2647 |
|
| 2648 |
*** Unicode version numbers |
| 2649 |
- makedata.mak |
| 2650 |
- uchar.h |
| 2651 |
- com.ibm.icu.util.VersionInfo |
| 2652 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 2653 |
|
| 2654 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 2655 |
so that the makefiles see the new version number. |
| 2656 |
|
| 2657 |
*** data files & enums & parser code |
| 2658 |
|
| 2659 |
* download files |
| 2660 |
- mkdir -p $UNICODE_DATA |
| 2661 |
- download Unicode files into $UNICODE_DATA |
| 2662 |
+ subfolders: emoji, idna, security, ucd, uca |
| 2663 |
+ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 2664 |
|
| 2665 |
* for manual diffs and for Unicode Tools input data updates: |
| 2666 |
remove version suffixes from the file names |
| 2667 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 2668 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 2669 |
|
| 2670 |
* process and/or copy files |
| 2671 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 2672 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 2673 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 2674 |
the tool has an --only_ppucd option: |
| 2675 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 2676 |
|
| 2677 |
- cp $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 2678 |
|
| 2679 |
* build ICU (make install) |
| 2680 |
so that the tools build can pick up the new definitions from the installed header files. |
| 2681 |
|
| 2682 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install > out.txt 2>&1 ; tail -n 30 out.txt ; date |
| 2683 |
|
| 2684 |
* preparseucd.py changes |
| 2685 |
- fix other errors |
| 2686 |
NameError: unknown property Extended_Pictographic |
| 2687 |
-> add Extended_Pictographic binary property |
| 2688 |
-> add new short names for all Emoji properties |
| 2689 |
|
| 2690 |
* new constants for new property values |
| 2691 |
- preparseucd.py error: |
| 2692 |
ValueError: missing uchar.h enum constants for some property values: |
| 2693 |
[(u'blk', set([u'Georgian_Ext', u'Hanifi_Rohingya', u'Medefaidrin', u'Sogdian', u'Makasar', |
| 2694 |
u'Old_Sogdian', u'Dogra', u'Gunjala_Gondi', u'Chess_Symbols', u'Mayan_Numerals', |
| 2695 |
u'Indic_Siyaq_Numbers'])), |
| 2696 |
(u'jg', set([u'Hanifi_Rohingya_Kinna_Ya', u'Hanifi_Rohingya_Pa'])), |
| 2697 |
(u'sc', set([u'Medf', u'Sogd', u'Dogr', u'Rohg', u'Maka', u'Sogo', u'Gong'])), |
| 2698 |
(u'GCB', set([u'LinkC', u'Virama'])), |
| 2699 |
(u'WB', set([u'WSegSpace']))] |
| 2700 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 2701 |
blk; Chess_Symbols ; Chess_Symbols |
| 2702 |
blk; Dogra ; Dogra |
| 2703 |
blk; Georgian_Ext ; Georgian_Extended |
| 2704 |
blk; Gunjala_Gondi ; Gunjala_Gondi |
| 2705 |
blk; Hanifi_Rohingya ; Hanifi_Rohingya |
| 2706 |
blk; Indic_Siyaq_Numbers ; Indic_Siyaq_Numbers |
| 2707 |
blk; Makasar ; Makasar |
| 2708 |
blk; Mayan_Numerals ; Mayan_Numerals |
| 2709 |
blk; Medefaidrin ; Medefaidrin |
| 2710 |
blk; Old_Sogdian ; Old_Sogdian |
| 2711 |
blk; Sogdian ; Sogdian |
| 2712 |
-> add to uchar.h |
| 2713 |
use long property names for enum constants, |
| 2714 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 2715 |
-> add to UCharacter.UnicodeBlock IDs |
| 2716 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 2717 |
replace public static final int \1_ID = \2; \3 |
| 2718 |
-> add to UCharacter.UnicodeBlock objects |
| 2719 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 2720 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 2721 |
|
| 2722 |
GCB; LinkC ; LinkingConsonant |
| 2723 |
GCB; Virama ; Virama |
| 2724 |
-> uchar.h & UCharacter.GraphemeClusterBreak |
| 2725 |
-> these two later removed again: http://www.unicode.org/L2/L2018/18115.htm#155-A76 |
| 2726 |
|
| 2727 |
InSC; Consonant_Initial_Postfixed ; Consonant_Initial_Postfixed |
| 2728 |
-> ignore: ICU does not yet support this property |
| 2729 |
|
| 2730 |
jg ; Hanifi_Rohingya_Kinna_Ya ; Hanifi_Rohingya_Kinna_Ya |
| 2731 |
jg ; Hanifi_Rohingya_Pa ; Hanifi_Rohingya_Pa |
| 2732 |
-> uchar.h & UCharacter.JoiningGroup |
| 2733 |
|
| 2734 |
sc ; Dogr ; Dogra |
| 2735 |
sc ; Gong ; Gunjala_Gondi |
| 2736 |
sc ; Maka ; Makasar |
| 2737 |
sc ; Medf ; Medefaidrin |
| 2738 |
sc ; Rohg ; Hanifi_Rohingya |
| 2739 |
sc ; Sogd ; Sogdian |
| 2740 |
sc ; Sogo ; Old_Sogdian |
| 2741 |
-> uscript.h & com.ibm.icu.lang.UScript |
| 2742 |
-> Nushu had been added already |
| 2743 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 2744 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 2745 |
|
| 2746 |
WB ; WSegSpace ; WSegSpace |
| 2747 |
-> uchar.h & UCharacter.WordBreak |
| 2748 |
|
| 2749 |
* New short names for emoji properties |
| 2750 |
- see UTS #51 |
| 2751 |
- short names set in preparseucd.py |
| 2752 |
|
| 2753 |
* New properties |
| 2754 |
- boolean emoji property Extended_Pictographic |
| 2755 |
-> added in preparseucd.py |
| 2756 |
-> uchar.h & UProperty.java |
| 2757 |
- misc. property Equivalent_Unified_Ideograph (EqUIdeo) |
| 2758 |
as shown in PropertyValueAliases.txt |
| 2759 |
-> ignore for now |
| 2760 |
|
| 2761 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 2762 |
(not strictly necessary for NOT_ENCODED scripts) |
| 2763 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 2764 |
|
| 2765 |
* update spoof checker UnicodeSet initializers: |
| 2766 |
inclusionPat & recommendedPat in uspoof.cpp |
| 2767 |
INCLUSION & RECOMMENDED in SpoofChecker.java |
| 2768 |
- make sure that the Unicode Tools tree contains the latest security data files |
| 2769 |
- go to Unicode Tools org.unicode.text.tools.RecommendedSetGenerator |
| 2770 |
- update the hardcoded version number there in the DIRECTORY path |
| 2771 |
- run the tool (no special environment variables needed) |
| 2772 |
- copy & paste from the Console output into the .cpp & .java files |
| 2773 |
|
| 2774 |
* generate normalization data files |
| 2775 |
cd $ICU_ROOT/dbg/icu4c |
| 2776 |
bin/gennorm2 -o $ICU_SRC/icu4c/source/common/norm2_nfc_data.h -s $ICU4C_UNIDATA/norm2 nfc.txt --csource |
| 2777 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt |
| 2778 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt |
| 2779 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 2780 |
bin/gennorm2 -o $ICU4C_DATA_IN/uts46.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt uts46.txt |
| 2781 |
|
| 2782 |
* build ICU (make install) |
| 2783 |
so that the tools build can pick up the new definitions from the installed header files. |
| 2784 |
|
| 2785 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install > out.txt 2>&1 ; tail -n 30 out.txt ; date |
| 2786 |
|
| 2787 |
* build Unicode tools using CMake+make |
| 2788 |
|
| 2789 |
$ICU_SRC/tools/unicode/c/icudefs.txt: |
| 2790 |
|
| 2791 |
# Location (--prefix) of where ICU was installed. |
| 2792 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/svn.icu/trunk/inst/icu4c) |
| 2793 |
# Location of the ICU4C source tree. |
| 2794 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/svn.icu/uni/src/icu4c) |
| 2795 |
|
| 2796 |
$ICU_ROOT/dbg$ |
| 2797 |
mkdir -p tools/unicode/c |
| 2798 |
cd tools/unicode/c |
| 2799 |
|
| 2800 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2801 |
cmake ../../../../src/tools/unicode/c |
| 2802 |
make |
| 2803 |
|
| 2804 |
* generate core properties data files |
| 2805 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 2806 |
genprops/genprops $ICU_SRC/icu4c |
| 2807 |
genuca/genuca --hanOrder implicit $ICU_SRC/icu4c |
| 2808 |
genuca/genuca --hanOrder radical-stroke $ICU_SRC/icu4c |
| 2809 |
- rebuild ICU (make install) & tools |
| 2810 |
|
| 2811 |
* Fix case props |
| 2812 |
genprops error: casepropsbuilder: too many exceptions words |
| 2813 |
genprops error: failure finalizing the data - U_BUFFER_OVERFLOW_ERROR |
| 2814 |
- With the addition of Georgian Mtavruli capital letters, |
| 2815 |
there are now too many simple case mappings with big mapping deltas |
| 2816 |
that yield uncompressible exceptions. |
| 2817 |
- Changing the data structure (now formatVersion 4), |
| 2818 |
adding one bit for no-simple-case-folding (for Cherokee), and |
| 2819 |
one optional slot for a big delta (for most faraway mappings), |
| 2820 |
together with another bit for whether that is negative. |
| 2821 |
This makes most Cherokee & Georgian etc. case mappings compressible, |
| 2822 |
reducing the number of exceptions words. |
| 2823 |
- Further changes to gain one more bit for the exceptions index, |
| 2824 |
for future growth. Details see casepropsbuilder.cpp. |
| 2825 |
|
| 2826 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 2827 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 2828 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 2829 |
- Unicode 6.0..11.0: U+2260, U+226E, U+226F |
| 2830 |
- nothing new in this Unicode version, no test file to update |
| 2831 |
|
| 2832 |
* run & fix ICU4C tests |
| 2833 |
- Andy handles RBBI & spoof check test failures |
| 2834 |
|
| 2835 |
- Errors in char.txt, word.txt, word_POSIX.txt like |
| 2836 |
createRuleBasedBreakIterator: ICU Error "U_BRK_RULE_EMPTY_SET" at line 46, column 16 |
| 2837 |
because \p{Grapheme_Cluster_Break = EBG} and \p{Word_Break = EBG} are empty. |
| 2838 |
-> Temporary(!) workaround: Add an arbitrary code point to these sets to make them |
| 2839 |
not empty, just to get ICU building. |
| 2840 |
-> Intermediate workaround: Remove $E_Base_GAZ and other now-unused variables |
| 2841 |
and properties together with the rules that used them (GB 10, WB 14). |
| 2842 |
-> Andy adjusts the rule sets further to sync with |
| 2843 |
Unicode 11 grapheme, word, and line break spec changes. |
| 2844 |
|
| 2845 |
* collation: CLDR collation root, UCA DUCET |
| 2846 |
|
| 2847 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 2848 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 2849 |
diff the main mapping file, look for bad changes |
| 2850 |
(for example, more bytes per weight for common characters) |
| 2851 |
~/svn.unitools/trunk$ sed -r -f ~/svn.cldr/uni/tools/scripts/uca/blankweights.sed ../Generated/uca/11.0.0/CollationAuxiliary/FractionalUCA.txt > ../frac-11.txt |
| 2852 |
~/svn.unitools/trunk$ meld ../frac-10.txt ../frac-11.txt |
| 2853 |
|
| 2854 |
- CLDR root data files are checked into $CLDR_SRC/common/uca/ |
| 2855 |
cp (Unicode Tools UCA generated)/CollationAuxiliary/* $CLDR_SRC/common/uca/ |
| 2856 |
|
| 2857 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 2858 |
cp $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 2859 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 2860 |
cp $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 2861 |
(note removing the underscore before "Rules") |
| 2862 |
cp $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 2863 |
- restore TODO diffs in UCARules.txt |
| 2864 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 2865 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 2866 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 2867 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 2868 |
cp $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 2869 |
cp $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 2870 |
cp $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 2871 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 2872 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 2873 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 2874 |
|
| 2875 |
- run genuca, see command line above; |
| 2876 |
deal with |
| 2877 |
Error: Unknown script for first-primary sample character U+1180B on line 28649 of /usr/local/google/home/mscherer/svn.icu/uni/src/icu4c/source/data/unidata/FractionalUCA.txt: |
| 2878 |
FDD1 1180B; [71 CC 02, 05, 05] # Dogra first primary (compressible) |
| 2879 |
(add the character to genuca.cpp sampleCharsToScripts[]) |
| 2880 |
+ look up the USCRIPT_ code for the new sample characters |
| 2881 |
(should be obvious from the comment in the error output) |
| 2882 |
+ *add* mappings to sampleCharsToScripts[], do not replace them |
| 2883 |
(in case the script sample characters flip-flop) |
| 2884 |
+ insert new scripts in DUCET script order, see the top_byte table |
| 2885 |
at the beginning of FractionalUCA.txt |
| 2886 |
- rebuild ICU4C |
| 2887 |
|
| 2888 |
* Unihan collators |
| 2889 |
https://sites.google.com/site/unicodetools/unihan |
| 2890 |
- run Unicode Tools |
| 2891 |
org.unicode.draft.GenerateUnihanCollators |
| 2892 |
with VM arguments |
| 2893 |
-ea |
| 2894 |
-DSVN_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools/trunk |
| 2895 |
-DOTHER_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools |
| 2896 |
-DUCD_DIR=/usr/local/google/home/mscherer/svn.unitools/trunk/data |
| 2897 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni |
| 2898 |
-DUVERSION=11.0.0 |
| 2899 |
- run Unicode Tools |
| 2900 |
org.unicode.draft.GenerateUnihanCollatorFiles |
| 2901 |
with the same arguments |
| 2902 |
- check CLDR diffs |
| 2903 |
cd $CLDR_SRC |
| 2904 |
meld common/collation/zh.xml ../Generated/cldr/han/replace/zh.xml |
| 2905 |
meld common/transforms/Han-Latin.xml ../Generated/cldr/han/replace/Han-Latin.xml |
| 2906 |
- copy to CLDR |
| 2907 |
cd $CLDR_SRC |
| 2908 |
cp ../Generated/cldr/han/replace/zh.xml common/collation/zh.xml |
| 2909 |
cp ../Generated/cldr/han/replace/Han-Latin.xml common/transforms/Han-Latin.xml |
| 2910 |
- run CLDR unit tests, commit to CLDR |
| 2911 |
- generate ICU zh collation data: run CLDR |
| 2912 |
org.unicode.cldr.icu.NewLdml2IcuConverter |
| 2913 |
with program arguments |
| 2914 |
-t collation |
| 2915 |
-s /usr/local/google/home/mscherer/svn.cldr/uni/common/collation |
| 2916 |
-m /usr/local/google/home/mscherer/svn.cldr/uni/common/supplemental |
| 2917 |
-d /usr/local/google/home/mscherer/svn.icu/uni/src/icu4c/source/data/coll |
| 2918 |
-p /usr/local/google/home/mscherer/svn.icu/uni/src/icu4c/source/data/xml/collation |
| 2919 |
zh |
| 2920 |
and VM arguments |
| 2921 |
-ea |
| 2922 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni |
| 2923 |
- rebuild ICU4C |
| 2924 |
|
| 2925 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 2926 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 2927 |
(the full ones have comments, useful for debugging) |
| 2928 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 2929 |
utility/MultithreadTest/TestCollators will fail as well; |
| 2930 |
fix the conformance test before looking into the multi-thread test |
| 2931 |
|
| 2932 |
* update Java data files |
| 2933 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 2934 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 2935 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2936 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2937 |
output: |
| 2938 |
... |
| 2939 |
Unicode .icu files built to ./out/build/icudt61l |
| 2940 |
echo timestamp > uni-core-data |
| 2941 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt61b |
| 2942 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt61b |
| 2943 |
echo pnames.icu uprops.icu ucase.icu ubidi.icu nfc.nrm > ./out/icu4j/add.txt |
| 2944 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt61l.dat ./out/icu4j/icudt61b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt61l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt61b |
| 2945 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt61b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt61b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt61b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt61b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt61b" |
| 2946 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt61b/ |
| 2947 |
mkdir -p /tmp/icu4j/main/shared/data |
| 2948 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 2949 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt61b/ |
| 2950 |
mkdir -p /tmp/icu4j/main/shared/data |
| 2951 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 2952 |
make[1]: Leaving directory '/usr/local/google/home/mscherer/svn.icu/uni/dbg/icu4c/data' |
| 2953 |
- copy the big-endian Unicode data files to another location, |
| 2954 |
separate from the other data files, |
| 2955 |
and then refresh ICU4J |
| 2956 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 2957 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 2958 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 2959 |
cp com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2960 |
cp com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2961 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 2962 |
cp com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 2963 |
cp com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 2964 |
cp com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 2965 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 2966 |
|
| 2967 |
* When refreshing all of ICU4J data from ICU4C |
| 2968 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 2969 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 2970 |
or |
| 2971 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 2972 |
|
| 2973 |
* update CollationFCD.java |
| 2974 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 2975 |
ICU4C/source/i18n/collationfcd.cpp to |
| 2976 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 2977 |
|
| 2978 |
* refresh Java test .txt files |
| 2979 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2980 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 2981 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2982 |
cd ../../test/testdata |
| 2983 |
cp BidiCharacterTest.txt BidiTest.txt IdnaTestV2.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2984 |
cp $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 2985 |
|
| 2986 |
* run & fix ICU4J tests |
| 2987 |
|
| 2988 |
*** API additions |
| 2989 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 2990 |
|
| 2991 |
*** CLDR numbering systems |
| 2992 |
- look for new sets of decimal digits (gc=ND & nv=4) and add to CLDR |
| 2993 |
Unicode 11: using Unicode 11 CLDR ticket #10978 |
| 2994 |
rohg 10D30..10D39 Hanifi_Rohingya |
| 2995 |
gong 11DA0..11DA9 Gunjala_Gondi |
| 2996 |
Earlier: CLDR tickets specific to adding new numbering systems. |
| 2997 |
Unicode 10: http://unicode.org/cldr/trac/ticket/10219 |
| 2998 |
Unicode 9: http://unicode.org/cldr/trac/ticket/9692 |
| 2999 |
|
| 3000 |
*** merge the Unicode update branches back onto the trunk |
| 3001 |
- do not merge the icudata.jar and testdata.jar, |
| 3002 |
instead rebuild them from merged & tested ICU4C |
| 3003 |
- make sure that changes to Unicode tools are checked in: |
| 3004 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 3005 |
|
| 3006 |
---------------------------------------------------------------------------- *** |
| 3007 |
|
| 3008 |
Unicode 10.0 update for ICU 60 |
| 3009 |
|
| 3010 |
http://www.unicode.org/versions/Unicode10.0.0/ |
| 3011 |
http://www.unicode.org/versions/beta-10.0.0.html |
| 3012 |
http://blog.unicode.org/2017/03/unicode-100-beta-review.html |
| 3013 |
http://www.unicode.org/review/pri350/ |
| 3014 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 3015 |
http://www.unicode.org/reports/tr44/tr44-19.html |
| 3016 |
|
| 3017 |
* Command-line environment setup |
| 3018 |
|
| 3019 |
UNICODE_DATA=~/unidata/uni10/20170605 |
| 3020 |
CLDR_SRC=~/svn.cldr/uni10 |
| 3021 |
ICU_ROOT=~/svn.icu/uni10 |
| 3022 |
ICU_SRC=$ICU_ROOT/src |
| 3023 |
ICUDT=icudt60b |
| 3024 |
ICU4C_DATA_IN=$ICU_SRC/icu4c/source/data/in |
| 3025 |
ICU4C_UNIDATA=$ICU_SRC/icu4c/source/data/unidata |
| 3026 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/icu4c/lib |
| 3027 |
|
| 3028 |
*** ICU Trac |
| 3029 |
|
| 3030 |
- ticket:12985: Unicode 10 |
| 3031 |
- ticket:13061: undo hacks from emoji 5.0 update |
| 3032 |
- ticket:13062: add Emoji_Component property |
| 3033 |
- ^/branches/markus/uni10 |
| 3034 |
|
| 3035 |
*** CLDR Trac |
| 3036 |
|
| 3037 |
- cldrbug 10055: Unicode 10 |
| 3038 |
- cldrbug 9882: Unicode 10 script metadata |
| 3039 |
- cldrbug 10219: numbering systems for Unicode 10 |
| 3040 |
|
| 3041 |
*** Unicode version numbers |
| 3042 |
- makedata.mak |
| 3043 |
- uchar.h |
| 3044 |
- com.ibm.icu.util.VersionInfo |
| 3045 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 3046 |
|
| 3047 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 3048 |
so that the makefiles see the new version number. |
| 3049 |
|
| 3050 |
*** data files & enums & parser code |
| 3051 |
|
| 3052 |
* download files |
| 3053 |
- mkdir -p $UNICODE_DATA |
| 3054 |
- download Unicode 10.0 files into $UNICODE_DATA |
| 3055 |
+ subfolders: ucd, uca, idna, security |
| 3056 |
+ inside ucd: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 3057 |
- download emoji 5.0 files into $UNICODE_DATA/emoji |
| 3058 |
|
| 3059 |
* for manual diffs: remove version suffixes from the file names |
| 3060 |
~$ unidata/desuffixucd.py $UNICODE_DATA |
| 3061 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 3062 |
|
| 3063 |
* process and/or copy files |
| 3064 |
- $ICU_SRC/tools/unicode$ py/preparseucd.py $UNICODE_DATA $ICU_SRC |
| 3065 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 3066 |
+ For debugging, and tweaking how ppucd.txt is written, |
| 3067 |
the tool has an --only_ppucd option: |
| 3068 |
py/preparseucd.py $UNICODE_DATA --only_ppucd path/to/ppucd/outputfile |
| 3069 |
|
| 3070 |
- cp $UNICODE_DATA/security/confusables.txt $ICU4C_UNIDATA |
| 3071 |
|
| 3072 |
* build ICU (make install) |
| 3073 |
so that the tools build can pick up the new definitions from the installed header files. |
| 3074 |
|
| 3075 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install > out.txt 2>&1 ; tail -n 30 out.txt ; date |
| 3076 |
|
| 3077 |
* preparseucd.py changes |
| 3078 |
- remove or add new Unicode scripts from/to the |
| 3079 |
only-in-ISO-15924 list according to the error messages: |
| 3080 |
ValueError: remove ['Nshu'] from _scripts_only_in_iso15924 |
| 3081 |
-> adjust _scripts_only_in_iso15924 as indicated |
| 3082 |
- fix other errors |
| 3083 |
Exception: no default values (@missing lines) for some Catalog or Enumerated properties: [u'vo'] |
| 3084 |
-> add vo=Vertical_Orientation to _ignored_properties |
| 3085 |
-> later removed again, parsing the file, even though we do not yet store data for runtime use |
| 3086 |
|
| 3087 |
* new constants for new property values |
| 3088 |
- preparseucd.py error: |
| 3089 |
ValueError: missing uchar.h enum constants for some property values: |
| 3090 |
[(u'blk', set([u'Zanabazar_Square', u'Nushu', u'CJK_Ext_F', |
| 3091 |
u'Kana_Ext_A', u'Syriac_Sup', u'Masaram_Gondi', u'Soyombo'])), |
| 3092 |
(u'jg', set([u'Malayalam_Bha', u'Malayalam_Llla', u'Malayalam_Nya', u'Malayalam_Lla', |
| 3093 |
u'Malayalam_Nga', u'Malayalam_Ssa', u'Malayalam_Tta', u'Malayalam_Ra', |
| 3094 |
u'Malayalam_Nna', u'Malayalam_Ja', u'Malayalam_Nnna'])), |
| 3095 |
(u'sc', set([u'Soyo', u'Gonm', u'Zanb']))] |
| 3096 |
= PropertyValueAliases.txt new property values (diff old & new .txt files) |
| 3097 |
blk; CJK_Ext_F ; CJK_Unified_Ideographs_Extension_F |
| 3098 |
blk; Kana_Ext_A ; Kana_Extended_A |
| 3099 |
blk; Masaram_Gondi ; Masaram_Gondi |
| 3100 |
blk; Nushu ; Nushu |
| 3101 |
blk; Soyombo ; Soyombo |
| 3102 |
blk; Syriac_Sup ; Syriac_Supplement |
| 3103 |
blk; Zanabazar_Square ; Zanabazar_Square |
| 3104 |
-> add to uchar.h |
| 3105 |
use long property names for enum constants, |
| 3106 |
for the trailing comment get the block start code point: diff old & new Blocks.txt |
| 3107 |
-> add to UCharacter.UnicodeBlock IDs |
| 3108 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 3109 |
replace public static final int \1_ID = \2; \3 |
| 3110 |
-> add to UCharacter.UnicodeBlock objects |
| 3111 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 3112 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 3113 |
|
| 3114 |
jg ; Malayalam_Bha ; Malayalam_Bha |
| 3115 |
jg ; Malayalam_Ja ; Malayalam_Ja |
| 3116 |
jg ; Malayalam_Lla ; Malayalam_Lla |
| 3117 |
jg ; Malayalam_Llla ; Malayalam_Llla |
| 3118 |
jg ; Malayalam_Nga ; Malayalam_Nga |
| 3119 |
jg ; Malayalam_Nna ; Malayalam_Nna |
| 3120 |
jg ; Malayalam_Nnna ; Malayalam_Nnna |
| 3121 |
jg ; Malayalam_Nya ; Malayalam_Nya |
| 3122 |
jg ; Malayalam_Ra ; Malayalam_Ra |
| 3123 |
jg ; Malayalam_Ssa ; Malayalam_Ssa |
| 3124 |
jg ; Malayalam_Tta ; Malayalam_Tta |
| 3125 |
-> uchar.h & UCharacter.JoiningGroup |
| 3126 |
|
| 3127 |
sc ; Gonm ; Masaram_Gondi |
| 3128 |
sc ; Nshu ; Nushu |
| 3129 |
sc ; Soyo ; Soyombo |
| 3130 |
sc ; Zanb ; Zanabazar_Square |
| 3131 |
-> uscript.h & com.ibm.icu.lang.UScript |
| 3132 |
-> Nushu had been added already |
| 3133 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 3134 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 3135 |
|
| 3136 |
* New properties as shown in PropertyValueAliases.txt changes |
| 3137 |
- boolean Emoji_Component from emoji 5 |
| 3138 |
-> uchar.h & UProperty.java |
| 3139 |
- boolean |
| 3140 |
# Regional_Indicator (RI) |
| 3141 |
|
| 3142 |
RI ; N ; No ; F ; False |
| 3143 |
RI ; Y ; Yes ; T ; True |
| 3144 |
-> uchar.h & UProperty.java |
| 3145 |
-> single immutable range, to be hardcoded |
| 3146 |
- boolean |
| 3147 |
# Prepended_Concatenation_Mark (PCM) |
| 3148 |
|
| 3149 |
PCM; N ; No ; F ; False |
| 3150 |
PCM; Y ; Yes ; T ; True |
| 3151 |
-> was new in Unicode 9 |
| 3152 |
-> uchar.h & UProperty.java |
| 3153 |
- enumerated |
| 3154 |
# Vertical_Orientation (vo) |
| 3155 |
|
| 3156 |
vo ; R ; Rotated |
| 3157 |
vo ; Tr ; Transformed_Rotated |
| 3158 |
vo ; Tu ; Transformed_Upright |
| 3159 |
vo ; U ; Upright |
| 3160 |
-> only pre-parsed for now, but not yet stored for runtime use |
| 3161 |
|
| 3162 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 3163 |
(not strictly necessary for NOT_ENCODED scripts) |
| 3164 |
$ICU_SRC/tools/unicode$ py/parsescriptmetadata.py $ICU_SRC/icu4c/source/common/unicode/uscript.h $CLDR_SRC/common/properties/scriptMetadata.txt |
| 3165 |
|
| 3166 |
* generate normalization data files |
| 3167 |
cd $ICU_ROOT/dbg/icu4c |
| 3168 |
bin/gennorm2 -o $ICU_SRC/icu4c/source/common/norm2_nfc_data.h -s $ICU4C_UNIDATA/norm2 nfc.txt --csource |
| 3169 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt |
| 3170 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt |
| 3171 |
bin/gennorm2 -o $ICU4C_DATA_IN/nfkc_cf.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 3172 |
bin/gennorm2 -o $ICU4C_DATA_IN/uts46.nrm -s $ICU4C_UNIDATA/norm2 nfc.txt uts46.txt |
| 3173 |
|
| 3174 |
* build ICU (make install) |
| 3175 |
so that the tools build can pick up the new definitions from the installed header files. |
| 3176 |
|
| 3177 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install > out.txt 2>&1 ; tail -n 30 out.txt ; date |
| 3178 |
|
| 3179 |
* build Unicode tools using CMake+make |
| 3180 |
|
| 3181 |
$ICU_SRC/tools/unicode/c/icudefs.txt: |
| 3182 |
|
| 3183 |
# Location (--prefix) of where ICU was installed. |
| 3184 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/svn.icu/trunk/inst/icu4c) |
| 3185 |
# Location of the ICU4C source tree. |
| 3186 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/svn.icu/uni10/src/icu4c) |
| 3187 |
|
| 3188 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 3189 |
cmake ../../../../src/tools/unicode/c |
| 3190 |
make |
| 3191 |
|
| 3192 |
* generate core properties data files |
| 3193 |
$ICU_ROOT/dbg/tools/unicode/c$ |
| 3194 |
genprops/genprops $ICU_SRC/icu4c |
| 3195 |
genuca/genuca --hanOrder implicit $ICU_SRC/icu4c |
| 3196 |
genuca/genuca --hanOrder radical-stroke $ICU_SRC/icu4c |
| 3197 |
- rebuild ICU (make install) & tools |
| 3198 |
|
| 3199 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 3200 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 3201 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 3202 |
- Unicode 6.0..10.0: U+2260, U+226E, U+226F |
| 3203 |
- nothing new in this Unicode version, no test file to update |
| 3204 |
|
| 3205 |
* run & fix ICU4C tests |
| 3206 |
- Andy handles RBBI & spoof check test failures |
| 3207 |
|
| 3208 |
* collation: CLDR collation root, UCA DUCET |
| 3209 |
|
| 3210 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 3211 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 3212 |
- CLDR root data files are checked into $CLDR_SRC/common/uca/ |
| 3213 |
cp (Unicode Tools UCA generated)/CollationAuxiliary/* $CLDR_SRC/common/uca/ |
| 3214 |
|
| 3215 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 3216 |
cp $CLDR_SRC/common/uca/FractionalUCA_SHORT.txt $ICU4C_UNIDATA/FractionalUCA.txt |
| 3217 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 3218 |
cp $ICU4C_UNIDATA/UCARules.txt /tmp/UCARules-old.txt |
| 3219 |
(note removing the underscore before "Rules") |
| 3220 |
cp $CLDR_SRC/common/uca/UCA_Rules_SHORT.txt $ICU4C_UNIDATA/UCARules.txt |
| 3221 |
- restore TODO diffs in UCARules.txt |
| 3222 |
meld /tmp/UCARules-old.txt $ICU4C_UNIDATA/UCARules.txt |
| 3223 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 3224 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 3225 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 3226 |
cp $CLDR_SRC/common/uca/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 3227 |
cp $CLDR_SRC/common/uca/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC/icu4c/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 3228 |
cp $ICU_SRC/icu4c/source/test/testdata/CollationTest_*.txt $ICU_SRC/icu4j/main/tests/collate/src/com/ibm/icu/dev/data |
| 3229 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 3230 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 3231 |
and regenerate (or update in parallel) $ICU_SRC/icu4c/source/data/coll/root.txt |
| 3232 |
|
| 3233 |
- run genuca, see command line above; |
| 3234 |
deal with |
| 3235 |
Error: Unknown script for first-primary sample character U+11D10 on line 28117 of /usr/local/google/home/mscherer/svn.icu/uni10/src/icu4c/source/data/unidata/FractionalUCA.txt: |
| 3236 |
FDD1 11D10; [70 D5 02, 05, 05] # Masaram_Gondi first primary (compressible) |
| 3237 |
(add the character to genuca.cpp sampleCharsToScripts[]) |
| 3238 |
+ look up the USCRIPT_ code for the new sample characters |
| 3239 |
(should be obvious from the comment in the error output) |
| 3240 |
+ *add* mappings to sampleCharsToScripts[], do not replace them |
| 3241 |
(in case the script sample characters flip-flop) |
| 3242 |
+ insert new scripts in DUCET script order, see the top_byte table |
| 3243 |
at the beginning of FractionalUCA.txt |
| 3244 |
- rebuild ICU4C |
| 3245 |
|
| 3246 |
* Unihan collators |
| 3247 |
https://sites.google.com/site/unicodetools/unihan |
| 3248 |
- run Unicode Tools |
| 3249 |
org.unicode.draft.GenerateUnihanCollators |
| 3250 |
with VM arguments |
| 3251 |
-ea |
| 3252 |
-DSVN_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools/trunk |
| 3253 |
-DOTHER_WORKSPACE=/usr/local/google/home/mscherer/svn.unitools |
| 3254 |
-DUCD_DIR=/usr/local/google/home/mscherer/svn.unitools/trunk/data |
| 3255 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni10 |
| 3256 |
-DUVERSION=10.0.0 |
| 3257 |
- run Unicode Tools |
| 3258 |
org.unicode.draft.GenerateUnihanCollatorFiles |
| 3259 |
with the same arguments |
| 3260 |
- check CLDR diffs |
| 3261 |
cd $CLDR_SRC |
| 3262 |
meld common/collation/zh.xml ../Generated/cldr/han/replace/zh.xml |
| 3263 |
meld common/transforms/Han-Latin.xml ../Generated/cldr/han/replace/Han-Latin.xml |
| 3264 |
- copy to CLDR |
| 3265 |
cd $CLDR_SRC |
| 3266 |
cp ../Generated/cldr/han/replace/zh.xml common/collation/zh.xml |
| 3267 |
cp ../Generated/cldr/han/replace/Han-Latin.xml common/transforms/Han-Latin.xml |
| 3268 |
- run CLDR unit tests, commit to CLDR |
| 3269 |
- generate ICU zh collation data: run CLDR |
| 3270 |
org.unicode.cldr.icu.NewLdml2IcuConverter |
| 3271 |
with program arguments |
| 3272 |
-t collation |
| 3273 |
-s /usr/local/google/home/mscherer/svn.cldr/uni10/common/collation |
| 3274 |
-m /usr/local/google/home/mscherer/svn.cldr/uni10/common/supplemental |
| 3275 |
-d /usr/local/google/home/mscherer/svn.icu/uni10/src/icu4c/source/data/coll |
| 3276 |
-p /usr/local/google/home/mscherer/svn.icu/uni10/src/icu4c/source/data/xml/collation |
| 3277 |
zh |
| 3278 |
and VM arguments |
| 3279 |
-ea |
| 3280 |
-DCLDR_DIR=/usr/local/google/home/mscherer/svn.cldr/uni10 |
| 3281 |
- rebuild ICU4C |
| 3282 |
|
| 3283 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 3284 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 3285 |
(the full ones have comments, useful for debugging) |
| 3286 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 3287 |
utility/MultithreadTest/TestCollators will fail as well; |
| 3288 |
fix the conformance test before looking into the multi-thread test |
| 3289 |
|
| 3290 |
* update Java data files |
| 3291 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 3292 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 3293 |
- mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3294 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 3295 |
output: |
| 3296 |
... |
| 3297 |
Unicode .icu files built to ./out/build/icudt60l |
| 3298 |
echo timestamp > uni-core-data |
| 3299 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt60b |
| 3300 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt60b |
| 3301 |
echo pnames.icu uprops.icu ucase.icu ubidi.icu nfc.nrm > ./out/icu4j/add.txt |
| 3302 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt60l.dat ./out/icu4j/icudt60b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt60l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt60b |
| 3303 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt60b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt60b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt60b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt60b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt60b" |
| 3304 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt60b/ |
| 3305 |
mkdir -p /tmp/icu4j/main/shared/data |
| 3306 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 3307 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt60b/ |
| 3308 |
mkdir -p /tmp/icu4j/main/shared/data |
| 3309 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 3310 |
make[1]: Leaving directory `/usr/local/google/home/mscherer/svn.icu/uni10/dbg/icu4c/data' |
| 3311 |
- copy the big-endian Unicode data files to another location, |
| 3312 |
separate from the other data files, |
| 3313 |
and then refresh ICU4J |
| 3314 |
cd $ICU_ROOT/dbg/icu4c/data/out/icu4j |
| 3315 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 3316 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 3317 |
cp com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3318 |
cp com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3319 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 3320 |
cp com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3321 |
cp com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 3322 |
cp com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 3323 |
jar uvf $ICU_SRC/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 3324 |
|
| 3325 |
* When refreshing all of ICU4J data from ICU4C |
| 3326 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 3327 |
- cp /tmp/icu4j/main/shared/data/icudata.jar $ICU_SRC/icu4j/main/shared/data |
| 3328 |
or |
| 3329 |
- $ICU_ROOT/dbg/icu4c$ make ICU4J_ROOT=$ICU_SRC/icu4j icu4j-data-install |
| 3330 |
|
| 3331 |
* update CollationFCD.java |
| 3332 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 3333 |
ICU4C/source/i18n/collationfcd.cpp to |
| 3334 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 3335 |
|
| 3336 |
* refresh Java test .txt files |
| 3337 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3338 |
cd $ICU_SRC/icu4c/source/data/unidata |
| 3339 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3340 |
cd ../../test/testdata |
| 3341 |
cp BidiCharacterTest.txt BidiTest.txt IdnaTest.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3342 |
cp $UNICODE_DATA/ucd/CompositionExclusions.txt $ICU_SRC/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3343 |
|
| 3344 |
* run & fix ICU4J tests |
| 3345 |
|
| 3346 |
*** API additions |
| 3347 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 3348 |
|
| 3349 |
*** CLDR numbering systems |
| 3350 |
- look for new sets of decimal digits (gc=ND & nv=4) and submit a CLDR ticket |
| 3351 |
Unicode 10: http://unicode.org/cldr/trac/ticket/10219 |
| 3352 |
Unicode 9: http://unicode.org/cldr/trac/ticket/9692 |
| 3353 |
|
| 3354 |
*** merge the Unicode update branches back onto the trunk |
| 3355 |
- do not merge the icudata.jar and testdata.jar, |
| 3356 |
instead rebuild them from merged & tested ICU4C |
| 3357 |
- make sure that changes to Unicode tools are checked in: |
| 3358 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 3359 |
|
| 3360 |
---------------------------------------------------------------------------- *** |
| 3361 |
|
| 3362 |
Emoji 5.0 update for ICU 59 |
| 3363 |
- ICU 59 mostly remains on Unicode 9.0 |
| 3364 |
- except updates bidi and segmentation data to Unicode 10 beta |
| 3365 |
|
| 3366 |
First run of tools on combined icu4c/icu4j/tools trunk after svn repository reorg. |
| 3367 |
|
| 3368 |
* Command-line environment setup |
| 3369 |
|
| 3370 |
ICU_ROOT=~/svn.icu/trunk |
| 3371 |
ICU_SRC_DIR=$ICU_ROOT/src |
| 3372 |
ICU4C_SRC_DIR=$ICU_SRC_DIR/icu4c |
| 3373 |
ICUDT=icudt59b |
| 3374 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/lib |
| 3375 |
SRC_DATA_IN=$ICU4C_SRC_DIR/source/data/in |
| 3376 |
UNIDATA=$ICU4C_SRC_DIR/source/data/unidata |
| 3377 |
|
| 3378 |
*** ICU Trac |
| 3379 |
|
| 3380 |
- ticket:12900: take Emoji 5.0 properties data into ICU 59 once it's released |
| 3381 |
- changes directly on trunk |
| 3382 |
|
| 3383 |
*** data files & enums & parser code |
| 3384 |
|
| 3385 |
* download files |
| 3386 |
|
| 3387 |
- download Unicode 9.0 files into a uni90e50 folder: ucd, idna, security (skip uca) |
| 3388 |
- download emoji 5.0 beta files into the same uni90e50 folder |
| 3389 |
- download Unicode 10.0 beta files: ucd |
| 3390 |
+ copy Unicode 10 bidi files to the uni90e50/ucd folder: |
| 3391 |
BidiBrackets.txt |
| 3392 |
BidiCharacterTest.txt |
| 3393 |
BidiMirroring.txt |
| 3394 |
BidiTest.txt |
| 3395 |
extracted/DerivedBidiClass.txt |
| 3396 |
+ copy Unicode 10 segmentation files to the uni90e50/ucd folder: |
| 3397 |
LineBreak.txt |
| 3398 |
auxiliary/* |
| 3399 |
|
| 3400 |
* preparseucd.py changes |
| 3401 |
- adjust for combined trunks |
| 3402 |
- write new copyright lines |
| 3403 |
- ignore new Emoji_Component property for now |
| 3404 |
|
| 3405 |
* process and/or copy files |
| 3406 |
- ~/svn.icu/trunk/src/tools/unicode$ py/preparseucd.py ~/unidata/uni90e50/20170322 $ICU_SRC_DIR |
| 3407 |
+ This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 3408 |
|
| 3409 |
- cp ~/unidata/uni90e50/20170322/security/confusables.txt $UNIDATA |
| 3410 |
|
| 3411 |
* build ICU (make install) |
| 3412 |
so that the tools build can pick up the new definitions from the installed header files. |
| 3413 |
|
| 3414 |
$ICU_ROOT/dbg/icu4c$ echo;echo; make -j7 install > out.txt 2>&1 ; tail -n 30 out.txt ; date |
| 3415 |
|
| 3416 |
* build Unicode tools using CMake+make |
| 3417 |
|
| 3418 |
~/svn.icu/trunk/src/tools/unicode/c/icudefs.txt: |
| 3419 |
|
| 3420 |
# Location (--prefix) of where ICU was installed. |
| 3421 |
set(ICU_INST_DIR /usr/local/google/home/mscherer/svn.icu/trunk/inst/icu4c) |
| 3422 |
# Location of the ICU4C source tree. |
| 3423 |
set(ICU4C_SRC_DIR /usr/local/google/home/mscherer/svn.icu/trunk/src/icu4c) |
| 3424 |
|
| 3425 |
~/svn.icu/trunk/dbg/tools/unicode/c$ |
| 3426 |
cmake ../../../../src/tools/unicode/c |
| 3427 |
make |
| 3428 |
|
| 3429 |
* generate core properties data files |
| 3430 |
~/svn.icu/trunk/dbg/tools/unicode/c$ |
| 3431 |
genprops/genprops $ICU4C_SRC_DIR |
| 3432 |
- rebuild ICU (make install) & tools |
| 3433 |
|
| 3434 |
* run & fix ICU4C tests |
| 3435 |
- Andy handles RBBI & spoof check test failures |
| 3436 |
|
| 3437 |
* update Java data files |
| 3438 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 3439 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 3440 |
- mkdir /tmp/icu4j |
| 3441 |
- ~/svn.icu/trunk/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 3442 |
output: |
| 3443 |
... |
| 3444 |
Unicode .icu files built to ./out/build/icudt59l |
| 3445 |
echo timestamp > uni-core-data |
| 3446 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt59b |
| 3447 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt59b |
| 3448 |
echo pnames.icu uprops.icu ucase.icu ubidi.icu nfc.nrm > ./out/icu4j/add.txt |
| 3449 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt59l.dat ./out/icu4j/icudt59b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt59l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt59b |
| 3450 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt59b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt59b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt59b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt59b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt59b" |
| 3451 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt59b/ |
| 3452 |
mkdir -p /tmp/icu4j/main/shared/data |
| 3453 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 3454 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt59b/ |
| 3455 |
mkdir -p /tmp/icu4j/main/shared/data |
| 3456 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 3457 |
make[1]: Leaving directory `/usr/local/google/home/mscherer/svn.icu/trunk/dbg/icu4c/data' |
| 3458 |
- copy the big-endian Unicode data files to another location, |
| 3459 |
separate from the other data files, |
| 3460 |
and then refresh ICU4J |
| 3461 |
cd ~/svn.icu/trunk/dbg/icu4c/data/out/icu4j |
| 3462 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 3463 |
cp com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3464 |
cp com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3465 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 3466 |
cp com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 3467 |
jar uvf ~/svn.icu/trunk/src/icu4j/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 3468 |
|
| 3469 |
* When refreshing all of ICU4J data from ICU4C |
| 3470 |
- ~/svn.icu/trunk/dbg/icu4c$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 3471 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu/trunk/src/icu4j/main/shared/data |
| 3472 |
or |
| 3473 |
- ~/svn.icu/trunk/dbg/icu4c$ make ICU4J_ROOT=~/svn.icu/trunk/src/icu4j icu4j-data-install |
| 3474 |
|
| 3475 |
* refresh Java test .txt files |
| 3476 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3477 |
cd $ICU4C_SRC_DIR/source/data/unidata |
| 3478 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt ~/svn.icu/trunk/src/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3479 |
cd ../../test/testdata |
| 3480 |
cp BidiCharacterTest.txt BidiTest.txt ~/svn.icu/trunk/src/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3481 |
cp ~/unidata/uni90e50/20170322/ucd/CompositionExclusions.txt ~/svn.icu/trunk/src/icu4j/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3482 |
|
| 3483 |
* run & fix ICU4J tests |
| 3484 |
|
| 3485 |
---------------------------------------------------------------------------- *** |
| 3486 |
|
| 3487 |
Unicode 9.0 update for ICU 58 |
| 3488 |
|
| 3489 |
* Command-line environment setup |
| 3490 |
|
| 3491 |
ICU_ROOT=~/svn.icu/trunk |
| 3492 |
ICU_SRC_DIR=$ICU_ROOT/src |
| 3493 |
ICUDT=icudt58b |
| 3494 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/lib |
| 3495 |
SRC_DATA_IN=$ICU_SRC_DIR/source/data/in |
| 3496 |
UNIDATA=$ICU_SRC_DIR/source/data/unidata |
| 3497 |
|
| 3498 |
http://www.unicode.org/review/pri323/ -- beta review |
| 3499 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 3500 |
http://www.unicode.org/versions/beta-9.0.0.html |
| 3501 |
http://www.unicode.org/versions/Unicode9.0.0/ |
| 3502 |
http://www.unicode.org/reports/tr44/tr44-17.html |
| 3503 |
|
| 3504 |
*** ICU Trac |
| 3505 |
|
| 3506 |
- ticket:12526: integrate Unicode 9 |
| 3507 |
- C++ ^/icu/branches/markus/uni90, ^/icu/branches/markus/uni90b |
| 3508 |
- Java ^/icu4j/branches/markus/uni90, ^/icu4j/branches/markus/uni90b |
| 3509 |
|
| 3510 |
*** CLDR Trac |
| 3511 |
|
| 3512 |
- cldrbug 9414: UCA 9 |
| 3513 |
- ^/branches/markus/uni90 at r11518 from trunk at r11517 |
| 3514 |
|
| 3515 |
- cldrbug 8745: Unicode 9.0 script metadata |
| 3516 |
|
| 3517 |
*** Unicode version numbers |
| 3518 |
- makedata.mak |
| 3519 |
- uchar.h |
| 3520 |
- com.ibm.icu.util.VersionInfo |
| 3521 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 3522 |
|
| 3523 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 3524 |
so that the makefiles see the new version number. |
| 3525 |
|
| 3526 |
*** data files & enums & parser code |
| 3527 |
|
| 3528 |
* file preparation |
| 3529 |
|
| 3530 |
- download UCD & IDNA files |
| 3531 |
- make sure that the Unicode data folder passed into preparseucd.py |
| 3532 |
includes a copy of the latest IdnaMappingTable.txt (can be in some subfolder) |
| 3533 |
- only for manual diffs: remove version suffixes from the file names |
| 3534 |
~/unidata/uni70/20140403$ ../../desuffixucd.py . |
| 3535 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 3536 |
- only for manual diffs: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 3537 |
- ~/svn.icutools/trunk/src/unicode$ py/preparseucd.py ~/unidata/uni90/20160603 $ICU_SRC_DIR ~/svn.icutools/trunk/src |
| 3538 |
- This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 3539 |
|
| 3540 |
- also: from http://unicode.org/Public/security/9.0.0/ download new confusables.txt |
| 3541 |
and copy to $UNIDATA |
| 3542 |
cp ~/unidata/uni90/20160603/security/confusables.txt $UNIDATA |
| 3543 |
|
| 3544 |
* preparseucd.py changes |
| 3545 |
- remove or add new Unicode scripts from/to the |
| 3546 |
only-in-ISO-15924 list according to the error messages: |
| 3547 |
ValueError: remove ['Tang'] from _scripts_only_in_iso15924 |
| 3548 |
ValueError: sc = Hanb (uchar.h USCRIPT_HAN_WITH_BOPOMOFO) not in the UCD |
| 3549 |
ValueError: sc = Jamo (uchar.h USCRIPT_JAMO) not in the UCD |
| 3550 |
ValueError: sc = Zsye (uchar.h USCRIPT_SYMBOLS_EMOJI) not in the UCD |
| 3551 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 3552 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 3553 |
- DerivedNumericValues.txt new numeric values |
| 3554 |
0D58 ; 0.00625 ; ; 1/160 # No MALAYALAM FRACTION ONE ONE-HUNDRED-AND-SIXTIETH |
| 3555 |
0D59 ; 0.025 ; ; 1/40 # No MALAYALAM FRACTION ONE FORTIETH |
| 3556 |
0D5A ; 0.0375 ; ; 3/80 # No MALAYALAM FRACTION THREE EIGHTIETHS |
| 3557 |
0D5B ; 0.05 ; ; 1/20 # No MALAYALAM FRACTION ONE TWENTIETH |
| 3558 |
0D5D ; 0.15 ; ; 3/20 # No MALAYALAM FRACTION THREE TWENTIETHS |
| 3559 |
-> change uprops.h, corepropsbuilder.cpp/encodeNumericValue(), |
| 3560 |
uchar.c, UCharacterProperty.java |
| 3561 |
to support a new series of values |
| 3562 |
- adjust preparseucd.py for Tangut algorithmic names |
| 3563 |
in ppucd.txt: |
| 3564 |
algnamesrange;17000..187EC;han;CJK UNIFIED IDEOGRAPH- |
| 3565 |
-> |
| 3566 |
algnamesrange;17000..187EC;han;TANGUT IDEOGRAPH- |
| 3567 |
- avoid block-compressing most String/Miscellaneous property values, |
| 3568 |
triggered by genprops not coping with a multi-code point Case_Folding on |
| 3569 |
block;1C80..1C8F;...;Cased;cf=0442;CWCF;... |
| 3570 |
keep block-compressing empty-string mappings NFKC_CF="" for tags and variation selectors |
| 3571 |
|
| 3572 |
* PropertyAliases.txt changes |
| 3573 |
- 1 new property PCM=Prepended_Concatenation_Mark |
| 3574 |
Ignore: Only useful for layout engines. |
| 3575 |
Ok to list in ppucd.txt. |
| 3576 |
|
| 3577 |
* PropertyValueAliases.txt new property values |
| 3578 |
blk; Adlam ; Adlam |
| 3579 |
blk; Bhaiksuki ; Bhaiksuki |
| 3580 |
blk; Cyrillic_Ext_C ; Cyrillic_Extended_C |
| 3581 |
blk; Glagolitic_Sup ; Glagolitic_Supplement |
| 3582 |
blk; Ideographic_Symbols ; Ideographic_Symbols_And_Punctuation |
| 3583 |
blk; Marchen ; Marchen |
| 3584 |
blk; Mongolian_Sup ; Mongolian_Supplement |
| 3585 |
blk; Newa ; Newa |
| 3586 |
blk; Osage ; Osage |
| 3587 |
blk; Tangut ; Tangut |
| 3588 |
blk; Tangut_Components ; Tangut_Components |
| 3589 |
-> add to uchar.h |
| 3590 |
use long property names for enum constants |
| 3591 |
-> add to UCharacter.UnicodeBlock IDs |
| 3592 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 3593 |
replace public static final int \1_ID = \2; \3 |
| 3594 |
-> add to UCharacter.UnicodeBlock objects |
| 3595 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 3596 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 3597 |
|
| 3598 |
GCB; EB ; E_Base |
| 3599 |
GCB; EBG ; E_Base_GAZ |
| 3600 |
GCB; EM ; E_Modifier |
| 3601 |
GCB; GAZ ; Glue_After_Zwj |
| 3602 |
GCB; ZWJ ; ZWJ |
| 3603 |
-> uchar.h & UCharacter.GraphemeClusterBreak |
| 3604 |
|
| 3605 |
jg ; African_Feh ; African_Feh |
| 3606 |
jg ; African_Noon ; African_Noon |
| 3607 |
jg ; African_Qaf ; African_Qaf |
| 3608 |
-> uchar.h & UCharacter.JoiningGroup |
| 3609 |
|
| 3610 |
lb ; EB ; E_Base |
| 3611 |
lb ; EM ; E_Modifier |
| 3612 |
lb ; ZWJ ; ZWJ |
| 3613 |
-> uchar.h & UCharacter.LineBreak |
| 3614 |
|
| 3615 |
sc ; Adlm ; Adlam |
| 3616 |
sc ; Bhks ; Bhaiksuki |
| 3617 |
sc ; Marc ; Marchen |
| 3618 |
sc ; Newa ; Newa |
| 3619 |
sc ; Osge ; Osage |
| 3620 |
sc ; Tang ; Tangut |
| 3621 |
-> all of them had been added already to uscript.h & com.ibm.icu.lang.UScript |
| 3622 |
|
| 3623 |
WB ; EB ; E_Base |
| 3624 |
WB ; EBG ; E_Base_GAZ |
| 3625 |
WB ; EM ; E_Modifier |
| 3626 |
WB ; GAZ ; Glue_After_Zwj |
| 3627 |
WB ; ZWJ ; ZWJ |
| 3628 |
-> uchar.h & UCharacter.WordBreak |
| 3629 |
|
| 3630 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 3631 |
(not strictly necessary for NOT_ENCODED scripts) |
| 3632 |
~/svn.icutools/trunk/src/unicode$ py/parsescriptmetadata.py $ICU_SRC_DIR/source/common/unicode/uscript.h ~/svn.cldr/trunk/common/properties/scriptMetadata.txt |
| 3633 |
|
| 3634 |
* generate normalization data files |
| 3635 |
cd $ICU_ROOT/dbg |
| 3636 |
bin/gennorm2 -o $ICU_SRC_DIR/source/common/norm2_nfc_data.h -s $UNIDATA/norm2 nfc.txt --csource |
| 3637 |
bin/gennorm2 -o $SRC_DATA_IN/nfc.nrm -s $UNIDATA/norm2 nfc.txt |
| 3638 |
bin/gennorm2 -o $SRC_DATA_IN/nfkc.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt |
| 3639 |
bin/gennorm2 -o $SRC_DATA_IN/nfkc_cf.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 3640 |
bin/gennorm2 -o $SRC_DATA_IN/uts46.nrm -s $UNIDATA/norm2 nfc.txt uts46.txt |
| 3641 |
|
| 3642 |
* build ICU (make install) |
| 3643 |
so that the tools build can pick up the new definitions from the installed header files. |
| 3644 |
|
| 3645 |
$ICU_ROOT/dbg$ echo;echo;make -j5 install > out.txt 2>&1 ; tail -n 30 out.txt |
| 3646 |
|
| 3647 |
* build Unicode tools using CMake+make |
| 3648 |
|
| 3649 |
~/svn.icutools/trunk/src/unicode/c/icudefs.txt: |
| 3650 |
|
| 3651 |
# Location (--prefix) of where ICU was installed. |
| 3652 |
set(ICU_INST_DIR /home/mscherer/svn.icu/trunk/inst) |
| 3653 |
# Location of the ICU source tree. |
| 3654 |
set(ICU_SRC_DIR /home/mscherer/svn.icu/trunk/src) |
| 3655 |
|
| 3656 |
~/svn.icutools/trunk/dbg/unicode/c$ |
| 3657 |
cmake ../../../src/unicode/c |
| 3658 |
make |
| 3659 |
|
| 3660 |
* generate core properties data files |
| 3661 |
~/svn.icutools/trunk/dbg/unicode/c$ |
| 3662 |
genprops/genprops $ICU_SRC_DIR |
| 3663 |
genuca/genuca --hanOrder implicit $ICU_SRC_DIR |
| 3664 |
genuca/genuca --hanOrder radical-stroke $ICU_SRC_DIR |
| 3665 |
- rebuild ICU (make install) & tools |
| 3666 |
|
| 3667 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 3668 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 3669 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 3670 |
- Unicode 6.0..9.0: U+2260, U+226E, U+226F |
| 3671 |
- nothing new in 9.0, no test file to update |
| 3672 |
|
| 3673 |
* run & fix ICU4C tests |
| 3674 |
- Andy handles RBBI & spoof check test failures |
| 3675 |
|
| 3676 |
* collation: CLDR collation root, UCA DUCET |
| 3677 |
|
| 3678 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 3679 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 3680 |
- CLDR root data files are checked into (CLDR UCA branch)/common/uca/ |
| 3681 |
cp (UCA generated)/CollationAuxiliary/* ~/svn.cldr/trunk/common/uca/ |
| 3682 |
|
| 3683 |
- cd (CLDR UCA branch)/common/uca/ |
| 3684 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 3685 |
cp FractionalUCA_SHORT.txt $ICU_SRC_DIR/source/data/unidata/FractionalUCA.txt |
| 3686 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 3687 |
cp $ICU_SRC_DIR/source/data/unidata/UCARules.txt /tmp/UCARules-old.txt |
| 3688 |
(note removing the underscore before "Rules") |
| 3689 |
cp UCA_Rules_SHORT.txt $ICU_SRC_DIR/source/data/unidata/UCARules.txt |
| 3690 |
- restore TODO diffs in UCARules.txt |
| 3691 |
meld /tmp/UCARules-old.txt $ICU_SRC_DIR/source/data/unidata/UCARules.txt |
| 3692 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 3693 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 3694 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 3695 |
cp CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC_DIR/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 3696 |
cp CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC_DIR/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 3697 |
cp $ICU_SRC_DIR/source/test/testdata/CollationTest_*.txt ~/svn.icu4j/trunk/src/main/tests/collate/src/com/ibm/icu/dev/data |
| 3698 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 3699 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 3700 |
and regenerate (or update in parallel) $ICU_SRC_DIR/source/data/coll/root.txt |
| 3701 |
|
| 3702 |
- run genuca, see command line above; |
| 3703 |
deal with |
| 3704 |
Error: Unknown script for first-primary sample character U+104B5 on line 32599 of /home/mscherer/svn.icu/trunk/src/source/data/unidata/FractionalUCA.txt: |
| 3705 |
FDD1 104B5; [75 B8 02, 05, 05] # Osage first primary (compressible) |
| 3706 |
(add the character to genuca.cpp sampleCharsToScripts[]) |
| 3707 |
+ look up the USCRIPT_ code for the new sample characters |
| 3708 |
(should be obvious from the comment in the error output) |
| 3709 |
+ *add* mappings to sampleCharsToScripts[], do not replace them |
| 3710 |
(in case the script sample characters flip-flop) |
| 3711 |
+ insert new scripts in DUCET script order, see the top_byte table |
| 3712 |
at the beginning of FractionalUCA.txt |
| 3713 |
- rebuild ICU4C |
| 3714 |
|
| 3715 |
* Unihan collators |
| 3716 |
- run Unicode Tools |
| 3717 |
org.unicode.draft.GenerateUnihanCollators |
| 3718 |
with VM arguments |
| 3719 |
-DSVN_WORKSPACE=/home/mscherer/svn.unitools/trunk |
| 3720 |
-DOTHER_WORKSPACE=/home/mscherer/svn.unitools |
| 3721 |
-DUCD_DIR=/home/mscherer/svn.unitools/trunk/data |
| 3722 |
-DCLDR_DIR=/home/mscherer/svn.cldr/trunk |
| 3723 |
-DUVERSION=9.0.0 |
| 3724 |
-ea |
| 3725 |
- run Unicode Tools |
| 3726 |
org.unicode.draft.GenerateUnihanCollatorFiles |
| 3727 |
with the same arguments |
| 3728 |
- check CLDR diffs |
| 3729 |
cd ~/svn.cldr/trunk |
| 3730 |
meld common/collation/zh.xml ../Generated/cldr/han/replace/zh.xml |
| 3731 |
meld common/transforms/Han-Latin.xml ../Generated/cldr/han/replace/Han-Latin.xml |
| 3732 |
- copy to CLDR |
| 3733 |
cd ~/svn.cldr/trunk |
| 3734 |
cp ../Generated/cldr/han/replace/zh.xml common/collation/zh.xml |
| 3735 |
cp ../Generated/cldr/han/replace/Han-Latin.xml common/transforms/Han-Latin.xml |
| 3736 |
- commit to CLDR |
| 3737 |
- generate ICU zh collation data: run CLDR |
| 3738 |
org.unicode.cldr.icu.NewLdml2IcuConverter |
| 3739 |
with program arguments |
| 3740 |
-t collation |
| 3741 |
-s /home/mscherer/svn.cldr/trunk/common/collation |
| 3742 |
-m /home/mscherer/svn.cldr/trunk/common/supplemental |
| 3743 |
-d /home/mscherer/svn.icu/trunk/src/source/data/coll |
| 3744 |
-p /home/mscherer/svn.icu/trunk/src/source/data/xml/collation |
| 3745 |
zh |
| 3746 |
and VM arguments |
| 3747 |
-DCLDR_DIR=/home/mscherer/svn.cldr/trunk |
| 3748 |
- rebuild ICU4C |
| 3749 |
|
| 3750 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 3751 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 3752 |
(the full ones have comments, useful for debugging) |
| 3753 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 3754 |
utility/MultithreadTest/TestCollators will fail as well; |
| 3755 |
fix the conformance test before looking into the multi-thread test |
| 3756 |
|
| 3757 |
* update Java data files |
| 3758 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 3759 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 3760 |
- mkdir /tmp/icu4j |
| 3761 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 3762 |
output: |
| 3763 |
... |
| 3764 |
Unicode .icu files built to ./out/build/icudt58l |
| 3765 |
echo timestamp > uni-core-data |
| 3766 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt58b |
| 3767 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt58b |
| 3768 |
echo pnames.icu uprops.icu ucase.icu ubidi.icu nfc.nrm > ./out/icu4j/add.txt |
| 3769 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt58l.dat ./out/icu4j/icudt58b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt58l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt58b |
| 3770 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt58b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt58b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt58b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt58b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt58b" |
| 3771 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt58b/ |
| 3772 |
mkdir -p /tmp/icu4j/main/shared/data |
| 3773 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 3774 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt58b/ |
| 3775 |
mkdir -p /tmp/icu4j/main/shared/data |
| 3776 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 3777 |
make[1]: Leaving directory `/home/mscherer/svn.icu/trunk/dbg/data' |
| 3778 |
- copy the big-endian Unicode data files to another location, |
| 3779 |
separate from the other data files, |
| 3780 |
and then refresh ICU4J |
| 3781 |
cd ~/svn.icu/trunk/dbg/data/out/icu4j |
| 3782 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 3783 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 3784 |
cp com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3785 |
cp com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3786 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 3787 |
cp com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 3788 |
cp com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 3789 |
cp com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 3790 |
jar uvf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 3791 |
|
| 3792 |
* When refreshing all of ICU4J data from ICU4C |
| 3793 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 3794 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 3795 |
or |
| 3796 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 3797 |
|
| 3798 |
* update CollationFCD.java |
| 3799 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 3800 |
ICU4C/source/i18n/collationfcd.cpp to |
| 3801 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 3802 |
|
| 3803 |
* refresh Java test .txt files |
| 3804 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3805 |
cd $ICU_SRC_DIR/source/data/unidata |
| 3806 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3807 |
cd ../../test/testdata |
| 3808 |
cp BidiCharacterTest.txt BidiTest.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3809 |
cp ~/unidata/uni90/20160603/ucd/CompositionExclusions.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 3810 |
|
| 3811 |
* run & fix ICU4J tests |
| 3812 |
|
| 3813 |
*** LayoutEngine script information |
| 3814 |
|
| 3815 |
* Run icu4j-tools: com.ibm.icu.dev.tool.layout.ScriptNameBuilder. |
| 3816 |
This generates LEScripts.h, LELanguages.h, ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp |
| 3817 |
in the working directory. |
| 3818 |
|
| 3819 |
(It also generates ScriptRunData.cpp, which is no longer needed.) |
| 3820 |
|
| 3821 |
It also reads and regenerates tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptAndLanguages |
| 3822 |
(a plain text file) |
| 3823 |
which maps ICU versions to the numbers of script/language constants |
| 3824 |
that were added then. |
| 3825 |
(This mapping is probably obsolete since we do not print "@stable ICU xy" any more.) |
| 3826 |
|
| 3827 |
The generated files have a current copyright date and "@deprecated" statement. |
| 3828 |
|
| 3829 |
* Review changes, fix Java tool if necessary, and copy to ICU4C |
| 3830 |
cd ~/svn.icu4j/trunk/src |
| 3831 |
meld $ICU_SRC_DIR/source/layout tools/misc/src/com/ibm/icu/dev/tool/layout |
| 3832 |
cp tools/misc/src/com/ibm/icu/dev/tool/layout/*.h $ICU_SRC_DIR/source/layout |
| 3833 |
cp tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptAndLanguageTags.cpp $ICU_SRC_DIR/source/layout |
| 3834 |
|
| 3835 |
*** API additions |
| 3836 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 3837 |
|
| 3838 |
*** merge the Unicode update branches back onto the trunk |
| 3839 |
- do not merge the icudata.jar and testdata.jar, |
| 3840 |
instead rebuild them from merged & tested ICU4C |
| 3841 |
- make sure that changes to Unicode tools & ICU tools are checked in |
| 3842 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 3843 |
http://bugs.icu-project.org/trac/log/tools/trunk |
| 3844 |
|
| 3845 |
---------------------------------------------------------------------------- *** |
| 3846 |
|
| 3847 |
New script codes early in ICU 58: https://unicode-org.atlassian.net/browse/ICU-11764 |
| 3848 |
|
| 3849 |
Adding |
| 3850 |
- new scripts in Unicode 9: Adlm, Bhks, Marc, Newa, Osge |
| 3851 |
- new combination/alias codes: Hanb, Jamo |
| 3852 |
- used in CLDR 29 and in spoof checker |
| 3853 |
- new Z* code: Zsye |
| 3854 |
|
| 3855 |
Add new codes to uscript.h & UScript.java, see Unicode update logs. |
| 3856 |
-> com.ibm.icu.lang.UScript |
| 3857 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 3858 |
replace public static final int \1 = \2; \3 |
| 3859 |
|
| 3860 |
Manually edit ppucd.txt and icutools:unicode/c/genprops/pnames_data.h, |
| 3861 |
add new script codes. |
| 3862 |
"Long" script names only where established in Unicode 9 PropertyValueAliases.txt. |
| 3863 |
|
| 3864 |
Note: If we have to run preparseucd.py again before the Unicode 9 update, |
| 3865 |
then we need to manually keep/restore the new script codes. |
| 3866 |
|
| 3867 |
ICU_ROOT=~/svn.icu/trunk |
| 3868 |
ICU_SRC_DIR=$ICU_ROOT/src |
| 3869 |
ICUDT=icudt57b |
| 3870 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/lib |
| 3871 |
SRC_DATA_IN=$ICU_SRC_DIR/source/data/in |
| 3872 |
UNIDATA=$ICU_SRC_DIR/source/data/unidata |
| 3873 |
|
| 3874 |
Adjust unicode/c/genprops/*builder.cpp for #ifndef/#ifdef changes in _data.h files, |
| 3875 |
see https://unicode-org.atlassian.net/browse/ICU-12141 |
| 3876 |
|
| 3877 |
make install, then icutools cmake & make, then |
| 3878 |
~/svn.icutools/trunk/dbg/unicode/c$ make && genprops/genprops $ICU_SRC_DIR |
| 3879 |
|
| 3880 |
Generate Java data as usual, only update pnames.icu & uprops.icu. |
| 3881 |
|
| 3882 |
*** LayoutEngine script information |
| 3883 |
|
| 3884 |
* Run icu4j-tools: com.ibm.icu.dev.tool.layout.ScriptNameBuilder. |
| 3885 |
This generates LEScripts.h, LELanguages.h, ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp |
| 3886 |
in the working directory. |
| 3887 |
|
| 3888 |
(It also generates ScriptRunData.cpp, which is no longer needed.) |
| 3889 |
|
| 3890 |
It also reads and regenerates tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptAndLanguages |
| 3891 |
(a plain text file) |
| 3892 |
which maps ICU versions to the numbers of script/language constants |
| 3893 |
that were added then. |
| 3894 |
(This mapping is probably obsolete since we do not print "@stable ICU xy" any more.) |
| 3895 |
|
| 3896 |
The generated files have a current copyright date and "@deprecated" statement. |
| 3897 |
|
| 3898 |
* Review changes, fix Java tool if necessary, and copy to ICU4C |
| 3899 |
cd ~/svn.icu4j/trunk/src |
| 3900 |
meld $ICU_SRC_DIR/source/layout tools/misc/src/com/ibm/icu/dev/tool/layout |
| 3901 |
cp tools/misc/src/com/ibm/icu/dev/tool/layout/*.h $ICU_SRC_DIR/source/layout |
| 3902 |
cp tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptAndLanguageTags.cpp $ICU_SRC_DIR/source/layout |
| 3903 |
|
| 3904 |
---------------------------------------------------------------------------- *** |
| 3905 |
|
| 3906 |
Emoji properties added in ICU 57: https://unicode-org.atlassian.net/browse/ICU-11802 |
| 3907 |
|
| 3908 |
Edit preparseucd.py to add & parse new properties. |
| 3909 |
They share the UCD property namespace but are not listed in PropertyAliases.txt. |
| 3910 |
|
| 3911 |
Add emoji-data.txt to the input files, from http://www.unicode.org/Public/emoji/ |
| 3912 |
Initial data from emoji/2.0/ |
| 3913 |
|
| 3914 |
ICU_ROOT=~/svn.icu/trunk |
| 3915 |
ICU_SRC_DIR=$ICU_ROOT/src |
| 3916 |
ICUDT=icudt56b |
| 3917 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/lib |
| 3918 |
SRC_DATA_IN=$ICU_SRC_DIR/source/data/in |
| 3919 |
UNIDATA=$ICU_SRC_DIR/source/data/unidata |
| 3920 |
|
| 3921 |
Add binary-property constants to uchar.h enum UProperty & UProperty.java. |
| 3922 |
|
| 3923 |
~/svn.icutools/trunk/src/unicode$ py/preparseucd.py ~/unidata/uni80/20151217 $ICU_SRC_DIR ~/svn.icutools/trunk/src |
| 3924 |
(Needs to be run after uchar.h additions, so that the new properties can be picked up by genprops.) |
| 3925 |
|
| 3926 |
Data structure: uprops.h/.cpp, corepropsbuilder.cpp, UCharacterProperty.java |
| 3927 |
|
| 3928 |
make install, then icutools cmake & make, then |
| 3929 |
~/svn.icutools/trunk/dbg/unicode/c$ make && genprops/genprops $ICU_SRC_DIR |
| 3930 |
|
| 3931 |
Generate Java data as usual, only update pnames.icu & uprops.icu. |
| 3932 |
|
| 3933 |
---------------------------------------------------------------------------- *** |
| 3934 |
|
| 3935 |
Unicode 8.0 update for ICU 56 |
| 3936 |
|
| 3937 |
* Command-line environment setup |
| 3938 |
|
| 3939 |
ICU_ROOT=~/svn.icu/trunk |
| 3940 |
ICU_SRC_DIR=$ICU_ROOT/src |
| 3941 |
ICUDT=icudt56b |
| 3942 |
export LD_LIBRARY_PATH=$ICU_ROOT/dbg/lib |
| 3943 |
SRC_DATA_IN=$ICU_SRC_DIR/source/data/in |
| 3944 |
UNIDATA=$ICU_SRC_DIR/source/data/unidata |
| 3945 |
|
| 3946 |
http://www.unicode.org/review/pri297/ -- beta review |
| 3947 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 3948 |
http://unicode.org/versions/beta-8.0.0.html |
| 3949 |
http://www.unicode.org/versions/Unicode8.0.0/ |
| 3950 |
http://www.unicode.org/reports/tr44/tr44-15.html |
| 3951 |
|
| 3952 |
*** ICU Trac |
| 3953 |
|
| 3954 |
- ticket:11574: Unicode 8 |
| 3955 |
- C++ branches/markus/uni80 at r37351 from trunk at r37343 |
| 3956 |
- Java branches/markus/uni80 at r37352 from trunk at r37338 |
| 3957 |
|
| 3958 |
*** CLDR Trac |
| 3959 |
|
| 3960 |
- cldrbug 8311: UCA 8 |
| 3961 |
- branches/markus/uni80 at r11518 from trunk at r11517 |
| 3962 |
|
| 3963 |
- cldrbug 8109: Unicode 8.0 script metadata |
| 3964 |
- cldrbug 8418: Updated segmentation for Unicode 8.0 |
| 3965 |
|
| 3966 |
*** Unicode version numbers |
| 3967 |
- makedata.mak |
| 3968 |
- uchar.h |
| 3969 |
- com.ibm.icu.util.VersionInfo |
| 3970 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 3971 |
|
| 3972 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 3973 |
so that the makefiles see the new version number. |
| 3974 |
|
| 3975 |
*** data files & enums & parser code |
| 3976 |
|
| 3977 |
* file preparation |
| 3978 |
|
| 3979 |
- download UCD & IDNA files |
| 3980 |
- make sure that the Unicode data folder passed into preparseucd.py |
| 3981 |
includes a copy of the latest IdnaMappingTable.txt (can be in some subfolder) |
| 3982 |
- only for manual diffs: remove version suffixes from the file names |
| 3983 |
~/unidata/uni70/20140403$ ../../desuffixucd.py . |
| 3984 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 3985 |
- only for manual diffs: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 3986 |
- ~/svn.icutools/trunk/src/unicode$ py/preparseucd.py ~/unidata/uni80/20150415 $ICU_SRC_DIR ~/svn.icutools/trunk/src |
| 3987 |
- This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 3988 |
|
| 3989 |
- also: from http://unicode.org/Public/security/8.0.0/ download new |
| 3990 |
confusables.txt & confusablesWholeScript.txt |
| 3991 |
and copy to $UNIDATA |
| 3992 |
~/unidata$ cp uni80/20150415/security/confusables.txt $UNIDATA |
| 3993 |
~/unidata$ cp uni80/20150415/security/confusablesWholeScript.txt $UNIDATA |
| 3994 |
|
| 3995 |
* initial preparseucd.py changes |
| 3996 |
- remove new Unicode scripts from the |
| 3997 |
only-in-ISO-15924 list according to the error message: |
| 3998 |
ValueError: remove ['Ahom', 'Hatr', 'Hluw', 'Hung', 'Mult', 'Sgnw'] |
| 3999 |
from _scripts_only_in_iso15924 |
| 4000 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 4001 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 4002 |
- property and file name change: |
| 4003 |
IndicMatraCategory -> IndicPositionalCategory |
| 4004 |
- UnicodeData.txt unusual numeric values (improper fractions) |
| 4005 |
109F6;MEROITIC CURSIVE FRACTION ONE TWELFTH;No;0;R;;;;1/12;N;;;;; |
| 4006 |
109F7;MEROITIC CURSIVE FRACTION TWO TWELFTHS;No;0;R;;;;2/12;N;;;;; |
| 4007 |
109F8;MEROITIC CURSIVE FRACTION THREE TWELFTHS;No;0;R;;;;3/12;N;;;;; |
| 4008 |
109F9;MEROITIC CURSIVE FRACTION FOUR TWELFTHS;No;0;R;;;;4/12;N;;;;; |
| 4009 |
109FA;MEROITIC CURSIVE FRACTION FIVE TWELFTHS;No;0;R;;;;5/12;N;;;;; |
| 4010 |
109FB;MEROITIC CURSIVE FRACTION SIX TWELFTHS;No;0;R;;;;6/12;N;;;;; |
| 4011 |
109FC;MEROITIC CURSIVE FRACTION SEVEN TWELFTHS;No;0;R;;;;7/12;N;;;;; |
| 4012 |
109FD;MEROITIC CURSIVE FRACTION EIGHT TWELFTHS;No;0;R;;;;8/12;N;;;;; |
| 4013 |
109FE;MEROITIC CURSIVE FRACTION NINE TWELFTHS;No;0;R;;;;9/12;N;;;;; |
| 4014 |
109FF;MEROITIC CURSIVE FRACTION TEN TWELFTHS;No;0;R;;;;10/12;N;;;;; |
| 4015 |
-> change preparseucd.py to map them to proper fractions (e.g., 1/6) |
| 4016 |
which are listed in DerivedNumericValues.txt; |
| 4017 |
keeps storage in data file simple |
| 4018 |
|
| 4019 |
* PropertyValueAliases.txt changes |
| 4020 |
- 10 new Block (blk) values: |
| 4021 |
blk; Ahom ; Ahom |
| 4022 |
blk; Anatolian_Hieroglyphs ; Anatolian_Hieroglyphs |
| 4023 |
blk; Cherokee_Sup ; Cherokee_Supplement |
| 4024 |
blk; CJK_Ext_E ; CJK_Unified_Ideographs_Extension_E |
| 4025 |
blk; Early_Dynastic_Cuneiform ; Early_Dynastic_Cuneiform |
| 4026 |
blk; Hatran ; Hatran |
| 4027 |
blk; Multani ; Multani |
| 4028 |
blk; Old_Hungarian ; Old_Hungarian |
| 4029 |
blk; Sup_Symbols_And_Pictographs ; Supplemental_Symbols_And_Pictographs |
| 4030 |
blk; Sutton_SignWriting ; Sutton_SignWriting |
| 4031 |
-> add to uchar.h |
| 4032 |
use long property names for enum constants |
| 4033 |
-> add to UCharacter.UnicodeBlock IDs |
| 4034 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 4035 |
replace public static final int \1_ID = \2; \3 |
| 4036 |
-> add to UCharacter.UnicodeBlock objects |
| 4037 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 4038 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 4039 |
- 6 new Script (sc) values: |
| 4040 |
sc ; Ahom ; Ahom |
| 4041 |
sc ; Hatr ; Hatran |
| 4042 |
sc ; Hluw ; Anatolian_Hieroglyphs |
| 4043 |
sc ; Hung ; Old_Hungarian |
| 4044 |
sc ; Mult ; Multani |
| 4045 |
sc ; Sgnw ; SignWriting |
| 4046 |
-> all of them had been added already to uscript.h & com.ibm.icu.lang.UScript |
| 4047 |
|
| 4048 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 4049 |
(not strictly necessary for NOT_ENCODED scripts) |
| 4050 |
~/svn.icutools/trunk/src/unicode$ py/parsescriptmetadata.py $ICU_SRC_DIR/source/common/unicode/uscript.h ~/svn.cldr/trunk/common/properties/scriptMetadata.txt |
| 4051 |
|
| 4052 |
* generate normalization data files |
| 4053 |
cd $ICU_ROOT/dbg |
| 4054 |
bin/gennorm2 -o $ICU_SRC_DIR/source/common/norm2_nfc_data.h -s $UNIDATA/norm2 nfc.txt --csource |
| 4055 |
bin/gennorm2 -o $SRC_DATA_IN/nfc.nrm -s $UNIDATA/norm2 nfc.txt |
| 4056 |
bin/gennorm2 -o $SRC_DATA_IN/nfkc.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt |
| 4057 |
bin/gennorm2 -o $SRC_DATA_IN/nfkc_cf.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 4058 |
bin/gennorm2 -o $SRC_DATA_IN/uts46.nrm -s $UNIDATA/norm2 nfc.txt uts46.txt |
| 4059 |
|
| 4060 |
* build ICU (make install) |
| 4061 |
so that the tools build can pick up the new definitions from the installed header files. |
| 4062 |
|
| 4063 |
$ICU_ROOT/dbg$ echo;echo;make -j5 install > out.txt 2>&1 ; tail -n 20 out.txt |
| 4064 |
|
| 4065 |
* build Unicode tools using CMake+make |
| 4066 |
|
| 4067 |
~/svn.icutools/trunk/src/unicode/c/icudefs.txt: |
| 4068 |
|
| 4069 |
# Location (--prefix) of where ICU was installed. |
| 4070 |
set(ICU_INST_DIR /home/mscherer/svn.icu/trunk/inst) |
| 4071 |
# Location of the ICU source tree. |
| 4072 |
set(ICU_SRC_DIR /home/mscherer/svn.icu/trunk/src) |
| 4073 |
|
| 4074 |
~/svn.icutools/trunk/dbg/unicode/c$ cmake ../../../src/unicode/c |
| 4075 |
~/svn.icutools/trunk/dbg/unicode/c$ make |
| 4076 |
|
| 4077 |
* generate core properties data files |
| 4078 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genprops/genprops $ICU_SRC_DIR |
| 4079 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genuca/genuca --hanOrder implicit $ICU_SRC_DIR |
| 4080 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genuca/genuca --hanOrder radical-stroke $ICU_SRC_DIR |
| 4081 |
- rebuild ICU (make install) & tools |
| 4082 |
- run genuca again (see step above) so that it picks up the new nfc.nrm |
| 4083 |
- rebuild ICU (make install) & tools |
| 4084 |
|
| 4085 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 4086 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 4087 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 4088 |
- Unicode 6.0..8.0: U+2260, U+226E, U+226F |
| 4089 |
- nothing new in 8.0, no test file to update |
| 4090 |
|
| 4091 |
* run & fix ICU4C tests |
| 4092 |
- bad Cherokee case folding due to difference in fallbacks: |
| 4093 |
UCD case folding falls back to no mapping, |
| 4094 |
ICU runtime case folding falls back to lowercasing; |
| 4095 |
fixed casepropsbuilder.cpp to generate scf mappings to self |
| 4096 |
when there is an slc mapping but no scf |
| 4097 |
- Andy handles RBBI & spoof check test failures |
| 4098 |
|
| 4099 |
* collation: CLDR collation root, UCA DUCET |
| 4100 |
|
| 4101 |
- UCA DUCET goes into Mark's Unicode tools, see |
| 4102 |
https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 4103 |
- CLDR root data files are checked into (CLDR UCA branch)/common/uca/ |
| 4104 |
- cd (CLDR UCA branch)/common/uca/ |
| 4105 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 4106 |
cp FractionalUCA_SHORT.txt $ICU_SRC_DIR/source/data/unidata/FractionalUCA.txt |
| 4107 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 4108 |
cp $ICU_SRC_DIR/source/data/unidata/UCARules.txt /tmp/UCARules-old.txt |
| 4109 |
(note removing the underscore before "Rules") |
| 4110 |
cp UCA_Rules_SHORT.txt $ICU_SRC_DIR/source/data/unidata/UCARules.txt |
| 4111 |
- restore TODO diffs in UCARules.txt |
| 4112 |
meld /tmp/UCARules-old.txt $ICU_SRC_DIR/source/data/unidata/UCARules.txt |
| 4113 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 4114 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 4115 |
from the CLDR root files (..._CLDR_..._SHORT.txt) |
| 4116 |
cp CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC_DIR/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 4117 |
cp CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC_DIR/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 4118 |
cp $ICU_SRC_DIR/source/test/testdata/CollationTest_*.txt ~/svn.icu4j/trunk/src/main/tests/collate/src/com/ibm/icu/dev/data |
| 4119 |
- if CLDR common/uca/unihan-index.txt changes, then update |
| 4120 |
CLDR common/collation/root.xml <collation type="private-unihan"> |
| 4121 |
and regenerate (or update in parallel) $ICU_SRC_DIR/source/data/coll/root.txt |
| 4122 |
- run genuca, see command line above; |
| 4123 |
deal with |
| 4124 |
Error: Unknown script for first-primary sample character U+07d8 on line 23005 of /home/mscherer/svn.icu/trunk/src/source/data/unidata/FractionalUCA.txt |
| 4125 |
(add the character to genuca.cpp sampleCharsToScripts[]) |
| 4126 |
+ look up the script for the new sample characters |
| 4127 |
(e.g., in FractionalUCA.txt) |
| 4128 |
+ *add* mappings to sampleCharsToScripts[], do not replace them |
| 4129 |
(in case the script sample characters flip-flop) |
| 4130 |
+ insert new scripts in DUCET script order, see the top_byte table |
| 4131 |
at the beginning of FractionalUCA.txt |
| 4132 |
- rebuild ICU4C |
| 4133 |
|
| 4134 |
* run & fix ICU4C tests, now with new CLDR collation root data |
| 4135 |
- run all tests with the collation test data *_SHORT.txt or the full files |
| 4136 |
(the full ones have comments, useful for debugging) |
| 4137 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 4138 |
utility/MultithreadTest/TestCollators will fail as well; |
| 4139 |
fix the conformance test before looking into the multi-thread test |
| 4140 |
- fixed bug in CollationWeights::getWeightRanges() |
| 4141 |
exposed by new data and CollationTest::TestRootElements |
| 4142 |
|
| 4143 |
* update Java data files |
| 4144 |
- refresh just the UCD/UCA-related/derived files, just to be safe |
| 4145 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 4146 |
- mkdir /tmp/icu4j |
| 4147 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4148 |
output: |
| 4149 |
... |
| 4150 |
Unicode .icu files built to ./out/build/icudt56l |
| 4151 |
echo timestamp > uni-core-data |
| 4152 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt56b |
| 4153 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt56b |
| 4154 |
echo pnames.icu uprops.icu ucase.icu ubidi.icu nfc.nrm > ./out/icu4j/add.txt |
| 4155 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt56l.dat ./out/icu4j/icudt56b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt56l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt56b |
| 4156 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt56b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt56b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt56b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt56b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt56b" |
| 4157 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt56b/ |
| 4158 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4159 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 4160 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt56b/ |
| 4161 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4162 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 4163 |
make[1]: Leaving directory `/home/mscherer/svn.icu/trunk/dbg/data' |
| 4164 |
- copy the big-endian Unicode data files to another location, |
| 4165 |
separate from the other data files, |
| 4166 |
and then refresh ICU4J |
| 4167 |
cd ~/svn.icu/trunk/dbg/data/out/icu4j |
| 4168 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 4169 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 4170 |
cp com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 4171 |
cp com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 4172 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 4173 |
cp com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 4174 |
cp com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 4175 |
cp com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 4176 |
jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 4177 |
|
| 4178 |
* When refreshing all of ICU4J data from ICU4C |
| 4179 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4180 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 4181 |
or |
| 4182 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 4183 |
|
| 4184 |
* update CollationFCD.java |
| 4185 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 4186 |
ICU4C/source/i18n/collationfcd.cpp to |
| 4187 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 4188 |
|
| 4189 |
* refresh Java test .txt files |
| 4190 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4191 |
cd $ICU_SRC_DIR/source/data/unidata |
| 4192 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4193 |
cd ../../test/testdata |
| 4194 |
cp BidiCharacterTest.txt BidiTest.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4195 |
cp ~/unidata/uni80/20150415/ucd/CompositionExclusions.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4196 |
|
| 4197 |
* run & fix ICU4J tests |
| 4198 |
|
| 4199 |
*** LayoutEngine script information |
| 4200 |
|
| 4201 |
* ICU 56: Modify ScriptIDModuleWriter.java to not output @stable tags any more, |
| 4202 |
because the layout engine was deprecated in ICU 54. |
| 4203 |
Modify ScriptIDModuleWriter.java and ScriptTagModuleWriter.java |
| 4204 |
to write lines that we used to add manually. |
| 4205 |
|
| 4206 |
* Run icu4j-tools: com.ibm.icu.dev.tool.layout.ScriptNameBuilder. |
| 4207 |
This generates LEScripts.h, LELanguages.h, ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp |
| 4208 |
in the working directory. |
| 4209 |
|
| 4210 |
(It also generates ScriptRunData.cpp, which is no longer needed.) |
| 4211 |
|
| 4212 |
It also reads and regenerates tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptAndLanguages |
| 4213 |
(a plain text file) |
| 4214 |
which maps ICU versions to the numbers of script/language constants |
| 4215 |
that were added then. |
| 4216 |
(This mapping is probably obsolete since we do not print "@stable ICU xy" any more.) |
| 4217 |
|
| 4218 |
The generated files have a current copyright date and "@deprecated" statement. |
| 4219 |
|
| 4220 |
* Review changes, fix Java tool if necessary, and copy to ICU4C |
| 4221 |
cd ~/svn.icu4j/trunk/src |
| 4222 |
meld $ICU_SRC_DIR/source/layout tools/misc/src/com/ibm/icu/dev/tool/layout |
| 4223 |
cp tools/misc/src/com/ibm/icu/dev/tool/layout/*.h $ICU_SRC_DIR/source/layout |
| 4224 |
cp tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptAndLanguageTags.cpp $ICU_SRC_DIR/source/layout |
| 4225 |
|
| 4226 |
*** API additions |
| 4227 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 4228 |
|
| 4229 |
*** merge the Unicode update branches back onto the trunk |
| 4230 |
- do not merge the icudata.jar and testdata.jar, |
| 4231 |
instead rebuild them from merged & tested ICU4C |
| 4232 |
- make sure that changes to Unicode tools & ICU tools are checked in |
| 4233 |
http://www.unicode.org/utility/trac/log/trunk/unicodetools |
| 4234 |
http://bugs.icu-project.org/trac/log/tools/trunk |
| 4235 |
|
| 4236 |
---------------------------------------------------------------------------- *** |
| 4237 |
|
| 4238 |
Unicode 7.0 update for ICU 54 |
| 4239 |
|
| 4240 |
http://www.unicode.org/review/pri271/ -- beta review |
| 4241 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 4242 |
http://www.unicode.org/versions/beta-7.0.0.html#notable_issues |
| 4243 |
http://www.unicode.org/reports/tr44/tr44-13.html |
| 4244 |
|
| 4245 |
*** ICU Trac |
| 4246 |
|
| 4247 |
- ticket 10821: Unicode 7.0, UCA 7.0 |
| 4248 |
- C++ branches/markus/uni70 at r35584 from trunk at r35580 |
| 4249 |
- Java branches/markus/uni70 at r35587 from trunk at r35545 |
| 4250 |
|
| 4251 |
*** CLDR Trac |
| 4252 |
|
| 4253 |
- ticket 7195: UCA 7.0 CLDR root collation |
| 4254 |
- branches/markus/uni70 at r10062 from trunk at r10061 |
| 4255 |
|
| 4256 |
- ticket 6762: script metadata for Unicode 7.0 new scripts |
| 4257 |
|
| 4258 |
*** Unicode version numbers |
| 4259 |
- makedata.mak |
| 4260 |
- uchar.h |
| 4261 |
- com.ibm.icu.util.VersionInfo |
| 4262 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 4263 |
|
| 4264 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 4265 |
so that the makefiles see the new version number. |
| 4266 |
|
| 4267 |
*** data files & enums & parser code |
| 4268 |
|
| 4269 |
* file preparation |
| 4270 |
|
| 4271 |
- download UCD & IDNA files |
| 4272 |
- make sure that the Unicode data folder passed into preparseucd.py |
| 4273 |
includes a copy of the latest IdnaMappingTable.txt (can be in some subfolder) |
| 4274 |
- only for manual diffs: remove version suffixes from the file names |
| 4275 |
~/unidata/uni70/20140403$ ../../desuffixucd.py . |
| 4276 |
(see https://sites.google.com/site/unicodetools/inputdata) |
| 4277 |
- only for manual diffs: extract Unihan.zip to "here" (.../ucd/Unihan/*.txt), delete Unihan.zip |
| 4278 |
- ~/svn.icutools/trunk/src/unicode$ py/preparseucd.py ~/unidata/uni70/20140403 $ICU_SRC_DIR ~/svn.icutools/trunk/src |
| 4279 |
- This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 4280 |
- Restore TODO diffs in source/data/unidata/UCARules.txt |
| 4281 |
cd $ICU_SRC_DIR |
| 4282 |
meld ../../trunk/src/source/data/unidata/UCARules.txt source/data/unidata/UCARules.txt |
| 4283 |
- Restore ICU patches for ticket #10176 in source/test/testdata/LineBreakTest.txt |
| 4284 |
|
| 4285 |
- also: from http://unicode.org/Public/security/7.0.0/ download new |
| 4286 |
confusables.txt & confusablesWholeScript.txt |
| 4287 |
and copy to $ICU_ROOT/src/source/data/unidata/ |
| 4288 |
|
| 4289 |
* initial preparseucd.py changes |
| 4290 |
- remove new Unicode scripts from the |
| 4291 |
only-in-ISO-15924 list according to the error message: |
| 4292 |
ValueError: remove ['Hmng', 'Lina', 'Perm', 'Mani', 'Phlp', 'Bass', |
| 4293 |
'Dupl', 'Elba', 'Gran', 'Mend', 'Narb', 'Nbat', 'Palm', |
| 4294 |
'Sind', 'Wara', 'Mroo', 'Khoj', 'Tirh', 'Aghb', 'Mahj'] |
| 4295 |
from _scripts_only_in_iso15924 |
| 4296 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 4297 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 4298 |
- NamesList.txt now has a heading with a non-ASCII character |
| 4299 |
+ keep ppucd.txt in platform charset, rather than changing tool/test parsers |
| 4300 |
+ escape non-ASCII characters in heading comments |
| 4301 |
- gets Unicode copyright line from PropertyAliases.txt which is currently still at 2013 |
| 4302 |
+ get the copyright from the first file whose copyright line contains the current year |
| 4303 |
|
| 4304 |
* PropertyValueAliases.txt changes |
| 4305 |
- 32 new Block (blk) values: |
| 4306 |
blk; Bassa_Vah ; Bassa_Vah |
| 4307 |
blk; Caucasian_Albanian ; Caucasian_Albanian |
| 4308 |
blk; Coptic_Epact_Numbers ; Coptic_Epact_Numbers |
| 4309 |
blk; Diacriticals_Ext ; Combining_Diacritical_Marks_Extended |
| 4310 |
blk; Duployan ; Duployan |
| 4311 |
blk; Elbasan ; Elbasan |
| 4312 |
blk; Geometric_Shapes_Ext ; Geometric_Shapes_Extended |
| 4313 |
blk; Grantha ; Grantha |
| 4314 |
blk; Khojki ; Khojki |
| 4315 |
blk; Khudawadi ; Khudawadi |
| 4316 |
blk; Latin_Ext_E ; Latin_Extended_E |
| 4317 |
blk; Linear_A ; Linear_A |
| 4318 |
blk; Mahajani ; Mahajani |
| 4319 |
blk; Manichaean ; Manichaean |
| 4320 |
blk; Mende_Kikakui ; Mende_Kikakui |
| 4321 |
blk; Modi ; Modi |
| 4322 |
blk; Mro ; Mro |
| 4323 |
blk; Myanmar_Ext_B ; Myanmar_Extended_B |
| 4324 |
blk; Nabataean ; Nabataean |
| 4325 |
blk; Old_North_Arabian ; Old_North_Arabian |
| 4326 |
blk; Old_Permic ; Old_Permic |
| 4327 |
blk; Ornamental_Dingbats ; Ornamental_Dingbats |
| 4328 |
blk; Pahawh_Hmong ; Pahawh_Hmong |
| 4329 |
blk; Palmyrene ; Palmyrene |
| 4330 |
blk; Pau_Cin_Hau ; Pau_Cin_Hau |
| 4331 |
blk; Psalter_Pahlavi ; Psalter_Pahlavi |
| 4332 |
blk; Shorthand_Format_Controls ; Shorthand_Format_Controls |
| 4333 |
blk; Siddham ; Siddham |
| 4334 |
blk; Sinhala_Archaic_Numbers ; Sinhala_Archaic_Numbers |
| 4335 |
blk; Sup_Arrows_C ; Supplemental_Arrows_C |
| 4336 |
blk; Tirhuta ; Tirhuta |
| 4337 |
blk; Warang_Citi ; Warang_Citi |
| 4338 |
-> add to uchar.h |
| 4339 |
use long property names for enum constants |
| 4340 |
-> add to UCharacter.UnicodeBlock IDs |
| 4341 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 4342 |
replace public static final int \1_ID = \2; \3 |
| 4343 |
-> add to UCharacter.UnicodeBlock objects |
| 4344 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 4345 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 4346 |
- 28 new Joining_Group (jg) values: |
| 4347 |
jg ; Manichaean_Aleph ; Manichaean_Aleph |
| 4348 |
jg ; Manichaean_Ayin ; Manichaean_Ayin |
| 4349 |
jg ; Manichaean_Beth ; Manichaean_Beth |
| 4350 |
jg ; Manichaean_Daleth ; Manichaean_Daleth |
| 4351 |
jg ; Manichaean_Dhamedh ; Manichaean_Dhamedh |
| 4352 |
jg ; Manichaean_Five ; Manichaean_Five |
| 4353 |
jg ; Manichaean_Gimel ; Manichaean_Gimel |
| 4354 |
jg ; Manichaean_Heth ; Manichaean_Heth |
| 4355 |
jg ; Manichaean_Hundred ; Manichaean_Hundred |
| 4356 |
jg ; Manichaean_Kaph ; Manichaean_Kaph |
| 4357 |
jg ; Manichaean_Lamedh ; Manichaean_Lamedh |
| 4358 |
jg ; Manichaean_Mem ; Manichaean_Mem |
| 4359 |
jg ; Manichaean_Nun ; Manichaean_Nun |
| 4360 |
jg ; Manichaean_One ; Manichaean_One |
| 4361 |
jg ; Manichaean_Pe ; Manichaean_Pe |
| 4362 |
jg ; Manichaean_Qoph ; Manichaean_Qoph |
| 4363 |
jg ; Manichaean_Resh ; Manichaean_Resh |
| 4364 |
jg ; Manichaean_Sadhe ; Manichaean_Sadhe |
| 4365 |
jg ; Manichaean_Samekh ; Manichaean_Samekh |
| 4366 |
jg ; Manichaean_Taw ; Manichaean_Taw |
| 4367 |
jg ; Manichaean_Ten ; Manichaean_Ten |
| 4368 |
jg ; Manichaean_Teth ; Manichaean_Teth |
| 4369 |
jg ; Manichaean_Thamedh ; Manichaean_Thamedh |
| 4370 |
jg ; Manichaean_Twenty ; Manichaean_Twenty |
| 4371 |
jg ; Manichaean_Waw ; Manichaean_Waw |
| 4372 |
jg ; Manichaean_Yodh ; Manichaean_Yodh |
| 4373 |
jg ; Manichaean_Zayin ; Manichaean_Zayin |
| 4374 |
jg ; Straight_Waw ; Straight_Waw |
| 4375 |
-> uchar.h & UCharacter.JoiningGroup |
| 4376 |
- 23 new Script (sc) values: |
| 4377 |
sc ; Aghb ; Caucasian_Albanian |
| 4378 |
sc ; Bass ; Bassa_Vah |
| 4379 |
sc ; Dupl ; Duployan |
| 4380 |
sc ; Elba ; Elbasan |
| 4381 |
sc ; Gran ; Grantha |
| 4382 |
sc ; Hmng ; Pahawh_Hmong |
| 4383 |
sc ; Khoj ; Khojki |
| 4384 |
sc ; Lina ; Linear_A |
| 4385 |
sc ; Mahj ; Mahajani |
| 4386 |
sc ; Mani ; Manichaean |
| 4387 |
sc ; Mend ; Mende_Kikakui |
| 4388 |
sc ; Modi ; Modi |
| 4389 |
sc ; Mroo ; Mro |
| 4390 |
sc ; Narb ; Old_North_Arabian |
| 4391 |
sc ; Nbat ; Nabataean |
| 4392 |
sc ; Palm ; Palmyrene |
| 4393 |
sc ; Pauc ; Pau_Cin_Hau |
| 4394 |
sc ; Perm ; Old_Permic |
| 4395 |
sc ; Phlp ; Psalter_Pahlavi |
| 4396 |
sc ; Sidd ; Siddham |
| 4397 |
sc ; Sind ; Khudawadi |
| 4398 |
sc ; Tirh ; Tirhuta |
| 4399 |
sc ; Wara ; Warang_Citi |
| 4400 |
-> uscript.h (many were added before) |
| 4401 |
comment "Mende Kikakui" for USCRIPT_MENDE |
| 4402 |
add USCRIPT_KHUDAWADI, make USCRIPT_SINDHI an alias |
| 4403 |
-> com.ibm.icu.lang.UScript |
| 4404 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 4405 |
replace public static final int \1 = \2; \3 |
| 4406 |
- 6 new script codes from ISO 15924 http://www.unicode.org/iso15924/codechanges.html |
| 4407 |
(added 2012-11-01) |
| 4408 |
Ahom 338 Ahom |
| 4409 |
Hatr 127 Hatran |
| 4410 |
Mult 323 Multani |
| 4411 |
(added 2013-10-12) |
| 4412 |
Modi 324 Modi |
| 4413 |
Pauc 263 Pau Cin Hau |
| 4414 |
Sidd 302 Siddham |
| 4415 |
-> uscript.h (some overlap with additions from Unicode) |
| 4416 |
-> com.ibm.icu.lang.UScript |
| 4417 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 4418 |
replace public static final int \1 = \2; \3 |
| 4419 |
-> add Ahom, Hatr, Mult to preparseucd.py _scripts_only_in_iso15924 |
| 4420 |
-> add to expectedLong and expectedShort names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 4421 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 4422 |
|
| 4423 |
* update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 4424 |
(not strictly necessary for NOT_ENCODED scripts) |
| 4425 |
~/svn.icutools/trunk/src/unicode$ py/parsescriptmetadata.py $ICU_SRC_DIR/source/common/unicode/uscript.h ~/svn.cldr/trunk/common/properties/scriptMetadata.txt |
| 4426 |
|
| 4427 |
* generate normalization data files |
| 4428 |
- cd $ICU_ROOT/dbg |
| 4429 |
- export LD_LIBRARY_PATH=$ICU_ROOT/dbg/lib |
| 4430 |
- SRC_DATA_IN=$ICU_SRC_DIR/source/data/in |
| 4431 |
- UNIDATA=$ICU_SRC_DIR/source/data/unidata |
| 4432 |
- bin/gennorm2 -o $ICU_SRC_DIR/source/common/norm2_nfc_data.h -s $UNIDATA/norm2 nfc.txt --csource |
| 4433 |
- bin/gennorm2 -o $SRC_DATA_IN/nfc.nrm -s $UNIDATA/norm2 nfc.txt |
| 4434 |
- bin/gennorm2 -o $SRC_DATA_IN/nfkc.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt |
| 4435 |
- bin/gennorm2 -o $SRC_DATA_IN/nfkc_cf.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 4436 |
- bin/gennorm2 -o $SRC_DATA_IN/uts46.nrm -s $UNIDATA/norm2 nfc.txt uts46.txt |
| 4437 |
|
| 4438 |
* build ICU (make install) |
| 4439 |
so that the tools build can pick up the new definitions from the installed header files. |
| 4440 |
|
| 4441 |
~/svn.icu/uni70/dbg$ echo;echo;make -j5 install > out.txt 2>&1 ; tail -n 20 out.txt |
| 4442 |
|
| 4443 |
* build Unicode tools using CMake+make |
| 4444 |
|
| 4445 |
~/svn.icutools/trunk/src/unicode/c/icudefs.txt: |
| 4446 |
|
| 4447 |
# Location (--prefix) of where ICU was installed. |
| 4448 |
set(ICU_INST_DIR /home/mscherer/svn.icu/uni70/inst) |
| 4449 |
# Location of the ICU source tree. |
| 4450 |
set(ICU_SRC_DIR /home/mscherer/svn.icu/uni70/src) |
| 4451 |
|
| 4452 |
~/svn.icutools/trunk/dbg/unicode/c$ cmake ../../../src/unicode/c |
| 4453 |
~/svn.icutools/trunk/dbg/unicode/c$ make |
| 4454 |
|
| 4455 |
* genprops work |
| 4456 |
- new code point range for Joining_Group values: 10AC0..10AFF Manichaean |
| 4457 |
+ add second array of Joining_Group values for at most 10800..10FFF |
| 4458 |
icutools: unicode/c/genprops/bidipropsbuilder.cpp |
| 4459 |
icu: source/common/ubidi_props.h/.c/_data.h |
| 4460 |
icu4j: main/classes/core/src/com/ibm/icu/impl/UBiDiProps.java |
| 4461 |
|
| 4462 |
* generate core properties data files |
| 4463 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genprops/genprops $ICU_SRC_DIR |
| 4464 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genuca/genuca $ICU_SRC_DIR |
| 4465 |
- rebuild ICU (make install) & tools |
| 4466 |
- run genuca again (see step above) so that it picks up the new nfc.nrm |
| 4467 |
- rebuild ICU (make install) & tools |
| 4468 |
|
| 4469 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 4470 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 4471 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 4472 |
- Unicode 6.0..7.0: U+2260, U+226E, U+226F |
| 4473 |
- nothing new in 7.0, no test file to update |
| 4474 |
|
| 4475 |
* run & fix ICU4C tests |
| 4476 |
|
| 4477 |
* update Java data files |
| 4478 |
- refresh just the UCD-related files, just to be safe |
| 4479 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 4480 |
- mkdir /tmp/icu4j |
| 4481 |
- ~/svn.icu/uni70/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4482 |
output: |
| 4483 |
... |
| 4484 |
Unicode .icu files built to ./out/build/icudt53l |
| 4485 |
echo timestamp > uni-core-data |
| 4486 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt53b |
| 4487 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt53b |
| 4488 |
echo pnames.icu ubidi.icu ucase.icu uprops.icu > ./out/icu4j/add.txt |
| 4489 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt53l.dat ./out/icu4j/icudt53b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt53l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt53b |
| 4490 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt53b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt53b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt53b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt53b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt53b" |
| 4491 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt53b/ |
| 4492 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4493 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 4494 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt53b/ |
| 4495 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4496 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 4497 |
make[1]: Leaving directory `/home/mscherer/svn.icu/uni70/dbg/data' |
| 4498 |
- copy the big-endian Unicode data files to another location, |
| 4499 |
separate from the other data files |
| 4500 |
ICUDT=icudt54b |
| 4501 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 4502 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 4503 |
cd ~/svn.icu/uni70/dbg/data/out/icu4j |
| 4504 |
cp com/ibm/icu/impl/data/$ICUDT/confusables.cfu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 4505 |
cp com/ibm/icu/impl/data/$ICUDT/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 4506 |
rm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/cnvalias.icu |
| 4507 |
cp com/ibm/icu/impl/data/$ICUDT/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT |
| 4508 |
cp com/ibm/icu/impl/data/$ICUDT/coll/*.icu /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 4509 |
cp com/ibm/icu/impl/data/$ICUDT/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/brkitr |
| 4510 |
- refresh ICU4J |
| 4511 |
~/svn.icu/uni70/dbg/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 4512 |
|
| 4513 |
* update CollationFCD.java |
| 4514 |
+ copy & paste the initializers of lcccIndex[] etc. from |
| 4515 |
ICU4C/source/i18n/collationfcd.cpp to |
| 4516 |
ICU4J/main/classes/collate/src/com/ibm/icu/impl/coll/CollationFCD.java |
| 4517 |
|
| 4518 |
* refresh Java test .txt files |
| 4519 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4520 |
cd $ICU_SRC_DIR/source/data/unidata |
| 4521 |
cp confusables.txt confusablesWholeScript.txt NormalizationCorrections.txt NormalizationTest.txt SpecialCasing.txt UnicodeData.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4522 |
cd ../../test/testdata |
| 4523 |
cp BidiCharacterTest.txt BidiTest.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4524 |
cp ~/unidata/uni70/20140409/ucd/CompositionExclusions.txt ~/svn.icu4j/trunk/src/main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4525 |
|
| 4526 |
* UCA |
| 4527 |
|
| 4528 |
- download UCA files (mostly allkeys.txt) from http://www.unicode.org/Public/UCA/<beta version>/ |
| 4529 |
- run desuffixucd.py (see https://sites.google.com/site/unicodetools/inputdata) |
| 4530 |
- update the input files for Mark's UCA tools, in ~/svn.unitools/trunk/data/uca/7.0.0/ |
| 4531 |
- run Mark's UCA Main: https://sites.google.com/site/unicodetools/home#TOC-UCA |
| 4532 |
- output files are in ~/svn.unitools/Generated/uca/7.0.0/ |
| 4533 |
- review data; compare files, use blankweights.sed or similar |
| 4534 |
~/svn.unitools$ sed -r -f blankweights.sed Generated/uca/7.0.0/CollationAuxiliary/FractionalUCA.txt > frac-7.0.txt |
| 4535 |
- cd ~/svn.unitools/Generated/uca/7.0.0/ |
| 4536 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 4537 |
cp CollationAuxiliary/FractionalUCA_SHORT.txt $ICU_SRC_DIR/source/data/unidata/FractionalUCA.txt |
| 4538 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 4539 |
(note removing the underscore before "Rules") |
| 4540 |
cp CollationAuxiliary/UCA_Rules_SHORT.txt $ICU_SRC_DIR/source/data/unidata/UCARules.txt |
| 4541 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 4542 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 4543 |
with output from Mark's Unicode tools (..._CLDR_..._SHORT.txt) |
| 4544 |
cp CollationAuxiliary/CollationTest_CLDR_NON_IGNORABLE_SHORT.txt $ICU_SRC_DIR/source/test/testdata/CollationTest_NON_IGNORABLE_SHORT.txt |
| 4545 |
cp CollationAuxiliary/CollationTest_CLDR_SHIFTED_SHORT.txt $ICU_SRC_DIR/source/test/testdata/CollationTest_SHIFTED_SHORT.txt |
| 4546 |
cp $ICU_SRC_DIR/source/test/testdata/CollationTest_*.txt ~/svn.icu4j/trunk/src/main/tests/collate/src/com/ibm/icu/dev/data |
| 4547 |
- run genuca, see command line above |
| 4548 |
- rebuild ICU4C |
| 4549 |
- refresh ICU4J collation data: |
| 4550 |
(subset of instructions above for properties data refresh, except copies all coll/*) |
| 4551 |
ICUDT=icudt54b |
| 4552 |
~/svn.icu/uni70/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4553 |
~/svn.icu/uni70/dbg$ mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 4554 |
~/svn.icu/uni70/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/$ICUDT/coll/* /tmp/icu4j/com/ibm/icu/impl/data/$ICUDT/coll |
| 4555 |
~/svn.icu/uni70/dbg/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/$ICUDT |
| 4556 |
- run all tests with the *_SHORT.txt or the full files (the full ones have comments, useful for debugging) |
| 4557 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 4558 |
utility/MultithreadTest/TestCollators will fail as well; |
| 4559 |
fix the conformance test before looking into the multi-thread test |
| 4560 |
- copy all output from Mark's UCA tool to unicode.org for review & staging by Ken & editors |
| 4561 |
- copy most of ~/svn.unitools/Generated/uca/7.0.0/CollationAuxiliary/* to CLDR branch |
| 4562 |
~/svn.unitools$ cp Generated/uca/7.0.0/CollationAuxiliary/* ~/svn.cldr/trunk/common/uca/ |
| 4563 |
|
| 4564 |
* When refreshing all of ICU4J data from ICU4C |
| 4565 |
- ~/svn.icu/uni70/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4566 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 4567 |
or |
| 4568 |
- ~/svn.icu/uni70/dbg$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 4569 |
|
| 4570 |
* run & fix ICU4J tests |
| 4571 |
|
| 4572 |
*** LayoutEngine script information |
| 4573 |
|
| 4574 |
(For details see the Unicode 5.2 change log below.) |
| 4575 |
|
| 4576 |
* Run icu4j-tools: com.ibm.icu.dev.tool.layout.ScriptNameBuilder. |
| 4577 |
This generates LEScripts.h, LELanguages.h, ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp |
| 4578 |
in the working directory. |
| 4579 |
(It also generates ScriptRunData.cpp, which is no longer needed.) |
| 4580 |
|
| 4581 |
The generated files have a current copyright date and "@stable" statement. |
| 4582 |
ICU 54: Fixed tools/misc/src/com/ibm/icu/dev/tool/layout/ScriptIDModuleWriter.java |
| 4583 |
for "born stable" Unicode API constants, and to stop parsing ICU version numbers |
| 4584 |
which may not contain dots any more. |
| 4585 |
|
| 4586 |
- diff current <icu>/source/layout files vs. generated ones |
| 4587 |
~/svn.icu4j/trunk/src$ meld $ICU_SRC_DIR/source/layout tools/misc/src/com/ibm/icu/dev/tool/layout |
| 4588 |
review and manually merge desired changes; |
| 4589 |
fix gratuitous changes, incorrect @draft/@stable and missing aliases; |
| 4590 |
Unicode-derived script codes should be "born stable" like constants in uchar.h, uscript.h etc. |
| 4591 |
- if you just copy the above files, then |
| 4592 |
fix mixed line endings, review the diffs as above and restore changes to API tags etc.; |
| 4593 |
manually re-add the "Indic script xyz v.2" tags in ScriptAndLanguageTags.h |
| 4594 |
|
| 4595 |
*** API additions |
| 4596 |
- send notice to icu-design about new born-@stable API (enum constants etc.) |
| 4597 |
|
| 4598 |
*** merge the Unicode update branches back onto the trunk |
| 4599 |
- do not merge the icudata.jar and testdata.jar, |
| 4600 |
instead rebuild them from merged & tested ICU4C |
| 4601 |
|
| 4602 |
---------------------------------------------------------------------------- *** |
| 4603 |
|
| 4604 |
Unicode 6.3 update |
| 4605 |
|
| 4606 |
http://www.unicode.org/review/pri249/ -- beta review |
| 4607 |
http://www.unicode.org/reports/uax-proposed-updates.html |
| 4608 |
http://www.unicode.org/versions/beta-6.3.0.html#notable_issues |
| 4609 |
http://www.unicode.org/reports/tr44/tr44-11.html |
| 4610 |
|
| 4611 |
*** ICU Trac |
| 4612 |
|
| 4613 |
- ticket 10128: update ICU to Unicode 6.3 beta |
| 4614 |
- ticket 10168: update ICU to Unicode 6.3 final |
| 4615 |
- C++ branches/markus/uni63 at r33552 from trunk at r33551 |
| 4616 |
- Java branches/markus/uni63 at r33550 from trunk at r33553 |
| 4617 |
|
| 4618 |
- ticket 10142: implement Unicode 6.3 bidi algorithm additions |
| 4619 |
|
| 4620 |
*** Unicode version numbers |
| 4621 |
- makedata.mak |
| 4622 |
- uchar.h |
| 4623 |
(configure.in & configure: have been modified to extract the version from uchar.h) |
| 4624 |
- com.ibm.icu.util.VersionInfo |
| 4625 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 4626 |
|
| 4627 |
- Run ICU4C "configure" _after_ updating the Unicode version number in uchar.h |
| 4628 |
so that the makefiles see the new version number. |
| 4629 |
|
| 4630 |
*** data files & enums & parser code |
| 4631 |
|
| 4632 |
* file preparation |
| 4633 |
|
| 4634 |
- download UCD, UCA & IDNA files |
| 4635 |
- make sure that the Unicode data folder passed into preparseucd.py |
| 4636 |
includes a copy of the latest IdnaMappingTable.txt (can be in some subfolder) |
| 4637 |
- modify preparseucd.py: |
| 4638 |
parse new file BidiBrackets.txt |
| 4639 |
with new properties bpb=Bidi_Paired_Bracket and bpt=Bidi_Paired_Bracket_Type |
| 4640 |
- ~/svn.icutools/trunk/src/unicode$ py/preparseucd.py ~/unidata/uni63/20130425 ~/svn.icu/uni63/src ~/svn.icutools/trunk/src |
| 4641 |
- This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 4642 |
- Check test file diffs for previously commented-out, known-failing data lines; |
| 4643 |
probably need to keep those commented out. |
| 4644 |
|
| 4645 |
* PropertyAliases.txt changes |
| 4646 |
- 1 new Enumerated Property |
| 4647 |
bpt ; Bidi_Paired_Bracket_Type |
| 4648 |
-> uchar.h & UProperty.java & UCharacter.BidiPairedBracketType |
| 4649 |
-> ubidi_props.h & .c & UBiDiProps.java |
| 4650 |
-> remember to write the max value at UBIDI_MAX_VALUES_INDEX |
| 4651 |
-> uprops.cpp |
| 4652 |
-> change ubidi.icu format version from 2.0 to 2.1 |
| 4653 |
- 1 new Miscellaneous Property |
| 4654 |
bpb ; Bidi_Paired_Bracket |
| 4655 |
-> uchar.h & UProperty.java |
| 4656 |
-> ppucd.h & .cpp |
| 4657 |
|
| 4658 |
* PropertyValueAliases.txt changes |
| 4659 |
- 3 Bidi_Paired_Bracket_Type (bpt) values: |
| 4660 |
bpt; c ; Close |
| 4661 |
bpt; n ; None |
| 4662 |
bpt; o ; Open |
| 4663 |
-> uchar.h & UCharacter.BidiPairedBracketType |
| 4664 |
-> ubidi_props.h & .c & UBiDiProps.java |
| 4665 |
-> change ubidi.icu format version from 2.0 to 2.1 |
| 4666 |
- 4 new Bidi_Class (bc) values: |
| 4667 |
bc ; FSI ; First_Strong_Isolate |
| 4668 |
bc ; LRI ; Left_To_Right_Isolate |
| 4669 |
bc ; RLI ; Right_To_Left_Isolate |
| 4670 |
bc ; PDI ; Pop_Directional_Isolate |
| 4671 |
-> uchar.h & UCharacterEnums.ECharacterDirection |
| 4672 |
-> until the bidi code gets updated, |
| 4673 |
Roozbeh suggests mapping the new bc values to ON (Other_Neutral) |
| 4674 |
- 3 new Word_Break (WB) values: |
| 4675 |
WB ; HL ; Hebrew_Letter |
| 4676 |
WB ; SQ ; Single_Quote |
| 4677 |
WB ; DQ ; Double_Quote |
| 4678 |
-> uchar.h & UCharacter.WordBreak |
| 4679 |
-> first time Word_Break numeric constants exceed 4 bits (now 17 values) |
| 4680 |
- 2 new script codes from ISO 15924 http://www.unicode.org/iso15924/codechanges.html |
| 4681 |
(added 2012-10-16) |
| 4682 |
Aghb 239 Caucasian Albanian |
| 4683 |
Mahj 314 Mahajani |
| 4684 |
-> uscript.h |
| 4685 |
-> com.ibm.icu.lang.UScript |
| 4686 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 4687 |
replace public static final int \1 = \2;\3 |
| 4688 |
-> preparseucd.py _scripts_only_in_iso15924 |
| 4689 |
-> add to expectedLong and expectedShort names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 4690 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 4691 |
-> update Script metadata: SCRIPT_PROPS[] in uscript_props.cpp & UScript.ScriptMetadata |
| 4692 |
(not strictly necessary for NOT_ENCODED scripts) |
| 4693 |
|
| 4694 |
* generate normalization data files |
| 4695 |
- ~/svn.icu/uni63/dbg$ export LD_LIBRARY_PATH=~/svn.icu/uni63/dbg/lib |
| 4696 |
- ~/svn.icu/uni63/dbg$ SRC_DATA_IN=~/svn.icu/uni63/src/source/data/in |
| 4697 |
- ~/svn.icu/uni63/dbg$ UNIDATA=~/svn.icu/uni63/src/source/data/unidata |
| 4698 |
- ~/svn.icu/uni63/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfc.nrm -s $UNIDATA/norm2 nfc.txt |
| 4699 |
- ~/svn.icu/uni63/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfkc.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt |
| 4700 |
- ~/svn.icu/uni63/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfkc_cf.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 4701 |
- ~/svn.icu/uni63/dbg$ bin/gennorm2 -o $SRC_DATA_IN/uts46.nrm -s $UNIDATA/norm2 nfc.txt uts46.txt |
| 4702 |
|
| 4703 |
* build ICU (make install) |
| 4704 |
so that the tools build can pick up the new definitions from the installed header files. |
| 4705 |
|
| 4706 |
~/svn.icu/uni63/dbg$ echo;echo;make -j5 install > out.txt 2>&1 ; tail -n 20 out.txt |
| 4707 |
|
| 4708 |
* build Unicode tools using CMake+make |
| 4709 |
|
| 4710 |
~/svn.icutools/trunk/src/unicode/c/icudefs.txt: |
| 4711 |
|
| 4712 |
# Location (--prefix) of where ICU was installed. |
| 4713 |
set(ICU_INST_DIR /home/mscherer/svn.icu/uni63/inst) |
| 4714 |
# Location of the ICU source tree. |
| 4715 |
set(ICU_SRC_DIR /home/mscherer/svn.icu/uni63/src) |
| 4716 |
|
| 4717 |
~/svn.icutools/trunk/dbg/unicode/c$ cmake ../../../src/unicode/c |
| 4718 |
~/svn.icutools/trunk/dbg/unicode/c$ make |
| 4719 |
|
| 4720 |
* generate core properties data files |
| 4721 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genprops/genprops ~/svn.icu/uni63/src |
| 4722 |
- ~/svn.icutools/trunk/dbg/unicode/c$ genuca/genuca -i ~/svn.icu/uni63/dbg/data/out/build/icudt52l ~/svn.icu/uni63/src |
| 4723 |
- rebuild ICU (make install) & tools |
| 4724 |
- run genuca again (see step above) so that it picks up the new case mappings and nfc.nrm |
| 4725 |
- rebuild ICU (make install) & tools |
| 4726 |
|
| 4727 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 4728 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 4729 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 4730 |
- Unicode 6.0..6.3: U+2260, U+226E, U+226F |
| 4731 |
- nothing new in 6.3, no test file to update |
| 4732 |
|
| 4733 |
* update Java data files |
| 4734 |
- refresh just the UCD-related files, just to be safe |
| 4735 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 4736 |
- mkdir /tmp/icu4j |
| 4737 |
- ~/svn.icu/uni63/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4738 |
output: |
| 4739 |
... |
| 4740 |
Unicode .icu files built to ./out/build/icudt52l |
| 4741 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt52b |
| 4742 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt52b |
| 4743 |
echo pnames.icu ubidi.icu ucase.icu uprops.icu > ./out/icu4j/add.txt |
| 4744 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt52l.dat ./out/icu4j/icudt52b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt52l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt52b |
| 4745 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt52b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt52b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt52b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt52b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt52b" |
| 4746 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt52b/ |
| 4747 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4748 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 4749 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt52b/ |
| 4750 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4751 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 4752 |
make[1]: Leaving directory `/home/mscherer/svn.icu/uni63/dbg/data' |
| 4753 |
- copy the big-endian Unicode data files to another location, |
| 4754 |
separate from the other data files |
| 4755 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/coll |
| 4756 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/brkitr |
| 4757 |
~/svn.icu/uni63/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt52b/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt52b |
| 4758 |
~/svn.icu/uni63/dbg/data/out/icu4j$ rm /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/cnvalias.icu |
| 4759 |
~/svn.icu/uni63/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt52b/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/icudt52b |
| 4760 |
~/svn.icu/uni63/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt52b/coll/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/coll |
| 4761 |
~/svn.icu/uni63/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt52b/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/brkitr |
| 4762 |
- refresh ICU4J |
| 4763 |
~/svn.icu/uni63/dbg/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt52b |
| 4764 |
|
| 4765 |
* refresh Java test .txt files |
| 4766 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4767 |
|
| 4768 |
* UCA -- mostly skipped for ICU 52 / Unicode 6.3, except update coll/* files |
| 4769 |
|
| 4770 |
- get output from Mark's tools; look in http://www.unicode.org/Public/UCA/<beta version>/ |
| 4771 |
- CLDR root files for ICU are in CollationAuxiliary.zip; unpack that |
| 4772 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 4773 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 4774 |
(note removing the underscore before "Rules") |
| 4775 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 4776 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 4777 |
with output from Mark's Unicode tools (..._CLDR_..._SHORT.txt) |
| 4778 |
- check test file diffs for previously commented-out, known-failing data lines; |
| 4779 |
probably need to keep those commented out |
| 4780 |
- check FractionalUCA.txt for manual changes of lead bytes from IMPLICIT to Hani |
| 4781 |
- run genuca, see command line above |
| 4782 |
- rebuild ICU4C |
| 4783 |
- refresh ICU4J collation data: |
| 4784 |
(subset of instructions above for properties data refresh, except copies all coll/*) |
| 4785 |
~/svn.icu/uni63/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4786 |
~/svn.icu/uni63/dbg$ mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/coll |
| 4787 |
~/svn.icu/uni63/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt52b/coll/* /tmp/icu4j/com/ibm/icu/impl/data/icudt52b/coll |
| 4788 |
~/svn.icu/uni63/dbg/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt52b |
| 4789 |
- run all tests with the *_SHORT.txt or the full files (the full ones have comments, useful for debugging) |
| 4790 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 4791 |
utility/MultithreadTest/TestCollators will fail as well; |
| 4792 |
fix the conformance test before looking into the multi-thread test |
| 4793 |
|
| 4794 |
* test ICU, fix test code where necessary |
| 4795 |
|
| 4796 |
* When refreshing all of ICU4J data from ICU4C |
| 4797 |
- ~/svn.icu/uni63/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4798 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 4799 |
or |
| 4800 |
- ~/svn.icu/uni63/dbg$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 4801 |
|
| 4802 |
*** LayoutEngine script information |
| 4803 |
- skipped for Unicode 6.3: no new scripts |
| 4804 |
|
| 4805 |
*** merge the Unicode update branches back onto the trunk |
| 4806 |
- do not merge the icudata.jar and testdata.jar, |
| 4807 |
instead rebuild them from merged & tested ICU4C |
| 4808 |
|
| 4809 |
---------------------------------------------------------------------------- *** |
| 4810 |
|
| 4811 |
Unicode 6.2 update |
| 4812 |
|
| 4813 |
http://www.unicode.org/review/pri230/ |
| 4814 |
http://www.unicode.org/versions/beta-6.2.0.html |
| 4815 |
http://www.unicode.org/reports/tr44/tr44-9.html#Unicode_6.2.0 |
| 4816 |
http://www.unicode.org/review/pri227/ Changes to Script Extensions Property Values |
| 4817 |
http://www.unicode.org/review/pri228/ Changing some common characters from Punctuation to Symbol |
| 4818 |
http://www.unicode.org/review/pri229/ Linebreaking Changes for Pictographic Symbols |
| 4819 |
http://www.unicode.org/reports/tr46/tr46-8.html IDNA |
| 4820 |
http://unicode.org/Public/idna/6.2.0/ |
| 4821 |
|
| 4822 |
*** ICU Trac |
| 4823 |
|
| 4824 |
- ticket 9515: Unicode 6.2: final ICU update |
| 4825 |
|
| 4826 |
- ticket 9514: UCA 6.2: fix UCARules.txt |
| 4827 |
|
| 4828 |
- ticket 9437: update ICU to Unicode 6.2 |
| 4829 |
- C++ branches/markus/uni62 at r32050 from trunk at r32041 |
| 4830 |
- Java branches/markus/uni62 at r32068 from trunk at r32066 |
| 4831 |
|
| 4832 |
*** Unicode version numbers |
| 4833 |
- makedata.mak |
| 4834 |
- uchar.h |
| 4835 |
(configure.in & configure: have been modified to extract the version from uchar.h) |
| 4836 |
- com.ibm.icu.util.VersionInfo |
| 4837 |
- com.ibm.icu.dev.test.lang.UCharacterTest.VERSION_ |
| 4838 |
|
| 4839 |
*** data files & enums & parser code |
| 4840 |
|
| 4841 |
* file preparation |
| 4842 |
|
| 4843 |
- download UCD, UCA & IDNA files |
| 4844 |
- make sure that the Unicode data folder passed into preparseucd.py |
| 4845 |
includes a copy of the latest IdnaMappingTable.txt (can be in some subfolder) |
| 4846 |
- modify preparseucd.py: NamesList.txt is now in UTF-8 |
| 4847 |
- ~/svn.icu/tools/trunk/src/unicode$ py/preparseucd.py ~/uni62/20120816 ~/svn.icu/uni62/src ~/svn.icu/tools/trunk/src |
| 4848 |
- This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 4849 |
- Check test file diffs for previously commented-out, known-failing data lines; |
| 4850 |
probably need to keep those commented out. |
| 4851 |
|
| 4852 |
* PropertyValueAliases.txt changes |
| 4853 |
- 1 new Line_Break (lb) value: |
| 4854 |
lb ; RI ; Regional_Indicator |
| 4855 |
-> uchar.h & UCharacter.LineBreak |
| 4856 |
- 1 new Word_Break (WB) value: |
| 4857 |
WB ; RI ; Regional_Indicator |
| 4858 |
-> uchar.h & UCharacter.WordBreak |
| 4859 |
- 1 new Grapheme_Cluster_Break (GCB) value: |
| 4860 |
GCB; RI ; Regional_Indicator |
| 4861 |
-> uchar.h & UCharacter.GraphemeClusterBreak |
| 4862 |
|
| 4863 |
* 3 new numeric values |
| 4864 |
The new value -1, which was really supposed to be NaN but that would have required |
| 4865 |
new UnicodeData.txt syntax, can already be represented as a "fraction" of -1/1, |
| 4866 |
but encodeNumericValue() in corepropsbuilder.cpp had to be fixed. |
| 4867 |
cp;12456;na=CUNEIFORM NUMERIC SIGN NIGIDAMIN;nv=-1 |
| 4868 |
cp;12457;na=CUNEIFORM NUMERIC SIGN NIGIDAESH;nv=-1 |
| 4869 |
The two new values 216000 and 432000 require an addition to the encoding of numeric values. |
| 4870 |
cp;12432;na=CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS DISH;nv=216000 |
| 4871 |
cp;12433;na=CUNEIFORM NUMERIC SIGN SHAR2 TIMES GAL PLUS MIN;nv=432000 |
| 4872 |
-> uprops.h, uchar.c & UCharacterProperty.java |
| 4873 |
-> cucdtst.c & UCharacterTest.java |
| 4874 |
|
| 4875 |
* generate normalization data files |
| 4876 |
- ~/svn.icu/uni62/dbg$ export LD_LIBRARY_PATH=~/svn.icu/uni62/dbg/lib |
| 4877 |
- ~/svn.icu/uni62/dbg$ SRC_DATA_IN=~/svn.icu/uni62/src/source/data/in |
| 4878 |
- ~/svn.icu/uni62/dbg$ UNIDATA=~/svn.icu/uni62/src/source/data/unidata |
| 4879 |
- ~/svn.icu/uni62/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfc.nrm -s $UNIDATA/norm2 nfc.txt |
| 4880 |
- ~/svn.icu/uni62/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfkc.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt |
| 4881 |
- ~/svn.icu/uni62/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfkc_cf.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 4882 |
- ~/svn.icu/uni62/dbg$ bin/gennorm2 -o $SRC_DATA_IN/uts46.nrm -s $UNIDATA/norm2 nfc.txt uts46.txt |
| 4883 |
|
| 4884 |
* build ICU (make install) |
| 4885 |
so that the tools build can pick up the new definitions from the installed header files. |
| 4886 |
* build Unicode tools using CMake+make |
| 4887 |
|
| 4888 |
* generate core properties data files |
| 4889 |
- ~/svn.icu/tools/trunk/dbg/unicode$ c/genprops/genprops ~/svn.icu/uni62/src |
| 4890 |
- in initial bootstrapping, change the UCA version |
| 4891 |
in source/data/unidata/FractionalUCA.txt to match the new Unicode version |
| 4892 |
- ~/svn.icu/tools/trunk/dbg/unicode$ c/genuca/genuca -i ~/svn.icu/uni62/dbg/data/out/build/icudt50l ~/svn.icu/uni62/src |
| 4893 |
- rebuild ICU (make install) & tools |
| 4894 |
+ if genrb fails to build coll/root.res with an U_INVALID_FORMAT_ERROR, |
| 4895 |
check if the UCA version in FractionalUCA.txt matches the new Unicode version |
| 4896 |
(see step above) |
| 4897 |
- run genuca again (see step above) so that it picks up the new case mappings and nfc.nrm |
| 4898 |
- rebuild ICU (make install) & tools |
| 4899 |
|
| 4900 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 4901 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 4902 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 4903 |
- Unicode 6.0..6.2: U+2260, U+226E, U+226F |
| 4904 |
- nothing new in 6.2, no test file to update |
| 4905 |
|
| 4906 |
* update Java data files |
| 4907 |
- refresh just the UCD-related files, just to be safe |
| 4908 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 4909 |
- mkdir /tmp/icu4j |
| 4910 |
- ~/svn.icu/uni62/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4911 |
output: |
| 4912 |
... |
| 4913 |
Unicode .icu files built to ./out/build/icudt50l |
| 4914 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt50b |
| 4915 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt50b |
| 4916 |
echo pnames.icu ubidi.icu ucase.icu uprops.icu > ./out/icu4j/add.txt |
| 4917 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt50l.dat ./out/icu4j/icudt50b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt50l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt50b |
| 4918 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt50b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt50b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt50b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt50b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt50b" |
| 4919 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt50b/ |
| 4920 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4921 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 4922 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt50b/ |
| 4923 |
mkdir -p /tmp/icu4j/main/shared/data |
| 4924 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 4925 |
make[1]: Leaving directory `/home/mscherer/svn.icu/uni62/dbg/data' |
| 4926 |
- copy the big-endian Unicode data files to another location, |
| 4927 |
separate from the other data files |
| 4928 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/coll |
| 4929 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/brkitr |
| 4930 |
~/svn.icu/uni62/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt50b/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt50b |
| 4931 |
~/svn.icu/uni62/dbg/data/out/icu4j$ rm /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/cnvalias.icu |
| 4932 |
~/svn.icu/uni62/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt50b/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/icudt50b |
| 4933 |
~/svn.icu/uni62/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt50b/coll/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/coll |
| 4934 |
~/svn.icu/uni62/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt50b/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/brkitr |
| 4935 |
- refresh ICU4J |
| 4936 |
~/svn.icu/uni62/dbg/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt50b |
| 4937 |
|
| 4938 |
* refresh Java test .txt files |
| 4939 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 4940 |
|
| 4941 |
* UCA |
| 4942 |
|
| 4943 |
- get output from Mark's tools; look in http://www.unicode.org/Public/UCA/<beta version>/ |
| 4944 |
- CLDR root files for ICU are in CollationAuxiliary.zip; unpack that |
| 4945 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 4946 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 4947 |
(note removing the underscore before "Rules") |
| 4948 |
- update (ICU4C)/source/test/testdata/CollationTest_*.txt |
| 4949 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 4950 |
with output from Mark's Unicode tools (..._CLDR_..._SHORT.txt) |
| 4951 |
- check test file diffs for previously commented-out, known-failing data lines; |
| 4952 |
probably need to keep those commented out |
| 4953 |
- check FractionalUCA.txt for manual changes of lead bytes from IMPLICIT to Hani |
| 4954 |
- run genuca, see command line above |
| 4955 |
- rebuild ICU4C |
| 4956 |
- refresh ICU4J collation data: |
| 4957 |
(subset of instructions above for properties data refresh, except copies all coll/*) |
| 4958 |
~/svn.icu/uni62/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4959 |
~/svn.icu/uni62/bld$ mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/coll |
| 4960 |
~/svn.icu/uni62/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt50b/coll/* /tmp/icu4j/com/ibm/icu/impl/data/icudt50b/coll |
| 4961 |
~/svn.icu/uni62/bld/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt50b |
| 4962 |
- run all tests with the *_SHORT.txt or the full files (the full ones have comments, useful for debugging) |
| 4963 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 4964 |
utility/MultithreadTest/TestCollators will fail as well; |
| 4965 |
fix the conformance test before looking into the multi-thread test |
| 4966 |
|
| 4967 |
* test ICU, fix test code where necessary |
| 4968 |
|
| 4969 |
* When refreshing all of ICU4J data from ICU4C |
| 4970 |
- ~/svn.icu/uni62/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 4971 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 4972 |
or |
| 4973 |
- ~/svn.icu/uni62/dbg$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 4974 |
|
| 4975 |
*** LayoutEngine script information |
| 4976 |
- skipped for Unicode 6.2: no new scripts |
| 4977 |
|
| 4978 |
*** merge the Unicode update branches back onto the trunk |
| 4979 |
- do not merge the icudata.jar and testdata.jar, |
| 4980 |
instead rebuild them from merged & tested ICU4C |
| 4981 |
|
| 4982 |
---------------------------------------------------------------------------- *** |
| 4983 |
|
| 4984 |
Future Unicode update |
| 4985 |
|
| 4986 |
Tools simplified since the Unicode 6.1 update. See |
| 4987 |
- https://icu.unicode.org/design/props/ppucd |
| 4988 |
- http://bugs.icu-project.org/trac/wiki/Markus/ReviewTicket8972 |
| 4989 |
|
| 4990 |
* Unicode version numbers |
| 4991 |
- icutools/unicode/makedefs.sh was deleted, so one fewer place for version & path updates |
| 4992 |
|
| 4993 |
* file preparation |
| 4994 |
- ucdcopy.py, idna2nrm.py and genpname/preparse.pl replaced by preparseucd.py: |
| 4995 |
- ~/svn.icu/tools/trunk/src/unicode$ py/preparseucd.py ~/uni61/20120118 ~/svn.icu/trunk/src ~/svn.icu/tools/trunk/src |
| 4996 |
- This writes files (especially ppucd.txt) to the ICU4C unidata and testdata subfolders. |
| 4997 |
- Check test file diffs for previously commented-out, known-failing data lines; |
| 4998 |
probably need to keep those commented out. |
| 4999 |
|
| 5000 |
* PropertyValueAliases.txt changes |
| 5001 |
- Script codes that are in ISO 15924 but not in Unicode are now listed in |
| 5002 |
preparseucd.py, in the _scripts_only_in_iso15924 variable. |
| 5003 |
If there are new ISO codes, then add them. |
| 5004 |
If Unicode adds some of them, then remove them from the .py variable. |
| 5005 |
|
| 5006 |
* UnicodeData.txt changes |
| 5007 |
- No more manual changes for CJK ranges for algorithmic names; |
| 5008 |
those are now written to ppucd.txt and genprops reads them from there. |
| 5009 |
|
| 5010 |
* generate core properties data files (makeprops.sh was deleted) |
| 5011 |
- ~/svn.icu/tools/trunk/dbg/unicode$ c/genprops/genprops ~/svn.icu/trunk/src |
| 5012 |
|
| 5013 |
* no more manual updates of source/data/unidata/norm2/nfkc_cf.txt |
| 5014 |
- it is now generated by preparseucd.py |
| 5015 |
|
| 5016 |
* no more separate idna2nrm.py run and manual copying to generate source/data/unidata/norm2/uts46.txt |
| 5017 |
- it is now generated by preparseucd.py |
| 5018 |
- make sure that the Unicode data folder passed into preparseucd.py |
| 5019 |
includes a copy of http://www.unicode.org/Public/idna/6.1.0/IdnaMappingTable.txt |
| 5020 |
(can be in some subfolder) |
| 5021 |
|
| 5022 |
* generate normalization data files |
| 5023 |
- ~/svn.icu/trunk/dbg$ export LD_LIBRARY_PATH=~/svn.icu/trunk/dbg/lib |
| 5024 |
- ~/svn.icu/trunk/dbg$ SRC_DATA_IN=~/svn.icu/trunk/src/source/data/in |
| 5025 |
- ~/svn.icu/trunk/dbg$ UNIDATA=~/svn.icu/trunk/src/source/data/unidata |
| 5026 |
- ~/svn.icu/trunk/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfc.nrm -s $UNIDATA/norm2 nfc.txt |
| 5027 |
- ~/svn.icu/trunk/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfkc.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt |
| 5028 |
- ~/svn.icu/trunk/dbg$ bin/gennorm2 -o $SRC_DATA_IN/nfkc_cf.nrm -s $UNIDATA/norm2 nfc.txt nfkc.txt nfkc_cf.txt |
| 5029 |
- ~/svn.icu/trunk/dbg$ bin/gennorm2 -o $SRC_DATA_IN/uts46.nrm -s $UNIDATA/norm2 nfc.txt uts46.txt |
| 5030 |
|
| 5031 |
* build ICU (make install) |
| 5032 |
* build Unicode tools using CMake+make |
| 5033 |
|
| 5034 |
* new way to call genuca (makeuca.sh was deleted) |
| 5035 |
- ~/svn.icu/tools/trunk/dbg/unicode$ c/genuca/genuca -i ~/svn.icu/trunk/dbg/data/out/build/icudt49l ~/svn.icu/trunk/src |
| 5036 |
|
| 5037 |
---------------------------------------------------------------------------- *** |
| 5038 |
|
| 5039 |
Unicode 6.1 update |
| 5040 |
|
| 5041 |
*** ICU Trac |
| 5042 |
|
| 5043 |
- ticket 8995 final update to Unicode 6.1 |
| 5044 |
- ticket 8994 regenerate source/layout/CanonData.cpp |
| 5045 |
|
| 5046 |
- ticket 8961 support Unicode "Age" value *names* |
| 5047 |
- ticket 8963 support multiple character name aliases & types |
| 5048 |
|
| 5049 |
- ticket 8827 "update ICU to Unicode 6.1" |
| 5050 |
- C++ branches/markus/uni61 at r30864 from trunk at r30843 |
| 5051 |
- Java branches/markus/uni61 at r30865 from trunk at r30863 |
| 5052 |
|
| 5053 |
*** Unicode version numbers |
| 5054 |
- makedata.mak |
| 5055 |
- uchar.h |
| 5056 |
(configure.in & configure: have been modified to extract the version from uchar.h) |
| 5057 |
- com.ibm.icu.util.VersionInfo |
| 5058 |
- icutools/unicode/makedefs.sh |
| 5059 |
+ also review & update other definitions in that file, |
| 5060 |
e.g. the ICU version in this path: BLD_DATA_FILES=$ICU_BLD/data/out/build/icudt49l |
| 5061 |
|
| 5062 |
*** data files & enums & parser code |
| 5063 |
|
| 5064 |
* file preparation |
| 5065 |
|
| 5066 |
~/svn.icu/tools/trunk/src/unicode/c/genprops/misc$ ./ucdcopy.py ~/uni61/20111205/ucd ~/uni61/processed |
| 5067 |
- This prepares both unidata and testdata files in respective output subfolders. |
| 5068 |
- Check test file diffs for previously commented-out, known-failing data lines; |
| 5069 |
probably need to keep those commented out. |
| 5070 |
|
| 5071 |
* PropertyValueAliases.txt changes |
| 5072 |
- 11 new block names: |
| 5073 |
Arabic_Extended_A |
| 5074 |
Arabic_Mathematical_Alphabetic_Symbols |
| 5075 |
Chakma |
| 5076 |
Meetei_Mayek_Extensions |
| 5077 |
Meroitic_Cursive |
| 5078 |
Meroitic_Hieroglyphs |
| 5079 |
Miao |
| 5080 |
Sharada |
| 5081 |
Sora_Sompeng |
| 5082 |
Sundanese_Supplement |
| 5083 |
Takri |
| 5084 |
-> add to uchar.h |
| 5085 |
-> add to UCharacter.UnicodeBlock IDs |
| 5086 |
Eclipse find UBLOCK_([^ ]+) = ([0-9]+), (/.+) |
| 5087 |
replace public static final int \1_ID = \2; \3 |
| 5088 |
-> add to UCharacter.UnicodeBlock objects |
| 5089 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 5090 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 5091 |
- 1 new Joining_Group (jg) value: |
| 5092 |
Rohingya_Yeh |
| 5093 |
-> uchar.h & UCharacter.JoiningGroup |
| 5094 |
- 2 new Line_Break (lb) values: |
| 5095 |
CJ=Conditional_Japanese_Starter |
| 5096 |
HL=Hebrew_Letter |
| 5097 |
-> uchar.h & UCharacter.LineBreak |
| 5098 |
- 7 new scripts: |
| 5099 |
sc ; Cakm ; Chakma |
| 5100 |
sc ; Merc ; Meroitic_Cursive |
| 5101 |
sc ; Mero ; Meroitic_Hieroglyphs |
| 5102 |
sc ; Plrd ; Miao |
| 5103 |
sc ; Shrd ; Sharada |
| 5104 |
sc ; Sora ; Sora_Sompeng |
| 5105 |
sc ; Takr ; Takri |
| 5106 |
-> remove these from SyntheticPropertyValueAliases.txt |
| 5107 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 5108 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 5109 |
- 2 new script codes from ISO 15924 http://www.unicode.org/iso15924/codechanges.html |
| 5110 |
(added 2011-06-21) |
| 5111 |
Khoj 322 Khojki |
| 5112 |
Tirh 326 Tirhuta |
| 5113 |
and another one added 2011-12-09 |
| 5114 |
Hluw 080 Anatolian Hieroglyphs (Luwian Hieroglyphs, Hittite Hieroglyphs) |
| 5115 |
-> uscript.h |
| 5116 |
-> com.ibm.icu.lang.UScript |
| 5117 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 5118 |
replace public static final int \1 = \2;\3 |
| 5119 |
-> SyntheticPropertyValueAliases.txt |
| 5120 |
-> add to expectedLong and expectedShort names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 5121 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 5122 |
|
| 5123 |
* UnicodeData.txt changes |
| 5124 |
- the last Unihan code point changes from U+9FCB to U+9FCC |
| 5125 |
search for both 9FCB (end) and 9FCC (limit) (regex 9FC[BC], case-insensitive) |
| 5126 |
+ do change gennames.c |
| 5127 |
+ do change swapCJK() in ucol.cpp & ImplicitCEGenerator.java |
| 5128 |
|
| 5129 |
* DerivedBidiClass.txt changes |
| 5130 |
- 2 new default-AL blocks: |
| 5131 |
# Arabic Extended-A: U+08A0 - U+08FF (was default-R) |
| 5132 |
# Arabic Mathematical Alphabetic Symbols: |
| 5133 |
# U+1EE00 - U+1EEFF (was default-R) |
| 5134 |
- 2 new default-R blocks: |
| 5135 |
# Meroitic Hieroglyphs: |
| 5136 |
# U+10980 - U+1099F |
| 5137 |
# Meroitic Cursive: U+109A0 - U+109FF |
| 5138 |
-> should be picked up by the explicit data in the file |
| 5139 |
|
| 5140 |
* NameAliases.txt changes |
| 5141 |
- from |
| 5142 |
# Each line has two fields |
| 5143 |
# First field: Code point |
| 5144 |
# Second field: Alias |
| 5145 |
- to |
| 5146 |
# Each line has three fields, as described here: |
| 5147 |
# |
| 5148 |
# First field: Code point |
| 5149 |
# Second field: Alias |
| 5150 |
# Third field: Type |
| 5151 |
- Also, the file previously allowed multiple aliases but only now does it |
| 5152 |
actually provide multiple, even multiple of the same type. For example, |
| 5153 |
FEFF;BYTE ORDER MARK;alternate |
| 5154 |
FEFF;BOM;abbreviation |
| 5155 |
FEFF;ZWNBSP;abbreviation |
| 5156 |
- This breaks our gennames parser, unames.icu data structure, and API. |
| 5157 |
Fix gennames to only pick up "correction" aliases. |
| 5158 |
New ticket #8963 for further changes. |
| 5159 |
|
| 5160 |
* run genpname/preparse.pl (on Linux) |
| 5161 |
+ cd ~/svn.icu/tools/trunk/src/unicode/c/genpname |
| 5162 |
+ make sure that data.h is writable |
| 5163 |
+ perl preparse.pl ~/svn.icu/trunk/src > out.txt |
| 5164 |
+ preparse.pl shows no errors, out.txt Info and Warning lines look ok |
| 5165 |
|
| 5166 |
* build ICU (make install) |
| 5167 |
so that the tools build can pick up the new definitions from the installed header files. |
| 5168 |
* build Unicode tools (at least genpname) using CMake+make |
| 5169 |
|
| 5170 |
* run genpname |
| 5171 |
(builds both pnames.icu and propname_data.h) |
| 5172 |
- ~/svn.icu/tools/trunk/bld/unicode/c$ genpname/genpname -v -d ~/svn.icu/trunk/src/source/data/in |
| 5173 |
- ~/svn.icu/tools/trunk/bld/unicode/c$ genpname/genpname -v -d ~/svn.icu/trunk/src/source/common --csource |
| 5174 |
|
| 5175 |
* build ICU (make install) |
| 5176 |
* build Unicode tools using CMake+make |
| 5177 |
|
| 5178 |
* update source/data/unidata/norm2/nfkc_cf.txt |
| 5179 |
- follow the instructions in nfkc_cf.txt for updating it from DerivedNormalizationProps.txt |
| 5180 |
|
| 5181 |
* update source/data/unidata/norm2/uts46.txt |
| 5182 |
- download http://www.unicode.org/Public/idna/6.1.0/IdnaMappingTable.txt |
| 5183 |
to ~/svn.icu/tools/trunk/src/unicode/py |
| 5184 |
- adjust idna2nrm.py to remove "; NV8": For UTS #46, we do not care about "not valid in IDNA2008". |
| 5185 |
- ~/svn.icu/tools/trunk/src/unicode/py$ ./idna2nrm.py |
| 5186 |
- ~/svn.icu/tools/trunk/src/unicode/py$ cp uts46.txt ~/svn.icu/trunk/src/source/data/unidata/norm2 |
| 5187 |
|
| 5188 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 5189 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 5190 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 5191 |
- Unicode 6.0..6.1: U+2260, U+226E, U+226F |
| 5192 |
- nothing new in 6.1, no test file to update |
| 5193 |
|
| 5194 |
* generate core properties data files |
| 5195 |
- in initial bootstrapping, change the UCA version |
| 5196 |
in source/data/unidata/FractionalUCA.txt to match the new Unicode version |
| 5197 |
- ~/svn.icu/tools/trunk/src/unicode$ ./makeprops.sh ~/svn.icu/trunk/src ~/svn.icu/trunk/bld |
| 5198 |
- rebuild ICU & tools |
| 5199 |
+ if genrb fails to build coll/root.res with an U_INVALID_FORMAT_ERROR, |
| 5200 |
check if the UCA version in FractionalUCA.txt matches the new Unicode version |
| 5201 |
(see step above) |
| 5202 |
- run makeuca.sh so that genuca picks up the new case mappings and nfc.nrm: |
| 5203 |
~/svn.icu/tools/trunk/src/unicode$ ./makeuca.sh ~/svn.icu/trunk/src ~/svn.icu/trunk/bld |
| 5204 |
- rebuild ICU & tools |
| 5205 |
|
| 5206 |
* update Java data files |
| 5207 |
- refresh just the UCD-related files, just to be safe |
| 5208 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 5209 |
- mkdir /tmp/icu4j |
| 5210 |
- ~/svn.icu/trunk/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5211 |
output: |
| 5212 |
... |
| 5213 |
Unicode .icu files built to ./out/build/icudt49l |
| 5214 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt49b |
| 5215 |
mkdir -p ./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt49b |
| 5216 |
echo pnames.icu ubidi.icu ucase.icu uprops.icu > ./out/icu4j/add.txt |
| 5217 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt49l.dat ./out/icu4j/icudt49b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt49l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt49b |
| 5218 |
mv ./out/icu4j/"com/ibm/icu/impl/data/icudt49b/zoneinfo64.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt49b/metaZones.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt49b/timezoneTypes.res" ./out/icu4j/"com/ibm/icu/impl/data/icudt49b/windowsZones.res" "./out/icu4j/tzdata/com/ibm/icu/impl/data/icudt49b" |
| 5219 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt49b/ |
| 5220 |
mkdir -p /tmp/icu4j/main/shared/data |
| 5221 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 5222 |
jar cf ./out/icu4j/icutzdata.jar -C ./out/icu4j/tzdata com/ibm/icu/impl/data/icudt49b/ |
| 5223 |
mkdir -p /tmp/icu4j/main/shared/data |
| 5224 |
cp ./out/icu4j/icutzdata.jar /tmp/icu4j/main/shared/data |
| 5225 |
make[1]: Leaving directory `/home/mscherer/svn.icu/trunk/bld/data' |
| 5226 |
- copy the big-endian Unicode data files to another location, |
| 5227 |
separate from the other data files |
| 5228 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/coll |
| 5229 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/brkitr |
| 5230 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt49b/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt49b |
| 5231 |
~/svn.icu/trunk/bld/data/out/icu4j$ rm /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/cnvalias.icu |
| 5232 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt49b/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/icudt49b |
| 5233 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt49b/coll/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/coll |
| 5234 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt49b/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/brkitr |
| 5235 |
- refresh ICU4J |
| 5236 |
~/svn.icu/trunk/bld/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt49b |
| 5237 |
|
| 5238 |
* refresh Java test .txt files |
| 5239 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 5240 |
|
| 5241 |
* test ICU so far, fix test code where necessary |
| 5242 |
- temporarily ignore collation issues that look like UCA/UCD mismatches, |
| 5243 |
until UCA data is updated |
| 5244 |
|
| 5245 |
* UCA |
| 5246 |
|
| 5247 |
- get output from Mark's tools; look in |
| 5248 |
http://www.unicode.org/Public/UCA/6.1.0/CollationAuxiliary-<dev. version>.txt |
| 5249 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 5250 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 5251 |
(note removing the underscore before "Rules") |
| 5252 |
- update (ICU)/source/test/testdata/CollationTest_*.txt |
| 5253 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 5254 |
with output from Mark's Unicode tools (..._CLDR_..._SHORT.txt) |
| 5255 |
- check test file diffs for previously commented-out, known-failing data lines; |
| 5256 |
probably need to keep those commented out |
| 5257 |
- check FractionalUCA.txt for manual changes of lead bytes from IMPLICIT to Hani |
| 5258 |
- run makeuca.sh: |
| 5259 |
~/svn.icu/tools/trunk/src/unicode$ ./makeuca.sh ~/svn.icu/trunk/src ~/svn.icu/trunk/bld |
| 5260 |
- rebuild ICU4C |
| 5261 |
- refresh ICU4J collation data: |
| 5262 |
(subset of instructions above for properties data refresh, except copies all coll/*) |
| 5263 |
~/svn.icu/trunk/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5264 |
~/svn.icu/trunk/bld$ mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/coll |
| 5265 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt49b/coll/* /tmp/icu4j/com/ibm/icu/impl/data/icudt49b/coll |
| 5266 |
~/svn.icu/trunk/bld/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt49b |
| 5267 |
- run all tests with the *_SHORT.txt or the full files (the full ones have comments, useful for debugging) |
| 5268 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 5269 |
utility/MultithreadTest/TestCollators will fail as well; |
| 5270 |
fix the conformance test before looking into the multi-thread test |
| 5271 |
|
| 5272 |
* When refreshing all of ICU4J data from ICU4C |
| 5273 |
- ~/svn.icu/trunk/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5274 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 5275 |
or |
| 5276 |
- ~/svn.icu/trunk/bld$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 5277 |
|
| 5278 |
*** LayoutEngine script information |
| 5279 |
|
| 5280 |
(For details see the Unicode 5.2 change log below.) |
| 5281 |
|
| 5282 |
* Run icu4j-tools: com.ibm.icu.dev.tool.layout.ScriptNameBuilder. |
| 5283 |
This generates LEScripts.h, LELanguages.h, ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp |
| 5284 |
in the working directory. |
| 5285 |
(It also generates ScriptRunData.cpp, which is no longer needed.) |
| 5286 |
|
| 5287 |
The generated files have a current copyright date and "@draft" statement. |
| 5288 |
|
| 5289 |
- diff current <icu>/source/layout files vs. generated ones |
| 5290 |
~/svn.icu4j/trunk/src$ kdiff3 ~/svn.icu/trunk/src/source/layout tools/misc/src/com/ibm/icu/dev/tool/layout |
| 5291 |
review and manually merge desired changes; |
| 5292 |
fix gratuitous changes, incorrect @draft and missing aliases; |
| 5293 |
Unicode-derived script codes should be "born stable" like constants in uchar.h, uscript.h etc. |
| 5294 |
- if you just copy the above files, then |
| 5295 |
fix mixed line endings, review the diffs as above and restore changes to API tags etc.; |
| 5296 |
manually re-add the "Indic script xyz v.2" tags in ScriptAndLanguageTags.h |
| 5297 |
|
| 5298 |
*** merge the Unicode update branches back onto the trunk |
| 5299 |
- do not merge the icudata.jar and testdata.jar, |
| 5300 |
instead rebuild them from merged & tested ICU4C |
| 5301 |
|
| 5302 |
---------------------------------------------------------------------------- *** |
| 5303 |
|
| 5304 |
ICU 4.8 (no Unicode update, just new script codes) |
| 5305 |
|
| 5306 |
* 9 new script codes from ISO 15924 http://www.unicode.org/iso15924/codechanges.html |
| 5307 |
(added 2010-12-21) |
| 5308 |
Afak 439 Afaka |
| 5309 |
Jurc 510 Jurchen |
| 5310 |
Mroo 199 Mro, Mru |
| 5311 |
Nshu 499 Nüshu |
| 5312 |
Shrd 319 Sharada, Śāradā |
| 5313 |
Sora 398 Sora Sompeng |
| 5314 |
Takr 321 Takri, Ṭākrī, Ṭāṅkrī |
| 5315 |
Tang 520 Tangut |
| 5316 |
Wole 480 Woleai |
| 5317 |
-> uscript.h |
| 5318 |
-> com.ibm.icu.lang.UScript |
| 5319 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 5320 |
replace public static final int \1 = \2;\3 |
| 5321 |
-> genpname/SyntheticPropertyValueAliases.txt |
| 5322 |
-> add to expectedLong and expectedShort names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 5323 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 5324 |
|
| 5325 |
* run genpname/preparse.pl (on Linux) |
| 5326 |
+ cd ~/svn.icu/tools/trunk/src/unicode/c/genpname |
| 5327 |
+ make sure that data.h is writable |
| 5328 |
+ perl preparse.pl ~/svn.icu/trunk/src > out.txt |
| 5329 |
+ preparse.pl shows no errors, out.txt Info and Warning lines look ok |
| 5330 |
|
| 5331 |
* rebuild Unicode tools (at least genpname) using make |
| 5332 |
- You might first need to "make install" ICU so that the tools build can pick |
| 5333 |
up the new definitions from the installed header files. |
| 5334 |
|
| 5335 |
* run genpname |
| 5336 |
(builds both pnames.icu and propname_data.h) |
| 5337 |
- ~/svn.icu/tools/trunk/bld/unicode/c$ genpname/genpname -v -d ~/svn.icu/trunk/src/source/data/in |
| 5338 |
- ~/svn.icu/tools/trunk/bld/unicode/c$ genpname/genpname -v -d ~/svn.icu/trunk/src/source/common --csource |
| 5339 |
- rebuild ICU & tools |
| 5340 |
|
| 5341 |
* run genprops |
| 5342 |
- ~/svn.icu/tools/trunk/bld/unicode/c$ genprops/genprops -d ~/svn.icu/trunk/src/source/data/in -s ~/svn.icu/trunk/src/source/data/unidata -i ~/svn.icu/trunk/dbg/data/out/build/icudt48l -u 6.0 |
| 5343 |
- ~/svn.icu/tools/trunk/bld/unicode/c$ genprops/genprops -d ~/svn.icu/trunk/src/source/common --csource -s ~/svn.icu/trunk/src/source/data/unidata -i ~/svn.icu/trunk/dbg/data/out/build/icudt48l -u 6.0 |
| 5344 |
- rebuild ICU & tools |
| 5345 |
|
| 5346 |
* update Java data files |
| 5347 |
- refresh just the UCD-related files, just to be safe |
| 5348 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 5349 |
- mkdir /tmp/icu4j |
| 5350 |
- ~/svn.icu/trunk/dbg$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5351 |
- copy the big-endian Unicode data files to another location, |
| 5352 |
separate from the other data files |
| 5353 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt48b |
| 5354 |
~/svn.icu/trunk/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt48b/pnames.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt48b |
| 5355 |
~/svn.icu/trunk/dbg/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt48b/uprops.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt48b |
| 5356 |
- refresh ICU4J |
| 5357 |
~/svn.icu/trunk/dbg/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt48b |
| 5358 |
|
| 5359 |
* should have updated the layout engine script codes but forgot |
| 5360 |
|
| 5361 |
---------------------------------------------------------------------------- *** |
| 5362 |
|
| 5363 |
Unicode 6.0 update |
| 5364 |
|
| 5365 |
*** related ICU Trac tickets |
| 5366 |
|
| 5367 |
7264 Unicode 6.0 Update |
| 5368 |
|
| 5369 |
*** Unicode version numbers |
| 5370 |
- makedata.mak |
| 5371 |
- uchar.h |
| 5372 |
(configure.in & configure: have been modified to extract the version from uchar.h) |
| 5373 |
- com.ibm.icu.util.VersionInfo |
| 5374 |
|
| 5375 |
*** data files & enums & parser code |
| 5376 |
|
| 5377 |
* file preparation |
| 5378 |
|
| 5379 |
~/svn.icu/tools/trunk/src/unicode/c/genprops/misc$ ./ucdcopy.py ~/uni60/20100720/ucd ~/uni60/processed |
| 5380 |
- This now prepares both unidata and testdata files in respective output subfolders. |
| 5381 |
|
| 5382 |
* PropertyAliases.txt changes |
| 5383 |
- new Script_Extensions property defined in the new ScriptExtensions.txt file |
| 5384 |
but not listed in PropertyAliases.txt; reported to unicode.org; |
| 5385 |
-> added to tools/trunk/src/unicode/c/genpname/SyntheticPropertyAliases.txt |
| 5386 |
scx; Script_Extensions |
| 5387 |
-> uchar.h with new UProperty section |
| 5388 |
-> com.ibm.icu.lang.UProperty, parallel with uchar.h |
| 5389 |
|
| 5390 |
* PropertyValueAliases.txt changes |
| 5391 |
- 12 new block names: |
| 5392 |
Alchemical_Symbols |
| 5393 |
Bamum_Supplement |
| 5394 |
Batak |
| 5395 |
Brahmi |
| 5396 |
CJK_Unified_Ideographs_Extension_D |
| 5397 |
Emoticons |
| 5398 |
Ethiopic_Extended_A |
| 5399 |
Kana_Supplement |
| 5400 |
Mandaic |
| 5401 |
Miscellaneous_Symbols_And_Pictographs |
| 5402 |
Playing_Cards |
| 5403 |
Transport_And_Map_Symbols |
| 5404 |
-> add to uchar.h |
| 5405 |
-> add to UCharacter.UnicodeBlock |
| 5406 |
Eclipse find UBLOCK_([^ ]+) = [0-9]+, (/.+) |
| 5407 |
replace public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 5408 |
- Joining_Group (jg) values: |
| 5409 |
Teh_Marbuta_Goal becomes the new canonical value for the old Hamza_On_Heh_Goal which becomes an alias |
| 5410 |
-> uchar.h & UCharacter.JoiningGroup |
| 5411 |
- 3 new scripts: |
| 5412 |
sc ; Batk ; Batak |
| 5413 |
sc ; Brah ; Brahmi |
| 5414 |
sc ; Mand ; Mandaic |
| 5415 |
-> remove these from SyntheticPropertyValueAliases.txt |
| 5416 |
-> add alias USCRIPT_MANDAIC to USCRIPT_MANDAEAN |
| 5417 |
-> fix expectedLong names in cucdapi.c/TestUScriptCodeAPI() |
| 5418 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 5419 |
- 13 new script codes from ISO 15924 http://www.unicode.org/iso15924/codechanges.html |
| 5420 |
(added 2009-11-11..2010-07-18) |
| 5421 |
Bass 259 Bassa Vah |
| 5422 |
Dupl 755 Duployan shortand |
| 5423 |
Elba 226 Elbasan |
| 5424 |
Gran 343 Grantha |
| 5425 |
Kpel 436 Kpelle |
| 5426 |
Loma 437 Loma |
| 5427 |
Mend 438 Mende |
| 5428 |
Merc 101 Meroitic Cursive |
| 5429 |
Narb 106 Old North Arabian |
| 5430 |
Nbat 159 Nabataean |
| 5431 |
Palm 126 Palmyrene |
| 5432 |
Sind 318 Sindhi |
| 5433 |
Wara 262 Warang Citi |
| 5434 |
-> uscript.h |
| 5435 |
-> com.ibm.icu.lang.UScript |
| 5436 |
find USCRIPT_([^ ]+) *= ([0-9]+),(.+) |
| 5437 |
replace public static final int \1 = \2;\3 |
| 5438 |
-> SyntheticPropertyValueAliases.txt |
| 5439 |
-> add to expectedLong and expectedShort names in cintltst/cucdapi.c/TestUScriptCodeAPI() |
| 5440 |
and in com.ibm.icu.dev.test.lang.TestUScript.java |
| 5441 |
- ISO 15924 name change |
| 5442 |
Mero 100 Meroitic Hieroglyphs (was Meroitic) |
| 5443 |
-> add new alias USCRIPT_MEROITIC_HIEROGLYPHS to USCRIPT_MEROITIC |
| 5444 |
- property value alias added for Cham, was already moved out of SyntheticPropertyValueAliases.txt |
| 5445 |
|
| 5446 |
* UnicodeData.txt changes |
| 5447 |
- new CJK block: |
| 5448 |
2B740;<CJK Ideograph Extension D, First>;Lo;0;L;;;;;N;;;;; |
| 5449 |
2B81D;<CJK Ideograph Extension D, Last>;Lo;0;L;;;;;N;;;;; |
| 5450 |
-> add to tools/trunk/src/unicode/c/gennames/gennames.c, with new ucdVersion |
| 5451 |
|
| 5452 |
* build Unicode tools using CMake+make |
| 5453 |
|
| 5454 |
* run genpname/preparse.pl (on Linux) |
| 5455 |
+ cd ~/svn.icu/tools/trunk/src/unicode/c/genpname |
| 5456 |
+ make sure that data.h is writable |
| 5457 |
+ perl preparse.pl ~/svn.icu/trunk/src > out.txt |
| 5458 |
+ preparse.pl shows no errors, out.txt Info and Warning lines look ok |
| 5459 |
|
| 5460 |
* rebuild Unicode tools (at least genpname) using make |
| 5461 |
- You might first need to "make install" ICU so that the tools build can pick |
| 5462 |
up the new definitions from the installed header files. |
| 5463 |
|
| 5464 |
* run genpname |
| 5465 |
- ~/svn.icu/tools/trunk/bld/unicode$ c/genpname/genpname -v -d ~/svn.icu/trunk/src/source/data/in |
| 5466 |
- rebuild ICU & tools |
| 5467 |
|
| 5468 |
* update source/data/unidata/norm2/nfkc_cf.txt |
| 5469 |
- follow the instructions in nfkc_cf.txt for updating it from DerivedNormalizationProps.txt |
| 5470 |
|
| 5471 |
* update source/data/unidata/norm2/uts46.txt |
| 5472 |
- download http://www.unicode.org/Public/idna/6.0.0/IdnaMappingTable.txt |
| 5473 |
to ~/svn.icu/tools/trunk/src/unicode/py |
| 5474 |
- adjust idna2nrm.py to handle new disallowed_STD3_valid and disallowed_STD3_mapped values |
| 5475 |
- ~/svn.icu/tools/trunk/src/unicode/py$ ./idna2nrm.py |
| 5476 |
- ~/svn.icu/tools/trunk/src/unicode/py$ cp uts46.txt ~/svn.icu/trunk/src/source/data/unidata/norm2 |
| 5477 |
|
| 5478 |
* update uts46test.cpp and UTS46Test.java if there are new characters that are equivalent to |
| 5479 |
sequences with non-LDH ASCII (that is, their decompositions contain '=' or similar) |
| 5480 |
- grep IdnaMappingTable.txt or uts46.txt for "disallowed_STD3_valid" on non-ASCII characters |
| 5481 |
- Unicode 6.0: U+2260, U+226E, U+226F |
| 5482 |
|
| 5483 |
* generate core properties data files |
| 5484 |
- ~/svn.icu/tools/trunk/src/unicode$ ./makeprops.sh ~/svn.icu/trunk/src ~/svn.icu/trunk/bld |
| 5485 |
- rebuild ICU & tools |
| 5486 |
- run makeuca.sh so that genuca picks up the new nfc.nrm: |
| 5487 |
~/svn.icu/tools/trunk/src/unicode$ ./makeuca.sh ~/svn.icu/trunk/src ~/svn.icu/trunk/bld |
| 5488 |
- rebuild ICU & tools |
| 5489 |
|
| 5490 |
* implement new Script_Extensions property (provisional) |
| 5491 |
- parser & generator: genprops & uprops.icu |
| 5492 |
- uscript.h, uprops.h, uchar.c, uniset_props.cpp and others, plus cintltst/cucdapi.c & intltest/usettest.cpp |
| 5493 |
- UScript.java, UCharacterProperty.java, UnicodeSet.java, TestUScript.java, UnicodeSetTest.java |
| 5494 |
|
| 5495 |
* switch ubidi.icu, ucase.icu and uprops.icu from UTrie to UTrie2 |
| 5496 |
- (one-time change) |
| 5497 |
- genbidi/gencase/genprops tools changes |
| 5498 |
- re-run makeprops.sh (see above) |
| 5499 |
- UCharacterProperty.java, UCharacterTypeIterator.java, |
| 5500 |
UBiDiProps.java, UCaseProps.java, and several others with minor changes; |
| 5501 |
UCharacterPropertyReader.java deleted and its code folded into UCharacterProperty.java |
| 5502 |
|
| 5503 |
* update Java data files |
| 5504 |
- refresh just the UCD-related files, just to be safe |
| 5505 |
- see (ICU4C)/source/data/icu4j-readme.txt |
| 5506 |
- mkdir /tmp/icu4j |
| 5507 |
- ~/svn.icu/trunk/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5508 |
output: |
| 5509 |
... |
| 5510 |
Unicode .icu files built to ./out/build/icudt45l |
| 5511 |
mkdir -p ./out/icu4j/com/ibm/icu/impl/data/icudt45b |
| 5512 |
echo ubidi.icu ucase.icu uprops.icu > ./out/icu4j/add.txt |
| 5513 |
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH ../bin/icupkg ./out/tmp/icudt45l.dat ./out/icu4j/icudt45b.dat -a ./out/icu4j/add.txt -s ./out/build/icudt45l -x '*' -tb -d ./out/icu4j/com/ibm/icu/impl/data/icudt45b |
| 5514 |
jar cf ./out/icu4j/icudata.jar -C ./out/icu4j com/ibm/icu/impl/data/icudt45b |
| 5515 |
mkdir -p /tmp/icu4j/main/shared/data |
| 5516 |
cp ./out/icu4j/icudata.jar /tmp/icu4j/main/shared/data |
| 5517 |
- copy the big-endian Unicode data files to another location, |
| 5518 |
separate from the other data files |
| 5519 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/coll |
| 5520 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/brkitr |
| 5521 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt45b/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt45b |
| 5522 |
~/svn.icu/trunk/bld/data/out/icu4j$ rm /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/cnvalias.icu |
| 5523 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt45b/*.nrm /tmp/icu4j/com/ibm/icu/impl/data/icudt45b |
| 5524 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt45b/coll/*.icu /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/coll |
| 5525 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt45b/brkitr/* /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/brkitr |
| 5526 |
- refresh ICU4J |
| 5527 |
~/svn.icu/trunk/bld/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt45b |
| 5528 |
|
| 5529 |
* refresh Java test .txt files |
| 5530 |
- copy new .txt files into ICU4J's main/tests/core/src/com/ibm/icu/dev/data/unicode |
| 5531 |
|
| 5532 |
* un-hardcode normalization skippable (NF*_Inert) test data |
| 5533 |
- removes one manual step from the Unicode upgrade, and removes dependency on one of Mark's tools |
| 5534 |
|
| 5535 |
* copy updated break iterator test files |
| 5536 |
- now handled by early ucdcopy.py and |
| 5537 |
copying the uni60/processed/testdata files to ~/svn.icu/trunk/src/source/test/testdata |
| 5538 |
(old instructions: |
| 5539 |
copy from (Unicode 6.0)/ucd/auxiliary/*BreakTest-6....txt |
| 5540 |
to ~/svn.icu/trunk/src/source/test/testdata) |
| 5541 |
- they are not used in ICU4J |
| 5542 |
|
| 5543 |
* UCA |
| 5544 |
|
| 5545 |
- get output from Mark's tools; look in |
| 5546 |
http://www.unicode.org/~book/incoming/mark/uca6.0.0/ |
| 5547 |
http://www.macchiato.com/unicode/utc/additional-uca-files |
| 5548 |
http://www.unicode.org/Public/UCA/6.0.0/ |
| 5549 |
http://www.unicode.org/~mdavis/uca/ |
| 5550 |
- update source/data/unidata/FractionalUCA.txt with FractionalUCA_SHORT.txt |
| 5551 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt |
| 5552 |
- update Han-implicit ranges for new CJK extensions: |
| 5553 |
swapCJK() in ucol.cpp & ImplicitCEGenerator.java |
| 5554 |
- genuca: allow bytes 02 for U+FFFE, new merge-sort character; |
| 5555 |
do not add it into invuca so that tailoring primary-after an ignorable works |
| 5556 |
- genuca: permit space between [variable top] bytes |
| 5557 |
- ucol.cpp: treat noncharacters like unassigned rather than ignorable |
| 5558 |
- run makeuca.sh: |
| 5559 |
~/svn.icu/tools/trunk/src/unicode$ ./makeuca.sh ~/svn.icu/trunk/src ~/svn.icu/trunk/bld |
| 5560 |
- rebuild ICU4C |
| 5561 |
- refresh ICU4J collation data: |
| 5562 |
(subset of instructions above for properties data refresh, except copies all coll/*) |
| 5563 |
~/svn.icu/trunk/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5564 |
mkdir -p /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/coll |
| 5565 |
~/svn.icu/trunk/bld/data/out/icu4j$ cp com/ibm/icu/impl/data/icudt45b/coll/* /tmp/icu4j/com/ibm/icu/impl/data/icudt45b/coll |
| 5566 |
~/svn.icu/trunk/bld/data/out/icu4j$ jar uf ~/svn.icu4j/trunk/src/main/shared/data/icudata.jar -C /tmp/icu4j com/ibm/icu/impl/data/icudt45b |
| 5567 |
- update (ICU)/source/test/testdata/CollationTest_*.txt |
| 5568 |
and (ICU4J)/main/tests/collate/src/com/ibm/icu/dev/data/CollationTest_*.txt |
| 5569 |
with output from Mark's Unicode tools |
| 5570 |
- run all tests with the *_SHORT.txt or the full files (the full ones have comments) |
| 5571 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 5572 |
utility/MultithreadTest/TestCollators will fail as well; |
| 5573 |
fix the conformance test before looking into the multi-thread test |
| 5574 |
|
| 5575 |
* When refreshing all of ICU4J data from ICU4C |
| 5576 |
- ~/svn.icu/trunk/bld$ make ICU4J_ROOT=/tmp/icu4j icu4j-data-install |
| 5577 |
- cp /tmp/icu4j/main/shared/data/icudata.jar ~/svn.icu4j/trunk/src/main/shared/data |
| 5578 |
or |
| 5579 |
- ~/svn.icu/trunk/bld$ make ICU4J_ROOT=~/svn.icu4j/trunk/src icu4j-data-install |
| 5580 |
|
| 5581 |
*** LayoutEngine script information |
| 5582 |
|
| 5583 |
(For details see the Unicode 5.2 change log below.) |
| 5584 |
|
| 5585 |
* Run ICU4J com.ibm.icu.dev.tool.layout.ScriptNameBuilder. This generates LEScripts.h, LELanguages.h, |
| 5586 |
ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp in the working directory. (It also generates |
| 5587 |
ScriptRunData.cpp, which is no longer needed.) |
| 5588 |
|
| 5589 |
The generated files have a current copyright date and "@draft" statement. |
| 5590 |
|
| 5591 |
* copy the above files into <icu>/source/layout, replacing the old files. |
| 5592 |
* fix mixed line endings |
| 5593 |
* review the diffs and fix incorrect @draft and missing aliases; |
| 5594 |
Unicode-derived script codes should be "born stable" like constants in uchar.h, uscript.h etc. |
| 5595 |
* manually re-add the "Indic script xyz v.2" tags in ScriptAndLanguageTags.h |
| 5596 |
|
| 5597 |
---------------------------------------------------------------------------- *** |
| 5598 |
|
| 5599 |
Unicode 5.2 update |
| 5600 |
|
| 5601 |
*** related ICU Trac tickets |
| 5602 |
|
| 5603 |
7084 Unicode 5.2 |
| 5604 |
|
| 5605 |
7167 verify collation bytes |
| 5606 |
7235 Java test NAME_ALIAS |
| 5607 |
7236 Java DerivedCoreProperties.txt test |
| 5608 |
7237 Java BidiTest.txt |
| 5609 |
7238 UTrie2 in core unidata |
| 5610 |
7239 test for tailoring gaps |
| 5611 |
7240 Java fix CollationMiscTest |
| 5612 |
7243 update layout engine for Unicode 5.2 |
| 5613 |
|
| 5614 |
*** Unicode version numbers |
| 5615 |
- makedata.mak |
| 5616 |
- uchar.h |
| 5617 |
- configure.in & configure |
| 5618 |
- update ucdVersion in gennames.c if an algorithmic range changes |
| 5619 |
|
| 5620 |
*** data files & enums & parser code |
| 5621 |
|
| 5622 |
* file preparation |
| 5623 |
|
| 5624 |
python source\tools\genprops\misc\ucdcopy.py "C:\Documents and Settings\mscherer\My Documents\unicode\ucd\5.2.0" C:\svn\icuproj\icu\trunk\source\data\unidata |
| 5625 |
- includes finding files regardless of version numbers, |
| 5626 |
copying them, and performing the equivalent processing of the |
| 5627 |
ucdstrip and ucdmerge tools on the desired set of files |
| 5628 |
|
| 5629 |
* notes on changes |
| 5630 |
- PropertyAliases.txt |
| 5631 |
moved from numeric to enumerated: |
| 5632 |
ccc ; Canonical_Combining_Class |
| 5633 |
new string properties: |
| 5634 |
NFKC_CF ; NFKC_Casefold |
| 5635 |
Name_Alias; Name_Alias |
| 5636 |
new binary properties: |
| 5637 |
Cased ; Cased |
| 5638 |
CI ; Case_Ignorable |
| 5639 |
CWCF ; Changes_When_Casefolded |
| 5640 |
CWCM ; Changes_When_Casemapped |
| 5641 |
CWKCF ; Changes_When_NFKC_Casefolded |
| 5642 |
CWL ; Changes_When_Lowercased |
| 5643 |
CWT ; Changes_When_Titlecased |
| 5644 |
CWU ; Changes_When_Uppercased |
| 5645 |
new CJK Unihan properties (not supported by ICU) |
| 5646 |
- PropertyValueAliases.txt |
| 5647 |
new block names |
| 5648 |
new scripts |
| 5649 |
one script code change: |
| 5650 |
sc ; Qaai ; Inherited |
| 5651 |
-> |
| 5652 |
sc ; Zinh ; Inherited ; Qaai |
| 5653 |
new Line_Break (lb) value: |
| 5654 |
lb ; CP ; Close_Parenthesis |
| 5655 |
new Joining_Group (jg) values: Farsi_Yeh, Nya |
| 5656 |
other new values: |
| 5657 |
ccc; 214; ATA ; Attached_Above |
| 5658 |
- DerivedBidiClass.txt |
| 5659 |
new default-R range: U+1E800 - U+1EFFF |
| 5660 |
- UnicodeData.txt |
| 5661 |
all of the ISO comments are gone |
| 5662 |
new CJK block end: |
| 5663 |
9FC3;<CJK Ideograph, Last> -> 9FCB;<CJK Ideograph, Last> |
| 5664 |
new CJK block: |
| 5665 |
2A700;<CJK Ideograph Extension C, First>;Lo;0;L;;;;;N;;;;; |
| 5666 |
2B734;<CJK Ideograph Extension C, Last>;Lo;0;L;;;;;N;;;;; |
| 5667 |
|
| 5668 |
* genpname |
| 5669 |
- run preparse.pl |
| 5670 |
+ cd \svn\icuproj\icu\trunk\source\tools\genpname |
| 5671 |
+ make sure that data.h is writable |
| 5672 |
+ perl preparse.pl \svn\icuproj\icu\trunk > out.txt |
| 5673 |
+ preparse.pl complains with errors like the following: |
| 5674 |
Error: sc:Egyp already set to Egyptian_Hieroglyphs, cannot set to Egyp at preparse.pl line 1322, <GEN6> line 34. |
| 5675 |
This is because ICU 4.0 had scripts from ISO 15924 which are now |
| 5676 |
added to Unicode 5.2, and the Perl script shows a conflict between SyntheticPropertyValueAliases.txt |
| 5677 |
and PropertyValueAliases.txt. |
| 5678 |
-> Removed duplicate script entries from SyntheticPropertyValueAliases.txt: |
| 5679 |
Egyp, Java, Lana, Mtei, Orkh, Armi, Avst, Kthi, Phli, Prti, Samr, Tavt |
| 5680 |
+ preparse.pl complains with errors about block names missing from uchar.h; add them |
| 5681 |
|
| 5682 |
* uchar.h & uscript.h & uprops.h & uprops.c & genprops |
| 5683 |
- new block & script values |
| 5684 |
+ 26 new blocks |
| 5685 |
copy new blocks from Blocks.txt |
| 5686 |
MS VC++ 2008 regular expression: |
| 5687 |
find "^{[0-9A-F]+}\.\.{[0-9A-F]+}; {[A-Z].+}$" |
| 5688 |
replace with " UBLOCK_\3 = 172, /*[\1]*/" |
| 5689 |
+ several new script values already added in ICU 4.0 for ISO 15924 coverage |
| 5690 |
(removed from SyntheticPropertyValueAliases.txt, see genpname notes above) |
| 5691 |
+ 3 new script values added for ISO 15924 and Unicode 5.2 coverage |
| 5692 |
+ 1 new script value added for ISO 15924 coverage (not in Unicode 5.2) |
| 5693 |
(added to SyntheticPropertyValueAliases.txt) |
| 5694 |
- new Joining Group (JG) values: Farsi_Yeh, Nya |
| 5695 |
- new Line_Break (lb) value: |
| 5696 |
lb ; CP ; Close_Parenthesis |
| 5697 |
|
| 5698 |
* hardcoded Unihan range end/limit |
| 5699 |
- Unihan range end moves from 9FC3 to 9FCB |
| 5700 |
search for both 9FC3 (end) and 9FC4 (limit) (regex 9FC[34], case-insensitive) |
| 5701 |
+ do change gennames.c |
| 5702 |
|
| 5703 |
* Compare definitions of new binary properties with what we used to use |
| 5704 |
in algorithms, to see if the definitions changed. |
| 5705 |
- Verified that definitions for Cased and Case_Ignorable are unchanged. |
| 5706 |
The gencase tool now parses the newly public Case_Ignorable values |
| 5707 |
in case the definition changes in the future. |
| 5708 |
|
| 5709 |
* uchar.c & uprops.h & uprops.c & genprops |
| 5710 |
- new numeric values that didn't exist in Unicode data before: |
| 5711 |
1/7, 1/9, 1/10, 3/10, 1/16, 3/16 |
| 5712 |
the ones with denominators >9 cannot be supported by uprops.icu formatVersion 5, |
| 5713 |
therefore redesign the encoding of numeric types and values for formatVersion 6; |
| 5714 |
design for simple numbers up to at least 144 ("one gross"), |
| 5715 |
large values up to at least 10^20, |
| 5716 |
and fractions with numerators -1..17 and denominators 1..16 |
| 5717 |
to cover current and expected future values |
| 5718 |
(e.g., more Han numeric values, Meroitic twelfths) |
| 5719 |
|
| 5720 |
* reimplement Hangul_Syllable_Type for new Jamo characters |
| 5721 |
- the old code assumed that all Jamo characters are in the 11xx block |
| 5722 |
- Unicode 5.2 fills holes there and adds new Jamo characters in |
| 5723 |
A960..A97F; Hangul Jamo Extended-A |
| 5724 |
and in |
| 5725 |
D7B0..D7FF; Hangul Jamo Extended-B |
| 5726 |
- Hangul_Syllable_Type can be trivially derived from a subset of |
| 5727 |
Grapheme_Cluster_Break values |
| 5728 |
|
| 5729 |
* build Unicode data source code for hardcoding core data |
| 5730 |
C:\svn\icuproj\icu\trunk\source\data>NMAKE /f makedata.mak ICUMAKE=\svn\icuproj\icu\trunk\source\data\ CFG=x86\release uni-core-data |
| 5731 |
|
| 5732 |
ICU data make path is \svn\icuproj\icu\trunk\source\data\ |
| 5733 |
ICU root path is \svn\icuproj\icu\trunk |
| 5734 |
Information: cannot find "ucmlocal.mk". Not building user-additional converter files. |
| 5735 |
Information: cannot find "brklocal.mk". Not building user-additional break iterator files. |
| 5736 |
Information: cannot find "reslocal.mk". Not building user-additional resource bundle files. |
| 5737 |
Information: cannot find "collocal.mk". Not building user-additional resource bundle files. |
| 5738 |
Information: cannot find "rbnflocal.mk". Not building user-additional resource bundle files. |
| 5739 |
Information: cannot find "trnslocal.mk". Not building user-additional transliterator files. |
| 5740 |
Information: cannot find "misclocal.mk". Not building user-additional miscellaenous files. |
| 5741 |
Information: cannot find "spreplocal.mk". Not building user-additional stringprep files. |
| 5742 |
Creating data file for Unicode Property Names |
| 5743 |
Creating data file for Unicode Character Properties |
| 5744 |
Creating data file for Unicode Case Mapping Properties |
| 5745 |
Creating data file for Unicode BiDi/Shaping Properties |
| 5746 |
Creating data file for Unicode Normalization |
| 5747 |
Unicode .icu files built to "\svn\icuproj\icu\trunk\source\data\out\build\icudt43l" |
| 5748 |
Unicode .c source files built to "\svn\icuproj\icu\trunk\source\data\out\tmp" |
| 5749 |
|
| 5750 |
- copy the .c source files to C:\svn\icuproj\icu\trunk\source\common |
| 5751 |
and rebuild the common library |
| 5752 |
|
| 5753 |
*** UCA |
| 5754 |
|
| 5755 |
- update FractionalUCA.txt with new canonical closure (output from Mark's Unicode tools) |
| 5756 |
- update source/data/unidata/UCARules.txt with UCA_Rules_SHORT.txt from Mark's Unicode tools |
| 5757 |
- update source/test/testdata/CollationTest_*.txt with output from Mark's Unicode tools |
| 5758 |
[ Begin obsolete instructions: |
| 5759 |
Starting with UCA 5.2, we use the CollationTest_*_SHORT.txt files not the *_STUB.txt files. |
| 5760 |
- generate the source/test/testdata/CollationTest_*_STUB.txt files via source/tools/genuca/genteststub.py |
| 5761 |
on Windows: |
| 5762 |
python C:\svn\icuproj\icu\trunk\source\tools\genuca\genteststub.py CollationTest_NON_IGNORABLE_SHORT.txt CollationTest_NON_IGNORABLE_STUB.txt |
| 5763 |
python C:\svn\icuproj\icu\trunk\source\tools\genuca\genteststub.py CollationTest_SHIFTED_SHORT.txt CollationTest_SHIFTED_STUB.txt |
| 5764 |
End obsolete instructions] |
| 5765 |
- run all tests with the *_SHORT.txt or the full files (the full ones have comments) |
| 5766 |
not just the *_STUB.txt files |
| 5767 |
- note on intltest: if collate/UCAConformanceTest fails, then |
| 5768 |
utility/MultithreadTest/TestCollators will fail as well; |
| 5769 |
fix the conformance test before looking into the multi-thread test |
| 5770 |
|
| 5771 |
*** Implement Cased & Case_Ignorable properties |
| 5772 |
- via UProperty; call ucase.h functions ucase_getType() and ucase_getTypeOrIgnorable() |
| 5773 |
- Problem: These properties should be disjoint, but aren't |
| 5774 |
- UTC 2009nov decision: skip all Case_Ignorable regardless of whether they are Cased or not |
| 5775 |
- change ucase.icu to be able to store any combination of Cased and Case_Ignorable |
| 5776 |
|
| 5777 |
*** Implement Changes_When_Xyz properties |
| 5778 |
- without stored data |
| 5779 |
|
| 5780 |
*** Implement Name_Alias property |
| 5781 |
- add it as another name field in unames.icu |
| 5782 |
- make it available via u_charName() and UCharNameChoice and |
| 5783 |
- consider it in u_charFromName() |
| 5784 |
|
| 5785 |
*** Break iterators |
| 5786 |
|
| 5787 |
* Update break iterator rules to new UAX versions and new property values |
| 5788 |
* Update source/test/testdata/<boundary>Test.txt files from <unicode.org ucd>/ucd/auxiliary |
| 5789 |
|
| 5790 |
*** new BidiTest file |
| 5791 |
- review format and data |
| 5792 |
- copy BidiTest.txt to source/test/testdata |
| 5793 |
- write test code using this data |
| 5794 |
- fix ICU code where it fails the conformance test |
| 5795 |
|
| 5796 |
*** Java |
| 5797 |
- generally, find and update code corresponding to C/C++ |
| 5798 |
- UCharacter.UnicodeBlock constants: |
| 5799 |
a) add an _ID integer per new block, update COUNT |
| 5800 |
b) add a class instance per new block |
| 5801 |
Visual Studio regex: |
| 5802 |
find UBLOCK_{[^ ]+} = [0-9]+, {/.+} |
| 5803 |
replace with public static final UnicodeBlock \1 = new UnicodeBlock("\1", \1_ID); \2 |
| 5804 |
- CHAR_NAME_ALIAS -> UCharacter.getNameAlias() and getCharFromNameAlias() |
| 5805 |
|
| 5806 |
- port test changes to Java |
| 5807 |
|
| 5808 |
*** LayoutEngine script information |
| 5809 |
|
| 5810 |
(For comparison, see the Unicode 5.1 update: http://bugs.icu-project.org/trac/changeset/23833) |
| 5811 |
|
| 5812 |
* Run ICU4J com.ibm.icu.dev.tool.layout.ScriptNameBuilder. This generates LEScripts.h, LELanguages.h, |
| 5813 |
ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp in the working directory. (It also generates |
| 5814 |
ScriptRunData.cpp, which is no longer needed.) |
| 5815 |
|
| 5816 |
The generated files have a current copyright date and "@draft" statement. |
| 5817 |
|
| 5818 |
-> Eric Mader wrote in email on 20090930: |
| 5819 |
"I think the tool has been modified to update @draft to @stable for |
| 5820 |
older scripts and to add @draft for new scripts. |
| 5821 |
(I worked with an intern on this last year.) |
| 5822 |
You should check the output after you run it." |
| 5823 |
|
| 5824 |
* copy the above files into <icu>/source/layout, replacing the old files. |
| 5825 |
* fix mixed line endings |
| 5826 |
* review the diffs and fix incorrect @draft and missing aliases |
| 5827 |
* manually re-add the "Indic script xyz v.2" tags in ScriptAndLanguageTags.h |
| 5828 |
|
| 5829 |
Add new default entries to the indicClassTables array in <icu>/source/layout/IndicClassTables.cpp |
| 5830 |
and the complexTable array in <icu>/source/layoutex/ParagraphLayout.cpp. (This step should be automated...) |
| 5831 |
|
| 5832 |
-> Eric Mader wrote in email on 20090930: |
| 5833 |
"This is just a matter of making sure that all the per-script tables have |
| 5834 |
entries for any new scripts that were added. |
| 5835 |
If any new Indic characters were added, then the class tables in |
| 5836 |
IndicClassTables.cpp should be updated to reflect this. |
| 5837 |
John Emmons should know how to do this if it's required." |
| 5838 |
|
| 5839 |
* rebuild the layout and layoutex libraries. |
| 5840 |
|
| 5841 |
*** Documentation |
| 5842 |
- Update User Guide |
| 5843 |
+ Jamo_Short_Name, sfc->scf, binary property value aliases |
| 5844 |
|
| 5845 |
---------------------------------------------------------------------------- *** |
| 5846 |
|
| 5847 |
Unicode 5.1 update |
| 5848 |
|
| 5849 |
*** related ICU Trac tickets |
| 5850 |
|
| 5851 |
5696 Update to Unicode 5.1 |
| 5852 |
|
| 5853 |
*** Unicode version numbers |
| 5854 |
- makedata.mak |
| 5855 |
- uchar.h |
| 5856 |
- configure.in & configure |
| 5857 |
- update ucdVersion in gennames.c if an algorithmic range changes |
| 5858 |
|
| 5859 |
*** data files & enums & parser code |
| 5860 |
|
| 5861 |
* file preparation |
| 5862 |
- ucdstrip: |
| 5863 |
DerivedCoreProperties.txt |
| 5864 |
DerivedNormalizationProps.txt |
| 5865 |
NormalizationTest.txt |
| 5866 |
PropList.txt |
| 5867 |
Scripts.txt |
| 5868 |
GraphemeBreakProperty.txt |
| 5869 |
SentenceBreakProperty.txt |
| 5870 |
WordBreakProperty.txt |
| 5871 |
- ucdstrip and ucdmerge: |
| 5872 |
EastAsianWidth.txt |
| 5873 |
LineBreak.txt |
| 5874 |
|
| 5875 |
* my ucd2unidata.bat (needs to be updated each time with UCD and file version numbers) |
| 5876 |
copy 5.1.0\ucd\BidiMirroring.txt ..\unidata\ |
| 5877 |
copy 5.1.0\ucd\Blocks.txt ..\unidata\ |
| 5878 |
copy 5.1.0\ucd\CaseFolding.txt ..\unidata\ |
| 5879 |
copy 5.1.0\ucd\DerivedAge.txt ..\unidata\ |
| 5880 |
copy 5.1.0\ucd\extracted\DerivedBidiClass.txt ..\unidata\ |
| 5881 |
copy 5.1.0\ucd\extracted\DerivedJoiningGroup.txt ..\unidata\ |
| 5882 |
copy 5.1.0\ucd\extracted\DerivedJoiningType.txt ..\unidata\ |
| 5883 |
copy 5.1.0\ucd\extracted\DerivedNumericValues.txt ..\unidata\ |
| 5884 |
copy 5.1.0\ucd\NormalizationCorrections.txt ..\unidata\ |
| 5885 |
copy 5.1.0\ucd\PropertyAliases.txt ..\unidata\ |
| 5886 |
copy 5.1.0\ucd\PropertyValueAliases.txt ..\unidata\ |
| 5887 |
copy 5.1.0\ucd\SpecialCasing.txt ..\unidata\ |
| 5888 |
copy 5.1.0\ucd\UnicodeData.txt ..\unidata\ |
| 5889 |
|
| 5890 |
ucdstrip < 5.1.0\ucd\DerivedCoreProperties.txt > ..\unidata\DerivedCoreProperties.txt |
| 5891 |
ucdstrip < 5.1.0\ucd\DerivedNormalizationProps.txt > ..\unidata\DerivedNormalizationProps.txt |
| 5892 |
ucdstrip < 5.1.0\ucd\NormalizationTest.txt > ..\unidata\NormalizationTest.txt |
| 5893 |
ucdstrip < 5.1.0\ucd\PropList.txt > ..\unidata\PropList.txt |
| 5894 |
ucdstrip < 5.1.0\ucd\Scripts.txt > ..\unidata\Scripts.txt |
| 5895 |
ucdstrip < 5.1.0\ucd\auxiliary\GraphemeBreakProperty.txt > ..\unidata\GraphemeBreakProperty.txt |
| 5896 |
ucdstrip < 5.1.0\ucd\auxiliary\SentenceBreakProperty.txt > ..\unidata\SentenceBreakProperty.txt |
| 5897 |
ucdstrip < 5.1.0\ucd\auxiliary\WordBreakProperty.txt > ..\unidata\WordBreakProperty.txt |
| 5898 |
ucdstrip < 5.1.0\ucd\EastAsianWidth.txt | ucdmerge > ..\unidata\EastAsianWidth.txt |
| 5899 |
ucdstrip < 5.1.0\ucd\LineBreak.txt | ucdmerge > ..\unidata\LineBreak.txt |
| 5900 |
|
| 5901 |
* genpname |
| 5902 |
- run preparse.pl |
| 5903 |
+ cd \svn\icuproj\icu\uni51\source\tools\genpname |
| 5904 |
+ make sure that data.h is writable |
| 5905 |
+ perl preparse.pl \svn\icuproj\icu\uni51 > out.txt |
| 5906 |
+ preparse.pl complains with errors like the following: |
| 5907 |
Error: sc:Cari already set to Carian, cannot set to Cari at preparse.pl line 1308, <GEN6> line 30. |
| 5908 |
This is because ICU 3.8 had scripts from ISO 15924 which are now |
| 5909 |
added to Unicode 5.1, and the script shows a conflict between SyntheticPropertyValueAliases.txt |
| 5910 |
and PropertyValueAliases.txt. |
| 5911 |
-> Removed duplicate script entries from SyntheticPropertyValueAliases.txt: |
| 5912 |
Cari, Cham, Kali, Lepc, Lyci, Lydi, Olck, Rjng, Saur, Sund, Vaii |
| 5913 |
+ PropertyValueAliases.txt now explicitly contains values for boolean properties: |
| 5914 |
N/Y, No/Yes, F/T, False/True |
| 5915 |
-> Added N/No and Y/Yes to preparse.pl function read_PropertyValueAliases. |
| 5916 |
It will use further values from the file if present. |
| 5917 |
|
| 5918 |
* uchar.h & uscript.h & uprops.h & uprops.c & genprops |
| 5919 |
- new block & script values |
| 5920 |
+ 17 new blocks |
| 5921 |
+ 11 new script values already added in ICU 3.8 for ISO 15924 coverage |
| 5922 |
(removed from SyntheticPropertyValueAliases.txt) |
| 5923 |
+ 14 new script values added for ISO 15924 coverage (not in Unicode 5.1) |
| 5924 |
(added to SyntheticPropertyValueAliases.txt) |
| 5925 |
- uprops.icu (uprops.h) only provides 7 bits for script codes. |
| 5926 |
In ICU 4.0 there are USCRIPT_CODE_LIMIT=130 script codes now. |
| 5927 |
There is none above 127 yet which is the script code for an |
| 5928 |
assigned Unicode character, so ICU 4.0 uprops.icu does not store any |
| 5929 |
script code values greater than 127. |
| 5930 |
However, it does need to store the maximum script value=USCRIPT_CODE_LIMIT-1=129 |
| 5931 |
in a parallel bit field, and that overflows now. |
| 5932 |
Also, future values >=128 would be incompatible anyway. |
| 5933 |
uprops.h is modified to move around several of the bit fields |
| 5934 |
in the properties vector words, and now uses 8 bits for the script code. |
| 5935 |
Two other bit fields also grow to accommodate future growth: |
| 5936 |
Block (current count: 172) grows from 8 to 9 bits, |
| 5937 |
and Word_Break grows from 4 to 5 bits. |
| 5938 |
- renamed property Simple_Case_Folding (sfc->scf) |
| 5939 |
+ nothing to be done: handled as normal alias |
| 5940 |
- new property JSN Jamo_Short_Name |
| 5941 |
+ no new API: only contributes to the Name property |
| 5942 |
- new Grapheme_Cluster_Break (GCB) value: SM=SpacingMark |
| 5943 |
- new Joining Group (JG) value: Burushashki_Yeh_Barree |
| 5944 |
- new Sentence_Break (SB) values: |
| 5945 |
SB ; CR ; CR |
| 5946 |
SB ; EX ; Extend |
| 5947 |
SB ; LF ; LF |
| 5948 |
SB ; SC ; SContinue |
| 5949 |
- new Word_Break (WB) values: |
| 5950 |
WB ; CR ; CR |
| 5951 |
WB ; Extend ; Extend |
| 5952 |
WB ; LF ; LF |
| 5953 |
WB ; MB ; MidNumLet |
| 5954 |
|
| 5955 |
* Further changes in the 2008-02-29 update: |
| 5956 |
- Default_Ignorable_Code_Point: The new file removes Cc, Cs, noncharacters from DICP |
| 5957 |
because they should not normally be invisible. |
| 5958 |
- new Joining Group (JG) value Burushashki_Yeh_Barree was renamed to Burushaski_Yeh_Barree (one 'h' removed) |
| 5959 |
- new Grapheme_Cluster_Break (GCB) value: PP=Prepend |
| 5960 |
- new Word_Break (WB) value: NL=Newline |
| 5961 |
|
| 5962 |
* hardcoded Unihan range end/limit (see Unicode 4.1 update for comparison) |
| 5963 |
- Unihan range end moves from 9FBB to 9FC3 |
| 5964 |
search for both 9FBB (end) and 9FBC (limit) (regex 9FB[BC], case-insensitive) |
| 5965 |
+ do change gennames.c |
| 5966 |
|
| 5967 |
* build Unicode data source code for hardcoding core data |
| 5968 |
C:\svn\icuproj\icu\uni51\source\data>NMAKE /f makedata.mak ICUMAKE=\svn\icuproj\icu\uni51\source\data\ CFG=debug uni-core-data |
| 5969 |
|
| 5970 |
ICU data make path is \svn\icuproj\icu\uni51\source\data\ |
| 5971 |
ICU root path is \svn\icuproj\icu\uni51 |
| 5972 |
Information: cannot find "ucmlocal.mk". Not building user-additional converter files. |
| 5973 |
Information: cannot find "brklocal.mk". Not building user-additional break iterator files. |
| 5974 |
Information: cannot find "reslocal.mk". Not building user-additional resource bundle files. |
| 5975 |
Information: cannot find "collocal.mk". Not building user-additional resource bundle files. |
| 5976 |
Information: cannot find "rbnflocal.mk". Not building user-additional resource bundle files. |
| 5977 |
Information: cannot find "trnslocal.mk". Not building user-additional transliterator files. |
| 5978 |
Information: cannot find "misclocal.mk". Not building user-additional miscellaenous files. |
| 5979 |
Creating data file for Unicode Character Properties |
| 5980 |
Creating data file for Unicode Case Mapping Properties |
| 5981 |
Creating data file for Unicode BiDi/Shaping Properties |
| 5982 |
Creating data file for Unicode Normalization |
| 5983 |
Unicode .icu files built to "\svn\icuproj\icu\uni51\source\data\out\build\icudt39l" |
| 5984 |
Unicode .c source files built to "\svn\icuproj\icu\uni51\source\data\out\tmp" |
| 5985 |
|
| 5986 |
- copy the .c source files to C:\svn\icuproj\icu\uni51\source\common |
| 5987 |
and rebuild the common library |
| 5988 |
|
| 5989 |
*** Break iterators |
| 5990 |
|
| 5991 |
* Update break iterator rules to new UAX versions and new property values |
| 5992 |
|
| 5993 |
*** UCA |
| 5994 |
|
| 5995 |
* update FractionalUCA.txt and UCARules.txt with new canonical closure |
| 5996 |
|
| 5997 |
*** Test suites |
| 5998 |
- Test that APIs using Unicode property value aliases (like UnicodeSet) |
| 5999 |
support all of the boolean values N/Y, No/Yes, F/T, False/True |
| 6000 |
-> TestBinaryValues() tests in both cintltst and intltest |
| 6001 |
|
| 6002 |
*** LayoutEngine script information |
| 6003 |
* Run ICU4J com.ibm.icu.dev.tool.layout.ScriptNameBuilder. This generates LEScripts.h, LELanguage.h, |
| 6004 |
ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp in the working directory. (it also generates |
| 6005 |
ScriptRunData.cpp, which is no longer needed.) |
| 6006 |
|
| 6007 |
The generated files have a current copyright date and "@draft" statement. |
| 6008 |
|
| 6009 |
* copy the above files into <icu>/source/layout, replacing the old files. |
| 6010 |
|
| 6011 |
Add new default entries to the indicClassTables array in <icu>/source/layout/IndicClassTables.cpp |
| 6012 |
and the complexTable array in <icu>/source/layoutex/ParagraphLayout.cpp. (This step should be automated...) |
| 6013 |
|
| 6014 |
* rebuild the layout and layoutex libraries. |
| 6015 |
|
| 6016 |
*** Documentation |
| 6017 |
- Update User Guide |
| 6018 |
+ Jamo_Short_Name, sfc->scf, binary property value aliases |
| 6019 |
|
| 6020 |
---------------------------------------------------------------------------- *** |
| 6021 |
|
| 6022 |
Unicode 5.0 update |
| 6023 |
|
| 6024 |
*** related Jitterbugs |
| 6025 |
|
| 6026 |
5084 RFE: Update to Unicode 5.0 |
| 6027 |
|
| 6028 |
*** data files & enums & parser code |
| 6029 |
|
| 6030 |
* file preparation |
| 6031 |
- ucdstrip: |
| 6032 |
DerivedCoreProperties.txt |
| 6033 |
DerivedNormalizationProps.txt |
| 6034 |
NormalizationTest.txt |
| 6035 |
PropList.txt |
| 6036 |
Scripts.txt |
| 6037 |
GraphemeBreakProperty.txt |
| 6038 |
SentenceBreakProperty.txt |
| 6039 |
WordBreakProperty.txt |
| 6040 |
- ucdstrip and ucdmerge: |
| 6041 |
EastAsianWidth.txt |
| 6042 |
LineBreak.txt |
| 6043 |
|
| 6044 |
* my ucd2unidata.bat (needs to be updated each time with UCD and file version numbers) |
| 6045 |
copy 5.0.0\ucd\BidiMirroring.txt ..\unidata\ |
| 6046 |
copy 5.0.0\ucd\Blocks.txt ..\unidata\ |
| 6047 |
copy 5.0.0\ucd\CaseFolding.txt ..\unidata\ |
| 6048 |
copy 5.0.0\ucd\DerivedAge.txt ..\unidata\ |
| 6049 |
copy 5.0.0\ucd\extracted\DerivedBidiClass.txt ..\unidata\ |
| 6050 |
copy 5.0.0\ucd\extracted\DerivedJoiningGroup.txt ..\unidata\ |
| 6051 |
copy 5.0.0\ucd\extracted\DerivedJoiningType.txt ..\unidata\ |
| 6052 |
copy 5.0.0\ucd\extracted\DerivedNumericValues.txt ..\unidata\ |
| 6053 |
copy 5.0.0\ucd\NormalizationCorrections.txt ..\unidata\ |
| 6054 |
copy 5.0.0\ucd\PropertyAliases.txt ..\unidata\ |
| 6055 |
copy 5.0.0\ucd\PropertyValueAliases.txt ..\unidata\ |
| 6056 |
copy 5.0.0\ucd\SpecialCasing.txt ..\unidata\ |
| 6057 |
copy 5.0.0\ucd\UnicodeData.txt ..\unidata\ |
| 6058 |
|
| 6059 |
ucdstrip < 5.0.0\ucd\DerivedCoreProperties.txt > ..\unidata\DerivedCoreProperties.txt |
| 6060 |
ucdstrip < 5.0.0\ucd\DerivedNormalizationProps.txt > ..\unidata\DerivedNormalizationProps.txt |
| 6061 |
ucdstrip < 5.0.0\ucd\NormalizationTest.txt > ..\unidata\NormalizationTest.txt |
| 6062 |
ucdstrip < 5.0.0\ucd\PropList.txt > ..\unidata\PropList.txt |
| 6063 |
ucdstrip < 5.0.0\ucd\Scripts.txt > ..\unidata\Scripts.txt |
| 6064 |
ucdstrip < 5.0.0\ucd\auxiliary\GraphemeBreakProperty.txt > ..\unidata\GraphemeBreakProperty.txt |
| 6065 |
ucdstrip < 5.0.0\ucd\auxiliary\SentenceBreakProperty.txt > ..\unidata\SentenceBreakProperty.txt |
| 6066 |
ucdstrip < 5.0.0\ucd\auxiliary\WordBreakProperty.txt > ..\unidata\WordBreakProperty.txt |
| 6067 |
ucdstrip < 5.0.0\ucd\EastAsianWidth.txt | ucdmerge > ..\unidata\EastAsianWidth.txt |
| 6068 |
ucdstrip < 5.0.0\ucd\LineBreak.txt | ucdmerge > ..\unidata\LineBreak.txt |
| 6069 |
|
| 6070 |
* update FractionalUCA.txt and UCARules.txt with new canonical closure |
| 6071 |
|
| 6072 |
* genpname |
| 6073 |
- run preparse.pl |
| 6074 |
+ make sure that data.h is writable |
| 6075 |
+ perl preparse.pl \cvs\oss\icu > out.txt |
| 6076 |
|
| 6077 |
* uchar.h & uscript.h & uprops.h & uprops.c & genprops |
| 6078 |
- new block & script values |
| 6079 |
+ script values already added in ICU 3.6 because all of ISO 15924 is now covered |
| 6080 |
|
| 6081 |
* build Unicode data source code for hardcoding core data |
| 6082 |
C:\cvs\oss\icu\source\data>NMAKE /f makedata.mak ICUMAKE=\cvs\oss\icu\source\data\ CFG=debug uni-core-data |
| 6083 |
|
| 6084 |
ICU data make path is \cvs\oss\icu\source\data\ |
| 6085 |
ICU root path is \cvs\oss\icu |
| 6086 |
Information: cannot find "ucmlocal.mk". Not building user-additional converter files. |
| 6087 |
[etc.] |
| 6088 |
Creating data file for Unicode Character Properties |
| 6089 |
Creating data file for Unicode Case Mapping Properties |
| 6090 |
Creating data file for Unicode BiDi/Shaping Properties |
| 6091 |
Creating data file for Unicode Normalization |
| 6092 |
Unicode .icu files built to "\cvs\oss\icu\source\data\out\build\icudt35l" |
| 6093 |
Unicode .c source files built to "\cvs\oss\icu\source\data\out\tmp" |
| 6094 |
|
| 6095 |
- copy the .c source files to C:\cvs\oss\icu\source\common |
| 6096 |
and rebuild the common library |
| 6097 |
|
| 6098 |
*** Unicode version numbers |
| 6099 |
- makedata.mak |
| 6100 |
- uchar.h |
| 6101 |
- configure.in |
| 6102 |
|
| 6103 |
*** LayoutEngine script information |
| 6104 |
* Run ICU4J com.ibm.icu.dev.tool.layout.ScriptNameBuilder. This generates LEScripts.h, LELanguage.h, |
| 6105 |
ScriptAndLanguageTags.h and ScriptAndLanguageTags.cpp in the working directory. (it also generates |
| 6106 |
ScriptRunData.cpp, which is no longer needed.) |
| 6107 |
|
| 6108 |
The generated files have a current copyright date and "@draft" statement. |
| 6109 |
|
| 6110 |
* copy the above files into <icu>/source/layout, replacing the old files. |
| 6111 |
|
| 6112 |
Add new default entries to the indicClassTables array in <icu>/source/layout/IndicClassTables.cpp |
| 6113 |
and the complexTable array in <icu>/source/layoutex/ParagraphLayout.cpp. (This step should be automated...) |
| 6114 |
|
| 6115 |
* rebuild the layout and layoutex libraries. |
| 6116 |
|
| 6117 |
---------------------------------------------------------------------------- *** |
| 6118 |
|
| 6119 |
Unicode 4.1 update |
| 6120 |
|
| 6121 |
*** related Jitterbugs |
| 6122 |
|
| 6123 |
4332 RFE: Update to Unicode 4.1 |
| 6124 |
4157 RBBI, TR29 4.1 updates |
| 6125 |
|
| 6126 |
*** data files & enums & parser code |
| 6127 |
|
| 6128 |
* file preparation |
| 6129 |
- ucdstrip: |
| 6130 |
DerivedCoreProperties.txt |
| 6131 |
DerivedNormalizationProps.txt |
| 6132 |
NormalizationTest.txt |
| 6133 |
GraphemeBreakProperty.txt |
| 6134 |
SentenceBreakProperty.txt |
| 6135 |
WordBreakProperty.txt |
| 6136 |
- ucdstrip and ucdmerge: |
| 6137 |
EastAsianWidth.txt |
| 6138 |
LineBreak.txt |
| 6139 |
|
| 6140 |
* add new files to the repository |
| 6141 |
GraphemeBreakProperty.txt |
| 6142 |
SentenceBreakProperty.txt |
| 6143 |
WordBreakProperty.txt |
| 6144 |
|
| 6145 |
* update FractionalUCA.txt and UCARules.txt with new canonical closure |
| 6146 |
|
| 6147 |
* genpname |
| 6148 |
- handle new enumerated properties in sub read_uchar |
| 6149 |
- run preparse.pl |
| 6150 |
|
| 6151 |
* uchar.h & uscript.h & uprops.h & uprops.c & genprops |
| 6152 |
- new binary properties |
| 6153 |
+ Pattern_Syntax |
| 6154 |
+ Pattern_White_Space |
| 6155 |
- new enumerated properties |
| 6156 |
+ Grapheme_Cluster_Break |
| 6157 |
+ Sentence_Break |
| 6158 |
+ Word_Break |
| 6159 |
- new block & script & line break values |
| 6160 |
|
| 6161 |
* gencase |
| 6162 |
- case-ignorable changes |
| 6163 |
see http://www.unicode.org/versions/Unicode4.1.0/#CaseMods |
| 6164 |
now: (D47a) Word_Break=MidLetter or Mn, Me, Cf, Lm, Sk |
| 6165 |
|
| 6166 |
*** Unicode version numbers |
| 6167 |
- makedata.mak |
| 6168 |
- uchar.h |
| 6169 |
- configure.in |
| 6170 |
|
| 6171 |
*** tests |
| 6172 |
- verify that u_charMirror() round-trips |
| 6173 |
- test all new properties and some new values of old properties |
| 6174 |
|
| 6175 |
*** other code |
| 6176 |
|
| 6177 |
* hardcoded Unihan range end/limit |
| 6178 |
- Unihan range end moves from 9FA5 to 9FBB |
| 6179 |
search for both 9FA5 (end) and 9FA6 (limit) (regex 9FA[56], case-insensitive) |
| 6180 |
+ do not modify BOCU/BOCSU code because that would change the encoding |
| 6181 |
and break binary compatibility! |
| 6182 |
+ similarly, do not change the GB 18030 range data (ucnvmbcs.c), |
| 6183 |
NamePrepProfile.txt |
| 6184 |
+ ignore trietest.c: test data is arbitrary |
| 6185 |
+ ignore tstnorm.cpp: test optimization, not important |
| 6186 |
+ ignore collation: 9FA[56] only appears in comments; swapCJK() uses the whole block up to 9FFF |
| 6187 |
+ do change line_th.txt and word_th.txt |
| 6188 |
by replacing hardcoded ranges with the new property values |
| 6189 |
+ do change gennames.c |
| 6190 |
|
| 6191 |
source\data\brkitr\line_th.txt(229): \u33E0-\u33FE \u3400-\u4DB5 \u4E00-\u9FA5 \uA000-\uA48C \uA490-\uA4C6 |
| 6192 |
source\data\brkitr\word_th.txt(23): \u33E0-\u33FE \u3400-\u4DB5 \u4E00-\u9FA5 \uA000-\uA48C \uA490-\uA4C6 |
| 6193 |
source\tools\gennames\gennames.c(971): 0x4e00, 0x9fa5, |
| 6194 |
|
| 6195 |
* case mappings |
| 6196 |
- compare new special casing context conditions with previous ones |
| 6197 |
see http://www.unicode.org/versions/Unicode4.1.0/#CaseMods |
| 6198 |
|
| 6199 |
* genpname |
| 6200 |
- consider storing only the short name if it is the same as the long name |
| 6201 |
|
| 6202 |
*** other reviews |
| 6203 |
- UAX #29 changes (grapheme/word/sentence breaks) |
| 6204 |
- UAX #14 changes (line breaks) |
| 6205 |
- Pattern_Syntax & Pattern_White_Space |
| 6206 |
|
| 6207 |
---------------------------------------------------------------------------- *** |
| 6208 |
|
| 6209 |
Unicode 4.0.1 update |
| 6210 |
|
| 6211 |
*** related Jitterbugs |
| 6212 |
|
| 6213 |
3170 RFE: Update to Unicode 4.0.1 |
| 6214 |
3171 Add new Unicode 4.0.1 properties |
| 6215 |
3520 use Unicode 4.0.1 updates for break iteration |
| 6216 |
|
| 6217 |
*** data files & enums & parser code |
| 6218 |
|
| 6219 |
* file preparation |
| 6220 |
- ucdstrip: DerivedNormalizationProps.txt, NormalizationTest.txt, DerivedCoreProperties.txt |
| 6221 |
- ucdstrip and ucdmerge: EastAsianWidth.txt, LineBreak.txt |
| 6222 |
|
| 6223 |
* file fixes |
| 6224 |
- fix UnicodeData.txt general categories of Ethiopic digits Nd->No |
| 6225 |
according to PRI #26 |
| 6226 |
http://www.unicode.org/review/resolved-pri.html#pri26 |
| 6227 |
- undone again because no corrigendum in sight; |
| 6228 |
instead modified tests to not check consistency on this for Unicode 4.0.1 |
| 6229 |
|
| 6230 |
* ucdterms.txt |
| 6231 |
- update from http://www.unicode.org/copyright.html |
| 6232 |
formatted for plain text |
| 6233 |
|
| 6234 |
* uchar.h & uprops.h & uprops.c & genprops |
| 6235 |
- add UBLOCK_CYRILLIC_SUPPLEMENT because the block is renamed |
| 6236 |
- add U_LB_INSEPARABLE due to a spelling fix |
| 6237 |
+ put short name comment only on line with new constant |
| 6238 |
for genpname perl script parser |
| 6239 |
- new binary properties |
| 6240 |
+ STerm |
| 6241 |
+ Variation_Selector |
| 6242 |
|
| 6243 |
* genpname |
| 6244 |
- fix genpname perl script so that it doesn't choke on more than 2 names per property value |
| 6245 |
- perl script: correctly calculate the maximum number of fields per row |
| 6246 |
|
| 6247 |
* uscript.h |
| 6248 |
- new script code Hrkt=Katakana_Or_Hiragana |
| 6249 |
|
| 6250 |
* gennorm.c track changes in DerivedNormalizationProps.txt |
| 6251 |
- "FNC" -> "FC_NFKC" |
| 6252 |
- single field "NFD_NO" -> two fields "NFD_QC; N" etc. |
| 6253 |
|
| 6254 |
* genprops/props2.c track changes in DerivedNumericValues.txt |
| 6255 |
- changed from 3 columns to 2, dropping the numeric type |
| 6256 |
+ assume that the type is always numeric for Han characters, |
| 6257 |
and that only those are added in addition to what UnicodeData.txt lists |
| 6258 |
|
| 6259 |
*** Unicode version numbers |
| 6260 |
- makedata.mak |
| 6261 |
- uchar.h |
| 6262 |
- configure.in |
| 6263 |
|
| 6264 |
*** tests |
| 6265 |
- update test of default bidi classes according to PRI #28 |
| 6266 |
/tsutil/cucdtst/TestUnicodeData |
| 6267 |
http://www.unicode.org/review/resolved-pri.html#pri28 |
| 6268 |
- bidi tests: change exemplar character for ES depending on Unicode version |
| 6269 |
- change hardcoded expected property values where they change |
| 6270 |
|
| 6271 |
*** other code |
| 6272 |
|
| 6273 |
* name matching |
| 6274 |
- read UCD.html |
| 6275 |
|
| 6276 |
* scripts |
| 6277 |
- use new Hrkt=Katakana_Or_Hiragana |
| 6278 |
|
| 6279 |
* ZWJ & ZWNJ |
| 6280 |
- are now part of combining character sequences |
| 6281 |
- break iteration used to assume that LB classes did not overlap; now they do for ZWJ & ZWNJ |