`acceptUnicodeChar = true` is only applicable if `replace` is set.
(mode, font, group, replace, name, acceptUnicodeChar)
| 3851 | /** `acceptUnicodeChar = true` is only applicable if `replace` is set. */ |
| 3852 | |
| 3853 | function defineSymbol(mode, font, group, replace, name, acceptUnicodeChar) { |
| 3854 | symbols[mode][name] = { |
| 3855 | font, |
| 3856 | group, |
| 3857 | replace |
| 3858 | }; |
| 3859 | |
| 3860 | if (acceptUnicodeChar && replace) { |
| 3861 | symbols[mode][replace] = symbols[mode][name]; |
| 3862 | } |
| 3863 | } // Some abbreviations for commonly used strings. |
| 3864 | // This helps minify the code, and also spotting typos using jshint. |
| 3865 | // modes: |
| 3866 |