KanjiVG / kanjivg.github.com

Web pages for KanjiVG
https://kanjivg.tagaini.net
33 stars 6 forks source link

Stroke numbers are located poorly #9

Closed benkasminbullock closed 1 year ago

benkasminbullock commented 1 year ago

Compared to the pure-SVG viewer, viewing the kanji with https://kanjivg.tagaini.net/viewer.html it is clear that the numbers are located incorrectly, too far left and down. After a few tries with the Raphael library, this seems to be related to inherent bugs in that system which don't allow it to work well with the "transform" attribute used to position the text of the numbers in KanjiVG.

I suggest either finding some way to make Raphael put the numbers in KanjiVG's suggested positions, or better scrapping the Raphael library. Raphael doesn't seem to have been significantly updated since 2014 and may be past its sell-by date, and it's possible to display the SVG without Raphael.

benkasminbullock commented 1 year ago

I've now updated the viewer to use the non-raphael version which uses the SVG itself.