py/gadict.py
changeset 527 0a31299fad70
parent 454 462bc6140f5b
child 530 91771594bc8b
equal deleted inserted replaced
526:bb106d293d0d 527:0a31299fad70
    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|abbr)$")
    41     HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super|abbr|Am|Br|Au)$")
    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|ant|syn): (\p{L}.*)$")
    46     TOPIC_RE = regex.compile(r"^(topic|ant|syn): (\p{L}.*)$")