Hi all readers,
I have worked a little on svg glyphs.
Now I have implemented some really basic subset of svg tags.
Nevertheless I think that basic framework, that can be extended is already in place meaning that:
- svg file (which is pure xml) is opened and parsed into DOM model
- glyphs borders are calculated
- rectangles and/or lines are displayed, rest is omitted
- doubleclick displays integrated xml editor
Attached are some screen shots, including drawing glyph in svg editor (Inkscape). I hope that it gives some picture of current state.
During the work I found that:
- there is a "svg jungle", while many editors saves svg in enhanced formats (Inkscape, Sodipodi ..). Others like Corel Draw 11 seems to convert svg incorrectly (I did not studied it deeply, so I do not know if the problem was on side of Corel or SVG editor I have used)
- generaly SVG support in vector editors, inet browsers is far from ideal, but it seems to gain ground.
But I have also found that svg can be format of extended graph, while all currently implemented objects (rectangle, ellipse, polygon, link ...) can be described in svg syntax, even if we will strictly use w3c.org specs without enhancements.
This will enable to save graph and use it for example on the web without any conversion (supposing that mainstream browsers will became "svg enabled") or imported into other vector editors.
And finally ...
is out of there volunteer that will help to implement other svg objects (like circles, Bezier curves) and features like gradient fill? There are interesting problems, that will train your brain.
Dear new volunteer country and humankind needs you.
Pavel