I just wanted to let you know that I've used the KanjiVG data to
generate stroke order diagrams for the site. Example:
http://jisho.org/kanji/details/%E7%BE%8E
I built a Ruby script to generate the SVG files with guidelines and
frames. I've released it under the same license as KanjiVG:
https://github.com/Kimtaro/ka
Huge thanks for making this data publicly available! Please let me
know if there's anything I can do to help the project.
> I built a Ruby script to generate the SVG files with guidelines and
> frames.
You've switched from Perl to Ruby now?
> I've released it under the same license as KanjiVG:
> https://github.com/Kimtaro/kanjivg2svg
Those look really smart, like a real kanji book. It's a big contrast
with my "random colours" method. Your squared line ends look better
than the rounded ones I used to me.
> The repo also includes the generated SVG files that correspond to the
> images on the site. To make the PNGs I used GraphicConverter (http://
> www.lemkesoft.com/content/188/graphicconverter.html).
People on the usenet group sci.lang.japan were telling me I should use
the SVG images in the browser, but it seemed to cause a lot of
problems even with the more modern browsers. Maybe you came to the
same conclusion?
The image server here:
http://kanji.sljfaq.org/kanjivg/
is just a C program which creates the PNG image in memory and sends it
to the user, without ever storing it as a file on the disk. I did it
that way so that it would be possible to offer any kind of size of
image or thickness of line, as the user required, without clogging up
the disc with millions of files. It also does something a bit similar
to Kim's:
http://kanji.sljfaq.org/kanjivg/memory.cgi?c=99AC&s=1&l=3&n=1&t=multi
which is used here:
http://www.sljfaq.org/afaq/stroke-order.html
By the way, I don't mind if people hotlink the images, like this:
http://budayangeblog.wordpress.com/2010/07/16/belajar-menulis-kanji-jepang/
and I can remove the watermark if any site wants to register with me
(also the copyright notice, as long as the site has a copyright notice
on its page).
>> The image server here:
>>
>> http://kanji.sljfaq.org/kanjivg/
>>
>> is just a C program which creates the PNG image in memory and sends it
>> to the user, without ever storing it as a file on the disk. I did it
>> that way so that it would be possible to offer any kind of size of
>> image or thickness of line, as the user required, without clogging up
>> the disc with millions of files. It also does something a bit similar
>> to Kim's:
>
> Ah, that's an interesting way to do it. Does that allow for caching?
I wasn't able to make it work, perhaps because of the .cgi in the name
of the image server.
I'd be interested to know about specific issues you are encountering with SVG. I have unfortunately little time to spend on KanjiVG at the moment but I am working with SVG a lot right now and I may be able to help. After all that is the reason why I got involved in that project in the first place...
Julien