Arrows.js 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/HTML-CSS/optable/Arrows.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. infix: {
  26. '\u219A': MO.RELACCENT, // leftwards arrow with stroke
  27. '\u219B': MO.RELACCENT, // rightwards arrow with stroke
  28. '\u219C': MO.WIDEREL, // leftwards wave arrow
  29. '\u219D': MO.WIDEREL, // rightwards wave arrow
  30. '\u219E': MO.WIDEREL, // leftwards two headed arrow
  31. '\u219F': MO.WIDEREL, // upwards two headed arrow
  32. '\u21A0': MO.WIDEREL, // rightwards two headed arrow
  33. '\u21A1': MO.RELSTRETCH, // downwards two headed arrow
  34. '\u21A2': MO.WIDEREL, // leftwards arrow with tail
  35. '\u21A3': MO.WIDEREL, // rightwards arrow with tail
  36. '\u21A4': MO.WIDEREL, // leftwards arrow from bar
  37. '\u21A5': MO.RELSTRETCH, // upwards arrow from bar
  38. '\u21A7': MO.RELSTRETCH, // downwards arrow from bar
  39. '\u21A8': MO.RELSTRETCH, // up down arrow with base
  40. '\u21AB': MO.WIDEREL, // leftwards arrow with loop
  41. '\u21AC': MO.WIDEREL, // rightwards arrow with loop
  42. '\u21AD': MO.WIDEREL, // left right wave arrow
  43. '\u21AE': MO.RELACCENT, // left right arrow with stroke
  44. '\u21AF': MO.RELSTRETCH, // downwards zigzag arrow
  45. '\u21B0': MO.RELSTRETCH, // upwards arrow with tip leftwards
  46. '\u21B1': MO.RELSTRETCH, // upwards arrow with tip rightwards
  47. '\u21B2': MO.RELSTRETCH, // downwards arrow with tip leftwards
  48. '\u21B3': MO.RELSTRETCH, // downwards arrow with tip rightwards
  49. '\u21B4': MO.RELSTRETCH, // rightwards arrow with corner downwards
  50. '\u21B5': MO.RELSTRETCH, // downwards arrow with corner leftwards
  51. '\u21B6': MO.RELACCENT, // anticlockwise top semicircle arrow
  52. '\u21B7': MO.RELACCENT, // clockwise top semicircle arrow
  53. '\u21B8': MO.REL, // north west arrow to long bar
  54. '\u21B9': MO.WIDEREL, // leftwards arrow to bar over rightwards arrow to bar
  55. '\u21BA': MO.REL, // anticlockwise open circle arrow
  56. '\u21BB': MO.REL, // clockwise open circle arrow
  57. '\u21BE': MO.RELSTRETCH, // upwards harpoon with barb rightwards
  58. '\u21BF': MO.RELSTRETCH, // upwards harpoon with barb leftwards
  59. '\u21C2': MO.RELSTRETCH, // downwards harpoon with barb rightwards
  60. '\u21C3': MO.RELSTRETCH, // downwards harpoon with barb leftwards
  61. '\u21C4': MO.WIDEREL, // rightwards arrow over leftwards arrow
  62. '\u21C5': MO.RELSTRETCH, // upwards arrow leftwards of downwards arrow
  63. '\u21C6': MO.WIDEREL, // leftwards arrow over rightwards arrow
  64. '\u21C7': MO.WIDEREL, // leftwards paired arrows
  65. '\u21C8': MO.RELSTRETCH, // upwards paired arrows
  66. '\u21C9': MO.WIDEREL, // rightwards paired arrows
  67. '\u21CA': MO.RELSTRETCH, // downwards paired arrows
  68. '\u21CB': MO.WIDEREL, // leftwards harpoon over rightwards harpoon
  69. '\u21CD': MO.RELACCENT, // leftwards double arrow with stroke
  70. '\u21CE': MO.RELACCENT, // left right double arrow with stroke
  71. '\u21CF': MO.RELACCENT, // rightwards double arrow with stroke
  72. '\u21D6': MO.RELSTRETCH, // north west double arrow
  73. '\u21D7': MO.RELSTRETCH, // north east double arrow
  74. '\u21D8': MO.RELSTRETCH, // south east double arrow
  75. '\u21D9': MO.RELSTRETCH, // south west double arrow
  76. '\u21DA': MO.WIDEREL, // leftwards triple arrow
  77. '\u21DB': MO.WIDEREL, // rightwards triple arrow
  78. '\u21DC': MO.WIDEREL, // leftwards squiggle arrow
  79. '\u21DD': MO.WIDEREL, // rightwards squiggle arrow
  80. '\u21DE': MO.REL, // upwards arrow with double stroke
  81. '\u21DF': MO.REL, // downwards arrow with double stroke
  82. '\u21E0': MO.WIDEREL, // leftwards dashed arrow
  83. '\u21E1': MO.RELSTRETCH, // upwards dashed arrow
  84. '\u21E2': MO.WIDEREL, // rightwards dashed arrow
  85. '\u21E3': MO.RELSTRETCH, // downwards dashed arrow
  86. '\u21E4': MO.WIDEREL, // leftwards arrow to bar
  87. '\u21E5': MO.WIDEREL, // rightwards arrow to bar
  88. '\u21E6': MO.WIDEREL, // leftwards white arrow
  89. '\u21E7': MO.RELSTRETCH, // upwards white arrow
  90. '\u21E8': MO.WIDEREL, // rightwards white arrow
  91. '\u21E9': MO.RELSTRETCH, // downwards white arrow
  92. '\u21EA': MO.RELSTRETCH, // upwards white arrow from bar
  93. '\u21EB': MO.RELSTRETCH, // upwards white arrow on pedestal
  94. '\u21EC': MO.RELSTRETCH, // upwards white arrow on pedestal with horizontal bar
  95. '\u21ED': MO.RELSTRETCH, // upwards white arrow on pedestal with vertical bar
  96. '\u21EE': MO.RELSTRETCH, // upwards white double arrow
  97. '\u21EF': MO.RELSTRETCH, // upwards white double arrow on pedestal
  98. '\u21F0': MO.WIDEREL, // rightwards white arrow from wall
  99. '\u21F1': MO.REL, // north west arrow to corner
  100. '\u21F2': MO.REL, // south east arrow to corner
  101. '\u21F3': MO.RELSTRETCH, // up down white arrow
  102. '\u21F4': MO.RELACCENT, // right arrow with small circle
  103. '\u21F5': MO.RELSTRETCH, // downwards arrow leftwards of upwards arrow
  104. '\u21F6': MO.WIDEREL, // three rightwards arrows
  105. '\u21F7': MO.RELACCENT, // leftwards arrow with vertical stroke
  106. '\u21F8': MO.RELACCENT, // rightwards arrow with vertical stroke
  107. '\u21F9': MO.RELACCENT, // left right arrow with vertical stroke
  108. '\u21FA': MO.RELACCENT, // leftwards arrow with double vertical stroke
  109. '\u21FB': MO.RELACCENT, // rightwards arrow with double vertical stroke
  110. '\u21FC': MO.RELACCENT, // left right arrow with double vertical stroke
  111. '\u21FD': MO.WIDEREL, // leftwards open-headed arrow
  112. '\u21FE': MO.WIDEREL, // rightwards open-headed arrow
  113. '\u21FF': MO.WIDEREL // left right open-headed arrow
  114. }
  115. }
  116. });
  117. MathJax.Ajax.loadComplete(MML.optableDir+"/Arrows.js");
  118. })(MathJax.ElementJax.mml);