Files
KaTeX/src/unicodeAccents.js
ylemkimon 9783ac1466 Make unicodeAccents.js ES6 module (#1477)
Use `babel-register` in `unicodeMake.js` to require ES6 module.
2018-07-15 13:54:54 -04:00

16 lines
615 B
JavaScript

// Mapping of Unicode accent characters to their LaTeX equivalent in text and
// math mode (when they exist).
export default {
'\u0301': {text: "\\'", math: '\\acute'},
'\u0300': {text: '\\`', math: '\\grave'},
'\u0308': {text: '\\"', math: '\\ddot'},
'\u0303': {text: '\\~', math: '\\tilde'},
'\u0304': {text: '\\=', math: '\\bar'},
'\u0306': {text: '\\u', math: '\\breve'},
'\u030c': {text: '\\v', math: '\\check'},
'\u0302': {text: '\\^', math: '\\hat'},
'\u0307': {text: '\\.', math: '\\dot'},
'\u030a': {text: '\\r', math: '\\mathring'},
'\u030b': {text: '\\H'},
};