Other than Kiten, which is the only one I could find but pulls a gazillion dependencies. I'm using GTK and would rather not have Qt / KDE stuff. Even a CLI one would do.
Make your own.<p>They are all based off EDICT data, which is a flat file you could load into an editor and search directly.<p>Get the edic2.gz file here:<p><a href="http://www.edrdg.org/jmdict/edict.html" rel="nofollow">http://www.edrdg.org/jmdict/edict.html</a><p>OK, that is unfortunately not in UTF-8 but in an outdated encoding EUC-JP. No problem, Glibc's character set converter to the rescue:<p><pre><code> $ gunzip -c edict2.gz | iconv -f euc-jp -t utf-8 > edict2
</code></pre>
Some sample lines from the middle of this almost 200,000 line file:<p><pre><code> 発券 [はっけん] /(n,vs,vt) issuing (a banknote, ticket, etc.)/EntL1477300X/
発見 [はっけん] /(n,vs,vt) discovery/detection/finding/(P)/EntL1477310X/
発見器;発見機 [はっけんき] /(n) detector/detecting machine/detecting device/EntL2855554/
</code></pre>
This is super easy to parse.<p>What is that "Ent..." field at the end? The Wiki documentation explains it:<p>"In addition, the EDICT2 has as its last field the sequence number of the entry. This matches the "ent_seq" entity value in the XML edition. The field has the format: EntLnnnnnnnnX. The EntL is a unique string to help identify the field. The "X", if present, indicates that an audio clip of the entry reading is available from the JapanesePod101.com site."<p>The (P) identifies a common usage word, but the documentation says that this is not reliable.