From: Laurent Mazet Date: Tue, 16 Jun 2020 09:25:49 +0000 (+0200) Subject: error on Hungarian dictionary X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=db8588581d9df14d3a37b12e0bd8cfbf374cb17d;p=trivabble.git error on Hungarian dictionary --- diff --git a/dict-dists-extractor/Makefile b/dict-dists-extractor/Makefile index b87aa16..ef2fe33 100644 --- a/dict-dists-extractor/Makefile +++ b/dict-dists-extractor/Makefile @@ -4,6 +4,8 @@ ROOT_DICT = ../public/dict 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 +# cs: bug +# hu: too big #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 @@ -282,7 +284,14 @@ $(ROOT_DICT)/hr.dict: hr.low $(DEPEND) sort | \ uniq > $@ -#tr '[a-zćčđšž]' '[A-ZĆČĐŠŽ]' +$(ROOT_DICT)/hu.dict: hu.low $(DEPEND) + echo Building $@ from $< + cat $< | \ + grep -v '^.$$' | \ + grep -v "['-]" | \ + tr '[a-záéóöőúüű]' '[A-ZÁÉÓÖŐÚÜŰ]' | \ + sort | \ + uniq > $@ $(ROOT_DICT)/it.dict: it.low $(DEPEND) echo Building $@ from $< @@ -425,6 +434,9 @@ check-ga:$(ROOT_DICT)/ga.dict check-hr:$(ROOT_DICT)/hr.dict $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZĆČĐŠŽ,~) +check-hu:$(ROOT_DICT)/hu.dict + $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÁÉÓÖŐÚÜŰ,~) + check-no:$(ROOT_DICT)/no.dict $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ,~)