# HG changeset patch # User Oleksandr Gavenko # Date 1460739086 -10800 # Node ID b628292c6d48b184b15511ea43b16cb626ec40c0 # Parent 7009c3bc9ea83bf81768a5d2b0b099f5004d889e Add support for antonyms and synonyms. diff -r 7009c3bc9ea8 -r b628292c6d48 py/gadict.py --- a/py/gadict.py Fri Apr 15 19:04:52 2016 +0300 +++ b/py/gadict.py Fri Apr 15 19:51:26 2016 +0300 @@ -43,7 +43,7 @@ TRANSL_POS_RE = regex.compile(r"^n|pron|adj|v|adv|prep|conj|num|int|phr|phr\.v|abbr|prefix$") TRANSL_RE = regex.compile(r"^(ru|uk|la|en): ([\p{L}(].*)$") TRANSL_EX_RE = regex.compile(r"^(ru|uk|la|en)> (\p{L}.*)$") - TOPIC_RE = regex.compile(r"^topic: (\p{L}.*)$") + TOPIC_RE = regex.compile(r"^(topic|ant|syn): (\p{L}.*)$") CONT_RE = regex.compile(r"^ +(.*)")