HTML tags - bulk editing of cards

53 views
Skip to first unread message

Jacek

unread,
Jun 12, 2016, 9:38:05 AM6/12/16
to mnemosyne-proj-users

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

Peter Bienstman

unread,
Jun 13, 2016, 3:09:52 AM6/13/16
to mnemosyne-...@googlegroups.com

--
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.

Jacek

unread,
Jun 13, 2016, 3:44:48 PM6/13/16
to mnemosyne-proj-users
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ł:

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.

Peter Bienstman

unread,
Jun 14, 2016, 2:51:04 AM6/14/16
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ł:

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.

--

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.

Jacek

unread,
Jun 14, 2016, 6:56:05 AM6/14/16
to mnemosyne-proj-users
Hi Peter,

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

Reply all
Reply to author
Forward
0 new messages