secret messages

82 views
Skip to first unread message

Josh

unread,
Aug 9, 2012, 8:26:48 PM8/9/12
to mnemosyne-proj-users
in the old 1.x mnemosyne, when i created cards i'd add notes in
between "<" and ">" that i would only see if i go into edit mode in
the card. a frequent thing i did was, when creating a card, i'd put
the creation date between those symbols. for example <08/08/12>. In
the new version 2, those dates can be seen when i review the card, and
it is distracting. is there any way to get those to be hidden again?

Gwern Branwen

unread,
Aug 9, 2012, 8:28:58 PM8/9/12
to mnemosyne-...@googlegroups.com
On Thu, Aug 9, 2012 at 8:26 PM, Josh <goodn...@gmail.com> wrote:
> In
> the new version 2, those dates can be seen when i review the card, and
> it is distracting. is there any way to get those to be hidden again?

<!-- HTML comment syntax doesn't work? -->

--
gwern
http://www.gwern.net

Josh

unread,
Aug 9, 2012, 8:35:17 PM8/9/12
to mnemosyne-proj-users
thanks for your recommendation, I added an exclamation point after the
"<", and it worked (the creation date could no longer be seen in
review mode). I have a few hundred cards that have creation date tags
without exclamation marks, however, and i was hoping there would be a
quick change that would hide all text without having to add
exclamation marks to each card.

On Aug 9, 8:28 pm, Gwern Branwen <gwe...@gmail.com> wrote:

Gwern Branwen

unread,
Aug 9, 2012, 8:41:49 PM8/9/12
to mnemosyne-...@googlegroups.com
On Thu, Aug 9, 2012 at 8:35 PM, Josh <goodn...@gmail.com> wrote:
> added an exclamation point after the
> "<", and it worked (the creation date could no longer be seen in
> review mode).

I dunno why <> worked in the first place, since the HTML markup has
been there for as long as I've been using Mnemosyne and that only
allows <!-- -->. Perhaps QT used to do something odd like interpret
them as regular tags, discover they weren't valid tags, and not
display anything. John would know.

> I have a few hundred cards that have creation date tags
> without exclamation marks, however, and i was hoping there would be a
> quick change that would hide all text without having to add
> exclamation marks to each card.

/shrug

I don't know why you'd want creation date in the first place (that
kind of metadata should be handled by the application, IMO). If
Mnemosyne 2 had working export, you could do something like export
your deck, fire up a text editor on the XML, and use an appropriate
regexp to replace the <>s en masse.

--
gwern
http://www.gwern.net

Timothy Bourke

unread,
Aug 10, 2012, 5:03:13 AM8/10/12
to mnemosyne-...@googlegroups.com
The Fast Format plugin should be able to remove the dates:
http://mnemosyne-proj.org/plugins/fast-format

Tim.

signature.asc

Timothy Bourke

unread,
Aug 10, 2012, 5:08:20 AM8/10/12
to mnemosyne-...@googlegroups.com
Actually, it may be too clever now, since it skips over tags.

But, if you know a bit of python, it shouldn't be too hard to adjust.

Tim.

signature.asc

Chris

unread,
Aug 10, 2012, 2:46:53 PM8/10/12
to mnemosyne-...@googlegroups.com
How does fast format deal with cloze deletion with [ & ] ?

  - Chris

Timothy Bourke

unread,
Aug 11, 2012, 3:54:13 AM8/11/12
to mnemosyne-...@googlegroups.com
On Aug 10 at 11:46 -0700, Chris wrote:
> How does fast format deal with cloze deletion with [ & ] ?

Fast Format simply applies a list of regular expressions and
substitutions to the card text (with <img> and <audio> tags
temporarily removed---so it should work for the 'date tag', after
all).

It will run after cards have been constructed from a fact; so the [ ]
delimiters will have already been parsed to give multiple cards.

There is a default rule that makes [.*] gray and italic, but that rule
can be deleted or modified using the configuration panel.

Tim.

signature.asc

Josh

unread,
Aug 11, 2012, 11:07:18 AM8/11/12
to mnemosyne-...@googlegroups.com
i downloaded your plugin, but i don't know code and am a little lost.

In the fast format GUI for "match" i have <??/??/??> and for "replacement" i left blank (because i want it to delete or just disappear).   This doesn't seem to be working.

Timothy Bourke

unread,
Aug 11, 2012, 4:26:37 PM8/11/12
to mnemosyne-...@googlegroups.com
On Aug 11 at 08:07 -0700, Josh wrote:
> i downloaded your plugin, but i don't know code and am a little lost.
>
> In the fast format GUI for "match" i have <??/??/??> and for "replacement" i
> left blank (because i want it to delete or just disappear). This doesn't seem
> to be working.

Almost! It should be: <../../..>

Tim.

signature.asc

Josh

unread,
Aug 11, 2012, 10:26:46 PM8/11/12
to mnemosyne-...@googlegroups.com
perfect.  thanks Tim.
Reply all
Reply to author
Forward
0 new messages