# HG changeset patch # User Oleksandr Gavenko # Date 1472065795 -10800 # Node ID 0a31299fad7044d3c78463b969d559897b1a1dd2 # Parent bb106d293d0d12dbdfe4b0dd87eaec45adc79988 Add support for country spelling variant. diff -r bb106d293d0d -r 0a31299fad70 contrib/gadict.el --- a/contrib/gadict.el Sun Jul 31 12:14:04 2016 +0300 +++ b/contrib/gadict.el Wed Aug 24 22:09:55 2016 +0300 @@ -30,7 +30,7 @@ ("^\\(?:en\\|ru\\|uk\\|la\\): " . font-lock-type-face) ("^\\(?:en\\|ru\\|uk\\|la\\)> " . font-lock-doc-face) ("^\\(?:topic\\|ant\\|syn\\): " . font-lock-doc-face) - ("^ +\\(?:v1\\|v2\\|v3\\|s\\|pl\\|male\\|female\\|abbr\\|comp\\|super\\)$" . font-lock-doc-face) + ("^ +\\(?:v1\\|v2\\|v3\\|s\\|pl\\|male\\|female\\|abbr\\|comp\\|super\\|Am\\|Br\\|Au\\)$" . font-lock-doc-face) ("^\\(?:n\\|v\\|adj\\|adv\\|pron\\|prep\\|num\\|conj\\|int\\|phr\\|phr\\.v\\|abbr\\|prefix\\)$" . font-lock-type-face) )) (defun gadict-setup-fontlock () diff -r bb106d293d0d -r 0a31299fad70 py/gadict.py --- a/py/gadict.py Sun Jul 31 12:14:04 2016 +0300 +++ b/py/gadict.py Wed Aug 24 22:09:55 2016 +0300 @@ -38,7 +38,7 @@ SEPARATOR_RE = regex.compile(r"^__$") HEADWORD_RE = regex.compile(r"^(\p{L}.*)$") - HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super|abbr)$") + HEADWORD_VAR_RE = regex.compile(r"^ +(s|pl|v[123]|male|female|comp|super|abbr|Am|Br|Au)$") HEADWORD_PRON_RE = regex.compile(r"^ +\[([\p{L}' ]+)\]$") TRANSL_POS_RE = regex.compile(r"^n|pron|adj|v|adv|prep|conj|num|int|phr|phr\.v|abbr|prefix$") TRANSL_RE = regex.compile(r"^(ru|uk|la|en): ([\p{L}(].*)$") diff -r bb106d293d0d -r 0a31299fad70 www/HACKING.rst --- a/www/HACKING.rst Sun Jul 31 12:14:04 2016 +0300 +++ b/www/HACKING.rst Wed Aug 24 22:09:55 2016 +0300 @@ -130,8 +130,11 @@ * ``uk:`` - Ukrainian * ``la:`` - Latin -Pronunciation variants marked by ``Am`` - American, ``Br`` - Great Britain, -``Au`` - Australia. +Pronunciation variants marked by: + +* ``Am`` - American +* ``Br`` - Great Britain +* ``Au`` - Australian C5 dictionary source file format ================================