Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: icu52/README.chromium

Issue 239543018: Trim ICU data to reduce the download size/memory usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | icu52/icu.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Name: icu 1 Name: icu
2 URL: http://site.icu-project.org/ 2 URL: http://site.icu-project.org/
3 Version: 52.1 3 Version: 52.1
4 License: MIT 4 License: MIT
5 Security Critical: yes 5 Security Critical: yes
6 6
7 Description: 7 Description:
8 This directory contains the source code of ICU 52.1 for C/C++ 8 This directory contains the source code of ICU 52.1 for C/C++
9 9
10 1. It was obtained with the following: 10 1. It was obtained with the following:
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 b. ISO-2022-JP-[1-4] is dropped. 80 b. ISO-2022-JP-[1-4] is dropped.
81 c. SCSU, BOCU, ISCII, UTF-7 conversion is diabled leading to 81 c. SCSU, BOCU, ISCII, UTF-7 conversion is diabled leading to
82 the 47kB reduction in the code size. 82 the 47kB reduction in the code size.
83 83
84 5. Locale changes 84 5. Locale changes
85 - patches/locale1.patch : 85 - patches/locale1.patch :
86 a. Exemplar character set changes for zh*, ja + 9 Indian locales 86 a. Exemplar character set changes for zh*, ja + 9 Indian locales
87 b. Minor fixes for Korean, a few Indic (AmPmMarkers) and 87 b. Minor fixes for Korean, a few Indic (AmPmMarkers) and
88 others (datetime format) 88 others (datetime format)
89 89
90 - patches/locale2.patch :
91 The minimum locale data Chrome needs for 47 languages Chrome is
92 not localized to. Each locale data file has ExemplarCharacters,
93 LocaleScript, layout, and the name of the language for a locale
94 in its native language.
95
96 - Locale build configuration files: To include the full locale data 90 - Locale build configuration files: To include the full locale data
97 for Chrome's UI languages and the minimum locale data for other locales, 91 for Chrome's UI languages and the minimum locale data for other locales,
98 add reslocal.mk or {trns,sprep,rbnf,coll}local.mk files to 92 add reslocal.mk or {trns,sprep,rbnf,coll}local.mk files to
99 source/data/{coll,curr,lang.locale,curr,region,translit,zone,rbnf,sprep}. 93 source/data/{coll,curr,lang.locale,curr,region,translit,zone,rbnf,sprep}.
100 94
101 - In source/data/region, run the following command to get rid of numeric regio n 95 - Run scripts/trimdata.sh
102 display names we don't use (everything other than 419). 96 a. Trim the locale data for Chrome's UI langauges :
103 $ sed -i '/[0-35-9][0-9][0-9]{/ d' *.txt 97 locales, lang, region, currency
98 b. Trim the locale data for non-UI languages to the bare minimum :
99 ExemplarCharacters, LocaleScript, layout, and the name of the
100 language for a locale in its native language.
104 101
105 - android/patch_locale.sh (to be run for Android build only): 102 - android/patch_locale.sh (to be run for Android build only):
106 Makes changes to source/data/{curr,region,lang} to exclude these data 103 Makes changes to source/data/{curr,region,lang} to exclude these data
107 except the language and script names of zh_Hans and zh_Hant. 104 except the language and script names of zh_Hans and zh_Hant.
108 105
109 - Add tg.txt to source/data/locale source/data/lang to add the minimal locale 106 - Add tg.txt to source/data/locale source/data/lang to add the minimal locale
110 data necessary for the spellchecker. In both directories, add tg.txt to 107 data necessary for the spellchecker. In both directories, add tg.txt to
111 reslocal.mk 108 reslocal.mk
112 109
113 6. Removal of unihan collation tables from data/coll/{zh,ja,ko}.txt 110 6. Removal of unihan collation tables from data/coll/{zh,ja,ko}.txt
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 - android/icudt52l_dat.S : Built on Linux with all the patches above and 195 - android/icudt52l_dat.S : Built on Linux with all the patches above and
199 android/brkitr.patch applied and android/patch_locale.sh executed, and 196 android/brkitr.patch applied and android/patch_locale.sh executed, and
200 checked in. 197 checked in.
201 - android/icudtl.dat : Generated as icudt52l.dat in 198 - android/icudtl.dat : Generated as icudt52l.dat in
202 {BUILD_DIR_ROOT}/data/out/tmp along with icudt52l_dat.S and 199 {BUILD_DIR_ROOT}/data/out/tmp along with icudt52l_dat.S and
203 copied to the above location with '52' dropped in its name. 200 copied to the above location with '52' dropped in its name.
204 201
205 202
206 11. Change export of U_ICUDATA_ENTRY_POINT from U_IMPORT to U_EXPORT. 203 11. Change export of U_ICUDATA_ENTRY_POINT from U_IMPORT to U_EXPORT.
207 - patches/declspec.patch 204 - patches/declspec.patch
OLDNEW
« no previous file with comments | « no previous file | icu52/icu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698