py/gadict.py
changeset 740 77668cb05069
parent 735 53f8b0c1fa23
child 757 5417f2102dc5
equal deleted inserted replaced
739:4c70daa48492 740:77668cb05069
   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"^ +(rare|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}\\p{N}].*)$")
   137     TRANSL_GLOS_RE = regex.compile(u"^(ru|uk|la|en)= ([-\\p{L}\\p{N}].*)$")
   138     TOPIC_RE = regex.compile(u"^topic: (\\p{L}.*)$")
   138     TOPIC_RE = regex.compile(u"^topic: (\\p{L}.*)$")