Trim ICU data to reduce the download size/memory usage
Add a shell script to trim the ICU data further : trim_data.sh along with locale list files. The script does the following: 1. Remove the display names of languages NOT listed in Chrome's Accept-Language list. (800kB) 2. Minimize the locale data for locales listed in the A-L list that are not a UI locale in Chrome. For those locales, exemplar characters, the display name in the native language and layout direction are included. (640kB) 3. Filter the region data to drop numeric region display names other than 419 (Latin-America). (50kB) 4. Filter the currency data (display name and plurals) for historic currencies. (200kB) This CL also checks in icudtl.dat (source/data/in) and icudt_dat.S (mac and linux). Note that I dropped '52' (the version number) in the assembly source file name and icu.gyp was adjusted accordingly. With all these changes, icudtl.dat is ~ 800kB larger than that in ICU 4.6. The 7z compression (as used by the installer) makes the size difference go down to ~ 130kB. BUG=132145 TEST=The icudtl.dat (uncompressed) is about 10.7MB instead of 12.4MB without this CL. R=mark@chromium.org Review URL: https://codereview.chromium.org/239543018 git-svn-id: http://src.chromium.org/svn/trunk/deps/third_party/icu52@264811 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Showing
- README.chromium 6 additions, 9 deletionsREADME.chromium
- icu.gyp 8 additions, 8 deletionsicu.gyp
- linux/icudtl_dat.S 84321 additions, 0 deletionslinux/icudtl_dat.S
- mac/icudtl_dat.S 84320 additions, 0 deletionsmac/icudtl_dat.S
- scripts/accept_lang.list 145 additions, 0 deletionsscripts/accept_lang.list
- scripts/chrome_ui_languages.list 56 additions, 0 deletionsscripts/chrome_ui_languages.list
- scripts/currencies_to_drop.list 51 additions, 0 deletionsscripts/currencies_to_drop.list
- scripts/trim_data.sh 130 additions, 0 deletionsscripts/trim_data.sh
- source/data/curr/af.txt 0 additions, 24 deletionssource/data/curr/af.txt
- source/data/curr/agq.txt 0 additions, 16 deletionssource/data/curr/agq.txt
- source/data/curr/ak.txt 0 additions, 20 deletionssource/data/curr/ak.txt
- source/data/curr/am.txt 0 additions, 20 deletionssource/data/curr/am.txt
- source/data/curr/ar.txt 0 additions, 128 deletionssource/data/curr/ar.txt
- source/data/curr/asa.txt 0 additions, 20 deletionssource/data/curr/asa.txt
- source/data/curr/az.txt 0 additions, 304 deletionssource/data/curr/az.txt
- source/data/curr/bas.txt 0 additions, 20 deletionssource/data/curr/bas.txt
- source/data/curr/bez.txt 0 additions, 16 deletionssource/data/curr/bez.txt
- source/data/curr/bg.txt 0 additions, 252 deletionssource/data/curr/bg.txt
- source/data/curr/bm.txt 0 additions, 20 deletionssource/data/curr/bm.txt
- source/data/curr/bn.txt 0 additions, 140 deletionssource/data/curr/bn.txt
Loading
Please register or sign in to comment