fontdata-extra.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /*************************************************************
  2. *
  3. * MathJax/jax/output/SVG/fonts/Neo-Euler/fontdata-extra.js
  4. *
  5. * Adds extra stretchy characters to the Neo-Euler fonts
  6. * Copyright (c) 2013-2017 The MathJax Consortium
  7. *
  8. * Licensed under the Apache License, Version 2.0 (the "License");
  9. * you may not use this file except in compliance with the License.
  10. * You may obtain a copy of the License at
  11. *
  12. * http://www.apache.org/licenses/LICENSE-2.0
  13. *
  14. * Unless required by applicable law or agreed to in writing, software
  15. * distributed under the License is distributed on an "AS IS" BASIS,
  16. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17. * See the License for the specific language governing permissions and
  18. * limitations under the License.
  19. */
  20. (function (SVG) {
  21. var VERSION = "2.7.2";
  22. var DELIMITERS = SVG.FONTDATA.DELIMITERS;
  23. var H = "H", V = "V";
  24. var ALPHABETS = "NeoEulerMathJax_Alphabets",
  25. ARROWS = "NeoEulerMathJax_Arrows",
  26. FRAKTUR = "NeoEulerMathJax_Fraktur",
  27. MAIN = "NeoEulerMathJax_Main",
  28. MARKS = "NeoEulerMathJax_Marks",
  29. NONUNICODE = "NeoEulerMathJax_NonUnicode",
  30. NORMAL = "NeoEulerMathJax_Normal",
  31. OPERATORS = "NeoEulerMathJax_Operators",
  32. SCRIPT = "NeoEulerMathJax_Script",
  33. SHAPES = "NeoEulerMathJax_Shapes",
  34. SIZE1 = "NeoEulerMathJax_Size1",
  35. SIZE2 = "NeoEulerMathJax_Size2",
  36. SIZE3 = "NeoEulerMathJax_Size3",
  37. SIZE4 = "NeoEulerMathJax_Size4",
  38. SIZE5 = "NeoEulerMathJax_Size5",
  39. SYMBOLS = "NeoEulerMathJax_Symbols",
  40. VARIANTS = "NeoEulerMathJax_Variants",
  41. DOUBLESTRUCK = "NeoEulerMathJax_Normal",
  42. SANSSERIF = "NeoEulerMathJax_Normal",
  43. MONOSPACE = "NeoEulerMathJax_Normal";
  44. var delim = {
  45. 0x2044:
  46. {
  47. dir: V,
  48. HW: [[912,MAIN], [1199,SIZE1], [1799,SIZE2], [2399,SIZE3], [2999,SIZE4]]
  49. },
  50. 0x20E1:
  51. {
  52. dir: H,
  53. HW: [[449,MARKS]],
  54. stretch: {left:[0x20D6,MARKS], rep:[0xE004,SIZE5], right:[0x20D7,MAIN]}
  55. },
  56. 0x20EE:
  57. {
  58. dir: H,
  59. HW: [[418,MARKS]],
  60. stretch: {left:[0x20EE,MARKS], rep:[0xE005,SIZE5]}
  61. },
  62. 0x20EF:
  63. {
  64. dir: H,
  65. HW: [[418,MARKS]],
  66. stretch: {rep:[0xE005,SIZE5], right:[0x20EF,MARKS]}
  67. },
  68. 0x220F:
  69. {
  70. dir: V,
  71. HW: [[1000,OPERATORS], [1400,SIZE1]]
  72. },
  73. 0x2210:
  74. {
  75. dir: V,
  76. HW: [[1000,OPERATORS], [1400,SIZE1]]
  77. },
  78. 0x2211:
  79. {
  80. dir: V,
  81. HW: [[1000,OPERATORS], [1400,SIZE1]]
  82. },
  83. 0x2227:
  84. {
  85. dir: V,
  86. HW: [[718,MAIN], [998,SIZE1], [1395,SIZE2]]
  87. },
  88. 0x2228:
  89. {
  90. dir: V,
  91. HW: [[700,MAIN], [998,SIZE1], [1395,SIZE2]]
  92. },
  93. 0x2229:
  94. {
  95. dir: V,
  96. HW: [[600,MAIN], [965,SIZE1], [1358,SIZE2]]
  97. },
  98. 0x222A:
  99. {
  100. dir: V,
  101. HW: [[600,MAIN], [965,SIZE1], [1358,SIZE2]]
  102. },
  103. 0x222B:
  104. {
  105. dir: V,
  106. HW: [[1111,MAIN], [2222,SIZE1]]
  107. },
  108. 0x222C:
  109. {
  110. dir: V,
  111. HW: [[1111,OPERATORS], [2222,SIZE1]]
  112. },
  113. 0x222D:
  114. {
  115. dir: V,
  116. HW: [[1111,OPERATORS], [2222,SIZE1]]
  117. },
  118. 0x222E:
  119. {
  120. dir: V,
  121. HW: [[1111,OPERATORS], [2222,SIZE1]]
  122. },
  123. 0x228E:
  124. {
  125. dir: V,
  126. HW: [[600,MAIN], [965,SIZE1], [1358,SIZE2]]
  127. },
  128. 0x22C0:
  129. {
  130. dir: V,
  131. HW: [[718,OPERATORS], [998,SIZE1], [1395,SIZE2]]
  132. },
  133. 0x22C1:
  134. {
  135. dir: V,
  136. HW: [[700,OPERATORS], [998,SIZE1], [1395,SIZE2]]
  137. },
  138. 0x22C2:
  139. {
  140. dir: V,
  141. HW: [[600,OPERATORS], [965,SIZE1], [1358,SIZE2]]
  142. },
  143. 0x22C3:
  144. {
  145. dir: V,
  146. HW: [[600,OPERATORS], [965,SIZE1], [1358,SIZE2]]
  147. },
  148. 0x23DC:
  149. {
  150. dir: H,
  151. HW: [[925,MAIN], [1199,SIZE1], [1799,SIZE2], [2399,SIZE3], [2999,SIZE4]],
  152. stretch: {left:[0xE009,SIZE5], rep:[0xE00A,SIZE5], right:[0xE00B,SIZE5]}
  153. },
  154. 0x23DD:
  155. {
  156. dir: H,
  157. HW: [[925,MAIN], [1199,SIZE1], [1799,SIZE2], [2399,SIZE3], [2999,SIZE4]],
  158. stretch: {left:[0xE00C,SIZE5], rep:[0xE00D,SIZE5], right:[0xE00E,SIZE5]}
  159. },
  160. 0x2A0C:
  161. {
  162. dir: V,
  163. HW: [[1111,OPERATORS], [2222,SIZE1]]
  164. }
  165. };
  166. for (var id in delim) {if (delim.hasOwnProperty(id)) {DELIMITERS[id] = delim[id]}};
  167. MathJax.Ajax.loadComplete(SVG.fontDir + "/fontdata-extra.js");
  168. })(MathJax.OutputJax["SVG"]);