Add symbols to Xopus
In order to add symbols to Xopus' 'add-symbols' button you can to two things.
First of all though you will have to see which extra characters you want to use. You will have to get the decimal entity references to these characters from the Unicode code point. A good list can be found at http://www.cookwood.com/entities/.
Your first option is to put together a list of characters that you think you will use and put them together in an array such as
var characters = ['8482','174'];
. This example contains the array for the trademark sign and the registered sign.
This array can them be given to Xopus using the setSymbols function.
Editor.setSymbols(characters);
If you just want to add a symbol to the list, you will first have to get the list through the getSymbols function in the API. You can then add the character(s) that you want.
var characters = Editor.getSymbols();
characters.push('8482');
Editor.setSymbols(characters);
This way you keep the characters already in use, and you add your own.
- Documentation
- › How To
- › Add symbols to Xopus