From: Laurent Mazet Date: Mon, 15 Jun 2020 22:13:06 +0000 (+0200) Subject: add Croatian dictionary X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=37f61d2bf7b7bad4ddae809bfbfb353f43f1b31b;p=trivabble.git add Croatian dictionary --- diff --git a/dict-dists-extractor/Makefile b/dict-dists-extractor/Makefile index 9e72df9..b87aa16 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 ga it nl no pl pt sv uk -# to add: ar cs 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 hr it nl no pl pt sv uk +# to add: ar cs he 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 @@ -272,6 +272,18 @@ $(ROOT_DICT)/ga.dict: ga.low $(DEPEND) sort | \ uniq > $@ +$(ROOT_DICT)/hr.dict: hr.low $(DEPEND) + echo Building $@ from $< + cat $< | \ + grep -v '^.$$' | \ + grep -v "['-]" | \ + tr '[a-zćčšž]' '[A-ZĆČŠŽ]' | \ + sed 's/đ/Đ/g' | \ + sort | \ + uniq > $@ + +#tr '[a-zćčđšž]' '[A-ZĆČĐŠŽ]' + $(ROOT_DICT)/it.dict: it.low $(DEPEND) echo Building $@ from $< cat $< | \ @@ -410,6 +422,9 @@ check-fi:$(ROOT_DICT)/fi.dict check-ga:$(ROOT_DICT)/ga.dict $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÑ,~) +check-hr:$(ROOT_DICT)/hr.dict + $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZĆČĐŠŽ,~) + check-no:$(ROOT_DICT)/no.dict $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ,~)