py/gadict.py
changeset 647 6ae5399c8087
parent 631 f6d706812a0f
child 659 3d4ea0a5928f
equal deleted inserted replaced
646:2d488cfc4c0c 647:6ae5399c8087
   127 
   127 
   128     COMMENT_RE = regex.compile(r"^# ")
   128     COMMENT_RE = regex.compile(r"^# ")
   129 
   129 
   130     SEPARATOR_RE = regex.compile(u"^__$")
   130     SEPARATOR_RE = regex.compile(u"^__$")
   131     HEADWORD_RE = regex.compile( u"^(\\p{L}.*)$" )
   131     HEADWORD_RE = regex.compile( u"^(\\p{L}.*)$" )
   132     HEADWORD_VAR_RE = regex.compile(u"^ +(s|pl|v[123]|male|female|comp|super|abbr|Am|Br|Au)$")
   132     HEADWORD_VAR_RE = regex.compile(u"^ +(rare|s|pl|v[123]|male|female|comp|super|abbr|Am|Br|Au)$")
   133     HEADWORD_PRON_RE = regex.compile(u"^ +\\[([a-zˌˈːəæɒʊɪɔɜɑʌʃʧθðɡʒŋ ]+)\\]$")
   133     HEADWORD_PRON_RE = regex.compile(u"^ +\\[([a-zˌˈːəæɒʊɪɔɜɑʌʃʧθðɡʒŋ ]+)\\]$")
   134     TRANSL_POS_RE = regex.compile(u"^(?:n|det|pron|adj|v|adv|prep|conj|num|int|phr|phr\\.v|contr|abbr|prefix)$")
   134     TRANSL_POS_RE = regex.compile(u"^(?:n|det|pron|adj|v|adv|prep|conj|num|int|phr|phr\\.v|contr|abbr|prefix)$")
   135     TRANSL_RE = regex.compile(u"^(ru|uk|la|en): ([\\p{L}(].*)$")
   135     TRANSL_RE = regex.compile(u"^(ru|uk|la|en): ([\\p{L}(].*)$")
   136     TRANSL_EX_RE = regex.compile(u"""^(ru|uk|la|en)> ([-'"\\p{L}].*)$""")
   136     TRANSL_EX_RE = regex.compile(u"""^(ru|uk|la|en)> ([-'"\\p{L}].*)$""")
   137     TRANSL_GLOS_RE = regex.compile(u"^(ru|uk|la|en)= ([-\\p{L}].*)$")
   137     TRANSL_GLOS_RE = regex.compile(u"^(ru|uk|la|en)= ([-\\p{L}].*)$")