py/gadict.py
changeset 695 45e971e7a5f4
parent 659 3d4ea0a5928f
child 733 906d0a4e5c95
equal deleted inserted replaced
694:4457721a1a13 695:45e971e7a5f4
   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}].*)$")
   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}.*)$")
   139     SYN_RE = regex.compile(u"^syn: (\\p{L}.*)$")
   139     SYN_RE = regex.compile(u"^syn: (\\p{L}.*)$")
   140     ANT_RE = regex.compile(u"^ant: (\\p{L}.*)$")
   140     ANT_RE = regex.compile(u"^ant: (\\p{L}.*)$")
   141     REL_RE = regex.compile(u"^rel: (\\p{L}.*)$")
   141     REL_RE = regex.compile(u"^rel: (\\p{L}.*)$")
   142     HYPER_RE = regex.compile(u"^hyper: (\\p{L}.*)$")
   142     HYPER_RE = regex.compile(u"^hyper: (\\p{L}.*)$")