Kanji description and vectorial data in correct stroke order
This is the KanjiVG source repository. It is rather raw, so you probably want to process it before using it.
KanjiVG is copyright Ulrich Apel and released under the Creative Commons Attribution-Share Aline 3.0 licence:
See the COPYING file for more details.
This repository is made of two directories: SVG and XML, as well as a set of Python scripts.
The SVG and XML directories contain the structural and graphical description of each kanji, respectively. Each Kanji is described by a file in both directories, named after its unicode encoding in hexadecimal. Variations of a Kanji are followed by a textual suffix.
The XML file describes the different components and strokes that make the kanji in a structured way. In addition, other information such as radicals and phonetic keys are also given as attributes.
The SVG file guidelines for the graphical representation of various properties of the Kanji. It is visible as is, but is more interesting when its various layers are taken differently. Layers are accessible through an attribute:
There are other layers but they are mostly here as helpers to allow easy editing within your favorite SVG editor.
The official KanjiVG release is a single XML file that merges the information contained within the two sets of files. Its syntax is close and compatible with the individual XML files, but stroke paths and stroke number hints are merged with every path.
The Python scripts are here to maintain the data and perform simple processing. - The xmlhandler.py and kanjivg.py files contain a loader for the KanjiVG release file and different in-memory representations.