Dictionary seems to be several versions ahead of the Apple documentation (2007). I found a good blog post about it, but everything seems different now. I installed Xcode (including the command line tools) but nothing is where it's supposed to be (e.g. /Developer does not get created and there is no Dictionary\ Development\ Kit). I would like to make a pretty complicated dictionary, so I'd like to make this work instead of convert file types several times.
Xcode no longer comes with Dictionary Development Kit, but you don't even need Xcode to use it.
- Register a free developer account and download the auxiliary tools package from developer.apple.com/downloads *It is now called: Additional Tool for Xcode (look for the latest version)
- Move the Dictionary Development Kit folder to
/Applications/Utilities/DictionaryDevelopmentKit/(without the spaces), and copy the project_templates folder to
~/Desktop/project_templates/Makefileand change DICT_BUILD_TOOL_DIR from
/DevTools/Utilities/Dictionary Development Kitto
cd ~/Desktop/project_templates/; make && make install
The dictionary should show up in Dictionary.app after you quit and reopen it. After that, try editing MyDictionary.xml or MyDictionary.css. The dictionary name is the same as CFBundleName in the Info.plist, and the bundle name is DICT_NAME in the Makefile.
If the lookup popovers show results from an older version of the dictionary, try logging out and back in. Terminating com.apple.lookupd or removing
~/Library/Caches/com.apple.Dictionary* didn't seem to work.
Here is a step by step procedure for converting dictionaries in open formats to AppleDict source, and compiling for the OSX Dictionary.app: https://apple.stackexchange.com/a/119166/66812
Everything that used to be in /Developer is now in Xcode.app/Contents/Developer with Xcode normally in /Applications, but you could put it anywhere in reality.
Other than that, you should be able to pop the dictionary file of your choosing either in the System Dictionary like the blog article you linked or only within Xcode for use to expand its dictionary.
I wrote a little java application toDictionaryXML to add entries to a custom dictionary. It is not well coded, the functionality is pretty poor and it is not easy to install. But still it saves me a lot of time.