Have used GoldenDict both on Linux and Windows for years, tried getting it to run on OSX but the preview builds are still very buggy. On OSX Mavericks (10.9.2) GD does compile (only tried with qtsdk 4.8.5) but when launched only the app window appears, the configuration window won't show up and other menu items have no effect.
I decided GD is still not there yet, and considering that all my dictionaries are in DSL or BGL format I figured out a way to use them with the built-in OSX Dictionary.app.
The DSL workflow:
1. Convert DSL from UTF-16 to UTF-8:
- Code: Select all
iconv -f UTF-16 -t UTF-8 dict_utf16.dsl > dict_utf8.dsl
2. Using pyGlossary python project, convert UTF-8 DSL to AppleDict XML:
- Code: Select all
pyglossary.pyw --read-format=ABBYYLingvoDSL --write-format=AppleDict dict_utf8.dsl dict.xml
3. Using Command Line Tools for Xcode and Dictionary Development Kit:
- Code: Select all
make
make install
Running `make install` will copy the compiled dictionary to `~/Library/Dictionaries` and you will now be able to enable your brand new dictionary in the Dictionary app under Preferences.
The pyglossary project is located here:
https://github.com/ilius/pyglossary (I have no connection to the author).
Command Line Tools for Xcode and Dictionary Development Kit can be downloaded from
http://developer.apple.com/downloadsNB. Dictionary Development Kit is part of Auxiliary Tools for Xcode.
And finally here is a bash script that automates the entire process for the DSL format:
https://gist.github.com/elFua/8540294Run the bash script without arguments to see usage notes. NB. You will need to edit the script and set the correct value of `PYGLOSSARY_HOME`, by default it is `~/projects/pyglossary/pyglossary`.
The BGL conversion process is simpler:
- Code: Select all
pyglossary.pyw --read-options=resPath=OtherResources --write-format=AppleDict dict.bgl dict.xml
make
make install
A bash script is available at
https://gist.github.com/elFua/8541228To get this toolchain to work might require reading the readme files for pyglossary and Apple Dictionary Development Kit. I have included the most important points in the help section of the bash script for DSL.