Codebase list mozc / 72c515d
Disable Unicode 6.1 - 8.0 emojis Old devices don't support such emojis, so it is better to not support them in rewriter (C++) layer for now. NOTE: Some Unicode 6.0 emoji doesn't have PUA code point (e.g. WAXING CRESCENT MOON). However, it was not supported on Mozc, so this change should be acceptable. BUG= TEST= REF_BUG=25530074 REF_CL=107756062 Hiroshi Sumita 8 years ago
3 changed file(s) with 22 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
00 MAJOR=2
11 MINOR=17
2 BUILD=2380
2 BUILD=2381
33 REVISION=102
44 # NACL_DICTIONARY_VERSION is the target version of the system dictionary to be
55 # downloaded by NaCl Mozc.
9898 logging.critical('format error: %s', '\t'.join(columns))
9999 sys.exit(1)
100100
101 code_points = columns[0].split(' ')
102
101103 # Emoji code point.
102104 emoji = columns[1]
103105
107109 docomo_description = columns[9]
108110 softbank_description = columns[10]
109111 kddi_description = columns[11]
112
113 if not android_pua or len(code_points) > 1:
114 # Skip some emoji, which is not supported on old devices.
115 # - Unicode 6.1 or later emoji which doesn't have PUA code point.
116 # - Composite emoji which has multiple code point.
117 # NOTE: Some Unicode 6.0 emoji don't have PUA, and it is also omitted.
118 # TODO(hsumita): Check the availability of such emoji and enable it.
119 logging.info('Skip %s', ' '.join(code_points))
120 continue
110121
111122 reading_list = []
112123 # \xe3\x80\x80 is a full-width space
8787 logging.critical('format error: %s', '\t'.join(columns))
8888 sys.exit(1)
8989
90 code_points = columns[0].split(' ')
9091 # Emoji code point.
9192 emoji = columns[1] if columns[1] else None
9293 android_pua = ParseCodePoint(columns[2])
101102 docomo_description = columns[9] if columns[9] else None
102103 softbank_description = columns[10] if columns[10] else None
103104 kddi_description = columns[11] if columns[11] else None
105
106 if not android_pua or len(code_points) > 1:
107 # Skip some emoji, which is not supported on old devices.
108 # - Unicode 6.1 or later emoji which doesn't have PUA code point.
109 # - Composite emoji which has multiple code point.
110 # NOTE: Some Unicode 6.0 emoji don't have PUA, and it is also omitted.
111 # TODO(hsumita): Check the availability of such emoji and enable it.
112 logging.info('Skip %s', ' '.join(code_points))
113 continue
104114
105115 # Check consistency between carrier PUA codes and descriptions for Android
106116 # just in case.