
Looking at the traffic my blog gets, there are regular visitors to the blog post explaining my (unsuccessful) tentatives at understanding the USB connection of my Ex-Word Dataplus 2. The libexword tool seemed to have solved the issue, but I never managed to get it compile on Mac OS X.
On a whim, I checked if I could fix that. The core problem is that the configure script is not able to find where various libraries are installed (I use MacPorts). So I could either try to fix the configure script, or just write a 30 lines Makefile. I did the latter and managed to compile the tool and run it.
If you want to build that tool, you need to do the following:
- Install the developer tools
- Install MacPorts
- Install the
libusb
library - Install the
libiconv
library - Install the
readline
library - Download the libexword source code
- Download my Makefile and put it into the
src
directory - Edit the
src/util.cc
file and remove all the macro blocks guarded bydefined(__APPLE__) && defined(__MACH__)
as paradoxically, the prevent compilation. They are file-system functions that rely on the long dead Carbon library, the Unix library works fine. - type
make exword
in thesrc
directory.
While the code compiles and runs, it does not actually work, the tools detects the dictionary on the USB port, but connection fails. This is not very surprising as my model is now quite old, and not among the list of supported dictionaries.
Truth to be told, being able to add files to this dictionary would have been useful when I lived in Japan, and before the rise of smartphones.