Back

jmdict vs edict2

#12
(2016-06-11, 4:08 am)Roketzu Wrote: I have built a somewhat large vocabulary deck in Anki, 99% of which has the English definition taken from EDICT (not sure if it's 1 or 2), and I'm wondering if there is any kind of batch process I could perform on around 40K notes to output definitions taken from JMDict.

The only piece of software I know of that can perform this sort of function is Epwing2Anki, and unfortunately it is only compatible with EDICT, not JMDict. It uses a .sqlite version of EDICT to pull from I believe, and this may be a question for the author, but he unfortunately hasn't been around here in a while, so I'll ask you just in case, if that's OK. Would it be possible to TRICK or DECEIVE this piece of software into thinking it's pulling from EDICT when in fact you have sneakily replaced the edict.sqlite with jmdict.sqlite? Now, this is even assuming there is such a thing available, I don't know and obviously I should have researched this first before typing this out, but alas here we are.

I'm not a coder and am probably ignorant of a whole slew of reasons why this wouldn't work, perhaps even just the difference in format between the 2 dictionaries would make this task impossible, but what say you sir? If this is a no-go, would you know of any other way to go about such a task?

You could export anotherjohn's deck as a text file and import back into your edict deck with update duplicates turned on.  You would need to tag your existing cards sot hat you can find and delete the cards that aren't duplicates  You could even create fields for all of the fields that you don't want to overwrite.

If, for some reason this doesn't work,  I would imagine you could rename the sqlite database, but you would also need to make sure the structure of the databases are the same.  This may or may not not be as complicated as it sounds.  sqlite databases are kind of like excel spreadsheets with columns and rows, so you could conceivably open (a copy) of the database with a sqlite browser and change the names of the columns to match edict.sqlite and your add-on wouldn't know the difference.  However, it's possible the database is more complicated, with several different tables (sheets in my excel analogy) and it could get tricky.  But it may be worth looking into it because there's a very good chance each database is simply one big table with the columns named differently.
Reply

Messages In This Thread
jmdict vs edict2 - by yogert909 - 2016-06-10, 8:43 pm
RE: jmdict vs edict2 - by jimeux - 2016-06-10, 9:25 pm
RE: jmdict vs edict2 - by Roketzu - 2016-06-11, 4:08 am
RE: jmdict vs edict2 - by pm215 - 2016-06-11, 8:44 am
RE: jmdict vs edict2 - by Roketzu - 2016-06-11, 9:23 am
RE: jmdict vs edict2 - by jimeux - 2016-06-12, 5:45 am
RE: jmdict vs edict2 - by Roketzu - 2016-06-12, 6:08 am
RE: jmdict vs edict2 - by yogert909 - 2016-06-13, 1:00 pm
RE: jmdict vs edict2 - by Roketzu - 2016-06-13, 2:35 pm
RE: jmdict vs edict2 - by yogert909 - 2016-06-11, 2:43 am
RE: jmdict vs edict2 - by anotherjohn - 2016-06-11, 4:46 am
RE: jmdict vs edict2 - by Roketzu - 2016-06-11, 8:18 am
RE: jmdict vs edict2 - by pm215 - 2016-06-11, 10:37 am
RE: jmdict vs edict2 - by yogert909 - 2016-06-13, 2:44 pm
RE: jmdict vs edict2 - by Roketzu - 2016-06-13, 3:36 pm
RE: jmdict vs edict2 - by Roketzu - 2016-06-13, 6:58 pm