TM (trade mark) character online editor

Author Message

laurent le cadet

Thursday 06 July 2006 9:06:39 am

Hi,

The TM doens't seems to be support by OE.
Not in special characters and the combination alt+153 is removed after editing.

Is there a way to print it out ?

Thanks.

Laurent

Nathan Kelly

Thursday 06 July 2006 10:29:14 pm

Hi laurent,

have you tried the ™ entity? I'm not sure if the OE will strip that out? possibly it will.

Cheers!

Pardon me while I burst into flames...

laurent le cadet

Thursday 06 July 2006 11:35:31 pm

Thanks Nathan but ™ is printed out ™.

Laurent

Kristof Coomans

Friday 07 July 2006 1:24:45 am

Hi Laurent

Try to directly paste the character into the text box. It works here (OE 4.1.1, eZ trunk, charset utf8).

You can also paste ™ in the textbox while the online editor is disabled.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

laurent le cadet

Friday 07 July 2006 1:46:11 am

Hi Kristoff,

The charset used is iso-8859-15 :(
If I disabled OE, I think the character will be remowed as soon as the object will be edit again while OE is "on".

Is there a way to add it to the special character list ?

Laurent

Kirill Subbotin

Friday 07 July 2006 1:54:30 am

Unfortunately entities are not supported now. Although you can do the trick:
<literal class='html'>your text &trade;</literal>
(or the same in OE)

laurent le cadet

Friday 07 July 2006 1:58:09 am

Yes Kirill,

that's what I was thinking about at the "extrem" solution.

Thanks

Kristof Coomans

Friday 07 July 2006 2:08:47 am

Is there a way to add it to the special character list ?

If you were using UTF8, you could have modified both extension/ezdhtml/design/standard/templates/ezdhtml/insertcharacter.tpl and insertcharacter_gecko.tpl.

Just add "&#8482;" to the specialChars JavaScript array at line 32 in insertcharacter.tpl and line 37 in insertcharacter_gecko.tpl. The mentioned line numbers are for OE 4.1.1 and can differ in other versions.

I hope some day OE will use ini settings for the character map. Kirill, can you soon apply a patch for this if I make one?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kirill Subbotin

Friday 07 July 2006 2:17:28 am

2Kristof: Of course the patch is welcome! ;)

laurent le cadet

Friday 07 July 2006 2:24:12 am

Kristoff,

In my case (none UTF8) I'm facing a problem with special character :

1/4 is render &frac14; 1/2 is &frac12;

Some other characters are ok.

Can we used some special character (1/2, 1/4...) only with UTF8 ?

Kristof Coomans

Friday 07 July 2006 3:40:14 am

2Kirill: the modified files are attached to http://ez.no/bugs/view/8623

2Laurent: I think all characters defined in your charset (iso-8859-15) will work

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

laurent le cadet

Friday 07 July 2006 3:48:18 am

...exception for 1/2 1/3 1/4.

A hint to fix that ?

Laurent

Kristof Coomans

Friday 07 July 2006 7:04:54 am

Sorry, no idea.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Philip K.

Tuesday 18 July 2006 3:23:29 am

Hm... how can I switch to UFT-8?

Thanks,
Philip

Linux is like a wigwam; no windows, now gates, and apache inside!

Kristof Coomans

Tuesday 18 July 2006 3:31:31 am

Hello Philip, take a look at this article for choosing UTF8 in the installation wizard: http://ez.no/community/articles/new_features_in_ez_publish_3_8/installation

There are several topics on the forum about UTF8, you will find some at http://www.simpy.com/user/cyberwolf/search/%22utf8%22++tags%3A%22ezpublish%22 or just search the ez.no site for it.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kirill Subbotin

Tuesday 18 July 2006 3:45:40 am

2Philip:
Search for "Charset" settings in ini files. At least i18n.ini and site.ini. Also the database should be in this charset.

Or you can start setup wizard and make sure that "unicode" is checked when you select language.

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 11:45:46
Script start
Timing: Jan 18 2025 11:45:46
Module start 'layout'
Timing: Jan 18 2025 11:45:46
Module start 'content'
Timing: Jan 18 2025 11:45:47
Module end 'content'
Timing: Jan 18 2025 11:45:47
Script end

Main resources:

Total runtime0.9052 sec
Peak memory usage4,096.0000 KB
Database Queries102

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.4609152.6406
Module start 'layout' 0.00520.0027 742.101639.4766
Module start 'content' 0.00780.8961 781.5781804.2734
Module end 'content' 0.90390.0012 1,585.851628.1406
Script end 0.9052  1,613.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.3326160.0002
Check MTime0.00130.1383160.0001
Mysql Total
Database connection0.00080.087010.0008
Mysqli_queries0.793887.69161020.0078
Looping result0.00100.11351000.0000
Template Total0.875896.720.4379
Template load0.00230.254020.0011
Template processing0.873596.492120.4367
Template load and register function0.00010.011910.0001
states
state_id_array0.00100.114110.0010
state_identifier_array0.00080.093320.0004
Override
Cache load0.00220.2424800.0000
Sytem overhead
Fetch class attribute can translate value0.00130.147550.0003
Fetch class attribute name0.00240.2597200.0001
XML
Image XML parsing0.00230.250150.0005
class_abstraction
Instantiating content class attribute0.00010.0069290.0000
General
dbfile0.00120.1365340.0000
String conversion0.00000.000840.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
13content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
16content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 56
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs