question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compress StarDict 'dict-data.dict' to 'dict-data.dict.dz'

See original GitHub issue

Most readers should be able to read ‘.dz’ (compressed dictionaries) files nowadays.

I suggest we also compress the StarDict dict-data.dict files into dict-data.dict.dz. Upon successful compression the .dict file can be removed. Saves much space.

I use dictzip for that. On Debian derivatives, it can usually be got, together with dictunzip and dictzcat, from the package repos, using:

sudo apt install dictzip

If invoked without other parameters, dictzip will remove the originating .dict file, so the following command should be enough:

dictzip dict-data.dict

(from within the data/XX folder)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
lasconiccommented, Feb 1, 2022
1reaction
lasconiccommented, Feb 1, 2022

If it’s only for the StarDict output, we could probably call pyglossary with the relevant option to get a dict.dz file instead .dict.

https://github.com/ilius/pyglossary/blob/master/doc/p/stardict.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

convert a stardict dictionary to txt - gists · GitHub
- `compressed`: indicate whether the .idx file is compressed. - `index_offset_bits`: the offset field length in bits. """.
Read more >
How to convert stardict dictionary file format to any readable ...
Now look at the dictionary files of StarDict you got, there should be 3 files : *.idx, *.ifo, *.dz. Rename the *.dz file...
Read more >
Color Dict - Social & Mobile Apps
StarDict compatible multi source dictionary. ... Dict data stored in the SD card. ... Copy compressed file(tar.bz2, *.tar.gz, *.zip) to sdcard /dictdata ......
Read more >
GoldenDict
dict (.dz) dictionary files; ABBYY Lingvo .dsl source files, together with abbreviations. The files can be optionally compressed with dictzip. Dictionary ...
Read more >
[OmTdev] [PATCH 0/2] delayed loading of stardict dictionary ...
Hi, OmegaT loads an entire dictionaries' articles in memory when opening project. This consume memories and CPU time. Fortunately StarDict dictionary format ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found