Tiddlywiki + Anki Cards?

751 views
Skip to first unread message

Amit Ahire

unread,
Dec 13, 2017, 2:54:06 AM12/13/17
to TiddlyWiki
Hello!


Any way of creating anki flash cards (.apkg) from tiddlywiki so as to make it easily importable into anki app? 

This thought just passed my head and as I am a bit busy at the moment hence haven't had the time to delve too deep into it. So apologize for the half baked notion.

If not, I will update this thread later, if I come across some way about it.

Thanks




Diego Mesa

unread,
Dec 13, 2017, 4:25:24 PM12/13/17
to TiddlyWiki
Hello Amit,

I've actually been thinking recently that TW presents a perfect environment to build an anki-like clone system into. If anyone would be willing to take this on, that would be awesome!

Mark S.

unread,
Dec 13, 2017, 6:37:15 PM12/13/17
to TiddlyWiki
It might be easier to use TW to create CSV files that could be imported into Anki.


-- Mark

TonyM

unread,
Dec 13, 2017, 8:12:22 PM12/13/17
to tiddl...@googlegroups.com
 Amit,

We seem to be seeing an increasing number of such requests, and lots of discussion on parser and markdown standards, also about integrations 
I am also keen to build setting json files and windows command files within tiddlywiki.

One advantage in tiddlywiki is information can be stored and referenced in many ways to help populate the content, you may reuse elsewhere.

In Every case the key issue is what are the formats and standards that tiddlywiki needs to implement to achieve this.

Sure putting a call out for a particular format such as your suggested "anki flash cards (.apkg)" may result in some one with prior work who can point you in the right direction. But this is less likely with more obscure apps. For example there exists solutions already for Microsoft Excel.

However more likely the questions becomes can we create this? To know if it is possible a basic outline of the format and standards within a anki flash cards (.apkg) file will be necessary.

An Example may be if it used an XML or json format, and also if the application actually accepted other import formats, as suggested by Mark. 

It may be a simple matter of not using the native file format but but exporting in a format shared by both the app and tiddlywiki.

Have a look around you app, and search this forum for any alternate formats that may be common. Then you may be able to ask more specific questions.

Regards
Tony



 

xanato...@gmail.com

unread,
Dec 14, 2017, 1:02:25 PM12/14/17
to TiddlyWiki
Hello Amit,

a anki flash card package (.apkg) is actually a zip file with all files needed to get imported in anki.

It must include a sqlite database (this includes the notes , the format of the cards for the notes and the status of each card).
And can be include external files such as images or music files.

You can try to write such an addon, but it involves that following must be in this addon:

* sqlite library (http://sqlite.org) must be compiled with tools such emscripten (https://github.com/kripken/emscripten/wiki) to javascript. (it can be a javascript size between 1MB and 3 MB only for this library)
* a zip file library for javascript
* and you must have an understanding or better a library for writing the correct database format (SQL Queries) so you can add new notes that are accepted from anki

Because of this I wrote a simple language:

SPilot4Tw (https://www.quaraman.de/tw/pilot.html)

How you can use it to write cards is written in detail in the tiddler "Leitner Cards".

Hope that helps.
Sven

LinOnetwo

unread,
Apr 10, 2020, 5:01:44 AM4/10/20
to TiddlyWiki
I'm recently consider implement this, I will use nodeJS TiddlyWiki and Anki Connect to do so.

As new feature "Add a "filter" parameter to the GET /recipes/default/tiddlers/tiddlers.json route to return a filtered subset of tiddlers"
is added in 5.2.2
I think I can make a simple Anki Plugin that can query all tiddler in a NodeJS wiki that are tagged with some tag, or match the provided filter.

Then I use tiddlywiki as single source of truth, update the anki database, sync all matched tiddler into a designated card desk, add missing ones, delete card that is deleted in TW, and retain previous card learning metadata untouched.

I will start doing so after 5.2.2 is released.

在 2017年12月13日星期三 UTC+8下午3:54:06,Amit Ahire写道:

matt medmedmedic

unread,
Apr 10, 2020, 7:15:20 PM4/10/20
to tiddl...@googlegroups.com
My name is Mathew , i am a medical doctor and work as a educator . I dont know much coding but i can help in framing it based on encoding strategies

Lin Onetwo

unread,
Apr 10, 2020, 11:08:02 PM4/10/20
to TiddlyWiki
Hi, Mathew

What do you mean by encoding strategies? Does it mean the way to organize the tiddler so they can provide better context in Anki so easier to remember?

I'm also wondering about how I can struct info when import tiddler into Anki. Instead of just one Card per TIddler, I want to achieve something like https://learnobit.com/

在 2020年4月11日星期六 UTC+8上午7:15:20,matt medmedmedic写道:
Reply all
Reply to author
Forward
0 new messages