py/gadict.py
changeset 629 6a862ea41c00
parent 618 6ad7203ac9dc
child 631 f6d706812a0f
--- a/py/gadict.py	Sat Nov 05 23:25:03 2016 +0200
+++ b/py/gadict.py	Sun Nov 06 14:00:41 2016 +0200
@@ -129,7 +129,7 @@
     SEPARATOR_RE = regex.compile(u"^__$")
     HEADWORD_RE = regex.compile( u"^(\\p{L}.*)$" )
     HEADWORD_VAR_RE = regex.compile(u"^ +(s|pl|v[123]|male|female|comp|super|abbr|Am|Br|Au)$")
-    HEADWORD_PRON_RE = regex.compile(u"^ +\\[([\p{L}' ]+)\\]$")
+    HEADWORD_PRON_RE = regex.compile(u"^ +\\[([a-zˌˈːəæɒʊɪɔɜɑʌʃʧθðɡʒŋ ]+)\\]$")
     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}].*)$""")