Generating cards with media content

38 views
Skip to first unread message

Mateusz Konieczny

unread,
Feb 24, 2015, 5:02:57 PM2/24/15
to mnemosyne-...@googlegroups.com
I want to generate large set of cards with media content, with all cards of the
"Front-to-back and back-to-front" type.

Content itself is ready, but I am not sure what format will be the easiest to produce.

In principle one may produce *.cards file, but it seems to be a really complex format
and I failed to find any documentation of which values are mandatory and how to produce
a valid file.

Is there maybe some easier method? Or even better - existing script/program
mass producing cards with media content that may be used as a base?

Timothy Bourke

unread,
Feb 25, 2015, 1:07:35 AM2/25/15
to mnemosyne-...@googlegroups.com
* Mateusz Konieczny <matko...@gmail.com> [2015-02-24 23:02 +0100]:
> In principle one may produce *.cards file, but it seems to be a really complex
> format
> and I failed to find any documentation of which values are mandatory and how to
> produce
> a valid file.
>
> Is there maybe some easier method? Or even better - existing script/program
> mass producing cards with media content that may be used as a base?

FWIW, the svgtoquiz script (http://tbrk.org/software/svgtoquiz.html) generates
cards with images in the Mnemosyne2 format. See:
http://bazaar.launchpad.net/~tbrk/svgtoquiz/trunk/view/head:/svgtoquiz/export/mnemosyne2.py#L218

This code is a bit old, but maybe it helps. Otherwise, I always found
reading Peter's source to be helpful.

Tim.

Peter Bienstman

unread,
Feb 25, 2015, 2:54:21 AM2/25/15
to mnemosyne-...@googlegroups.com
Hi,

You can also put them in a txt file and then import that.

Or, you can do it programmatically, using the libmnemosyne python API. Look at the example_scripts directory in the source tree on Launchpad.

This requires installing Mnemosyne in your python distribution using the linux source ball, though.

Cheers,

Peter
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-
> users/CALDvra5EHQVUX_LqPmGSY7ZVLhehp7MTq6Kh7MLrVopRao_Myg%4
> 0mail.gmail.com <https://groups.google.com/d/msgid/mnemosyne-proj-
> users/CALDvra5EHQVUX_LqPmGSY7ZVLhehp7MTq6Kh7MLrVopRao_Myg%4
> 0mail.gmail.com?utm_medium=email&utm_source=footer> .
> For more options, visit https://groups.google.com/d/optout.


Mateusz Konieczny

unread,
Feb 25, 2015, 3:08:22 AM2/25/15
to mnemosyne-...@googlegroups.com
It seems that it can be done with tab-separated text file and then changing type of card
to "Front-to-back and back-to-front". I have large amount of cards, but so large that it
doing card type change is unfeasible.

I tested this on small card set and it seems that everything woks correctly with
media files added manually to default.bd_media and referenced by imported cards.


Peter Bienstman

unread,
Feb 25, 2015, 4:08:42 AM2/25/15
to mnemosyne-...@googlegroups.com
BTW, in the card browser, you can select more than 1 card, right click and then do 'change card type'.
> <mailto:mnemosyne-proj-users%2Bunsu...@googlegroups.com> .
> > To post to this group, send email to mnemosyne-proj-
> > us...@googlegroups.com.
> > To view this discussion on the web visit
> > https://groups.google.com/d/msgid/mnemosyne-proj-
> >
> users/CALDvra5EHQVUX_LqPmGSY7ZVLhehp7MTq6Kh7MLrVopRao_Myg%4
> > 0mail.gmail.com
> <https://groups.google.com/d/msgid/mnemosyne-proj-
> >
> users/CALDvra5EHQVUX_LqPmGSY7ZVLhehp7MTq6Kh7MLrVopRao_Myg%4
> > 0mail.gmail.com?utm_medium=email&utm_source=footer> .
> > For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to mnemosyne-proj-u...@googlegroups.com
> <mailto:mnemosyne-proj-users%2Bunsu...@googlegroups.com> .
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-
> users/006601d050d0%243fede7c0%24bfc9b740%24%40UGent.be.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "mnemosyne-proj-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-
> users/CALDvra40xTX1xC%2BGiusuadp9mRqxAkbSrq2Gz3ZxuyOESC6V4w%40
> mail.gmail.com <https://groups.google.com/d/msgid/mnemosyne-proj-
> users/CALDvra40xTX1xC%2BGiusuadp9mRqxAkbSrq2Gz3ZxuyOESC6V4w%40

Mateusz Konieczny

unread,
Feb 26, 2015, 5:46:04 AM2/26/15
to mnemosyne-...@googlegroups.com
...and scrolling down loads more cards in "browse cards" view. It makes
processing thousands of cards feasible.

Reply all
Reply to author
Forward
0 new messages