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