Merge pull request #40 from ONLYOFFICE/add-ocr

Add ocr
This commit is contained in:
catbasilio
2022-06-25 11:41:42 +03:00
committed by GitHub
40 changed files with 14461 additions and 0 deletions

View File

@ -0,0 +1,19 @@
Plugin-ocr uses code from the following 3rd party projects.
1. Tesseract.js is a javascript library that gets words in almost any language out of images. (https://tesseract.projectnaptha.com/)
License: Apache License, version 2.0
License File: Tesseract.license
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
3. Select2 gives you a customizable select box with support for searching, tagging, remote data sets, infinite scrolling, and many other highly used options. (https://select2.org/)
License: MIT
License File: Select2.license

View File

@ -0,0 +1,15 @@
## Overview
Recognize text from pictures and screenshots and insert it into your documents with multilingual OCR.
The plugin uses [Tesseract.js](https://tesseract.projectnaptha.com/) and supports more than 60 languages.
It is installed by default in cloud, [self-hosted](https://github.com/ONLYOFFICE/DocumentServer) and [desktop version](https://github.com/ONLYOFFICE/DesktopEditors) of ONLYOFFICE editors.
## How to use
1. Find the OCR plugin in the Plugins tab, click on it and press start.
2. Load the image with text you want to insert into you doc.
3. Choose the language and press Recognize.
If you need more information about how to use or write your own plugin, please see this https://api.onlyoffice.com/plugin/basic

View File

@ -0,0 +1,135 @@
{
"name": "OCR",
"nameLocale": {
"ru": "Распознавание текста",
"fr": "Reconnaissance optique de caractères",
"es": "Reconocimiento óptico de caracteres",
"de": "OCR"
},
"guid": "asc.{440EBF13-9B19-4BD8-8621-05200E58140B}",
"version": "1.0.0",
"baseUrl": "",
"variations": [
{
"description": "OCR",
"descriptionLocale": {
"ru": "Распознавание текста",
"fr": "Reconnaissance optique de caractères",
"es": "Reconocimiento óptico de caracteres",
"de": "OCR"
},
"url": "index.html",
"icons": [ "resources/light/icon.png", "resources/light/icon@2x.png" ],
"icons2": [
{
"style" : "light",
"100%": {
"normal": "resources/light/icon.png"
},
"125%": {
"normal": "resources/light/icon@1.25x.png"
},
"150%": {
"normal": "resources/light/icon@1.5x.png"
},
"175%": {
"normal": "resources/light/icon@1.75x.png"
},
"200%": {
"normal": "resources/light/icon@2x.png"
}
},
{
"style" : "dark",
"100%": {
"normal": "resources/dark/icon.png"
},
"125%": {
"normal": "resources/dark/icon@1.25x.png"
},
"150%": {
"normal": "resources/dark/icon@1.5x.png"
},
"175%": {
"normal": "resources/dark/icon@1.75x.png"
},
"200%": {
"normal": "resources/dark/icon@2x.png"
}
}
],
"isViewer": false,
"EditorsSupport": [ "word" ],
"isVisual": true,
"isModal": true,
"isInsideMode": false,
"initDataType": "none",
"initData": "",
"isUpdateOleOnResize": false,
"buttons": [
{
"text": "Insert Text",
"primary": true,
"textLocale": {
"ru": "Вставить текст",
"fr": "Insérer le texte",
"es": "Insertar texto",
"de": "Text einfügen"
}
},
{
"text": "Cancel",
"primary": false,
"textLocale": {
"ru": "Отмена",
"fr": "Annuler",
"es": "Cancelar",
"de": "Abbrechen"
}
}
],
"size": [ 592, 100 ]
},
{
"description": "About",
"descriptionLocale": {
"ru": "Справка",
"fr": "À propos",
"es": "Sobre programa",
"de": "Über"
},
"url": "index_about.html",
"icons": [ "resources/img/icon.png", "resources/img/icon@2x.png", "resources/img/icon2.png", "resources/img/icon2@2x.png" ],
"isViewer": false,
"EditorsSupport": [ "word" ],
"isVisual": true,
"isModal": true,
"isInsideMode": false,
"initDataType": "none",
"initData": "",
"isUpdateOleOnResize": false,
"buttons": [
{
"text": "Ok",
"primary": true
}
],
"size": [ 392, 147 ]
}
]
}

View File

@ -0,0 +1,153 @@
<!--
(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>OCR</title>
<script src='vendor/jQuery-2.2.2-min/jquery-v2.2.2-min.js'></script>
<link rel="stylesheet" href="vendor/select2-4.0.6-rc.1/dist/css/select2.css"/>
<script src="vendor/select2-4.0.6-rc.1/dist/js/select2.js"></script>
<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>
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
<script type='text/javascript' src='scripts/ocr.js'></script>
<script src='https://cdn.rawgit.com/naptha/tesseract.js/1.0.7/dist/tesseract.js'></script>
</head>
<style>
div{
display: inline-block;
vertical-align: top;
}
html{
height: 100%;
}
button{
width: 125px;
}
#lang-select {
background: #fff;
border: 1px solid #cfcfcf;
border-radius: 2px;
color: #444444;
font-size: 11px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
height: 22px;
cursor: pointer;
}
#lang-select[disabled],
#lang-select.disabled {
opacity: 0.65;
}
</style>
<body style="box-sizing:border-box; width: 100%; height: 100%; margin: 0; padding-left: 22px;">
<div style="height: 100%; width: 100%">
<div style="height: 99px" class="noselect">
<label class="defaultlable" style="display: inline-block; margin-top: 15px; margin-bottom: 22px" id="label1">Tesseract.js lets recognize text in pictures (png, jpg)</label><br class="noselect">
<div class="noselect">
<div style="margin-right: 0px; width: 175px; overflow: visible;">
<button class="btn-text-default" id="load-file-button-id">Load File</button><br class="noselect">
<label disabled class="defaultlable" style="overflow-x: visible" id="file-name-label"></label>
<input style="display: none" type="file" id="images-input" multiple accept='image/jpeg,image/png' />
</div>
</div>
<div class="noselect" style="margin-right: 22px">
<label class="defaultlable" id="label2">Choose language</label>
<select name = 'lang_combo' disabled class="noselect" id='lang-select' style="width: 125px">
<option value = 'eng'>English</option>
<option value = 'chi_sim'>Chinese</option>
<option value = 'rus'>Russian</option>
<option value = 'meme'>Meme</option>
<option value = 'tha'>Thai</option>
<option value = 'deu'>German</option>
<option value = 'jpn'>Japanese</option>
<option value = 'spa'>Spanish</option>
<option value = 'fra'>French</option>
<option value = 'por'>Portuguese</option>
<option value = 'ita'>Italian</option>
<option value = 'pol'>Polish</option>
<option value = 'tur'>Turkish</option>
<option value = 'nld'>Dutch</option>
<option value = 'ara'>Arabic</option>
<option value = 'ces'>Czech</option>
<option value = 'kor'>Korean</option>
<option value = 'swe'>Swedish</option>
<option value = 'vie'>Vietnamese</option>
<option value = 'ron'>Romanian</option>
<option value = 'ell'>Greek</option>
<option value = 'ind'>Indonesian</option>
<option value = 'hun'>Hungarian</option>
<option value = 'dan'>Danish</option>
<option value = 'bul'>Bulgarian</option>
<option value = 'fin'>Finnish</option>
<option value = 'nor'>Norwegian</option>
<option value = 'ukr'>Ukrainian</option>
<option value = 'cat'>Catalan</option>
<option value = 'hrv'>Croatian</option>
<option value = 'heb'>Hebrew</option>
<option value = 'lit'>Lithuanian</option>
<option value = 'slv'>Slovenian</option>
<option value = 'hin'>Hindi</option>
<option value = 'ben'>Bengali</option>
<option value = 'tel'>Telugu</option>
<option value = 'tam'>Tamil</option>
<option value = 'kan'>Kannada</option>
<option value = 'mal'>Malayalam</option>
<option value = 'tgl'>Tagalog</option>
<option value = 'swa'>Swahili</option>
<option value = 'aze'>Azerbaijani</option>
<option value = 'bel'>Belarusian</option>
<option value = 'afr'>Afrikaans</option>
<option value = 'sqi'>Albanian</option>
<option value = 'eus'>Basque</option>
<option value = 'epo'>Esperanto</option>
<option value = 'est'>Estonian</option>
<option value = 'glg'>Galician</option>
<option value = 'isl'>Icelandic</option>
<option value = 'lav'>Latvian</option>
<option value = 'mkd'>Macedonian</option>
<option value = 'msa'>Malay</option>
<option value = 'mlt'>Maltese</option>
<option value = 'grc'>Ancient Greek</option>
<option value = 'chr'>Cherokee</option>
<option value = 'enm'>English (Old)</option>
<option value = 'frk'>Frankish</option>
<option value = 'equ'>Math</option>
<option value = 'srp'>Serbian (Latin)</option>
<option value = 'slk'>Slovak</option>
</select>
</div>
<div class="noselect">
<button class="btn-text-default" id='recognize-button' disabled>Recognize</button><br class="noselect">
<label id="status-label" class="defaultlable" disabled ></label>
</div>
</div>
<div id="scrollable-image-text-div" style="position:absolute; display: none; height: calc(100% - 99px); width: calc(100% - 5px); position: relative; overflow: hidden">
<div style="width: calc(50% - 20px); margin-right: 25px" id="image-container-div" class="noselect">
</div>
<div id="text-container-div" style="width: calc(50% - 20px); -khtml-user-select: text; user-select: text; -moz-user-select: text; -webkit-user-select: text;" class="defaultlable" style="width: calc(50% - 24px)">
</div>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,64 @@
<!--
(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>About</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>
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
<script type="text/javascript">
window.Asc.plugin.init = function()
{
this.resizeWindow(392, 170, 392, 170, 392, 170);
// none
};
window.Asc.plugin.button = function(id)
{
this.executeCommand("close", "");
};
window.Asc.plugin.onTranslate = function(){
var elem = document.getElementById("p1");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Tesseract.js Add-on");
}
elem = document.getElementById("p1");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Tesseract.js Add-on");
}
elem = document.getElementById("p2");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Tesseract.js is a pure javascript version of the <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\" class=\"aboutlink\">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages.");
}
elem = document.getElementById("a1");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Source code");
}
};
</script>
</head>
<body style="padding-left: 20px; padding-right: 20px">
<p class="aboutlable" id="p1">Tesseract.js Add-on</p>
<p class="aboutlable" id="p2">Tesseract.js is a pure javascript version of the <a href="http://tesseract.projectnaptha.com" target="_blank" class="aboutlink">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages.</p>
<a href="https://github.com/ONLYOFFICE/plugin-ocr" target="_blank" id="a1" class="aboutlink">Source code</a>
<p class="aboutlable">Version: 1.0</p>
</body>
</html>

View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
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.

View File

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
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.

View File

@ -0,0 +1,20 @@
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.

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 537 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 838 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 765 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 798 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 974 B

View File

@ -0,0 +1,378 @@
/**
*
* (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){
var oLangMap = {};
oLangMap['eng'] = "English";
oLangMap['chi_sim'] = "Chinese";
oLangMap['rus'] = "Russian";
oLangMap['meme'] = "Meme";
oLangMap['tha'] = "Thai";
oLangMap['deu'] = "German";
oLangMap['jpn'] = "Japanese";
oLangMap['spa'] = "Spanish";
oLangMap['fra'] = "French";
oLangMap['por'] = "Portuguese";
oLangMap['ita'] = "Italian";
oLangMap['pol'] = "Polish";
oLangMap['tur'] = "Turkish";
oLangMap['nld'] = "Dutch";
oLangMap['ara'] = "Arabic";
oLangMap['ces'] = "Czech";
oLangMap['kor'] = "Korean";
oLangMap['swe'] = "Swedish";
oLangMap['vie'] = "Vietnamese";
oLangMap['ron'] = "Romanian";
oLangMap['ell'] = "Greek";
oLangMap['ind'] = "Indonesian";
oLangMap['hun'] = "Hungarian";
oLangMap['dan'] = "Danish";
oLangMap['bul'] = "Bulgarian";
oLangMap['fin'] = "Finnish";
oLangMap['nor'] = "Norwegian";
oLangMap['ukr'] = "Ukrainian";
oLangMap['cat'] = "Catalan";
oLangMap['hrv'] = "Croatian";
oLangMap['heb'] = "Hebrew";
oLangMap['lit'] = "Lithuanian";
oLangMap['slv'] = "Slovenian";
oLangMap['hin'] = "Hindi";
oLangMap['ben'] = "Bengali";
oLangMap['tel'] = "Telugu";
oLangMap['tam'] = "Tamil";
oLangMap['kan'] = "Kannada";
oLangMap['mal'] = "Malayalam";
oLangMap['tgl'] = "Tagalog";
oLangMap['swa'] = "Swahili";
oLangMap['aze'] = "Azerbaijani";
oLangMap['bel'] = "Belarusian";
oLangMap['afr'] = "Afrikaans";
oLangMap['sqi'] = "Albanian";
oLangMap['eus'] = "Basque";
oLangMap['epo'] = "Esperanto";
oLangMap['est'] = "Estonian";
oLangMap['glg'] = "Galician";
oLangMap['isl'] = "Icelandic";
oLangMap['lav'] = "Latvian";
oLangMap['mkd'] = "Macedonian";
oLangMap['msa'] = "Malay";
oLangMap['mlt'] = "Maltese";
oLangMap['grc'] = "Ancient Greek";
oLangMap['chr'] = "Cherokee";
oLangMap['enm'] = "English (Old)";
oLangMap['frk'] = "Frankish";
oLangMap['equ'] = "Math";
oLangMap['srp'] = "Serbian (Latin)";
oLangMap['slk'] = "Slovak";
window.oncontextmenu = function(e)
{
if (e.preventDefault)
e.preventDefault();
if (e.stopPropagation)
e.stopPropagation();
return false;
};
function escapeHtml(string) {
var res = string;
res = res.replace(/[\', \", \\,]/g, function (sSymbol) {
return '\\' + sSymbol;
});
return res;
}
var arrParsedData = [];
window.Asc.plugin.init = function(){
$('#lang-select').select2({
minimumResultsForSearch: Infinity
});
this.resizeWindow(592, 100, 592, 100, 592, 100);
var nStartFilesCount = 0, arrImages;
$( window ).resize(function(){
updateScroll();
});
function updateScroll(){
Ps.update();
}
var container = document.getElementById('scrollable-image-text-div');
Ps = new PerfectScrollbar("#" + container.id, {});
$('#load-file-button-id').click(
function (e) {
if (window["AscDesktopEditor"])
{
window["AscDesktopEditor"]["OpenFilenameDialog"]("images", true, function(files) {
arrImages = [];
if (!Array.isArray(files)) // string detect
files = [files];
if (files.length == 0)
return;
window.Asc.plugin.resizeWindow(800, 571, 800, 571);
var oImagesContainer = document.getElementById('image-container-div');
while (oImagesContainer.firstChild) {
oImagesContainer.removeChild(oImagesContainer.firstChild);
}
var oTextContainer = document.getElementById('text-container-div');
while (oTextContainer.firstChild) {
oTextContainer.removeChild(oTextContainer.firstChild);
}
for (var i = 0; i < files.length; i++)
{
var oImgElement = document.createElement('img');
oImgElement.src = window["AscDesktopEditor"]["GetImageBase64"](files[i], false);
oImgElement.style.width = '100%';
oImgElement.style.marginBottom = "10px";
arrImages.push(oImgElement);
oImagesContainer.appendChild(oImgElement);
}
document.getElementById('lang-select').removeAttribute('disabled');
document.getElementById('recognize-button').removeAttribute('disabled');
nStartFilesCount = files.length;
$('#status-label').text('');
$('#scrollable-image-text-div').css('display', 'inline-block');
updateScroll();
});
return;
}
$('#images-input').click();
}
);
$('#images-input').change(function(e) {
var arrFiles = e.target.files;
//check for images in file list
var arrFiles2 = [];
for(var i = 0; i < arrFiles.length; ++i){
if(arrFiles[i] && arrFiles[i].type && arrFiles[i].type.indexOf('image') === 0){
arrFiles2.push(arrFiles[i]);
}
else{
alert(arrFiles[i].name + "\nOCR plugin cannot read this file.");
}
}
arrFiles = arrFiles2;
if(arrFiles.length > 0){
window.Asc.plugin.resizeWindow(800, 571, 800, 571);
var oImagesContainer = document.getElementById('image-container-div');
while (oImagesContainer.firstChild) {
oImagesContainer.removeChild(oImagesContainer.firstChild);
}
var oTextContainer = document.getElementById('text-container-div');
while (oTextContainer.firstChild) {
oTextContainer.removeChild(oTextContainer.firstChild);
}
arrParsedData.length = 0;
var oFileReader = new FileReader();
var nIndex = 0;
arrImages = [];
$('#status-label').text('Loading images');
oFileReader.onloadend = function() {
var oImgElement = document.createElement('img');
oImgElement.src = oFileReader.result;
oImgElement.style.width = '100%';
arrImages.push(oImgElement);
oImagesContainer.appendChild(oImgElement);
++nIndex;
if(nIndex < arrFiles.length){
oFileReader.readAsDataURL(arrFiles[nIndex]);
$(oImgElement).css("margin-bottom", "10px");
}
else{
document.getElementById('lang-select').removeAttribute('disabled');
document.getElementById('recognize-button').removeAttribute('disabled');
nStartFilesCount = arrImages.length;
$('#status-label').text('');
$('#scrollable-image-text-div').css('display', 'inline-block');
}
updateScroll();
};
oFileReader.readAsDataURL(arrFiles[nIndex]);
}
});
$('#recognize-button').click(
function () {
var arrImagesCopy = [].concat(arrImages);
for (var i = 0; i < arrImagesCopy.length; i++)
{
if (arrImagesCopy[i] && (0 == arrImagesCopy[i].naturalWidth) && (0 == arrImagesCopy[i].naturalHeight))
{
arrImagesCopy.splice(i, 1);
i--;
}
}
if (0 == arrImagesCopy.length)
return;
var oTextContainer = document.getElementById('text-container-div');
while (oTextContainer.firstChild) {
oTextContainer.removeChild(oTextContainer.firstChild);
}
arrParsedData.length = 0;
document.getElementById('recognize-button').setAttribute('disabled', '');
document.getElementById('lang-select').setAttribute('disabled', '');
document.getElementById('load-file-button-id').setAttribute('disabled', '');
var fTesseractCall = function(){
Tesseract.recognize(arrImagesCopy.splice(0, 1)[0], {lang: $('#lang-select option:selected')[0].value}).progress(function (progress) {
if(progress && progress.status === "recognizing text"){
var nPercent = (100*(progress.progress + nStartFilesCount - arrImagesCopy.length - 1)/nStartFilesCount) >> 0;
$('#status-label').text('Recognizing: '+ nPercent + '%');
}
}).catch(function(err){
$('#status-label').text('');
document.getElementById('recognize-button').removeAttribute('disabled');
document.getElementById('lang-select').removeAttribute('disabled');
document.getElementById('load-file-button-id').removeAttribute('disabled', '');
}).then(function(result){
document.getElementById('text-container-div').appendChild($(result.html)[0]);
arrParsedData.push(result);
updateScroll();
if(arrImagesCopy.length > 0){
fTesseractCall();
}
else{
$('#status-label').text('');
document.getElementById('recognize-button').removeAttribute('disabled');
document.getElementById('lang-select').removeAttribute('disabled');
document.getElementById('load-file-button-id').removeAttribute('disabled', '');
}
});
};
$('#status-label').text('Recognizing: 0%');
fTesseractCall();
}
);
};
window.Asc.plugin.onThemeChanged = function(theme)
{
window.Asc.plugin.onThemeChangedBase(theme);
var rule = ".select2-container--default.select2-container--open .select2-selection__arrow b { border-color : " + window.Asc.plugin.theme["text-normal"] + " !important; }";
var styleTheme = document.createElement('style');
styleTheme.type = 'text/css';
styleTheme.innerHTML = rule;
document.getElementsByTagName('head')[0].appendChild(styleTheme);
};
window.Asc.plugin.button = function(id){
if (id == 0){
var sScript = '';
sScript += 'var oDocument = Api.GetDocument();';
sScript += '\nvar oParagraph, oRun, arrInsertResult = [], oTextPr;';
for(var i = 0; i < arrParsedData.length; ++i){
var oCurData = arrParsedData[i];
for(var j = 0; j < oCurData.paragraphs.length; ++j){
var oCurParagraph = oCurData.paragraphs[j];
sScript += '\noParagraph = Api.CreateParagraph();';
sScript += '\narrInsertResult.push(oParagraph);';
for(var t = 0; t < oCurParagraph.lines.length; ++t){
var oCurLine = oCurParagraph.lines[t];
if(t > 0 && t < oCurParagraph.lines.length - 1){
//sScript += '\noParagraph.AddLineBreak();';
}
for(var k = 0; k < oCurLine.words.length; ++k){
var oWord = oCurLine.words[k];
var sText = oWord.text + (k < oCurLine.words.length - 1 ? ' ' : '');
sText = escapeHtml(sText);
sScript += '\noRun = oParagraph.AddText(\'' + sText + '\');';
sScript += '\noTextPr = oRun.GetTextPr();';
var arrFontName = oWord.font_name.split('_');
var sFontName = '';
for(var s = 0; s < arrFontName.length; ++s ){
if(arrFontName[s] === 'Bold'){
sScript += '\noTextPr.SetBold(true);';
}
else if(arrFontName[s] === 'Italic'){
sScript += '\noTextPr.SetItalic(true);';
}
else if(arrFontName[s] === 'Strikeout'){
sScript += '\noTextPr.SetStrikeout(true);';
}
else{
if(sFontName != ''){
sFontName += ' ';
}
sFontName += arrFontName[s];
}
}
sScript += '\noTextPr.SetFontFamily(\'' + sFontName + '\');';
sScript += '\noTextPr.SetFontSize(' + ((oWord.font_size * 5 )>> 0) + ');';
}
}
}
}
sScript += '\noDocument.InsertContent(arrInsertResult);';
window.Asc.plugin.info.recalculate = true;
this.executeCommand("close", sScript);
}
else{
this.executeCommand("close", "");
}
};
window.Asc.plugin.onTranslate = function(){
var elem = document.getElementById("label1");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Tesseract.js lets recognize text in pictures (png, jpg)");
}
elem = document.getElementById("load-file-button-id");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Load File");
}
elem = document.getElementById("label2");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Choose language");
}
elem = document.getElementById("recognize-button");
if (elem){
elem.innerHTML = window.Asc.plugin.tr("Recognize");
}
elem = document.getElementById("lang-select");
if(elem){
var sInnerHtml = "";
for(var key in oLangMap){
if(oLangMap.hasOwnProperty(key)){
sInnerHtml += "<option value = \'" + key + "'>" + window.Asc.plugin.tr(oLangMap[key]) + "</option>";
}
}
elem.innerHTML = sInnerHtml;
}
};
})(window, undefined);

View File

@ -0,0 +1,70 @@
{
"Tesseract.js lets recognize text in pictures (png, jpg)": "Tesseract.js umožňuje rozpoznávat text v obrázcích (png, jpg)",
"Choose language": "Zvolte jazyk",
"Load File": "Načíst soubor",
"English": "angličtina",
"Chinese": "čínština",
"Russian": "rušitna",
"Meme": "Mem",
"Thai": "thajština",
"German": "němčina",
"Japanese": "japonština",
"Spanish": "španělština",
"French": "francouzština",
"Portuguese": "portugalština",
"Italian": "italština",
"Polish": "polština",
"Turkish": "turčtina",
"Dutch": "nizozemština",
"Arabic": "arabština",
"Czech": "čestina",
"Korean": "korejština",
"Swedish": "švédština",
"Vietnamese": "vietnamština",
"Romanian": "rumunština",
"Greek": "řečtina",
"Indonesian": "indonézština",
"Hungarian": "maďarština",
"Danish": "dánština",
"Bulgarian": "bulharština",
"Finnish": "finština",
"Norwegian": "norština",
"Ukrainian": "ukrajinština",
"Catalan": "katalánština",
"Croatian": "chorvatština",
"Hebrew": "hebrejština",
"Lithuanian": "lotyština",
"Slovenian": "slovinština",
"Hindi": "hindi",
"Bengali": "bengálština",
"Telugu": "telužština",
"Tamil": "tamilština",
"Kannada": "kannadština",
"Malayalam": "majalámština",
"Tagalog": "tagalština",
"Swahili": "swahilština",
"Azerbaijani": "azerbajdžánština",
"Belarusian": "běloruština",
"Afrikaans": "afrikánština",
"Albanian": "albánština",
"Basque": "baskičtina",
"Esperanto": "esperanto",
"Estonian": "estonština",
"Galician": "galicijština",
"Icelandic": "islandština",
"Latvian": "lotyština",
"Macedonian": "makedonština",
"Malay": "malajština",
"Maltese": "maltézština",
"Ancient Greek": "starověká řečtina",
"Cherokee": "čerokézština",
"English (Old)": "angličtina (stará)",
"Frankish": "franština",
"Math": "matematika",
"Serbian (Latin)": "srbština (latinka)",
"Slovak": "slovenština",
"Recognize": "Rozpoznat",
"Tesseract.js Add-on": "Doplněk Tesseract.js",
"Tesseract.js is a pure javascript version of the <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages.": "Tesseract.js je čistě Javascript verze <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract-OCR-Engine </a>, které rozpoznává angličtinu, čínštinu, ruštinu, Meme a dalších 60 různých jazyků.",
"Source code": "Zdrojové kódy"
}

View File

@ -0,0 +1,70 @@
{
"Tesseract.js lets recognize text in pictures (png, jpg)": "Tesseract.js lässt Text in Bildern erkennen (png, jpg)",
"Choose language": "Sprache wählen",
"Load File": "Datei laden",
"English": "Englisch",
"Chinese": "Chinesisch",
"Russian": "Russisch",
"Meme": "Mem",
"Thai": "Thailändisch",
"German": "Deutsch",
"Japanese": "Japanisch",
"Spanish": "Spanisch",
"French": "Französisch",
"Portuguese": "Portugiesisch",
"Italian": "Italienisch",
"Polish": "Polnisch",
"Turkish": "Türkisch",
"Dutch": "Niederländisch",
"Arabic": "Arabisch",
"Czech": "Tschechisch",
"Korean": "Koreanisch",
"Swedish": "Schwedisch",
"Vietnamese": "Vietnamesisch",
"Romanian": "Rumänisch",
"Greek": "Griechisch",
"Indonesian": "Indonesisch",
"Hungarian": "Ungarisch",
"Danish": "Dänisch",
"Bulgarian": "Bulgarisch",
"Finnish": "Finnisch",
"Norwegian": "Norwegisch",
"Ukrainian": "Ukrainisch",
"Catalan": "Katalanisch",
"Croatian": "Kroatisch",
"Hebrew": "Hebräisch",
"Lithuanian": "Litauisch",
"Slovenian": "Slowenisch",
"Hindi": "Hindi",
"Bengali": "Bengali",
"Telugu": "Telugu",
"Tamil": "Tamil",
"Kannada": "Kanaresisch",
"Malayalam": "Malayalam",
"Tagalog": "Tagalog",
"Swahili": "Suaheli",
"Azerbaijani": "Aserbaidschanisch",
"Belarusian": "Belarussisch",
"Afrikaans": "Afrikanisch",
"Albanian": "Albanisch",
"Basque": "Baskisch",
"Esperanto": "Esperanto",
"Estonian": "Estonisch",
"Galician": "Galicisch",
"Icelandic": "Isländisch",
"Latvian": "Lettisch",
"Macedonian": "Mazedonisch",
"Malay": "Malaiisch",
"Maltese": "Maltesisch",
"Ancient Greek": "Altgriechisch",
"Cherokee": "Cherokee",
"English (Old)": "Englisch (alt)",
"Frankish": "Fränkisch",
"Math": "Mathematik",
"Serbian (Latin)": "Serbisch (lateinisch)",
"Slovak": "Slowakisch",
"Recognize": "Erkennen",
"Tesseract.js Add-on": "Tesseract.js Add-on",
"Tesseract.js is a pure javascript version of the <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages.": "Tesseract.js ist eine reine Javascript-Version der <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract-OCR-Engine </a>, die Englisch, Chinesisch, Russisch, Meme und 60 andere Sprachen erkennt.",
"Source code": "Quellcode"
}

View File

@ -0,0 +1,70 @@
{
"Tesseract.js lets recognize text in pictures (png, jpg)": "Complemento Tesseract.js permite reconocer texto en imágenes (png, jpg)",
"Choose language": "Seleccionar idioma",
"Load File": "Cargar el archivo",
"English": "Inglés",
"Chinese": "Chino",
"Russian": "Ruso",
"Meme": "Meme",
"Thai": "Tailandés",
"German": "Alemán",
"Japanese": "Japonés",
"Spanish": "Español",
"French": "Francés",
"Portuguese": "Portugués",
"Italian": "Italiano",
"Polish": "Polonés",
"Turkish": "Turco",
"Dutch": "Holandés",
"Arabic": "Árabe",
"Czech": "Checo",
"Korean": "Coreano",
"Swedish": "Sueco",
"Vietnamese": "Vietnamita",
"Romanian": "Rumano",
"Greek": "Griego",
"Indonesian": "Indonesio",
"Hungarian": "Húngaro",
"Danish": "Danés",
"Bulgarian": "Búlgaro",
"Finnish": "Finlandés",
"Norwegian": "Noruego",
"Ukrainian": "Ucraniano",
"Catalan": "Catalán",
"Croatian": "Croata",
"Hebrew": "Hebreo",
"Lithuanian": "Lituano",
"Slovenian": "Esloveno",
"Hindi": "Hindi",
"Bengali": "Bengalí",
"Telugu": "Télugu",
"Tamil": "Tamil",
"Kannada": "Kannada",
"Malayalam": "Malayam",
"Tagalog": "Tagalo",
"Swahili": "Suajili",
"Azerbaijani": "Azerí",
"Belarusian": "Bielorruso",
"Afrikaans": "Afrikáans",
"Albanian": "Albanés",
"Basque": "Vasco",
"Esperanto": "Esperanto",
"Estonian": "Estonio",
"Galician": "Gallego",
"Icelandic": "Islandés",
"Latvian": "Letón",
"Macedonian": "Macedonio",
"Malay": "Malayo",
"Maltese": "Maltés",
"Ancient Greek": "Griego antiguo",
"Cherokee": "Cheroqui",
"English (Old)": "Inglés antiguo",
"Frankish": "Fráncico",
"Math": "Matemáticas",
"Serbian (Latin)": "Serbio (latino)",
"Slovak": "Eslovaco",
"Recognize": "Reconocer",
"Tesseract.js Add-on": "Complemento Tesseract.js",
"Tesseract.js is a pure javascript version of the <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages.": "Tesseract.js es una versión pura de javascript del <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> que reconoce Inglés, Chino, Ruso, Meme y 60 otros idiomas.",
"Source code": "Código fuente"
}

View File

@ -0,0 +1,70 @@
{
"Tesseract.js lets recognize text in pictures (png, jpg)": "Extension Tesseract.js permet de reconnaître le texte dans les images (png, jpg)",
"Choose language": "Choisir la langue",
"Load File": "Charger fichier",
"English": "Anglais",
"Chinese": "Chinois",
"Russian": "Russe",
"Meme": "Meme",
"Thai": "Thaïlandais",
"German": "Allemand",
"Japanese": "Japonais",
"Spanish": "Espagnol",
"French": "Français",
"Portuguese": "Portugais",
"Italian": "Italien",
"Polish": "Polonais",
"Turkish": "Turc",
"Dutch": "Néerlandais",
"Arabic": "Arabe",
"Czech": "Tchèque",
"Korean": "Coréen",
"Swedish": "Suédois",
"Vietnamese": "Vietnamien",
"Romanian": "Roumain",
"Greek": "Grec",
"Indonesian": "Indonésien",
"Hungarian": "Hongrois",
"Danish": "Danois",
"Bulgarian": "Bulgare",
"Finnish": "Finlandais",
"Norwegian": "Norvégien",
"Ukrainian": "Ukrainien",
"Catalan": "Catalan",
"Croatian": "Croate",
"Hebrew": "Hébreu",
"Lithuanian": "Lituanien",
"Slovenian": "Slovène",
"Hindi": "Hindi",
"Bengali": "Bengali",
"Telugu": "Télougou",
"Tamil": "Tamoul",
"Kannada": "Kannada",
"Malayalam": "Malayalam",
"Tagalog": "Tagalog",
"Swahili": "Swahili",
"Azerbaijani": "Azéri",
"Belarusian": "Biélorusse",
"Afrikaans": "Afrikaans",
"Albanian": "Albanais",
"Basque": "Basque",
"Esperanto": "Esperanto",
"Estonian": "Estonien",
"Galician": "Galicien",
"Icelandic": "Islandais",
"Latvian": "Letton",
"Macedonian": "Macédonien",
"Malay": "Malais",
"Maltese": "Maltais",
"Ancient Greek": "Ancien Grec",
"Cherokee": "Cherokee",
"English (Old)": "Ancien Anglais",
"Frankish": "Francs",
"Math": "Mathématiques",
"Serbian (Latin)": "Serbe (alphabet latin)",
"Slovak": "Slovaque",
"Recognize": "Reconnaître",
"Tesseract.js Add-on": "Extension Tesseract.js",
"Tesseract.js is a pure javascript version of the <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages.": "Tesseract.js c'est une version javascript pure de <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> qui reconnais le texte en Anglais, Chinois, Russe, Meme et 60 d'autres langues.",
"Source code": "Code source"
}

View File

@ -0,0 +1,7 @@
[
"cs-CS",
"de-DE",
"es-ES",
"fr-FR",
"ru-RU"
]

View File

@ -0,0 +1,70 @@
{
"Tesseract.js lets recognize text in pictures (png, jpg)": "Плагин Tesseract.js позволяет распознавать текст в изображениях (png, jpg)",
"Choose language": "Выбрать язык",
"Load File": "Загрузить файл",
"English": "Английский",
"Chinese": "Китайский",
"Russian": "Русский",
"Meme": "Интернет-мемы",
"Thai": "Тайский",
"German": "Немецкий",
"Japanese": "Японский",
"Spanish": "Испанский",
"French": "Французский",
"Portuguese": "Португальский",
"Italian": "Итальянский",
"Polish": "Польский",
"Turkish": "Турецкий",
"Dutch": "Нидерландский",
"Arabic": "Арабский",
"Czech": "Чешский",
"Korean": "Корейский",
"Swedish": "Шведский",
"Vietnamese": "Вьетнамский",
"Romanian": "Румынский",
"Greek": "Греческий",
"Indonesian": "Индонезийский",
"Hungarian": "Венгерский",
"Danish": "Датский",
"Bulgarian": "Болгарский",
"Finnish": "Финский",
"Norwegian": "Норвежский",
"Ukrainian": "Украинский",
"Catalan": "Каталанский",
"Croatian": "Хорватский",
"Hebrew": "Иврит",
"Lithuanian": "Литовский",
"Slovenian": "Словенский",
"Hindi": "Хинди",
"Bengali": "Бенгальский",
"Telugu": "Телугу",
"Tamil": "Тамильский",
"Kannada": "Каннада",
"Malayalam": "Малаялам",
"Tagalog": "Тагальский",
"Swahili": "Суахили",
"Azerbaijani": "Азербайджанский",
"Belarusian": "Белорусский",
"Afrikaans": "Африкаанс",
"Albanian": "Албанский",
"Basque": "Баскский",
"Esperanto": "Эсперанто",
"Estonian": "Эстонский",
"Galician": "Галисийский",
"Icelandic": "Исландский",
"Latvian": "Латышский",
"Macedonian": "Македонский",
"Malay": "Малайский",
"Maltese": "Мальтийский",
"Ancient Greek": "Древнегреческий",
"Cherokee": "Чероки",
"English (Old)": "Древнеанглийский",
"Frankish": "Франкский",
"Math": "Математические знаки",
"Serbian (Latin)": "Сербский (латиница)",
"Slovak": "Словацкий",
"Recognize": "Распознать",
"Tesseract.js Add-on": "Плагин Tesseract.js",
"Tesseract.js is a pure javascript version of the <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a> that recognize English, Chinese, Russian, Meme and 60 other languages." : "Tesseract.js - это javascript-версия движка <a href=\"http://tesseract.projectnaptha.com\" target=\"_blank\">Tesseract OCR Engine</a>, позволяющая распознавать текст более чем на 60 языках: английском, китайском, русском, языке интернет-мемов и др.",
"Source code": "Исходный код"
}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,123 @@
Select2
=======
[![Build Status][travis-ci-image]][travis-ci-status]
Select2 is a jQuery-based replacement for select boxes. It supports searching,
remote data sets, and pagination of results.
To get started, checkout examples and documentation at
https://select2.org/
Use cases
---------
* Enhancing native selects with search.
* Enhancing native selects with a better multi-select interface.
* Loading data from JavaScript: easily load items via AJAX and have them
searchable.
* Nesting optgroups: native selects only support one level of nesting. Select2
does not have this restriction.
* Tagging: ability to add new items on the fly.
* Working with large, remote datasets: ability to partially load a dataset based
on the search term.
* Paging of large datasets: easy support for loading more pages when the results
are scrolled to the end.
* Templating: support for custom rendering of results and selections.
Browser compatibility
---------------------
* IE 8+
* Chrome 8+
* Firefox 10+
* Safari 3+
* Opera 10.6+
Select2 is automatically tested on the following browsers.
[![Sauce Labs Test Status][saucelabs-matrix]][saucelabs-status]
Usage
-----
You can source Select2 directly from a CDN like [JSDliver][jsdelivr] or
[CDNJS][cdnjs], [download it from this GitHub repo][releases], or use one of
the integrations below.
Integrations
------------
Third party developers have created plugins for platforms which allow Select2 to be integrated more natively and quickly. For many platforms, additional plugins are not required because Select2 acts as a standard `<select>` box.
Plugins
* [Django]
- [django-autocomplete-light]
- [django-easy-select2]
- [django-select2]
* [Meteor] - [meteor-select2]
* [Ruby on Rails][ruby-on-rails] - [select2-rails]
* [Wicket] - [wicketstuff-select2]
* [Yii 2][yii2] - [yii2-widget-select2]
Themes
- [Bootstrap 3][bootstrap3] - [select2-bootstrap-theme]
- [Flat UI][flat-ui] - [select2-flat-theme]
- [Metro UI][metro-ui] - [select2-metro]
Missing an integration? Modify this `README` and make a pull request back here to Select2 on GitHub.
Internationalization (i18n)
---------------------------
Select2 supports multiple languages by simply including the right language JS
file (`dist/js/i18n/it.js`, `dist/js/i18n/nl.js`, etc.) after
`dist/js/select2.js`.
Missing a language? Just copy `src/js/select2/i18n/en.js`, translate it, and
make a pull request back to Select2 here on GitHub.
Documentation
-------------
The documentation for Select2 is available
[through GitHub Pages][documentation] and is located within this repository
in the [`docs` folder][documentation-folder].
Community
---------
You can find out about the different ways to get in touch with the Select2
community at the [Select2 community page][community].
Copyright and license
---------------------
The license is available within the repository in the [LICENSE][license] file.
[cdnjs]: http://www.cdnjs.com/libraries/select2
[community]: https://select2.org/getting-help
[documentation]: https://select2.org
[documentation-folder]: https://github.com/select2/select2/tree/master/docs
[freenode]: https://freenode.net/
[jsdelivr]: http://www.jsdelivr.com/#!select2
[license]: LICENSE.md
[releases]: https://github.com/select2/select2/releases
[saucelabs-matrix]: https://saucelabs.com/browser-matrix/select2.svg
[saucelabs-status]: https://saucelabs.com/u/select2
[travis-ci-image]: https://img.shields.io/travis/select2/select2/master.svg
[travis-ci-status]: https://travis-ci.org/select2/select2
[bootstrap3]: https://getbootstrap.com/
[django]: https://www.djangoproject.com/
[django-autocomplete-light]: https://github.com/yourlabs/django-autocomplete-light
[django-easy-select2]: https://github.com/asyncee/django-easy-select2
[django-select2]: https://github.com/applegrew/django-select2
[flat-ui]: http://designmodo.github.io/Flat-UI/
[meteor]: https://www.meteor.com/
[meteor-select2]: https://github.com/nate-strauser/meteor-select2
[metro-ui]: http://metroui.org.ua/
[select2-metro]: http://metroui.org.ua/select2.html
[ruby-on-rails]: http://rubyonrails.org/
[select2-bootstrap-theme]: https://github.com/select2/select2-bootstrap-theme
[select2-flat-theme]: https://github.com/techhysahil/select2-Flat_Theme
[select2-rails]: https://github.com/argerim/select2-rails
[vue.js]: http://vuejs.org/
[select2-vue]: http://vuejs.org/examples/select2.html
[wicket]: https://wicket.apache.org/
[wicketstuff-select2]: https://github.com/wicketstuff/core/tree/master/select2-parent
[yii2]: http://www.yiiframework.com/
[yii2-widget-select2]: https://github.com/kartik-v/yii2-widget-select2

View File

@ -0,0 +1,489 @@
.select2-container {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
vertical-align: middle; }
.select2-container .select2-selection--single {
box-sizing: border-box;
cursor: pointer;
display: block;
height: 22px;
user-select: none;
-webkit-user-select: none; }
.select2-container .select2-selection--single .select2-selection__rendered {
font-size: 12px;
display: block;
padding-left: 8px;
padding-right: 20px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap; }
.select2-container .select2-selection--single .select2-selection__clear {
position: relative; }
.select2-container[dir="rtl"] .select2-selection--single .select2-selection__rendered {
padding-right: 8px;
padding-left: 20px; }
.select2-container .select2-selection--multiple {
box-sizing: border-box;
cursor: pointer;
display: block;
min-height: 32px;
user-select: none;
-webkit-user-select: none; }
.select2-container .select2-selection--multiple .select2-selection__rendered {
display: inline-block;
overflow: hidden;
padding-left: 8px;
text-overflow: ellipsis;
white-space: nowrap; }
.select2-container .select2-search--inline {
float: left; }
.select2-container .select2-search--inline .select2-search__field {
box-sizing: border-box;
border: none;
font-size: 100%;
margin-top: 5px;
padding: 0; }
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
-webkit-appearance: none; }
.select2-dropdown {
background-color: white;
border: 1px solid #aaa;
border-radius: 2px;
box-sizing: border-box;
display: block;
position: absolute;
left: -100000px;
width: 100%;
z-index: 1051; }
.select2-results {
display: block; }
.select2-results__options {
font-size: 12px;
list-style: none;
margin: 0;
padding: 0; }
.select2-results__option {
padding: 6px;
user-select: none;
-webkit-user-select: none; }
.select2-results__option[aria-selected] {
cursor: pointer; }
.select2-container--open .select2-dropdown {
left: 0; }
.select2-container--open .select2-dropdown--above {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0; }
.select2-container--open .select2-dropdown--below {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0; }
.select2-search--dropdown {
display: block;
padding: 4px; }
.select2-search--dropdown .select2-search__field {
padding: 4px;
width: 100%;
box-sizing: border-box; }
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
-webkit-appearance: none; }
.select2-search--dropdown.select2-search--hide {
display: none; }
.select2-close-mask {
border: 0;
margin: 0;
padding: 0;
display: block;
position: fixed;
left: 0;
top: 0;
min-height: 100%;
min-width: 100%;
height: auto;
width: auto;
opacity: 0;
z-index: 99;
background-color: #fff;
filter: alpha(opacity=0); }
.select2-hidden-accessible {
border: 0 !important;
clip: rect(0 0 0 0) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important; }
.select2-container--default .select2-selection--single {
outline: none;
background-color: #fff;
border: 1px solid #aaa;
border-radius: 2px; }
.select2-container--default .select2-selection--single .select2-selection__rendered {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #444;
line-height: 22px; }
.select2-container--default .select2-selection--single .select2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold; }
.select2-container--default .select2-selection--single .select2-selection__placeholder {
color: #999; }
.select2-container--default .select2-selection--single .select2-selection__arrow {
height: 20px;
position: absolute;
top: 1px;
right: 1px;
width: 20px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b {
border-color: #888 transparent transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
height: 0;
left: 50%;
margin-left: -4px;
margin-top: -2px;
position: absolute;
top: 50%;
width: 0; }
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__clear {
float: left; }
.select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
left: 1px;
right: auto; }
.select2-container--default.select2-container--disabled .select2-selection--single {
background-color: #eee;
cursor: default; }
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
display: none; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
border-color: transparent transparent #888 transparent;
border-width: 0 4px 5px 4px; }
.select2-container--default .select2-selection--multiple {
background-color: white;
border: 1px solid #aaa;
border-radius: 2px;
cursor: text; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
box-sizing: border-box;
list-style: none;
margin: 0;
padding: 0 5px;
width: 100%; }
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
list-style: none; }
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
color: #999;
margin-top: 5px;
float: left; }
.select2-container--default .select2-selection--multiple .select2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
margin-top: 5px;
margin-right: 10px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice {
background-color: #e4e4e4;
border: 1px solid #aaa;
border-radius: 2px;
cursor: default;
float: left;
margin-right: 5px;
margin-top: 5px;
padding: 0 5px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
color: #999;
cursor: pointer;
display: inline-block;
font-weight: bold;
margin-right: 2px; }
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
color: #333; }
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__placeholder, .select2-container--default[dir="rtl"] .select2-selection--multiple .select2-search--inline {
float: right; }
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
margin-left: 5px;
margin-right: auto; }
.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
margin-left: 2px;
margin-right: auto; }
.select2-container--default.select2-container--focus .select2-selection--multiple {
border: solid black 1px;
outline: 0; }
.select2-container--default.select2-container--disabled .select2-selection--multiple {
background-color: #eee;
cursor: default; }
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
display: none; }
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single, .select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple {
border-top-left-radius: 0;
border-top-right-radius: 0; }
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single, .select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
border-bottom-left-radius: 0;
border-bottom-right-radius: 0; }
.select2-container--default .select2-search--dropdown .select2-search__field {
outline-color: #7d858c;
border: 1px solid #aaa; }
.select2-container--default .select2-search--inline .select2-search__field {
background: transparent;
border: none;
outline: 0;
box-shadow: none;
-webkit-appearance: textfield; }
.select2-container--default .select2-results > .select2-results__options {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
max-height: 200px;
overflow-y: auto; }
.select2-container--default .select2-results__option[role=group] {
padding: 0; }
.select2-container--default .select2-results__option[aria-disabled=true] {
color: #999; }
.select2-container--default .select2-results__option[aria-selected=true] {
background-color: #7d858c; }
.select2-container--default .select2-results__option .select2-results__option {
padding-left: 1em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
padding-left: 0; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
margin-left: -1em;
padding-left: 2em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -2em;
padding-left: 3em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -3em;
padding-left: 4em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -4em;
padding-left: 5em; }
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
margin-left: -5em;
padding-left: 6em; }
.select2-container--default .select2-results__option--highlighted[aria-selected] {
background-color: rgba(200, 200, 200, 0.5);}
.select2-container--default .select2-results__group {
cursor: default;
display: block;
padding: 6px; }
.select2-container--classic .select2-selection--single {
background-color: #f7f7f7;
border: 1px solid #aaa;
border-radius: 2px;
outline: 0;
background-image: -webkit-linear-gradient(top, white 50%, #eeeeee 100%);
background-image: -o-linear-gradient(top, white 50%, #eeeeee 100%);
background-image: linear-gradient(to bottom, white 50%, #eeeeee 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
.select2-container--classic .select2-selection--single:focus {
border: 1px solid #5897fb; }
.select2-container--classic .select2-selection--single .select2-selection__rendered {
color: #444;
line-height: 22px; }
.select2-container--classic .select2-selection--single .select2-selection__clear {
cursor: pointer;
float: right;
font-weight: bold;
margin-right: 10px; }
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
color: #999; }
.select2-container--classic .select2-selection--single .select2-selection__arrow {
background-color: #ddd;
border: none;
border-left: 1px solid #aaa;
border-top-right-radius: 2px;
border-bottom-right-radius: 2px;
height: 20px;
position: absolute;
top: 1px;
right: 1px;
width: 20px;
background-image: -webkit-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
background-image: -o-linear-gradient(top, #eeeeee 50%, #cccccc 100%);
background-image: linear-gradient(to bottom, #eeeeee 50%, #cccccc 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFCCCCCC', GradientType=0); }
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
border-color: #888 transparent transparent transparent;
border-style: solid;
border-width: 5px 4px 0 4px;
height: 0;
left: 50%;
margin-left: -4px;
margin-top: -2px;
position: absolute;
top: 50%;
width: 0; }
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__clear {
float: left; }
.select2-container--classic[dir="rtl"] .select2-selection--single .select2-selection__arrow {
border: none;
border-right: 1px solid #aaa;
border-radius: 0;
border-top-left-radius: 2px;
border-bottom-left-radius: 2px;
left: 1px;
right: auto; }
.select2-container--classic.select2-container--open .select2-selection--single {
border: 1px solid #5897fb; }
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
background: transparent;
border: none; }
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
border-color: transparent transparent #888 transparent;
border-width: 0 4px 5px 4px; }
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0;
background-image: -webkit-linear-gradient(top, white 0%, #eeeeee 50%);
background-image: -o-linear-gradient(top, white 0%, #eeeeee 50%);
background-image: linear-gradient(to bottom, white 0%, #eeeeee 50%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFFFF', endColorstr='#FFEEEEEE', GradientType=0); }
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
background-image: -webkit-linear-gradient(top, #eeeeee 50%, white 100%);
background-image: -o-linear-gradient(top, #eeeeee 50%, white 100%);
background-image: linear-gradient(to bottom, #eeeeee 50%, white 100%);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFEEEEEE', endColorstr='#FFFFFFFF', GradientType=0); }
.select2-container--classic .select2-selection--multiple {
background-color: white;
border: 1px solid #aaa;
border-radius: 2px;
cursor: text;
outline: 0; }
.select2-container--classic .select2-selection--multiple:focus {
border: 1px solid #5897fb; }
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
list-style: none;
margin: 0;
padding: 0 5px; }
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
display: none; }
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
background-color: #e4e4e4;
border: 1px solid #aaa;
border-radius: 2px;
cursor: default;
float: left;
margin-right: 5px;
margin-top: 5px;
padding: 0 5px; }
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
color: #888;
cursor: pointer;
display: inline-block;
font-weight: bold;
margin-right: 2px; }
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
color: #555; }
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice {
float: right;
margin-left: 5px;
margin-right: auto; }
.select2-container--classic[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
margin-left: 2px;
margin-right: auto; }
.select2-container--classic.select2-container--open .select2-selection--multiple {
border: 1px solid #5897fb; }
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
border-top: none;
border-top-left-radius: 0;
border-top-right-radius: 0; }
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
border-bottom: none;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0; }
.select2-container--classic .select2-search--dropdown .select2-search__field {
border: 1px solid #aaa;
outline: 0; }
.select2-container--classic .select2-search--inline .select2-search__field {
outline: 0;
box-shadow: none; }
.select2-container--classic .select2-dropdown {
background-color: white;
border: 1px solid transparent; }
.select2-container--classic .select2-dropdown--above {
border-bottom: none; }
.select2-container--classic .select2-dropdown--below {
border-top: none; }
.select2-container--classic .select2-results > .select2-results__options {
max-height: 200px;
overflow-y: auto; }
.select2-container--classic .select2-results__option[role=group] {
padding: 0; }
.select2-container--classic .select2-results__option[aria-disabled=true] {
color: grey; }
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
background-color: #3875d7;
color: white; }
.select2-container--classic .select2-results__group {
cursor: default;
display: block;
padding: 6px; }
.select2-container--classic.select2-container--open .select2-dropdown {
border-color: #5897fb; }

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
Effective beginning September 10, 2017, the Select2 documentation repository is now available at [`select2/docs`](https://github.com/select2/docs).

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select2</title>
</head>
<body>
<script>
window.location = 'https://select2.org/upgrading/new-in-40';
</script>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select2</title>
</head>
<body>
<script>
window.location = 'https://select2.org/getting-help';
</script>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select2</title>
</head>
<body>
<script>
window.location = 'https://select2.org/getting-started/basic-usage';
</script>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select2</title>
</head>
<body>
<script>
window.location = 'https://select2.org';
</script>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select2</title>
</head>
<body>
<script>
window.location = 'https://select2.org/configuration';
</script>
</body>
</html>

View File

@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>select2</title>
</head>
<body>
<script>
window.location = 'https://select2.org/configuration';
</script>
</body>
</html>