From c26ad3676ea1644d9e9be0e714261adea8d3aae6 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Tue, 9 Jun 2020 22:24:14 +0200 Subject: [PATCH] wrong name for Spanish dictionnary --- dict-dists-extractor/Makefile | 42 +++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/dict-dists-extractor/Makefile b/dict-dists-extractor/Makefile index 3abbaff..5025b2e 100644 --- a/dict-dists-extractor/Makefile +++ b/dict-dists-extractor/Makefile @@ -2,7 +2,7 @@ ROOT_DICT = ../public/dict -LANGS = bg ca da de en eo fr it nl no po sp sv uk +LANGS = bg ca da de en eo es fr it nl no po sv uk # pl not working MAKEFLAGS = -s @@ -113,6 +113,23 @@ $(ROOT_DICT)/eo.json: /usr/share/dict/esperanto Makefile { print " \"" $$0 "\"," } \ END { print " \"\"\n]" }' > $@ +$(ROOT_DICT)/es.json: /usr/share/dict/spanish Makefile + echo Building $@ from $< + cat $< | \ + grep -v '^.$$' | \ + grep -v "['-]" | \ + sed -e 's/[á]/a/g' \ + -e 's/[é]/e/g' \ + -e 's/[í]/i/g' \ + -e 's/[ó]/o/g' \ + -e 's/[úü]/u/g' | \ + tr '[a-zñ]' '[A-ZÑ]' | \ + sort | \ + uniq | \ + awk 'BEGIN { print "[" } \ + { print " \"" $$0 "\"," } \ + END { print " \"\"\n]" }' > $@ + $(ROOT_DICT)/fr.json: /usr/share/dict/french Makefile echo Building $@ from $< cat $< | \ @@ -222,23 +239,6 @@ $(ROOT_DICT)/po.json: /usr/share/dict/portuguese Makefile { print " \"" $$0 "\"," } \ END { print " \"\"\n]" }' > $@ -$(ROOT_DICT)/sp.json: /usr/share/dict/spanish Makefile - echo Building $@ from $< - cat $< | \ - grep -v '^.$$' | \ - grep -v "['-]" | \ - sed -e 's/[á]/a/g' \ - -e 's/[é]/e/g' \ - -e 's/[í]/i/g' \ - -e 's/[ó]/o/g' \ - -e 's/[úü]/u/g' | \ - tr '[a-zñ]' '[A-ZÑ]' | \ - sort | \ - uniq | \ - awk 'BEGIN { print "[" } \ - { print " \"" $$0 "\"," } \ - END { print " \"\"\n]" }' > $@ - $(ROOT_DICT)/sv.json: /usr/share/dict/swedish Makefile echo Building $@ from $< iconv -f iso-8859-15 -t utf-8 $< | \ @@ -287,6 +287,9 @@ check-de:$(ROOT_DICT)/de.json check-eo:$(ROOT_DICT)/eo.json $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZĈĜĤĴŜŬ,) +check-es:$(ROOT_DICT)/es.json + $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÑ,) + check-no:$(ROOT_DICT)/no.json $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅ,) @@ -296,9 +299,6 @@ check-pl:$(ROOT_DICT)/pl.json check-po:$(ROOT_DICT)/po.json $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÇ,) -check-sp:$(ROOT_DICT)/sp.json - $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÑ,) - check-sv:$(ROOT_DICT)/sv.json $(call CHECKER,$<,ABCDEFGHIJKLMNOPQRSTUVWXYZÅÄÖ,) -- 2.30.2