[Tag]
[Tag.Part]
[Tag.Article]
optional = [
"Layout::ColumnCount",
"Layout::ColumnGap",
"Layout::ColumnWidths",
]
[Tag.Section]
optional = [
"Layout::ColumnCount",
"Layout::ColumnGap",
"Layout::ColumnWidths",
]
[Tag.Div]
optional = [
"Layout::ColumnCount",
"Layout::ColumnGap",
"Layout::ColumnWidths",
]
[Tag.BlockQuote]
[Tag.Caption]
[Tag.TOC]
[Tag.TOCI]
[Tag.Index]
[Tag.P]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Hn]
required = ["Struct::HeadingLevel"]
suggested = ["Struct::Title"]
optional = [
"Struct::Title",
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.L]
required = ["List::Numbering"]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.LI]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Lbl]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.LBody]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Table]
optional = [
"Table::Summary",
"Layout::BBox",
"Layout::Width",
"Layout::Height",
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::TextIndent",
"Layout::TextAlign",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.TR]
[Tag.TH]
required = ["Table::HeaderScope"]
optional = [
"Table::CellHeaders",
"Table::RowSpan",
"Table::ColSpan",
"Layout::Width",
"Layout::Height",
"Layout::TableBorderStyle",
"Layout::TablePadding",
"Layout::BlockAlign",
"Layout::InlineAlign",
]
[Tag.TD]
optional = [
"Table::CellHeaders",
"Table::RowSpan",
"Table::ColSpan",
"Layout::Width",
"Layout::Height",
"Layout::TableBorderStyle",
"Layout::TablePadding",
"Layout::BlockAlign",
"Layout::InlineAlign",
]
[Tag.THead]
[Tag.TBody]
[Tag.TFoot]
[Tag.Span]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.InlineQuote]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Note]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Reference]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.BibEntry]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Code]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Link]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Annot]
optional = [
"Layout::SpaceBefore",
"Layout::SpaceAfter",
"Layout::StartIndent",
"Layout::EndIndent",
"Layout::LineHeight",
"Layout::BaselineShift",
"Layout::TextDecorationColor",
"Layout::TextDecorationThickness",
"Layout::TextDecorationType",
]
[Tag.Figure]
suggested = ["Struct::AltText"]
optional = [
"Layout::BBox",
"Layout::Width",
"Layout::Height",
]
[Tag.Formula]
suggested = ["Struct::AltText"]
optional = [
"Layout::BBox",
"Layout::Width",
"Layout::Height",
]
[Tag.Form]
[Tag.NonStruct]
[Tag.Datetime]
[Tag.Terms]
[Tag.Title]
[Tag.Strong]
[Tag.Em]
[Attr.Struct]
Id = { type = "TagId", global = true }
Lang = { type = "String", global = true, accessor = "AsRef<str>" }
AltText = { type = "String", global = true, accessor = "AsRef<str>" }
Expanded = { type = "String", global = true, accessor = "AsRef<str>" }
ActualText = { type = "String", global = true, accessor = "AsRef<str>" }
Title = { type = "String", accessor = "AsRef<str>" }
HeadingLevel = { name = "level", type = "NonZeroU16", accessor = "Copy" }
[Attr.List]
Numbering = { type = "ListNumbering", accessor = "Copy" }
[Attr.Table]
Summary = { type = "String", accessor = "AsRef<str>" }
HeaderScope = { name = "scope", type = "TableHeaderScope", accessor = "Copy" }
CellHeaders = { name = "headers", type = "SmallVec<[TagId; 1]>", accessor = "Custom" }
RowSpan = { type = "NonZeroU32", accessor = "Copy" }
ColSpan = { type = "NonZeroU32", accessor = "Copy" }
[Attr.Layout]
Placement = { type = "Placement", global = true, accessor = "Copy" }
WritingMode = { type = "WritingMode", global = true, accessor = "Copy" }
BBox = { name = "bbox", type = "BBox", accessor = "Copy" }
Width = { type = "f32", accessor = "Copy" }
Height = { type = "f32", accessor = "Copy" }
BackgroundColor = { type = "NaiveRgbColor", global = true, accessor = "Copy" }
BorderColor = { type = "Sides<NaiveRgbColor>", global = true, accessor = "Copy" }
BorderStyle = { type = "Sides<BorderStyle>", global = true, accessor = "Copy" }
BorderThickness = { type = "Sides<f32>", global = true, accessor = "Copy" }
Padding = { type = "Sides<f32>", global = true, accessor = "Copy" }
Color = { type = "NaiveRgbColor", global = true, accessor = "Copy" }
SpaceBefore = { type = "f32", accessor = "Copy" }
SpaceAfter = { type = "f32", accessor = "Copy" }
StartIndent = { type = "f32", accessor = "Copy" }
EndIndent = { type = "f32", accessor = "Copy" }
TextIndent = { type = "f32", accessor = "Copy" }
TextAlign = { type = "TextAlign", accessor = "Copy" }
BlockAlign = { type = "BlockAlign", accessor = "Copy" }
InlineAlign = { type = "InlineAlign", accessor = "Copy" }
TableBorderStyle = { type = "Sides<BorderStyle>", accessor = "Copy" }
TablePadding = { type = "Sides<f32>", accessor = "Copy" }
BaselineShift = { type = "f32", global = true, accessor = "Copy" }
LineHeight = { type = "LineHeight", global = true, accessor = "Copy" }
TextDecorationColor = { type = "NaiveRgbColor", global = true, accessor = "Copy" }
TextDecorationThickness = { type = "f32", global = true, accessor = "Copy" }
TextDecorationType = { type = "TextDecorationType", global = true, accessor = "Copy" }
GlyphOrientationVertical = { type = "GlyphOrientationVertical", global = true, accessor = "Copy" }
ColumnCount = { type = "NonZeroU32", accessor = "Copy" }
ColumnGap = { type = "ColumnDimensions" }
ColumnWidths = { type = "ColumnDimensions" }