[% INCLUDE full_header.tmpl title="Cocoa/Perl CEDICT interface - sporkstorms.org" %]
CocoaPerlCEDICT is an OS X Cocoa interface to the
CEDICT Chinese English Dictionary (Mandarin/Putonghua).
This is the shiny new version. If for whatever reason you want the old
interface to Lingua::ZH::CEDICT, go to
the old CocoaPerlCEDICT page.
CocoaPerlCEDICT provides an interface to a Chinese-English
dictionary. It supports looking up words by their English definition,
traditional Chinese text, simplified Chinese text,
and Pinyin pronounciation (optionally filtering only those with
an exact tone match).
The layout of its interface is partly based on that of OriDict, and the application icon from it is used.
notable features:
pin1 yin1 becomes pīn yīn
This application is a testiment to the virtues of rapid development using CamelBones. The original version was thrown together in under an hour! This new version (with many more features) took an additional few hours, which is still quite impressive when compared to how long this application would take to write in Objective C.
application
(0.98 MB - contains the dictionary data)
source
(1.9 MB - contains the dictionary data)
If you want to run this program on an earlier version of OS X and are willing to put a little work into it, let me know and I'll be glad to help you get it running. I don't have a 10.2 or 10.1 installation to work with, so I will need your assistance to test it.
If you just want to run CamelBones apps,
install the runtime framework.
In order to write your own Cocoa/Perl applications,
install the developer package.
Storable.pm Perl module
You should already have this module installed on your system.
If the program does not work, it may not be.
An easy way to determine whether it's installed is
to bring up the Terminal
program and type
perl -MStorable -e "1"
If no errors are spit out, you're fine.
If you find that you do not have the module installed, you'll need to install it manually. Here's a quick overview in case you've never installed Perl modules before. This may seem rather troublesome.
root account
enabled.
Here's how.
Terminal in your
Applications -> Utilities folder).
sudo perl -MCPAN -e "install Storable".
It will ask for a password. If it said something like
"sorry try again", "you aren't authorized..." or
anything to that effect, continue reading. Otherwise
skip to the next step.
su, then enter the password.
if it didn't spit out any errors, type
perl -MCPAN -e "install Storable".
This heart of this application uses the Camel Bones framework. Camel Bones allows you to use Cocoa with Perl, and is absolutely wonderful for quickly writing GUI applications. It's written by Sherm Pendley and released as free software (under the LGPL).
The CEDICT is a Chinese/English dictionary project started by Paul Denisowski. More information and the original dictionary files can be found here.
CocoaPerlCEDICT uses a class called
RowResizableTableView written by Evan Jones. It allows
variable row heights within an NSTableView (he's also
written a similar class for NSOutlineViews)
Check it out
here
The application icon is from OriDict
The essence of, and lookup table for the
MyCEDICT::Definition::pinyin_utf8() method is from
the Lingua::ZH::CEDICT Perl module.
CocoaPerlCEDICT is Copyright © 2004, Mark A. Stratman <mark@sporkstorms.org>
It is licensed under the GNU General Public License.
You can redistribute it and/or modify it under the terms of the
GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option)
any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
[% END %] [% INCLUDE footer.tmpl %]