TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Offline Japanese Dictionary for Linux?

6 pointsby ananiochitaalmost 3 years ago
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.

3 comments

kazinatoralmost 3 years ago
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:&#x2F;&#x2F;www.edrdg.org&#x2F;jmdict&#x2F;edict.html" rel="nofollow">http:&#x2F;&#x2F;www.edrdg.org&#x2F;jmdict&#x2F;edict.html</a><p>OK, that is unfortunately not in UTF-8 but in an outdated encoding EUC-JP. No problem, Glibc&#x27;s character set converter to the rescue:<p><pre><code> $ gunzip -c edict2.gz | iconv -f euc-jp -t utf-8 &gt; edict2 </code></pre> Some sample lines from the middle of this almost 200,000 line file:<p><pre><code> 発券 [はっけん] &#x2F;(n,vs,vt) issuing (a banknote, ticket, etc.)&#x2F;EntL1477300X&#x2F; 発見 [はっけん] &#x2F;(n,vs,vt) discovery&#x2F;detection&#x2F;finding&#x2F;(P)&#x2F;EntL1477310X&#x2F; 発見器;発見機 [はっけんき] &#x2F;(n) detector&#x2F;detecting machine&#x2F;detecting device&#x2F;EntL2855554&#x2F; </code></pre> This is super easy to parse.<p>What is that &quot;Ent...&quot; field at the end? The Wiki documentation explains it:<p>&quot;In addition, the EDICT2 has as its last field the sequence number of the entry. This matches the &quot;ent_seq&quot; entity value in the XML edition. The field has the format: EntLnnnnnnnnX. The EntL is a unique string to help identify the field. The &quot;X&quot;, if present, indicates that an audio clip of the entry reading is available from the JapanesePod101.com site.&quot;<p>The (P) identifies a common usage word, but the documentation says that this is not reliable.
Laaasalmost 3 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;obfusk&#x2F;jiten" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;obfusk&#x2F;jiten</a> ?
评论 #32425190 未加载
severinealmost 3 years ago
<a href="http:&#x2F;&#x2F;download.huzheng.org&#x2F;babylon&#x2F;japanese&#x2F;" rel="nofollow">http:&#x2F;&#x2F;download.huzheng.org&#x2F;babylon&#x2F;japanese&#x2F;</a>
评论 #32424866 未加载