py/gadict.py
changeset 422 c97e9c1febe8
parent 412 ece60575a96a
child 432 b3a78fc20b31
equal deleted inserted replaced
421:10b27dd321ba 422:c97e9c1febe8
    36 
    36 
    37     SEPARATOR_RE = regex.compile(r"^__$")
    37     SEPARATOR_RE = regex.compile(r"^__$")
    38     HEADWORD_RE = regex.compile(r"^(\p{L}.*)$")
    38     HEADWORD_RE = regex.compile(r"^(\p{L}.*)$")
    39     HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super)$")
    39     HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super)$")
    40     HEADWORD_PRON_RE = regex.compile(r"^ +\[([\p{L}' ]+)\]$")
    40     HEADWORD_PRON_RE = regex.compile(r"^ +\[([\p{L}' ]+)\]$")
    41     TRANSL_POS_RE = regex.compile(r"^n|pron|adj|v|adv|prep|conj|num|int|phr\.v|abbr|prefix$")
    41     TRANSL_POS_RE = regex.compile(r"^n|pron|adj|v|adv|prep|conj|num|int|phr|phr\.v|abbr|prefix$")
    42     TRANSL_RE = regex.compile(r"^(ru|uk|la|en): ([\p{L}(].*)$")
    42     TRANSL_RE = regex.compile(r"^(ru|uk|la|en): ([\p{L}(].*)$")
    43     TRANSL_EX_RE = regex.compile(r"^(ru|uk|la|en)> (\p{L}.*)$")
    43     TRANSL_EX_RE = regex.compile(r"^(ru|uk|la|en)> (\p{L}.*)$")
    44     TOPIC_RE = regex.compile(r"^topic: (\p{L}.*)$")
    44     TOPIC_RE = regex.compile(r"^topic: (\p{L}.*)$")
    45 
    45 
    46     CONT_RE = regex.compile(r"^ +(.*)")
    46     CONT_RE = regex.compile(r"^ +(.*)")