cayennes / kanji-colorize

a script and anki addon to turn KanjiVG data into colored stroke order diagrams
121 stars 25 forks source link

Always generate kana #40

Closed twwn closed 8 years ago

twwn commented 8 years ago

Awesome tool. I was wondering if it's possible to have in always generate any kana present, rather than only when isolated. Because with the current behavior, Anki cards which use them for Okurigana are broken.

twwn commented 8 years ago

Ah, I see that it's just a line in characters_to_colorize. Now:

return [c for c in s if (ord(c) >= 19968 and ord(c) <= 40959) or (ord(c) >= 12352 and ord(c) <= 12543)]

I upped the limit for CJK Unified Ideographs according to the wiki page.

Would be kinda neat now to have options only applying to Kana: to not add stroke ordering, and/or not to colorize it beyond the first color.

twwn commented 8 years ago

Two more characters currently not observed are 々 (12293) and possibly 〇 (12295).