BasicLatin.js 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/HTML-CSS/optable/BasicLatin.js
  4. *
  5. * Copyright (c) 2010-2013 The MathJax Consortium
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. */
  20. (function (MML) {
  21. var MO = MML.mo.OPTYPES;
  22. var TEXCLASS = MML.TEXCLASS;
  23. MathJax.Hub.Insert(MML.mo.prototype,{
  24. OPTABLE: {
  25. prefix: {
  26. '||': [0,0,TEXCLASS.BIN,{fence: true, stretchy: true, symmetric: true}], // multiple character operator: ||
  27. '|||': [0,0,TEXCLASS.ORD,{fence: true, stretchy: true, symmetric: true}] // multiple character operator: |||
  28. },
  29. postfix: {
  30. '!!': [1,0,TEXCLASS.BIN], // multiple character operator: !!
  31. '\'': MO.ACCENT, // apostrophe
  32. '++': [0,0,TEXCLASS.BIN], // multiple character operator: ++
  33. '--': [0,0,TEXCLASS.BIN], // multiple character operator: --
  34. '..': [0,0,TEXCLASS.BIN], // multiple character operator: ..
  35. '...': MO.ORD, // multiple character operator: ...
  36. '||': [0,0,TEXCLASS.BIN,{fence: true, stretchy: true, symmetric: true}], // multiple character operator: ||
  37. '|||': [0,0,TEXCLASS.ORD,{fence: true, stretchy: true, symmetric: true}] // multiple character operator: |||
  38. },
  39. infix: {
  40. '!=': MO.BIN4, // multiple character operator: !=
  41. '&&': MO.BIN4, // multiple character operator: &&
  42. '**': [1,1,TEXCLASS.BIN], // multiple character operator: **
  43. '*=': MO.BIN4, // multiple character operator: *=
  44. '+=': MO.BIN4, // multiple character operator: +=
  45. '-=': MO.BIN4, // multiple character operator: -=
  46. '->': MO.BIN5, // multiple character operator: ->
  47. '//': [1,1,TEXCLASS.BIN], // multiple character operator: //
  48. '/=': MO.BIN4, // multiple character operator: /=
  49. ':=': MO.BIN4, // multiple character operator: :=
  50. '<=': MO.BIN5, // multiple character operator: <=
  51. '<>': [1,1,TEXCLASS.BIN], // multiple character operator: <>
  52. '==': MO.BIN4, // multiple character operator: ==
  53. '>=': MO.BIN5, // multiple character operator: >=
  54. '@': MO.ORD11, // commercial at
  55. '||': [2,2,TEXCLASS.BIN,{fence: true, stretchy: true, symmetric: true}], // multiple character operator: ||
  56. '|||': [2,2,TEXCLASS.ORD,{fence: true, stretchy: true, symmetric: true}] // multiple character operator: |||
  57. }
  58. }
  59. });
  60. MathJax.Ajax.loadComplete(MML.optableDir+"/BasicLatin.js");
  61. })(MathJax.ElementJax.mml);