Skip to content

Commit

Permalink
Include some Cantonese vocabulary (#16)
Browse files Browse the repository at this point in the history
很多粵字,如`喺冇哋啲嘢啱佢嘅咁咗噉㗎`,即使在源樣明體中本來存在,卻在這裏缺字,因爲《通用規範漢字表》不含這些字。
我們hardcode這些字,阻止他們fallback到黑體。
  • Loading branch information
Jiali-Xing authored Jul 19, 2021
1 parent 3b8dbb2 commit d5e53d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/code_points_han.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
for c in v:
s.add(ord(c))

for c in '':
for c in '妳攞噉㗎冚喺冇哋啲嘢啱佢嘅咁嚟屌咗撚噏瞓𡃁嘥掹孭氹詏噃𨳍掟埞曱甴𥄫𨳊嚿閪冧嬲卌嗻𧨾':
s.add(ord(c))

with open('cache/code_points_han.txt', 'w') as f:
Expand Down

0 comments on commit d5e53d8

Please sign in to comment.