skishore / makemeahanzi

Free, open-source Chinese character data
https://www.skishore.me/makemeahanzi/
Other
1.89k stars 469 forks source link

Stroke Numbers Upside Down #120

Open Pairtel opened 3 months ago

Pairtel commented 3 months ago

Hi, when I use the code to generate a modified still SVG https://github.com/skishore/makemeahanzi/blob/master/stroke_caps/generateStillSvgs.js the numbers of the strokes appear correct in the preview (and in a browser e.g. edge), but a flipped in any graphic program I use such as Indesign, Photoshop, Illustrator etc. I already read that this could be due to a messed up coordinate system. How I can I fix it? Best regards and thanks in advance for any help, Paul Bildschirmfoto 2024-07-31 um 14 40 20

skishore commented 2 months ago

I'm certainly not familiar with any specific graphic program, but could you try deleting this portion of that script and re-running? On line 66, delete this bit:

style="transform-origin:${startingPoints[i].x}px ${startingPoints[i].y}px; transform:scale(1,-1);