kanji-colorize icon indicating copy to clipboard operation
kanji-colorize copied to clipboard

Diagrams for KanjiVG's Variants

Open ukanuk opened this issue 5 years ago • 0 comments

Howdy, I started using this in 2014 via the Anki addon and have gotten loads of use out of it!

I'd like diagrams generated from a kanji variation. Right now my Kanji field is , which generates 0845b.svg. For comparison, I'd also like to generate a diagram according to the variant 0845b-Hyougai.svg.

According to the KanjiVG readme,

Variations of a Kanji are followed by a textual suffix.

To enable this, I propose recognizing not just kanji+kana in the Kanji field, but also filenames from KanjiVG. Using this modification with my example above, I could enter either 葛0845b-Hyougai.svg or 0845b.svg0845b-Hyougai.svg to get both diagrams generated. Or just 0845b-Hyougai.svg to get just the variant generated, in case I want the variant on a separate note.

I can always copy the SVG from KanjiVG directly. But then I wouldn't get me the awesome golden-ratio colorings and custom sizing generated by this addon, which would be a tad sad!

0845b.svg image

0845b-Hyougai.svg image

ukanuk avatar Feb 01 '20 12:02 ukanuk