Using ImageMagick, it's easy to convert SVG to XPM. The example invocation
would be:
convert -monochrome -size 128x128 <unicode>.svg <unicode>.xpm
It's very fast, so it could be done in a JIT fashion, perhaps caching the
output images in some other directory to avoid redundant work.
I'm experimenting with making the image part of an XPM readable enough to
be useful.

Cheers,
Wojtek

sob., 3 sie 2019 o 07:49 Alexander Burger <a...@software-lab.de> napisał(a):

> Hi Wojtek,
>
> > I've cooked up a tiny code snippet which, together with SVG images from
> the
> > KanjiVG project, allows the user to view the stroke order of a kanji
> > character at cursor.
>
> Nice!
>
> I have not tried, but why did you write 'decimalToBase'? FYI, if it is
> just to
> get hexadecimal strings, you could use the 'hex' function in PicoLisp.
>
>
> > It would be cool to be able to automatically
> > convert the SVGs to ASCII art and perhaps display them natively within
> Vip.
>
> Indeed. One way would be to render the SVGs to some pixmap image, and
> convert
> the resulting bytes into a Vip buffer.
>
> ☺/ A!ex
>
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>

Reply via email to