page 7

 

4. Rendering signs with SVG

The symbols of the SignWriting system are usually rendered in the Web as GIF files, obtained by screen capture from the SignWriter program (the sole SignWriting aware program existing up to now !).

Given an SWML representation of a SignWriting file, using vector graphic formats for rendering the file may be much more interesting, due the greater flexibility allowed by such format.

SSS.svg is a reference file that assigns an SVG symbol for each SignWriting symbol, thus allowing the rendering of signs in vector format. Signs may be rendered from SWML files by simply grouping SVG symbols together and rendering them, under scripting control, either at the server or at the client side.

A sample of SVG symbols representing some SignWriting symbols is the following (abbreviated):

  
   <svg width="8" height="14">
      <rect style="stroke:#000000;
          stroke-width:1;
          stroke-opacity:1;
          fill:#000000;
          fill-opacity:0"
          x="7" y="0"
          width="1" height="8" />
      <rect style="stroke:#000000;
          stroke-width:1;
          stroke-opacity:1;
          fill:#000000;
          fill-opacity:0"
          x="0" y="8"
          width="8" height="6" />
   </svg>
   <svg width="8" height="14">
       <rect style="stroke:#000000; .../>
       <rect style="stroke:#000000; .../>
       <rect style="stroke:#000000; .../>
   </svg>
   <svg width="8" height="14">
       ...
   </svg>