Allow subscript/superscript numbers.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 24 Nov 2016 12:38:58 +0200
changeset 695 45e971e7a5f4
parent 694 4457721a1a13
child 696 537b8ce489af
Allow subscript/superscript numbers.
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}.*)$")