diff --git a/www/common/onlyoffice/v5/fonts/Asana-Math.otf b/www/common/onlyoffice/v5/fonts/Asana-Math.otf deleted file mode 100644 index c79231015..000000000 Binary files a/www/common/onlyoffice/v5/fonts/Asana-Math.otf and /dev/null differ diff --git a/www/common/onlyoffice/v5/fonts/AsanaMath.ttf b/www/common/onlyoffice/v5/fonts/AsanaMath.ttf new file mode 100644 index 000000000..cd72632fb Binary files /dev/null and b/www/common/onlyoffice/v5/fonts/AsanaMath.ttf differ diff --git a/www/common/onlyoffice/v5/fonts/NotoSansLao-Regular.ttf b/www/common/onlyoffice/v5/fonts/NotoSansLao-Regular.ttf new file mode 100644 index 000000000..cec180b1a Binary files /dev/null and b/www/common/onlyoffice/v5/fonts/NotoSansLao-Regular.ttf differ diff --git a/www/common/onlyoffice/v5/sdkjs/cell/sdk-all-min.js b/www/common/onlyoffice/v5/sdkjs/cell/sdk-all-min.js index e1b3f49c3..46eb40705 100644 --- a/www/common/onlyoffice/v5/sdkjs/cell/sdk-all-min.js +++ b/www/common/onlyoffice/v5/sdkjs/cell/sdk-all-min.js @@ -1,5 +1,5 @@ /* - * Copyright (C) Ascensio System SIA 2012-2021. All rights reserved + * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved * * https://www.onlyoffice.com/ * @@ -2363,6 +2363,6 @@ prot.asc_beforeInsertSlicer;prot["asc_insertSlicer"]=prot.asc_insertSlicer;prot[ function CSpellchecker(settings){this.api=settings.api;this.useWasm=false;var webAsmObj=window["WebAssembly"];if(typeof webAsmObj==="object")if(typeof webAsmObj["Memory"]==="function")if(typeof webAsmObj["instantiateStreaming"]==="function"||typeof webAsmObj["instantiate"]==="function")this.useWasm=true;this.enginePath="./spell/";if(settings&&settings.enginePath){this.enginePath=settings.enginePath;if(this.enginePath.substring(this.enginePath.length-1)!="/")this.enginePath+="/"}var dictionariesPath= "./../dictionaries";if(settings&&settings.dictionariesPath){dictionariesPath=settings.dictionariesPath;if(dictionariesPath.substring(dictionariesPath.length-1)=="/")dictionariesPath=dictionariesPath.substr(0,dictionariesPath.length-1)}this.isUseSharedWorker=!!window.SharedWorker;if(this.isUseSharedWorker&&false===settings.useShared)this.isUseSharedWorker=false;this.worker=null;this.languages={1068:"az_Latn_AZ",1026:"bg_BG",1027:"ca_ES",2051:"ca_ES_valencia",1029:"cs_CZ",1030:"da_DK",3079:"de_AT", 2055:"de_CH",1031:"de_DE",1032:"el_GR",3081:"en_AU",4105:"en_CA",2057:"en_GB",1033:"en_US",7177:"en_ZA",3082:"es_ES",1069:"eu_ES",1036:"fr_FR",1110:"gl_ES",1050:"hr_HR",1038:"hu_HU",1057:"id_ID",1040:"it_IT",1087:"kk_KZ",1042:"ko_KR",1134:"lb_LU",1063:"lt_LT",1062:"lv_LV",1104:"mn_MN",1044:"nb_NO",1043:"nl_NL",2068:"nn_NO",1045:"pl_PL",1046:"pt_BR",2070:"pt_PT",1048:"ro_RO",1049:"ru_RU",1051:"sk_SK",1060:"sl_SI",10266:"sr_Cyrl_RS",9242:"sr_Latn_RS",1053:"sv_SE",1055:"tr_TR",1058:"uk_UA",1066:"vi_VN", -2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker= +2067:"nl_NL"};this.stop=function(){if(!this.worker)return;try{if(this.worker.port)this.worker.port.close();else if(this.worker.terminate)this.worker.terminate()}catch(err){}this.worker=null};this.restart=function(){return;this.stop();var worker_src=this.useWasm?"spell.js":"spell_ie.js";worker_src=this.enginePath+worker_src;if(this.isUseSharedWorker){this.worker=new SharedWorker(worker_src,"onlyoffice-spellchecker");this.worker.creator=this;this.worker.onerror=function(){var creator=this.creator;creator.worker= new Worker(worker_src);creator._start(creator.worker)};this._start(this.worker.port)}else{this.worker=new Worker(worker_src);var _t=this;this.worker.onerror=function(e){AscCommon.stopEvent(e);if(_t.useWasm){_t.useWasm=false;_t.restart();_t.api.asc_restartCheckSpelling()}};this._start(this.worker)}};this.oncommand=function(message){console.log(message)};this.checkDictionary=function(lang){return undefined!==this.languages[""+lang]?true:false};this.getLanguages=function(){var ret=[];for(var lang in this.languages)ret.push(lang); return ret};this._start=function(_port){var _worker=this;_port.onmessage=function(message){_worker.oncommand&&_worker.oncommand(message.data)};_port.postMessage({"type":"init","dictionaries_path":dictionariesPath,"languages":this.languages});this.command=function(message){_port&&_port.postMessage(message)}};this.restart()} \ No newline at end of file diff --git a/www/common/onlyoffice/v5/sdkjs/cell/sdk-all.js b/www/common/onlyoffice/v5/sdkjs/cell/sdk-all.js index 75cdbe1bb..2c3e6a5b8 100644 --- a/www/common/onlyoffice/v5/sdkjs/cell/sdk-all.js +++ b/www/common/onlyoffice/v5/sdkjs/cell/sdk-all.js @@ -1,5 +1,5 @@ /* - * Copyright (C) Ascensio System SIA 2012-2021. All rights reserved + * Copyright (C) Ascensio System SIA 2012-2022. All rights reserved * * https://www.onlyoffice.com/ * @@ -19303,8 +19303,8 @@ if(!oRun.m_oContentChanges)return;for(var Index=0,Count=this.Items.length;Index< AscCommon.CollaborativeEditing.Update_DocumentPositionsOnAdd(oRun,Pos);if(Element.SetParent)Element.SetParent(oRun)}}oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);oRun.private_UpdateDocumentOutline()};CChangesRunAddItem.prototype.IsRelated=function(oChanges){if(this.Class===oChanges.Class&&(AscDFH.historyitem_ParaRun_AddItem===oChanges.Type||AscDFH.historyitem_ParaRun_RemoveItem===oChanges.Type))return true;return false};CChangesRunAddItem.prototype.CreateReverseChange= function(){return this.private_CreateReverseChange(CChangesRunRemoveItem)};function CChangesRunRemoveItem(Class,Pos,Items){AscDFH.CChangesBaseContentChange.call(this,Class,Pos,Items,false)}CChangesRunRemoveItem.prototype=Object.create(AscDFH.CChangesBaseContentChange.prototype);CChangesRunRemoveItem.prototype.constructor=CChangesRunRemoveItem;CChangesRunRemoveItem.prototype.Type=AscDFH.historyitem_ParaRun_RemoveItem;CChangesRunRemoveItem.prototype.Undo=function(){var oRun=this.Class;var Array_start= oRun.Content.slice(0,this.Pos);var Array_end=oRun.Content.slice(this.Pos);oRun.Content=Array_start.concat(this.Items,Array_end);oRun.RecalcInfo.Measure=true;oRun.private_UpdateSpellChecking();oRun.private_UpdateTrackRevisionOnChangeContent(false);for(var nIndex=0,nCount=this.Items.length;nIndex-1;--index)if(this.flowTables[index].IsPointIn(x,y)&&this.flowTables[index].CheckDocumentContent(documentContent))return this.flowTables[index];return null},delObjectById:function(id){var oDrawing=AscCommon.g_oTableId.Get_ById(id);if(oDrawing){var drawing_array;var Type=oDrawing.getDrawingArrayType();if(Type===DRAWING_ARRAY_TYPE_INLINE)drawing_array=this.inlineObjects;else if(Type===DRAWING_ARRAY_TYPE_BEHIND)drawing_array=this.behindDocObjects; -else drawing_array=this.beforeTextObjects;for(var index=0;index-1;--i)if(!drawingArray[i].parent||drawingArray[i].parent.DocumentContent===docContent|| -b_is_top_doc&&drawingArray[i].parent.DocumentContent.Is_TopDocument(true)===docContent)drawingArray.splice(i,1)}function findTableInArrayAndRemove(drawingArray,docContent,document){if(docContent===document){drawingArray.length=0;return}for(var i=drawingArray.length-1;i>-1;--i)if(drawingArray[i].Table.Parent.GetDocumentContentForRecalcInfo()===docContent)drawingArray.splice(i,1)}function findInArrayAndRemoveFromDrawingPage(drawingPage,docContent,document){if(!drawingPage)return;if(Array.isArray(drawingPage.inlineObjects)){findInArrayAndRemove(drawingPage.inlineObjects, +y,documentContent){for(var index=this.flowTables.length-1;index>-1;--index)if(this.flowTables[index].IsPointIn(x,y)&&this.flowTables[index].CheckDocumentContent(documentContent))return this.flowTables[index];return null},delObjectById:function(id){var oDrawing=AscCommon.g_oTableId.Get_ById(id);if(oDrawing&&oDrawing.getDrawingArrayType){var drawing_array;var Type=oDrawing.getDrawingArrayType();if(Type===DRAWING_ARRAY_TYPE_INLINE)drawing_array=this.inlineObjects;else if(Type===DRAWING_ARRAY_TYPE_BEHIND)drawing_array= +this.behindDocObjects;else drawing_array=this.beforeTextObjects;for(var index=0;index-1;--i)if(!drawingArray[i].parent||drawingArray[i].parent.DocumentContent=== +docContent||b_is_top_doc&&drawingArray[i].parent.DocumentContent.Is_TopDocument(true)===docContent)drawingArray.splice(i,1)}function findTableInArrayAndRemove(drawingArray,docContent,document){if(docContent===document){drawingArray.length=0;return}for(var i=drawingArray.length-1;i>-1;--i)if(drawingArray[i].Table.Parent.GetDocumentContentForRecalcInfo()===docContent)drawingArray.splice(i,1)}function findInArrayAndRemoveFromDrawingPage(drawingPage,docContent,document){if(!drawingPage)return;if(Array.isArray(drawingPage.inlineObjects)){findInArrayAndRemove(drawingPage.inlineObjects, docContent,document);findInArrayAndRemove(drawingPage.behindDocObjects,docContent,document);findInArrayAndRemove(drawingPage.beforeTextObjects,docContent,document);findTableInArrayAndRemove(drawingPage.flowTables,docContent,document)}}if(!AscCommon.isRealObject(docContent))docContent=this.graphicObjects.document;findInArrayAndRemoveFromDrawingPage(this,docContent,editor.WordControl.m_oLogicDocument)},draw:function(graphics){for(var _object_index=0;_object_index