add: разделены правила для языков + провеки на языки-алфавиты

This commit is contained in:
2025-05-12 18:36:05 +03:00
parent 4d9f4a798e
commit f0b9784737
5 changed files with 133 additions and 70 deletions

View File

@@ -1,4 +1,4 @@
from etpgrf.comutil import parce_and_validate_mode, parse_and_validate_langs
from etpgrf.comutil import parse_and_validate_mode, parse_and_validate_langs
from etpgrf.hyphenation import Hyphenator
import copy
@@ -17,7 +17,7 @@ class Typographer:
self.langs: frozenset[str] = parse_and_validate_langs(langs)
# --- Обработка и валидация параметра mode ---
self.mode: str = parce_and_validate_mode(mode)
self.mode: str = parse_and_validate_mode(mode)
# Сохраняем переданные модули правил
if hyphenation_rule is not None: