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