ROOT_DICT = ../public/dict
-LANGS = ar bg br ca cs cy da de el en eo es et fi fr ga hr hy is it lv nl no pl pt ro ru sk sl sv uk
-# to add: ar he hu
-# 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
+# 0MB < dictionary size < 10MB
+SMALL = br ca cy da de en es fr ga hr hu hy is lv nl no pt sv
+# 10MB < Dictionary size < 50MB
+LARGE = bg el eo it pl ro ru sk sl uk
+# 50MB < dictionary size < 500MB
+VERY_LARGE = ar cs et fi
+LANGS = $(SMALL) $(LARGE)
+
+# he and hu: can not be generated
+# af eu la ms tr xk: no aspell dictionary
ASPDICT = https://ftp.gnu.org/gnu/aspell/dict/0index.html
sort | \
uniq > $@
+$(ROOT_DICT)/he.dict: he.low $(DEPEND)
+ echo Building $@ from $<
+ cat $< | \
+ grep -v '^.$$' | \
+ grep -v "['-]" | \
+ sort | \
+ uniq > $@
+
$(ROOT_DICT)/hr.dict: hr.low $(DEPEND)
echo Building $@ from $<
cat $< | \
check-ga:$(ROOT_DICT)/ga.dict
$(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÑ,~)
+check-he:$(ROOT_DICT)/he.dict
+ $(call CHECKER,$<,אבגדהוזחטיכלמנסעפצקרשת,~)
+
check-hr:$(ROOT_DICT)/hr.dict
$(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZĆČĐŠŽ,~)