Skip to content
Snippets Groups Projects

feat: add traditional variant for 貘

Merged Philipp Pospischil requested to merge fix/chardata into main
1 file
+ 11
2
Compare changes
  • Side-by-side
  • Inline
@@ -91,6 +91,13 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void {
),
strokeTypes: grassStrokes
}
const fourGrassTopLeftLarger: TradStrokePatchReplacement = {
...animDataSlice(
loadHanziWriterDataWithoutOverridesSync(''),
0, 4
),
strokeTypes: grassStrokes
}
const fourGrassTopRightLefter: TradStrokePatchReplacement = {
...animDataSlice(
loadHanziWriterDataWithoutOverridesSync(''), 4, 8
@@ -123,7 +130,8 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void {
{ hanzi: '', replacement: fourGrassTopLeft },
{ hanzi: '', replacement: animDataTranslate(fourStrokeGrass, -20, 20) },
{ hanzi: '', replacement: fourStrokeGrassHigher },
{ hanzi: '', replacement: fourStrokeGrass }
{ hanzi: '', replacement: fourStrokeGrass },
{ hanzi: '', replacement: animDataTranslate(fourGrassTopLeftLarger, -50, -50) }
]
threeGrassOnTop.reduce(
(acc, { hanzi, replacement }) => {
@@ -210,7 +218,8 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void {
const withThreeNobodyRight = [
{ hanzi: '', from: 3 },
{ hanzi: '', from: 4 },
{ hanzi: '', from: 4 }
{ hanzi: '', from: 4 },
{ hanzi: '', from: 7 }
]
const fourNobodyRight: TradStrokePatchReplacement = {
...animDataSlice(
Loading