mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 00:59:29 +01:00
ru: update language-script test for Cyrillic
This commit is contained in:
1 parent
ead50b5e87
commit
e4585fb2b3
1 file changed
+3
-2
@@ -279,8 +279,9 @@ mod tests {
|
||||
assert_eq!(Script::of_language("ar"), Some(Script::Arabic));
|
||||
assert_eq!(Script::of_language("de"), None);
|
||||
for l in &crate::i18n::LANGUAGES {
|
||||
// Past the Latin blocks and their diacritics.
|
||||
let other_script = l.name.chars().any(|c| c > '\u{036F}');
|
||||
// Past the Latin blocks and their diacritics. Cyrillic is already in the
|
||||
// interface font (Inter / Ubuntu-Light), so Russian needs no fallback script.
|
||||
let other_script = l.name.chars().any(|c| c > '\u{036F}' && !('\u{0400}'..='\u{04FF}').contains(&c));
|
||||
assert_eq!(other_script, Script::of_language(l.code).is_some(), "{}", l.code);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user