RB toponyms reference: 136 districts + cities, adjective wordforms (toponyms.txt, generator script); loader reads it with exceptions
This commit is contained in:
1 parent
16c11de9a6
commit
756fdb9bc4
3 files changed
+1466
No files matched your search
@@ -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"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user