Installing myougiden (a command-line interface to Edict, the Japanese-English dictionary that has an online interface at wwwjdic) in Slackware is possible. This is one way (tested in Slackware 14.0 and 14.1):

  1. Get python3.4 from Slackbuilds and install that
  2. cd to your git folder (or make one)
  3. git clone https://github.com/leoboiko/myougiden.git
  4. su
  5. pip3.4 install romkan
  6. pip3.4 install termcolor
  7. cd [your git folder]/myougiden
  8. python3.4 setup.py install
  9. updatedb-myougiden -f
  10. exit and start using myougiden

(Your version of pip may be different; do ls -l /usr/bin/pip* to check.)

Lots of options, see myougiden -h.
BTW I put this in ~/.bashrc:

alias m='/usr/bin/myougiden' 

Typing m instead of myougiden is somewhat more convenient (so far I haven’t found a nice way to keep it open/make it interactive).

Lots of things to like, for example:

  • many options
  • nice colours and formatting
  • highlighting search words
  • internal option for updating the dictionaries
  • screenshot

Update (2016年 10月 24日 月曜日 09:56:14 CEST)

It is possible to update the dictionary files with updatedb-myougiden -f, which is cool. It is also possible to update myougiden itself, with sudo pip install --upgrade myougiden. I did that and got a broken version (SyntaxError: Non-ASCII character '\xc5' in file /usr/bin/myougiden on line 28, but no encoding declared;) I edited a few lines of the file myougiden, but gut stuck not knowing any python). So how to downgrade? My solution:

pip uninstall myougiden 
git clone git://github.com/leoboiko/myougiden.git 
cd myougiden 
git log 
[choose an earlier commit, I chose da1ffa2956ee0c8efc64567bd248b6ff352be600] 
git checkout da1ffa2956ee0c8efc64567bd248b6ff352be600 
sudo python3 setup.py install 
sudo updatedb-myougiden -f 

Update: Sun Aug 20 12:04:35 CEST 2017

I installed the latest version of myougiden at this date without problems on my laptop, under Slackware 14.2 (following the instructions at the top, only with pip3.6).


I still long for a bugfree version of xjdic...