X-Git-Url: http://gitweb.fperrin.net/?p=DictionaryPC.git;a=blobdiff_plain;f=generate_dictionaries.sh;h=33097007596d0e74705f281aa5ed5e5258c5fe66;hp=91dbd18db3e84b790fd8d758ebc4aa86da11fdaa;hb=24366310a5f03dd47aac6b454203129e399d87bd;hpb=08ad8a741b18e557842469191b1883b0c2042fe0 diff --git a/generate_dictionaries.sh b/generate_dictionaries.sh index 91dbd18..3309700 100755 --- a/generate_dictionaries.sh +++ b/generate_dictionaries.sh @@ -10,7 +10,7 @@ IT_DICTS=true EN_TRANS_DICTS=true #EN_TRANS_DICTS=false # Spanish is unfortunately not yet working -SINGLE_DICTS="en de fr it" +SINGLE_DICTS="en de fr it es pt" #SINGLE_DICTS="" VERSION=v007 @@ -19,7 +19,7 @@ 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 @@ -30,6 +30,7 @@ test "$lang" = "YUE" && lang=yue 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=""