py/gadict.py
changeset 733 906d0a4e5c95
parent 695 45e971e7a5f4
child 735 53f8b0c1fa23
equal deleted inserted replaced
732:b7aa8f9046ab 733:906d0a4e5c95
   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}.*)$")