![]() |
|
importing revtk stories into anki - Printable Version +- kanji koohii FORUM (http://forum.koohii.com) +-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html) +--- Forum: Learning resources (http://forum.koohii.com/forum-9.html) +--- Thread: importing revtk stories into anki (/thread-1185.html) |
importing revtk stories into anki - cangy - 2008-02-11 I'm currently moving from using this site for studying and reviewing rtk to using anki and other tools that can be used without a net connection. I am of course staying for the forums and to share stories while online, but want to be able to do rtk when mobile and disconnected. There's various ways of exporting one's own stories from this site (http://forum.koohii.com/showthread.php?tid=101) as well as a plugin to import interval data into anki (http://ichi2.net/anki/wiki/Plugins), but nothing to import the stories into anki. There is the start of something in the anki wiki (http://ichi2.net/anki/wiki/CustomDataLoading) but it's not yet usable for this. I'd love to see a plugin or built in function that can fill in fields in existing facts (the current import function just adds new facts). It would be great to be able to export to a text file, make changes to fields, and then import it back to the deck, overwriting fields in the deck if they were changed in the file. This would allow new fields to be populated in a deck as well as supporting complex editing operations on the deck. I have done a nasty hack job on misha's original interval importing plugin to set fields imported from a file, but I don't know any python and can't find any docs on anki plugins or internals, so I'm not sure if it's safe. I just used card.fact[FIELD]=whatever, but noticed anki complaining about non-ascii characters in the fields, so presumably something else is needed. It seems to work ok if the input is pure ascii. Can anyone clue me in? Thanks! importing revtk stories into anki - misha - 2008-02-11 You should be able to pass unicode strings to Anki instead of ascii. Have a look here: http://boodebr.org/main/python/all-about-python-and-unicode Other than that, it sounds like you have the right idea. Misha importing revtk stories into anki - cangy - 2008-02-12 Thanks Misha! I changed this: f = open(filename, 'r') to this: f = codecs.open(filename, encoding='utf-8', mode='r') and that seems to have fixed it! importing revtk stories into anki - bankai - 2008-04-29 Could you please tell me how to do it step by step? I know it's asking a lot. But I think there are many non-techy people who would also be interested in knowing.Thanks importing revtk stories into anki - cangy - 2008-06-06 bankai Wrote:Could you please tell me how to do it step by step? I know it's asking a lot. But I think there are many non-techy people who would also be interested in knowing.ThanksSorry, but that plugin broke when the anki internals changed... I probably won't bother trying to fix it now because now that anki uses sqlite as a db, it ought to be possible and more flexible to do stuff like that by directly manipulating the db. I need to make some more changes to my deck soon, so I'll probably post to the anki forums when I work out the details... importing revtk stories into anki - usis35 - 2008-10-11 Any clue if there is a plugin or an easy way to do this? importing revtk stories into anki - cangy - 2008-10-27 cangy Wrote:Sorry, but that plugin broke when the anki internals changed... I probably won't bother trying to fix it now because now that anki uses sqlite as a db, it ought to be possible and more flexible to do stuff like that by directly manipulating the db.except that the anki db table structure doesn't really lend itself to external manipulation... usis35 Wrote:Any clue if there is a plugin or an easy way to do this?...so I had a go at trying to get my old plugin to work with the new backend. it kinda works but when I import into a second field the previous import is lost, so it might work for just one field like the story, but it might also be doing something nasty to the deck... anyway, you first need to get your stories off this site. see http://forum.koohii.com/showthread.php?tid=101 or better yet, convince fabrice to add stories to http://kanji.koohii.com/status/export.php or similar importing revtk stories into anki - usis35 - 2008-10-27 Maybe we can use an old version of Anki (like 0.9.7.1) , use the plugin, and then update the version. importing revtk stories into anki - cangy - 2008-10-27 usis35 Wrote:Maybe we can use an old version of Anki (like 0.9.7.1) , use the plugin, and then update the version.except that you can't convert a new deck to the old format... if you were just starting out then you can just import the stories that have been merged into an exported unused heisig deck and you wouldn't need a plugin anyway, I changed the plugin to import multiple fields at once and it seems to work. if you can get your stories off here let me know and I'll make the plugin available (or if you aren't already reviewing in anki you can just export a heisig deck, merge, then import without the plugin) importing revtk stories into anki - cangy - 2008-11-01 zazen666 Wrote:I have a Heisig deck that I had previously imported into anki a while ago with scheduled data.it's not decent but it seems to work. if you want to try it I'll clean it up a bit and put on the plugins page importing revtk stories into anki - zazen666 - 2008-11-01 That would be nice, thank you. importing revtk stories into anki - cangy - 2008-11-04 Ok, here's the plugin: http://ichi2.net/anki/wiki/Plugins#overwrite-fields importing revtk stories into anki - zazen666 - 2008-11-04 Cool-Thanks for the hard work! Quick question..I already have the hesig deck in anki-from what I read I assume the anki scheduling will override my old RevtTK schedule, correct? Last, in what filed will the stories appear? I want the stories in the same field as the keyword. do I need to do anything special to achieve this? Cheers importing revtk stories into anki - cangy - 2008-11-05 zazen666 Wrote:Quick question..I already have the hesig deck in anki-from what I read I assume the anki scheduling will override my old RevtTK schedule, correct?I added some instructions to the anki google group thread that should get you going. It doesn't affect scheduling data at all, so you'll keep your anki scheduling. The stories go into whichever field you put them (overwriting what was there before), so I'd recommend you put them in the story field, and if you want the story to appear on the question side just change the model properties (cards->question format). importing revtk stories into anki - cefreddffo - 2009-10-15 I installed the plug-in and could import everything but... where are all the stories displayed? I just see the English keyword and the kanji @_@ I dont really get in which way it changed =S Also, how can i change keywords? On the site I was using my own ones >.< Im sorry, im very bad at computers, and i dont understand Anki. importing revtk stories into anki - sethg - 2010-06-18 Is there a current and fairly simple way to do this? With AnkiMobile out, I wanted to move my kanji back over to Anki, but I don't want to go through and copy and paste each and every story. Any help?
importing revtk stories into anki - Nukemarine - 2010-06-18 Seth, Since you haven't moved to Anki yet, it's really easy. Set up a spreadsheet with all the info you want in Anki. I like using info fromKanken spreadsheet. Then it's just a matter of creating another column to paste your stories. After that, import the spreadsheet data to anki (copy/paste to a text file and save as utf-8), but make damn sure all the columns are accounted for in your deck type. Finally, use the plug-in to import your spacing. Not that easy, but doable. |