# HG changeset patch # User Oleksandr Gavenko # Date 1479983938 -7200 # Node ID 45e971e7a5f4d0402f9b306a4db336dcb6b79cdd # Parent 4457721a1a13633865b90f0808c89ada1e762666 Allow subscript/superscript numbers. diff -r 4457721a1a13 -r 45e971e7a5f4 py/gadict.py --- a/py/gadict.py Wed Nov 23 12:34:51 2016 +0200 +++ b/py/gadict.py Thu Nov 24 12:38:58 2016 +0200 @@ -134,7 +134,7 @@ TRANSL_POS_RE = regex.compile(u"^(?:n|det|pron|adj|v|adv|prep|conj|num|int|phr|phr\\.v|contr|abbr|prefix)$") TRANSL_RE = regex.compile(u"^(ru|uk|la|en): ([\\p{L}(].*)$") TRANSL_EX_RE = regex.compile(u"""^(ru|uk|la|en)> ([-'"\\p{L}].*)$""") - TRANSL_GLOS_RE = regex.compile(u"^(ru|uk|la|en)= ([-\\p{L}].*)$") + TRANSL_GLOS_RE = regex.compile(u"^(ru|uk|la|en)= ([-\\p{L}\\p{N}].*)$") TOPIC_RE = regex.compile(u"^topic: (\\p{L}.*)$") SYN_RE = regex.compile(u"^syn: (\\p{L}.*)$") ANT_RE = regex.compile(u"^ant: (\\p{L}.*)$")