Hi!
Some of my oldest cards were created quite a few years ago on Ubuntu. I used to increase font look and size by adding HTML tags to my cards (e.g. "<font size="+3"> text </font>" or <small><i> text </small></i>). Is it possible to remove those tags by bulk editing of the cards? I tried the simplest way i.e. removed them within .db file by find and replace (replacing with "nothing"), but it seems to meddle with the file enough to prevent Mnemosyne from running. Is there any way to do it properly?
Jacek
Hi,
Have a look at this script:
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-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/599c0656-03e1-4c11-9a15-63a202aa1bae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
Have a look at this script:
Cheers,
Peter
From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-...@googlegroups.com] On Behalf Of Jacek
Sent: 12 June 2016 15:38
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
Subject: [mnemosyne-proj-users] HTML tags - bulk editing of cards
Hi!
Some of my oldest cards were created quite a few years ago on Ubuntu. I used to increase font look and size by adding HTML tags to my cards (e.g. "<font size="+3"> text </font>" or <small><i> text </small></i>). Is it possible to remove those tags by bulk editing of the cards? I tried the simplest way i.e. removed them within .db file by find and replace (replacing with "nothing"), but it seems to meddle with the file enough to prevent Mnemosyne from running. Is there any way to do it properly?
Jacek
--
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-users+unsub...@googlegroups.com.
To post to this group, send email to mnemosyne...@googlegroups.com.
Hi,
Where you run the script is not relevant, but Mnemosyne needs to be installed in the standard Python directory. This happens by default on Linux, but not on Windows, where you have to install a lot of dependencies manually first.
Data_dir = None is OK in your case.
Oh, and do make a backup before you let self-written scripts loose on your database J
Cheers,
Petert
From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-...@googlegroups.com]
On Behalf Of Jacek
Sent: 13 June 2016 21:45
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
Subject: Re: [mnemosyne-proj-users] HTML tags - bulk editing of cards
Hi Peter,
I'm not that deep into programming but I can execute python file. Am I to do it in Mnemosyne folder?
data_dir = None - I can leave it as "none" if Mnemosyne was installed in default directory?
Jacek
W dniu poniedziałek, 13 czerwca 2016 09:09:52 UTC+2 użytkownik Peter Bienstman napisał:
Hi,
Have a look at this script:
Cheers,
Peter
From: mnemosyne-...@googlegroups.com [mailto:mnemosyne-...@googlegroups.com] On Behalf Of Jacek
Sent: 12 June 2016 15:38
To: mnemosyne-proj-users <mnemosyne-...@googlegroups.com>
Subject: [mnemosyne-proj-users] HTML tags - bulk editing of cards
Hi!
Some of my oldest cards were created quite a few years ago on Ubuntu. I used to increase font look and size by adding HTML tags to my cards (e.g. "<font size="+3"> text </font>" or <small><i> text </small></i>). Is it possible to remove those tags by bulk editing of the cards? I tried the simplest way i.e. removed them within .db file by find and replace (replacing with "nothing"), but it seems to meddle with the file enough to prevent Mnemosyne from running. Is there any way to do it properly?
Jacek
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mnemosyne-proj-users/599c0656-03e1-4c11-9a15-63a202aa1bae%40googlegroups.com.
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-...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/c20171cf-c2b8-4f2d-adba-587fedcc4dcb%40googlegroups.com.
Well, I wasn't clear enough. I started using Mnemosyne on Ubuntu, but now I'm working on Windows, which seems to make it far more complicated.
If there's lot of fiddling with Windows, I think I'd better get Ubuntu installed on my old computer, do it there and re-export data back to Windows.
Jacek