Skip to content

Commit

Permalink
feat: add and organize more variants
Browse files Browse the repository at this point in the history
  • Loading branch information
mkpoli committed Oct 18, 2024
1 parent 861b7ba commit f5536ff
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/VariantKanji.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ let shown = $state(false);
const VARIANTS: { traditional: string; simplified: string; color: Color }[] = [
{ traditional: "", simplified: "", color: "blue" },
{ traditional: "", simplified: "", color: "pink" },
];
/**
Expand Down
17 changes: 16 additions & 1 deletion src/lib/kanji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ export const GROUPED_VARIANTS: Record<
["習", [null, "習󠄁"]],
["冬", ["冬", "冬󠄀"]],
],
"丹→丹󠄁": [["丹", [null, "丹󠄁"]]],
"亡→亡󠄁": [["亡", [null, "亡󠄁"]]],
"丷→八": [
["遂", [null, "遂󠄂"]],
Expand All @@ -175,4 +174,20 @@ export const GROUPED_VARIANTS: Record<
"丶→丩": [["並", ["並", "並︀"]]],
"辶→辶󠄀": [["近", [null, "近󠄁"]]],
"爫→爪": [["採", [null, "採󠄁"]]],
"月→丹": [
["丹", [null, "丹󠄁"]],
["青", ["靑", "靑"]],
["精", [null, "精󠄀"]],
["晴", [null, "晴󠄀"]],
["睛", [null, "睛󠄀"]],
],
"𫩏→中": [
["告", ["吿", "吿"]],
["舎", ["舍", "舍"]],
["周", ["周", "周︀"]],
],
"人→入": [
["全", [null, "全󠄁"]],
["内", ["內", "內"]],
],
} as const;

0 comments on commit f5536ff

Please sign in to comment.