The importer contains code like this:
elif line.startswith("I:"):
attributes = line[2:].split()
if len(attributes) != 6:
error = True
else:
if ( attributes[0].startswith("REP=")
and attributes[1].startswith("LAP=")
and attributes[2].startswith("EF=")
and attributes[4].startswith("INT=")
and attributes[5].startswith("LAST=") ):
repetitions = int(attributes[0][4:])
lapses = int(attributes[1][4:])
easiness = float(attributes[2][3:])
interval = int(attributes[4][4:])
if attributes[5] == "LAST=0":
last = 0
else:
last = time.strptime(attributes[5][5:], "%d.%m.
%y")
else:
error = True
It's basically looking for a line that starts with 'I:' to get all the
learning data
Again, I didn't write that code, so perhaps it was for some other file format
that supermemo can export?
Cheers,
Peter
> I wish.
> "Export text" from SM7 gives this type of result (real output):
>
> Q: What?
> A: Cosa?
>
> Q: When?
> A: Quando?
>
> Q: perchè?
> A: hvorfor?
>
> Q: Mr.
> A: Signor
>
> Q: Mrs.
> A: Signora
>
> Q: Miss
> A: Signorina
>
> Q: I am English
> A: Sono inglese
>
> No more. No less.
>
> On 29 May 2011 04:12, <[email protected]> wrote:
> > Today's Topic Summary
> >
> > Group: http://groups.google.com/group/mnemosyne-proj-users/topics
> >
> > - Set grade on import of .txt? <#1303985b87223b8a_group_thread_0> [2
> > Updates]
> >
> > Topic: Set grade on import of
> > .txt?<http://groups.google.com/group/mnemosyne-proj-users/t/9e96a2e8c6
> > dded03>
> >
> > Henrik in Oslo <[email protected]> May 28 02:23AM -0700
> > ^<#1303985b87223b8a_digest_top>
> >
> > I am keen to "protect my learning investment" performed using SM7.
> >
> > Q/A export from Supermemo7 unfortunately contains no learning
> > history.
> >
> > A key-term in Supermemo is "E-factor" (EF), ranging
> > more...<http://groups.google.com/group/mnemosyne-proj-users/msg/932bf
> > 99f2297477c>
> >
> >
> > Peter Bienstman <[email protected]> May 28 02:48PM +0200
> > ^<#1303985b87223b8a_digest_top>
> >
> > As far as I can see in the code, the EF should be in the SM7 text file
> > and is
> > taken into account by the importer, just as the last grade and the
> > next
> >
> > scheduled interval.
> >
> > Peter
> >
> > --
> > more...<http://groups.google.com/group/mnemosyne-proj-users/msg/4dc6e
> > 60ca5e293a2>
> >
> > --
> >
> > 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.
--
Peter Bienstman
Ghent University, Dept. of Information Technology
Sint-Pietersnieuwstraat 41, B-9000 Gent, Belgium
tel: +32 9 264 34 46, fax: +32 9 264 35 93
WWW: http://photonics.intec.UGent.be
email: [email protected]
--
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.