4 ms·
Offline Japanese Dictionary for Linux?
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.
- severine 4y agohttp://download.huzheng.org/babylon/japanese/ http://download.huzheng.org/babylon/japanese/
- ananiochita 4y agoThank you, but how am I supposed to use these files ? Extracting a tarball leaves a bunch of files, some readable, some not so much. Looks like this is meant to be used as data for an application.
- severine 4y agoSorry, I'm in a hurry, maybe shouldn't have posted haha! See here: https://github.com/ilius/pyglossary#readme https://github.com/ilius/pyglossary#readme
- ananiochita 4y agoThat's an interesting tool, and not just for this one dictionary, thanks.
- sharmin123 4y ago[dead]
- Laaas 4y agohttps://github.com/obfusk/jiten https://github.com/obfusk/jiten ?
- ananiochita 4y agoOh, this is perfect. Thank you so much. It even has a local web interface. "pip install jiten" and done. Bonus : works in Termux on Android as well.
- kazinator 4y agoMake your own. They are all based off EDICT data, which is a flat file you could load into an editor and search directly. Get the edic2.gz file here: http://www.edrdg.org/jmdict/edict.html http://www.edrdg.org/jmdict/edict.html 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: $ gunzip -c edict2.gz | iconv -f euc-jp -t utf-8 > edict2 Some sample lines from the middle of this almost 200,000 line file: 発券 [はっけん] /(n,vs,vt) issuing (a banknote, ticket, etc.)/EntL1477300X/ 発見 [はっけん] /(n,vs,vt) discovery/detection/finding/(P)/EntL1477310X/ 発見器;発見機 [はっけんき] /(n) detector/detecting machine/detecting device/EntL2855554/ This is super easy to parse. What is that "Ent..." field at the end? The Wiki documentation explains it: "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." The (P) identifies a common usage word, but the documentation says that this is not reliable.