This page is still under construction an@d describes the KanjiVG's new format
The KanjiVG is designed as an extension of SVG. This means that any KanjiVG file is 100% SVG-compliant and can be opened by one's favorite SVG viewer/editor to be seen as-is.
However, the SVG file is organized in such a way that it reflects the structure and stroke order of the kanji. Furthermore, several additional attributes are added in order to provide extra information about the kanji's structure.
Kanji are often made of several components, and KanjiVG uses SVG groups to reflect this organization. For instance, 頑 can be seen as a combination of 元 on its left and 頁 on its right. SVG groups provide an elegant way to bind strokes to a given group.
There are two root SVG groups. The StrokePaths group is a set of standard SVG paths that gives the strokes of the kanji in the right order, and describes the structure of the kanji as explained above with extra attributes. The StrokeNumbers group is an optional group that gives a convenient position for stroke-order numbers, useful for displaying in printed material for instance. The rest of this page explains the additional SVG attributes used in StrokePaths that describe the kanji structure.
All these attributes are placed under the kvg namespace.
It can therefore be guessed that the kanji 仮 will be defined by two groups: the left one will have 亻 for element attribute, and 人 for original attribute, whereas the right one will have 反 for element and no original attribute.
KanjiVG is designed to be easily parsed, and uses XML to achieve this. The properties and shape of every kanji is hierarchically described by XML attributes. The shape of each stroke is described as a SVG path on an area of size 109x109.