请问如何将JMdict.gz解压后的文件转换为ebwin或者golddict可读的辞典文件?

之前用ebwin的时候一直没发现edit2,今天谷歌了一下,突然发现了新大陆,原来这个项目在90年代就已经开始至今了

这个是关于JMdict的介绍
JMdict-EDICT词典项目

问了gpt,他告诉我要用ebstudio来转换换,于是下载了ebstudio2(旧版已不支持,且新版需要付费,否则限制一部分功能),但还是不会用,所以想请教一下各位

:face_holding_back_tears: :face_holding_back_tears: :face_holding_back_tears:

我没尝试过,可以用这个试试:

感谢回复,但是JMdict.gz这个包解压后的文件,完全没有后缀,不知道是什么文件

上面的项目里提供了 json 文件的下载链接。

Usage

Step 1: Download the script from this repo.

Step 2: Grab the latest release of jmdict-eng-+.json.zip from scriptin’s jmdict-simplified repo:

Extract the .zip. Move/copy the .json to the folder directory same as the script.

Step 3: Open the .py script. Update the fields of input_file and output_file.

Step 4: Run the script and wait for it to complete.

上面这几步完成了,最后生成了一个800多mb的txt文件,我从mdict官网下载了mdxbuilder4.0,但是没办法再把生成的txt文件打包成mdx文件

尝试使用下面链接的 mdict-utls 生成词典。我制作了一份:(链接)

 mdict -a jmdict-examples-eng-3.6.1.txt jmdict-examples-eng-3.6.1.mdx

或者更复杂一些,自行添加标题和描述:

mdict --title title.html --description description.html -a dict.txt dict.mdx
1 个赞

太棒了!非常感谢你的帮助!!!:+1: :+1: :+1: