From f5536ff8a5701d320a2804fd0edc8f96bdd6fa0b Mon Sep 17 00:00:00 2001 From: mkpoli Date: Fri, 18 Oct 2024 20:50:47 +0900 Subject: [PATCH] feat: add and organize more variants --- src/lib/VariantKanji.svelte | 1 - src/lib/kanji.ts | 17 ++++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/lib/VariantKanji.svelte b/src/lib/VariantKanji.svelte index 1be5cb6..b34cec2 100644 --- a/src/lib/VariantKanji.svelte +++ b/src/lib/VariantKanji.svelte @@ -15,7 +15,6 @@ let shown = $state(false); const VARIANTS: { traditional: string; simplified: string; color: Color }[] = [ { traditional: "敎", simplified: "教", color: "blue" }, - { traditional: "內", simplified: "内", color: "pink" }, ]; /** diff --git a/src/lib/kanji.ts b/src/lib/kanji.ts index 807102f..746be1c 100644 --- a/src/lib/kanji.ts +++ b/src/lib/kanji.ts @@ -159,7 +159,6 @@ export const GROUPED_VARIANTS: Record< ["習", [null, "習󠄁"]], ["冬", ["冬", "冬󠄀"]], ], - "丹→丹󠄁": [["丹", [null, "丹󠄁"]]], "亡→亡󠄁": [["亡", [null, "亡󠄁"]]], "丷→八": [ ["遂", [null, "遂󠄂"]], @@ -175,4 +174,20 @@ export const GROUPED_VARIANTS: Record< "丶→丩": [["並", ["並", "並︀"]]], "辶→辶󠄀": [["近", [null, "近󠄁"]]], "爫→爪": [["採", [null, "採󠄁"]]], + "月→丹": [ + ["丹", [null, "丹󠄁"]], + ["青", ["靑", "靑"]], + ["精", [null, "精󠄀"]], + ["晴", [null, "晴󠄀"]], + ["睛", [null, "睛󠄀"]], + ], + "𫩏→中": [ + ["告", ["吿", "吿"]], + ["舎", ["舍", "舍"]], + ["周", ["周", "周︀"]], + ], + "人→入": [ + ["全", [null, "全󠄁"]], + ["内", ["內", "內"]], + ], } as const;