• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/source/data/Makefile.in b/source/data/Makefile.in
2index 31e7e1c..25eca2b 100644
3--- a/source/data/Makefile.in
4+++ b/source/data/Makefile.in
5@@ -250,7 +250,8 @@ package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata
6 #  2010-dec Removed pnames.icu.
7 # These are now hardcoded in ICU4C and only loaded in ICU4J.
8 #
9-DAT_FILES_SHORT=unames.icu cnvalias.icu coll/ucadata.icu nfkc.nrm nfkc_cf.nrm uts46.nrm
10+# Chromium: Drop unames.icu because we don't need Unicode character names.
11+DAT_FILES_SHORT=cnvalias.icu coll/ucadata.icu nfkc.nrm nfkc_cf.nrm uts46.nrm
12 DAT_FILES=$(DAT_FILES_SHORT:%=$(BUILDDIR)/%)
13
14 ## BRK files
15@@ -281,7 +282,8 @@ CFU_FILES=$(BUILDDIR)/$(CFU_FILES_SHORT)
16 -include $(UCMSRCDIR)/ucmfiles.mk
17 -include $(UCMSRCDIR)/ucmebcdic.mk
18 -include $(UCMSRCDIR)/ucmlocal.mk
19-ALL_UCM_SOURCE=ibm-37_P100-1995.ucm ibm-1047_P100-1995.ucm $(UCM_SOURCE_CORE) $(UCM_SOURCE_FILES) $(UCM_SOURCE_EBCDIC) $(UCM_SOURCE_LOCAL)
20+# Chromium: Drop 2 ibm encodings not necessary.
21+ALL_UCM_SOURCE=$(UCM_SOURCE_CORE) $(UCM_SOURCE_FILES) $(UCM_SOURCE_EBCDIC) $(UCM_SOURCE_LOCAL)
22 UCM_FILES = $(ALL_UCM_SOURCE:%=$(SRCDATADIR)/%)
23 CNV_FILES = $(ALL_UCM_SOURCE:%.ucm=$(BUILDDIR)/%.cnv)
24 CNV_FILES_SHORT = $(ALL_UCM_SOURCE:%.ucm=%.cnv)
25@@ -355,7 +357,9 @@ TRANSLIT_SRC= $(TRANSLIT_SOURCE) $(TRANSLIT_ALIAS_SOURCE) $(TRANSLIT_SOURCE_LOCA
26 TRANSLIT_SRC_FILES = $(TRANSLIT_SRC:%=$(TRANSLITSRCDIR)/%)
27 INSTALLED_TRANSLIT_FILES = $(TRANSLIT_SOURCE:%.txt=%)  $(TRANSLIT_SOURCE_LOCAL:%.txt=%)
28 endif
29-GENRBOPTS=-k
30+# Chromium : To save space, use '-R' option (exclude collation rules. just
31+# include the compiled binary data.)
32+GENRBOPTS=-k -R
33
34 ## MISC files
35 -include $(MISCSRCDIR)/miscfiles.mk
36@@ -533,7 +537,14 @@ $(BUILDDIR)/%.icu: $(SRCDATADIR)/in/%.icu
37 $(BUILDDIR)/%.nrm: $(SRCDATADIR)/in/%.nrm
38 	$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@
39
40-$(BUILDDIR)/coll/ucadata.icu: $(SRCDATADIR)/in/coll/ucadata-unihan.icu
41+# Chromium: To cut down the data size by 280kB,
42+# use the code point order for CJK Ideographs in non-CJK locales instead
43+# of the UniHan radical-stroke order. The latter is better, but non-CJK
44+# locales do not have a great need for sorting CJK Ideographs.
45+# Moreover, the most common subset (the original CJK Ideograph block) will
46+# still be sorted correctly because the code point order is radical-stroke
47+# order.
48+$(BUILDDIR)/coll/ucadata.icu: $(SRCDATADIR)/in/coll/ucadata-implicithan.icu
49 	$(INVOKE) $(TOOLBINDIR)/icupkg -t$(ICUDATA_CHAR) $< $@
50
51 ####################################################    SPP
52