X-Git-Url: http://gitweb.fperrin.net/?a=blobdiff_plain;f=generate_dictionaries.sh;h=d5bd55d8fec3a79014c59be4482ef3317ad80377;hb=916d921cf4d643a2ef86e206d093e6f5356ac81a;hp=91dbd18db3e84b790fd8d758ebc4aa86da11fdaa;hpb=08ad8a741b18e557842469191b1883b0c2042fe0;p=DictionaryPC.git diff --git a/generate_dictionaries.sh b/generate_dictionaries.sh index 91dbd18..d5bd55d 100755 --- a/generate_dictionaries.sh +++ b/generate_dictionaries.sh @@ -9,8 +9,7 @@ IT_DICTS=true #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 de fr it es pt" #SINGLE_DICTS="" VERSION=v007 @@ -19,17 +18,21 @@ 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" = "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=""