]> gitweb.fperrin.net Git - DictionaryPC.git/blobdiff - generate_dictionaries.sh
Minor optimizations for endPage function.
[DictionaryPC.git] / generate_dictionaries.sh
index 91dbd18db3e84b790fd8d758ebc4aa86da11fdaa..01038e23fc9d9f8065f0081cd45f57a46b0923cd 100755 (executable)
@@ -1,17 +1,16 @@
 #!/bin/sh
 DE_DICTS=true
-#DE_DICTS=false
+DE_DICTS=false
 EN_DICTS=true
-#EN_DICTS=false
+EN_DICTS=false
 FR_DICTS=true
-#FR_DICTS=false
+FR_DICTS=false
 IT_DICTS=true
-#IT_DICTS=false
+IT_DICTS=false
 EN_TRANS_DICTS=true
-#EN_TRANS_DICTS=false
-# Spanish is unfortunately not yet working
-SINGLE_DICTS="en de fr it"
-#SINGLE_DICTS=""
+EN_TRANS_DICTS=false
+SINGLE_DICTS="en de fr it es pt"
+SINGLE_DICTS="en"
 
 VERSION=v007
 
@@ -19,17 +18,22 @@ VERSION=v007
 
 if $EN_DICTS; then
 # Note: using input1 seems to hang for ZH currently!
-while read langcode langname ; do
+while read langcode langname enlangname ; do
 lang=$(echo $langcode | tr '[a-z]' '[A-Z]')
 test "$lang" = "CY" && lang=CI
 test "$lang" = "CMN" && lang=cmn
 test "$lang" = "GRC" && lang=grc
 test "$lang" = "HAW" && lang=haw
+test "$lang" = "SCN" && lang=scn
 test "$lang" = "YUE" && lang=yue
+test "$lang" = "PDC" && lang=pdc
+test "$lang" = "NDS" && lang=nds
+test "$lang" = "CU" && lang=cu
 
 reverse_dicts=""
 if test "$lang" = "DE" -o "$lang" = "FR" -o "$lang" = "IT" ; then
 reverse_dicts="--input3=data/inputs/wikiSplit/$langcode/EN.data --input3Format=WholeSectionToHtmlParser --input3Name=${langcode}wikitionary --input3WiktionaryLang=$lang --input3TitleIndex=1 --input3WebUrlTemplate=http://${langcode}.wiktionary.org/wiki/%s"
+#reverse_dicts="$reverse_dicts --input4=data/inputs/wikiSplit/$langcode/EN.data --input4Name=${langcode}wikitionary --input4Format=enwiktionary --input4LangPattern=${enlangname} --input4LangCodePattern=en --input4EnIndex=1 --input4WiktionaryType=EnForeign"
 fi
 
 stoplist=""