Skip to main content

parse_glossary_text

Function parse_glossary_text 

Source
pub fn parse_glossary_text(text: &str) -> Vec<GlossaryEntry>
Expand description

Parse a UTF-8 glossary text file into GlossaryEntry values.

The expected format is one mapping per line in the form source = target or source -> target. Empty lines and lines starting with # are ignored. Lines that do not contain a recognized separator are skipped silently so free-form prose context can coexist with structured entries.