View on GitHub

SVGWiz

Wiz your SVG

To apply descriptions to an individual svg, prepare a csv with layer names in the first column and descriptions in the second. If you are using an area for your description text outside of your svg, give it the ID [filename]Desc and the attribute aria-live="assertive". For Example, an input file originally named Fabaceae_A.svg would require a description area with the attributes id="Fabaceae_ADesc" aria-live="assertive".

Named Layers











    Help

    Sample Files

    Download these sample files and run them through the Wiz above to see it in action. Each image has a paired description csv. Once you have loaded both into the Wiz, you'll see an "apply csv" button, which will pair any descriptions from the csv with the appropriate layers. In the layer panel on the left, select the description area layer and hit the "make description area" button. You can now save the finished svg and open it in any browser.

    SVG Guidelines

    Your SVG should have a some base imagery, which does not change, and multiple feature groups. Each feature group must have a unique layer name and only contain text and focus indicator fills.
    Fabaceae vector Background Layers Only
    The non-interactive background of the Fabaceae graphic.
    Fabaceae vector Feature Layers Only
    All interactive elements of the Fabaceae graphic, with the background hidden.
    Fabaceae vector All Layers
    With all layers visible, the focus indicator for the "Flower" group is selected. This rectangle will have a 0% opacity style on it unless any member of it's group is hovered over, keyboard navigated to, or clicked on. This gives the text itself a larger selection area and allows you to link features within a graphic with it's name in a key.

    Preparing a CSV

    CSV stands for Comma Separated Values. The easiest way to produce a CSV is to make a simple table in your favorite spreadsheet software and then export it. In Google Sheets, you will find this option under File > Download. For SVGWiz to automatically pair your written descriptions to the appropriate layers, the layer name must match the appropriate cell in your table. For an individual image run through the wiz above, you would need a 2 column table with layer names in the first column and descriptions in the second, like the one below.
    Fabaceae vector's Layer List
    The layer list of the Fabaceae graphic.
    Pinnate Pea plants typically have pinnately compound leaves.
    A compound leaf is one leaf separated into multiple distinct leaflets, these are clear on woody plants as the rachis will be flexible like the stem of the leaf. Compound leaves can also be distinguished by the placement of their stipules - these will only occur at the attachment point of an entire leaf, not that of a leaflet.
    Pinnate: Arranged symmetrically on opposite sides of a central axis, similar to a feather. A leaf is odd pinnate when it has one terminal leaf at the end, and even-pinnate otherwise.
    Legume Plants in the pea family have pea-like fruit, called legumes.
    Keel The two lower petals of a pea flower, fused at their apex and remaining free at the base, forming a boat-like structure.
    Wing The petals of a pea flower which surround the keel.
    Banner The upper petal of a pea flower- a single petal with two lobes though it looks like two that are fused together.
    Flower The reproductive structure of the plant. Pea flowers are recognizable by their banner, wing, and keel.
    Google Sheets export menu
    How to export a csv from Google Sheets.

    Why is the Layer List Backwards?

    The layers are presented in draw order, which also happens to be tab order for keyboard navigation. This is the opposite of the order you will see them in Illustrator or Inkscape.

    Tool Explanations

    Visible Descriptions vs Screen-Reader Only

    This will not visually alter your svg, but toggles the aria-hidden flag on the description elements. You should only switch this if your intention is to have descriptions for screen-reader users which are not printed on the screen. These descriptions will be printed in the space below the image while you are in the editor.

    Make Description Area

    Select one of your layers from this list and hit this button to convert it to a description area. At this time, the description area must be a named rectangle.

    Make Interactive

    Select one or more of your layers and hit this button to make them keyboard navigable. The layer order as printed on this list will be their tab order.

    Manual Description

    Use this field and the "apply description" button to manually add a description to any selected layers. This can be used to correct an existing description.