node-cc-cedict icon indicating copy to clipboard operation
node-cc-cedict copied to clipboard

Update sqlite database

Open ndrut opened this issue 10 years ago • 2 comments

Hello,

Can you please provide the format of converting the textual cc-cedict dump into SQLite? I have no problem contributing functionality to grab a new copy and update the database, I just want to ensure it's in the correct formatting.

Thanks

ndrut avatar Jan 05 '16 22:01 ndrut

You can see how I parsed cc-cedict.txt here: https://github.com/johnheroy/node-cc-cedict/blob/master/parser/dictionary-parser.js

I think I used the .txt version of the dictionary downloaded from here.

I am fine if you want to re-parse the latest version of the dictionary and then send me a PR with the updated .sqlite database. Thanks!

johnheroy avatar Jan 05 '16 22:01 johnheroy

Thanks for the lib! For anyone else reading in the future, I made a fork with an updated DB (Nov 2020) at https://github.com/learncoupling/coupling-chinese-dict

ngokevin avatar Dec 01 '20 20:12 ngokevin