@ckeditor/ckeditor5-special-characters 0.0.0-internal-20241017.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/LICENSE.md +17 -0
  3. package/README.md +27 -0
  4. package/build/special-characters.js +5 -0
  5. package/build/translations/ar.js +1 -0
  6. package/build/translations/az.js +1 -0
  7. package/build/translations/bg.js +1 -0
  8. package/build/translations/bn.js +1 -0
  9. package/build/translations/ca.js +1 -0
  10. package/build/translations/cs.js +1 -0
  11. package/build/translations/da.js +1 -0
  12. package/build/translations/de.js +1 -0
  13. package/build/translations/el.js +1 -0
  14. package/build/translations/en-au.js +1 -0
  15. package/build/translations/es.js +1 -0
  16. package/build/translations/et.js +1 -0
  17. package/build/translations/fa.js +1 -0
  18. package/build/translations/fi.js +1 -0
  19. package/build/translations/fr.js +1 -0
  20. package/build/translations/gl.js +1 -0
  21. package/build/translations/he.js +1 -0
  22. package/build/translations/hi.js +1 -0
  23. package/build/translations/hr.js +1 -0
  24. package/build/translations/hu.js +1 -0
  25. package/build/translations/id.js +1 -0
  26. package/build/translations/it.js +1 -0
  27. package/build/translations/ja.js +1 -0
  28. package/build/translations/ko.js +1 -0
  29. package/build/translations/lt.js +1 -0
  30. package/build/translations/lv.js +1 -0
  31. package/build/translations/ms.js +1 -0
  32. package/build/translations/nl.js +1 -0
  33. package/build/translations/no.js +1 -0
  34. package/build/translations/pl.js +1 -0
  35. package/build/translations/pt-br.js +1 -0
  36. package/build/translations/pt.js +1 -0
  37. package/build/translations/ro.js +1 -0
  38. package/build/translations/ru.js +1 -0
  39. package/build/translations/sk.js +1 -0
  40. package/build/translations/sq.js +1 -0
  41. package/build/translations/sr-latn.js +1 -0
  42. package/build/translations/sr.js +1 -0
  43. package/build/translations/sv.js +1 -0
  44. package/build/translations/th.js +1 -0
  45. package/build/translations/ti.js +1 -0
  46. package/build/translations/tk.js +1 -0
  47. package/build/translations/tr.js +1 -0
  48. package/build/translations/ug.js +1 -0
  49. package/build/translations/uk.js +1 -0
  50. package/build/translations/ur.js +1 -0
  51. package/build/translations/uz.js +1 -0
  52. package/build/translations/vi.js +1 -0
  53. package/build/translations/zh-cn.js +1 -0
  54. package/build/translations/zh.js +1 -0
  55. package/ckeditor5-metadata.json +78 -0
  56. package/dist/augmentation.d.ts +28 -0
  57. package/dist/index-content.css +4 -0
  58. package/dist/index-editor.css +92 -0
  59. package/dist/index.css +124 -0
  60. package/dist/index.css.map +1 -0
  61. package/dist/index.d.ts +20 -0
  62. package/dist/index.js +1844 -0
  63. package/dist/index.js.map +1 -0
  64. package/dist/specialcharacters.d.ts +110 -0
  65. package/dist/specialcharactersarrows.d.ts +38 -0
  66. package/dist/specialcharactersconfig.d.ts +55 -0
  67. package/dist/specialcharacterscurrency.d.ts +38 -0
  68. package/dist/specialcharactersessentials.d.ts +43 -0
  69. package/dist/specialcharacterslatin.d.ts +38 -0
  70. package/dist/specialcharactersmathematical.d.ts +38 -0
  71. package/dist/specialcharacterstext.d.ts +38 -0
  72. package/dist/translations/ar.d.ts +8 -0
  73. package/dist/translations/ar.js +5 -0
  74. package/dist/translations/ar.umd.js +11 -0
  75. package/dist/translations/az.d.ts +8 -0
  76. package/dist/translations/az.js +5 -0
  77. package/dist/translations/az.umd.js +11 -0
  78. package/dist/translations/bg.d.ts +8 -0
  79. package/dist/translations/bg.js +5 -0
  80. package/dist/translations/bg.umd.js +11 -0
  81. package/dist/translations/bn.d.ts +8 -0
  82. package/dist/translations/bn.js +5 -0
  83. package/dist/translations/bn.umd.js +11 -0
  84. package/dist/translations/ca.d.ts +8 -0
  85. package/dist/translations/ca.js +5 -0
  86. package/dist/translations/ca.umd.js +11 -0
  87. package/dist/translations/cs.d.ts +8 -0
  88. package/dist/translations/cs.js +5 -0
  89. package/dist/translations/cs.umd.js +11 -0
  90. package/dist/translations/da.d.ts +8 -0
  91. package/dist/translations/da.js +5 -0
  92. package/dist/translations/da.umd.js +11 -0
  93. package/dist/translations/de.d.ts +8 -0
  94. package/dist/translations/de.js +5 -0
  95. package/dist/translations/de.umd.js +11 -0
  96. package/dist/translations/el.d.ts +8 -0
  97. package/dist/translations/el.js +5 -0
  98. package/dist/translations/el.umd.js +11 -0
  99. package/dist/translations/en-au.d.ts +8 -0
  100. package/dist/translations/en-au.js +5 -0
  101. package/dist/translations/en-au.umd.js +11 -0
  102. package/dist/translations/en.d.ts +8 -0
  103. package/dist/translations/en.js +5 -0
  104. package/dist/translations/en.umd.js +11 -0
  105. package/dist/translations/es.d.ts +8 -0
  106. package/dist/translations/es.js +5 -0
  107. package/dist/translations/es.umd.js +11 -0
  108. package/dist/translations/et.d.ts +8 -0
  109. package/dist/translations/et.js +5 -0
  110. package/dist/translations/et.umd.js +11 -0
  111. package/dist/translations/fa.d.ts +8 -0
  112. package/dist/translations/fa.js +5 -0
  113. package/dist/translations/fa.umd.js +11 -0
  114. package/dist/translations/fi.d.ts +8 -0
  115. package/dist/translations/fi.js +5 -0
  116. package/dist/translations/fi.umd.js +11 -0
  117. package/dist/translations/fr.d.ts +8 -0
  118. package/dist/translations/fr.js +5 -0
  119. package/dist/translations/fr.umd.js +11 -0
  120. package/dist/translations/gl.d.ts +8 -0
  121. package/dist/translations/gl.js +5 -0
  122. package/dist/translations/gl.umd.js +11 -0
  123. package/dist/translations/he.d.ts +8 -0
  124. package/dist/translations/he.js +5 -0
  125. package/dist/translations/he.umd.js +11 -0
  126. package/dist/translations/hi.d.ts +8 -0
  127. package/dist/translations/hi.js +5 -0
  128. package/dist/translations/hi.umd.js +11 -0
  129. package/dist/translations/hr.d.ts +8 -0
  130. package/dist/translations/hr.js +5 -0
  131. package/dist/translations/hr.umd.js +11 -0
  132. package/dist/translations/hu.d.ts +8 -0
  133. package/dist/translations/hu.js +5 -0
  134. package/dist/translations/hu.umd.js +11 -0
  135. package/dist/translations/id.d.ts +8 -0
  136. package/dist/translations/id.js +5 -0
  137. package/dist/translations/id.umd.js +11 -0
  138. package/dist/translations/it.d.ts +8 -0
  139. package/dist/translations/it.js +5 -0
  140. package/dist/translations/it.umd.js +11 -0
  141. package/dist/translations/ja.d.ts +8 -0
  142. package/dist/translations/ja.js +5 -0
  143. package/dist/translations/ja.umd.js +11 -0
  144. package/dist/translations/ko.d.ts +8 -0
  145. package/dist/translations/ko.js +5 -0
  146. package/dist/translations/ko.umd.js +11 -0
  147. package/dist/translations/lt.d.ts +8 -0
  148. package/dist/translations/lt.js +5 -0
  149. package/dist/translations/lt.umd.js +11 -0
  150. package/dist/translations/lv.d.ts +8 -0
  151. package/dist/translations/lv.js +5 -0
  152. package/dist/translations/lv.umd.js +11 -0
  153. package/dist/translations/ms.d.ts +8 -0
  154. package/dist/translations/ms.js +5 -0
  155. package/dist/translations/ms.umd.js +11 -0
  156. package/dist/translations/nl.d.ts +8 -0
  157. package/dist/translations/nl.js +5 -0
  158. package/dist/translations/nl.umd.js +11 -0
  159. package/dist/translations/no.d.ts +8 -0
  160. package/dist/translations/no.js +5 -0
  161. package/dist/translations/no.umd.js +11 -0
  162. package/dist/translations/pl.d.ts +8 -0
  163. package/dist/translations/pl.js +5 -0
  164. package/dist/translations/pl.umd.js +11 -0
  165. package/dist/translations/pt-br.d.ts +8 -0
  166. package/dist/translations/pt-br.js +5 -0
  167. package/dist/translations/pt-br.umd.js +11 -0
  168. package/dist/translations/pt.d.ts +8 -0
  169. package/dist/translations/pt.js +5 -0
  170. package/dist/translations/pt.umd.js +11 -0
  171. package/dist/translations/ro.d.ts +8 -0
  172. package/dist/translations/ro.js +5 -0
  173. package/dist/translations/ro.umd.js +11 -0
  174. package/dist/translations/ru.d.ts +8 -0
  175. package/dist/translations/ru.js +5 -0
  176. package/dist/translations/ru.umd.js +11 -0
  177. package/dist/translations/sk.d.ts +8 -0
  178. package/dist/translations/sk.js +5 -0
  179. package/dist/translations/sk.umd.js +11 -0
  180. package/dist/translations/sq.d.ts +8 -0
  181. package/dist/translations/sq.js +5 -0
  182. package/dist/translations/sq.umd.js +11 -0
  183. package/dist/translations/sr-latn.d.ts +8 -0
  184. package/dist/translations/sr-latn.js +5 -0
  185. package/dist/translations/sr-latn.umd.js +11 -0
  186. package/dist/translations/sr.d.ts +8 -0
  187. package/dist/translations/sr.js +5 -0
  188. package/dist/translations/sr.umd.js +11 -0
  189. package/dist/translations/sv.d.ts +8 -0
  190. package/dist/translations/sv.js +5 -0
  191. package/dist/translations/sv.umd.js +11 -0
  192. package/dist/translations/th.d.ts +8 -0
  193. package/dist/translations/th.js +5 -0
  194. package/dist/translations/th.umd.js +11 -0
  195. package/dist/translations/ti.d.ts +8 -0
  196. package/dist/translations/ti.js +5 -0
  197. package/dist/translations/ti.umd.js +11 -0
  198. package/dist/translations/tk.d.ts +8 -0
  199. package/dist/translations/tk.js +5 -0
  200. package/dist/translations/tk.umd.js +11 -0
  201. package/dist/translations/tr.d.ts +8 -0
  202. package/dist/translations/tr.js +5 -0
  203. package/dist/translations/tr.umd.js +11 -0
  204. package/dist/translations/ug.d.ts +8 -0
  205. package/dist/translations/ug.js +5 -0
  206. package/dist/translations/ug.umd.js +11 -0
  207. package/dist/translations/uk.d.ts +8 -0
  208. package/dist/translations/uk.js +5 -0
  209. package/dist/translations/uk.umd.js +11 -0
  210. package/dist/translations/ur.d.ts +8 -0
  211. package/dist/translations/ur.js +5 -0
  212. package/dist/translations/ur.umd.js +11 -0
  213. package/dist/translations/uz.d.ts +8 -0
  214. package/dist/translations/uz.js +5 -0
  215. package/dist/translations/uz.umd.js +11 -0
  216. package/dist/translations/vi.d.ts +8 -0
  217. package/dist/translations/vi.js +5 -0
  218. package/dist/translations/vi.umd.js +11 -0
  219. package/dist/translations/zh-cn.d.ts +8 -0
  220. package/dist/translations/zh-cn.js +5 -0
  221. package/dist/translations/zh-cn.umd.js +11 -0
  222. package/dist/translations/zh.d.ts +8 -0
  223. package/dist/translations/zh.js +5 -0
  224. package/dist/translations/zh.umd.js +11 -0
  225. package/dist/ui/charactergridview.d.ts +98 -0
  226. package/dist/ui/characterinfoview.d.ts +39 -0
  227. package/dist/ui/specialcharacterscategoriesview.d.ts +45 -0
  228. package/dist/ui/specialcharactersview.d.ts +69 -0
  229. package/lang/contexts.json +267 -0
  230. package/lang/translations/ar.po +1080 -0
  231. package/lang/translations/az.po +1078 -0
  232. package/lang/translations/bg.po +1082 -0
  233. package/lang/translations/bn.po +1078 -0
  234. package/lang/translations/ca.po +1078 -0
  235. package/lang/translations/cs.po +1078 -0
  236. package/lang/translations/da.po +1078 -0
  237. package/lang/translations/de.po +1078 -0
  238. package/lang/translations/el.po +1078 -0
  239. package/lang/translations/en-au.po +1078 -0
  240. package/lang/translations/en.po +1078 -0
  241. package/lang/translations/es.po +1078 -0
  242. package/lang/translations/et.po +1078 -0
  243. package/lang/translations/fa.po +1078 -0
  244. package/lang/translations/fi.po +1078 -0
  245. package/lang/translations/fr.po +1078 -0
  246. package/lang/translations/gl.po +1078 -0
  247. package/lang/translations/he.po +1078 -0
  248. package/lang/translations/hi.po +1078 -0
  249. package/lang/translations/hr.po +1078 -0
  250. package/lang/translations/hu.po +1078 -0
  251. package/lang/translations/id.po +1078 -0
  252. package/lang/translations/it.po +1078 -0
  253. package/lang/translations/ja.po +1078 -0
  254. package/lang/translations/ko.po +1078 -0
  255. package/lang/translations/lt.po +1078 -0
  256. package/lang/translations/lv.po +1078 -0
  257. package/lang/translations/ms.po +1078 -0
  258. package/lang/translations/nl.po +1080 -0
  259. package/lang/translations/no.po +1080 -0
  260. package/lang/translations/pl.po +1078 -0
  261. package/lang/translations/pt-br.po +1078 -0
  262. package/lang/translations/pt.po +1078 -0
  263. package/lang/translations/ro.po +1078 -0
  264. package/lang/translations/ru.po +1078 -0
  265. package/lang/translations/sk.po +1078 -0
  266. package/lang/translations/sq.po +1078 -0
  267. package/lang/translations/sr-latn.po +1078 -0
  268. package/lang/translations/sr.po +1078 -0
  269. package/lang/translations/sv.po +1078 -0
  270. package/lang/translations/th.po +1078 -0
  271. package/lang/translations/ti.po +1078 -0
  272. package/lang/translations/tk.po +1078 -0
  273. package/lang/translations/tr.po +1078 -0
  274. package/lang/translations/ug.po +1078 -0
  275. package/lang/translations/uk.po +1078 -0
  276. package/lang/translations/ur.po +1078 -0
  277. package/lang/translations/uz.po +1078 -0
  278. package/lang/translations/vi.po +1078 -0
  279. package/lang/translations/zh-cn.po +1078 -0
  280. package/lang/translations/zh.po +1078 -0
  281. package/package.json +42 -0
  282. package/src/augmentation.d.ts +24 -0
  283. package/src/augmentation.js +5 -0
  284. package/src/index.d.ts +16 -0
  285. package/src/index.js +15 -0
  286. package/src/specialcharacters.d.ts +106 -0
  287. package/src/specialcharacters.js +235 -0
  288. package/src/specialcharactersarrows.d.ts +34 -0
  289. package/src/specialcharactersarrows.js +66 -0
  290. package/src/specialcharactersconfig.d.ts +51 -0
  291. package/src/specialcharactersconfig.js +5 -0
  292. package/src/specialcharacterscurrency.d.ts +34 -0
  293. package/src/specialcharacterscurrency.js +80 -0
  294. package/src/specialcharactersessentials.d.ts +39 -0
  295. package/src/specialcharactersessentials.js +51 -0
  296. package/src/specialcharacterslatin.d.ts +34 -0
  297. package/src/specialcharacterslatin.js +172 -0
  298. package/src/specialcharactersmathematical.d.ts +34 -0
  299. package/src/specialcharactersmathematical.js +88 -0
  300. package/src/specialcharacterstext.d.ts +34 -0
  301. package/src/specialcharacterstext.js +71 -0
  302. package/src/ui/charactergridview.d.ts +94 -0
  303. package/src/ui/charactergridview.js +129 -0
  304. package/src/ui/characterinfoview.d.ts +35 -0
  305. package/src/ui/characterinfoview.js +71 -0
  306. package/src/ui/specialcharacterscategoriesview.d.ts +41 -0
  307. package/src/ui/specialcharacterscategoriesview.js +94 -0
  308. package/src/ui/specialcharactersview.d.ts +65 -0
  309. package/src/ui/specialcharactersview.js +78 -0
  310. package/theme/charactergrid.css +12 -0
  311. package/theme/characterinfo.css +9 -0
  312. package/theme/icons/specialcharacters.svg +1 -0
  313. package/theme/specialcharacters.css +91 -0
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharacterscurrency
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Currency" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersCurrency ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersCurrency extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersCurrency';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Currency', [
42
+ { character: '$', title: t('Dollar sign') },
43
+ { character: '€', title: t('Euro sign') },
44
+ { character: '¥', title: t('Yen sign') },
45
+ { character: '£', title: t('Pound sign') },
46
+ { character: '¢', title: t('Cent sign') },
47
+ { character: '₠', title: t('Euro-currency sign') },
48
+ { character: '₡', title: t('Colon sign') },
49
+ { character: '₢', title: t('Cruzeiro sign') },
50
+ { character: '₣', title: t('French franc sign') },
51
+ { character: '₤', title: t('Lira sign') },
52
+ { character: '¤', title: t('Currency sign') },
53
+ { character: '₿', title: t('Bitcoin sign') },
54
+ { character: '₥', title: t('Mill sign') },
55
+ { character: '₦', title: t('Naira sign') },
56
+ { character: '₧', title: t('Peseta sign') },
57
+ { character: '₨', title: t('Rupee sign') },
58
+ { character: '₩', title: t('Won sign') },
59
+ { character: '₪', title: t('New sheqel sign') },
60
+ { character: '₫', title: t('Dong sign') },
61
+ { character: '₭', title: t('Kip sign') },
62
+ { character: '₮', title: t('Tugrik sign') },
63
+ { character: '₯', title: t('Drachma sign') },
64
+ { character: '₰', title: t('German penny sign') },
65
+ { character: '₱', title: t('Peso sign') },
66
+ { character: '₲', title: t('Guarani sign') },
67
+ { character: '₳', title: t('Austral sign') },
68
+ { character: '₴', title: t('Hryvnia sign') },
69
+ { character: '₵', title: t('Cedi sign') },
70
+ { character: '₶', title: t('Livre tournois sign') },
71
+ { character: '₷', title: t('Spesmilo sign') },
72
+ { character: '₸', title: t('Tenge sign') },
73
+ { character: '₹', title: t('Indian rupee sign') },
74
+ { character: '₺', title: t('Turkish lira sign') },
75
+ { character: '₻', title: t('Nordic mark sign') },
76
+ { character: '₼', title: t('Manat sign') },
77
+ { character: '₽', title: t('Ruble sign') }
78
+ ], { label: t('Currency') });
79
+ }
80
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharactersessentials
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import SpecialCharactersCurrency from './specialcharacterscurrency.js';
10
+ import SpecialCharactersMathematical from './specialcharactersmathematical.js';
11
+ import SpecialCharactersArrows from './specialcharactersarrows.js';
12
+ import SpecialCharactersLatin from './specialcharacterslatin.js';
13
+ import SpecialCharactersText from './specialcharacterstext.js';
14
+ /**
15
+ * A plugin combining a basic set of characters for the special characters plugin.
16
+ *
17
+ * ```ts
18
+ * ClassicEditor
19
+ * .create( {
20
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersEssentials ],
21
+ * } )
22
+ * .then( ... )
23
+ * .catch( ... );
24
+ * ```
25
+ */
26
+ export default class SpecialCharactersEssentials extends Plugin {
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName(): "SpecialCharactersEssentials";
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ static get isOfficialPlugin(): true;
35
+ /**
36
+ * @inheritDoc
37
+ */
38
+ static get requires(): readonly [typeof SpecialCharactersCurrency, typeof SpecialCharactersText, typeof SpecialCharactersMathematical, typeof SpecialCharactersArrows, typeof SpecialCharactersLatin];
39
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharactersessentials
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ import SpecialCharactersCurrency from './specialcharacterscurrency.js';
10
+ import SpecialCharactersMathematical from './specialcharactersmathematical.js';
11
+ import SpecialCharactersArrows from './specialcharactersarrows.js';
12
+ import SpecialCharactersLatin from './specialcharacterslatin.js';
13
+ import SpecialCharactersText from './specialcharacterstext.js';
14
+ /**
15
+ * A plugin combining a basic set of characters for the special characters plugin.
16
+ *
17
+ * ```ts
18
+ * ClassicEditor
19
+ * .create( {
20
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersEssentials ],
21
+ * } )
22
+ * .then( ... )
23
+ * .catch( ... );
24
+ * ```
25
+ */
26
+ export default class SpecialCharactersEssentials extends Plugin {
27
+ /**
28
+ * @inheritDoc
29
+ */
30
+ static get pluginName() {
31
+ return 'SpecialCharactersEssentials';
32
+ }
33
+ /**
34
+ * @inheritDoc
35
+ */
36
+ static get isOfficialPlugin() {
37
+ return true;
38
+ }
39
+ /**
40
+ * @inheritDoc
41
+ */
42
+ static get requires() {
43
+ return [
44
+ SpecialCharactersCurrency,
45
+ SpecialCharactersText,
46
+ SpecialCharactersMathematical,
47
+ SpecialCharactersArrows,
48
+ SpecialCharactersLatin
49
+ ];
50
+ }
51
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharacterslatin
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Latin" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersLatin ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersLatin extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "SpecialCharactersLatin";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ }
@@ -0,0 +1,172 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharacterslatin
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Latin" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersLatin ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersLatin extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersLatin';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Latin', [
42
+ { character: 'Ā', title: t('Latin capital letter a with macron') },
43
+ { character: 'ā', title: t('Latin small letter a with macron') },
44
+ { character: 'Ă', title: t('Latin capital letter a with breve') },
45
+ { character: 'ă', title: t('Latin small letter a with breve') },
46
+ { character: 'Ą', title: t('Latin capital letter a with ogonek') },
47
+ { character: 'ą', title: t('Latin small letter a with ogonek') },
48
+ { character: 'Ć', title: t('Latin capital letter c with acute') },
49
+ { character: 'ć', title: t('Latin small letter c with acute') },
50
+ { character: 'Ĉ', title: t('Latin capital letter c with circumflex') },
51
+ { character: 'ĉ', title: t('Latin small letter c with circumflex') },
52
+ { character: 'Ċ', title: t('Latin capital letter c with dot above') },
53
+ { character: 'ċ', title: t('Latin small letter c with dot above') },
54
+ { character: 'Č', title: t('Latin capital letter c with caron') },
55
+ { character: 'č', title: t('Latin small letter c with caron') },
56
+ { character: 'Ď', title: t('Latin capital letter d with caron') },
57
+ { character: 'ď', title: t('Latin small letter d with caron') },
58
+ { character: 'Đ', title: t('Latin capital letter d with stroke') },
59
+ { character: 'đ', title: t('Latin small letter d with stroke') },
60
+ { character: 'Ē', title: t('Latin capital letter e with macron') },
61
+ { character: 'ē', title: t('Latin small letter e with macron') },
62
+ { character: 'Ĕ', title: t('Latin capital letter e with breve') },
63
+ { character: 'ĕ', title: t('Latin small letter e with breve') },
64
+ { character: 'Ė', title: t('Latin capital letter e with dot above') },
65
+ { character: 'ė', title: t('Latin small letter e with dot above') },
66
+ { character: 'Ę', title: t('Latin capital letter e with ogonek') },
67
+ { character: 'ę', title: t('Latin small letter e with ogonek') },
68
+ { character: 'Ě', title: t('Latin capital letter e with caron') },
69
+ { character: 'ě', title: t('Latin small letter e with caron') },
70
+ { character: 'Ĝ', title: t('Latin capital letter g with circumflex') },
71
+ { character: 'ĝ', title: t('Latin small letter g with circumflex') },
72
+ { character: 'Ğ', title: t('Latin capital letter g with breve') },
73
+ { character: 'ğ', title: t('Latin small letter g with breve') },
74
+ { character: 'Ġ', title: t('Latin capital letter g with dot above') },
75
+ { character: 'ġ', title: t('Latin small letter g with dot above') },
76
+ { character: 'Ģ', title: t('Latin capital letter g with cedilla') },
77
+ { character: 'ģ', title: t('Latin small letter g with cedilla') },
78
+ { character: 'Ĥ', title: t('Latin capital letter h with circumflex') },
79
+ { character: 'ĥ', title: t('Latin small letter h with circumflex') },
80
+ { character: 'Ħ', title: t('Latin capital letter h with stroke') },
81
+ { character: 'ħ', title: t('Latin small letter h with stroke') },
82
+ { character: 'Ĩ', title: t('Latin capital letter i with tilde') },
83
+ { character: 'ĩ', title: t('Latin small letter i with tilde') },
84
+ { character: 'Ī', title: t('Latin capital letter i with macron') },
85
+ { character: 'ī', title: t('Latin small letter i with macron') },
86
+ { character: 'Ĭ', title: t('Latin capital letter i with breve') },
87
+ { character: 'ĭ', title: t('Latin small letter i with breve') },
88
+ { character: 'Į', title: t('Latin capital letter i with ogonek') },
89
+ { character: 'į', title: t('Latin small letter i with ogonek') },
90
+ { character: 'İ', title: t('Latin capital letter i with dot above') },
91
+ { character: 'ı', title: t('Latin small letter dotless i') },
92
+ { character: 'IJ', title: t('Latin capital ligature ij') },
93
+ { character: 'ij', title: t('Latin small ligature ij') },
94
+ { character: 'Ĵ', title: t('Latin capital letter j with circumflex') },
95
+ { character: 'ĵ', title: t('Latin small letter j with circumflex') },
96
+ { character: 'Ķ', title: t('Latin capital letter k with cedilla') },
97
+ { character: 'ķ', title: t('Latin small letter k with cedilla') },
98
+ { character: 'ĸ', title: t('Latin small letter kra') },
99
+ { character: 'Ĺ', title: t('Latin capital letter l with acute') },
100
+ { character: 'ĺ', title: t('Latin small letter l with acute') },
101
+ { character: 'Ļ', title: t('Latin capital letter l with cedilla') },
102
+ { character: 'ļ', title: t('Latin small letter l with cedilla') },
103
+ { character: 'Ľ', title: t('Latin capital letter l with caron') },
104
+ { character: 'ľ', title: t('Latin small letter l with caron') },
105
+ { character: 'Ŀ', title: t('Latin capital letter l with middle dot') },
106
+ { character: 'ŀ', title: t('Latin small letter l with middle dot') },
107
+ { character: 'Ł', title: t('Latin capital letter l with stroke') },
108
+ { character: 'ł', title: t('Latin small letter l with stroke') },
109
+ { character: 'Ń', title: t('Latin capital letter n with acute') },
110
+ { character: 'ń', title: t('Latin small letter n with acute') },
111
+ { character: 'Ņ', title: t('Latin capital letter n with cedilla') },
112
+ { character: 'ņ', title: t('Latin small letter n with cedilla') },
113
+ { character: 'Ň', title: t('Latin capital letter n with caron') },
114
+ { character: 'ň', title: t('Latin small letter n with caron') },
115
+ { character: 'ʼn', title: t('Latin small letter n preceded by apostrophe') },
116
+ { character: 'Ŋ', title: t('Latin capital letter eng') },
117
+ { character: 'ŋ', title: t('Latin small letter eng') },
118
+ { character: 'Ō', title: t('Latin capital letter o with macron') },
119
+ { character: 'ō', title: t('Latin small letter o with macron') },
120
+ { character: 'Ŏ', title: t('Latin capital letter o with breve') },
121
+ { character: 'ŏ', title: t('Latin small letter o with breve') },
122
+ { character: 'Ő', title: t('Latin capital letter o with double acute') },
123
+ { character: 'ő', title: t('Latin small letter o with double acute') },
124
+ { character: 'Œ', title: t('Latin capital ligature oe') },
125
+ { character: 'œ', title: t('Latin small ligature oe') },
126
+ { character: 'Ŕ', title: t('Latin capital letter r with acute') },
127
+ { character: 'ŕ', title: t('Latin small letter r with acute') },
128
+ { character: 'Ŗ', title: t('Latin capital letter r with cedilla') },
129
+ { character: 'ŗ', title: t('Latin small letter r with cedilla') },
130
+ { character: 'Ř', title: t('Latin capital letter r with caron') },
131
+ { character: 'ř', title: t('Latin small letter r with caron') },
132
+ { character: 'Ś', title: t('Latin capital letter s with acute') },
133
+ { character: 'ś', title: t('Latin small letter s with acute') },
134
+ { character: 'Ŝ', title: t('Latin capital letter s with circumflex') },
135
+ { character: 'ŝ', title: t('Latin small letter s with circumflex') },
136
+ { character: 'Ş', title: t('Latin capital letter s with cedilla') },
137
+ { character: 'ş', title: t('Latin small letter s with cedilla') },
138
+ { character: 'Š', title: t('Latin capital letter s with caron') },
139
+ { character: 'š', title: t('Latin small letter s with caron') },
140
+ { character: 'Ţ', title: t('Latin capital letter t with cedilla') },
141
+ { character: 'ţ', title: t('Latin small letter t with cedilla') },
142
+ { character: 'Ť', title: t('Latin capital letter t with caron') },
143
+ { character: 'ť', title: t('Latin small letter t with caron') },
144
+ { character: 'Ŧ', title: t('Latin capital letter t with stroke') },
145
+ { character: 'ŧ', title: t('Latin small letter t with stroke') },
146
+ { character: 'Ũ', title: t('Latin capital letter u with tilde') },
147
+ { character: 'ũ', title: t('Latin small letter u with tilde') },
148
+ { character: 'Ū', title: t('Latin capital letter u with macron') },
149
+ { character: 'ū', title: t('Latin small letter u with macron') },
150
+ { character: 'Ŭ', title: t('Latin capital letter u with breve') },
151
+ { character: 'ŭ', title: t('Latin small letter u with breve') },
152
+ { character: 'Ů', title: t('Latin capital letter u with ring above') },
153
+ { character: 'ů', title: t('Latin small letter u with ring above') },
154
+ { character: 'Ű', title: t('Latin capital letter u with double acute') },
155
+ { character: 'ű', title: t('Latin small letter u with double acute') },
156
+ { character: 'Ų', title: t('Latin capital letter u with ogonek') },
157
+ { character: 'ų', title: t('Latin small letter u with ogonek') },
158
+ { character: 'Ŵ', title: t('Latin capital letter w with circumflex') },
159
+ { character: 'ŵ', title: t('Latin small letter w with circumflex') },
160
+ { character: 'Ŷ', title: t('Latin capital letter y with circumflex') },
161
+ { character: 'ŷ', title: t('Latin small letter y with circumflex') },
162
+ { character: 'Ÿ', title: t('Latin capital letter y with diaeresis') },
163
+ { character: 'Ź', title: t('Latin capital letter z with acute') },
164
+ { character: 'ź', title: t('Latin small letter z with acute') },
165
+ { character: 'Ż', title: t('Latin capital letter z with dot above') },
166
+ { character: 'ż', title: t('Latin small letter z with dot above') },
167
+ { character: 'Ž', title: t('Latin capital letter z with caron') },
168
+ { character: 'ž', title: t('Latin small letter z with caron') },
169
+ { character: 'ſ', title: t('Latin small letter long s') }
170
+ ], { label: t('Latin') });
171
+ }
172
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharactersmathematical
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Mathematical" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersMathematical extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "SpecialCharactersMathematical";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ }
@@ -0,0 +1,88 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharactersmathematical
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Mathematical" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersMathematical extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersMathematical';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Mathematical', [
42
+ { character: '<', title: t('Less-than sign') },
43
+ { character: '>', title: t('Greater-than sign') },
44
+ { character: '≤', title: t('Less-than or equal to') },
45
+ { character: '≥', title: t('Greater-than or equal to') },
46
+ { character: '–', title: t('En dash') },
47
+ { character: '—', title: t('Em dash') },
48
+ { character: '¯', title: t('Macron') },
49
+ { character: '‾', title: t('Overline') },
50
+ { character: '°', title: t('Degree sign') },
51
+ { character: '−', title: t('Minus sign') },
52
+ { character: '±', title: t('Plus-minus sign') },
53
+ { character: '÷', title: t('Division sign') },
54
+ { character: '⁄', title: t('Fraction slash') },
55
+ { character: '×', title: t('Multiplication sign') },
56
+ { character: 'ƒ', title: t('Latin small letter f with hook') },
57
+ { character: '∫', title: t('Integral') },
58
+ { character: '∑', title: t('N-ary summation') },
59
+ { character: '∞', title: t('Infinity') },
60
+ { character: '√', title: t('Square root') },
61
+ { character: '∼', title: t('Tilde operator') },
62
+ { character: '≅', title: t('Approximately equal to') },
63
+ { character: '≈', title: t('Almost equal to') },
64
+ { character: '≠', title: t('Not equal to') },
65
+ { character: '≡', title: t('Identical to') },
66
+ { character: '∈', title: t('Element of') },
67
+ { character: '∉', title: t('Not an element of') },
68
+ { character: '∋', title: t('Contains as member') },
69
+ { character: '∏', title: t('N-ary product') },
70
+ { character: '∧', title: t('Logical and') },
71
+ { character: '∨', title: t('Logical or') },
72
+ { character: '¬', title: t('Not sign') },
73
+ { character: '∩', title: t('Intersection') },
74
+ { character: '∪', title: t('Union') },
75
+ { character: '∂', title: t('Partial differential') },
76
+ { character: '∀', title: t('For all') },
77
+ { character: '∃', title: t('There exists') },
78
+ { character: '∅', title: t('Empty set') },
79
+ { character: '∇', title: t('Nabla') },
80
+ { character: '∗', title: t('Asterisk operator') },
81
+ { character: '∝', title: t('Proportional to') },
82
+ { character: '∠', title: t('Angle') },
83
+ { character: '¼', title: t('Vulgar fraction one quarter') },
84
+ { character: '½', title: t('Vulgar fraction one half') },
85
+ { character: '¾', title: t('Vulgar fraction three quarters') }
86
+ ], { label: t('Mathematical') });
87
+ }
88
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharacterstext
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Text" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersText extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName(): "SpecialCharactersText";
26
+ /**
27
+ * @inheritDoc
28
+ */
29
+ static get isOfficialPlugin(): true;
30
+ /**
31
+ * @inheritDoc
32
+ */
33
+ init(): void;
34
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module special-characters/specialcharacterstext
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * A plugin that provides special characters for the "Text" category.
11
+ *
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersText ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
20
+ */
21
+ export default class SpecialCharactersText extends Plugin {
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersText';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ static get isOfficialPlugin() {
32
+ return true;
33
+ }
34
+ /**
35
+ * @inheritDoc
36
+ */
37
+ init() {
38
+ const editor = this.editor;
39
+ const t = editor.t;
40
+ const plugin = editor.plugins.get('SpecialCharacters');
41
+ plugin.addItems('Text', [
42
+ { character: '‹', title: t('Single left-pointing angle quotation mark') },
43
+ { character: '›', title: t('Single right-pointing angle quotation mark') },
44
+ { character: '«', title: t('Left-pointing double angle quotation mark') },
45
+ { character: '»', title: t('Right-pointing double angle quotation mark') },
46
+ { character: '‘', title: t('Left single quotation mark') },
47
+ { character: '’', title: t('Right single quotation mark') },
48
+ { character: '“', title: t('Left double quotation mark') },
49
+ { character: '”', title: t('Right double quotation mark') },
50
+ { character: '‚', title: t('Single low-9 quotation mark') },
51
+ { character: '„', title: t('Double low-9 quotation mark') },
52
+ { character: '¡', title: t('Inverted exclamation mark') },
53
+ { character: '¿', title: t('Inverted question mark') },
54
+ { character: '‥', title: t('Two dot leader') },
55
+ { character: '…', title: t('Horizontal ellipsis') },
56
+ { character: '‡', title: t('Double dagger') },
57
+ { character: '‰', title: t('Per mille sign') },
58
+ { character: '‱', title: t('Per ten thousand sign') },
59
+ { character: '‼', title: t('Double exclamation mark') },
60
+ { character: '⁈', title: t('Question exclamation mark') },
61
+ { character: '⁉', title: t('Exclamation question mark') },
62
+ { character: '⁇', title: t('Double question mark') },
63
+ { character: '©', title: t('Copyright sign') },
64
+ { character: '®', title: t('Registered sign') },
65
+ { character: '™', title: t('Trade mark sign') },
66
+ { character: '§', title: t('Section sign') },
67
+ { character: '¶', title: t('Paragraph sign') },
68
+ { character: '⁋', title: t('Reversed paragraph sign') }
69
+ ], { label: t('Text') });
70
+ }
71
+ }