mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-08 21:10:45 +00:00
244907cbf46bb971c323f22e55afe01f3e8a7abf
Checked against the Hunspell 1.7 command line: - The first AF and ICONV line is the count even with a trailing comment (AF 2 # aliases), so alias numbers no longer shift and ICONV 1 # no longer turns 1 into #. - A .dic entry ends where Hunspell ends it (dic_entry_end), so ad hoc/B is one entry and ad alone is no word. - An undefined alias in a .dic entry reads as no flags: the stem loads without affixes instead of failing the whole dictionary. - IGNORE characters are removed from the appended text only; a stripped text that holds one never matches a stem, as in Hunspell. - FLAG UTF-8 and SET are found anywhere in the .aff, not only in the first 8 KB. Also: normalize borrows the input when no conversion or ignored character applies, the UTF-8 .aff reader counts fields as it goes and builds its error context only on error, and the single-byte flag reader is decode_latin1.
Languages
Rust
98.5%
Max
1.3%
Python
0.2%