RB toponyms reference: 136 districts + cities, adjective wordforms (toponyms.txt, generator script); loader reads it with exceptions

This commit is contained in:
Sadmin committed 2026-11-02 21:53:43 +03:00
1 parent 16c11de9a6
commit 756fdb9bc4
3 files changed
+1466

No files matched your search

+4
View File
@@ -206,9 +206,13 @@ def para_of_offset(offs: List[Tuple[int, int]], offset: int) -> int:
# --- словарь-исключения ---
EXCEPTIONS_FILES = [
os.path.join(os.path.dirname(os.path.abspath(__file__)), "exceptions.txt"),
# автогенерируемый справочник топонимов РБ (scripts/gen_toponyms.py)
os.path.join(os.path.dirname(os.path.abspath(__file__)), "toponyms.txt"),
os.path.join(os.getcwd(), "exceptions.txt"),
os.path.join(os.getcwd(), "toponyms.txt"),
# родитель комплекта (C:\docchecker у онлайн-установки) — переживает update кода
os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "exceptions.txt"),
os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "toponyms.txt"),
]