// Copyright 2018 Evgeniy Reizner
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

// This file is autogenerated. Do not edit it!

use std::fmt;

/// List of all SVG attributes.
#[derive(Copy,Clone,Eq,PartialEq,Ord,PartialOrd,Hash)]
#[allow(missing_docs)]
pub enum AttributeId {
    AccentHeight,
    Accumulate,
    Actuate,
    Additive,
    AlignmentBaseline,
    Alphabetic,
    Amplitude,
    ArabicForm,
    Arcrole,
    Ascent,
    AttributeName,
    AttributeType,
    Azimuth,
    Base,
    BaseFrequency,
    BaselineShift,
    BaseProfile,
    Bbox,
    Begin,
    Bias,
    By,
    CalcMode,
    CapHeight,
    Class,
    Clip,
    ClipPath,
    ClipRule,
    ClipPathUnits,
    Color,
    ColorInterpolation,
    ColorInterpolationFilters,
    ColorProfile,
    ColorRendering,
    ContentScriptType,
    ContentStyleType,
    Cursor,
    Cx,
    Cy,
    D,
    Descent,
    DiffuseConstant,
    Direction,
    Display,
    Divisor,
    DominantBaseline,
    Dur,
    Dx,
    Dy,
    EdgeMode,
    Elevation,
    EnableBackground,
    End,
    Exponent,
    ExternalResourcesRequired,
    Fill,
    FillOpacity,
    FillRule,
    Filter,
    FilterRes,
    FilterUnits,
    FloodColor,
    FloodOpacity,
    Font,
    FontFamily,
    FontSize,
    FontSizeAdjust,
    FontStretch,
    FontStyle,
    FontVariant,
    FontWeight,
    Format,
    From,
    Fx,
    Fy,
    G1,
    G2,
    GlyphName,
    GlyphOrientationHorizontal,
    GlyphOrientationVertical,
    GlyphRef,
    GradientTransform,
    GradientUnits,
    Hanging,
    Height,
    HorizAdvX,
    HorizOriginX,
    HorizOriginY,
    Href,
    Id,
    Ideographic,
    ImageRendering,
    In,
    In2,
    Intercept,
    K,
    K1,
    K2,
    K3,
    K4,
    KernelMatrix,
    KernelUnitLength,
    Kerning,
    KeyPoints,
    KeySplines,
    KeyTimes,
    Lang,
    LengthAdjust,
    LetterSpacing,
    LightingColor,
    LimitingConeAngle,
    LineHeight,
    Local,
    Marker,
    MarkerEnd,
    MarkerMid,
    MarkerStart,
    MarkerHeight,
    MarkerUnits,
    MarkerWidth,
    Mask,
    MaskContentUnits,
    MaskUnits,
    Mathematical,
    Max,
    Media,
    Method,
    Min,
    Mode,
    Name,
    NumOctaves,
    Offset,
    Onabort,
    Onactivate,
    Onbegin,
    Onclick,
    Onend,
    Onerror,
    Onfocusin,
    Onfocusout,
    Onload,
    Onmousedown,
    Onmousemove,
    Onmouseout,
    Onmouseover,
    Onmouseup,
    Onrepeat,
    Onresize,
    Onscroll,
    Onunload,
    Onzoom,
    Opacity,
    Operator,
    Order,
    Orient,
    Orientation,
    Origin,
    Overflow,
    OverlinePosition,
    OverlineThickness,
    Panose1,
    Path,
    PathLength,
    PatternContentUnits,
    PatternTransform,
    PatternUnits,
    PointerEvents,
    Points,
    PointsAtX,
    PointsAtY,
    PointsAtZ,
    PreserveAlpha,
    PreserveAspectRatio,
    PrimitiveUnits,
    R,
    Radius,
    RefX,
    RefY,
    RenderingIntent,
    RepeatCount,
    RepeatDur,
    RequiredExtensions,
    RequiredFeatures,
    Restart,
    Result,
    Role,
    Rotate,
    Rx,
    Ry,
    Scale,
    Seed,
    ShapeRendering,
    Show,
    Slope,
    Space,
    Spacing,
    SpecularConstant,
    SpecularExponent,
    SpreadMethod,
    StartOffset,
    StdDeviation,
    Stemh,
    Stemv,
    StitchTiles,
    StopColor,
    StopOpacity,
    StrikethroughPosition,
    StrikethroughThickness,
    String,
    Stroke,
    StrokeDasharray,
    StrokeDashoffset,
    StrokeLinecap,
    StrokeLinejoin,
    StrokeMiterlimit,
    StrokeOpacity,
    StrokeWidth,
    Style,
    SurfaceScale,
    SystemLanguage,
    TableValues,
    Target,
    TargetX,
    TargetY,
    TextAnchor,
    TextDecoration,
    TextRendering,
    TextLength,
    Title,
    To,
    Transform,
    Type,
    U1,
    U2,
    UnderlinePosition,
    UnderlineThickness,
    Unicode,
    UnicodeBidi,
    UnicodeRange,
    UnitsPerEm,
    VAlphabetic,
    VHanging,
    VIdeographic,
    VMathematical,
    Values,
    Version,
    VertAdvY,
    VertOriginX,
    VertOriginY,
    ViewBox,
    ViewTarget,
    Visibility,
    Width,
    Widths,
    WordSpacing,
    WritingMode,
    X,
    XHeight,
    X1,
    X2,
    XChannelSelector,
    Xlink,
    Xmlns,
    Y,
    Y1,
    Y2,
    YChannelSelector,
    Z,
    ZoomAndPan
}

static ATTRIBUTES: ::phf::Map<&'static str, AttributeId> = ::phf::Map {
    key: 1897749892740154578,
    disps: ::phf::Slice::Static(&[
        (0, 71),
        (0, 2),
        (0, 6),
        (0, 0),
        (0, 20),
        (0, 17),
        (1, 148),
        (0, 5),
        (0, 23),
        (0, 102),
        (0, 5),
        (0, 1),
        (0, 213),
        (1, 0),
        (1, 203),
        (0, 192),
        (0, 0),
        (0, 15),
        (0, 54),
        (0, 63),
        (0, 20),
        (0, 7),
        (0, 145),
        (3, 182),
        (6, 61),
        (0, 47),
        (0, 156),
        (1, 48),
        (1, 51),
        (1, 246),
        (0, 83),
        (0, 94),
        (0, 210),
        (40, 177),
        (0, 75),
        (2, 37),
        (0, 1),
        (0, 4),
        (2, 10),
        (3, 43),
        (2, 58),
        (0, 76),
        (13, 55),
        (0, 25),
        (0, 11),
        (18, 112),
        (0, 13),
        (16, 97),
        (0, 1),
        (0, 6),
        (8, 20),
        (0, 11),
        (2, 129),
        (23, 124),
    ]),
    entries: ::phf::Slice::Static(&[
        ("radius", AttributeId::Radius),
        ("cap-height", AttributeId::CapHeight),
        ("limitingConeAngle", AttributeId::LimitingConeAngle),
        ("g2", AttributeId::G2),
        ("class", AttributeId::Class),
        ("keyTimes", AttributeId::KeyTimes),
        ("keyPoints", AttributeId::KeyPoints),
        ("patternUnits", AttributeId::PatternUnits),
        ("display", AttributeId::Display),
        ("color-interpolation", AttributeId::ColorInterpolation),
        ("v-hanging", AttributeId::VHanging),
        ("type", AttributeId::Type),
        ("color-profile", AttributeId::ColorProfile),
        ("version", AttributeId::Version),
        ("k3", AttributeId::K3),
        ("stroke-opacity", AttributeId::StrokeOpacity),
        ("k2", AttributeId::K2),
        ("format", AttributeId::Format),
        ("k1", AttributeId::K1),
        ("exponent", AttributeId::Exponent),
        ("base", AttributeId::Base),
        ("dur", AttributeId::Dur),
        ("color-interpolation-filters", AttributeId::ColorInterpolationFilters),
        ("attributeType", AttributeId::AttributeType),
        ("onresize", AttributeId::Onresize),
        ("fill", AttributeId::Fill),
        ("width", AttributeId::Width),
        ("to", AttributeId::To),
        ("values", AttributeId::Values),
        ("patternTransform", AttributeId::PatternTransform),
        ("pointsAtZ", AttributeId::PointsAtZ),
        ("string", AttributeId::String),
        ("clip-path", AttributeId::ClipPath),
        ("onmouseup", AttributeId::Onmouseup),
        ("onmousemove", AttributeId::Onmousemove),
        ("bbox", AttributeId::Bbox),
        ("d", AttributeId::D),
        ("in2", AttributeId::In2),
        ("v-alphabetic", AttributeId::VAlphabetic),
        ("height", AttributeId::Height),
        ("offset", AttributeId::Offset),
        ("ry", AttributeId::Ry),
        ("x1", AttributeId::X1),
        ("dx", AttributeId::Dx),
        ("enable-background", AttributeId::EnableBackground),
        ("x-height", AttributeId::XHeight),
        ("in", AttributeId::In),
        ("maskContentUnits", AttributeId::MaskContentUnits),
        ("scale", AttributeId::Scale),
        ("spreadMethod", AttributeId::SpreadMethod),
        ("additive", AttributeId::Additive),
        ("id", AttributeId::Id),
        ("specularExponent", AttributeId::SpecularExponent),
        ("stroke-width", AttributeId::StrokeWidth),
        ("strikethrough-thickness", AttributeId::StrikethroughThickness),
        ("fy", AttributeId::Fy),
        ("begin", AttributeId::Begin),
        ("onrepeat", AttributeId::Onrepeat),
        ("vert-origin-x", AttributeId::VertOriginX),
        ("font-size-adjust", AttributeId::FontSizeAdjust),
        ("onclick", AttributeId::Onclick),
        ("horiz-adv-x", AttributeId::HorizAdvX),
        ("slope", AttributeId::Slope),
        ("cx", AttributeId::Cx),
        ("amplitude", AttributeId::Amplitude),
        ("v-ideographic", AttributeId::VIdeographic),
        ("kernelUnitLength", AttributeId::KernelUnitLength),
        ("contentStyleType", AttributeId::ContentStyleType),
        ("gradientTransform", AttributeId::GradientTransform),
        ("writing-mode", AttributeId::WritingMode),
        ("x", AttributeId::X),
        ("line-height", AttributeId::LineHeight),
        ("specularConstant", AttributeId::SpecularConstant),
        ("requiredExtensions", AttributeId::RequiredExtensions),
        ("alphabetic", AttributeId::Alphabetic),
        ("edgeMode", AttributeId::EdgeMode),
        ("descent", AttributeId::Descent),
        ("onload", AttributeId::Onload),
        ("textLength", AttributeId::TextLength),
        ("startOffset", AttributeId::StartOffset),
        ("onerror", AttributeId::Onerror),
        ("marker-mid", AttributeId::MarkerMid),
        ("ideographic", AttributeId::Ideographic),
        ("pointsAtX", AttributeId::PointsAtX),
        ("onabort", AttributeId::Onabort),
        ("glyph-orientation-vertical", AttributeId::GlyphOrientationVertical),
        ("onmousedown", AttributeId::Onmousedown),
        ("visibility", AttributeId::Visibility),
        ("xmlns", AttributeId::Xmlns),
        ("pathLength", AttributeId::PathLength),
        ("alignment-baseline", AttributeId::AlignmentBaseline),
        ("onbegin", AttributeId::Onbegin),
        ("contentScriptType", AttributeId::ContentScriptType),
        ("actuate", AttributeId::Actuate),
        ("x2", AttributeId::X2),
        ("hanging", AttributeId::Hanging),
        ("strikethrough-position", AttributeId::StrikethroughPosition),
        ("arcrole", AttributeId::Arcrole),
        ("letter-spacing", AttributeId::LetterSpacing),
        ("direction", AttributeId::Direction),
        ("azimuth", AttributeId::Azimuth),
        ("seed", AttributeId::Seed),
        ("onzoom", AttributeId::Onzoom),
        ("baseline-shift", AttributeId::BaselineShift),
        ("cursor", AttributeId::Cursor),
        ("onend", AttributeId::Onend),
        ("z", AttributeId::Z),
        ("v-mathematical", AttributeId::VMathematical),
        ("attributeName", AttributeId::AttributeName),
        ("rendering-intent", AttributeId::RenderingIntent),
        ("y1", AttributeId::Y1),
        ("xChannelSelector", AttributeId::XChannelSelector),
        ("name", AttributeId::Name),
        ("href", AttributeId::Href),
        ("baseFrequency", AttributeId::BaseFrequency),
        ("viewBox", AttributeId::ViewBox),
        ("show", AttributeId::Show),
        ("font-style", AttributeId::FontStyle),
        ("dy", AttributeId::Dy),
        ("filterRes", AttributeId::FilterRes),
        ("stop-color", AttributeId::StopColor),
        ("shape-rendering", AttributeId::ShapeRendering),
        ("overline-thickness", AttributeId::OverlineThickness),
        ("u1", AttributeId::U1),
        ("zoomAndPan", AttributeId::ZoomAndPan),
        ("onmouseover", AttributeId::Onmouseover),
        ("origin", AttributeId::Origin),
        ("marker", AttributeId::Marker),
        ("refX", AttributeId::RefX),
        ("font-size", AttributeId::FontSize),
        ("clip", AttributeId::Clip),
        ("fill-opacity", AttributeId::FillOpacity),
        ("marker-start", AttributeId::MarkerStart),
        ("mathematical", AttributeId::Mathematical),
        ("orientation", AttributeId::Orientation),
        ("stemv", AttributeId::Stemv),
        ("text-anchor", AttributeId::TextAnchor),
        ("color", AttributeId::Color),
        ("image-rendering", AttributeId::ImageRendering),
        ("calcMode", AttributeId::CalcMode),
        ("onfocusout", AttributeId::Onfocusout),
        ("markerUnits", AttributeId::MarkerUnits),
        ("points", AttributeId::Points),
        ("underline-thickness", AttributeId::UnderlineThickness),
        ("horiz-origin-y", AttributeId::HorizOriginY),
        ("operator", AttributeId::Operator),
        ("title", AttributeId::Title),
        ("unicode-range", AttributeId::UnicodeRange),
        ("pointsAtY", AttributeId::PointsAtY),
        ("divisor", AttributeId::Divisor),
        ("elevation", AttributeId::Elevation),
        ("keySplines", AttributeId::KeySplines),
        ("clip-rule", AttributeId::ClipRule),
        ("markerWidth", AttributeId::MarkerWidth),
        ("refY", AttributeId::RefY),
        ("word-spacing", AttributeId::WordSpacing),
        ("spacing", AttributeId::Spacing),
        ("overline-position", AttributeId::OverlinePosition),
        ("viewTarget", AttributeId::ViewTarget),
        ("accent-height", AttributeId::AccentHeight),
        ("glyph-orientation-horizontal", AttributeId::GlyphOrientationHorizontal),
        ("mask", AttributeId::Mask),
        ("kernelMatrix", AttributeId::KernelMatrix),
        ("font-stretch", AttributeId::FontStretch),
        ("filterUnits", AttributeId::FilterUnits),
        ("onscroll", AttributeId::Onscroll),
        ("method", AttributeId::Method),
        ("local", AttributeId::Local),
        ("targetY", AttributeId::TargetY),
        ("glyph-name", AttributeId::GlyphName),
        ("filter", AttributeId::Filter),
        ("end", AttributeId::End),
        ("font-variant", AttributeId::FontVariant),
        ("restart", AttributeId::Restart),
        ("intercept", AttributeId::Intercept),
        ("onunload", AttributeId::Onunload),
        ("preserveAlpha", AttributeId::PreserveAlpha),
        ("order", AttributeId::Order),
        ("stroke-miterlimit", AttributeId::StrokeMiterlimit),
        ("font", AttributeId::Font),
        ("numOctaves", AttributeId::NumOctaves),
        ("flood-color", AttributeId::FloodColor),
        ("style", AttributeId::Style),
        ("k", AttributeId::K),
        ("unicode-bidi", AttributeId::UnicodeBidi),
        ("stroke-dashoffset", AttributeId::StrokeDashoffset),
        ("text-rendering", AttributeId::TextRendering),
        ("glyphRef", AttributeId::GlyphRef),
        ("bias", AttributeId::Bias),
        ("patternContentUnits", AttributeId::PatternContentUnits),
        ("stop-opacity", AttributeId::StopOpacity),
        ("requiredFeatures", AttributeId::RequiredFeatures),
        ("text-decoration", AttributeId::TextDecoration),
        ("onactivate", AttributeId::Onactivate),
        ("rotate", AttributeId::Rotate),
        ("ascent", AttributeId::Ascent),
        ("stitchTiles", AttributeId::StitchTiles),
        ("stemh", AttributeId::Stemh),
        ("dominant-baseline", AttributeId::DominantBaseline),
        ("yChannelSelector", AttributeId::YChannelSelector),
        ("fx", AttributeId::Fx),
        ("transform", AttributeId::Transform),
        ("clipPathUnits", AttributeId::ClipPathUnits),
        ("baseProfile", AttributeId::BaseProfile),
        ("min", AttributeId::Min),
        ("kerning", AttributeId::Kerning),
        ("max", AttributeId::Max),
        ("y", AttributeId::Y),
        ("gradientUnits", AttributeId::GradientUnits),
        ("orient", AttributeId::Orient),
        ("units-per-em", AttributeId::UnitsPerEm),
        ("pointer-events", AttributeId::PointerEvents),
        ("r", AttributeId::R),
        ("panose-1", AttributeId::Panose1),
        ("color-rendering", AttributeId::ColorRendering),
        ("widths", AttributeId::Widths),
        ("onfocusin", AttributeId::Onfocusin),
        ("marker-end", AttributeId::MarkerEnd),
        ("primitiveUnits", AttributeId::PrimitiveUnits),
        ("k4", AttributeId::K4),
        ("horiz-origin-x", AttributeId::HorizOriginX),
        ("from", AttributeId::From),
        ("fill-rule", AttributeId::FillRule),
        ("stroke-linecap", AttributeId::StrokeLinecap),
        ("tableValues", AttributeId::TableValues),
        ("font-weight", AttributeId::FontWeight),
        ("stdDeviation", AttributeId::StdDeviation),
        ("role", AttributeId::Role),
        ("lighting-color", AttributeId::LightingColor),
        ("media", AttributeId::Media),
        ("stroke", AttributeId::Stroke),
        ("lang", AttributeId::Lang),
        ("target", AttributeId::Target),
        ("maskUnits", AttributeId::MaskUnits),
        ("accumulate", AttributeId::Accumulate),
        ("targetX", AttributeId::TargetX),
        ("underline-position", AttributeId::UnderlinePosition),
        ("onmouseout", AttributeId::Onmouseout),
        ("lengthAdjust", AttributeId::LengthAdjust),
        ("path", AttributeId::Path),
        ("externalResourcesRequired", AttributeId::ExternalResourcesRequired),
        ("result", AttributeId::Result),
        ("repeatDur", AttributeId::RepeatDur),
        ("flood-opacity", AttributeId::FloodOpacity),
        ("by", AttributeId::By),
        ("markerHeight", AttributeId::MarkerHeight),
        ("preserveAspectRatio", AttributeId::PreserveAspectRatio),
        ("space", AttributeId::Space),
        ("font-family", AttributeId::FontFamily),
        ("g1", AttributeId::G1),
        ("mode", AttributeId::Mode),
        ("opacity", AttributeId::Opacity),
        ("repeatCount", AttributeId::RepeatCount),
        ("diffuseConstant", AttributeId::DiffuseConstant),
        ("vert-origin-y", AttributeId::VertOriginY),
        ("overflow", AttributeId::Overflow),
        ("systemLanguage", AttributeId::SystemLanguage),
        ("unicode", AttributeId::Unicode),
        ("rx", AttributeId::Rx),
        ("surfaceScale", AttributeId::SurfaceScale),
        ("xlink", AttributeId::Xlink),
        ("stroke-dasharray", AttributeId::StrokeDasharray),
        ("stroke-linejoin", AttributeId::StrokeLinejoin),
        ("vert-adv-y", AttributeId::VertAdvY),
        ("y2", AttributeId::Y2),
        ("cy", AttributeId::Cy),
        ("arabic-form", AttributeId::ArabicForm),
        ("u2", AttributeId::U2),
    ]),
};

impl AttributeId {
    /// Converts name into id.
    pub fn from_str(text: &str) -> Option<AttributeId> {
        ATTRIBUTES.get(text).cloned()
    }

    /// Converts id into name.
    pub fn as_str(&self) -> &str {
        match *self {
            AttributeId::AccentHeight => "accent-height",
            AttributeId::Accumulate => "accumulate",
            AttributeId::Actuate => "actuate",
            AttributeId::Additive => "additive",
            AttributeId::AlignmentBaseline => "alignment-baseline",
            AttributeId::Alphabetic => "alphabetic",
            AttributeId::Amplitude => "amplitude",
            AttributeId::ArabicForm => "arabic-form",
            AttributeId::Arcrole => "arcrole",
            AttributeId::Ascent => "ascent",
            AttributeId::AttributeName => "attributeName",
            AttributeId::AttributeType => "attributeType",
            AttributeId::Azimuth => "azimuth",
            AttributeId::Base => "base",
            AttributeId::BaseFrequency => "baseFrequency",
            AttributeId::BaselineShift => "baseline-shift",
            AttributeId::BaseProfile => "baseProfile",
            AttributeId::Bbox => "bbox",
            AttributeId::Begin => "begin",
            AttributeId::Bias => "bias",
            AttributeId::By => "by",
            AttributeId::CalcMode => "calcMode",
            AttributeId::CapHeight => "cap-height",
            AttributeId::Class => "class",
            AttributeId::Clip => "clip",
            AttributeId::ClipPath => "clip-path",
            AttributeId::ClipRule => "clip-rule",
            AttributeId::ClipPathUnits => "clipPathUnits",
            AttributeId::Color => "color",
            AttributeId::ColorInterpolation => "color-interpolation",
            AttributeId::ColorInterpolationFilters => "color-interpolation-filters",
            AttributeId::ColorProfile => "color-profile",
            AttributeId::ColorRendering => "color-rendering",
            AttributeId::ContentScriptType => "contentScriptType",
            AttributeId::ContentStyleType => "contentStyleType",
            AttributeId::Cursor => "cursor",
            AttributeId::Cx => "cx",
            AttributeId::Cy => "cy",
            AttributeId::D => "d",
            AttributeId::Descent => "descent",
            AttributeId::DiffuseConstant => "diffuseConstant",
            AttributeId::Direction => "direction",
            AttributeId::Display => "display",
            AttributeId::Divisor => "divisor",
            AttributeId::DominantBaseline => "dominant-baseline",
            AttributeId::Dur => "dur",
            AttributeId::Dx => "dx",
            AttributeId::Dy => "dy",
            AttributeId::EdgeMode => "edgeMode",
            AttributeId::Elevation => "elevation",
            AttributeId::EnableBackground => "enable-background",
            AttributeId::End => "end",
            AttributeId::Exponent => "exponent",
            AttributeId::ExternalResourcesRequired => "externalResourcesRequired",
            AttributeId::Fill => "fill",
            AttributeId::FillOpacity => "fill-opacity",
            AttributeId::FillRule => "fill-rule",
            AttributeId::Filter => "filter",
            AttributeId::FilterRes => "filterRes",
            AttributeId::FilterUnits => "filterUnits",
            AttributeId::FloodColor => "flood-color",
            AttributeId::FloodOpacity => "flood-opacity",
            AttributeId::Font => "font",
            AttributeId::FontFamily => "font-family",
            AttributeId::FontSize => "font-size",
            AttributeId::FontSizeAdjust => "font-size-adjust",
            AttributeId::FontStretch => "font-stretch",
            AttributeId::FontStyle => "font-style",
            AttributeId::FontVariant => "font-variant",
            AttributeId::FontWeight => "font-weight",
            AttributeId::Format => "format",
            AttributeId::From => "from",
            AttributeId::Fx => "fx",
            AttributeId::Fy => "fy",
            AttributeId::G1 => "g1",
            AttributeId::G2 => "g2",
            AttributeId::GlyphName => "glyph-name",
            AttributeId::GlyphOrientationHorizontal => "glyph-orientation-horizontal",
            AttributeId::GlyphOrientationVertical => "glyph-orientation-vertical",
            AttributeId::GlyphRef => "glyphRef",
            AttributeId::GradientTransform => "gradientTransform",
            AttributeId::GradientUnits => "gradientUnits",
            AttributeId::Hanging => "hanging",
            AttributeId::Height => "height",
            AttributeId::HorizAdvX => "horiz-adv-x",
            AttributeId::HorizOriginX => "horiz-origin-x",
            AttributeId::HorizOriginY => "horiz-origin-y",
            AttributeId::Href => "href",
            AttributeId::Id => "id",
            AttributeId::Ideographic => "ideographic",
            AttributeId::ImageRendering => "image-rendering",
            AttributeId::In => "in",
            AttributeId::In2 => "in2",
            AttributeId::Intercept => "intercept",
            AttributeId::K => "k",
            AttributeId::K1 => "k1",
            AttributeId::K2 => "k2",
            AttributeId::K3 => "k3",
            AttributeId::K4 => "k4",
            AttributeId::KernelMatrix => "kernelMatrix",
            AttributeId::KernelUnitLength => "kernelUnitLength",
            AttributeId::Kerning => "kerning",
            AttributeId::KeyPoints => "keyPoints",
            AttributeId::KeySplines => "keySplines",
            AttributeId::KeyTimes => "keyTimes",
            AttributeId::Lang => "lang",
            AttributeId::LengthAdjust => "lengthAdjust",
            AttributeId::LetterSpacing => "letter-spacing",
            AttributeId::LightingColor => "lighting-color",
            AttributeId::LimitingConeAngle => "limitingConeAngle",
            AttributeId::LineHeight => "line-height",
            AttributeId::Local => "local",
            AttributeId::Marker => "marker",
            AttributeId::MarkerEnd => "marker-end",
            AttributeId::MarkerMid => "marker-mid",
            AttributeId::MarkerStart => "marker-start",
            AttributeId::MarkerHeight => "markerHeight",
            AttributeId::MarkerUnits => "markerUnits",
            AttributeId::MarkerWidth => "markerWidth",
            AttributeId::Mask => "mask",
            AttributeId::MaskContentUnits => "maskContentUnits",
            AttributeId::MaskUnits => "maskUnits",
            AttributeId::Mathematical => "mathematical",
            AttributeId::Max => "max",
            AttributeId::Media => "media",
            AttributeId::Method => "method",
            AttributeId::Min => "min",
            AttributeId::Mode => "mode",
            AttributeId::Name => "name",
            AttributeId::NumOctaves => "numOctaves",
            AttributeId::Offset => "offset",
            AttributeId::Onabort => "onabort",
            AttributeId::Onactivate => "onactivate",
            AttributeId::Onbegin => "onbegin",
            AttributeId::Onclick => "onclick",
            AttributeId::Onend => "onend",
            AttributeId::Onerror => "onerror",
            AttributeId::Onfocusin => "onfocusin",
            AttributeId::Onfocusout => "onfocusout",
            AttributeId::Onload => "onload",
            AttributeId::Onmousedown => "onmousedown",
            AttributeId::Onmousemove => "onmousemove",
            AttributeId::Onmouseout => "onmouseout",
            AttributeId::Onmouseover => "onmouseover",
            AttributeId::Onmouseup => "onmouseup",
            AttributeId::Onrepeat => "onrepeat",
            AttributeId::Onresize => "onresize",
            AttributeId::Onscroll => "onscroll",
            AttributeId::Onunload => "onunload",
            AttributeId::Onzoom => "onzoom",
            AttributeId::Opacity => "opacity",
            AttributeId::Operator => "operator",
            AttributeId::Order => "order",
            AttributeId::Orient => "orient",
            AttributeId::Orientation => "orientation",
            AttributeId::Origin => "origin",
            AttributeId::Overflow => "overflow",
            AttributeId::OverlinePosition => "overline-position",
            AttributeId::OverlineThickness => "overline-thickness",
            AttributeId::Panose1 => "panose-1",
            AttributeId::Path => "path",
            AttributeId::PathLength => "pathLength",
            AttributeId::PatternContentUnits => "patternContentUnits",
            AttributeId::PatternTransform => "patternTransform",
            AttributeId::PatternUnits => "patternUnits",
            AttributeId::PointerEvents => "pointer-events",
            AttributeId::Points => "points",
            AttributeId::PointsAtX => "pointsAtX",
            AttributeId::PointsAtY => "pointsAtY",
            AttributeId::PointsAtZ => "pointsAtZ",
            AttributeId::PreserveAlpha => "preserveAlpha",
            AttributeId::PreserveAspectRatio => "preserveAspectRatio",
            AttributeId::PrimitiveUnits => "primitiveUnits",
            AttributeId::R => "r",
            AttributeId::Radius => "radius",
            AttributeId::RefX => "refX",
            AttributeId::RefY => "refY",
            AttributeId::RenderingIntent => "rendering-intent",
            AttributeId::RepeatCount => "repeatCount",
            AttributeId::RepeatDur => "repeatDur",
            AttributeId::RequiredExtensions => "requiredExtensions",
            AttributeId::RequiredFeatures => "requiredFeatures",
            AttributeId::Restart => "restart",
            AttributeId::Result => "result",
            AttributeId::Role => "role",
            AttributeId::Rotate => "rotate",
            AttributeId::Rx => "rx",
            AttributeId::Ry => "ry",
            AttributeId::Scale => "scale",
            AttributeId::Seed => "seed",
            AttributeId::ShapeRendering => "shape-rendering",
            AttributeId::Show => "show",
            AttributeId::Slope => "slope",
            AttributeId::Space => "space",
            AttributeId::Spacing => "spacing",
            AttributeId::SpecularConstant => "specularConstant",
            AttributeId::SpecularExponent => "specularExponent",
            AttributeId::SpreadMethod => "spreadMethod",
            AttributeId::StartOffset => "startOffset",
            AttributeId::StdDeviation => "stdDeviation",
            AttributeId::Stemh => "stemh",
            AttributeId::Stemv => "stemv",
            AttributeId::StitchTiles => "stitchTiles",
            AttributeId::StopColor => "stop-color",
            AttributeId::StopOpacity => "stop-opacity",
            AttributeId::StrikethroughPosition => "strikethrough-position",
            AttributeId::StrikethroughThickness => "strikethrough-thickness",
            AttributeId::String => "string",
            AttributeId::Stroke => "stroke",
            AttributeId::StrokeDasharray => "stroke-dasharray",
            AttributeId::StrokeDashoffset => "stroke-dashoffset",
            AttributeId::StrokeLinecap => "stroke-linecap",
            AttributeId::StrokeLinejoin => "stroke-linejoin",
            AttributeId::StrokeMiterlimit => "stroke-miterlimit",
            AttributeId::StrokeOpacity => "stroke-opacity",
            AttributeId::StrokeWidth => "stroke-width",
            AttributeId::Style => "style",
            AttributeId::SurfaceScale => "surfaceScale",
            AttributeId::SystemLanguage => "systemLanguage",
            AttributeId::TableValues => "tableValues",
            AttributeId::Target => "target",
            AttributeId::TargetX => "targetX",
            AttributeId::TargetY => "targetY",
            AttributeId::TextAnchor => "text-anchor",
            AttributeId::TextDecoration => "text-decoration",
            AttributeId::TextRendering => "text-rendering",
            AttributeId::TextLength => "textLength",
            AttributeId::Title => "title",
            AttributeId::To => "to",
            AttributeId::Transform => "transform",
            AttributeId::Type => "type",
            AttributeId::U1 => "u1",
            AttributeId::U2 => "u2",
            AttributeId::UnderlinePosition => "underline-position",
            AttributeId::UnderlineThickness => "underline-thickness",
            AttributeId::Unicode => "unicode",
            AttributeId::UnicodeBidi => "unicode-bidi",
            AttributeId::UnicodeRange => "unicode-range",
            AttributeId::UnitsPerEm => "units-per-em",
            AttributeId::VAlphabetic => "v-alphabetic",
            AttributeId::VHanging => "v-hanging",
            AttributeId::VIdeographic => "v-ideographic",
            AttributeId::VMathematical => "v-mathematical",
            AttributeId::Values => "values",
            AttributeId::Version => "version",
            AttributeId::VertAdvY => "vert-adv-y",
            AttributeId::VertOriginX => "vert-origin-x",
            AttributeId::VertOriginY => "vert-origin-y",
            AttributeId::ViewBox => "viewBox",
            AttributeId::ViewTarget => "viewTarget",
            AttributeId::Visibility => "visibility",
            AttributeId::Width => "width",
            AttributeId::Widths => "widths",
            AttributeId::WordSpacing => "word-spacing",
            AttributeId::WritingMode => "writing-mode",
            AttributeId::X => "x",
            AttributeId::XHeight => "x-height",
            AttributeId::X1 => "x1",
            AttributeId::X2 => "x2",
            AttributeId::XChannelSelector => "xChannelSelector",
            AttributeId::Xlink => "xlink",
            AttributeId::Xmlns => "xmlns",
            AttributeId::Y => "y",
            AttributeId::Y1 => "y1",
            AttributeId::Y2 => "y2",
            AttributeId::YChannelSelector => "yChannelSelector",
            AttributeId::Z => "z",
            AttributeId::ZoomAndPan => "zoomAndPan"
        }
    }
}

impl fmt::Debug for AttributeId {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.as_str())
    }
}

impl fmt::Display for AttributeId {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(f, "{}", self.as_str())
    }
}
