`acceptUnicodeChar = true` is only applicable if `replace` is set.
(mode, font, group, replace, name, acceptUnicodeChar)
| 4427 | /** `acceptUnicodeChar = true` is only applicable if `replace` is set. */ |
| 4428 | |
| 4429 | function defineSymbol(mode, font, group, replace, name, acceptUnicodeChar) { |
| 4430 | symbols[mode][name] = { |
| 4431 | font, |
| 4432 | group, |
| 4433 | replace |
| 4434 | }; |
| 4435 | |
| 4436 | if (acceptUnicodeChar && replace) { |
| 4437 | symbols[mode][replace] = symbols[mode][name]; |
| 4438 | } |
| 4439 | } // Some abbreviations for commonly used strings. |
| 4440 | // This helps minify the code, and also spotting typos using jshint. |
| 4441 | // modes: |
| 4442 |