Annotation of Amaya/amaya/SVGnames.h, revision 1.3

1.1       vatton      1: 
                      2: #ifdef _SVG
                      3: /* mapping table of SVG elements */
                      4: #include "SVG.h"
                      5: static ElemMapping    SVGElemMappingTable[] =
                      6: {
                      7:    /* This table MUST be in alphabetical order */
                      8:    {"XMLPI", SPACE, SVG_EL_XMLPI, L_OtherValue, FALSE},
                      9:    {"XMLPI_line", SPACE, SVG_EL_XMLPI_line, L_OtherValue, FALSE},
                     10:    {"XMLcomment", SPACE, SVG_EL_XMLcomment, L_OtherValue, FALSE},
                     11:    {"XMLcomment_line", SPACE, SVG_EL_XMLcomment_line, L_OtherValue, FALSE},
                     12:    {"a", SPACE, SVG_EL_a, L_OtherValue, FALSE},
                     13:    {"c", SPACE, SVG_EL_TEXT_UNIT, L_OtherValue, TRUE},
                     14:    {"circle", SPACE, SVG_EL_circle, L_OtherValue, FALSE},
                     15:    {"defs", SPACE, SVG_EL_defs, L_OtherValue, FALSE},
                     16:    {"desc", SPACE, SVG_EL_desc, L_OtherValue, FALSE},
                     17:    {"ellipse", SPACE, SVG_EL_ellipse, L_OtherValue, FALSE},
                     18:    {"foreignObject", SPACE, SVG_EL_foreignObject, L_OtherValue, FALSE},
                     19:    {"g", SPACE, SVG_EL_g, L_OtherValue, FALSE},
                     20:    {"image", SPACE, SVG_EL_image, L_OtherValue, FALSE},
                     21:    {"line", SPACE, SVG_EL_line_, L_OtherValue, FALSE},
                     22:    {"metadata", SPACE, SVG_EL_metadata, L_OtherValue, FALSE},
                     23:    {"path", SPACE, SVG_EL_path, L_OtherValue, FALSE},
                     24:    {"polygon", SPACE, SVG_EL_polygon, L_OtherValue, FALSE},
                     25:    {"polyline", SPACE, SVG_EL_polyline, L_OtherValue, FALSE},
                     26:    {"rect", SPACE, SVG_EL_rect, L_OtherValue, FALSE},
                     27:    {"script", SPACE, SVG_EL_script, L_OtherValue, FALSE},
                     28:    {"style", SPACE, SVG_EL_style__, L_OtherValue, FALSE},
                     29:    {"svg", SPACE, SVG_EL_SVG, L_OtherValue, FALSE},
1.3     ! cvs        30:    {"switch", SPACE, SVG_EL_switch, L_OtherValue, FALSE},
1.1       vatton     31:    {"symbol", SPACE, SVG_EL_symbol_, L_OtherValue, FALSE},
                     32:    {"text", SPACE, SVG_EL_text_, L_OtherValue, FALSE},
                     33:    {"title", SPACE, SVG_EL_title, L_OtherValue, FALSE},
                     34:    {"tspan", SPACE, SVG_EL_tspan, L_OtherValue, FALSE},
                     35:    {"use", SPACE, SVG_EL_use_, L_OtherValue, FALSE},
                     36:    {"", SPACE, 0, L_OtherValue, FALSE}         /* Last entry. Mandatory */
                     37: };
                     38: 
                     39: static AttributeMapping SVGAttributeMappingTable[] =
                     40: {
                     41:    /* The first entry MUST be unknown_attr */
                     42:    /* The rest of this table MUST be in alphabetical order */
1.2       cvs        43:    {"unknown_attr", "", 'A', SVG_ATTR_Unknown_attribute, L_OtherValue},
1.1       vatton     44: 
                     45:    {"class", "", 'A', SVG_ATTR_class, L_OtherValue},
                     46:    {"cx", "", 'A', SVG_ATTR_cx, L_OtherValue},
                     47:    {"cy", "", 'A', SVG_ATTR_cy, L_OtherValue},
                     48:    {"d", "", 'A', SVG_ATTR_d, L_OtherValue},
                     49:    {"dx", "", 'A', SVG_ATTR_dx, L_OtherValue},
                     50:    {"dy", "", 'A', SVG_ATTR_dy, L_OtherValue},
                     51:    {"externalResourcesRequired", "", 'A', SVG_ATTR_externalResourcesRequired, L_OtherValue},
                     52:    {"fill", "", 'A', SVG_ATTR_fill, L_OtherValue},
                     53:    {"height", "", 'A', SVG_ATTR_height_, L_OtherValue},
                     54:    {"id", "", 'A', SVG_ATTR_id, L_OtherValue},
                     55:    {"media", "", 'A', SVG_ATTR_media, L_OtherValue},
                     56:    {"pathLength", "", 'A', SVG_ATTR_pathLength, L_OtherValue},
                     57:    {"points", "", 'A', SVG_ATTR_points, L_OtherValue},
                     58:    {"preserveAspectRatio", "", 'A', SVG_ATTR_preserveAspectRatio, L_OtherValue},
                     59:    {"r", "", 'A', SVG_ATTR_r, L_OtherValue},
1.3     ! cvs        60:    {"requiredExtensions", "", 'A', SVG_ATTR_requiredExtensions, L_OtherValue},
        !            61:    {"requiredFeatures", "", 'A', SVG_ATTR_requiredFeatures, L_OtherValue},
1.1       vatton     62:    {"rx", "", 'A', SVG_ATTR_rx, L_OtherValue},
                     63:    {"ry", "", 'A', SVG_ATTR_ry, L_OtherValue},
                     64:    {"stroke", "", 'A', SVG_ATTR_stroke, L_OtherValue},
                     65:    {"stroke-width", "", 'A', SVG_ATTR_stroke_width, L_OtherValue},
                     66:    {"style", "", 'A', SVG_ATTR_style_, L_OtherValue},
1.3     ! cvs        67:    {"systemLanguage", "", 'A', SVG_ATTR_systemLanguage, L_OtherValue},
1.1       vatton     68:    {"target", "", 'A', SVG_ATTR_target_, L_OtherValue},
                     69:    {"title", "", 'A', SVG_ATTR_title_, L_OtherValue},
                     70:    {"transform", "", 'A', SVG_ATTR_transform, L_OtherValue},
                     71:    {"type", "", 'A', SVG_ATTR_type, L_OtherValue},
                     72:    {"viewBox", "", 'A', SVG_ATTR_viewBox, L_OtherValue},
                     73:    {"width", "", 'A', SVG_ATTR_width_, L_OtherValue},
                     74:    {"x", "", 'A', SVG_ATTR_x, L_OtherValue},
                     75:    {"x1", "", 'A', SVG_ATTR_x1, L_OtherValue},
                     76:    {"x2", "", 'A', SVG_ATTR_x2, L_OtherValue},
                     77:    {"xlink:href", "", 'A', SVG_ATTR_xlink_href, L_OtherValue},
                     78:    {"xml:space", "", 'A', SVG_ATTR_xml_space, L_OtherValue},
                     79:    {"y", "", 'A', SVG_ATTR_y, L_OtherValue},
                     80:    {"y1", "", 'A', SVG_ATTR_y1, L_OtherValue},
                     81:    {"y2", "", 'A', SVG_ATTR_y2, L_OtherValue},
                     82: 
                     83:    {"zzghost", "", 'A', SVG_ATTR_Ghost_restruct, L_OtherValue},
                     84:    {"", "", EOS, 0, L_OtherValue}        /* Last entry. Mandatory */
                     85: };
                     86: #else /* _SVG */
                     87: /* there is no mapping table of SVG elements */
                     88: 
                     89: static ElemMapping *SVGElemMappingTable = NULL;
                     90: static AttributeMapping* SVGAttributeMappingTable = NULL;
                     91: #endif /* _SVG */

Webmaster