wrong name for Spanish dictionnary
authorLaurent Mazet <mazet@softndesign.org>
Tue, 9 Jun 2020 20:24:14 +0000 (22:24 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Tue, 9 Jun 2020 20:24:14 +0000 (22:24 +0200)
dict-dists-extractor/Makefile

index 3abbaff4a32f8911eee62c5e87bc559aee7e2cbe..5025b2ec54e9029e8bb4899139fc6b3633a2eadd 100644 (file)
@@ -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ÅÄÖ,)