Skip to content
Snippets Groups Projects
Commit 2e163ca8 authored by Philipp Stadler's avatar Philipp Stadler
Browse files

fix: traditional grass radical for 敬

parent 5edfa867
No related branches found
No related tags found
1 merge request!18feat: add traditional variant for 貘
Pipeline #14252 passed
...@@ -91,6 +91,13 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void { ...@@ -91,6 +91,13 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void {
), ),
strokeTypes: grassStrokes strokeTypes: grassStrokes
} }
const fourGrassTopLeftLarger: TradStrokePatchReplacement = {
...animDataSlice(
loadHanziWriterDataWithoutOverridesSync(''),
0, 4
),
strokeTypes: grassStrokes
}
const fourGrassTopRightLefter: TradStrokePatchReplacement = { const fourGrassTopRightLefter: TradStrokePatchReplacement = {
...animDataSlice( ...animDataSlice(
loadHanziWriterDataWithoutOverridesSync(''), 4, 8 loadHanziWriterDataWithoutOverridesSync(''), 4, 8
...@@ -123,7 +130,8 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void { ...@@ -123,7 +130,8 @@ function addGrassPatches (acc: Map<string, TradStrokePatch>): void {
{ hanzi: '', replacement: fourGrassTopLeft }, { hanzi: '', replacement: fourGrassTopLeft },
{ hanzi: '', replacement: animDataTranslate(fourStrokeGrass, -20, 20) }, { hanzi: '', replacement: animDataTranslate(fourStrokeGrass, -20, 20) },
{ hanzi: '', replacement: fourStrokeGrassHigher }, { hanzi: '', replacement: fourStrokeGrassHigher },
{ hanzi: '', replacement: fourStrokeGrass } { hanzi: '', replacement: fourStrokeGrass },
{ hanzi: '', replacement: animDataTranslate(fourGrassTopLeftLarger, -50, -50) }
] ]
threeGrassOnTop.reduce( threeGrassOnTop.reduce(
(acc, { hanzi, replacement }) => { (acc, { hanzi, replacement }) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment