Adding Maori Macrons

Author Message

Anrik Drenth

Tuesday 04 August 2009 5:19:37 pm

When editing in the rich text editor you can click on the
"insert special character" symbol.

This brings up a list of symbols to insert into your document.
Can this list be altered to add the below ?

ā ē ī ō ū

(in lower and upper case)

Reference:
http://www.tomrobinson.co.nz/work/macronsxhtml.html
Search for: "Macron Test Table"

Thanks

Bruce Morrison

Tuesday 04 August 2009 6:35:40 pm

Hi Anrik

Assuming you are using a newer version of eZ and the new OE the special characters are defined in

extension/ezoe/design/standard/javascript/themes/ez/js/charmap.js

It appears you can simply add the additional characters to the <i>charmap</i> array.

You may want to try to override this file in your own design so you don't lose the changes in future upgrades (though I'm not 100% sure this will be possible)

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

André R.

Wednesday 05 August 2009 1:09:55 am

The file is included from javascript by tinyMCE, so won't do much good in overriding it.
Seems like you either have to edit the file directly or I have to provide a way to extend it with settings.

What would you need? Append and perpend settings? (as in being able to perpend and append your own special charters to the list)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Anrik Drenth

Wednesday 05 August 2009 2:39:04 pm

Hi,

Version: 4.0.6 (4.0.6)
Extensions: ezwebin , ezoe , ezfind

Probably dont need an override facility as there would be an alarm bell in place i.e. the users would start squawking :)

Will have a look at:
extension/ezoe/design/standard/javascript/themes/ez/js/charmap.js
and see if I can insert the Maori character at the start and maybe remove a few characters we would never use.

Thanks for the help

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 31 2025 00:26:35
Script start
Timing: Jan 31 2025 00:26:35
Module start 'layout'
Timing: Jan 31 2025 00:26:35
Module start 'content'
Timing: Jan 31 2025 00:26:35
Module end 'content'
Timing: Jan 31 2025 00:26:35
Script end

Main resources:

Total runtime0.0226 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1250151.2109
Module start 'layout' 0.00470.0035 739.3359220.6875
Module start 'content' 0.00820.0129 960.02341,001.7734
Module end 'content' 0.02110.0015 1,961.796933.9922
Script end 0.0226  1,995.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.7917140.0002
Check MTime0.00125.2065140.0001
Mysql Total
Database connection0.00062.703510.0006
Mysqli_queries0.002410.402530.0008
Looping result0.00000.040110.0000
Template Total0.00104.510.0010
Template load0.00083.468210.0008
Template processing0.00020.950410.0002
Override
Cache load0.00052.322710.0005
General
dbfile0.00135.906980.0002
String conversion0.00000.027440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs