README

bobzhang/docx2html/style_map does not have a README file

#
DocumentMatcher

pub(all) enum DocumentMatcher {
ParagraphMatcher(style_id~ : String?, style_name~ : StyleNameMatcher?, numbering~ :
Numbering
?)
RunMatcher(style_id~ : String?, style_name~ : StyleNameMatcher?)
RunPropertyMatcher(String)
HighlightMatcher(String?)
TableMatcher(style_id~ : String?, style_name~ : StyleNameMatcher?)
BreakMatcher(
BreakType
)
CommentReferenceMatcher
} derive(Eq,
Debug
)

Matcher for document elements in style-map rules.

#
DocumentMatcher::equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocumentMatcher::equal(DocumentMatcher, DocumentMatcher) -> Bool

#
DocumentMatcher::matches

Returns whether this matcher accepts the document element.

#
DocumentMatcher::not_equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocumentMatcher::not_equal(x : DocumentMatcher, y : DocumentMatcher) -> Bool

#
DocumentMatcher::to_repr

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn DocumentMatcher::to_repr(DocumentMatcher) ->
Repr

#
HtmlPathElement

pub(all) struct HtmlPathElement {
tag : String
attributes : Map[String, String]
fresh : Bool
separator : String?
} derive(Eq,
Debug
)

One element in a parsed style-map HTML path.

#
HtmlPathElement::equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn HtmlPathElement::equal(HtmlPathElement, HtmlPathElement) -> Bool

#
HtmlPathElement::not_equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn HtmlPathElement::not_equal(x : HtmlPathElement, y : HtmlPathElement) -> Bool

#
HtmlPathElement::to_repr

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn HtmlPathElement::to_repr(HtmlPathElement) ->
Repr

#
StyleMapParseResult

pub(all) struct StyleMapParseResult {
mappings : Array[StyleMapping]
messages : Array[
Message
]
} derive(Eq,
Debug
)

Parsed style mappings together with style-map diagnostics.

#
StyleMapParseResult::equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleMapParseResult::equal(StyleMapParseResult, StyleMapParseResult) -> Bool

#
StyleMapParseResult::not_equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleMapParseResult::not_equal(x : StyleMapParseResult, y : StyleMapParseResult) -> Bool

#
StyleMapParseResult::to_repr

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleMapParseResult::to_repr(StyleMapParseResult) ->
Repr

#
StyleMapping

pub(all) struct StyleMapping {
from : DocumentMatcher
to : Array[HtmlPathElement]
} derive(Eq,
Debug
)

Parsed mapping from a document matcher to an HTML path.

#
StyleMapping::equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleMapping::equal(StyleMapping, StyleMapping) -> Bool

#
StyleMapping::not_equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleMapping::not_equal(x : StyleMapping, y : StyleMapping) -> Bool

#
StyleMapping::to_repr

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleMapping::to_repr(StyleMapping) ->
Repr

#
StyleNameMatcher

pub(all) enum StyleNameMatcher {
ExactStyleName(String)
PrefixStyleName(String)
} derive(Eq,
Debug
)

Matcher for style names in style-map rules.

#
StyleNameMatcher::equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleNameMatcher::equal(StyleNameMatcher, StyleNameMatcher) -> Bool

#
StyleNameMatcher::not_equal

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleNameMatcher::not_equal(x : StyleNameMatcher, y : StyleNameMatcher) -> Bool

#
StyleNameMatcher::to_repr

#deprecated("implicit trait-method promotion is being removed; call via the trait")
fn StyleNameMatcher::to_repr(StyleNameMatcher) ->
Repr

#
default_style_map_lines

fn default_style_map_lines() -> Array[String]

Returns Mammoth-compatible default style-map lines.

#
find_style_mapping

Finds the first style mapping that matches an element.

#
parse_style_map

fn parse_style_map(lines : Array[String]) -> StyleMapParseResult

Parses style-map lines and preserves diagnostics.

#
parse_style_map_string

fn parse_style_map_string(style_map : String) -> StyleMapParseResult

Parses a style-map string and preserves diagnostics.

#
read_style_map

fn read_style_map(lines : Array[String]) -> Array[StyleMapping]

Parses style-map lines and returns valid mappings.

#
read_style_map_string

fn read_style_map_string(style_map : String) -> Array[String]

Splits a style-map string into meaningful lines.

#
read_style_map_with_messages

fn read_style_map_with_messages(lines : Array[String]) -> StyleMapParseResult

Parses style-map lines with diagnostics.

#
read_style_mapping

fn read_style_mapping(line : String) -> StyleMapping?

Parses one style-map line into a mapping, if valid.

Powered by MoonBit

Site sourceReport issuePackagesBuild queueSkillsStatistics

© 2026 mooncakes.io