Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

The TinyMCE Editor has a great button in the kitchen sink to insert custom characters / symbols.

Is there a way to control what symbols show up in this pop-up? (Specifically I need some unique Hawaiian language characters 'okina and macrons).

Code    Character
Ā  Ā
ā  ā
Ē  Ē
ē  ē
Ī  Ī
ī  ī
Ō  Ō
ō  ō
Ū  Ū
ū  ū
ʻ  ʻ

Hawaiian Diacritical mark reference: http://manoa.hawaii.edu/site/hawaiian_language.html

share|improve this question

2 Answers 2

This has to do with your character map for tinyMCE it's located inside:

wp-includes/js/tinymce/themes/advanced/js/charmap.js

Although I wouldn't recommend editing the WP-Core you could theoretically just add new characters there like so:

['Ī',     'Ī',  true,'I kahako'],
['Ō',     'Ō',  true,'O kahako'],

and so on...

However when you update Wordpress this will overwrite those changes. So it's not the best solution but it would work.

share|improve this answer
    
Thanks. I'm going to hold out hope that someone chimes in with a filter or something to control it or I'll try to hit up Ozz. –  jb510 Oct 24 '12 at 20:29

Its not that hard to write a plugin to replace something like !U !u !' with the Hawaiian characters. That way you can just type a bang in front of the letter while typing your post to get the character you want.

I did this for suit symbols for card playing sites and it works beautifully and was very easy to do. See http://bridgeteaching.com/2011/09/we-have-created-a-suit-symbol-plugin-for-wordpress/

share|improve this answer
    
Looking at your plugin page you're inserting images for the suit symbols. That's an awful solution for accented characters as it breaks and changes the word for search and screen readers. Even for card suits inline in text I'd suggest using the unicode characters J♠J♣J♥J♦ inline would be prefered to image replacement. –  jb510 Aug 11 '13 at 23:18
    
For card symbols, the supplied characters in a font are not good sizes for showing a hand of cards and the diamonds and hearts are not red. Far better looking to insert images. What are computer caches for if not to speed that up? –  Kitty Cooper Aug 31 '13 at 0:00
    
You can change font sizes and colors linline, and there are colored Unicode characters for hearts and diamonds. –  jb510 Aug 31 '13 at 4:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.