jodit 4.10.2 → 4.10.3
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.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +121 -121
- package/es2015/jodit.js +35302 -35302
- package/es2015/jodit.min.js +121 -121
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +724 -724
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.fat.min.js +121 -121
- package/es2018/jodit.min.js +121 -121
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +135 -135
- package/es2021/jodit.js +34629 -34629
- package/es2021/jodit.min.js +135 -135
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +681 -681
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +135 -135
- package/es2021.en/jodit.js +34120 -34120
- package/es2021.en/jodit.min.js +135 -135
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +306 -306
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +43767 -43767
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +839 -839
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +4211 -4211
- package/es5/polyfills.min.js +2 -2
- package/esm/core/constants.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.10.
|
|
4
|
+
* Version: v4.10.3
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -18,601 +18,187 @@
|
|
|
18
18
|
})(self, function() {
|
|
19
19
|
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[882],{
|
|
20
20
|
|
|
21
|
-
/***/
|
|
22
|
-
/***/ (function(
|
|
23
|
-
|
|
24
|
-
/*!
|
|
25
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
27
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
28
|
-
*/ module.exports = {
|
|
29
|
-
newline: 'חדשות',
|
|
30
|
-
delete: 'מחק',
|
|
31
|
-
space: 'שטח',
|
|
32
|
-
'Speech Recognize': 'דיבור מזהה',
|
|
33
|
-
Sound: 'קול',
|
|
34
|
-
'Interim Results': 'תוצאות ביניים'
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/***/ }),
|
|
39
|
-
|
|
40
|
-
/***/ 8962:
|
|
41
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21
|
+
/***/ 75143:
|
|
22
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
42
23
|
|
|
43
24
|
"use strict";
|
|
44
|
-
/* harmony
|
|
45
|
-
/* harmony
|
|
46
|
-
/* harmony
|
|
25
|
+
/* harmony import */ var jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22289);
|
|
26
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
|
|
27
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
28
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(36400);
|
|
29
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
|
|
30
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5266);
|
|
31
|
+
/* harmony import */ var _helpers_api__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97743);
|
|
32
|
+
/* harmony import */ var _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(68097);
|
|
33
|
+
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22227);
|
|
34
|
+
/* harmony import */ var _speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8__);
|
|
47
35
|
/*!
|
|
48
36
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
49
37
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
50
38
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
51
39
|
*/ /**
|
|
52
40
|
* @module plugins/speech-recognize
|
|
53
|
-
*/
|
|
54
|
-
const [command, value] = commandSentence.split('::');
|
|
55
|
-
jodit.execCommand(command, null, value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
/***/ }),
|
|
60
|
-
|
|
61
|
-
/***/ 10179:
|
|
62
|
-
/***/ (function(module) {
|
|
63
|
-
|
|
64
|
-
/*!
|
|
65
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
66
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
67
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
68
|
-
*/ module.exports = {
|
|
69
|
-
newline: 'новая строка|перенос|ентер',
|
|
70
|
-
delete: 'видалити',
|
|
71
|
-
space: 'пробел',
|
|
72
|
-
'Speech Recognize': 'Распознавание речи',
|
|
73
|
-
Sound: 'Звук',
|
|
74
|
-
'Interim Results': 'Проміжні результати'
|
|
75
|
-
};
|
|
41
|
+
*/
|
|
76
42
|
|
|
77
43
|
|
|
78
|
-
/***/ }),
|
|
79
44
|
|
|
80
|
-
/***/ 18712:
|
|
81
|
-
/***/ (function(module) {
|
|
82
45
|
|
|
83
|
-
/*!
|
|
84
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
85
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
86
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
87
|
-
*/ module.exports = {
|
|
88
|
-
newline: '改行',
|
|
89
|
-
delete: '削除',
|
|
90
|
-
space: 'スペース',
|
|
91
|
-
'Speech Recognize': '音声認識',
|
|
92
|
-
Sound: '音',
|
|
93
|
-
'Interim Results': '中間結果'
|
|
94
|
-
};
|
|
95
46
|
|
|
96
47
|
|
|
97
|
-
/***/ }),
|
|
98
48
|
|
|
99
|
-
/***/ 19922:
|
|
100
|
-
/***/ (function(module) {
|
|
101
49
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
50
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.speechRecognize = {
|
|
51
|
+
api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_6__.SpeechRecognition !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_6__.SpeechRecognition : null,
|
|
52
|
+
sound: true,
|
|
53
|
+
continuous: false,
|
|
54
|
+
interimResults: true,
|
|
55
|
+
commands: {
|
|
56
|
+
'newline|enter': 'enter',
|
|
57
|
+
'delete|remove word|delete word': 'backspaceWordButton',
|
|
58
|
+
comma: 'inserthtml::,',
|
|
59
|
+
underline: 'inserthtml::_',
|
|
60
|
+
hyphen: 'inserthtml::-',
|
|
61
|
+
space: 'inserthtml:: ',
|
|
62
|
+
question: 'inserthtml::?',
|
|
63
|
+
dot: 'inserthtml::.',
|
|
64
|
+
'quote|quotes|open quote': "inserthtml::'",
|
|
65
|
+
'header|header h1': 'formatblock::h1',
|
|
66
|
+
'select all': 'selectall'
|
|
67
|
+
}
|
|
113
68
|
};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
69
|
+
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
70
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.speechRecognize = {
|
|
71
|
+
isVisible (j) {
|
|
72
|
+
return Boolean(j.o.speechRecognize.api);
|
|
73
|
+
},
|
|
74
|
+
isActive (jodit, _) {
|
|
75
|
+
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech');
|
|
76
|
+
return Boolean(api === null || api === void 0 ? void 0 : api.isEnabled);
|
|
77
|
+
},
|
|
78
|
+
isDisabled (jodit) {
|
|
79
|
+
return !jodit.o.speechRecognize.api;
|
|
80
|
+
},
|
|
81
|
+
exec (jodit, current, { button, control }) {
|
|
82
|
+
const { api: ApiConstructor, lang, continuous, interimResults, sound } = jodit.o.speechRecognize;
|
|
83
|
+
if (!ApiConstructor) {
|
|
84
|
+
jodit.alert('Speech recognize API unsupported in your browser');
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech');
|
|
88
|
+
if (!api) {
|
|
89
|
+
var _attr;
|
|
90
|
+
const nativeApi = new ApiConstructor();
|
|
91
|
+
api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__.RecognizeManager(jodit.async, nativeApi);
|
|
92
|
+
api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(lang) ? lang : (_attr = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(jodit.od.documentElement, 'lang')) !== null && _attr !== void 0 ? _attr : undefined;
|
|
93
|
+
api.continuous = continuous;
|
|
94
|
+
api.interimResults = interimResults;
|
|
95
|
+
api.sound = sound;
|
|
96
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech', api);
|
|
97
|
+
api.on('pulse', (enable)=>{
|
|
98
|
+
button.setMod('pulse', enable);
|
|
99
|
+
});
|
|
100
|
+
api.on('result', (text)=>jodit.e.fire('speechRecognizeResult', text));
|
|
101
|
+
api.on('progress', (text)=>jodit.e.fire('speechRecognizeProgressResult', text));
|
|
102
|
+
api.on('error', (text)=>jodit.message.error(text));
|
|
103
|
+
button.hookStatus('beforeDestruct', ()=>{
|
|
104
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech', null);
|
|
105
|
+
api.destruct();
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (control.args) {
|
|
109
|
+
const key = control.args[0];
|
|
110
|
+
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__.isBoolean)(api[key])) {
|
|
111
|
+
api[key] = !api[key];
|
|
112
|
+
if (api.isEnabled) {
|
|
113
|
+
api.restart();
|
|
114
|
+
}
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
api.toggle();
|
|
119
|
+
if (api.isEnabled) {
|
|
120
|
+
button.setMod('pulse', true);
|
|
121
|
+
}
|
|
122
|
+
button.state.activated = api.isEnabled;
|
|
123
|
+
},
|
|
124
|
+
name: 'speechRecognize',
|
|
125
|
+
command: 'toggleSpeechRecognize',
|
|
126
|
+
tooltip: 'Speech Recognize',
|
|
127
|
+
list: {
|
|
128
|
+
sound: 'Sound',
|
|
129
|
+
interimResults: 'Interim Results'
|
|
130
|
+
},
|
|
131
|
+
childTemplate (jodit, key, value) {
|
|
132
|
+
var _ref;
|
|
133
|
+
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech'), checked = (_ref = api === null || api === void 0 ? void 0 : api[key]) !== null && _ref !== void 0 ? _ref : jodit.o.speechRecognize[key];
|
|
134
|
+
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
135
|
+
},
|
|
136
|
+
mods: {
|
|
137
|
+
stroke: false
|
|
138
|
+
}
|
|
132
139
|
};
|
|
133
140
|
|
|
134
141
|
|
|
135
142
|
/***/ }),
|
|
136
143
|
|
|
137
|
-
/***/
|
|
138
|
-
/***/ (function(
|
|
139
|
-
|
|
140
|
-
module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
|
|
141
|
-
|
|
142
|
-
/***/ }),
|
|
143
|
-
|
|
144
|
-
/***/ 22350:
|
|
145
|
-
/***/ (function(module) {
|
|
144
|
+
/***/ 94092:
|
|
145
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
146
146
|
|
|
147
|
+
"use strict";
|
|
148
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
149
|
+
/* harmony export */ PII: function() { return /* binding */ PII; },
|
|
150
|
+
/* harmony export */ WARN: function() { return /* binding */ WARN; }
|
|
151
|
+
/* harmony export */ });
|
|
147
152
|
/*!
|
|
148
153
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
149
154
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
150
155
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
151
|
-
*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
Sound: 'Sound',
|
|
157
|
-
'Interim Results': 'Zwischenergebnis'
|
|
158
|
-
};
|
|
156
|
+
*/ /**
|
|
157
|
+
* @module plugins/speech-recognize
|
|
158
|
+
* @internal
|
|
159
|
+
*/ const PII = 440;
|
|
160
|
+
const WARN = 940;
|
|
159
161
|
|
|
160
162
|
|
|
161
163
|
/***/ }),
|
|
162
164
|
|
|
163
|
-
/***/
|
|
164
|
-
/***/ (function(
|
|
165
|
+
/***/ 97743:
|
|
166
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
165
167
|
|
|
168
|
+
"use strict";
|
|
169
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
170
|
+
/* harmony export */ SpeechRecognition: function() { return /* binding */ SpeechRecognition; }
|
|
171
|
+
/* harmony export */ });
|
|
172
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
166
173
|
/*!
|
|
167
174
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
168
175
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
169
176
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
170
|
-
*/
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
'Speech Recognize': 'A Beszéd Felismeri',
|
|
175
|
-
Sound: 'Hang',
|
|
176
|
-
'Interim Results': 'Időközi Eredmények'
|
|
177
|
-
};
|
|
177
|
+
*/ /**
|
|
178
|
+
* @module plugins/speech-recognize
|
|
179
|
+
*/
|
|
180
|
+
const SpeechRecognition = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow ? jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.SpeechRecognition || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitSpeechRecognition : undefined;
|
|
178
181
|
|
|
179
182
|
|
|
180
183
|
/***/ }),
|
|
181
184
|
|
|
182
|
-
/***/
|
|
183
|
-
/***/ (function(
|
|
184
|
-
|
|
185
|
-
/*!
|
|
186
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
187
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
188
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
189
|
-
*/ module.exports = {
|
|
190
|
-
newline: '換行',
|
|
191
|
-
delete: '刪除',
|
|
192
|
-
space: '空白',
|
|
193
|
-
'Speech Recognize': '語音辨識',
|
|
194
|
-
Sound: '聲音',
|
|
195
|
-
'Interim Results': '階段性辨識結果'
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
/***/ }),
|
|
200
|
-
|
|
201
|
-
/***/ 31262:
|
|
202
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
203
|
-
|
|
204
|
-
"use strict";
|
|
205
|
-
__webpack_require__.r(__webpack_exports__);
|
|
206
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
207
|
-
/* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
|
|
208
|
-
/* harmony export */ });
|
|
209
|
-
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
210
|
-
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
211
|
-
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68616);
|
|
212
|
-
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
213
|
-
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28077);
|
|
214
|
-
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71125);
|
|
215
|
-
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91206);
|
|
216
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75143);
|
|
217
|
-
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(73302);
|
|
218
|
-
/* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8962);
|
|
219
|
-
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43219);
|
|
220
|
-
/*!
|
|
221
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
222
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
223
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
224
|
-
*/ /**
|
|
225
|
-
* [[include:plugins/speech-recognize/README.md]]
|
|
226
|
-
* @packageDocumentation
|
|
227
|
-
* @module plugins/speech-recognize
|
|
228
|
-
*/
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
241
|
-
afterInit(jodit) {
|
|
242
|
-
const { commands } = jodit.o.speechRecognize;
|
|
243
|
-
if (commands) {
|
|
244
|
-
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_10__);
|
|
245
|
-
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_5__.keys)(commands, false).forEach((words)=>{
|
|
246
|
-
const keys = words.split('|');
|
|
247
|
-
keys.forEach((key)=>{
|
|
248
|
-
key = key.trim().toLowerCase();
|
|
249
|
-
this._commandToWord[key] = commands[words];
|
|
250
|
-
const translatedKeys = jodit.i18n(key);
|
|
251
|
-
if (translatedKeys !== key) {
|
|
252
|
-
translatedKeys.split('|').forEach((translatedKey)=>{
|
|
253
|
-
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
beforeDestruct(jodit) {
|
|
261
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.messagePopup);
|
|
262
|
-
}
|
|
263
|
-
onSpeechRecognizeProgressResult(text) {
|
|
264
|
-
if (!this.messagePopup) {
|
|
265
|
-
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
266
|
-
}
|
|
267
|
-
this.j.workplace.appendChild(this.messagePopup);
|
|
268
|
-
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
269
|
-
this.__hidePopupTimeout = this.j.async.setTimeout(()=>{
|
|
270
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.messagePopup);
|
|
271
|
-
}, 1000);
|
|
272
|
-
this.messagePopup.innerText = text + '|';
|
|
273
|
-
}
|
|
274
|
-
onSpeechRecognizeResult(text) {
|
|
275
|
-
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
276
|
-
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.messagePopup);
|
|
277
|
-
const { j } = this;
|
|
278
|
-
const { s } = j;
|
|
279
|
-
if (!this._checkCommand(text)) {
|
|
280
|
-
const { range } = s, node = s.current();
|
|
281
|
-
if (s.isCollapsed() && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isText(node) && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isOrContains(j.editor, node) && node.nodeValue) {
|
|
282
|
-
const sentence = node.nodeValue;
|
|
283
|
-
node.nodeValue = sentence + (/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') + text;
|
|
284
|
-
range.setStartAfter(node);
|
|
285
|
-
s.selectRange(range);
|
|
286
|
-
j.synchronizeValues();
|
|
287
|
-
} else {
|
|
288
|
-
s.insertHTML(text);
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
_checkCommand(command) {
|
|
293
|
-
command = command.toLowerCase().replace(/\./g, '');
|
|
294
|
-
if (this._commandToWord[command]) {
|
|
295
|
-
(0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__.execSpellCommand)(this.j, this._commandToWord[command]);
|
|
296
|
-
return true;
|
|
297
|
-
}
|
|
298
|
-
return false;
|
|
299
|
-
}
|
|
300
|
-
constructor(...args){
|
|
301
|
-
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "buttons", [
|
|
302
|
-
{
|
|
303
|
-
group: 'state',
|
|
304
|
-
name: 'speechRecognize'
|
|
305
|
-
}
|
|
306
|
-
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "messagePopup", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__hidePopupTimeout", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "_commandToWord", {});
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
310
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_2__.watch)(':speechRecognizeProgressResult')
|
|
311
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
312
|
-
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
313
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_2__.watch)(':speechRecognizeResult')
|
|
314
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
315
|
-
_jodit__WEBPACK_IMPORTED_MODULE_8__.Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
/***/ }),
|
|
319
|
-
|
|
320
|
-
/***/ 32560:
|
|
321
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
322
|
-
|
|
323
|
-
"use strict";
|
|
324
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
325
|
-
/* harmony export */ sound: function() { return /* binding */ sound; }
|
|
326
|
-
/* harmony export */ });
|
|
327
|
-
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
328
|
-
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94092);
|
|
329
|
-
/*!
|
|
330
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
331
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
332
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
333
|
-
*/ /**
|
|
334
|
-
* @module plugins/speech-recognize
|
|
335
|
-
*/
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* @internal
|
|
339
|
-
*/ function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__.PII, gain = 0.1, type = 'sine' } = {}) {
|
|
340
|
-
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow || typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext === 'undefined' && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext === 'undefined') {
|
|
341
|
-
return;
|
|
342
|
-
}
|
|
343
|
-
// one context per document
|
|
344
|
-
const context = new (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext)();
|
|
345
|
-
const vol = context.createGain();
|
|
346
|
-
const osc = context.createOscillator();
|
|
347
|
-
osc.type = type;
|
|
348
|
-
osc.frequency.value = frequency; // Hz
|
|
349
|
-
osc.connect(vol);
|
|
350
|
-
vol.connect(context.destination);
|
|
351
|
-
osc.start(); // start the oscillator
|
|
352
|
-
osc.stop(context.currentTime + sec);
|
|
353
|
-
vol.gain.value = gain;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
/***/ }),
|
|
358
|
-
|
|
359
|
-
/***/ 33276:
|
|
360
|
-
/***/ (function(module) {
|
|
361
|
-
|
|
362
|
-
/*!
|
|
363
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
364
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
365
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
366
|
-
*/ module.exports = {
|
|
367
|
-
'Speech Recognize': 'Puheentunnistus',
|
|
368
|
-
newline: 'uusi rivi',
|
|
369
|
-
delete: 'poistaa',
|
|
370
|
-
space: 'tilaa',
|
|
371
|
-
Sound: 'Ääni',
|
|
372
|
-
'Interim Results': 'Välitulokset'
|
|
373
|
-
};
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
/***/ }),
|
|
377
|
-
|
|
378
|
-
/***/ 35420:
|
|
379
|
-
/***/ (function(module) {
|
|
380
|
-
|
|
381
|
-
/*!
|
|
382
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
383
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
384
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
385
|
-
*/ module.exports = {
|
|
386
|
-
newline: 'nuova riga',
|
|
387
|
-
delete: 'eliminare',
|
|
388
|
-
space: 'spazio',
|
|
389
|
-
'Speech Recognize': 'Discorso Riconoscere',
|
|
390
|
-
Sound: 'Suono',
|
|
391
|
-
'Interim Results': 'Risultati intermedi'
|
|
392
|
-
};
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
/***/ }),
|
|
396
|
-
|
|
397
|
-
/***/ 37161:
|
|
398
|
-
/***/ (function(module) {
|
|
399
|
-
|
|
400
|
-
/*!
|
|
401
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
402
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
403
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
404
|
-
*/ module.exports = {
|
|
405
|
-
newline: 'newline',
|
|
406
|
-
delete: 'usunąć',
|
|
407
|
-
space: 'przestrzeń',
|
|
408
|
-
'Speech Recognize': 'Rozpoznawanie Mowy',
|
|
409
|
-
Sound: 'Dźwięk',
|
|
410
|
-
'Interim Results': 'Wyniki Okresowe'
|
|
411
|
-
};
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
/***/ }),
|
|
415
|
-
|
|
416
|
-
/***/ 39996:
|
|
417
|
-
/***/ (function(module) {
|
|
418
|
-
|
|
419
|
-
/*!
|
|
420
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
421
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
422
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
423
|
-
*/ module.exports = {
|
|
424
|
-
newline: 'новая строка|перенос|энтер',
|
|
425
|
-
delete: 'удалить',
|
|
426
|
-
space: 'пробел',
|
|
427
|
-
'Speech Recognize': 'Распознавание речи',
|
|
428
|
-
Sound: 'Звук',
|
|
429
|
-
'Interim Results': 'Промежуточные результаты'
|
|
430
|
-
};
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
/***/ }),
|
|
434
|
-
|
|
435
|
-
/***/ 43219:
|
|
436
|
-
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
185
|
+
/***/ 8962:
|
|
186
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
437
187
|
|
|
438
188
|
"use strict";
|
|
439
|
-
__webpack_require__.r(__webpack_exports__);
|
|
440
189
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
441
|
-
/* harmony export */
|
|
442
|
-
/* harmony export */ cs_cz: function() { return /* reexport module object */ _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__; },
|
|
443
|
-
/* harmony export */ de: function() { return /* reexport module object */ _de_js__WEBPACK_IMPORTED_MODULE_2__; },
|
|
444
|
-
/* harmony export */ es: function() { return /* reexport module object */ _es_js__WEBPACK_IMPORTED_MODULE_3__; },
|
|
445
|
-
/* harmony export */ fa: function() { return /* reexport module object */ _fa_js__WEBPACK_IMPORTED_MODULE_4__; },
|
|
446
|
-
/* harmony export */ fi: function() { return /* reexport module object */ _fi_js__WEBPACK_IMPORTED_MODULE_5__; },
|
|
447
|
-
/* harmony export */ fr: function() { return /* reexport module object */ _fr_js__WEBPACK_IMPORTED_MODULE_6__; },
|
|
448
|
-
/* harmony export */ he: function() { return /* reexport module object */ _he_js__WEBPACK_IMPORTED_MODULE_7__; },
|
|
449
|
-
/* harmony export */ hu: function() { return /* reexport module object */ _hu_js__WEBPACK_IMPORTED_MODULE_8__; },
|
|
450
|
-
/* harmony export */ id: function() { return /* reexport module object */ _id_js__WEBPACK_IMPORTED_MODULE_9__; },
|
|
451
|
-
/* harmony export */ it: function() { return /* reexport module object */ _it_js__WEBPACK_IMPORTED_MODULE_10__; },
|
|
452
|
-
/* harmony export */ ja: function() { return /* reexport module object */ _ja_js__WEBPACK_IMPORTED_MODULE_11__; },
|
|
453
|
-
/* harmony export */ ko: function() { return /* reexport module object */ _ko_js__WEBPACK_IMPORTED_MODULE_12__; },
|
|
454
|
-
/* harmony export */ mn: function() { return /* reexport module object */ _mn_js__WEBPACK_IMPORTED_MODULE_13__; },
|
|
455
|
-
/* harmony export */ nl: function() { return /* reexport module object */ _nl_js__WEBPACK_IMPORTED_MODULE_14__; },
|
|
456
|
-
/* harmony export */ no: function() { return /* reexport module object */ _no_js__WEBPACK_IMPORTED_MODULE_15__; },
|
|
457
|
-
/* harmony export */ pl: function() { return /* reexport module object */ _pl_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
458
|
-
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
459
|
-
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
460
|
-
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
461
|
-
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
462
|
-
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__; },
|
|
463
|
-
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__; }
|
|
190
|
+
/* harmony export */ execSpellCommand: function() { return /* binding */ execSpellCommand; }
|
|
464
191
|
/* harmony export */ });
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33276);
|
|
476
|
-
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fi_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
477
|
-
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43517);
|
|
478
|
-
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fr_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
479
|
-
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8858);
|
|
480
|
-
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_he_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
481
|
-
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22922);
|
|
482
|
-
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_hu_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
483
|
-
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81900);
|
|
484
|
-
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_id_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
485
|
-
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(35420);
|
|
486
|
-
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_it_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
487
|
-
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18712);
|
|
488
|
-
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ja_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
489
|
-
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(73363);
|
|
490
|
-
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_ko_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
491
|
-
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(74762);
|
|
492
|
-
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_mn_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
493
|
-
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(73759);
|
|
494
|
-
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_nl_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
495
|
-
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(72850);
|
|
496
|
-
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_no_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
497
|
-
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(37161);
|
|
498
|
-
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_pl_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
499
|
-
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62896);
|
|
500
|
-
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_pt_br_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
501
|
-
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(39996);
|
|
502
|
-
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
503
|
-
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(93423);
|
|
504
|
-
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
505
|
-
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(10179);
|
|
506
|
-
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
507
|
-
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(62547);
|
|
508
|
-
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
509
|
-
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(29475);
|
|
510
|
-
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
511
|
-
/*!
|
|
512
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
513
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
514
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
515
|
-
*/ // @ts-nocheck
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
/***/ }),
|
|
543
|
-
|
|
544
|
-
/***/ 43517:
|
|
545
|
-
/***/ (function(module) {
|
|
546
|
-
|
|
547
|
-
/*!
|
|
548
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
549
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
550
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
551
|
-
*/ module.exports = {
|
|
552
|
-
newline: 'nouvelle ligne',
|
|
553
|
-
delete: 'supprimer',
|
|
554
|
-
space: 'espace',
|
|
555
|
-
'Speech Recognize': 'Reconnaissance Vocale',
|
|
556
|
-
Sound: 'Son',
|
|
557
|
-
'Interim Results': 'Résultats Intermédiaires'
|
|
558
|
-
};
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
/***/ }),
|
|
562
|
-
|
|
563
|
-
/***/ 49668:
|
|
564
|
-
/***/ (function(module) {
|
|
565
|
-
|
|
566
|
-
/*!
|
|
567
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
568
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
569
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
570
|
-
*/ module.exports = {
|
|
571
|
-
newline: 'خط جدید',
|
|
572
|
-
delete: 'حذف',
|
|
573
|
-
space: 'فضا',
|
|
574
|
-
'Speech Recognize': 'گفتار را تشخیص دهید',
|
|
575
|
-
Sound: 'صدا',
|
|
576
|
-
'Interim Results': 'نتایج موقت'
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
/***/ }),
|
|
581
|
-
|
|
582
|
-
/***/ 62547:
|
|
583
|
-
/***/ (function(module) {
|
|
584
|
-
|
|
585
|
-
/*!
|
|
586
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
587
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
588
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
589
|
-
*/ module.exports = {
|
|
590
|
-
newline: '新行',
|
|
591
|
-
delete: '删除',
|
|
592
|
-
space: '空间',
|
|
593
|
-
'Speech Recognize': '言语识别',
|
|
594
|
-
Sound: '声音',
|
|
595
|
-
'Interim Results': '中期业绩'
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
/***/ }),
|
|
600
|
-
|
|
601
|
-
/***/ 62896:
|
|
602
|
-
/***/ (function(module) {
|
|
603
|
-
|
|
604
|
-
/*!
|
|
605
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
606
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
607
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
608
|
-
*/ module.exports = {
|
|
609
|
-
newline: 'linha',
|
|
610
|
-
delete: 'excluir',
|
|
611
|
-
space: 'espaco',
|
|
612
|
-
'Speech Recognize': 'Discurso Reconhecer',
|
|
613
|
-
Sound: 'Som',
|
|
614
|
-
'Interim Results': 'Resultados Provisórios'
|
|
615
|
-
};
|
|
192
|
+
/*!
|
|
193
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
194
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
195
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
196
|
+
*/ /**
|
|
197
|
+
* @module plugins/speech-recognize
|
|
198
|
+
*/ function execSpellCommand(jodit, commandSentence) {
|
|
199
|
+
const [command, value] = commandSentence.split('::');
|
|
200
|
+
jodit.execCommand(command, null, value);
|
|
201
|
+
}
|
|
616
202
|
|
|
617
203
|
|
|
618
204
|
/***/ }),
|
|
@@ -800,7 +386,345 @@ class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORT
|
|
|
800
386
|
|
|
801
387
|
/***/ }),
|
|
802
388
|
|
|
803
|
-
/***/
|
|
389
|
+
/***/ 32560:
|
|
390
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
391
|
+
|
|
392
|
+
"use strict";
|
|
393
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
394
|
+
/* harmony export */ sound: function() { return /* binding */ sound; }
|
|
395
|
+
/* harmony export */ });
|
|
396
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
397
|
+
/* harmony import */ var jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94092);
|
|
398
|
+
/*!
|
|
399
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
400
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
401
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
402
|
+
*/ /**
|
|
403
|
+
* @module plugins/speech-recognize
|
|
404
|
+
*/
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* @internal
|
|
408
|
+
*/ function sound({ sec = 0.1, frequency = jodit_plugins_speech_recognize_constants__WEBPACK_IMPORTED_MODULE_1__.PII, gain = 0.1, type = 'sine' } = {}) {
|
|
409
|
+
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow || typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext === 'undefined' && typeof jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext === 'undefined') {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
// one context per document
|
|
413
|
+
const context = new (jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.AudioContext || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitAudioContext)();
|
|
414
|
+
const vol = context.createGain();
|
|
415
|
+
const osc = context.createOscillator();
|
|
416
|
+
osc.type = type;
|
|
417
|
+
osc.frequency.value = frequency; // Hz
|
|
418
|
+
osc.connect(vol);
|
|
419
|
+
vol.connect(context.destination);
|
|
420
|
+
osc.start(); // start the oscillator
|
|
421
|
+
osc.stop(context.currentTime + sec);
|
|
422
|
+
vol.gain.value = gain;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
/***/ }),
|
|
427
|
+
|
|
428
|
+
/***/ 19922:
|
|
429
|
+
/***/ (function(module) {
|
|
430
|
+
|
|
431
|
+
/*!
|
|
432
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
433
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
434
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
435
|
+
*/ module.exports = {
|
|
436
|
+
newline: 'الخط الجديد',
|
|
437
|
+
delete: 'حذف',
|
|
438
|
+
space: 'الفضاء',
|
|
439
|
+
'Speech Recognize': 'التعرف على الكلام',
|
|
440
|
+
Sound: 'الصوت',
|
|
441
|
+
'Interim Results': 'النتائج المؤقتة'
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
/***/ }),
|
|
446
|
+
|
|
447
|
+
/***/ 20759:
|
|
448
|
+
/***/ (function(module) {
|
|
449
|
+
|
|
450
|
+
/*!
|
|
451
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
452
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
453
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
454
|
+
*/ module.exports = {
|
|
455
|
+
newline: 'řádek',
|
|
456
|
+
delete: 'odstranit',
|
|
457
|
+
space: 'prostora',
|
|
458
|
+
'Speech Recognize': 'Rozpoznání Řeči',
|
|
459
|
+
Sound: 'Zvuk',
|
|
460
|
+
'Interim Results': 'Průběžné Výsledky'
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
/***/ }),
|
|
465
|
+
|
|
466
|
+
/***/ 22350:
|
|
467
|
+
/***/ (function(module) {
|
|
468
|
+
|
|
469
|
+
/*!
|
|
470
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
471
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
472
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
473
|
+
*/ module.exports = {
|
|
474
|
+
newline: 'Zeilenumbruch',
|
|
475
|
+
delete: 'löschen',
|
|
476
|
+
space: 'Raum',
|
|
477
|
+
'Speech Recognize': 'Sprache Erkennen',
|
|
478
|
+
Sound: 'Sound',
|
|
479
|
+
'Interim Results': 'Zwischenergebnis'
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
/***/ }),
|
|
484
|
+
|
|
485
|
+
/***/ 97509:
|
|
486
|
+
/***/ (function(module) {
|
|
487
|
+
|
|
488
|
+
/*!
|
|
489
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
490
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
491
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
492
|
+
*/ module.exports = {
|
|
493
|
+
newline: 'nueva línea',
|
|
494
|
+
delete: 'eliminar',
|
|
495
|
+
space: 'espacio',
|
|
496
|
+
'Speech Recognize': 'Reconocimiento de Voz',
|
|
497
|
+
Sound: 'Sonido',
|
|
498
|
+
'Interim Results': 'Resultados Provisionales'
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
/***/ }),
|
|
503
|
+
|
|
504
|
+
/***/ 49668:
|
|
505
|
+
/***/ (function(module) {
|
|
506
|
+
|
|
507
|
+
/*!
|
|
508
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
509
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
510
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
511
|
+
*/ module.exports = {
|
|
512
|
+
newline: 'خط جدید',
|
|
513
|
+
delete: 'حذف',
|
|
514
|
+
space: 'فضا',
|
|
515
|
+
'Speech Recognize': 'گفتار را تشخیص دهید',
|
|
516
|
+
Sound: 'صدا',
|
|
517
|
+
'Interim Results': 'نتایج موقت'
|
|
518
|
+
};
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
/***/ }),
|
|
522
|
+
|
|
523
|
+
/***/ 33276:
|
|
524
|
+
/***/ (function(module) {
|
|
525
|
+
|
|
526
|
+
/*!
|
|
527
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
528
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
529
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
530
|
+
*/ module.exports = {
|
|
531
|
+
'Speech Recognize': 'Puheentunnistus',
|
|
532
|
+
newline: 'uusi rivi',
|
|
533
|
+
delete: 'poistaa',
|
|
534
|
+
space: 'tilaa',
|
|
535
|
+
Sound: 'Ääni',
|
|
536
|
+
'Interim Results': 'Välitulokset'
|
|
537
|
+
};
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
/***/ }),
|
|
541
|
+
|
|
542
|
+
/***/ 43517:
|
|
543
|
+
/***/ (function(module) {
|
|
544
|
+
|
|
545
|
+
/*!
|
|
546
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
547
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
548
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
549
|
+
*/ module.exports = {
|
|
550
|
+
newline: 'nouvelle ligne',
|
|
551
|
+
delete: 'supprimer',
|
|
552
|
+
space: 'espace',
|
|
553
|
+
'Speech Recognize': 'Reconnaissance Vocale',
|
|
554
|
+
Sound: 'Son',
|
|
555
|
+
'Interim Results': 'Résultats Intermédiaires'
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
/***/ }),
|
|
560
|
+
|
|
561
|
+
/***/ 8858:
|
|
562
|
+
/***/ (function(module) {
|
|
563
|
+
|
|
564
|
+
/*!
|
|
565
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
566
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
567
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
568
|
+
*/ module.exports = {
|
|
569
|
+
newline: 'חדשות',
|
|
570
|
+
delete: 'מחק',
|
|
571
|
+
space: 'שטח',
|
|
572
|
+
'Speech Recognize': 'דיבור מזהה',
|
|
573
|
+
Sound: 'קול',
|
|
574
|
+
'Interim Results': 'תוצאות ביניים'
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
/***/ }),
|
|
579
|
+
|
|
580
|
+
/***/ 22922:
|
|
581
|
+
/***/ (function(module) {
|
|
582
|
+
|
|
583
|
+
/*!
|
|
584
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
585
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
586
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
587
|
+
*/ module.exports = {
|
|
588
|
+
newline: 'újsor',
|
|
589
|
+
delete: 'törlés',
|
|
590
|
+
space: 'tér',
|
|
591
|
+
'Speech Recognize': 'A Beszéd Felismeri',
|
|
592
|
+
Sound: 'Hang',
|
|
593
|
+
'Interim Results': 'Időközi Eredmények'
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
/***/ }),
|
|
598
|
+
|
|
599
|
+
/***/ 81900:
|
|
600
|
+
/***/ (function(module) {
|
|
601
|
+
|
|
602
|
+
/*!
|
|
603
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
604
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
605
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
606
|
+
*/ module.exports = {
|
|
607
|
+
newline: 'newline',
|
|
608
|
+
delete: 'Hapus',
|
|
609
|
+
space: 'ruang',
|
|
610
|
+
'Speech Recognize': 'Pidato Mengenali',
|
|
611
|
+
Sound: 'Suara',
|
|
612
|
+
'Interim Results': 'Hasil Sementara'
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
/***/ }),
|
|
617
|
+
|
|
618
|
+
/***/ 43219:
|
|
619
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
620
|
+
|
|
621
|
+
"use strict";
|
|
622
|
+
__webpack_require__.r(__webpack_exports__);
|
|
623
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
624
|
+
/* harmony export */ ar: function() { return /* reexport module object */ _ar_js__WEBPACK_IMPORTED_MODULE_0__; },
|
|
625
|
+
/* harmony export */ cs_cz: function() { return /* reexport module object */ _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__; },
|
|
626
|
+
/* harmony export */ de: function() { return /* reexport module object */ _de_js__WEBPACK_IMPORTED_MODULE_2__; },
|
|
627
|
+
/* harmony export */ es: function() { return /* reexport module object */ _es_js__WEBPACK_IMPORTED_MODULE_3__; },
|
|
628
|
+
/* harmony export */ fa: function() { return /* reexport module object */ _fa_js__WEBPACK_IMPORTED_MODULE_4__; },
|
|
629
|
+
/* harmony export */ fi: function() { return /* reexport module object */ _fi_js__WEBPACK_IMPORTED_MODULE_5__; },
|
|
630
|
+
/* harmony export */ fr: function() { return /* reexport module object */ _fr_js__WEBPACK_IMPORTED_MODULE_6__; },
|
|
631
|
+
/* harmony export */ he: function() { return /* reexport module object */ _he_js__WEBPACK_IMPORTED_MODULE_7__; },
|
|
632
|
+
/* harmony export */ hu: function() { return /* reexport module object */ _hu_js__WEBPACK_IMPORTED_MODULE_8__; },
|
|
633
|
+
/* harmony export */ id: function() { return /* reexport module object */ _id_js__WEBPACK_IMPORTED_MODULE_9__; },
|
|
634
|
+
/* harmony export */ it: function() { return /* reexport module object */ _it_js__WEBPACK_IMPORTED_MODULE_10__; },
|
|
635
|
+
/* harmony export */ ja: function() { return /* reexport module object */ _ja_js__WEBPACK_IMPORTED_MODULE_11__; },
|
|
636
|
+
/* harmony export */ ko: function() { return /* reexport module object */ _ko_js__WEBPACK_IMPORTED_MODULE_12__; },
|
|
637
|
+
/* harmony export */ mn: function() { return /* reexport module object */ _mn_js__WEBPACK_IMPORTED_MODULE_13__; },
|
|
638
|
+
/* harmony export */ nl: function() { return /* reexport module object */ _nl_js__WEBPACK_IMPORTED_MODULE_14__; },
|
|
639
|
+
/* harmony export */ no: function() { return /* reexport module object */ _no_js__WEBPACK_IMPORTED_MODULE_15__; },
|
|
640
|
+
/* harmony export */ pl: function() { return /* reexport module object */ _pl_js__WEBPACK_IMPORTED_MODULE_16__; },
|
|
641
|
+
/* harmony export */ pt_br: function() { return /* reexport module object */ _pt_br_js__WEBPACK_IMPORTED_MODULE_17__; },
|
|
642
|
+
/* harmony export */ ru: function() { return /* reexport module object */ _ru_js__WEBPACK_IMPORTED_MODULE_18__; },
|
|
643
|
+
/* harmony export */ tr: function() { return /* reexport module object */ _tr_js__WEBPACK_IMPORTED_MODULE_19__; },
|
|
644
|
+
/* harmony export */ ua: function() { return /* reexport module object */ _ua_js__WEBPACK_IMPORTED_MODULE_20__; },
|
|
645
|
+
/* harmony export */ zh_cn: function() { return /* reexport module object */ _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__; },
|
|
646
|
+
/* harmony export */ zh_tw: function() { return /* reexport module object */ _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__; }
|
|
647
|
+
/* harmony export */ });
|
|
648
|
+
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19922);
|
|
649
|
+
/* harmony import */ var _ar_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_ar_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
650
|
+
/* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(20759);
|
|
651
|
+
/* harmony import */ var _cs_cz_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_cs_cz_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
652
|
+
/* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22350);
|
|
653
|
+
/* harmony import */ var _de_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_de_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
654
|
+
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97509);
|
|
655
|
+
/* harmony import */ var _es_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_es_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
656
|
+
/* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49668);
|
|
657
|
+
/* harmony import */ var _fa_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_fa_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
658
|
+
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33276);
|
|
659
|
+
/* harmony import */ var _fi_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_fi_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
660
|
+
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43517);
|
|
661
|
+
/* harmony import */ var _fr_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_fr_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
662
|
+
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(8858);
|
|
663
|
+
/* harmony import */ var _he_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_he_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
664
|
+
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(22922);
|
|
665
|
+
/* harmony import */ var _hu_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_hu_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
666
|
+
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(81900);
|
|
667
|
+
/* harmony import */ var _id_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_id_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
668
|
+
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(35420);
|
|
669
|
+
/* harmony import */ var _it_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_it_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
670
|
+
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(18712);
|
|
671
|
+
/* harmony import */ var _ja_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_ja_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
672
|
+
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(73363);
|
|
673
|
+
/* harmony import */ var _ko_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_ko_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
674
|
+
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(74762);
|
|
675
|
+
/* harmony import */ var _mn_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_mn_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
676
|
+
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(73759);
|
|
677
|
+
/* harmony import */ var _nl_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_nl_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
678
|
+
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(72850);
|
|
679
|
+
/* harmony import */ var _no_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_no_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
680
|
+
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(37161);
|
|
681
|
+
/* harmony import */ var _pl_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(_pl_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
682
|
+
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62896);
|
|
683
|
+
/* harmony import */ var _pt_br_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(_pt_br_js__WEBPACK_IMPORTED_MODULE_17__);
|
|
684
|
+
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(39996);
|
|
685
|
+
/* harmony import */ var _ru_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(_ru_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
686
|
+
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(93423);
|
|
687
|
+
/* harmony import */ var _tr_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(_tr_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
688
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(10179);
|
|
689
|
+
/* harmony import */ var _ua_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(_ua_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
690
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(62547);
|
|
691
|
+
/* harmony import */ var _zh_cn_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(_zh_cn_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
692
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(29475);
|
|
693
|
+
/* harmony import */ var _zh_tw_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(_zh_tw_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
694
|
+
/*!
|
|
695
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
696
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
697
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
698
|
+
*/ // @ts-nocheck
|
|
699
|
+
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
/***/ }),
|
|
726
|
+
|
|
727
|
+
/***/ 35420:
|
|
804
728
|
/***/ (function(module) {
|
|
805
729
|
|
|
806
730
|
/*!
|
|
@@ -808,18 +732,18 @@ class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORT
|
|
|
808
732
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
809
733
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
810
734
|
*/ module.exports = {
|
|
811
|
-
newline: '
|
|
812
|
-
delete: '
|
|
813
|
-
space: '
|
|
814
|
-
'Speech Recognize': '
|
|
815
|
-
Sound: '
|
|
816
|
-
'Interim Results': '
|
|
735
|
+
newline: 'nuova riga',
|
|
736
|
+
delete: 'eliminare',
|
|
737
|
+
space: 'spazio',
|
|
738
|
+
'Speech Recognize': 'Discorso Riconoscere',
|
|
739
|
+
Sound: 'Suono',
|
|
740
|
+
'Interim Results': 'Risultati intermedi'
|
|
817
741
|
};
|
|
818
742
|
|
|
819
743
|
|
|
820
744
|
/***/ }),
|
|
821
745
|
|
|
822
|
-
/***/
|
|
746
|
+
/***/ 18712:
|
|
823
747
|
/***/ (function(module) {
|
|
824
748
|
|
|
825
749
|
/*!
|
|
@@ -827,18 +751,18 @@ class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORT
|
|
|
827
751
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
828
752
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
829
753
|
*/ module.exports = {
|
|
830
|
-
newline: '
|
|
831
|
-
delete: '
|
|
832
|
-
space: '
|
|
833
|
-
'Speech Recognize': '
|
|
834
|
-
Sound: '
|
|
835
|
-
'Interim Results': '
|
|
754
|
+
newline: '改行',
|
|
755
|
+
delete: '削除',
|
|
756
|
+
space: 'スペース',
|
|
757
|
+
'Speech Recognize': '音声認識',
|
|
758
|
+
Sound: '音',
|
|
759
|
+
'Interim Results': '中間結果'
|
|
836
760
|
};
|
|
837
761
|
|
|
838
762
|
|
|
839
763
|
/***/ }),
|
|
840
764
|
|
|
841
|
-
/***/
|
|
765
|
+
/***/ 73363:
|
|
842
766
|
/***/ (function(module) {
|
|
843
767
|
|
|
844
768
|
/*!
|
|
@@ -846,12 +770,12 @@ class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORT
|
|
|
846
770
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
847
771
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
848
772
|
*/ module.exports = {
|
|
849
|
-
newline: '
|
|
850
|
-
delete: '
|
|
851
|
-
space: '
|
|
852
|
-
'Speech Recognize': '
|
|
853
|
-
Sound: '
|
|
854
|
-
'Interim Results': '
|
|
773
|
+
newline: '줄 바꿈',
|
|
774
|
+
delete: '삭제',
|
|
775
|
+
space: '공간',
|
|
776
|
+
'Speech Recognize': '음성 인식',
|
|
777
|
+
Sound: '소리',
|
|
778
|
+
'Interim Results': '중간 결과'
|
|
855
779
|
};
|
|
856
780
|
|
|
857
781
|
|
|
@@ -872,134 +796,49 @@ class RecognizeManager extends jodit_core_event_emitter_eventify__WEBPACK_IMPORT
|
|
|
872
796
|
Sound: 'Дуу',
|
|
873
797
|
'Interim Results': 'Түр зуурын үр дүн'
|
|
874
798
|
};
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
/***/ }),
|
|
878
|
-
|
|
879
|
-
/***/
|
|
880
|
-
/***/ (function(
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
/*!
|
|
894
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
895
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
896
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
897
|
-
*/ /**
|
|
898
|
-
* @module plugins/speech-recognize
|
|
899
|
-
*/
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.speechRecognize = {
|
|
909
|
-
api: typeof _helpers_api__WEBPACK_IMPORTED_MODULE_6__.SpeechRecognition !== 'undefined' ? _helpers_api__WEBPACK_IMPORTED_MODULE_6__.SpeechRecognition : null,
|
|
910
|
-
sound: true,
|
|
911
|
-
continuous: false,
|
|
912
|
-
interimResults: true,
|
|
913
|
-
commands: {
|
|
914
|
-
'newline|enter': 'enter',
|
|
915
|
-
'delete|remove word|delete word': 'backspaceWordButton',
|
|
916
|
-
comma: 'inserthtml::,',
|
|
917
|
-
underline: 'inserthtml::_',
|
|
918
|
-
hyphen: 'inserthtml::-',
|
|
919
|
-
space: 'inserthtml:: ',
|
|
920
|
-
question: 'inserthtml::?',
|
|
921
|
-
dot: 'inserthtml::.',
|
|
922
|
-
'quote|quotes|open quote': "inserthtml::'",
|
|
923
|
-
'header|header h1': 'formatblock::h1',
|
|
924
|
-
'select all': 'selectall'
|
|
925
|
-
}
|
|
926
|
-
};
|
|
927
|
-
jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.set('speech-recognize', (_speech_recognize_svg__WEBPACK_IMPORTED_MODULE_8___default()));
|
|
928
|
-
jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.speechRecognize = {
|
|
929
|
-
isVisible (j) {
|
|
930
|
-
return Boolean(j.o.speechRecognize.api);
|
|
931
|
-
},
|
|
932
|
-
isActive (jodit, _) {
|
|
933
|
-
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech');
|
|
934
|
-
return Boolean(api === null || api === void 0 ? void 0 : api.isEnabled);
|
|
935
|
-
},
|
|
936
|
-
isDisabled (jodit) {
|
|
937
|
-
return !jodit.o.speechRecognize.api;
|
|
938
|
-
},
|
|
939
|
-
exec (jodit, current, { button, control }) {
|
|
940
|
-
const { api: ApiConstructor, lang, continuous, interimResults, sound } = jodit.o.speechRecognize;
|
|
941
|
-
if (!ApiConstructor) {
|
|
942
|
-
jodit.alert('Speech recognize API unsupported in your browser');
|
|
943
|
-
return;
|
|
944
|
-
}
|
|
945
|
-
let api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech');
|
|
946
|
-
if (!api) {
|
|
947
|
-
var _attr;
|
|
948
|
-
const nativeApi = new ApiConstructor();
|
|
949
|
-
api = new _helpers_recognize_manager__WEBPACK_IMPORTED_MODULE_7__.RecognizeManager(jodit.async, nativeApi);
|
|
950
|
-
api.lang = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(lang) ? lang : (_attr = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(jodit.od.documentElement, 'lang')) !== null && _attr !== void 0 ? _attr : undefined;
|
|
951
|
-
api.continuous = continuous;
|
|
952
|
-
api.interimResults = interimResults;
|
|
953
|
-
api.sound = sound;
|
|
954
|
-
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech', api);
|
|
955
|
-
api.on('pulse', (enable)=>{
|
|
956
|
-
button.setMod('pulse', enable);
|
|
957
|
-
});
|
|
958
|
-
api.on('result', (text)=>jodit.e.fire('speechRecognizeResult', text));
|
|
959
|
-
api.on('progress', (text)=>jodit.e.fire('speechRecognizeProgressResult', text));
|
|
960
|
-
api.on('error', (text)=>jodit.message.error(text));
|
|
961
|
-
button.hookStatus('beforeDestruct', ()=>{
|
|
962
|
-
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech', null);
|
|
963
|
-
api.destruct();
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
|
-
if (control.args) {
|
|
967
|
-
const key = control.args[0];
|
|
968
|
-
if ((0,jodit_core_helpers_checker_is_boolean__WEBPACK_IMPORTED_MODULE_0__.isBoolean)(api[key])) {
|
|
969
|
-
api[key] = !api[key];
|
|
970
|
-
if (api.isEnabled) {
|
|
971
|
-
api.restart();
|
|
972
|
-
}
|
|
973
|
-
return;
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
api.toggle();
|
|
977
|
-
if (api.isEnabled) {
|
|
978
|
-
button.setMod('pulse', true);
|
|
979
|
-
}
|
|
980
|
-
button.state.activated = api.isEnabled;
|
|
981
|
-
},
|
|
982
|
-
name: 'speechRecognize',
|
|
983
|
-
command: 'toggleSpeechRecognize',
|
|
984
|
-
tooltip: 'Speech Recognize',
|
|
985
|
-
list: {
|
|
986
|
-
sound: 'Sound',
|
|
987
|
-
interimResults: 'Interim Results'
|
|
988
|
-
},
|
|
989
|
-
childTemplate (jodit, key, value) {
|
|
990
|
-
var _ref;
|
|
991
|
-
const api = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_3__.dataBind)(jodit, 'speech'), checked = (_ref = api === null || api === void 0 ? void 0 : api[key]) !== null && _ref !== void 0 ? _ref : jodit.o.speechRecognize[key];
|
|
992
|
-
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
993
|
-
},
|
|
994
|
-
mods: {
|
|
995
|
-
stroke: false
|
|
996
|
-
}
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
/***/ }),
|
|
802
|
+
|
|
803
|
+
/***/ 73759:
|
|
804
|
+
/***/ (function(module) {
|
|
805
|
+
|
|
806
|
+
/*!
|
|
807
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
808
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
809
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
810
|
+
*/ module.exports = {
|
|
811
|
+
newline: 'regel',
|
|
812
|
+
delete: 'verwijderen',
|
|
813
|
+
space: 'ruimte',
|
|
814
|
+
'Speech Recognize': 'Spraak Herkennen',
|
|
815
|
+
Sound: 'Geluid',
|
|
816
|
+
'Interim Results': 'Tussentijdse Resultaten'
|
|
997
817
|
};
|
|
998
818
|
|
|
999
819
|
|
|
1000
820
|
/***/ }),
|
|
1001
821
|
|
|
1002
|
-
/***/
|
|
822
|
+
/***/ 72850:
|
|
823
|
+
/***/ (function(module) {
|
|
824
|
+
|
|
825
|
+
/*!
|
|
826
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
827
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
828
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
829
|
+
*/ module.exports = {
|
|
830
|
+
newline: 'nylinje',
|
|
831
|
+
delete: 'slette',
|
|
832
|
+
space: 'rom',
|
|
833
|
+
'Speech Recognize': 'Talegjenkjenning',
|
|
834
|
+
Sound: 'Lyd',
|
|
835
|
+
'Interim Results': 'Midlertidige resultater'
|
|
836
|
+
};
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
/***/ }),
|
|
840
|
+
|
|
841
|
+
/***/ 37161:
|
|
1003
842
|
/***/ (function(module) {
|
|
1004
843
|
|
|
1005
844
|
/*!
|
|
@@ -1008,11 +847,49 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.speechRecogn
|
|
|
1008
847
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
1009
848
|
*/ module.exports = {
|
|
1010
849
|
newline: 'newline',
|
|
1011
|
-
delete: '
|
|
1012
|
-
space: '
|
|
1013
|
-
'Speech Recognize': '
|
|
1014
|
-
Sound: '
|
|
1015
|
-
'Interim Results': '
|
|
850
|
+
delete: 'usunąć',
|
|
851
|
+
space: 'przestrzeń',
|
|
852
|
+
'Speech Recognize': 'Rozpoznawanie Mowy',
|
|
853
|
+
Sound: 'Dźwięk',
|
|
854
|
+
'Interim Results': 'Wyniki Okresowe'
|
|
855
|
+
};
|
|
856
|
+
|
|
857
|
+
|
|
858
|
+
/***/ }),
|
|
859
|
+
|
|
860
|
+
/***/ 62896:
|
|
861
|
+
/***/ (function(module) {
|
|
862
|
+
|
|
863
|
+
/*!
|
|
864
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
865
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
866
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
867
|
+
*/ module.exports = {
|
|
868
|
+
newline: 'linha',
|
|
869
|
+
delete: 'excluir',
|
|
870
|
+
space: 'espaco',
|
|
871
|
+
'Speech Recognize': 'Discurso Reconhecer',
|
|
872
|
+
Sound: 'Som',
|
|
873
|
+
'Interim Results': 'Resultados Provisórios'
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
/***/ }),
|
|
878
|
+
|
|
879
|
+
/***/ 39996:
|
|
880
|
+
/***/ (function(module) {
|
|
881
|
+
|
|
882
|
+
/*!
|
|
883
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
884
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
885
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
886
|
+
*/ module.exports = {
|
|
887
|
+
newline: 'новая строка|перенос|энтер',
|
|
888
|
+
delete: 'удалить',
|
|
889
|
+
space: 'пробел',
|
|
890
|
+
'Speech Recognize': 'Распознавание речи',
|
|
891
|
+
Sound: 'Звук',
|
|
892
|
+
'Interim Results': 'Промежуточные результаты'
|
|
1016
893
|
};
|
|
1017
894
|
|
|
1018
895
|
|
|
@@ -1037,28 +914,26 @@ jodit_config__WEBPACK_IMPORTED_MODULE_5__.Config.prototype.controls.speechRecogn
|
|
|
1037
914
|
|
|
1038
915
|
/***/ }),
|
|
1039
916
|
|
|
1040
|
-
/***/
|
|
1041
|
-
/***/ (function(
|
|
917
|
+
/***/ 10179:
|
|
918
|
+
/***/ (function(module) {
|
|
1042
919
|
|
|
1043
|
-
"use strict";
|
|
1044
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1045
|
-
/* harmony export */ PII: function() { return /* binding */ PII; },
|
|
1046
|
-
/* harmony export */ WARN: function() { return /* binding */ WARN; }
|
|
1047
|
-
/* harmony export */ });
|
|
1048
920
|
/*!
|
|
1049
921
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
1050
922
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1051
923
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
1052
|
-
*/
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
924
|
+
*/ module.exports = {
|
|
925
|
+
newline: 'новая строка|перенос|ентер',
|
|
926
|
+
delete: 'видалити',
|
|
927
|
+
space: 'пробел',
|
|
928
|
+
'Speech Recognize': 'Распознавание речи',
|
|
929
|
+
Sound: 'Звук',
|
|
930
|
+
'Interim Results': 'Проміжні результати'
|
|
931
|
+
};
|
|
1057
932
|
|
|
1058
933
|
|
|
1059
934
|
/***/ }),
|
|
1060
935
|
|
|
1061
|
-
/***/
|
|
936
|
+
/***/ 62547:
|
|
1062
937
|
/***/ (function(module) {
|
|
1063
938
|
|
|
1064
939
|
/*!
|
|
@@ -1066,35 +941,160 @@ const WARN = 940;
|
|
|
1066
941
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1067
942
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
1068
943
|
*/ module.exports = {
|
|
1069
|
-
newline: '
|
|
1070
|
-
delete: '
|
|
1071
|
-
space: '
|
|
1072
|
-
'Speech Recognize': '
|
|
1073
|
-
Sound: '
|
|
1074
|
-
'Interim Results': '
|
|
944
|
+
newline: '新行',
|
|
945
|
+
delete: '删除',
|
|
946
|
+
space: '空间',
|
|
947
|
+
'Speech Recognize': '言语识别',
|
|
948
|
+
Sound: '声音',
|
|
949
|
+
'Interim Results': '中期业绩'
|
|
1075
950
|
};
|
|
1076
951
|
|
|
1077
952
|
|
|
1078
953
|
/***/ }),
|
|
1079
954
|
|
|
1080
|
-
/***/
|
|
955
|
+
/***/ 29475:
|
|
956
|
+
/***/ (function(module) {
|
|
957
|
+
|
|
958
|
+
/*!
|
|
959
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
960
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
961
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
962
|
+
*/ module.exports = {
|
|
963
|
+
newline: '換行',
|
|
964
|
+
delete: '刪除',
|
|
965
|
+
space: '空白',
|
|
966
|
+
'Speech Recognize': '語音辨識',
|
|
967
|
+
Sound: '聲音',
|
|
968
|
+
'Interim Results': '階段性辨識結果'
|
|
969
|
+
};
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
/***/ }),
|
|
973
|
+
|
|
974
|
+
/***/ 31262:
|
|
1081
975
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1082
976
|
|
|
1083
977
|
"use strict";
|
|
978
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1084
979
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1085
|
-
/* harmony export */
|
|
980
|
+
/* harmony export */ SpeechRecognizeNative: function() { return /* binding */ SpeechRecognizeNative; }
|
|
1086
981
|
/* harmony export */ });
|
|
1087
|
-
/* harmony import */ var
|
|
982
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
983
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
984
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68616);
|
|
985
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
986
|
+
/* harmony import */ var jodit_core_global__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28077);
|
|
987
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(71125);
|
|
988
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91206);
|
|
989
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(75143);
|
|
990
|
+
/* harmony import */ var _jodit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(73302);
|
|
991
|
+
/* harmony import */ var _helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(8962);
|
|
992
|
+
/* harmony import */ var _langs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43219);
|
|
1088
993
|
/*!
|
|
1089
994
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
1090
995
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1091
996
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
1092
997
|
*/ /**
|
|
998
|
+
* [[include:plugins/speech-recognize/README.md]]
|
|
999
|
+
* @packageDocumentation
|
|
1093
1000
|
* @module plugins/speech-recognize
|
|
1094
1001
|
*/
|
|
1095
|
-
const SpeechRecognition = jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow ? jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.SpeechRecognition || jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.globalWindow.webkitSpeechRecognition : undefined;
|
|
1096
1002
|
|
|
1097
1003
|
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
class SpeechRecognizeNative extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_6__.Plugin {
|
|
1014
|
+
afterInit(jodit) {
|
|
1015
|
+
const { commands } = jodit.o.speechRecognize;
|
|
1016
|
+
if (commands) {
|
|
1017
|
+
(0,jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.extendLang)(_langs__WEBPACK_IMPORTED_MODULE_10__);
|
|
1018
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_5__.keys)(commands, false).forEach((words)=>{
|
|
1019
|
+
const keys = words.split('|');
|
|
1020
|
+
keys.forEach((key)=>{
|
|
1021
|
+
key = key.trim().toLowerCase();
|
|
1022
|
+
this._commandToWord[key] = commands[words];
|
|
1023
|
+
const translatedKeys = jodit.i18n(key);
|
|
1024
|
+
if (translatedKeys !== key) {
|
|
1025
|
+
translatedKeys.split('|').forEach((translatedKey)=>{
|
|
1026
|
+
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
});
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
beforeDestruct(jodit) {
|
|
1034
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.messagePopup);
|
|
1035
|
+
}
|
|
1036
|
+
onSpeechRecognizeProgressResult(text) {
|
|
1037
|
+
if (!this.messagePopup) {
|
|
1038
|
+
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
1039
|
+
}
|
|
1040
|
+
this.j.workplace.appendChild(this.messagePopup);
|
|
1041
|
+
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
1042
|
+
this.__hidePopupTimeout = this.j.async.setTimeout(()=>{
|
|
1043
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.messagePopup);
|
|
1044
|
+
}, 1000);
|
|
1045
|
+
this.messagePopup.innerText = text + '|';
|
|
1046
|
+
}
|
|
1047
|
+
onSpeechRecognizeResult(text) {
|
|
1048
|
+
this.j.async.clearTimeout(this.__hidePopupTimeout);
|
|
1049
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.safeRemove(this.messagePopup);
|
|
1050
|
+
const { j } = this;
|
|
1051
|
+
const { s } = j;
|
|
1052
|
+
if (!this._checkCommand(text)) {
|
|
1053
|
+
const { range } = s, node = s.current();
|
|
1054
|
+
if (s.isCollapsed() && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isText(node) && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isOrContains(j.editor, node) && node.nodeValue) {
|
|
1055
|
+
const sentence = node.nodeValue;
|
|
1056
|
+
node.nodeValue = sentence + (/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') + text;
|
|
1057
|
+
range.setStartAfter(node);
|
|
1058
|
+
s.selectRange(range);
|
|
1059
|
+
j.synchronizeValues();
|
|
1060
|
+
} else {
|
|
1061
|
+
s.insertHTML(text);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
}
|
|
1065
|
+
_checkCommand(command) {
|
|
1066
|
+
command = command.toLowerCase().replace(/\./g, '');
|
|
1067
|
+
if (this._commandToWord[command]) {
|
|
1068
|
+
(0,_helpers_exec_spell_command__WEBPACK_IMPORTED_MODULE_9__.execSpellCommand)(this.j, this._commandToWord[command]);
|
|
1069
|
+
return true;
|
|
1070
|
+
}
|
|
1071
|
+
return false;
|
|
1072
|
+
}
|
|
1073
|
+
constructor(...args){
|
|
1074
|
+
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "buttons", [
|
|
1075
|
+
{
|
|
1076
|
+
group: 'state',
|
|
1077
|
+
name: 'speechRecognize'
|
|
1078
|
+
}
|
|
1079
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "messagePopup", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__hidePopupTimeout", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "_commandToWord", {});
|
|
1080
|
+
}
|
|
1081
|
+
}
|
|
1082
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
1083
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_2__.watch)(':speechRecognizeProgressResult')
|
|
1084
|
+
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
1085
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
1086
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_2__.watch)(':speechRecognizeResult')
|
|
1087
|
+
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
1088
|
+
_jodit__WEBPACK_IMPORTED_MODULE_8__.Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
1089
|
+
|
|
1090
|
+
|
|
1091
|
+
/***/ }),
|
|
1092
|
+
|
|
1093
|
+
/***/ 22227:
|
|
1094
|
+
/***/ (function(module) {
|
|
1095
|
+
|
|
1096
|
+
module.exports = "<svg viewBox=\"0 0 16 16\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <path d=\"M8,11c1.657,0,3-1.343,3-3V3c0-1.657-1.343-3-3-3S5,1.343,5,3v5C5,9.657,6.343,11,8,11z\"/> <path d=\"M13,8V6h-1l0,1.844c0,1.92-1.282,3.688-3.164,4.071C6.266,12.438,4,10.479,4,8V6H3v2c0,2.414,1.721,4.434,4,4.899V15H5v1h6 v-1H9v-2.101C11.279,12.434,13,10.414,13,8z\"/> </svg>"
|
|
1097
|
+
|
|
1098
1098
|
/***/ })
|
|
1099
1099
|
|
|
1100
1100
|
},
|