From d5e53d8d5172bf1c13d73dd78ecd9a37f4a46c47 Mon Sep 17 00:00:00 2001 From: Jiali Xing <53011060+Jiali-Xing@users.noreply.github.com> Date: Sun, 18 Jul 2021 20:07:53 -0400 Subject: [PATCH] Include some Cantonese vocabulary (#16) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 很多粵字,如`喺冇哋啲嘢啱佢嘅咁咗噉㗎`,即使在源樣明體中本來存在,卻在這裏缺字,因爲《通用規範漢字表》不含這些字。 我們hardcode這些字,阻止他們fallback到黑體。 --- build/code_points_han.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/code_points_han.py b/build/code_points_han.py index aa1c7ef..0b5b925 100644 --- a/build/code_points_han.py +++ b/build/code_points_han.py @@ -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: