pub trait LocalizationStrategy: Send + Sync {
// Required methods
fn handle_numbering(&self, marker: &str) -> Option<String>;
fn parse_heading_style(&self, style: &str) -> Option<usize>;
}Expand description
Strategy for handling language-specific formatting conventions.
Required Methods§
Sourcefn handle_numbering(&self, marker: &str) -> Option<String>
fn handle_numbering(&self, marker: &str) -> Option<String>
Determines if a numbering marker represents a heading (e.g., “제1조”). Returns Some(heading_prefix) if it is a heading, None otherwise.
Sourcefn parse_heading_style(&self, style: &str) -> Option<usize>
fn parse_heading_style(&self, style: &str) -> Option<usize>
Parses a style name to determine the heading level.