New Zealand has three official languages, one of which, Maori, features the use of the macron accent to indicate long vowel sounds in the written form. Microsoft produce software which allows for easy data entry - āēīōū - I've added those using that software - but we can't control all hardware that our distributed authors might use, and there's good indication that while it's supposed to be installed on all windows machines on campus, it isn't.
It would be nice if we could add it to the 'Insert Special Character' options in the WYSIWYG editor.
Does anyone have an easy to do solution? Is it just a matter of making a change to the files in /fudge/wysiwyg/plugins/special_chars ?
[quote]New Zealand has three official languages, one of which, Maori, features the use of the macron accent to indicate long vowel sounds in the written form. Microsoft produce software which allows for easy data entry - āēīōū - I've added those using that software - but we can't control all hardware that our distributed authors might use, and there's good indication that while it's supposed to be installed on all windows machines on campus, it isn't.
It would be nice if we could add it to the 'Insert Special Character' options in the WYSIWYG editor.
Does anyone have an easy to do solution? Is it just a matter of making a change to the files in /fudge/wysiwyg/plugins/special_chars ?[/quote]
Changing those files should work I think, however you would need to test it.
As those characters are not in ISO 8859-1 I would highly recommend you set the system to use UTF-8 or they will have to be stored and edited as entities which may cause issues.
[quote]Changing those files should work I think, however you would need to test it.
As those characters are not in ISO 8859-1 I would highly recommend you set the system to use UTF-8 or they will have to be stored and edited as entities which may cause issues.[/quote]
Thanks for the response Justin - the system is already using UTF-8. Would changing those files affect our warranty at all?
OK I tested it and it works fine. Just add 'ā','ē','ī','ō','ū', to the end of the list in fudge/wysiwyg/plugins/special_chars/char_map.php. You need to use a UTF-8 text editor though to do this, have attached a copy for reference.
These characters are config really not code, so shouldnt affect your warranty. It would make sense if that list was pulled out into a config file to make that clear. char_map.php (6.23 KB)
It is not a config file. It is a core file and you must check with your account manager first before changing any core files if you have an active SLA. Mistakes in this file could affect the way the WYSIWYG works, so it is likely to void your warranty if you change it unless your account manager makes an exception.
Thanks Greg - I raised a support job with Squiz NZ, and they've patched in a file that they've used with other NZ organisations.