# HG changeset patch # User Oleksandr Gavenko # Date 1460733918 -10800 # Node ID 50c70c5dbce3ea2c967bd1df7cc4933dd6b37d83 # Parent 1a49797cea41a50631e3683f6894ed0f8e9becc3 Add "abbr" word variance. diff -r 1a49797cea41 -r 50c70c5dbce3 py/gadict.py --- a/py/gadict.py Thu Apr 14 20:49:28 2016 +0300 +++ b/py/gadict.py Fri Apr 15 18:25:18 2016 +0300 @@ -38,7 +38,7 @@ SEPARATOR_RE = regex.compile(r"^__$") HEADWORD_RE = regex.compile(r"^(\p{L}.*)$") - HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super)$") + HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super|abbr)$") HEADWORD_PRON_RE = regex.compile(r"^ +\[([\p{L}' ]+)\]$") 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}(].*)$")