GensymbConfiguration.js 903 B

123456789101112131415161718192021222324
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.GensymbConfiguration = void 0;
  4. var Configuration_js_1 = require("../Configuration.js");
  5. var TexConstants_js_1 = require("../TexConstants.js");
  6. var SymbolMap_js_1 = require("../SymbolMap.js");
  7. function mathcharUnit(parser, mchar) {
  8. var def = mchar.attributes || {};
  9. def.mathvariant = TexConstants_js_1.TexConstant.Variant.NORMAL;
  10. def.class = 'MathML-Unit';
  11. var node = parser.create('token', 'mi', def, mchar.char);
  12. parser.Push(node);
  13. }
  14. new SymbolMap_js_1.CharacterMap('gensymb-symbols', mathcharUnit, {
  15. ohm: '\u2126',
  16. degree: '\u00B0',
  17. celsius: '\u2103',
  18. perthousand: '\u2030',
  19. micro: '\u00B5'
  20. });
  21. exports.GensymbConfiguration = Configuration_js_1.Configuration.create('gensymb', {
  22. handler: { macro: ['gensymb-symbols'] },
  23. });
  24. //# sourceMappingURL=GensymbConfiguration.js.map