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

1.1       vatton      1: 
                      2: #ifdef _SVG
                      3: /* mapping table of SVG elements */
                      4: #include "SVG.h"
                      5: static ElemMapping    SVGElemMappingTable[] =
                      6: {
1.12      cvs         7:    /* This table MUST be in alphabetical order  and in lower case */
1.1       vatton      8:    {"a", SPACE, SVG_EL_a, L_OtherValue, FALSE},
                      9:    {"c", SPACE, SVG_EL_TEXT_UNIT, L_OtherValue, TRUE},
1.13    ! cvs        10:    {"cdata", SPACE, SVG_EL_CDATA, L_OtherValue, FALSE},
        !            11:    {"cdata_line", SPACE, SVG_EL_CDATA_line, L_OtherValue, FALSE},
1.1       vatton     12:    {"circle", SPACE, SVG_EL_circle, L_OtherValue, FALSE},
                     13:    {"defs", SPACE, SVG_EL_defs, L_OtherValue, FALSE},
                     14:    {"desc", SPACE, SVG_EL_desc, L_OtherValue, FALSE},
1.13    ! cvs        15:    {"doctype", SPACE, SVG_EL_DOCTYPE, L_OtherValue, FALSE},
        !            16:    {"doctype_line", SPACE, SVG_EL_DOCTYPE_line, L_OtherValue, FALSE},
1.1       vatton     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},
1.9       vatton     27:    {"script", SPACE, SVG_EL_script_, L_OtherValue, FALSE},
1.1       vatton     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},
1.13    ! cvs        36:    {"xmlcomment", SPACE, SVG_EL_XMLcomment, L_OtherValue, FALSE},
        !            37:    {"xmlcomment_line", SPACE, SVG_EL_XMLcomment_line, L_OtherValue, FALSE},
        !            38:    {"xmlpi", SPACE, SVG_EL_XMLPI, L_OtherValue, FALSE},
        !            39:    {"xmlpi_line", SPACE, SVG_EL_XMLPI_line, L_OtherValue, FALSE},
1.1       vatton     40:    {"", SPACE, 0, L_OtherValue, FALSE}         /* Last entry. Mandatory */
                     41: };
                     42: 
                     43: static AttributeMapping SVGAttributeMappingTable[] =
                     44: {
                     45:    /* The first entry MUST be unknown_attr */
                     46:    /* The rest of this table MUST be in alphabetical order */
1.2       cvs        47:    {"unknown_attr", "", 'A', SVG_ATTR_Unknown_attribute, L_OtherValue},
1.1       vatton     48: 
                     49:    {"class", "", 'A', SVG_ATTR_class, L_OtherValue},
                     50:    {"cx", "", 'A', SVG_ATTR_cx, L_OtherValue},
                     51:    {"cy", "", 'A', SVG_ATTR_cy, L_OtherValue},
                     52:    {"d", "", 'A', SVG_ATTR_d, L_OtherValue},
1.11      quint      53:    {"direction", "", 'A', SVG_ATTR_direction_, L_OtherValue},
1.1       vatton     54:    {"dx", "", 'A', SVG_ATTR_dx, L_OtherValue},
                     55:    {"dy", "", 'A', SVG_ATTR_dy, L_OtherValue},
                     56:    {"externalResourcesRequired", "", 'A', SVG_ATTR_externalResourcesRequired, L_OtherValue},
                     57:    {"fill", "", 'A', SVG_ATTR_fill, L_OtherValue},
1.4       cvs        58:    {"font-family", "", 'A', SVG_ATTR_font_family, L_OtherValue},
                     59:    {"font-size", "", 'A', SVG_ATTR_font_size, L_OtherValue},
                     60:    {"font-style", "", 'A', SVG_ATTR_font_style, L_OtherValue},
                     61:    {"font-variant", "", 'A', SVG_ATTR_font_variant, L_OtherValue},
                     62:    {"font-weight", "", 'A', SVG_ATTR_font_weight, L_OtherValue},
1.1       vatton     63:    {"height", "", 'A', SVG_ATTR_height_, L_OtherValue},
                     64:    {"id", "", 'A', SVG_ATTR_id, L_OtherValue},
1.6       cvs        65:    {"lang", "", 'A', SVG_ATTR_Language, L_OtherValue},
1.1       vatton     66:    {"media", "", 'A', SVG_ATTR_media, L_OtherValue},
                     67:    {"pathLength", "", 'A', SVG_ATTR_pathLength, L_OtherValue},
                     68:    {"points", "", 'A', SVG_ATTR_points, L_OtherValue},
                     69:    {"preserveAspectRatio", "", 'A', SVG_ATTR_preserveAspectRatio, L_OtherValue},
                     70:    {"r", "", 'A', SVG_ATTR_r, L_OtherValue},
1.3       cvs        71:    {"requiredExtensions", "", 'A', SVG_ATTR_requiredExtensions, L_OtherValue},
                     72:    {"requiredFeatures", "", 'A', SVG_ATTR_requiredFeatures, L_OtherValue},
1.1       vatton     73:    {"rx", "", 'A', SVG_ATTR_rx, L_OtherValue},
                     74:    {"ry", "", 'A', SVG_ATTR_ry, L_OtherValue},
                     75:    {"stroke", "", 'A', SVG_ATTR_stroke, L_OtherValue},
                     76:    {"stroke-width", "", 'A', SVG_ATTR_stroke_width, L_OtherValue},
                     77:    {"style", "", 'A', SVG_ATTR_style_, L_OtherValue},
1.3       cvs        78:    {"systemLanguage", "", 'A', SVG_ATTR_systemLanguage, L_OtherValue},
1.1       vatton     79:    {"target", "", 'A', SVG_ATTR_target_, L_OtherValue},
1.5       cvs        80:    {"text-decoration", "", 'A', SVG_ATTR_text_decoration, L_OtherValue},
1.1       vatton     81:    {"title", "", 'A', SVG_ATTR_title_, L_OtherValue},
                     82:    {"transform", "", 'A', SVG_ATTR_transform, L_OtherValue},
                     83:    {"type", "", 'A', SVG_ATTR_type, L_OtherValue},
1.11      quint      84:    {"unicode-bidi", "", 'A', SVG_ATTR_unicode_bidi, L_OtherValue},
1.1       vatton     85:    {"viewBox", "", 'A', SVG_ATTR_viewBox, L_OtherValue},
                     86:    {"width", "", 'A', SVG_ATTR_width_, L_OtherValue},
                     87:    {"x", "", 'A', SVG_ATTR_x, L_OtherValue},
                     88:    {"x1", "", 'A', SVG_ATTR_x1, L_OtherValue},
                     89:    {"x2", "", 'A', SVG_ATTR_x2, L_OtherValue},
                     90:    {"xlink:href", "", 'A', SVG_ATTR_xlink_href, L_OtherValue},
                     91:    {"xml:space", "", 'A', SVG_ATTR_xml_space, L_OtherValue},
                     92:    {"y", "", 'A', SVG_ATTR_y, L_OtherValue},
                     93:    {"y1", "", 'A', SVG_ATTR_y1, L_OtherValue},
                     94:    {"y2", "", 'A', SVG_ATTR_y2, L_OtherValue},
                     95: 
                     96:    {"zzghost", "", 'A', SVG_ATTR_Ghost_restruct, L_OtherValue},
                     97:    {"", "", EOS, 0, L_OtherValue}        /* Last entry. Mandatory */
                     98: };
                     99: #else /* _SVG */
                    100: /* there is no mapping table of SVG elements */
                    101: 
                    102: static ElemMapping *SVGElemMappingTable = NULL;
                    103: static AttributeMapping* SVGAttributeMappingTable = NULL;
                    104: #endif /* _SVG */

Webmaster