mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-26 09:08:11 +00:00
f417d886312f5211e40b52eae2f7962f1b62d9e0
storytold/wordcraft#3966 made Ignore words in UPPERCASE and Ignore words that contain numbers reach six languages' own checks, one copy at a time, and Russian and Turkish were left out. lib.rs still called `ru::is_correct(word)` and `tr::is_correct(word)`, which accept words with digits (both) and short words in capitals (Russian) whatever the options say, so turning either option off changed nothing in those languages. Both now have `is_correct_with_options`, like the others. Russian's rule for a part in capitals (`ИИ-консультант`) follows the option too, as Indonesian's does, and its digits rule keeps counting superscripts (`м²`). Turkish had no test dictionary, so its two dictionary tests returned early wherever none was installed, CI included; it has a synthetic one now, also in the dictionaries-folder test. Tests: proofing_options_reach_the_russian_check and proofing_options_reach_the_turkish_check. Calling the old checks from lib.rs fails each, and so does ungating the Russian part rule or the Turkish hyphen recursion.
Languages
Rust
99.6%
Python
0.2%
Max
0.1%