Page 1 of 1

Possible to avoid indexing on startup?

PostPosted: Sat Dec 03, 2011 1:22 am
by klo
Hello,

let me start by congratulating on a great product! I love it and use it most of the time on Ubuntu 11.04. It's version build from source as there was some problem with Wikipedia images in stable Synaptic version.

I have this Lingvo "Cambridge English Advanced Learners" dictionary and it's DLS file with additional JPG images and WAV sound files (actually mono WaveMP3). I don't really need images, but I use sound pronunciation from time to time. Problem is that because there are lot of audio files, GoldenDict start-up is slow and I assume that problem is related on indexing this audio and image files.

Can I do something to remedy this prolonged start-up time without removing audio files?


Cheers
klo

Re: Possible to avoid indexing on startup?

PostPosted: Sat Dec 03, 2011 5:10 pm
by chulai
klo wrote:I have this Lingvo "Cambridge English Advanced Learners" dictionary and it's DLS file with additional JPG images and WAV sound files (actually mono WaveMP3). I don't really need images, but I use sound pronunciation from time to time. Problem is that because there are lot of audio files, GoldenDict start-up is slow and I assume that problem is related on indexing this audio and image files.

Can I do something to remedy this prolonged start-up time without removing audio files?


Cheers
klo


Yes, put all your sound files into a zip file. Read here: viewtopic.php?f=5&t=1180&p=5078#p5078

Re: Possible to avoid indexing on startup?

PostPosted: Sat Dec 03, 2011 7:19 pm
by klo
That's good news then. Thanks :)

How should I name the archives? Should I use ZIP or other archiver?

I archived audio files in ZIP and named the archive `audio.zip` and GoldenDict starts immediately. However if I try to play some pronunciation I get:

The referenced resource doesn't exist.


I named archive also by the name DSL file, appending `.audio` on it, but it's same - GoldenDict couldn't find them

Any tips?

TIA

Re: Possible to avoid indexing on startup?

PostPosted: Sat Dec 03, 2011 9:02 pm
by chulai

Re: Possible to avoid indexing on startup?

PostPosted: Sat Dec 03, 2011 9:21 pm
by klo
Excellent! Thanks chulai for you fast reply :)

First link worked for me, i.e. name archive as `dict-name.dsl.files.zip`

Cheers

Re: Possible to avoid indexing on startup?

PostPosted: Mon Dec 19, 2011 5:46 am
by oversky
Which zip filename should I use for the files in the sound direcotory?

Re: Possible to avoid indexing on startup?

PostPosted: Mon Dec 19, 2011 12:31 pm
by chulai
if your DSL dictionary is called myDict.dsl you have to zip all your media files and rename that zip file myDict.dsl.files.zip
You can also save some disk space if you use dictzip to compress myDict.dsl. The result file would be myDict.dsl.dz

Finally, put all files under the same directory.

oversky wrote:Which zip filename should I use for the files in the sound direcotory?

Re: Possible to avoid indexing on startup?

PostPosted: Mon Dec 19, 2011 4:50 pm
by oversky
chulai wrote:if your DSL dictionary is called myDict.dsl you have to zip all your media files and rename that zip file myDict.dsl.files.zip
You can also save some disk space if you use dictzip to compress myDict.dsl. The result file would be myDict.dsl.dz

Finally, put all files under the same directory.

oversky wrote:Which zip filename should I use for the files in the sound direcotory?


Sorry I didn't make it clear.
I am not talking about the media files that comes with myDict.dsl.dz.
If you open GoldenDict main window, there is a page in the menu Edit/Dictionary/Source/Sound dirs
If these directories contains lion.wav, than Goldendict will show an extra speaker icon when you look up the word "lion".
This extra speaker icon uses the lino.wav in Sound dirs, not the sound from myDict.dsl.files.zip.

I want to pack these sound files in Sound dirs.

Re: Possible to avoid indexing on startup?

PostPosted: Sun Jan 20, 2013 8:51 pm
by chulai
This can be done since GoldenDict 1.0.1-333-g8e4b384 Early Access Build:

  • Support sound packs in zip archive (.zips)

https://github.com/goldendict/goldendic ... or-Windows