TexConstants.ts 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /*************************************************************
  2. *
  3. * Copyright (c) 2017-2022 The MathJax Consortium
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License");
  6. * you may not use this file except in compliance with the License.
  7. * You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. /**
  18. * @fileoverview Constant definitions for the TeX Parser. These should
  19. * eventually be combined with the MathML structure.
  20. *
  21. * @author v.sorge@mathjax.org (Volker Sorge)
  22. */
  23. export namespace TexConstant {
  24. export const Variant = {
  25. NORMAL: 'normal',
  26. BOLD: 'bold',
  27. ITALIC: 'italic',
  28. BOLDITALIC: 'bold-italic',
  29. DOUBLESTRUCK: 'double-struck',
  30. FRAKTUR: 'fraktur',
  31. BOLDFRAKTUR: 'bold-fraktur',
  32. SCRIPT: 'script',
  33. BOLDSCRIPT: 'bold-script',
  34. SANSSERIF: 'sans-serif',
  35. BOLDSANSSERIF: 'bold-sans-serif',
  36. SANSSERIFITALIC: 'sans-serif-italic',
  37. SANSSERIFBOLDITALIC: 'sans-serif-bold-italic',
  38. MONOSPACE: 'monospace',
  39. INITIAL: 'inital',
  40. TAILED: 'tailed',
  41. LOOPED: 'looped',
  42. STRETCHED: 'stretched',
  43. CALLIGRAPHIC: '-tex-calligraphic',
  44. BOLDCALLIGRAPHIC: '-tex-bold-calligraphic',
  45. OLDSTYLE: '-tex-oldstyle',
  46. BOLDOLDSTYLE: '-tex-bold-oldstyle',
  47. MATHITALIC: '-tex-mathit'
  48. };
  49. export const Form = {
  50. PREFIX: 'prefix',
  51. INFIX: 'infix',
  52. POSTFIX: 'postfix'
  53. };
  54. export const LineBreak = {
  55. AUTO: 'auto',
  56. NEWLINE: 'newline',
  57. NOBREAK: 'nobreak',
  58. GOODBREAK: 'goodbreak',
  59. BADBREAK: 'badbreak'
  60. };
  61. export const LineBreakStyle = {
  62. BEFORE: 'before',
  63. AFTER: 'after',
  64. DUPLICATE: 'duplicate',
  65. INFIXLINBREAKSTYLE: 'infixlinebreakstyle'
  66. };
  67. export const IndentAlign = {
  68. LEFT: 'left',
  69. CENTER: 'center',
  70. RIGHT: 'right',
  71. AUTO: 'auto',
  72. ID: 'id',
  73. INDENTALIGN: 'indentalign'
  74. };
  75. export const IndentShift = {
  76. INDENTSHIFT: 'indentshift'
  77. };
  78. export const LineThickness = {
  79. THIN: 'thin',
  80. MEDIUM: 'medium',
  81. THICK: 'thick'
  82. };
  83. export const Notation = {
  84. LONGDIV: 'longdiv',
  85. ACTUARIAL: 'actuarial',
  86. PHASORANGLE: 'phasorangle',
  87. RADICAL: 'radical',
  88. BOX: 'box',
  89. ROUNDEDBOX: 'roundedbox',
  90. CIRCLE: 'circle',
  91. LEFT: 'left',
  92. RIGHT: 'right',
  93. TOP: 'top',
  94. BOTTOM: 'bottom',
  95. UPDIAGONALSTRIKE: 'updiagonalstrike',
  96. DOWNDIAGONALSTRIKE: 'downdiagonalstrike',
  97. VERTICALSTRIKE: 'verticalstrike',
  98. HORIZONTALSTRIKE: 'horizontalstrike',
  99. NORTHEASTARROW: 'northeastarrow',
  100. MADRUWB: 'madruwb',
  101. UPDIAGONALARROW: 'updiagonalarrow'
  102. };
  103. export const Align = {
  104. TOP: 'top',
  105. BOTTOM: 'bottom',
  106. CENTER: 'center',
  107. BASELINE: 'baseline',
  108. AXIS: 'axis',
  109. LEFT: 'left',
  110. RIGHT: 'right'
  111. };
  112. export const Lines = {
  113. NONE: 'none',
  114. SOLID: 'solid',
  115. DASHED: 'dashed'
  116. };
  117. export const Side = {
  118. LEFT: 'left',
  119. RIGHT: 'right',
  120. LEFTOVERLAP: 'leftoverlap',
  121. RIGHTOVERLAP: 'rightoverlap'
  122. };
  123. export const Width = {
  124. AUTO: 'auto',
  125. FIT: 'fit'
  126. };
  127. export const Actiontype = {
  128. TOGGLE: 'toggle',
  129. STATUSLINE: 'statusline',
  130. TOOLTIP: 'tooltip',
  131. INPUT: 'input'
  132. };
  133. export const Overflow = {
  134. LINBREAK: 'linebreak',
  135. SCROLL: 'scroll',
  136. ELIDE: 'elide',
  137. TRUNCATE: 'truncate',
  138. SCALE: 'scale'
  139. };
  140. export const Unit = {
  141. EM: 'em',
  142. EX: 'ex',
  143. PX: 'px',
  144. IN: 'in',
  145. CM: 'cm',
  146. MM: 'mm',
  147. PT: 'pt',
  148. PC: 'pc'
  149. };
  150. }