# HG changeset patch # User Oleksandr Gavenko # Date 1575754183 -7200 # Node ID 0ef4b4264a1a821087a4f266183a46b66cbb156f # Parent 3a2d23535c56b89e08b318a38ebc6f8b9a56878a Added category "baby" as opposite to male/female. diff -r 3a2d23535c56 -r 0ef4b4264a1a contrib/gadict.el --- a/contrib/gadict.el Fri Nov 01 14:43:10 2019 +0200 +++ b/contrib/gadict.el Sat Dec 07 23:29:43 2019 +0200 @@ -133,7 +133,7 @@ (defconst gadict--art-lang-regex (regexp-opt '("en" "ru" "uk" "la"))) (defconst gadict--art-rel-regex (regexp-opt '("cnt" "ant" "syn" "rel" "topic" "hyper" "hypo" "col"))) -(defconst gadict--art-var-regex (regexp-opt '("rare" "v1" "v2" "v3" "s" "pl" "male" "female" "abbr" "comp" "super" "Am" "Br" "Au"))) +(defconst gadict--art-var-regex (regexp-opt '("rare" "v1" "v2" "v3" "s" "pl" "male" "female" "baby" "abbr" "comp" "super" "Am" "Br" "Au"))) (defconst gadict--art-pos-regex (regexp-opt gadict--pos)) (defgroup gadict nil diff -r 3a2d23535c56 -r 0ef4b4264a1a py/gadict.py --- a/py/gadict.py Fri Nov 01 14:43:10 2019 +0200 +++ b/py/gadict.py Sat Dec 07 23:29:43 2019 +0200 @@ -136,7 +136,7 @@ SEPARATOR_RE = re.compile(u"^__$", re.UNICODE) HEADWORD_RE = re.compile( u"^(\\w.*)$" ) - HEADWORD_VAR_RE = re.compile(u"^ +(rare|s|pl|v[123]|male|female|comp|super|abbr|Am|Br|Au)$", re.UNICODE) + HEADWORD_VAR_RE = re.compile(u"^ +(rare|s|pl|v[123]|male|female|baby|comp|super|abbr|Am|Br|Au)$", re.UNICODE) HEADWORD_PRON_RE = re.compile(u"^ +\\[([a-zˌˈːəæɛɒʊɪɔɜɑʌɚɐɹʃʧθðɡʒŋɾʔ ]+)\\]$", re.UNICODE) HEADWORD_HOMO_RE = re.compile(u"^ +homo: (\\w|\\w[-'\\w ;]*\\w)$", re.UNICODE) TRANSL_POS_RE = re.compile(u"^(?:n|det|pron|adj|v|adv|prep|conj|num|int|phr|phr\\.v|contr|abbr|prefix)$", re.UNICODE)