I'm a bit lazy :) so it would simply help me with learning. It's easier to
learn if you realize that "oh, I have only ten cards to memorize, not ten
thousand", and keeps my progress consistent.
Thank you, I'll ponder on your solution, although I'm not into python :)
W dniu czwartek, 20 września 2012 08:29:18 UTC+2 użytkownik Peter Bienstman
napisał:
>
> What Tim said :-)
>
> But if you really want to import from a python script, the code would
> look something like this:
>
> from mnemosyne.script import Mnemosyne
>
> # 'data_dir = None' will use the default system location, edit as
> appropriate.
> data_dir = None
> mnemosyne = Mnemosyne(data_dir)
>
> for format in self.mnemosyne.component_manager.all("file_format"):
> if format.__class__.__name__ == "Mnemosyne2Cards":
> format.do_import(filename)
>
> mnemosyne.finalise()
>
> Peter
>
> On 09/20/2012 01:54 AM, Timothy Bourke wrote:
> > On Sep 19 at 10:55 -0700, szymon wrote:
> >> I use Mnemosyne 2. I would like to add 10 cards from a txt file to my
> >> base daily and assign a tag to them. "Autoimport".
> >>
> >> Is it possible to write a similar script/plugin in Python or PHP?
> >
> > Yes. But why would you want to?
> >
> > Why not just import/create them straight away? I often add hundreds of
> > new cards that stay unreviewed for months, while I only learn 10-20
> > new cards a day.
> >
> > Tim.
>
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
To view this discussion on the web visit
https://groups.google.com/d/msg/mnemosyne-proj-users/-/A8EMpL4BFzIJ.
For more options, visit https://groups.google.com/groups/opt_out.