The Diagrammar: A Framework for Making Images and Graphics Accessible

Previous Page  |  Next Page  |  Table of Contents  |  Diagram Center Home

The Diagrammar is a standard way to structure image description data, including multiple descriptions, annotations, and pointers to alternate file formats. The Diagrammar is implemented in XML which is transformed into formatted HTML using XSLT. More information about The Diagrammar is available on the DIAGRAM Center website.

In this example, The Diagrammar contains multiple image descriptions, a note from the teacher, and a pointer to a tactile graphic.

The code used for this example may look like:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="desc2html.xsl"?>
<d:description xml:id="angles-desc" xml:lang="en" xmlns="http://www.daisy.org/ns/z3998/authoring/" xmlns:d="http://www.daisy.org/ns/z3998/authoring/features/description/" xmlns:xlink="http://www.w3.org/1999/xlink">
    <d:head>
        <meta property="dc:identifier" content="source-or-self-identification?" />
        <meta property="dc:language" content="en-US" />
        <meta property="diagram:purpose">Illustrates the relationships between the surveying crew and the tree.</meta>
        <meta property="diagram:targetAge" content="14-18" />
        <meta property="diagram:targetGrade" content="9-12" />
        <meta property="diagram:descriptionQuality" content="7" />
        <meta property="dc:creator" xml:id="author01">John Doe</meta>
        <meta about="#author01" property="diagram:credentials">Ph.D. in Civil Engineering</meta>
        <meta property="dc:rights" content="???" />
        <meta property="dc:accessRights">This resource is for use by academic institutions only.</meta>
        <meta rel="diagram:currentVersion" resource="http://example.com/geometry/k12/angles/current"/>
        <meta rel="diagram:thisVersion" resource="http://example.com/geometry/k12/angles/1.2/description.xml"/>
        <meta rel="diagram:previousVersion" resource="http://example.com/geometry/k12/angles/1.1/description.xml"/>
        <meta rel="diagram:alternateVersion" xml:id="alternateVersion01" resource="http://example.com/math/k12/angles/current">
            <meta property="dc:description">This description provides the mathematical explanation for calculating angles.</meta>
        </meta>
        <meta rel="diagram:repository" resource="http://example.com/diagram/repository/">
            <meta property="diagram:queryConcept" content="angles"/>
            <meta property="diagram:queryConcept" content="calculating"/>
            <meta property="diagram:queryConcept" content="triangles"/>
        </meta>
    </d:head>
    <d:body>
        <d:summary xml:id="summary">
            <p>The image depicts two surveyors measuring the angles between themselves and a tree.</p>
        </d:summary>
        <d:longdesc xml:id="longdesc01">
            <p>Two surveyors, A and P, stand some distance apart on the south bank of a river, looking at a tree, T, that is on the north bank of the river. Points A, P, and T form a triangle. At points A and P, there are two parallel sight lines pointing north and forming angles outside of the triangle. At point P, angle TPA is 53 degrees. The adjacent angle between PT and the northern sight line is 37 degrees. At point A, angle TAP is not labeled, and the adjacent angle formed between AT and that northern sight line is 32 degrees. </p>
        </d:longdesc>
        <annotation ref="longdesc01" role="diagram:comment" by="teacher">
            <p>The distance between the points is not needed.</p>
        </annotation>
        <d:simplifiedLanguageDescription xml:id="simpledesc01">
            <p>T, A, and P are the three points on a triangle. Angle TPA is 53 degrees with an adjacent angle of 37 degrees. The angle adjacent to angle TAP is 32 degrees.</p>
        </d:simplifiedLanguageDescription>
        <d:tactile xml:id="tactile01">
            <object src="http://example.com/tactiles/repository/angles.svg" srctype="image/svg+xml"/>
            <d:tour>
                <p>In the upper left corner of the tactile…</p>
            </d:tour>
        </d:tactile>
        <d:simplifiedImage xml:id="alt-image">
            <object src="http://example.com/…/angles-lv.svg" srctype="image/svg+xml"/>
            <d:tour>
                <p>Moving front the top left corner of the image…</p>
            </d:tour>
        </d:simplifiedImage>
    </d:body>
</d:description>

The Content Model is referenced in an EPUB 3, DAISY, or HTML5 file using standard HTML anchor links. The code to reference the sample description file above (surveymap.xml) may look like:

<img id="survey" src="images/survey.jpg" alt="survey map with angles"><a href="http://www.example.com/surveymap.xml">Description</a>
 

Previous Page  |  Next Page  |  Table of Contents  |  Diagram Center Home

Ideas that work.The DIAGRAM Center is a Benetech initiative supported by the U.S. Department of Education, Office of Special Education Programs (Cooperative Agreement #H327B100001). Opinions expressed herein are those of the authors and do not necessarily represent the position of the U.S. Department of Education.

HOME | BACK TO TOP

  Copyright 2019 I Benetech

Log in with your credentials

Forgot your details?