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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 05:19:47
Script start
Timing: Jan 18 2025 05:19:47
Module start 'layout'
Timing: Jan 18 2025 05:19:47
Module start 'content'
Timing: Jan 18 2025 05:19:48
Module end 'content'
Timing: Jan 18 2025 05:19:48
Script end

Main resources:

Total runtime0.6589 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 587.9141152.6250
Module start 'layout' 0.00410.0026 740.539139.4609
Module start 'content' 0.00670.6509 780.0000563.5391
Module end 'content' 0.65760.0013 1,343.539112.1563
Script end 0.6589  1,355.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4551160.0002
Check MTime0.00120.1888160.0001
Mysql Total
Database connection0.00060.084710.0006
Mysqli_queries0.603091.5114630.0096
Looping result0.00060.0909610.0000
Template Total0.634996.320.3174
Template load0.00180.268320.0009
Template processing0.633196.073420.3165
Template load and register function0.00020.022910.0002
states
state_id_array0.00090.133110.0009
state_identifier_array0.00130.190320.0006
Override
Cache load0.00150.2323470.0000
Sytem overhead
Fetch class attribute can translate value0.00090.135420.0004
Fetch class attribute name0.00110.174460.0002
XML
Image XML parsing0.00070.110620.0004
class_abstraction
Instantiating content class attribute0.00000.002370.0000
General
dbfile0.00130.1972170.0001
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs