I guess you also need to add the header info.

Peter

Quoting tcp-ip <[email protected]>:



On May 30, 12:19 am, Gwern Branwen <[email protected]> wrote:

The simple text format is just that, simple. If you want to specify
the category and grade, that isn't too hard: you need to use the XML
format. It's not too hard to work with, I've looked at it. You could
probably quickly unpickle the 5 fields into <card>s or whatevers and
then copy the surrounding XML gunk to make a big XML file you can just
import.

Thanks for your help. Now I'm trying with XML but I can't understand
the exact format mnemosyne wants.
I tried to export a file and I found that it renders a card in this
way (with the option "reset learning data"):

<item id="_0">
 <cat>c1</cat>
 <Q>q11</Q>
 <A>a11</A>
</item>

I tried to write a test file:

<item id="_0" gr="0">
<cat>1</cat>
<Q>a</Q>
<A>a 0</A>
</item>


 but I can't understand the meaning of the underscore in the id field.
If a insert it the error is "invalid literal for long".
If a write the id number without underscore it complains that other
parameters are missing.

--
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]. For more options, visit this group at http://groups.google.com/group/mnemosyne-proj-users?hl=en.





--
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].
For more options, visit this group at 
http://groups.google.com/group/mnemosyne-proj-users?hl=en.

Reply via email to