Anki vs RevTK

Index » Learning resources

Reply #26 - 2008 January 04, 1:34 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

Oh, cool.  Thanks for the link.  It's definitely useful information.  To actually import any of that into Anki you will need to connect the framenum with the actual Kanji and Heisig keyword, but that's not too hard to do.

The hard part would be getting the scheduling data in.  It doesn't look like the present import function in Anki supports importing scheduling info along with the facts.  There also doesn't seem to be a way of editing the progress of added cards (although you can reset the progress or undo your last answer in the `Edit Deck' dialog).

The scheduling data seems to be stored in the deckname.anki files, which aren't really human readable, so you can't really whip out your favourite text editor and change stuff manually...

Nothing is impossible, though smile -- perhaps resolve might be able to shed some light on the subject.

Reply #27 - 2008 January 04, 7:43 am
resolve Member
From: 山口 Registered: 2007-05-29 Posts: 919 Website

You'll need to do it manually using the programming interface to Anki. It could be done in a plugin pretty easily. I'm busy working on other stuff at the moment, though.

Reply #28 - 2008 January 04, 7:28 pm
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

resolve wrote:

You'll need to do it manually using the programming interface to Anki. It could be done in a plugin pretty easily. I'm busy working on other stuff at the moment, though.

Thanks...  I might play around with this in the next day or so.

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #29 - 2008 January 06, 8:50 pm
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

The initial version of the RevTK import plugin is available here:

http://ichi2.net/anki/wiki/Plugins

If you give it a try, please let me know how it goes.

Cheers,
Misha

Reply #30 - 2008 January 07, 2:36 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

Hi Misha,
That is really nice of you for putting that together and is appreciated.

Question:

The plugin will also refuse to work on a modified deck. A modified deck is one that has had any reviews saved to it.

This is done to prevent accidental loss of scheduling information in an existing deck. If you insist on using a modified deck, you may do so after resetting the progress of all the cards in the deck. To do this:

    * Open the "Edit Deck" dialog
    * Select all the cards in the deck (click on first card, Shift-click on the last card)
    * Select "Reset Progress"
    * Click OK to confirm.
    * Save the deck. Warning: you will lose all the progress info from the deck.

In other words, it is not possible to combined an imported RevTK deck into my current deck, without reseting all the decks entire process?

The ideal situation would be to combined the two decks, (without having to reset process of 1000 plus cards) because at this point it is not possible, I believe, to switch between decks via a keitai.

Maybe resolve knows a work around?

Anyways, it looks pretty sweet, this plug in, and I will likely try it over the next day or so. I imagine other RevTK users  will find it usefull as well

Thanks

Reply #31 - 2008 January 07, 4:06 am
resolve Member
From: 山口 Registered: 2007-05-29 Posts: 919 Website

You can switch decks with a keitai, thanks to a request by JimmySeal. Have a look at the last link in the email that was sent to your cell phone.

Why not run the import on a fresh copy of Heisig, delete the first 1000 cards, and sync with your old deck?

Reply #32 - 2008 January 07, 4:15 am
resolve Member
From: 山口 Registered: 2007-05-29 Posts: 919 Website

Thanks a lot for the plugin by the way, Misha :-)

Reply #33 - 2008 January 07, 5:40 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

Hi zazen666,

zazen666 wrote:

Hi Misha,
That is really nice of you for putting that together and is appreciated.

Question:

... snip ...

In other words, it is not possible to combined an imported RevTK deck into my current deck, without reseting all the decks entire process?

No worries smile

Yeah, it's not possible to do that with the current plug-in.  Merging things is always a bit tricky, and requires a considerable amount of work to get right, which is why I decided to avoid that problem altogether smile

You could always modify the plugin to do exactly what you want it to do.  It actually puts in the effort to check the whole deck for modifications, so if you remove that step,
you're pretty much halfway there.

Before you do even try that, I'd recommend you try resolve's approach of importing, deleting and merging.  It's probably the simplest way to get things done.

Reply #34 - 2008 January 07, 5:41 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

resolve wrote:

Thanks a lot for the plugin by the way, Misha :-)

No worries mate.  I use Anki all the time for vocab, just felt like giving something back smile

Reply #35 - 2008 January 08, 7:20 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

resolve wrote:

Why not run the import on a fresh copy of Heisig, delete the first 1000 cards, and sync with your old deck?

Well, actually, my current MYDECK contains about 1000 sentences, not Heisig 
kanji, which is why I am trying to merge RevTK data with MYDECK in anki (and Ideal not have to switch between two decks).

Resolve, I saw you mentioned in another thread that it is possible to combined decks via SYNC? did I miss read?

Reply #36 - 2008 January 08, 7:28 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

zazen666 wrote:

Well, actually, my current MYDECK contains about 1000 sentences, not Heisig 
kanji, which is why I am trying to merge RevTK data with MYDECK in anki (and Ideal not have to switch between two decks).

Does that mean that your deck doesn't use the `Heisig' deck model?  Or is there more than one model allowed per deck? The way the plugin currently works is that it checks for the `Heisig' model, and if it's not there, it won't touch the deck.

I don't know if it would be difficult to work around that (but I do know for sure there's definitely room for improvement in that plugin, since I just conjured it up in one afternoon).  If you're willing to let me have a look at your card deck, I would be able to tell you more.

Reply #37 - 2008 January 08, 7:57 am
wrightak Member
From: Tokyo Registered: 2006-04-07 Posts: 873 Website

As far as I'm aware, you can have as many models as you like in one deck. I have about five I think. I see no reason for having more than one deck.

Reply #38 - 2008 January 08, 8:10 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

misha wrote:

Does that mean that your deck doesn't use the `Heisig' deck model?

Yes, that is right. When I created the deck, I just selected "Japanese". I have never used Anki for studying Heisig.

Reply #39 - 2008 January 08, 8:11 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

wrightak wrote:

As far as I'm aware, you can have as many models as you like in one deck. I have about five I think. I see no reason for having more than one deck.

Then how does one combined decks? My current deck has different "Models", but I think what the plug is does is create a sepearate deck, which I want to combined with my current, and then have one deck.

Reply #40 - 2008 January 08, 8:21 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

zazen666 wrote:

Then how does one combined decks? My current deck has different "Models", but I think what the plug is does is create a sepearate deck, which I want to combined with my current, and then have one deck.

Kind of.  The current plugin only works with a new deck -- meaning if you don't have one already, then you will have to create it yourself and then import into that.

Did you try resolve's suggestion?  It may get you where you want to go.

As far as merging decks, then you could try this:

1) Create deck A.  Sync with server (server gets the whole deck)
2) Create deck B.  Don't sync just yet.  Fiddle around with it to your heart's content.  Before you sync, change the name of the deck to sync with to deck A (Edit/Deck Properties).  The contents of B will thus be copied to deck A on the server side when you sync.
3) Open deck A.  Sync with server.  The cards added in step 2) will be added to your local copy of deck A.

I haven't actually tried doing this, but I imagine that that would work for merging.  Anyone, please correct me if I'm wrong.

I'll think about removing the `new deck' restriction when I next have a bit of spare time -- the weekend, perhaps.  My main concern with doing this is that bulk-importing stuff into a new deck is inherently less risky than doing the same to a deck you've been working on for a while.  Sure, most things can be restored, but it's a headache I (and most people) would rather avoid.

I'll shout out when I upload the next version.

Edit: I forgot to answer your other question.

Last edited by misha (2008 January 08, 8:25 am)

Reply #41 - 2008 January 08, 8:31 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

misha wrote:

1) Create deck A.  Sync with server (server gets the whole deck)
2) Create deck B.  Don't sync just yet.  Fiddle around with it to your heart's content.  Before you sync, change the name of the deck to sync with to deck A (Edit/Deck Properties).  The contents of B will thus be copied to deck A on the server side when you sync.
3) Open deck A.  Sync with server.  The cards added in step 2) will be added to your local copy of deck A.

That seems like that would work. I didn't think of that. I might give it a try tomorrow.

I guess as long as I back up my current MYDECK, I can always restore if something goes wrong, right?

Edit-It appears that I dont have a plugin directory in my anki folder?

Last edited by zazen666 (2008 January 08, 8:41 am)

Reply #42 - 2008 January 08, 8:47 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

zazen666 wrote:

I guess as long as I back up my current MYDECK, I can always restore if something goes wrong, right?

Backing up your deck is a good idea.  However, if you did something horrible to your deck and then synchronised it with the server before realising what you've done, then restoring MYDECK on just your local computer wouldn't be enough.  You'd have to restore the server-side MYDECK somehow as well.  No information would be lost, but you'll be left with a mess that will need some cleaning.

Also, Anki looks like it keeps backups of your deck (in the .anki/backups directory).  So your data would be restorable, with a bit of effort.  Luckily, I haven't managed to mess up my card decks yet, so my experience with Anki backups is minimal.

Reply #43 - 2008 January 08, 9:03 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

Well, I am game to give it a try, but cant seem to locate the plugin directory.
Lame-Am I missing something here? trying to cd to it with the terminal gives it a bash as well.

zazen666@zazen666-laptop:~$ cd /home/zazen666/anki-0.4.1/plugins

bash: cd: /home/zazen666/anki-0.4.1/plugins: No such file or directory

Reply #44 - 2008 January 08, 9:06 am
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

try looking in /home/zazen666/.anki/plugins

It's a hidden directory (dotfile).

Reply #45 - 2008 January 08, 9:16 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

okay-found the plug in directory.

testing now

Last edited by zazen666 (2008 January 08, 9:24 am)

Reply #46 - 2008 January 08, 9:39 am
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

Well, so far no luck.

Trying to create a new deck with Heisig as the model just gives me an empty deck.

resolve Member
From: 山口 Registered: 2007-05-29 Posts: 919 Website

Open the "heisig" sample deck.

Reply #48 - 2008 January 08, 6:40 pm
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

resolve wrote:

Open the "heisig" sample deck.

Deck->Open sample 
kicks me to:   
home/mydeck/media

Which does not contain any sample decks.

Creating a new deck with "heisig" as the model, in the end only gives me an empty deck, despite folloowing the steps for the plug in.

Reply #49 - 2008 January 08, 6:54 pm
misha Member
From: Sydney Registered: 2007-04-05 Posts: 99

sample decks are in anki-0.4.1/libanki/anki/samples

Reply #50 - 2008 January 08, 7:09 pm
zazen666 Member
From: japan Registered: 2007-08-09 Posts: 667

Hey-that seems to have done it! I created the deck, checked it out, and synced with my old deck! Now I can do my heisig reviews (to get thoses tricky 200-300 kanji that I cant quite remember) along with sentences along with anki.

What is super cool and I didnt even know was that the Hesig keyword in Anki links directly the the STORY section of this site! Awsome!

Thank you Misha (and always of course, resolve) for putting that togehter and answering my lame computer questions.

I'm thinking many RevTK users will find this pretty usefull, so later I will start a new post to let folks know.

Thanks again