/* Copyright 2022 the SumatraPDF project authors (see AUTHORS file).
   License: Simplified BSD (see COPYING.BSD) */

// This file is auto-generated by gen_htmlparserlookup.py

enum HtmlTag {
    Tag_A,
    Tag_Abbr,
    Tag_Acronym,
    Tag_Area,
    Tag_Audio,
    Tag_B,
    Tag_Base,
    Tag_Basefont,
    Tag_Blockquote,
    Tag_Body,
    Tag_Br,
    Tag_Center,
    Tag_Code,
    Tag_Col,
    Tag_Dd,
    Tag_Div,
    Tag_Dl,
    Tag_Dt,
    Tag_Em,
    Tag_Font,
    Tag_Frame,
    Tag_H1,
    Tag_H2,
    Tag_H3,
    Tag_H4,
    Tag_H5,
    Tag_H6,
    Tag_Head,
    Tag_Hr,
    Tag_Html,
    Tag_I,
    Tag_Image,
    Tag_Img,
    Tag_Input,
    Tag_Lh,
    Tag_Li,
    Tag_Link,
    Tag_Mbp_Pagebreak,
    Tag_Meta,
    Tag_Nav,
    Tag_Object,
    Tag_Ol,
    Tag_P,
    Tag_Pagebreak,
    Tag_Param,
    Tag_Pre,
    Tag_S,
    Tag_Script,
    Tag_Section,
    Tag_Small,
    Tag_Span,
    Tag_Strike,
    Tag_Strong,
    Tag_Style,
    Tag_Sub,
    Tag_Subtitle,
    Tag_Sup,
    Tag_Svg,
    Tag_Svg_Image,
    Tag_Table,
    Tag_Td,
    Tag_Th,
    Tag_Title,
    Tag_Tr,
    Tag_Tt,
    Tag_U,
    Tag_Ul,
    Tag_Video,
    Tag_NotFound
};

enum class AlignAttr {
    Center,
    Justify,
    Left,
    Right,
    NotFound
};

HtmlTag FindHtmlTag(const char* name, size_t len);
bool IsTagSelfClosing(HtmlTag item);
bool IsInlineTag(HtmlTag item);
AlignAttr FindAlignAttr(const char* name, size_t len);
u32 FindHtmlEntityRune(const char* name, size_t len);

enum CssProp {
    Css_Color,
    Css_Display,
    Css_Font,
    Css_Font_Family,
    Css_Font_Size,
    Css_Font_Style,
    Css_Font_Weight,
    Css_List_Style,
    Css_Margin,
    Css_Margin_Bottom,
    Css_Margin_Left,
    Css_Margin_Right,
    Css_Margin_Top,
    Css_Max_Width,
    Css_Opacity,
    Css_Padding,
    Css_Padding_Bottom,
    Css_Padding_Left,
    Css_Padding_Right,
    Css_Padding_Top,
    Css_Page_Break_After,
    Css_Page_Break_Before,
    Css_Text_Align,
    Css_Text_Decoration,
    Css_Text_Indent,
    Css_Text_Underline,
    Css_White_Space,
    Css_Word_Wrap,
    Css_Unknown
};

CssProp FindCssProp(const char* name, size_t len);
