cayennes/kanji-colorize

Always generate kana

Closed this issue · 2 comments

twwn commented

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

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

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