@ckeditor/ckeditor5-special-characters 36.0.1 → 37.0.0-alpha.1

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.
@@ -2,169 +2,165 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
-
6
5
  /**
7
6
  * @module special-characters/specialcharacterslatin
8
7
  */
9
-
10
8
  import { Plugin } from 'ckeditor5/src/core';
11
-
12
9
  /**
13
10
  * A plugin that provides special characters for the "Latin" category.
14
11
  *
15
- * ClassicEditor
16
- * .create( {
17
- * plugins: [ ..., SpecialCharacters, SpecialCharactersLatin ],
18
- * } )
19
- * .then( ... )
20
- * .catch( ... );
21
- *
22
- * @extends module:core/plugin~Plugin
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersLatin ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
23
20
  */
24
21
  export default class SpecialCharactersLatin extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName() {
29
- return 'SpecialCharactersLatin';
30
- }
31
-
32
- /**
33
- * @inheritDoc
34
- */
35
- init() {
36
- const editor = this.editor;
37
- const t = editor.t;
38
-
39
- editor.plugins.get( 'SpecialCharacters' ).addItems( 'Latin', [
40
- { character: 'Ā', title: t( 'Latin capital letter a with macron' ) },
41
- { character: 'ā', title: t( 'Latin small letter a with macron' ) },
42
- { character: 'Ă', title: t( 'Latin capital letter a with breve' ) },
43
- { character: 'ă', title: t( 'Latin small letter a with breve' ) },
44
- { character: 'Ą', title: t( 'Latin capital letter a with ogonek' ) },
45
- { character: 'ą', title: t( 'Latin small letter a with ogonek' ) },
46
- { character: 'Ć', title: t( 'Latin capital letter c with acute' ) },
47
- { character: 'ć', title: t( 'Latin small letter c with acute' ) },
48
- { character: 'Ĉ', title: t( 'Latin capital letter c with circumflex' ) },
49
- { character: 'ĉ', title: t( 'Latin small letter c with circumflex' ) },
50
- { character: 'Ċ', title: t( 'Latin capital letter c with dot above' ) },
51
- { character: 'ċ', title: t( 'Latin small letter c with dot above' ) },
52
- { character: 'Č', title: t( 'Latin capital letter c with caron' ) },
53
- { character: 'č', title: t( 'Latin small letter c with caron' ) },
54
- { character: 'Ď', title: t( 'Latin capital letter d with caron' ) },
55
- { character: 'ď', title: t( 'Latin small letter d with caron' ) },
56
- { character: 'Đ', title: t( 'Latin capital letter d with stroke' ) },
57
- { character: 'đ', title: t( 'Latin small letter d with stroke' ) },
58
- { character: 'Ē', title: t( 'Latin capital letter e with macron' ) },
59
- { character: 'ē', title: t( 'Latin small letter e with macron' ) },
60
- { character: 'Ĕ', title: t( 'Latin capital letter e with breve' ) },
61
- { character: 'ĕ', title: t( 'Latin small letter e with breve' ) },
62
- { character: 'Ė', title: t( 'Latin capital letter e with dot above' ) },
63
- { character: 'ė', title: t( 'Latin small letter e with dot above' ) },
64
- { character: 'Ę', title: t( 'Latin capital letter e with ogonek' ) },
65
- { character: 'ę', title: t( 'Latin small letter e with ogonek' ) },
66
- { character: 'Ě', title: t( 'Latin capital letter e with caron' ) },
67
- { character: 'ě', title: t( 'Latin small letter e with caron' ) },
68
- { character: 'Ĝ', title: t( 'Latin capital letter g with circumflex' ) },
69
- { character: 'ĝ', title: t( 'Latin small letter g with circumflex' ) },
70
- { character: 'Ğ', title: t( 'Latin capital letter g with breve' ) },
71
- { character: 'ğ', title: t( 'Latin small letter g with breve' ) },
72
- { character: 'Ġ', title: t( 'Latin capital letter g with dot above' ) },
73
- { character: 'ġ', title: t( 'Latin small letter g with dot above' ) },
74
- { character: 'Ģ', title: t( 'Latin capital letter g with cedilla' ) },
75
- { character: 'ģ', title: t( 'Latin small letter g with cedilla' ) },
76
- { character: 'Ĥ', title: t( 'Latin capital letter h with circumflex' ) },
77
- { character: 'ĥ', title: t( 'Latin small letter h with circumflex' ) },
78
- { character: 'Ħ', title: t( 'Latin capital letter h with stroke' ) },
79
- { character: 'ħ', title: t( 'Latin small letter h with stroke' ) },
80
- { character: 'Ĩ', title: t( 'Latin capital letter i with tilde' ) },
81
- { character: 'ĩ', title: t( 'Latin small letter i with tilde' ) },
82
- { character: 'Ī', title: t( 'Latin capital letter i with macron' ) },
83
- { character: 'ī', title: t( 'Latin small letter i with macron' ) },
84
- { character: 'Ĭ', title: t( 'Latin capital letter i with breve' ) },
85
- { character: 'ĭ', title: t( 'Latin small letter i with breve' ) },
86
- { character: 'Į', title: t( 'Latin capital letter i with ogonek' ) },
87
- { character: 'į', title: t( 'Latin small letter i with ogonek' ) },
88
- { character: 'İ', title: t( 'Latin capital letter i with dot above' ) },
89
- { character: 'ı', title: t( 'Latin small letter dotless i' ) },
90
- { character: 'IJ', title: t( 'Latin capital ligature ij' ) },
91
- { character: 'ij', title: t( 'Latin small ligature ij' ) },
92
- { character: 'Ĵ', title: t( 'Latin capital letter j with circumflex' ) },
93
- { character: 'ĵ', title: t( 'Latin small letter j with circumflex' ) },
94
- { character: 'Ķ', title: t( 'Latin capital letter k with cedilla' ) },
95
- { character: 'ķ', title: t( 'Latin small letter k with cedilla' ) },
96
- { character: 'ĸ', title: t( 'Latin small letter kra' ) },
97
- { character: 'Ĺ', title: t( 'Latin capital letter l with acute' ) },
98
- { character: 'ĺ', title: t( 'Latin small letter l with acute' ) },
99
- { character: 'Ļ', title: t( 'Latin capital letter l with cedilla' ) },
100
- { character: 'ļ', title: t( 'Latin small letter l with cedilla' ) },
101
- { character: 'Ľ', title: t( 'Latin capital letter l with caron' ) },
102
- { character: 'ľ', title: t( 'Latin small letter l with caron' ) },
103
- { character: 'Ŀ', title: t( 'Latin capital letter l with middle dot' ) },
104
- { character: 'ŀ', title: t( 'Latin small letter l with middle dot' ) },
105
- { character: 'Ł', title: t( 'Latin capital letter l with stroke' ) },
106
- { character: 'ł', title: t( 'Latin small letter l with stroke' ) },
107
- { character: 'Ń', title: t( 'Latin capital letter n with acute' ) },
108
- { character: 'ń', title: t( 'Latin small letter n with acute' ) },
109
- { character: 'Ņ', title: t( 'Latin capital letter n with cedilla' ) },
110
- { character: 'ņ', title: t( 'Latin small letter n with cedilla' ) },
111
- { character: 'Ň', title: t( 'Latin capital letter n with caron' ) },
112
- { character: 'ň', title: t( 'Latin small letter n with caron' ) },
113
- { character: 'ʼn', title: t( 'Latin small letter n preceded by apostrophe' ) },
114
- { character: 'Ŋ', title: t( 'Latin capital letter eng' ) },
115
- { character: 'ŋ', title: t( 'Latin small letter eng' ) },
116
- { character: 'Ō', title: t( 'Latin capital letter o with macron' ) },
117
- { character: 'ō', title: t( 'Latin small letter o with macron' ) },
118
- { character: 'Ŏ', title: t( 'Latin capital letter o with breve' ) },
119
- { character: 'ŏ', title: t( 'Latin small letter o with breve' ) },
120
- { character: 'Ő', title: t( 'Latin capital letter o with double acute' ) },
121
- { character: 'ő', title: t( 'Latin small letter o with double acute' ) },
122
- { character: 'Œ', title: t( 'Latin capital ligature oe' ) },
123
- { character: 'œ', title: t( 'Latin small ligature oe' ) },
124
- { character: 'Ŕ', title: t( 'Latin capital letter r with acute' ) },
125
- { character: 'ŕ', title: t( 'Latin small letter r with acute' ) },
126
- { character: 'Ŗ', title: t( 'Latin capital letter r with cedilla' ) },
127
- { character: 'ŗ', title: t( 'Latin small letter r with cedilla' ) },
128
- { character: 'Ř', title: t( 'Latin capital letter r with caron' ) },
129
- { character: 'ř', title: t( 'Latin small letter r with caron' ) },
130
- { character: 'Ś', title: t( 'Latin capital letter s with acute' ) },
131
- { character: 'ś', title: t( 'Latin small letter s with acute' ) },
132
- { character: 'Ŝ', title: t( 'Latin capital letter s with circumflex' ) },
133
- { character: 'ŝ', title: t( 'Latin small letter s with circumflex' ) },
134
- { character: 'Ş', title: t( 'Latin capital letter s with cedilla' ) },
135
- { character: 'ş', title: t( 'Latin small letter s with cedilla' ) },
136
- { character: 'Š', title: t( 'Latin capital letter s with caron' ) },
137
- { character: 'š', title: t( 'Latin small letter s with caron' ) },
138
- { character: 'Ţ', title: t( 'Latin capital letter t with cedilla' ) },
139
- { character: 'ţ', title: t( 'Latin small letter t with cedilla' ) },
140
- { character: 'Ť', title: t( 'Latin capital letter t with caron' ) },
141
- { character: 'ť', title: t( 'Latin small letter t with caron' ) },
142
- { character: 'Ŧ', title: t( 'Latin capital letter t with stroke' ) },
143
- { character: 'ŧ', title: t( 'Latin small letter t with stroke' ) },
144
- { character: 'Ũ', title: t( 'Latin capital letter u with tilde' ) },
145
- { character: 'ũ', title: t( 'Latin small letter u with tilde' ) },
146
- { character: 'Ū', title: t( 'Latin capital letter u with macron' ) },
147
- { character: 'ū', title: t( 'Latin small letter u with macron' ) },
148
- { character: 'Ŭ', title: t( 'Latin capital letter u with breve' ) },
149
- { character: 'ŭ', title: t( 'Latin small letter u with breve' ) },
150
- { character: 'Ů', title: t( 'Latin capital letter u with ring above' ) },
151
- { character: 'ů', title: t( 'Latin small letter u with ring above' ) },
152
- { character: 'Ű', title: t( 'Latin capital letter u with double acute' ) },
153
- { character: 'ű', title: t( 'Latin small letter u with double acute' ) },
154
- { character: 'Ų', title: t( 'Latin capital letter u with ogonek' ) },
155
- { character: 'ų', title: t( 'Latin small letter u with ogonek' ) },
156
- { character: 'Ŵ', title: t( 'Latin capital letter w with circumflex' ) },
157
- { character: 'ŵ', title: t( 'Latin small letter w with circumflex' ) },
158
- { character: 'Ŷ', title: t( 'Latin capital letter y with circumflex' ) },
159
- { character: 'ŷ', title: t( 'Latin small letter y with circumflex' ) },
160
- { character: 'Ÿ', title: t( 'Latin capital letter y with diaeresis' ) },
161
- { character: 'Ź', title: t( 'Latin capital letter z with acute' ) },
162
- { character: 'ź', title: t( 'Latin small letter z with acute' ) },
163
- { character: 'Ż', title: t( 'Latin capital letter z with dot above' ) },
164
- { character: 'ż', title: t( 'Latin small letter z with dot above' ) },
165
- { character: 'Ž', title: t( 'Latin capital letter z with caron' ) },
166
- { character: 'ž', title: t( 'Latin small letter z with caron' ) },
167
- { character: 'ſ', title: t( 'Latin small letter long s' ) }
168
- ], { label: t( 'Latin' ) } );
169
- }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersLatin';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ init() {
32
+ const editor = this.editor;
33
+ const t = editor.t;
34
+ const plugin = editor.plugins.get('SpecialCharacters');
35
+ plugin.addItems('Latin', [
36
+ { character: 'Ā', title: t('Latin capital letter a with macron') },
37
+ { character: 'ā', title: t('Latin small letter a with macron') },
38
+ { character: 'Ă', title: t('Latin capital letter a with breve') },
39
+ { character: 'ă', title: t('Latin small letter a with breve') },
40
+ { character: 'Ą', title: t('Latin capital letter a with ogonek') },
41
+ { character: 'ą', title: t('Latin small letter a with ogonek') },
42
+ { character: 'Ć', title: t('Latin capital letter c with acute') },
43
+ { character: 'ć', title: t('Latin small letter c with acute') },
44
+ { character: 'Ĉ', title: t('Latin capital letter c with circumflex') },
45
+ { character: 'ĉ', title: t('Latin small letter c with circumflex') },
46
+ { character: 'Ċ', title: t('Latin capital letter c with dot above') },
47
+ { character: 'ċ', title: t('Latin small letter c with dot above') },
48
+ { character: 'Č', title: t('Latin capital letter c with caron') },
49
+ { character: 'č', title: t('Latin small letter c with caron') },
50
+ { character: 'Ď', title: t('Latin capital letter d with caron') },
51
+ { character: 'ď', title: t('Latin small letter d with caron') },
52
+ { character: 'Đ', title: t('Latin capital letter d with stroke') },
53
+ { character: 'đ', title: t('Latin small letter d with stroke') },
54
+ { character: 'Ē', title: t('Latin capital letter e with macron') },
55
+ { character: 'ē', title: t('Latin small letter e with macron') },
56
+ { character: 'Ĕ', title: t('Latin capital letter e with breve') },
57
+ { character: 'ĕ', title: t('Latin small letter e with breve') },
58
+ { character: 'Ė', title: t('Latin capital letter e with dot above') },
59
+ { character: 'ė', title: t('Latin small letter e with dot above') },
60
+ { character: 'Ę', title: t('Latin capital letter e with ogonek') },
61
+ { character: 'ę', title: t('Latin small letter e with ogonek') },
62
+ { character: 'Ě', title: t('Latin capital letter e with caron') },
63
+ { character: 'ě', title: t('Latin small letter e with caron') },
64
+ { character: 'Ĝ', title: t('Latin capital letter g with circumflex') },
65
+ { character: 'ĝ', title: t('Latin small letter g with circumflex') },
66
+ { character: 'Ğ', title: t('Latin capital letter g with breve') },
67
+ { character: 'ğ', title: t('Latin small letter g with breve') },
68
+ { character: 'Ġ', title: t('Latin capital letter g with dot above') },
69
+ { character: 'ġ', title: t('Latin small letter g with dot above') },
70
+ { character: 'Ģ', title: t('Latin capital letter g with cedilla') },
71
+ { character: 'ģ', title: t('Latin small letter g with cedilla') },
72
+ { character: 'Ĥ', title: t('Latin capital letter h with circumflex') },
73
+ { character: 'ĥ', title: t('Latin small letter h with circumflex') },
74
+ { character: 'Ħ', title: t('Latin capital letter h with stroke') },
75
+ { character: 'ħ', title: t('Latin small letter h with stroke') },
76
+ { character: 'Ĩ', title: t('Latin capital letter i with tilde') },
77
+ { character: 'ĩ', title: t('Latin small letter i with tilde') },
78
+ { character: 'Ī', title: t('Latin capital letter i with macron') },
79
+ { character: 'ī', title: t('Latin small letter i with macron') },
80
+ { character: 'Ĭ', title: t('Latin capital letter i with breve') },
81
+ { character: 'ĭ', title: t('Latin small letter i with breve') },
82
+ { character: 'Į', title: t('Latin capital letter i with ogonek') },
83
+ { character: 'į', title: t('Latin small letter i with ogonek') },
84
+ { character: 'İ', title: t('Latin capital letter i with dot above') },
85
+ { character: 'ı', title: t('Latin small letter dotless i') },
86
+ { character: 'IJ', title: t('Latin capital ligature ij') },
87
+ { character: 'ij', title: t('Latin small ligature ij') },
88
+ { character: 'Ĵ', title: t('Latin capital letter j with circumflex') },
89
+ { character: 'ĵ', title: t('Latin small letter j with circumflex') },
90
+ { character: 'Ķ', title: t('Latin capital letter k with cedilla') },
91
+ { character: 'ķ', title: t('Latin small letter k with cedilla') },
92
+ { character: 'ĸ', title: t('Latin small letter kra') },
93
+ { character: 'Ĺ', title: t('Latin capital letter l with acute') },
94
+ { character: 'ĺ', title: t('Latin small letter l with acute') },
95
+ { character: 'Ļ', title: t('Latin capital letter l with cedilla') },
96
+ { character: 'ļ', title: t('Latin small letter l with cedilla') },
97
+ { character: 'Ľ', title: t('Latin capital letter l with caron') },
98
+ { character: 'ľ', title: t('Latin small letter l with caron') },
99
+ { character: 'Ŀ', title: t('Latin capital letter l with middle dot') },
100
+ { character: 'ŀ', title: t('Latin small letter l with middle dot') },
101
+ { character: 'Ł', title: t('Latin capital letter l with stroke') },
102
+ { character: 'ł', title: t('Latin small letter l with stroke') },
103
+ { character: 'Ń', title: t('Latin capital letter n with acute') },
104
+ { character: 'ń', title: t('Latin small letter n with acute') },
105
+ { character: 'Ņ', title: t('Latin capital letter n with cedilla') },
106
+ { character: 'ņ', title: t('Latin small letter n with cedilla') },
107
+ { character: 'Ň', title: t('Latin capital letter n with caron') },
108
+ { character: 'ň', title: t('Latin small letter n with caron') },
109
+ { character: 'ʼn', title: t('Latin small letter n preceded by apostrophe') },
110
+ { character: 'Ŋ', title: t('Latin capital letter eng') },
111
+ { character: 'ŋ', title: t('Latin small letter eng') },
112
+ { character: 'Ō', title: t('Latin capital letter o with macron') },
113
+ { character: 'ō', title: t('Latin small letter o with macron') },
114
+ { character: 'Ŏ', title: t('Latin capital letter o with breve') },
115
+ { character: 'ŏ', title: t('Latin small letter o with breve') },
116
+ { character: 'Ő', title: t('Latin capital letter o with double acute') },
117
+ { character: 'ő', title: t('Latin small letter o with double acute') },
118
+ { character: 'Œ', title: t('Latin capital ligature oe') },
119
+ { character: 'œ', title: t('Latin small ligature oe') },
120
+ { character: 'Ŕ', title: t('Latin capital letter r with acute') },
121
+ { character: 'ŕ', title: t('Latin small letter r with acute') },
122
+ { character: 'Ŗ', title: t('Latin capital letter r with cedilla') },
123
+ { character: 'ŗ', title: t('Latin small letter r with cedilla') },
124
+ { character: 'Ř', title: t('Latin capital letter r with caron') },
125
+ { character: 'ř', title: t('Latin small letter r with caron') },
126
+ { character: 'Ś', title: t('Latin capital letter s with acute') },
127
+ { character: 'ś', title: t('Latin small letter s with acute') },
128
+ { character: 'Ŝ', title: t('Latin capital letter s with circumflex') },
129
+ { character: 'ŝ', title: t('Latin small letter s with circumflex') },
130
+ { character: 'Ş', title: t('Latin capital letter s with cedilla') },
131
+ { character: 'ş', title: t('Latin small letter s with cedilla') },
132
+ { character: 'Š', title: t('Latin capital letter s with caron') },
133
+ { character: 'š', title: t('Latin small letter s with caron') },
134
+ { character: 'Ţ', title: t('Latin capital letter t with cedilla') },
135
+ { character: 'ţ', title: t('Latin small letter t with cedilla') },
136
+ { character: 'Ť', title: t('Latin capital letter t with caron') },
137
+ { character: 'ť', title: t('Latin small letter t with caron') },
138
+ { character: 'Ŧ', title: t('Latin capital letter t with stroke') },
139
+ { character: 'ŧ', title: t('Latin small letter t with stroke') },
140
+ { character: 'Ũ', title: t('Latin capital letter u with tilde') },
141
+ { character: 'ũ', title: t('Latin small letter u with tilde') },
142
+ { character: 'Ū', title: t('Latin capital letter u with macron') },
143
+ { character: 'ū', title: t('Latin small letter u with macron') },
144
+ { character: 'Ŭ', title: t('Latin capital letter u with breve') },
145
+ { character: 'ŭ', title: t('Latin small letter u with breve') },
146
+ { character: 'Ů', title: t('Latin capital letter u with ring above') },
147
+ { character: 'ů', title: t('Latin small letter u with ring above') },
148
+ { character: 'Ű', title: t('Latin capital letter u with double acute') },
149
+ { character: 'ű', title: t('Latin small letter u with double acute') },
150
+ { character: 'Ų', title: t('Latin capital letter u with ogonek') },
151
+ { character: 'ų', title: t('Latin small letter u with ogonek') },
152
+ { character: 'Ŵ', title: t('Latin capital letter w with circumflex') },
153
+ { character: 'ŵ', title: t('Latin small letter w with circumflex') },
154
+ { character: 'Ŷ', title: t('Latin capital letter y with circumflex') },
155
+ { character: 'ŷ', title: t('Latin small letter y with circumflex') },
156
+ { character: 'Ÿ', title: t('Latin capital letter y with diaeresis') },
157
+ { character: 'Ź', title: t('Latin capital letter z with acute') },
158
+ { character: 'ź', title: t('Latin small letter z with acute') },
159
+ { character: 'Ż', title: t('Latin capital letter z with dot above') },
160
+ { character: 'ż', title: t('Latin small letter z with dot above') },
161
+ { character: 'Ž', title: t('Latin capital letter z with caron') },
162
+ { character: 'ž', title: t('Latin small letter z with caron') },
163
+ { character: 'ſ', title: t('Latin small letter long s') }
164
+ ], { label: t('Latin') });
165
+ }
170
166
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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';
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
+ init(): void;
30
+ }
@@ -2,85 +2,81 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
-
6
5
  /**
7
6
  * @module special-characters/specialcharactersmathematical
8
7
  */
9
-
10
8
  import { Plugin } from 'ckeditor5/src/core';
11
-
12
9
  /**
13
10
  * A plugin that provides special characters for the "Mathematical" category.
14
11
  *
15
- * ClassicEditor
16
- * .create( {
17
- * plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
18
- * } )
19
- * .then( ... )
20
- * .catch( ... );
21
- *
22
- * @extends module:core/plugin~Plugin
12
+ * ```ts
13
+ * ClassicEditor
14
+ * .create( {
15
+ * plugins: [ ..., SpecialCharacters, SpecialCharactersMathematical ],
16
+ * } )
17
+ * .then( ... )
18
+ * .catch( ... );
19
+ * ```
23
20
  */
24
21
  export default class SpecialCharactersMathematical extends Plugin {
25
- /**
26
- * @inheritDoc
27
- */
28
- static get pluginName() {
29
- return 'SpecialCharactersMathematical';
30
- }
31
-
32
- /**
33
- * @inheritDoc
34
- */
35
- init() {
36
- const editor = this.editor;
37
- const t = editor.t;
38
-
39
- editor.plugins.get( 'SpecialCharacters' ).addItems( 'Mathematical', [
40
- { character: '<', title: t( 'Less-than sign' ) },
41
- { character: '>', title: t( 'Greater-than sign' ) },
42
- { character: '', title: t( 'Less-than or equal to' ) },
43
- { character: '', title: t( 'Greater-than or equal to' ) },
44
- { character: '', title: t( 'En dash' ) },
45
- { character: '', title: t( 'Em dash' ) },
46
- { character: '¯', title: t( 'Macron' ) },
47
- { character: '', title: t( 'Overline' ) },
48
- { character: '°', title: t( 'Degree sign' ) },
49
- { character: '', title: t( 'Minus sign' ) },
50
- { character: '±', title: t( 'Plus-minus sign' ) },
51
- { character: '÷', title: t( 'Division sign' ) },
52
- { character: '', title: t( 'Fraction slash' ) },
53
- { character: '×', title: t( 'Multiplication sign' ) },
54
- { character: 'ƒ', title: t( 'Latin small letter f with hook' ) },
55
- { character: '', title: t( 'Integral' ) },
56
- { character: '', title: t( 'N-ary summation' ) },
57
- { character: '', title: t( 'Infinity' ) },
58
- { character: '', title: t( 'Square root' ) },
59
- { character: '', title: t( 'Tilde operator' ) },
60
- { character: '', title: t( 'Approximately equal to' ) },
61
- { character: '', title: t( 'Almost equal to' ) },
62
- { character: '', title: t( 'Not equal to' ) },
63
- { character: '', title: t( 'Identical to' ) },
64
- { character: '', title: t( 'Element of' ) },
65
- { character: '', title: t( 'Not an element of' ) },
66
- { character: '', title: t( 'Contains as member' ) },
67
- { character: '', title: t( 'N-ary product' ) },
68
- { character: '', title: t( 'Logical and' ) },
69
- { character: '', title: t( 'Logical or' ) },
70
- { character: '¬', title: t( 'Not sign' ) },
71
- { character: '', title: t( 'Intersection' ) },
72
- { character: '', title: t( 'Union' ) },
73
- { character: '', title: t( 'Partial differential' ) },
74
- { character: '', title: t( 'For all' ) },
75
- { character: '', title: t( 'There exists' ) },
76
- { character: '', title: t( 'Empty set' ) },
77
- { character: '', title: t( 'Nabla' ) },
78
- { character: '', title: t( 'Asterisk operator' ) },
79
- { character: '', title: t( 'Proportional to' ) },
80
- { character: '', title: t( 'Angle' ) },
81
- { character: '¼', title: t( 'Vulgar fraction one quarter' ) },
82
- { character: '½', title: t( 'Vulgar fraction one half' ) },
83
- { character: '¾', title: t( 'Vulgar fraction three quarters' ) }
84
- ], { label: t( 'Mathematical' ) } );
85
- }
22
+ /**
23
+ * @inheritDoc
24
+ */
25
+ static get pluginName() {
26
+ return 'SpecialCharactersMathematical';
27
+ }
28
+ /**
29
+ * @inheritDoc
30
+ */
31
+ init() {
32
+ const editor = this.editor;
33
+ const t = editor.t;
34
+ const plugin = editor.plugins.get('SpecialCharacters');
35
+ plugin.addItems('Mathematical', [
36
+ { character: '<', title: t('Less-than sign') },
37
+ { character: '>', title: t('Greater-than sign') },
38
+ { character: '', title: t('Less-than or equal to') },
39
+ { character: '', title: t('Greater-than or equal to') },
40
+ { character: '', title: t('En dash') },
41
+ { character: '', title: t('Em dash') },
42
+ { character: '¯', title: t('Macron') },
43
+ { character: '', title: t('Overline') },
44
+ { character: '°', title: t('Degree sign') },
45
+ { character: '', title: t('Minus sign') },
46
+ { character: '±', title: t('Plus-minus sign') },
47
+ { character: '÷', title: t('Division sign') },
48
+ { character: '', title: t('Fraction slash') },
49
+ { character: '×', title: t('Multiplication sign') },
50
+ { character: 'ƒ', title: t('Latin small letter f with hook') },
51
+ { character: '', title: t('Integral') },
52
+ { character: '', title: t('N-ary summation') },
53
+ { character: '', title: t('Infinity') },
54
+ { character: '', title: t('Square root') },
55
+ { character: '', title: t('Tilde operator') },
56
+ { character: '', title: t('Approximately equal to') },
57
+ { character: '', title: t('Almost equal to') },
58
+ { character: '', title: t('Not equal to') },
59
+ { character: '', title: t('Identical to') },
60
+ { character: '', title: t('Element of') },
61
+ { character: '', title: t('Not an element of') },
62
+ { character: '', title: t('Contains as member') },
63
+ { character: '', title: t('N-ary product') },
64
+ { character: '', title: t('Logical and') },
65
+ { character: '', title: t('Logical or') },
66
+ { character: '¬', title: t('Not sign') },
67
+ { character: '', title: t('Intersection') },
68
+ { character: '', title: t('Union') },
69
+ { character: '', title: t('Partial differential') },
70
+ { character: '', title: t('For all') },
71
+ { character: '', title: t('There exists') },
72
+ { character: '', title: t('Empty set') },
73
+ { character: '', title: t('Nabla') },
74
+ { character: '', title: t('Asterisk operator') },
75
+ { character: '', title: t('Proportional to') },
76
+ { character: '', title: t('Angle') },
77
+ { character: '¼', title: t('Vulgar fraction one quarter') },
78
+ { character: '½', title: t('Vulgar fraction one half') },
79
+ { character: '¾', title: t('Vulgar fraction three quarters') }
80
+ ], { label: t('Mathematical') });
81
+ }
86
82
  }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2023, 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';
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
+ init(): void;
30
+ }