New user registration is currently disabled due to spam abuse / Регистрация новых пользователей в настоящее время приостановлена из-за злоупотреблений спаммерами

Possible to avoid indexing on startup?

General discussion

Possible to avoid indexing on startup?

Postby klo » Sat Dec 03, 2011 1:22 am

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
klo
 
Posts: 10
Joined: Sat Dec 03, 2011 1:06 am

Re: Possible to avoid indexing on startup?

Postby chulai » Sat Dec 03, 2011 5:10 pm

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
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Possible to avoid indexing on startup?

Postby klo » Sat Dec 03, 2011 7:19 pm

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
Last edited by klo on Sat Dec 03, 2011 9:24 pm, edited 1 time in total.
klo
 
Posts: 10
Joined: Sat Dec 03, 2011 1:06 am

Re: Possible to avoid indexing on startup?

Postby chulai » Sat Dec 03, 2011 9:02 pm

chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Possible to avoid indexing on startup?

Postby klo » Sat Dec 03, 2011 9:21 pm

Excellent! Thanks chulai for you fast reply :)

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

Cheers
klo
 
Posts: 10
Joined: Sat Dec 03, 2011 1:06 am

Re: Possible to avoid indexing on startup?

Postby oversky » Mon Dec 19, 2011 5:46 am

Which zip filename should I use for the files in the sound direcotory?
oversky
 
Posts: 3
Joined: Mon Dec 19, 2011 5:40 am

Re: Possible to avoid indexing on startup?

Postby chulai » Mon Dec 19, 2011 12:31 pm

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?
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm

Re: Possible to avoid indexing on startup?

Postby oversky » Mon Dec 19, 2011 4:50 pm

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.
oversky
 
Posts: 3
Joined: Mon Dec 19, 2011 5:40 am

Re: Possible to avoid indexing on startup?

Postby chulai » Sun Jan 20, 2013 8:51 pm

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
chulai
 
Posts: 464
Joined: Sat Jan 08, 2011 10:11 pm


Return to General

Who is online

Users browsing this forum: No registered users and 49 guests