Talk:Dict Applications
Revision as of 12:37, 10 April 2011 by <bdi>Dgvirtual</bdi> (talk | contribs) (Error in coversion dict > stardict)
The conversion script dict > stardict seems to be not working.
besides the fact that in Ubuntu 10.10 the program /usr/lib/stardict/dictd2dic is in a different place (/usr/lib/stardict-tools/dictd2dic) I encountered some other error, that I do not completely understand:
dg@bala:~$ bash -x dict2stardict.sh freedict-eng-fra
+ INSTALL_STARDICT_DEFAULT=deb
+ INSTALL_STARDICT=deb
+ TEMP_DIR=./stardict-temp
+ '[' freedict-eng-fra == '' ']'
+ prefix=dictd_www.freedict.de_
+ starprefix=dictd_
+ mkdir -p ./stardict-temp
+ cd ./stardict-temp
+ '[' freedict-eng-fra '!=' '' ']'
+ FILE=freedict-eng-fra
+ '[' '!' -e ../freedict-eng-fra.dict.dz ']'
+ '[' '!' -e /usr/share/dictd/freedict-eng-fra.dict.dz ']'
+ cp -L /usr/share/dictd/freedict-eng-fra.dict.dz .
+ '[' '!' -e ../freedict-eng-fra.index ']'
+ '[' '!' -e /usr/share/dictd/freedict-eng-fra.index ']'
+ cp -L /usr/share/dictd/freedict-eng-fra.index .
+ echo Uncompress...
Uncompress...
+ dictunzip freedict-eng-fra.dict.dz
+ '[' '!' -e freedict-eng-fra.dict ']'
+ AUTHOR=
+ EMAIL=
+ DESCRIPTION='Converted from a dictd'
+ WEBSITE=
+ dict_to_stardict freedict-eng-fra
+ local FILE=freedict-eng-fra
+ echo 'Convert freedict-eng-fra to stardict format...'
Convert freedict-eng-fra to stardict format...
++ /usr/lib/stardict-tools/dictd2dic freedict-eng-fra
++ cut -d ' ' -f 2
++ grep wordcount
+ local word=8766
+ '[' '!' -e dictd_www.freedict.de_freedict-eng-fra.dict.dz ']'
+ echo 'Error in conversion! (8766 words)'
Error in conversion! (8766 words)
+ echo 'Abort!'
Abort!
+ exit 1