I was finally poking into my old backup disks, recently, seeking a novel draft that I’d not worked on for some years. I found it, pulled out my iWork disks and finally installed and updated Pages, and was pleased at the file conversion.
Except for the language databases.
Anybody know how I can pull the data out of my few old Appleworks databases?
Or does anybody have Appleworks who would be willing to convert a few (3, I think) files into something more modern for me? :mrgreen:
open terminal
cd to the directory where your file is
the type: less
You should get a “contains binary” warning – hit y.
look for something that looks like real text.
Try this: Open Terminal.app (in Utilities) and type in strings followed by a space. Now drop the dictionary file into the Terminal window. It should print a folder hierarchy followed by the name of the dictionary file. Press Enter in the Terminal window.
Do you get any words from the dictionary? If you do, then let us know. Getting it converted into an OS X dictionary should not only be possible, but fairly easy to do. Most likely it will take just one convoluted command line. If you don’t get any words though, it’s probably lost bits.
If you do get a long list of original words, one per line, and nothing else, you could probably go ahead and do this in Terminal:
cd ~/Library/Spelling
cp en en-bak
strings [DROP FILE] | ruby -e 'print STDIN.read.gsub("\n", "\000")' >> en
That will back up your current dictionary and then append all of the entries from the old dictionary to it. This assumes you are using U.S. English. If not, some of that will need to be altered. British English, for instance, is en_GB wherever you see en above.
If things go awfully wrong, execute this command:
cp en-bak en
To revert to the original OS X dictionary.
Don’t do any of the above if you see strange alignment or multiple words per line. That would require more analysis and different codes.
I got the strings thing working. It does have multiple words per line, but at least it’s viewable. I think I’ll be able to at least get the data out and into something else from here.
That will look for newlines, tabs, and spaces either all by themselves or in groups, and convert them into null characters, which is what OS X wants between words.
But yes, we are starting to shoot birds blindfolded while someone standing next to us says which direction to point the gun in.