From 7e69ea58d3b2911177cfb9033e31bdc558bcca6c Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 15 Jun 2020 23:41:04 +0200 Subject: [PATCH] add Galician dictionary --- dict-dists-extractor/Makefile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/dict-dists-extractor/Makefile b/dict-dists-extractor/Makefile index c5ba66d..9e72df9 100644 --- a/dict-dists-extractor/Makefile +++ b/dict-dists-extractor/Makefile @@ -2,8 +2,8 @@ ROOT_DICT = ../public/dict -LANGS = bg br ca cy da de el en eo es et fi fr it nl no pl pt sv uk -# to add: ar cs ga he hr hu hy is lv ro ru sk sl +LANGS = bg br ca cy da de el en eo es et fi fr ga it nl no pl pt sv uk +# to add: ar cs he hr hu hy is lv ro ru sk sl #LANGS = af ar bg br ca cs cy da de el en eo es et eu fi fr ga he hr hu hy is it la lv ms nl no pl pt ro ru sk sl sv tr uk xk ASPDICT = https://ftp.gnu.org/gnu/aspell/dict/0index.html @@ -257,6 +257,21 @@ $(ROOT_DICT)/fr.dict: fr.low $(DEPEND) sort | \ uniq > $@ +$(ROOT_DICT)/ga.dict: ga.low $(DEPEND) + echo Building $@ from $< + cat $< | \ + grep -v '^.$$' | \ + grep -v "[.':-]" | \ + sed -e 's/[áâãÁ]/a/g' \ + -e 's/[ç]/c/g' \ + -e 's/[éèÉ]/e/g' \ + -e 's/[íÍ]/i/g' \ + -e 's/[óöòÓ]/o/g' \ + -e 's/[úüÚ]/u/g' | \ + tr '[a-zñ]' '[A-ZÑ]' | \ + sort | \ + uniq > $@ + $(ROOT_DICT)/it.dict: it.low $(DEPEND) echo Building $@ from $< cat $< | \ @@ -392,6 +407,9 @@ check-et:$(ROOT_DICT)/et.dict check-fi:$(ROOT_DICT)/fi.dict $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÄÅÖŠŽ,~) +check-ga:$(ROOT_DICT)/ga.dict + $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÑ,~) + check-no:$(ROOT_DICT)/no.dict $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ,~) -- 2.30.2