Add support for country spelling variant.
--- 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 ()
--- 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}(].*)$")
--- 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
================================