8
0

specialcharactersmathematical.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. /**
  2. * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
  3. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  4. */
  5. /**
  6. * @module special-characters/specialcharacters
  7. */
  8. import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
  9. import SpecialCharacters from './specialcharacters';
  10. export default class SpecialCharactersMathematical extends Plugin {
  11. /**
  12. * @inheritDoc
  13. */
  14. static get requires() {
  15. return [
  16. SpecialCharacters
  17. ];
  18. }
  19. /**
  20. * @inheritDoc
  21. */
  22. init() {
  23. this.editor.plugins.get( 'SpecialCharacters' ).addItems( 'Mathematical', [
  24. {
  25. character: '<',
  26. title: 'Less-than sign'
  27. },
  28. {
  29. character: '>',
  30. title: 'Greater-than sign'
  31. },
  32. {
  33. character: '≤',
  34. title: 'Less-than or equal to'
  35. },
  36. {
  37. character: '≥',
  38. title: 'Greater-than or equal to'
  39. },
  40. {
  41. character: '–',
  42. title: 'En dash'
  43. },
  44. {
  45. character: '—',
  46. title: 'Em dash'
  47. },
  48. {
  49. character: '¯',
  50. title: 'Macron'
  51. },
  52. {
  53. character: '‾',
  54. title: 'Overline'
  55. },
  56. {
  57. character: '°',
  58. title: 'Degree sign'
  59. },
  60. {
  61. character: '−',
  62. title: 'Minus sign'
  63. },
  64. {
  65. character: '±',
  66. title: 'Plus-minus sign'
  67. },
  68. {
  69. character: '÷',
  70. title: 'Division sign'
  71. },
  72. {
  73. character: '⁄',
  74. title: 'Fraction slash'
  75. },
  76. {
  77. character: '×',
  78. title: 'Multiplication sign'
  79. },
  80. {
  81. character: 'ƒ',
  82. title: 'Latin small letter f with hook'
  83. },
  84. {
  85. character: '∫',
  86. title: 'Integral'
  87. },
  88. {
  89. character: '∑',
  90. title: 'N-ary summation'
  91. },
  92. {
  93. character: '∞',
  94. title: 'Infinity'
  95. },
  96. {
  97. character: '√',
  98. title: 'Square root'
  99. },
  100. {
  101. character: '∼',
  102. title: 'Tilde operator'
  103. },
  104. {
  105. character: '≅',
  106. title: 'Approximately equal to'
  107. },
  108. {
  109. character: '≈',
  110. title: 'Almost equal to'
  111. },
  112. {
  113. character: '≠',
  114. title: 'Not equal to'
  115. },
  116. {
  117. character: '≡',
  118. title: 'Identical to'
  119. },
  120. {
  121. character: '∈',
  122. title: 'Element of'
  123. },
  124. {
  125. character: '∉',
  126. title: 'Not an element of'
  127. },
  128. {
  129. character: '∋',
  130. title: 'Contains as member'
  131. },
  132. {
  133. character: '∏',
  134. title: 'N-ary product'
  135. },
  136. {
  137. character: '∧',
  138. title: 'Logical and'
  139. },
  140. {
  141. character: '∨',
  142. title: 'Logical or'
  143. },
  144. {
  145. character: '¬',
  146. title: 'Not sign'
  147. },
  148. {
  149. character: '∩',
  150. title: 'Intersection'
  151. },
  152. {
  153. character: '∪',
  154. title: 'Union'
  155. },
  156. {
  157. character: '∂',
  158. title: 'Partial differential'
  159. },
  160. {
  161. character: '∀',
  162. title: 'For all'
  163. },
  164. {
  165. character: '∃',
  166. title: 'There exists'
  167. },
  168. {
  169. character: '∅',
  170. title: 'Empty set'
  171. },
  172. {
  173. character: '∇',
  174. title: 'Nabla'
  175. },
  176. {
  177. character: '∗',
  178. title: 'Asterisk operator'
  179. },
  180. {
  181. character: '∝',
  182. title: 'Proportional to'
  183. },
  184. {
  185. character: '∠',
  186. title: 'Angle'
  187. },
  188. {
  189. character: '¼',
  190. title: 'Vulgar fraction one quarter'
  191. },
  192. {
  193. character: '½',
  194. title: 'Vulgar fraction one half'
  195. },
  196. {
  197. character: '¾',
  198. title: 'Vulgar fraction three quarters'
  199. }
  200. ] );
  201. }
  202. }