Wednesday, November 16, 2016

How to convert stardict dictionary file format to any readable format?

http://superuser.com/questions/137007/how-to-convert-stardict-dictionary-file-format-to-any-readable-format

http://tempatmencatat.blogspot.co.id/2016/11/note-on-stardict-tools-in-ubuntu.html


How to convert stardict dictionary file format to any readable format (xml, txt or something)?
shareimprove this question

2 Answers


The stardict-tools tarball downloadable from their website has a stardict2txt tool that you'll need to build from source.
shareimprove this answer
  
It's almost impossible to compile though. I tried on FreeBSD, OS X, and finally Ubuntu. After numerous fixes to the code, I got it to compile but it segfaults when you run it. – Gazzer Sep 2 '10 at 4:29
  
You can now install the tools by sudo apt-get install stardict-tools in Ubuntu. The tools are at/usr/lib/stardict-tools/ – Raptor 2 days ago

I found this step by step guide on how to use the StarDict editor for Windows in order to decompile a StarDict dictionary to XML format.
  • Extract all files to a folder and then launch the file stardict-editor.exe, switch to the tab DeCompile.
  • Now look at the dictionary files of StarDict you got, there should be 3 files : *.idx, *.ifo, *.dz.
  • Rename the *.dz file to *.gz. Use WinZip or WinRAR to extract the *.dict file inside.
  • Rename all the *.dict, *.ifo, *.idx files to a same name.
  • Back to the StarDict Editor program, click Browse and select the *.ifo file and hit Decompile.
  • You will see a new *.txt file inside the folder.
  • Use it with DfM DictionaryGeneration.
shareimprove this answer