Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install myougiden

How to install myougiden

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install myougiden
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.8.3 Failed View build log
Linux (64-bit)
0.8.3 Failed View build log
0.8.3 Available View build log
 
License
GPLv3
Imports
Lastest release
version 0.8.3 on Mar 4th, 2013

myougiden is a command-line, Japanese/English English/Japanese dictionary. It's based on EDICT (JMdict), the venerable collaborative project. It's currently functional, if a bit rough in the edges.

Features:
  • Fully Unicode-aware.
  • Regular expression support.
  • Partial, full, and whole-word queries.
  • Optional rōmaji input and output.
  • Intelligently find out what kind of query is intended.
  • Option for tab-separated output, easily manipulable with Unix tools. (beta)
  • Full color output, including partial match highlighting. No seriously, this thing has a lot of color. I mean we're talking Takashi Murakami material here.
  • Handles JMdict restricted readings and senses intelligently.
  • Auto-pager, auto-color, auto-nice, and other small niceties.

myougiden saves EDICT data in sqlite3 format. This costs some disk space (currently about 53MiB), but with indexes, it seems to be reasonably fast.

Sample usage

Some example queries:

$ myougiden -h             # long help
$ myougiden tea ceremony   # guess what to query
$ myougiden 茶             # ibid
$ myougiden -p 茶          # include partial matches
$ myougiden -p -f 茶       # ...but limit to frequent words
$ myougiden -p -f -t 茶    # ...and tab-separated, single-line output
$ myougiden -x '茶.'       # regexp search
$ myougiden sakura         # if no match is found, treat as rōmaji
$ myougiden -r kanji       # forces rōmaji
$ myougiden -a uK          # reference for EDICT-style abbreviations

Installation

myougiden needs Python 3 and pip. In Debian/Ubuntu, you can install them like this:

$ sudo apt-get install python3 python3-pip

Then install myougiden using pip:

$ sudo pip-3.2 install myougiden # use your version

Then, you need to compile the dictionary database at least once:

$ sudo updatedb-myougiden -f
# This command downloads and compile JMdict.
# It's a bit heavy, go have some coffee...

That's it, have fun!

EDICT/JMdict is a frequently updated dictionary. If you'd like to keep up with new entries and corrections, consider adding updatedb-myougiden -f to cron (for example, in /etc/cron.weekly/myougiden ).

Upgrading

Just upgrade the pip package:

$ sudo pip install --upgrade myougiden
Installing in Debian stable

As of this writing, Debian squeeze has no python3-pip. You can install it manually like this:

$ sudo apt-get install python3.1 curl
$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python3.1 distribute_setup.py
$ curl -O https://raw.github.com/pypa/pip/master/contrib/get-pip.py
$ sudo python3.1 get-pip.py

Now you have a pip-3.1 to install any python3 pip packages!

Python ≤ 3.1 needs the package argparse

$ sudo pip-3.1 install argparse

Finally, install as above:

$ sudo pip-3.1 install myougiden
$ sudo updatedb-myougiden -f
Installing from sources
Required software:
  • Python 3
  • rsync (recommended)
Required python packages (available on pip):
  • romkan
  • termcolor
  • argparse (only for Python ≤ 3.1)
  • psutil (recommended; only for Python ≤ 3.2)

To install from github:

$ git clone git://github.com/leoboiko/myougiden.git
$ cd myougiden
$ sudo python3 setup.py install

Subscribe to package updates

Last updated Mar 4th, 2013

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.