Open hugolpz opened 6 years ago
I think the tricky part is finding a location to write each number that's not overlapped by another stroke and that's clear which stroke is being labeled. The first point in medians for each stroke from the Make me a Hanzi data is where the stroke starts, so that part isn't hard. Do you just need Hanzi Writer to expose an API method that will let you know info about the strokes, like starting position? If so that's not hard. If Hanzi Writer needs to find ideal locations for each number and render the numbers that would be trickier I think, but should be possible.
I was thinking of something more barbarian than the example above. Like a small white number within the first 'inch' of each stroke at first. Otherwise it needs a whole handwork project, or intelligent force repulsion.
Also, I just remembered that KanjiVG do record a [x,y] location for such numbered information.
But it then become a longer shoot, and with conflicting license (I guess).
A common practice is to do numbering upon stroke order images or animations (screenshot of ongoing animation below).