Forums / General / How to put an "em dash" into the text

How to put an "em dash" into the text

Author Message

Zoltan Szabo

Wednesday 15 September 2004 11:21:52 pm

Can you help me how to insert a "long - " sign (em dash, —) into a text area?

I tried the following way: I used -- signs, and in the database dump I replaced all " -- " partsh into — sequences.
It still does not work: I can see only these numbers.

Is it possible to make a "custom tag" or some other "escape" way for this?

Bård Farstad

Thursday 16 September 2004 12:03:29 am

You can make custom tag for this. You find information about how to do that here:
http://www.ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags

You need to use the HTML entity to display the em dash if you are not using any of the following codepages:
adobe-standard-encoding
cp874
hp-roman8
macintosh
next
windows-1250
windows-1251
windows-1252
windows-1253
windows-1254
windows-1255
windows-1256
windows-1257
windows-1258

If you use any of those codepages you can also just use the character directly.

--bård

Documentation: http://ez.no/doc

Zoltan Szabo

Thursday 16 September 2004 12:49:09 am

Thank you. I use ISO8859-2, so none of the ones in the above list.
I found a not-very-nice solution, using

before it <custom name='emdash'></custom> after it

by butting into emdash.tpl a &#8212; sign.

Is it possible to solve it by a more simple way? I think something in content.ini like

TagList[literal]=<pre>;</pre>;htmlspecialchars

Unfortunately this way there are 3 ; signs in this row...

TagList[emdash]=&#8212;;;

So it does not work.

I would like to solve it by using a simple

<emdash>

sign in the input text. Any ideas?

Zoltan Szabo

Friday 17 September 2004 12:29:13 am

Could you please, Bård, insert an "em dash" into this text area - as an example - for me?

Bård Farstad

Friday 17 September 2004 12:36:59 am

Zoltan, that is not possible to do. We do not allow special characters to be inserted into the forum and the characterset here on ez.no is latin1--which does not support em dash.

--bård

Documentation: http://ez.no/doc