Deactivate HTML interpretation

61 views
Skip to first unread message

psy...@googlemail.com

unread,
Jun 17, 2013, 1:51:20 PM6/17/13
to mnemosyne-...@googlegroups.com, Sandro Lammersmann
Hey there :)

Is there a way to deactivate HTML interpretation in the cards?
I'm learning IT stuff and I'm using placeholders to illustrate a syntax for something. For example:

alter table <tablename> add constraint <name> check (<condition>);

Mnemosyne interpretes it as HTML and hides it completely. Is there another way than using &lt; and &gt;?

Thanks in advance!

Peter Bienstman

unread,
Jun 18, 2013, 2:49:42 AM6/18/13
to mnemosyne-...@googlegroups.com
&lt; and &gt; is indeed the way to go!

Cheers,

Peter

abaku...@arcor.de

unread,
Jun 18, 2013, 7:00:48 AM6/18/13
to mnemosyne-...@googlegroups.com
Hey Psy,

you can "deactivate" HTML by using the Latex tag: <$></$>. You won't even have to learn Latex "programming" for this purpose and the best: you can just copy-paste your HTML code. ;) You only have to install MiKTeX to be able to use Latex. After you've installed it, you can try this example:

-----------------------------------------------------------------------------------------------
This is a combination of HTML and Latex in Mnemosyne:
<$>
Latex:
<b></b>
</$>

HTML: <b>This is bold</b>

<$>
Latex:
<i></i>
</$>

HTML: <i>This is italic</i>
-----------------------------------------------------------------------------------------------

Bye,

Abakus

----- Original Nachricht ----
Von: psy...@googlemail.com
An: mnemosyne-...@googlegroups.com
Datum: 17.06.2013 19:51
Betreff: [mnemosyne-proj-users] Deactivate HTML interpretation

> Hey there :)
>
> Is there a way to deactivate HTML interpretation in the cards?
> I'm learning IT stuff and I'm using placeholders to illustrate a syntax for
> something. For example:
>
> alter table <tablename> add constraint <name> check (<condition>);
>
> Mnemosyne interpretes it as HTML and hides it completely. Is there another
> way than using &lt; and &gt;?
>
> Thanks in advance!
>
> --
> 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/6ad42980-272e-4e80-97
> f8-6638588cf062%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

abaku...@arcor.de

unread,
Jun 18, 2013, 10:23:56 AM6/18/13
to mnemosyne-...@googlegroups.com
Hey guys,

I've found a bug. Or maybe this is a latex problem?

If you copy-paste this into Mnemosyne:

<$>

<b></b>
</$>

... you'll get a weird result. It won't display the "<" and ">", but this:

¡b¿¡/b¿

If you delete the empty line after the "<$>" or write something there, it works as expected. Example:

<$>
<b></b>
</$>

<$>
Something
<b></b>
</$>

Greetings,

Abakus

----- Original Nachricht ----
Von: abaku...@arcor.de
An: mnemosyne-...@googlegroups.com
Datum: 18.06.2013 13:00
Betreff: Aw: [mnemosyne-proj-users] Deactivate HTML interpretation
> https://groups.google.com/d/msgid/mnemosyne-proj-users/726050108.1839771.137
> 1553248027.JavaMail.ngmail%40webmail11.arcor-online.net.

Peter Bienstman

unread,
Jun 18, 2013, 10:44:28 AM6/18/13
to mnemosyne-...@googlegroups.com
I cannot reproduce this. Are you using the latest version of Mnemosyne?

Peter

abaku...@arcor.de

unread,
Jun 18, 2013, 12:22:59 PM6/18/13
to mnemosyne-...@googlegroups.com
Hi Peter,

I am using Mnemosyne 2.2.1 and the latest version of MiKTeX. Windows 7 Starter.

I can reproduce it. :D

Some more examples:

This is displayed correctly:
Example 1:

<$>
test
<b></b>
</$>

Example 2:

<$>
test
<b></b>
</$>

Example 3:

<$>test
<b></b><b></b>
</$>

Example 4:
<$>
test

<b></b>
</$>

This is not displayed correctly:

Example 5:

<$>

<b></b>
</$>

Output:
?b??/b?

Example 6:
<$>

<b></b><b></b>
</$>

Ouput:
?b??/b??b??/b?

Example 7:
<$>

test
<b></b>
</$>

Output:
test?b??/b?

Those question marks should be different symbols. Somehow they've changed when sending the message. It should be like this (without the brackets):
(exclamation mark turned around)b(question mark turned around)(exclamation mark turned around)/b(question mark turned around)

Every time when there is an "empty" line after "<$>" the brackets in the HTML tag aren't displayed correctly. Maybe the carriage return and line feed of this "empty" line have to be deleted, before latex grafic is generated.

I hope this helps.

I'll try to reinstall MiKTeX.

Bye,

Abakus

----- Original Nachricht ----
Von: Peter Bienstman <Peter.B...@UGent.be>
An: mnemosyne-...@googlegroups.com
Datum: 18.06.2013 16:44
Betreff: Re: [mnemosyne-proj-users] Latex bug

> I cannot reproduce this. Are you using the latest version of Mnemosyne?
>
> Peter
>
> On 06/18/2013 04:23 PM, abaku...@arcor.de wrote:
> > Hey guys,
> >
> > I've found a bug. Or maybe this is a latex problem?
> >
> > If you copy-paste this into Mnemosyne:
> >
> > <$>
> >
> > <b></b>
> > </$>
> >
> > ... you'll get a weird result. It won't display the "<" and ">", but
> this:
> >
> > ?b??/b?
> >
> > If you delete the empty line after the "<$>" or write something there, it
> works as expected. Example:
> >
> > <$>
> > <b></b>
> > </$>
> >
> > <$>
> > Something
> > <b></b>
> > </$>
> >
> > Greetings,
> >
> > Abakus
>
> --
> 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/51C0724B.7010506%40UG
> ent.be.

Peter Bienstman

unread,
Jun 19, 2013, 3:58:53 AM6/19/13
to mnemosyne-...@googlegroups.com
Mnemosyne generates the following latex file:

\documentclass[12pt]{article}
\pagestyle{empty}
\begin{document}
$

<b></b>
$
\end{document}

So I assume it must be latex which interprets these html tags in a funny
way if there is a blank line before it...

Peter
--
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: Peter.B...@UGent.be
Reply all
Reply to author
Forward
0 new messages