Skip to main content

discretionary_hyphen_breaks

Function discretionary_hyphen_breaks 

pub fn discretionary_hyphen_breaks(text: &str, language: &str) -> Vec<usize>
Expand description

UTF-8 byte offsets at which TeX/Liang patterns permit a discretionary hyphen for language. The source text is never modified; callers decide whether a chosen line break should paint the hyphen glyph.