Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions that work with Wenlin 4.1 #4

Open
gbraad opened this issue Feb 25, 2023 · 0 comments
Open

Instructions that work with Wenlin 4.1 #4

gbraad opened this issue Feb 25, 2023 · 0 comments

Comments

@gbraad
Copy link
Contributor

gbraad commented Feb 25, 2023

While the code could be altered, it has been unmaintained and won't work with newer versions. This is a short summary that works with Wenlin 4.1:

pre-requisites

gem install wenlin_db_scanner
gem install rexml

extract dictionary

ln -s yinghan.wenlindb W4DB/yinghan.db
wenlin_dict W4DB en-zh > en_zh.json
ln -s cidian.wenlindb W4DB/cidian.db
wenlin_dict W4DB zh-en > zh_en.json
ln -s zidian.wenlindb W4DB/zidian.db
wenlin_dict W4DB hz-en > hz_en.json

hanzi

ln -s cdl.wenlindb W4DB/cdl.db
wenlin_hanzi W4DB > hanzi.json

parts-of-speech

ln -s ab_ec.wenlindb W4DB/ab_ec.db
wenlin_parts W4DB/ en > en_parts.json
ln -s ab_ce.wenlindb W4DB/ab_ce.db
wenlin_parts W4DB/ zh > zh_parts.json

Note: most likely incomplete

raw dump

wenlin_dbdump W4DB/yinghan.db > yinghan.out
wenlin_dbdump W4DB/cidian.db > cidian.out
wenlin_dbdump W4DB/zidian.db > zidian.out
wenlin_dbdump W4DB/ab_ce.db > ab_ce.out
wenlin_dbdump W4DB/ab_ec.db > ab_ec.out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant