py/gadict.py
changeset 446 b628292c6d48
parent 442 50c70c5dbce3
child 454 462bc6140f5b
equal deleted inserted replaced
445:7009c3bc9ea8 446:b628292c6d48
    41     HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super|abbr)$")
    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|ant|syn): (\p{L}.*)$")
    47 
    47 
    48     CONT_RE = regex.compile(r"^ +(.*)")
    48     CONT_RE = regex.compile(r"^ +(.*)")
    49 
    49 
    50     TRAILING_SPACES_RE = regex.compile(r"\p{Z}+$")
    50     TRAILING_SPACES_RE = regex.compile(r"\p{Z}+$")
    51 
    51