Labels

3G (1) 8600GT (1) AI (4) amazon (1) API (1) apple (3) apple mail (1) atlassian (1) audio (1) bambo (1) Bamboo (1) bloat (1) boost (1) bugbear (1) C++ (5) calling conventions (1) cdecl (1) chromecast (1) CI (1) compiler (1) continuous integration (1) coursera (1) custom domain (1) debugging (1) deltanine (1) diagnosis (1) diy (5) DLL (1) dns (1) don't be evil (1) ec2 (1) education (1) electronics (1) express checkout (1) fail (6) fink (1) firewire (1) free hosting (1) GAE (1) google (1) Google App Engine (4) H170 (1) hackerx (1) hackintosh (1) Haskell (3) homebrew (2) i1394 (1) icloud (2) iOS 9 (1) ipad2 (2) jobhunting (2) lag (1) letsencrypt (2) libjpeg (1) linux (1) mac (2) mbcs (1) mechanic (1) memory (1) MFC (3) Microsoft (1) migration (1) ML (1) mobile (1) movi (1) MSBuild (1) music (1) naked domain (1) NLP (2) o2 sensor (1) obd (1) Optiplex960 (1) osx (1) outlook express (1) payments (1) paypal (1) photos (2) PIL (1) Project Euler (1) projectmix (1) python (2) raspberrypi (3) recruitment (1) renwal (1) skylake (1) soundcloud (1) ssl (2) stdcall (1) stripe (1) subaru (2) supermemo (1) supermemo anki java (1) sync (2) Telstra (1) tests (1) thunderbird (1) udacity (1) unicode (1) Uniform Cost Search (1) university (1) upgrade (2) vodafail (1) vodafone (1) VS2010 (1) vs2013 (1) VS6.0 (1) weather (1) win (1) Win32 (1) Z170 (1)

Thursday 4 August 2011

SuperMemo to Anki database converter...

My girlfriend recently decided to move her study materials from SuperMemo to Anki, due to Anki's better support for Mac and a superior iPhone app that allows study cards to contain media such as images and sound.

However, she faced the prospect of losing all her learning history on thousands of cards, which would have meant unnecessary repetitions as Anki rebuilt her learning database.

Thankfully I found this useful project on GitHub:

https://github.com/ggodlewski/smux-anki-converter

It's a java program that converts the SuperMemo UX course data into Anki format. It seems to have been written to work on courses published from the SuperMemo website - but when I tried it on her data and it failed :(

It parses the supermemo SMPAK file, which is akin to the MS compound document file, ie: a single file which contains multiple streams of data. The course data is found in the course.xml and item####.xml streams in the SMPAK file. However, it seems that self created supermemo courses actually store the course data as XML files in a subdirectory called "override"- with the same names as the streams in the SMPAK file.

Grzegorz Godlewski's code did all the heavy lifting of parsing the course data and repetitions and then writing the data in Anki format. All I had to do was make a small change to first look on the filesystem for the courses xml files.


The only problem was I'm not a java programmer - C++ and C# are my areas of expertise, so I was forced to download the JDK, Eclipse and Maven and see what I could do. It was suprisingly not too painful... and I managed to knock up something that worked.


You can find my efforts here on GitHub:


https://github.com/pceccato/smux-anki-converter

Thanks to Gregorz for his hard work and sharing his code with the world!

6 comments:

  1. Thanks Paul. I've been recently very busy and I didn't expect anybody will develop this project further. Good job. I hope it isn't your last contribution ;)

    ReplyDelete
  2. And a further update, my changes have been merged into Grzegorz repository, so use that as your source of truth

    https://github.com/ggodlewski/smux-anki-converter

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. Thank you for this post and the link to supermemo-anki converter. I love the idea of moving all my supermemo courses to Anki.

    Having said this, version 1.4 of the converter doesn't seem to work with all the course and although Grzegorz has modified the code, version 1.7 is not a jar file ( https://github.com/ggodlewski/smux-anki-converter/releases ). That is to say, it needs to be compiled or something. I apologise but I'm not a programmer. I have tried to update version 1.4 in Eclipse but I just don't know how to do it and, basically, wasted two days on it.

    I cannot get in touch with Grzegorz. It seems he abandoned this project a year ago.

    Would you be so kind as to compile version 1.7 and give it to the world...
    Or perhaps point me in the right direction - how to do it.

    I would appreciate your help Paul.
    Cheers

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. You can find the instructions on how to build the jar file here:
      https://github.com/ggodlewski/smux-anki-converter/issues/10

      Delete