ninja33 / ODH

A chrome extension to show online dictionary content.
MIT License
1.43k stars 244 forks source link

内置的柯林斯词典是怎么制作的 #165

Closed cyj98 closed 4 years ago

cyj98 commented 4 years ago

请教下有什么好的制作内置词典的方法。 我想制作一个习语的内置词典,我能想到的只是下载mdx用mdx export后用爬虫工具抓取,不过我那个词典排版爬虫不好写。

ninja33 commented 4 years ago

用mdx转换导出工具,先把mdx文件转换成一行一个词条的txt文本。然后用自己熟悉的语言,转换成javascript可用的json格式,在插件加载的时候,加载这个json,就可以按照词条键值索引了

发自我的iPhone

在 2020年9月16日,20:23,cyj98 notifications@github.com 写道:

 请教下有什么好的制作内置词典的方法。 我想制作一个习语的内置词典,我能想到的只是下载mdx用mdx export后用爬虫工具抓取,不过我那个词典排版爬虫不好写。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cyj98 commented 4 years ago

谢谢,明白了,没注意到要一行一行看。