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

eZ debug

Timing: Jan 18 2025 04:10:14
Script start
Timing: Jan 18 2025 04:10:14
Module start 'content'
Timing: Jan 18 2025 04:10:15
Module end 'content'
Timing: Jan 18 2025 04:10:15
Script end

Main resources:

Total runtime0.8599 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.7266180.8359
Module start 'content' 0.00640.6666 768.5625568.6172
Module end 'content' 0.67300.1868 1,337.1797337.4063
Script end 0.8598  1,674.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00480.5548210.0002
Check MTime0.00150.1699210.0001
Mysql Total
Database connection0.00090.109610.0009
Mysqli_queries0.760388.42102000.0038
Looping result0.00220.26101980.0000
Template Total0.829896.520.4149
Template load0.00210.247620.0011
Template processing0.827696.252420.4138
Template load and register function0.00020.017810.0002
states
state_id_array0.00070.077610.0007
state_identifier_array0.00180.204720.0009
Override
Cache load0.00230.2637470.0000
Sytem overhead
Fetch class attribute can translate value0.00150.173130.0005
Fetch class attribute name0.00150.177560.0003
XML
Image XML parsing0.00110.129430.0004
class_abstraction
Instantiating content class attribute0.00000.003270.0000
General
dbfile0.00400.4632280.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs