py/gadict.py
changeset 1297 2a7472a87c39
parent 1182 0ef4b4264a1a
child 1313 db3f92fe3295
--- a/py/gadict.py	Fri Apr 09 23:24:30 2021 +0300
+++ b/py/gadict.py	Mon Apr 12 14:12:07 2021 +0300
@@ -140,7 +140,7 @@
     HEADWORD_PRON_RE = re.compile(u"^ +\\[([a-zˌˈːəæɛɒʊɪɔɜɑʌɚɐɹʃʧθðɡʒŋɾʔ ]+)\\]$", re.UNICODE)
     HEADWORD_HOMO_RE = re.compile(u"^ +homo: (\\w|\\w[-'\\w ;]*\\w)$", re.UNICODE)
     TRANSL_POS_RE = re.compile(u"^(?:n|det|pron|adj|v|adv|prep|conj|num|int|phr|phr\\.v|contr|abbr|prefix)$", re.UNICODE)
-    TRANSL_RE = re.compile(u"^(ru|uk|la|en): ([.\\w(].*)$", re.UNICODE)
+    TRANSL_RE = re.compile(u"""^(ru|uk|la|en): ([- .,;/'"?!()0-9²A-Za-zА-Яа-яЄєІіЇїҐґ]+)$""", re.UNICODE)
     TRANSL_EX_RE = re.compile(u"""^(ru|uk|la|en)> ([-'"\\w].*)$""", re.UNICODE)
     TRANSL_GLOS_RE = re.compile(u"^(ru|uk|la|en)= ([-\\w\\d].*)$", re.UNICODE)
     CNT_RE = re.compile(u"^cnt: (yes|no)$", re.UNICODE)