py/gadict.py
changeset 735 53f8b0c1fa23
parent 733 906d0a4e5c95
child 740 77668cb05069
equal deleted inserted replaced
734:d27e1dfa676c 735:53f8b0c1fa23
   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}.*)$")