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.