Parts of SVG understood by JSesh
JSesh does not read all of the SVG format: it only needs the outline of the sign. If you draw signs with Inkscape or another program, follow these rules. They apply both to signs stored in a document and to signs of your sign folder.
What is drawn
- Only paths and polygons are drawn. Rectangles, circles, ellipses, lines, texts, images and clones (
use) are ignored: convert them to paths (in Inkscape: Path > Object to Path).
- Parts filled in black are added to the sign.
- Parts filled with another colour (white, for instance) are removed from the parts below them: this is how holes are drawn.
- Parts with no fill (
fill:none) are not filled.
- A stroke adds the outline of the part, with its width. For best results, convert strokes to paths (Path > Stroke to Path).
What is ignored
- Transformations (rotations, scalings, moves recorded as
transform): the drawing may then appear in the wrong place or size. In Inkscape, make sure transformations are applied to the paths themselves (in the preferences, Behaviour > Transforms > Store transformation: Optimized), or ungroup and convert everything to paths.
- Patterns and clipping paths.
Size and position
- The scale of JSesh's signs is 1800 units for a full quadrat. Drawings at the older scale of 18 units are also accepted.
- The position of the drawing on the page does not matter: JSesh moves it to the origin.
Ligature zones
Rectangles whose id is zone1 or zone2 are not drawn: they define the ligature zones of the sign (see Preparing a sign for ligatures).