Remove mathtype plugin
@ -1,9 +0,0 @@
|
||||
This plugin uses code from the following 3rd party projects.
|
||||
|
||||
|
||||
1. MathType is a software application created by Design Science that allows the creation of mathematical notation for inclusion in desktop and web applications. (https://www.wiris.com/en/mathtype/)
|
||||
|
||||
2. jQuery - Query is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. (http://jquery.com/)
|
||||
|
||||
License: MIT License
|
||||
License File: jQuery.license
|
||||
@ -1,5 +0,0 @@
|
||||
# Change Log
|
||||
|
||||
## 1.0.0
|
||||
|
||||
* Initial release.
|
||||
@ -1,20 +0,0 @@
|
||||
## Overview
|
||||
|
||||
[MathType](https://www.wiris.com/en/mathtype/) is a software application created by Design Science that allows the creation of mathematical notation for inclusion in desktop and web applications.
|
||||
|
||||
## How to use
|
||||
|
||||
1. Go to the Plugins tab and click on MathType (or ChemType on second plugin variation).
|
||||
|
||||
2. Write your formula.
|
||||
|
||||
3. Click insert button to paste formula in document.
|
||||
|
||||
4. You can edit the added formulas by double clicking on the picture with it.
|
||||
|
||||
## How to install
|
||||
|
||||
Detailed instructions can be found in [ONLYOFFICE API documentation](https://api.onlyoffice.com/plugin/installation).
|
||||
|
||||
## Known issues
|
||||
Plugin doesn't support desktop editors
|
||||
@ -1,201 +0,0 @@
|
||||
{
|
||||
"name": "MathType",
|
||||
"nameLocale": {
|
||||
"ru": "MathType",
|
||||
"fr": "MathType",
|
||||
"es": "MathType",
|
||||
"de": "MathType",
|
||||
"zh-ZH": "MathType"
|
||||
},
|
||||
"guid": "asc.{0a280898-66a0-4368-aaca-8cc1443d4c84}",
|
||||
"version": "1.0.0",
|
||||
|
||||
"variations": [
|
||||
{
|
||||
"description": "MathType",
|
||||
"descriptionLocale": {
|
||||
"ru": "MathType",
|
||||
"fr": "MathType",
|
||||
"es": "MathType",
|
||||
"de": "MathType",
|
||||
"zh-ZH": "MathType"
|
||||
},
|
||||
"url": "index.html",
|
||||
|
||||
"icons": [ "resources/img/icon.png", "resources/img/icon@2x.png" ],
|
||||
"icons2": [
|
||||
{
|
||||
"100%": { "normal": "resources/img/icon.png" },
|
||||
"125%": { "normal": "resources/img/icon@1.25x.png" },
|
||||
"150%": { "normal": "resources/img/icon@1.5x.png" },
|
||||
"175%": { "normal": "resources/img/icon@1.75x.png" },
|
||||
"200%": { "normal": "resources/img/icon@2x.png" }
|
||||
}
|
||||
],
|
||||
"isViewer": false,
|
||||
"EditorsSupport": [ "word", "slide", "cell" ],
|
||||
|
||||
"type": "window",
|
||||
"initDataType": "ole",
|
||||
"initData": "",
|
||||
|
||||
"isUpdateOleOnResize": false,
|
||||
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Insert",
|
||||
"primary": true,
|
||||
"textLocale": {
|
||||
"ca": "Insereix",
|
||||
"zh": "插入",
|
||||
"cs": "Vložit",
|
||||
"da": "Indsæt",
|
||||
"nl": "Invoegen",
|
||||
"fi": "Lisää",
|
||||
"el": "Εισάγετε",
|
||||
"hu": "Beszúrás",
|
||||
"id": "Memasukkan",
|
||||
"it": "Inserire",
|
||||
"ja": "入れる",
|
||||
"ko": "끼워 넣다",
|
||||
"nb": "Sett inn",
|
||||
"pl": "Wstawić",
|
||||
"pt": "Inserir",
|
||||
"ro": "Introduce",
|
||||
"sv": "Föra in",
|
||||
"tr": "Sokmak",
|
||||
"ru": "Вставить",
|
||||
"fr": "Insérer",
|
||||
"es": "Insertar",
|
||||
"de": "Einfügen",
|
||||
"zh-ZH": "插入"
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Cancel",
|
||||
"primary": false,
|
||||
"isViewer": false,
|
||||
"textLocale": {
|
||||
"ca": "Cancel · lar",
|
||||
"zh": "取消",
|
||||
"cs": "Zrušení",
|
||||
"da": "Afbestille",
|
||||
"nl": "Annuleren",
|
||||
"fi": "Peruuttaa",
|
||||
"el": "Ματαίωση",
|
||||
"hu": "Megszünteti",
|
||||
"id": "Membatalkan",
|
||||
"it": "Annulla",
|
||||
"ja": "キャンセル",
|
||||
"ko": "취소",
|
||||
"nb": "Annuleren",
|
||||
"pl": "Anulować",
|
||||
"pt": "Cancelar",
|
||||
"ro": "Anulare",
|
||||
"sv": "Avbryt",
|
||||
"tr": "İptal",
|
||||
"ru": "Отмена",
|
||||
"fr": "Annuler",
|
||||
"es": "Cancelar",
|
||||
"de": "Abbrechen",
|
||||
"zh-ZH": "取消"
|
||||
}
|
||||
}
|
||||
],
|
||||
"size": [600, 310],
|
||||
"store": {
|
||||
"background": {
|
||||
"light" : "#F5F5F5",
|
||||
"dark" : "#444444"
|
||||
},
|
||||
"screenshots" : ["resources/store/screenshots/screen_1.png"],
|
||||
"icons" : {
|
||||
"light" : "resources/store/icons",
|
||||
"dark" : "resources/store/icons"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "Start ChemType",
|
||||
"descriptionLocale": {
|
||||
"ru": "Запустить ChemType",
|
||||
"fr": "Démarrer ChemType",
|
||||
"es": "Démarrer ChemType",
|
||||
"de": "Beginnen ChemType",
|
||||
"zh-ZH": "启动 ChemType"
|
||||
},
|
||||
"url": "index.html?type=chemistry",
|
||||
"isViewer": false,
|
||||
"EditorsSupport": [ "word", "slide", "cell" ],
|
||||
|
||||
"type": "window",
|
||||
"initDataType": "ole",
|
||||
"initData": "",
|
||||
|
||||
"isUpdateOleOnResize": false,
|
||||
|
||||
"buttons": [
|
||||
{
|
||||
"text": "Insert",
|
||||
"primary": true,
|
||||
"textLocale": {
|
||||
"ca": "Insereix",
|
||||
"zh": "插入",
|
||||
"cs": "Vložit",
|
||||
"da": "Indsæt",
|
||||
"nl": "Invoegen",
|
||||
"fi": "Lisää",
|
||||
"el": "Εισάγετε",
|
||||
"hu": "Beszúrás",
|
||||
"id": "Memasukkan",
|
||||
"it": "Inserire",
|
||||
"ja": "入れる",
|
||||
"ko": "끼워 넣다",
|
||||
"nb": "Sett inn",
|
||||
"pl": "Wstawić",
|
||||
"pt": "Inserir",
|
||||
"ro": "Introduce",
|
||||
"sv": "Föra in",
|
||||
"tr": "Sokmak",
|
||||
"ru": "Вставить",
|
||||
"fr": "Insérer",
|
||||
"es": "Insertar",
|
||||
"de": "Einfügen",
|
||||
"zh-ZH": "插入"
|
||||
}
|
||||
},
|
||||
{
|
||||
"text": "Cancel",
|
||||
"primary": false,
|
||||
"isViewer": false,
|
||||
"textLocale": {
|
||||
"ca": "Cancel · lar",
|
||||
"zh": "取消",
|
||||
"cs": "Zrušení",
|
||||
"da": "Afbestille",
|
||||
"nl": "Annuleren",
|
||||
"fi": "Peruuttaa",
|
||||
"el": "Ματαίωση",
|
||||
"hu": "Megszünteti",
|
||||
"id": "Membatalkan",
|
||||
"it": "Annulla",
|
||||
"ja": "キャンセル",
|
||||
"ko": "취소",
|
||||
"nb": "Annuleren",
|
||||
"pl": "Anulować",
|
||||
"pt": "Cancelar",
|
||||
"ro": "Anulare",
|
||||
"sv": "Avbryt",
|
||||
"tr": "İptal",
|
||||
"ru": "Отмена",
|
||||
"fr": "Annuler",
|
||||
"es": "Cancelar",
|
||||
"de": "Abbrechen",
|
||||
"zh-ZH": "取消"
|
||||
}
|
||||
}
|
||||
],
|
||||
"size": [600, 310]
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,54 +0,0 @@
|
||||
<!--
|
||||
(c) Copyright Ascensio System SIA 2020
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js"></script>
|
||||
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js"></script>
|
||||
<script src="vendor/jquery-v2.2.2-min.js"></script>
|
||||
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
|
||||
<script type="text/javascript">
|
||||
if(/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
document.write("<script type='text\/javascript' src='scripts\/mathtype_ie.js'><\/script>");
|
||||
}
|
||||
else {
|
||||
document.write("<script type='text\/javascript' src='vendor\/mathtype\/wirisplugin-generic.js'><\/script>");
|
||||
document.write("<script type='text\/javascript' src='scripts\/mathtype.js'><\/script>");
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
html, body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wrs_modal_buttons_container, .wrs_bottom_right_resizer, .wrs_bottom_left_resizer, .wrs_modal_minimize_button, .wrs_modal_maximize_button, .wrs_modal_close_button, .wrs_modal_title, .wrs_tickContainer {
|
||||
display: none;
|
||||
}
|
||||
.wrs_modal_dialogContainer {
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="toolbar"></div>
|
||||
<div id="htmlEditor" contenteditable="true"></div>
|
||||
</body>
|
||||
</html>
|
||||
@ -1,20 +0,0 @@
|
||||
Copyright (c) 2009 John Resig, http://jquery.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
Before Width: | Height: | Size: 361 B |
|
Before Width: | Height: | Size: 439 B |
|
Before Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 554 B |
|
Before Width: | Height: | Size: 587 B |
|
Before Width: | Height: | Size: 966 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 77 KiB |
@ -1,210 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* (c) Copyright Ascensio System SIA 2020
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
(function(window, undefined) {
|
||||
const langs_map = {
|
||||
"ca-CA": "ca",
|
||||
"zh-ZH": "zh",
|
||||
"cs-CS": "cs",
|
||||
"da-DA": "da",
|
||||
"nl-NL": "nl",
|
||||
"en-EN": "en",
|
||||
"fi-FI": "fi",
|
||||
"fr-FR": "fr",
|
||||
"de-DE": "de",
|
||||
"el-EL": "el",
|
||||
"hu-HU": "hu",
|
||||
"id-ID": "id",
|
||||
"it-IT": "it",
|
||||
"ja-JA": "ja",
|
||||
"ko-KO": "ko",
|
||||
"nb-NB": "nb",
|
||||
"pl-PL": "pl",
|
||||
"pt-PT": "pt",
|
||||
"pt-BR": "pt_br",
|
||||
"ro-RO": "ro",
|
||||
"ru-RU": "ru",
|
||||
"es-ES": "es",
|
||||
"sv-SV": "sv",
|
||||
"tr-TR": "tr"
|
||||
};
|
||||
|
||||
let genericIntegrationInstance;
|
||||
let mathML = null;
|
||||
let oEditor;
|
||||
let wsTelemetry = {
|
||||
toolbar : 'general',
|
||||
trigger : 'button',
|
||||
startTime : 0,
|
||||
curMathML : '',
|
||||
bChemisty : window.location.href.search("type=chemistry") !== -1
|
||||
};
|
||||
|
||||
window.Asc.plugin.init = function(data) {
|
||||
if (data) {
|
||||
try {
|
||||
data = JSON.parse(data);
|
||||
mathML = data.mathML;
|
||||
wsTelemetry.bChemisty = data.bChemisty;
|
||||
wsTelemetry.trigger = 'formula';
|
||||
} catch (error) {
|
||||
// error in json
|
||||
}
|
||||
}
|
||||
|
||||
let onLoadFunc = function() {
|
||||
if (mathML)
|
||||
genericIntegrationInstance.core.contentManager.setMathML(mathML);
|
||||
|
||||
genericIntegrationInstance.telemeter.wrsOpenedEditorModal(wsTelemetry.toolbar, wsTelemetry.trigger);
|
||||
oEditor = genericIntegrationInstance.core.contentManager.editor;
|
||||
wsTelemetry.startTime = Date.now();
|
||||
};
|
||||
|
||||
let genericIntegrationProperties = {};
|
||||
genericIntegrationProperties.target = document.getElementById('htmlEditor');
|
||||
genericIntegrationProperties.toolbar = document.getElementById('toolbar');
|
||||
|
||||
genericIntegrationInstance = new WirisPlugin.GenericIntegration(genericIntegrationProperties);
|
||||
|
||||
// setting language
|
||||
if (langs_map[window.Asc.plugin.info.lang] != undefined)
|
||||
genericIntegrationInstance.editorParameters = { language: langs_map[window.Asc.plugin.info.lang] };
|
||||
|
||||
genericIntegrationInstance.init();
|
||||
genericIntegrationInstance.listeners.fire('onTargetReady', {});
|
||||
WirisPlugin.currentInstance = this.wiris_generic;
|
||||
|
||||
if (wsTelemetry.bChemisty) {
|
||||
const A = genericIntegrationInstance.getCore().getCustomEditors();
|
||||
A.enable("chemistry"),
|
||||
genericIntegrationInstance.openNewFormulaEditor();
|
||||
wsTelemetry.toolbar = 'chemistry';
|
||||
} else {
|
||||
genericIntegrationInstance.core.getCustomEditors().disable();
|
||||
genericIntegrationInstance.openNewFormulaEditor();
|
||||
}
|
||||
|
||||
genericIntegrationInstance.core.contentManager.listeners.add({eventName: "onLoad", callback: onLoadFunc});
|
||||
WirisPlugin.Configuration.properties.saveMode = "base64";
|
||||
window.Asc.plugin.resizeWindow(600, 310, 600, 395, 0, 0);
|
||||
};
|
||||
|
||||
function add_to_document(sMethod, oParams) {
|
||||
let endTime = Date.now() - wsTelemetry.startTime;
|
||||
genericIntegrationInstance.telemeter.wrsInsertedFormula(mathML, wsTelemetry.curMathML, endTime, wsTelemetry.toolbar);
|
||||
window.Asc.plugin.executeMethod("GetVersion", [], function(version) {
|
||||
let nMajorV = Number(version.split('.')[0]);
|
||||
let nMinorV = Number(version.split('.')[1]);
|
||||
if (sMethod === "AddOleObject") {
|
||||
if ((version === "develop" || (nMajorV >= 7 && nMinorV >= 2)) && window.Asc.plugin.info.editorType === "word") {
|
||||
oParams.height = oParams.height * 36000.0; // convert to EMU
|
||||
oParams.width = oParams.width * 36000.0; // convert to EMU
|
||||
window.Asc.scope.params = oParams;
|
||||
window.Asc.plugin.callCommand(function() {
|
||||
let oDocument = Api.GetDocument();
|
||||
if (!Api.CreateOleObject)
|
||||
return false;
|
||||
|
||||
let oOleObject = Api.CreateOleObject(Asc.scope.params.imgSrc, Asc.scope.params.width, Asc.scope.params.height, Asc.scope.params.data, Asc.scope.params.guid);
|
||||
let oPara = Api.CreateParagraph();
|
||||
let oRun = Api.CreateRun();
|
||||
oRun.SetPosition(Asc.scope.params.position);
|
||||
oRun.AddDrawing(oOleObject);
|
||||
oPara.Push(oRun);
|
||||
oDocument.InsertContent([oPara], true);
|
||||
}, null, null, function() { closeWithTelemetry('mtct_insert'); } );
|
||||
} else {
|
||||
window.Asc.plugin.executeMethod(sMethod, [oParams], function() { closeWithTelemetry('mtct_insert'); } );
|
||||
}
|
||||
} else { // EditOleObject
|
||||
window.Asc.plugin.executeMethod(sMethod, [oParams], function() { closeWithTelemetry('mtct_insert'); } );
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function paste_formula() {
|
||||
function createHTMLElementFromString(htmlString) {
|
||||
let div = document.createElement('div');
|
||||
div.innerHTML = htmlString.trim();
|
||||
return div.firstChild;
|
||||
};
|
||||
|
||||
wsTelemetry.curMathML = oEditor.getMathML()
|
||||
// don't paste empy data
|
||||
if (wsTelemetry.curMathML === '<math xmlns="http://www.w3.org/1998/Math/MathML"/>')
|
||||
return;
|
||||
|
||||
let oImg = createHTMLElementFromString(WirisPlugin.Parser.initParse(wsTelemetry.curMathML));
|
||||
oImg.onload = function() {
|
||||
let oInfo = window.Asc.plugin.info;
|
||||
let sMethod = (oInfo.objectId === undefined) ? "AddOleObject" : "EditOleObject";
|
||||
let nFormulaSourceHeight = oEditor.editorModel.formulaModel.getHeight();
|
||||
let nFormulaSourceWidth = oEditor.editorModel.formulaModel.getWidth();
|
||||
let nBaseLineFromTop = oEditor.editorModel.getFormulaBaseline();
|
||||
let nPositionMM = -((nFormulaSourceHeight - nBaseLineFromTop) / (oInfo.mmToPx))
|
||||
let nPosition = 2 * (nPositionMM / (25.4 / 72.0)) + (nPositionMM / (25.4 / 72.0)); // convert to hps
|
||||
this.width *= 5;
|
||||
this.height *= 5;
|
||||
let canvas = document.createElement("canvas");
|
||||
canvas.width = this.width;
|
||||
canvas.height = this.height;
|
||||
let oCtx = canvas.getContext('2d');
|
||||
oCtx.drawImage(this, 0, 0, canvas.width, canvas.height);
|
||||
let base64png = canvas.toDataURL();
|
||||
let data = JSON.stringify({
|
||||
mathML: wsTelemetry.curMathML,
|
||||
bChemisty: wsTelemetry.bChemisty
|
||||
});
|
||||
let oParams = {
|
||||
guid: oInfo.guid,
|
||||
position: nPosition,
|
||||
width: nFormulaSourceWidth / oInfo.mmToPx,
|
||||
height: nFormulaSourceHeight / oInfo.mmToPx,
|
||||
imgSrc: base64png,
|
||||
data: data,
|
||||
objectId: oInfo.objectId,
|
||||
resize: oInfo.resize
|
||||
};
|
||||
add_to_document(sMethod, oParams);
|
||||
};
|
||||
};
|
||||
|
||||
function closeWithTelemetry(trigger) {
|
||||
genericIntegrationInstance.telemeter.wrsClosedEditorModal(wsTelemetry.toolbar, trigger).finally(function(){
|
||||
window.Asc.plugin.executeCommand("close", "");
|
||||
});
|
||||
};
|
||||
|
||||
window.Asc.plugin.button = function(id) {
|
||||
if (id === 0) {
|
||||
paste_formula();
|
||||
}
|
||||
else {
|
||||
closeWithTelemetry('mtct_close');
|
||||
}
|
||||
};
|
||||
|
||||
window.Asc.plugin.onExternalMouseUp = function() {
|
||||
var evt = document.createEvent("MouseEvents");
|
||||
evt.initMouseEvent("mouseup", true, true, window, 1, 0, 0, 0, 0,
|
||||
false, false, false, false, 0, null);
|
||||
|
||||
document.dispatchEvent(evt);
|
||||
};
|
||||
|
||||
})(window, undefined);
|
||||
@ -1,52 +0,0 @@
|
||||
/**
|
||||
*
|
||||
* (c) Copyright Ascensio System SIA 2020
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*
|
||||
*/
|
||||
(function(window, undefined){
|
||||
|
||||
let message = 'This plugin is not supported by IE'
|
||||
window.oncontextmenu = function(e)
|
||||
{
|
||||
if (e.preventDefault)
|
||||
e.preventDefault();
|
||||
if (e.stopPropagation)
|
||||
e.stopPropagation();
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
window.Asc.plugin.init = function(){
|
||||
document.getElementById("toolbar").innerHTML = "<p id='message' style='text-align:center; font-size:20pt;'>" + message +"<\/p>";
|
||||
};
|
||||
|
||||
window.Asc.plugin.onThemeChanged = function(theme)
|
||||
{
|
||||
window.Asc.plugin.onThemeChangedBase(theme);
|
||||
};
|
||||
|
||||
window.Asc.plugin.button = function(id){
|
||||
this.executeCommand("close", "");
|
||||
};
|
||||
|
||||
|
||||
window.Asc.plugin.onTranslate = function(){
|
||||
var elem = document.getElementById("message");
|
||||
if (elem) {
|
||||
elem.innerHTML = message = window.Asc.plugin.tr(message);
|
||||
}
|
||||
};
|
||||
|
||||
})(window, undefined);
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "Tento plugin není podporován IE"
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "Dieses Plugin wird vom IE nicht unterstützt"
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "Este complemento no es compatible con IE"
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "Ce plugin n'est pas supporté par IE"
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "このプラグインはIEではサポートされていません"
|
||||
}
|
||||
@ -1,14 +0,0 @@
|
||||
[
|
||||
"cs-CS",
|
||||
"de-DE",
|
||||
"es-ES",
|
||||
"fr-FR",
|
||||
"ja-JA",
|
||||
"ru-RU",
|
||||
"zh-ZH",
|
||||
"sq-AL",
|
||||
"zh-CN",
|
||||
"pt-BR",
|
||||
"sr-Cyrl-RS",
|
||||
"sr-Latn-RS"
|
||||
]
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "Этот плагин не поддерживается IE"
|
||||
}
|
||||
@ -1,70 +0,0 @@
|
||||
{
|
||||
"For using ChatGPT you should get an API key.": "Për të përdorur ChatGPT, duhet të merrni një çelës API.",
|
||||
"Create API keys and copy in this field.": "Krijoni çelësa API dhe kopjoni në këtë fushë",
|
||||
"Go to": "Shkoni në",
|
||||
"Loading...": "Duke u ngarkuar...",
|
||||
"Api key saved successfully.": "Çelësi API është ruajtur me sukses.",
|
||||
"Save": "Ruani",
|
||||
"Text analysis": "Analiza e tekstit",
|
||||
"Summarize": "Përmbledhjei",
|
||||
"Keywords": "Fjalët kyçe",
|
||||
"Word analysis": "Analiza e fjalës",
|
||||
"Explain text in comment": "Shpjegoni tekstin në koment",
|
||||
"Explain text in hyperlink": "Shpjegoni tekstin në hiperlidhjen",
|
||||
"Translate": "Përktheni",
|
||||
"Translate to French": "Përktheni në frengjisht",
|
||||
"Translate to English": "Përktheni në anglisht",
|
||||
"Translate to German": "Përktheni në gjermanisht",
|
||||
"Translate to Chinese": "Përktheni në kinezisht",
|
||||
"Translate to Japanese": "Përktheni në japonisht",
|
||||
"Translate to Russian": "Përktheni në rusisht",
|
||||
"Translate to Korean": "Përktheni në koreanisht",
|
||||
"Translate to Spanish": "Përktheni në spanjisht",
|
||||
"Translate to Italian": "Përktheni në italisht",
|
||||
"Generate image from text": "Gjenero imazh nga teksti",
|
||||
"Settings": "Cilësime",
|
||||
"Maximum 8000 tokens are available.": "Maksimumi i 8000 tokenëve është në dispozicion.",
|
||||
"For work with this model we should save chat history and sent it into a request.": "Për të punuar me këtë model, duhet të ruani historinë e bisedës dhe ta dërgoni atë në një kërkesë.",
|
||||
"But we have a limit on the number of tokens in the request.": "Për kemi një kufi për numrin e tokenëve në kërkesë.",
|
||||
"That's why sometimes you should clear your chat history.": "Për këtë arsye, ndonjëherë duhet të pastroni historinë tuaj të bisedës.",
|
||||
"Clear history": "Pastroni historinë",
|
||||
"Tokens in the request about: ": "Tokenët në kërkesë janë afërsisht: ",
|
||||
"Total tokens are used in last request: ": "Tokenët totalë që janë përdorur në kërkesën e fundit: ",
|
||||
"Chat": "Bisedë",
|
||||
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code.": "Modeli që do të gjenerojë përfundimin. Disa modele janë të përshtatshme për detyra të gjuhës natyrore, të tjera specializohen në kod.",
|
||||
"Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the node will become deterministic and repetitive.": "Kotrollon rastësinë: ulja e temperaturës rezulton në përfundime më pak rastësore. Ndërsa temperatura afron zero, modeli bëhet i parashikueshëm dhe i përsëritur.",
|
||||
"The maximum number of tokens to generate in the completion.": "Numri maksimal i tokenëve për të gjeneruar në përfundim.",
|
||||
"Up to four sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.": "Derisa të katëer sekuencat të ndalojnë gjenerimin e më shumë tokenëve. Teksti i kthyer nuk do të përmbajë sekuencën e ndalimit.",
|
||||
"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.": "Një alternativë për mostrimin me temperaturë, quhet mostërzimi i grumbullimit, ku modeli merr parasysh rezultatet e tokenëve me masën e probabilitetit top_p.",
|
||||
"Submit": "Dërgoni",
|
||||
"Clear": "Pastroni",
|
||||
"Model": "Modeli",
|
||||
"Maximum length": "Gjatësia maksimale",
|
||||
"Temperature": "Temperatura",
|
||||
"Stop sequences": "Sekuenca e ndalimit",
|
||||
"This plugin doesn't work in Internet Explorer.": "Kjo shtojcë nuk funksionon në Eksploruesin e Internetit.",
|
||||
"Tokens: ": "Tokenët: ",
|
||||
"Learn More": "Mësoni më shumë",
|
||||
"Show advanced settings": "Shfaqni cilësimet e avancuara",
|
||||
"Up to": "Derisa",
|
||||
"tokens in response.": "tokenë në përgjigje.",
|
||||
"Maximum ": "Maksimumi ",
|
||||
"tokens are available.": "tokenët janë në dispozicion.",
|
||||
"Because you are using: ": "Për shkak se ju po përdorni: ",
|
||||
"tokens in your request.": "tokenë në kërkesën tuaj.",
|
||||
"Custom request": "Kërkesë e personalizuar",
|
||||
"You exceeded your current quota, please check your plan and billing details.": "Ju keni tejkaluar kuotën tuaj aktuale, ju lutem kontrolloni planin dhe detajet e faturimit.",
|
||||
"Too many tokens in your request.": "Shume tokenë në kërkesën tuaj.",
|
||||
"Error:": "Gabim.",
|
||||
"Generate image variation": "Gjeneroni variacion imazhi",
|
||||
"Thesaurus": "Enciklopedi",
|
||||
"Show hyperlink content": "Shfaqni përmbajtjen e hiperlidhjes",
|
||||
"Warning": "Paralajmërim",
|
||||
"This plugin is not supported by IE": "Kjo shtojcë nuk mbështetet nga IE",
|
||||
"Fix spelling & grammar": "Rregulloni gabimet e shkrimit dhe gramatikës",
|
||||
"Rewrite differently": "Rishkruani ndryshe",
|
||||
"Make longer": "Bëjeni më të gjatë",
|
||||
"Make shorter": "Bëjeni më të shkurtër",
|
||||
"Make simpler": "Bëjeni më të thjeshtë",
|
||||
"Invalid Api key or this service doesn't work in your region.": "Çelësi API është i pavlefshëm ose ky shërbim nuk funksionon në rajonin tuaj."
|
||||
}
|
||||
@ -1,70 +0,0 @@
|
||||
{
|
||||
"For using ChatGPT you should get an API key." : "За коришћење ChatGPT-а требате добити API кључ.",
|
||||
"Create API keys and copy in this field." : "Креирајте API кључеве и копирајте у ово поље.",
|
||||
"Go to" : "Иди на",
|
||||
"Loading..." : "Учитавање...",
|
||||
"Api key saved successfully." : "Api кључ сачуван успешно.",
|
||||
"Save" : "Сачувај",
|
||||
"Text analysis": "Анализа текста",
|
||||
"Summarize": "Сажети",
|
||||
"Keywords": "Кључне речи",
|
||||
"Word analysis": "Анализа речи",
|
||||
"Explain text in comment": "Објасни текст у коментару",
|
||||
"Explain text in hyperlink": "Објасни текст у хиперлинку",
|
||||
"Translate": "Преведи",
|
||||
"Translate to English" : "Преведи на енглески",
|
||||
"Translate to French" : "Преведи на француски",
|
||||
"Translate to German" : "Преведи на немачки",
|
||||
"Translate to Chinese" : "Преведи на кинески",
|
||||
"Translate to Japanese" : "Преведи на јапански",
|
||||
"Translate to Russian" : "Преведи на руски",
|
||||
"Translate to Korean" : "Преведи на корејски",
|
||||
"Translate to Spanish" : "Преведи на шпански",
|
||||
"Translate to Italian" : "Преведи на италијански",
|
||||
"Generate image from text": "Генериши слике из текста",
|
||||
"Settings": "Подешавања",
|
||||
"Maximum 8000 tokens are available." : "Максимум 8000 токена је доступно.",
|
||||
"For work with this model we should save chat history and sent it into a request." : "За рад са овим моделом требало би сачувати историју разговора и послати је у захтев.",
|
||||
"But we have a limit on the number of tokens in the request." : "Али имамо ограничење на број токена у захтеву.",
|
||||
"That's why sometimes you should clear your chat history." : "Зато понекад треба очистити историју разговора.",
|
||||
"Clear history" : "Очисти историју",
|
||||
"Tokens in the request about: " : "Токени у захтеву о: ",
|
||||
"Total tokens are used in last request: " : "Укупно токена коришћено у последњем захтеву: ",
|
||||
"Chat" : "Чет",
|
||||
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code." : "Модел који ће генерисати комплетирање. Неки модели су погодни за задатке природног језика, док се други специјализују за код.",
|
||||
"Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the node will become deterministic and repetitive." : "Контролише насумичност: Смањење резултира мање насумичним комплетирањима. Како температура приступа нули, чвор ће постати детерминистичан и понављајући.",
|
||||
"The maximum number of tokens to generate in the completion." : "Максималан број токена за генерисање у комплетирању.",
|
||||
"Up to four sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence." : "До четири секвенце где ће API престати са генерисањем даљих токена. Враћени текст неће садржати стоп секвенцу.",
|
||||
"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.": "Алтернатива узорковању са температуром, названа нуклеусно узорковање, где модел разматра резултате токена са top_p вероватноћом масе.",
|
||||
"Submit" : "Поднеси",
|
||||
"Clear" : "Очисти",
|
||||
"Model" : "Модел",
|
||||
"Maximum length" : "Максимална дужина",
|
||||
"Temperature" : "Температура",
|
||||
"Stop sequences" : "Стоп секвенце",
|
||||
"This plugin doesn't work in Internet Explorer." : "Овај додатак не ради у Internet Explorer-у.",
|
||||
"Tokens: " : "Токени: ",
|
||||
"Learn More" : "Сазнај више",
|
||||
"Show advanced settings" : "Прикажи напредна подешавања",
|
||||
"Up to" : "До",
|
||||
"tokens in response." : "токени у одговору.",
|
||||
"Maximum " : "Максимум ",
|
||||
"tokens are available." : "токени су доступни.",
|
||||
"Because you are using: " : "Зато што користите: ",
|
||||
"tokens in your request." : "токени у вашем захтеву.",
|
||||
"Custom request": "Прилагођени захтев",
|
||||
"You exceeded your current quota, please check your plan and billing details." : "Премашили сте тренутну квоту, молимо проверите ваш план и детаље наплате.",
|
||||
"Too many tokens in your request.": "Превише токена у вашем захтеву.",
|
||||
"Error:" : "Грешка:",
|
||||
"Generate image variation" : "Генериши варијацију слике",
|
||||
"Thesaurus" : "Синоними",
|
||||
"Show hyperlink content" : "Прикажи садржај хиперлинка",
|
||||
"Warning" : "Упозорење",
|
||||
"This plugin is not supported by IE": "Овај додатак није подржан у IE",
|
||||
"Fix spelling & grammar": "Поправи правопис и граматику",
|
||||
"Rewrite differently": "Преформулиши на другачији начин",
|
||||
"Make longer": "Направи дуже",
|
||||
"Make shorter": "Направи краће",
|
||||
"Make simpler": "Направи једноставније",
|
||||
"Invalid Api key or this service doesn't work in your region." : "Неважећи Api кључ или овај сервис не ради у вашем региону."
|
||||
}
|
||||
@ -1,70 +0,0 @@
|
||||
{
|
||||
"For using ChatGPT you should get an API key." : "Za korišćenje ChatGPT-a trebate dobiti API ključ.",
|
||||
"Create API keys and copy in this field." : "Kreirajte API ključeve i kopirajte u ovo polje.",
|
||||
"Go to" : "Idi na",
|
||||
"Loading..." : "Učitavanje...",
|
||||
"Api key saved successfully." : "Api ključ sačuvan uspešno.",
|
||||
"Save" : "Sačuvaj",
|
||||
"Text analysis": "Analiza teksta",
|
||||
"Summarize": "Sažeti",
|
||||
"Keywords": "Ključne reči",
|
||||
"Word analysis": "Analiza reči",
|
||||
"Explain text in comment": "Objasni tekst u komentaru",
|
||||
"Explain text in hyperlink": "Objasni tekst u hiperlinku",
|
||||
"Translate": "Prevedi",
|
||||
"Translate to English" : "Prevedi na engleski",
|
||||
"Translate to French" : "Prevedi na francuski",
|
||||
"Translate to German" : "Prevedi na nemački",
|
||||
"Translate to Chinese" : "Prevedi na kineski",
|
||||
"Translate to Japanese" : "Prevedi na japanski",
|
||||
"Translate to Russian" : "Prevedi na ruski",
|
||||
"Translate to Korean" : "Prevedi na korejski",
|
||||
"Translate to Spanish" : "Prevedi na španski",
|
||||
"Translate to Italian" : "Prevedi na italijanski",
|
||||
"Generate image from text": "Generiši slike iz teksta",
|
||||
"Settings": "Podešavanja",
|
||||
"Maximum 8000 tokens are available." : "Maksimum 8000 tokena je dostupno.",
|
||||
"For work with this model we should save chat history and sent it into a request." : "Za rad sa ovim modelom trebalo bi sačuvati istoriju razgovora i poslati je u zahtev.",
|
||||
"But we have a limit on the number of tokens in the request." : "Ali imamo ograničenje na broj tokena u zahtevu.",
|
||||
"That's why sometimes you should clear your chat history." : "Zato ponekad treba očistiti istoriju razgovora.",
|
||||
"Clear history" : "Očisti istoriju",
|
||||
"Tokens in the request about: " : "Tokeni u zahtevu o: ",
|
||||
"Total tokens are used in last request: " : "Ukupno tokena korišćeno u poslednjem zahtevu: ",
|
||||
"Chat" : "Čet",
|
||||
"The model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code." : "Model koji će generisati kompletiranje. Neki modeli su pogodni za zadatke prirodnog jezika, dok se drugi specijalizuju za kod.",
|
||||
"Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the node will become deterministic and repetitive." : "Kontroliše nasumičnost: Smanjenje rezultira manje nasumičnim kompletiranjima. Kako temperatura pristupa nuli, čvor će postati determinističan i ponavljajući.",
|
||||
"The maximum number of tokens to generate in the completion." : "Maksimalan broj tokena za generisanje u kompletiranju.",
|
||||
"Up to four sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence." : "Do četiri sekvence gde će API prestati sa generisanjem daljih tokena. Vraćeni tekst neće sadržati stop sekvencu.",
|
||||
"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.": "Alternativa uzorkovanju sa temperaturom, nazvana nukleusno uzorkovanje, gde model razmatra rezultate tokena sa top_p verovatnoćom mase.",
|
||||
"Submit" : "Podnesi",
|
||||
"Clear" : "Očisti",
|
||||
"Model" : "Model",
|
||||
"Maximum length" : "Maksimalna dužina",
|
||||
"Temperature" : "Temperatura",
|
||||
"Stop sequences" : "Stop sekvence",
|
||||
"This plugin doesn't work in Internet Explorer." : "Ovaj dodatak ne radi u Internet Explorer-u.",
|
||||
"Tokens: " : "Tokeni: ",
|
||||
"Learn More" : "Saznaj više",
|
||||
"Show advanced settings" : "Prikaži napredna podešavanja",
|
||||
"Up to" : "Do",
|
||||
"tokens in response." : "tokeni u odgovoru.",
|
||||
"Maximum " : "Maksimum ",
|
||||
"tokens are available." : "tokeni su dostupni.",
|
||||
"Because you are using: " : "Zato što koristite: ",
|
||||
"tokens in your request." : "tokeni u vašem zahtevu.",
|
||||
"Custom request": "Prilagođeni zahtev.",
|
||||
"You exceeded your current quota, please check your plan and billing details." : "Premašili ste trenutnu kvotu, molimo proverite vaš plan i detalje naplate.",
|
||||
"Too many tokens in your request.": "Previše tokena u vašem zahtevu.",
|
||||
"Error:" : "Greška:",
|
||||
"Generate image variation" : "Generiši varijaciju slike",
|
||||
"Thesaurus" : "Sinonimi",
|
||||
"Zobrazit obsah hypertextových odkazů" : "Prikaži sadržaj hiperlinka",
|
||||
"Warning" : "Upozorenje",
|
||||
"This plugin is not supported by IE": "Ovaj dodatak nije podržan u IE",
|
||||
"Fix spelling & grammar": "Popravi pravopis i gramatiku",
|
||||
"Rewrite differently": "Preformuliši na drugačiji način",
|
||||
"Make longer": "Napravi duže",
|
||||
"Make shorter": "Napravi kraće",
|
||||
"Make simpler": "Napravi jednostavnije",
|
||||
"Invalid Api key or this service doesn't work in your region." : "Nevažeći Api ključ ili ovaj servis ne radi u vašem regionu."
|
||||
}
|
||||
@ -1,3 +0,0 @@
|
||||
{
|
||||
"This plugin is not supported by IE": "IE不支持此插件"
|
||||
}
|
||||
@ -35,6 +35,5 @@
|
||||
{ "name": "onlydraw", "discussion": "" },
|
||||
{ "name": "pomodoro", "discussion": "" },
|
||||
{ "name": "videoembedder", "discussion": "" },
|
||||
{ "name": "mathtype", "discussion": "" },
|
||||
{ "name": "mathpix", "discussion": "" }
|
||||
]
|
||||
|
||||