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

Unified Diff: icu52/scripts/trim_data.sh

Issue 243763002: Remove {big5,gb2312}han collation data (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu52/scripts/remove_unihan.sh ('k') | icu52/source/data/coll/ja.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu52/scripts/trim_data.sh
===================================================================
--- icu52/scripts/trim_data.sh (revision 264811)
+++ icu52/scripts/trim_data.sh (working copy)
@@ -106,6 +106,14 @@
done
}
+# big5han and gb2312han collation do not make any sense and nobody uses them.
+function remove_legacy_chinese_codepoint_collation {
+ echo "Removing Big5 / GB2312 collation data from Chinese locale"
+ target="${dataroot}/coll/zh.txt"
+ echo "Overwriting ${target}"
+ sed -r -i '/^ (big5|gb2312)han\{$/,/^ \}$/ d' ${target}
+}
+
dataroot="$(dirname $0)/../source/data"
localedatapath="${dataroot}/locales"
langdatapath="${dataroot}/lang"
@@ -122,9 +130,12 @@
abridge_locale_data_for_non_ui_languages
filter_currency_data
filter_region_data
+remove_legacy_chinese_codepoint_collation
# Chromium OS needs exemplar cities for timezones, but not Chromium.
# It'll save 400kB (uncompressed), but the size difference in
# 7z compressed installer is <= 100kB.
# TODO(jshin): Make separate data files for CrOS and Chromium.
#fremove_exemplar_cities
+
+
« no previous file with comments | « icu52/scripts/remove_unihan.sh ('k') | icu52/source/data/coll/ja.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698