Merge pull request #11 from K0R0L/add-typograf

Add typograf
This commit is contained in:
Oleg Korshul
2022-08-30 09:41:53 +03:00
committed by GitHub
36 changed files with 17729 additions and 0 deletions

View File

@ -0,0 +1,16 @@
This plugin uses code from the following 3rd party projects.
1. 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
2. Typograf - Screen typography for typesetting text.
License: MIT License
License File: Typograf.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,40 @@
## Overview
The Typograf plugin allows preparing your text for publishing by correcting typography. It helps automatically place non-breaking spaces, remove extra spaces, correct minor typos, insert correct quotes, replace hyphens with dashes, and much more.
The plugin is based on [JavaScript Typograf](https://github.com/typograf/typograf).
Supported languages are listed [here](https://github.com/typograf/typograf/blob/dev/docs/LOCALES.en-US.md).
Typograf is compatible with [self-hosted](https://github.com/ONLYOFFICE/DocumentServer) and [desktop](https://github.com/ONLYOFFICE/DesktopEditors) versions of ONLYOFFICE editors. It can be added to ONLYOFFICE instances manually.
## How to use
1. Find Typograf in the Plugins tab. Click on it.
2. Choose the locale and the rules you want to apply to your text.
3. Select the text you want to correct.
4. Click the Correct text button.
## How to install
Detailed instructions can be found in [ONLYOFFICE API documentation](https://api.onlyoffice.com/plugin/installation).
## Known issues
* When using the plugin on a document abstract with graphic objects, those objects (images, shapes, Text Arts, Text Boxes, tables, charts) are lost along with text they contained.
* If you select the text inside the graphic object, the text will be removed from the object and inserted into the document in the corrected form.
* Graphic formulas are converted to strings.
* Drop caps, content controls, hyperlinks, underlays, footnotes, bookmarks, caption, tables of contents are removed.
* If at least part of the text is split into columns, then the columns will be applied to the entire document.
* Breaks are not saved.
* Changes suggested using Track Changes are not saved.
* If the plugin is used with Track Changes mode on, the corrected text will be inserted as a suggested change.
* Comments are not saved, except for comments to the whole document.
* Headers and footers remain unchanged if the entire document is selected.
* If header/footer content is selected, graphic objects it contained are lost.
* Line numbering is saved if it is applied to the entire document. If it was applied to a section, then it will be lost along with the section.
* When two or more paragraphs have been selected, an empty paragraph will be added after the corrected text.
## User feedback and support
To ask questions and share feedback, use Issues in this repository.

View File

@ -0,0 +1,61 @@
{
"name": "Typograf",
"nameLocale": {
"ru": "Типограф",
"fr": "Typograf",
"es": "Typograf",
"de": "Typograf"
},
"guid": "asc.{55159EC6-C91A-4DDB-8E1E-558454666461}",
"version": "1.0.0",
"variations": [
{
"description": "Typograf",
"descriptionLocale": {
"ru": "Типограф",
"fr": "Typograf",
"es": "Typograf",
"de": "Typograf"
},
"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": true,
"EditorsSupport": [ "word", "slide", "cell" ],
"isVisual": true,
"isModal": false,
"isInsideMode": true,
"initDataType": "text",
"initData": "",
"isUpdateOleOnResize": false,
"buttons": [],
"initOnSelectionChanged": true,
"store": {
"background": {
"light" : "#AE1717",
"dark" : "#AE1717"
},
"screenshots" : ["resources/store/screenshots/screen_1.png"],
"icons" : {
"light" : "resources/store/icons",
"dark" : "resources/store/icons"
}
}
}
]
}

View File

@ -0,0 +1,611 @@
<!--
(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>typograf</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.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 src="vendor/typograf/typograf.all.js"></script>
<script src="scripts/typograf.js"></script>
<style>
html, body {
min-height: 100% !important;
height: 100%;
font-family: Arial;
font-size: 11px;
color: #444;
}
.prefs__fieldset {
clear:both;
margin:1em 0 0;
margin-left:13px;
padding:0;
border:0px solid transparent;
border-radius:5px;
transition:border-color .3s ease;
width: 95%;
}
.prefs__rule-lang {
color:#00acc7;
text-transform:uppercase;
margin-left:7px
}
.prefs__rule:first-child {
padding-top: 1em;
}
.prefs__rule {
margin-top: 5px;
margin-left:20px;
margin-right:5%;
line-height:15px;
display: flex;
}
.prefs__rule:last-child {
margin-bottom: 0px;
}
.prefs__rule:first-child {
margin-top: 0px;
}
.prefs__fieldset .prefs__group-rules {
display:none
}
.prefs__fieldset_visible {
border:0px solid #e0e0e0
}
.header {
font-weight: normal !important;
}
#main-container-id {
height: 100%;
display: flex;
flex-direction: column;
}
#correct {
padding-top: 10px;
margin-bottom: 10px;
text-align: center;
}
.input__head {
margin-left: 4px;
width: 100%;
text-align: left;
}
.prefs__locale {
margin-left: 9px;
}
.prefs__set-locale {
margin-top: 10px;
margin-bottom: 10px;
margin: right;
}
.prefs__legend {
display: flex;
justify-content: start;
}
.arrow {
float:right;
align-self: center;
margin-left: 7px;
}
.checkbox {
margin-top: 0px;
margin-left: 5px;
}
.prefs__all-rules {
margin-right: 5px;
}
#hide_show {
width: 130px;
margin-top: 16px;
margin-bottom: 10px;
margin-left: 14px;
}
#settings {
display: none;
}
.opened, .hidden {
cursor:pointer;
}
.button {
cursor:pointer;
}
.cursor_pointer {
cursor:pointer;
}
.select2-results__options {
font-size: 11px !important;
}
.select2-selection__rendered {
font-size: 11px !important;
margin-top: -1px;
}
.display-none {
display: none;
}
i {
border: solid black;
border-width: 0 1px 1px 0;
display: inline-block;
padding: 2px;
}
.down {
transform: rotate(45deg);
-webkit-transform: rotate(45deg);
margin-top: 2px;
}
.up {
transform: rotate(-135deg);
-webkit-transform: rotate(-135deg);
margin-top: 4px;
}
</style>
</head>
<body style="width: 100%;height: 100%; margin: 0;">
<div id="main-container-id" style="overflow: hidden;">
<div id="floating" style="width: 100%; height: 80px; z-index: 1; position: fixed; background: #F1F1F1;">
<div id="correct" style="margin-left: 0px;">
<button onсlick="" class="btn-text-default" style="margin:0 14px 15px 14px; float: left; width:calc(100% - 30px); height: 25px;">Correct text</button>
</div>
<div id="hide_show"><label class="hidden">Hide advanced settings</label><label class="opened">Show advanced settings</label></div>
<div class="separator horizontal" style="margin: 0px 14px 5px; width:calc(100% - 30px);"></div>
</div>
<div id="settings" style="margin-top: 80px; position: relative; height: 88%; ">
<div class="input__head">
<span class="prefs__locale"><label class="header">Locale</label>: <select id="select_example" class="prefs__set-locale" data-title-id="locale" title="Locale">
<option value="be" data-text-id="locale-be">
Belarusian
</option>
<option value="bg" data-text-id="locale-bg">
Bulgarian
</option>
<option value="ca" data-text-id="locale-ca">
Catalan
</option>
<option value="da" data-text-id="locale-da">
Danish
</option>
<option value="nl" data-text-id="locale-nl">
Dutch
</option>
<option selected="selected" value="en-GB" data-text-id="locale-en-GB">
English UK
</option>
<option value="en-US" data-text-id="locale-en-US">
English US
</option>
<option value="eo" data-text-id="locale-eo">
Esperanto
</option>
<option value="et" data-text-id="locale-et">
Estonian
</option>
<option value="fi" data-text-id="locale-fi">
Finnish
</option>
<option value="fr" data-text-id="locale-fr">
French
</option>
<option value="de" data-text-id="locale-de">
German
</option>
<option value="el" data-text-id="locale-el">
Greek
</option>
<option value="hu" data-text-id="locale-hu">
Hungarian
</option>
<option value="ga" data-text-id="locale-ga">
Irish
</option>
<option value="it" data-text-id="locale-it">
Italian
</option>
<option value="lv" data-text-id="locale-lv">
Latvian
</option>
<option value="no" data-text-id="locale-no">
Norwegian
</option>
<option value="pl" data-text-id="locale-pl">
Polish
</option>
<option value="ro" data-text-id="locale-ro">
Romanian
</option>
<option value="ru" data-text-id="locale-ru">
Russian
</option>
<option value="sr" data-text-id="locale-sr">
Serbian
</option>
<option value="sk" data-text-id="locale-sk">
Slovak
</option>
<option value="sl" data-text-id="locale-sl">
Slovenian
</option>
<option value="es" data-text-id="locale-es">
Spanish
</option>
<option value="sv" data-text-id="locale-sv">
Swedish
</option>
<option value="tr" data-text-id="locale-tr">
Turkish
</option>
<option value="uk" data-text-id="locale-uk">
Ukrainian
</option>
</select>
</span>
</div>
<div class="prefs__rules">
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="punctuation"></label><div class="button"><label class="header cursor_pointer">Punctuation</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/punctuation/apostrophe">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/punctuation/apostrophe" data-id="common/punctuation/apostrophe"> <label class="checkbox" for="setting-common/punctuation/apostrophe">Placement of&nbsp;correct apostrophe</label>
</div>
<div class="prefs__rule" title="common/punctuation/quote">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/punctuation/quote" data-id="common/punctuation/quote"> <label class="checkbox" for="setting-common/punctuation/quote">Placement of&nbsp;quotation marks in&nbsp;texts</label>
</div>
<div class="prefs__rule" title="common/punctuation/quoteLink">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/punctuation/quoteLink" data-id="common/punctuation/quoteLink"> <label class="checkbox" for="setting-common/punctuation/quoteLink">Removal quotes outside a&nbsp;link</label>
</div>
<div class="prefs__rule" title="common/punctuation/delDoublePunctuation">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/punctuation/delDoublePunctuation" data-id="common/punctuation/delDoublePunctuation"> <label class="checkbox" for="setting-common/punctuation/delDoublePunctuation">Removing double punctuation</label>
</div>
<div class="prefs__rule" title="common/punctuation/hellip">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/punctuation/hellip" data-id="common/punctuation/hellip"> <label class="checkbox" for="setting-common/punctuation/hellip">Replacement of&nbsp;three points by&nbsp;ellipsis</label>
</div>
<div class="prefs__rule locale-ru" title="ru/punctuation/exclamation">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/punctuation/exclamation" data-id="ru/punctuation/exclamation"> <label class="checkbox" >!! → !<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/punctuation/exclamationQuestion">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/punctuation/exclamationQuestion" data-id="ru/punctuation/exclamationQuestion"> <label class="checkbox" for="setting-ru/punctuation/exclamationQuestion">!? → ?!<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/punctuation/ano">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/punctuation/ano" data-id="ru/punctuation/ano"> <label class="checkbox" for="setting-ru/punctuation/ano">Placement of&nbsp;commas before “а” and “но”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/punctuation/hellipQuestion">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/punctuation/hellipQuestion" data-id="ru/punctuation/hellipQuestion"> <label class="checkbox" for="setting-ru/punctuation/hellipQuestion">«?…» → «?..», «!…» → «!..», «…,» → «…»<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset" id="dash-hyphen">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="dash_hyphen"></label><div class="button"><label class="header cursor_pointer">Dash and hyphen</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule locale-ru" title="ru/dash/surname">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/surname" data-id="ru/dash/surname"> <label class="checkbox" for="setting-ru/dash/surname">Acronyms with a&nbsp;dash<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/daysMonth">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/daysMonth" data-id="ru/dash/daysMonth"> <label class="checkbox" for="setting-ru/dash/daysMonth">Dash between days of&nbsp;one month<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/month">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/month" data-id="ru/dash/month"> <label class="checkbox" for="setting-ru/dash/month">Dash between months<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/weekday">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/weekday" data-id="ru/dash/weekday"> <label class="checkbox" for="setting-ru/dash/weekday">Dash between the days of&nbsp;the week<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/decade">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/decade" data-id="ru/dash/decade"> <label class="checkbox" for="setting-ru/dash/decade">Dash in&nbsp;decade<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/directSpeech">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/directSpeech" data-id="ru/dash/directSpeech"> <label class="checkbox" for="setting-ru/dash/directSpeech">Dash in&nbsp;direct speech<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/time">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/time" data-id="ru/dash/time"> <label class="checkbox" for="setting-ru/dash/time">Dash in&nbsp;time intervals<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/koe">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/koe" data-id="ru/dash/koe"> <label class="checkbox" for="setting-ru/dash/koe">Hyphen after “кое” and “кой”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/de">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-ru/dash/de" data-id="ru/dash/de"> <label class="checkbox" for="setting-ru/dash/de">Hyphen before “де”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/ka">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/ka" data-id="ru/dash/ka"> <label class="checkbox" for="setting-ru/dash/ka">Hyphen before “ка” and “кась”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/to">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/to" data-id="ru/dash/to"> <label class="checkbox" for="setting-ru/dash/to">Hyphen before “то”, “либо”, “нибудь”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/taki">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/taki" data-id="ru/dash/taki"> <label class="checkbox" for="setting-ru/dash/taki">Hyphen between “верно-таки” and&nbsp;etc.<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/izza">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/izza" data-id="ru/dash/izza"> <label class="checkbox" for="setting-ru/dash/izza">Hyphen between “из-за”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/izpod">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/izpod" data-id="ru/dash/izpod"> <label class="checkbox" for="setting-ru/dash/izpod">Hyphen between “из-под”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/centuries">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/centuries" data-id="ru/dash/centuries"> <label class="checkbox" for="setting-ru/dash/centuries">Hyphen to&nbsp;dash in&nbsp;centuries<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/years">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/years" data-id="ru/dash/years"> <label class="checkbox" for="setting-ru/dash/years">Hyphen to&nbsp;dash in&nbsp;years<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-en-US" title="en-US/dash/main">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-en-US/dash/main" data-id="en-US/dash/main"> <label class="checkbox" for="setting-en-US/dash/main">Replace hyphens surrounded by&nbsp;spaces with an&nbsp;em-dash<span class="prefs__rule-lang">en-US</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/dash/main">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/dash/main" data-id="ru/dash/main"> <label class="checkbox" for="setting-ru/dash/main">Replacement hyphen with dash<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="non_br_space"></label><div class="button"><label class="header cursor_pointer">Non-breaking space</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/nbsp/afterShortWord">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/afterShortWord" data-id="common/nbsp/afterShortWord"> <label class="checkbox" for="setting-common/nbsp/afterShortWord">Non-breaking space after short word</label>
</div>
<div class="prefs__rule" title="common/nbsp/afterSectionMark">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/afterSectionMark" data-id="common/nbsp/afterSectionMark"> <label class="checkbox" for="setting-common/nbsp/afterSectionMark">Non-breaking space after §</label>
</div>
<div class="prefs__rule" title="common/nbsp/afterParagraphMark">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/afterParagraphMark" data-id="common/nbsp/afterParagraphMark"> <label class="checkbox" for="setting-common/nbsp/afterParagraphMark">Non-breaking space after ¶</label>
</div>
<div class="prefs__rule" title="common/nbsp/beforeShortLastWord">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/beforeShortLastWord" data-id="common/nbsp/beforeShortLastWord"> <label class="checkbox" for="setting-common/nbsp/beforeShortLastWord">Non-breaking space before last short word in&nbsp;sentence</label>
</div>
<div class="prefs__rule" title="common/nbsp/dpi">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/dpi" data-id="common/nbsp/dpi"> <label class="checkbox" for="setting-common/nbsp/dpi">Non-breaking space before lpi and dpi</label>
</div>
<div class="prefs__rule" title="common/nbsp/beforeShortLastNumber">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/beforeShortLastNumber" data-id="common/nbsp/beforeShortLastNumber"> <label class="checkbox" for="setting-common/nbsp/beforeShortLastNumber">Non-breaking space before number (maximum 2&nbsp;digits) at&nbsp;end of&nbsp;sentence</label>
</div>
<div class="prefs__rule" title="common/nbsp/afterNumber">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/nbsp/afterNumber" data-id="common/nbsp/afterNumber"> <label class="checkbox" for="setting-common/nbsp/afterNumber">Non-breaking space between number and word</label>
</div>
<div class="prefs__rule" title="common/nbsp/nowrap">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/nbsp/nowrap" data-id="common/nbsp/nowrap"> <label class="checkbox" for="setting-common/nbsp/nowrap">Replace non-breaking space to&nbsp;normal space in&nbsp;tags nowrap and nobr</label>
</div>
<div class="prefs__rule" title="common/nbsp/replaceNbsp">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/nbsp/replaceNbsp" data-id="common/nbsp/replaceNbsp"> <label class="checkbox" for="setting-common/nbsp/replaceNbsp">Replacing non-breaking space on&nbsp;normal before text correction</label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/m">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/m" data-id="ru/nbsp/m"> <label class="checkbox" for="setting-ru/nbsp/m">m2 → м², m3 → м³ and non-breaking space<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/years">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/years" data-id="ru/nbsp/years"> <label class="checkbox" for="setting-ru/nbsp/years">г.г. → гг. and non-breaking space<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/initials">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/initials" data-id="ru/nbsp/initials"> <label class="checkbox" for="setting-ru/nbsp/initials">Binding of&nbsp;initials to&nbsp;the name<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/see">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/see" data-id="ru/nbsp/see"> <label class="checkbox" for="setting-ru/nbsp/see">Non-breaking space after abbreviation «см.» and «им.»<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/ooo">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/ooo" data-id="ru/nbsp/ooo"> <label class="checkbox" for="setting-ru/nbsp/ooo">Non-breaking space after “OOO, ОАО, ЗАО, НИИ, ПБОЮЛ”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/page">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/page" data-id="ru/nbsp/page"> <label class="checkbox" for="setting-ru/nbsp/page">Non-breaking space after “стр.”, “гл.”, “рис.”, “илл.”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/year">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/year" data-id="ru/nbsp/year"> <label class="checkbox" for="setting-ru/nbsp/year">Non-breaking space before XXXX г. (2012 г.)<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/mln">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/mln" data-id="ru/nbsp/mln"> <label class="checkbox" for="setting-ru/nbsp/mln">Non-breaking space between number and “тыс.”, “млн”, “млрд” and “трлн”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/ps">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/ps" data-id="ru/nbsp/ps"> <label class="checkbox" for="setting-ru/nbsp/ps">Non-breaking space in&nbsp;P. S. and&nbsp;P. P. S.<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/abbr">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/abbr" data-id="ru/nbsp/abbr"> <label class="checkbox" for="setting-ru/nbsp/abbr">Non-breaking space in&nbsp;abbreviations, e.g. “т. д.”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/afterNumberSign">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/afterNumberSign" data-id="ru/nbsp/afterNumberSign"> <label class="checkbox" for="setting-ru/nbsp/afterNumberSign">Non-breaking thin space after №<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/rubleKopek">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/rubleKopek" data-id="ru/nbsp/rubleKopek"> <label class="checkbox" for="setting-ru/nbsp/rubleKopek">Not once. space before the “rub” and “cop.”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/addr">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/addr" data-id="ru/nbsp/addr"> <label class="checkbox" for="setting-ru/nbsp/addr">Placement of&nbsp;non-breaking space after “г.”, “обл.”, “ул.”, “пр.”, “кв.” et&nbsp;al.<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/centuries">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/centuries" data-id="ru/nbsp/centuries"> <label class="checkbox" for="setting-ru/nbsp/centuries">Remove spaces and extra points in&nbsp;“вв.”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/beforeParticle">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/beforeParticle" data-id="ru/nbsp/beforeParticle"> <label class="checkbox" for="setting-ru/nbsp/beforeParticle">Non-breaking space before “ли”, “ль”, “же”, “бы”, “б”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/nbsp/dayMonth">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/nbsp/dayMonth" data-id="ru/nbsp/dayMonth"> <label class="checkbox" for="setting-ru/nbsp/dayMonth">Non-breaking space between number and month<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="space"></label><div class="button"><label class="header cursor_pointer">Space and line ending</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/space/delRepeatN">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/delRepeatN" data-id="common/space/delRepeatN"> <label class="checkbox" for="setting-common/space/delRepeatN">Remove duplicate line breaks</label>
</div>
<div class="prefs__rule" title="common/space/bracket">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/bracket" data-id="common/space/bracket"> <label class="checkbox" for="setting-common/space/bracket">Remove extra spaces after opening and before closing bracket</label>
</div>
<div class="prefs__rule" title="common/space/squareBracket">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/squareBracket" data-id="common/space/squareBracket"> <label class="checkbox" for="setting-common/space/squareBracket">Remove extra spaces after opening and before closing square bracket</label>
</div>
<div class="prefs__rule" title="common/space/delBeforePercent">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/delBeforePercent" data-id="common/space/delBeforePercent"> <label class="checkbox" for="setting-common/space/delBeforePercent">Remove space before %, ‰ and ‱</label>
</div>
<div class="prefs__rule" title="common/space/trimRight">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/trimRight" data-id="common/space/trimRight"> <label class="checkbox" for="setting-common/space/trimRight">Remove spaces and line breaks at&nbsp;end of&nbsp;text</label>
</div>
<div class="prefs__rule" title="common/space/trimLeft">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/trimLeft" data-id="common/space/trimLeft"> <label class="checkbox" for="setting-common/space/trimLeft">Remove spaces and line breaks in&nbsp;beginning of&nbsp;text</label>
</div>
<div class="prefs__rule" title="common/space/delTrailingBlanks">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/delTrailingBlanks" data-id="common/space/delTrailingBlanks"> <label class="checkbox" for="setting-common/space/delTrailingBlanks">Remove spaces at&nbsp;end of&nbsp;line</label>
</div>
<div class="prefs__rule" title="common/space/delLeadingBlanks">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/space/delLeadingBlanks" data-id="common/space/delLeadingBlanks"> <label class="checkbox" for="setting-common/space/delLeadingBlanks">Remove spaces at&nbsp;start of&nbsp;line</label>
</div>
<div class="prefs__rule" title="common/space/delBeforePunctuation">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/delBeforePunctuation" data-id="common/space/delBeforePunctuation"> <label class="checkbox" for="setting-common/space/delBeforePunctuation">Remove spaces before punctuation</label>
</div>
<div class="prefs__rule" title="common/space/delRepeatSpace">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/delRepeatSpace" data-id="common/space/delRepeatSpace"> <label class="checkbox" for="setting-common/space/delRepeatSpace">Removing duplicate spaces between characters</label>
</div>
<div class="prefs__rule" title="common/space/replaceTab">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/replaceTab" data-id="common/space/replaceTab"> <label class="checkbox" for="setting-common/space/replaceTab">Replacement of&nbsp;tab to&nbsp;4&nbsp;spaces</label>
</div>
<div class="prefs__rule" title="common/space/beforeBracket">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/beforeBracket" data-id="common/space/beforeBracket"> <label class="checkbox" for="setting-common/space/beforeBracket">Space before opening bracket</label>
</div>
<div class="prefs__rule" title="common/space/afterPunctuation">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/space/afterPunctuation" data-id="common/space/afterPunctuation"> <label class="checkbox" for="setting-common/space/afterPunctuation">space after punctuation</label>
</div>
<div class="prefs__rule locale-ru" title="ru/space/afterHellip">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/space/afterHellip" data-id="ru/space/afterHellip"> <label class="checkbox" for="setting-ru/space/afterHellip">Space after “...”, “!..” and “?..”<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/space/year">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/space/year" data-id="ru/space/year"> <label class="checkbox" for="setting-ru/space/year">Space between number and word “год”<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="html"></label><div class="button"><label class="header cursor_pointer">HTML</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/html/quot">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/html/quot" data-id="common/html/quot"> <label class="checkbox" for="setting-common/html/quot">&amp;quot; → "</label>
</div>
<div class="prefs__rule" title="common/html/escape">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/escape" data-id="common/html/escape"> <label class="checkbox" for="setting-common/html/escape">Escaping HTML</label>
</div>
<div class="prefs__rule" title="common/html/url">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/url" data-id="common/html/url"> <label class="checkbox" for="setting-common/html/url">Placement of&nbsp;links</label>
</div>
<div class="prefs__rule" title="common/html/e-mail">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/e-mail" data-id="common/html/e-mail"> <label class="checkbox" for="setting-common/html/e-mail">Placement of&nbsp;links for e-mail</label>
</div>
<div class="prefs__rule" title="common/html/p">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/p" data-id="common/html/p"> <label class="checkbox" for="setting-common/html/p">Placement of&nbsp;paragraph</label>
</div>
<div class="prefs__rule" title="common/html/processingAttrs">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/processingAttrs" data-id="common/html/processingAttrs"> <label class="checkbox" for="setting-common/html/processingAttrs">Processing HTML attributes</label>
</div>
<div class="prefs__rule" title="common/html/stripTags">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/stripTags" data-id="common/html/stripTags"> <label class="checkbox" for="setting-common/html/stripTags">Removing HTML-tags</label>
</div>
<div class="prefs__rule" title="common/html/nbr">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/html/nbr" data-id="common/html/nbr"> <label class="checkbox" for="setting-common/html/nbr">Replacement line break on&nbsp;&lt;br/&gt;</label>
</div>
</div>
</div>
<div class="prefs__fieldset locale-ru">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="date"></label><div class="button"><label class="header cursor_pointer">Date</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="ru/date/weekday">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/date/weekday" data-id="ru/date/weekday"> <label class="checkbox" for="setting-ru/date/weekday">2 Мая, Понедельник → 2 мая, понедельник<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule" title="ru/date/fromISO">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/date/fromISO" data-id="ru/date/fromISO"> <label class="checkbox" for="setting-ru/date/fromISO">Converting dates YYYY-MM-DD type DD.MM.YYYY<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset locale-ru">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="money"></label><div class="button"><label class="header cursor_pointer">Money</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="ru/money/ruble">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-ru/money/ruble" data-id="ru/money/ruble"> <label class="checkbox" for="setting-ru/money/ruble">1 руб. → 1 ₽<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule" title="ru/money/currency">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-ru/money/currency" data-id="ru/money/currency"> <label class="checkbox" for="setting-ru/money/currency">Currency symbol ($, €, ¥, Ұ, £ and ₤) after the number, $100 → 100 $<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="numbers_math"></label><div class="button"><label class="header cursor_pointer">Numbers and mathematical expressions</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/number/mathSigns">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/number/mathSigns" data-id="common/number/mathSigns"> <label class="checkbox" for="setting-common/number/mathSigns">!= → ≠, &lt;= → ≤, &gt;= → ≥, ~= → ≅, +- → ±</label>
</div>
<div class="prefs__rule" title="common/number/fraction">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/number/fraction" data-id="common/number/fraction"> <label class="checkbox" for="setting-common/number/fraction">1/2 → ½, 1/4 → ¼, 3/4 → ¾</label>
</div>
<div class="prefs__rule" title="common/number/digitGrouping">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/number/digitGrouping" data-id="common/number/digitGrouping"> <label class="checkbox" for="setting-common/number/digitGrouping">Divide into groups numbers with many digits</label>
</div>
<div class="prefs__rule" title="common/number/times">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/number/times" data-id="common/number/times"> <label class="checkbox" for="setting-common/number/times">x&nbsp;× (10&nbsp;x&nbsp;5 → 10×5)</label>
</div>
<div class="prefs__rule locale-ru" title="ru/number/comma">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/number/comma" data-id="ru/number/comma"> <label class="checkbox" for="setting-ru/number/comma">Commas in&nbsp;numbers<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/number/ordinals">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/number/ordinals" data-id="ru/number/ordinals"> <label class="checkbox" for="setting-ru/number/ordinals">N-ый, -ой, -ая, -ое, -ые, -ым, -ом, -ых → N-й, -я, -е, -м, -х (25-й)<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="symbols"></label><div class="button"><label class="header cursor_pointer">Symbols and signs</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/symbols/copy">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/symbols/copy" data-id="common/symbols/copy"> <label class="checkbox" for="setting-common/symbols/copy">(c) → ©, (tm) → ™, (r) → ®</label>
</div>
<div class="prefs__rule" title="common/symbols/arrow">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/symbols/arrow" data-id="common/symbols/arrow"> <label class="checkbox" for="setting-common/symbols/arrow">-&gt; → →, &lt;- → ←</label>
</div>
<div class="prefs__rule" title="common/symbols/cf">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/symbols/cf" data-id="common/symbols/cf"> <label class="checkbox" for="setting-common/symbols/cf">Adding ° to&nbsp;C&nbsp;and F</label>
</div>
<div class="prefs__rule locale-ru" title="ru/symbols/NN">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/symbols/NN" data-id="ru/symbols/NN"> <label class="checkbox" for="setting-ru/symbols/NN">№№ → №<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset locale-ru">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="typos"></label><div class="button"><label class="header cursor_pointer">Typos</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="ru/typo/switchingKeyboardLayout">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/typo/switchingKeyboardLayout" data-id="ru/typo/switchingKeyboardLayout"> <label class="checkbox" for="setting-ru/typo/switchingKeyboardLayout">Replacement of&nbsp;Latin letters in&nbsp;Russian. Typos occur when you switch keyboard layouts<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
<div class="prefs__fieldset">
<div class="prefs__legend"><label class="prefs__all-rules"><input class="form-control" type="checkbox" data-id="other"></label><div class="button"><label class="header cursor_pointer">Other</label><i class="arrow down"></i></div></div>
<div class="prefs__group-rules">
<div class="prefs__rule" title="common/other/delBOM">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-common/other/delBOM" data-id="common/other/delBOM"> <label class="checkbox" for="setting-common/other/delBOM">Delete character BOM (Byte Order Mark)</label>
</div>
<div class="prefs__rule" title="common/other/repeatWord">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-common/other/repeatWord" data-id="common/other/repeatWord"> <label class="checkbox" for="setting-common/other/repeatWord">Removing repeat words</label>
</div>
<div class="prefs__rule locale-ru" title="ru/other/accent">
<input type="checkbox" class="prefs__rule-checkbox form-control" id="setting-ru/other/accent" data-id="ru/other/accent"> <label class="checkbox" for="setting-ru/other/accent">Replacement capital letters to&nbsp;lowercase with addition of&nbsp;accent<span class="prefs__rule-lang">ru</span></label>
</div>
<div class="prefs__rule locale-ru" title="ru/other/phone-number">
<input type="checkbox" class="prefs__rule-checkbox form-control" checked="checked" id="setting-ru/other/phone-number" data-id="ru/other/phone-number"> <label class="checkbox" for="setting-ru/other/phone-number">Formatting phone numbers<span class="prefs__rule-lang">ru</span></label>
</div>
</div>
</div>
</div>
</div>
</div>
</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,9 @@
The MIT License (MIT)
© 20142020 Денис Селезнёв, hcodes@yandex.ru
Данная лицензия разрешает лицам, получившим копию данного программного обеспечения и сопутствующей документации (в дальнейшем именуемыми «Программное Обеспечение»), безвозмездно использовать Программное Обеспечение без ограничений, включая неограниченное право на использование, копирование, изменение, добавление, публикацию, распространение, сублицензирование и/или продажу копий Программного Обеспечения, также как и лицам, которым предоставляется данное Программное Обеспечение, при соблюдении следующих условий:
Указанное выше уведомление об авторском праве и данные условия должны быть включены во все копии или значимые части данного Программного Обеспечения.
ДАННОЕ ПРОГРАММНОЕ ОБЕСПЕЧЕНИЕ ПРЕДОСТАВЛЯЕТСЯ «КАК ЕСТЬ», БЕЗ КАКИХ-ЛИБО ГАРАНТИЙ, ЯВНО ВЫРАЖЕННЫХ ИЛИ ПОДРАЗУМЕВАЕМЫХ, ВКЛЮЧАЯ, НО НЕ ОГРАНИЧИВАЯСЬ ГАРАНТИЯМИ ТОВАРНОЙ ПРИГОДНОСТИ, СООТВЕТСТВИЯ ПО ЕГО КОНКРЕТНОМУ НАЗНАЧЕНИЮ И ОТСУТСТВИЯ НАРУШЕНИЙ ПРАВ. НИ В КАКОМ СЛУЧАЕ АВТОРЫ ИЛИ ПРАВООБЛАДАТЕЛИ НЕ НЕСУТ ОТВЕТСТВЕННОСТИ ПО ИСКАМ О ВОЗМЕЩЕНИИ УЩЕРБА, УБЫТКОВ ИЛИ ДРУГИХ ТРЕБОВАНИЙ ПО ДЕЙСТВУЮЩИМ КОНТРАКТАМ, ДЕЛИКТАМ ИЛИ ИНОМУ, ВОЗНИКШИМ ИЗ, ИМЕЮЩИМ ПРИЧИНОЙ ИЛИ СВЯЗАННЫМ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ ИЛИ ИСПОЛЬЗОВАНИЕМ ПРОГРАММНОГО ОБЕСПЕЧЕНИЯ ИЛИ ИНЫМИ ДЕЙСТВИЯМИ С ПРОГРАММНЫМ ОБЕСПЕЧЕНИЕМ.

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: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

View File

@ -0,0 +1,277 @@
/**
*
* (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.
*
*/
var Ps;
var sText = '';
(function(window, undefined){
window.oncontextmenu = function(e)
{
if (e.preventDefault)
e.preventDefault();
if (e.stopPropagation)
e.stopPropagation();
return false;
};
window.Asc.plugin.init = function (text) {
sText = text;
};
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);
$('#floating').css('background', window.Asc.plugin.theme["background-toolbar"]);
$('.opened, .hidden').css('border-bottom', '1px dashed ' + window.Asc.plugin.theme["text-normal"]);
$('.arrow').css('border-color', window.Asc.plugin.theme["text-normal"]);
};
function SetSavedSettings() {
var inputsMain = $(".prefs__all-rules").find(".form-control");
var allInputs = $(inputsMain).closest(".prefs__fieldset").find(".prefs__rule").find(".form-control");
var locale_saved = localStorage.getItem('locale_typograf');
if (locale_saved !== null) {
$('#select_example').val(locale_saved);
$('#select_example').trigger('change');
}
$(inputsMain).each(function() {
var savedValue = localStorage.getItem($(this).attr("data-id"));
if (savedValue !== null)
if (savedValue === true.toString())
$(this).prop("checked", true);
else
$(this).prop("checked", false);
});
$(allInputs).each(function() {
var savedValue = localStorage.getItem($(this).attr("data-id"));
if (savedValue !== null)
if (savedValue === true.toString())
$(this).prop("checked", true);
else
$(this).prop("checked", false);
});
};
function hideShowForLocale() {
var locale = document.getElementsByClassName("prefs__set-locale")[0].value;
if (locale === 'ru') {
if ($('#dash-hyphen').hasClass('display-none')) {
$('#dash-hyphen').toggleClass('display-none');
}
if ($('.locale-ru').hasClass('display-none')) {
$('.locale-ru').toggleClass('display-none');
}
if (!$('.locale-en-US').hasClass('display-none')) {
$('.locale-en-US').toggleClass('display-none');
}
}
else if (locale === 'en-US') {
if ($('#dash-hyphen').hasClass('display-none')) {
$('#dash-hyphen').toggleClass('display-none');
}
if ($('.locale-en-US').hasClass('display-none')) {
$('.locale-en-US').toggleClass('display-none');
}
if (!$('.locale-ru').hasClass('display-none')) {
$('.locale-ru').toggleClass('display-none');
}
}
else {
if (!$('.locale-ru').hasClass('display-none')) {
$('.locale-ru').toggleClass('display-none');
}
if (!$('.locale-en-US').hasClass('display-none')) {
$('.locale-en-US').toggleClass('display-none');
}
if (!$('#dash-hyphen').hasClass('display-none')) {
$('#dash-hyphen').toggleClass('display-none');
}
}
}
$(document).ready(function () {
$('#select_example').select2({
minimumResultsForSearch: Infinity,
width : '120px',
});
SetSavedSettings();
hideShowForLocale();
Ps = new PerfectScrollbar("#settings", {suppressScrollX: true});
$('.prefs__rule').removeAttr('title');
$('.prefs__rule-checkbox').wrap("<label></label>");
$("#correct").find(".btn-text-default").click(function() {
CorrectText();
});
$(".hidden").click(function() {
$(this).hide();
$("#hide_show").find(".opened").show();
$(document).find("#settings").slideToggle("fast", function() { updateScroll(); });
});
$(".opened").click(function() {
$(this).hide();
$("#hide_show").find(".hidden").show();
$(document).find("#settings").slideToggle("fast", function() { updateScroll(); });
});
$(".button").click(function() {
$(this).closest(".prefs__fieldset").toggleClass("prefs__fieldset_visible").find(".prefs__group-rules").slideToggle("fast", function() { updateScroll(); });
$(this).closest(".prefs__fieldset").find(".arrow").toggleClass("down");
$(this).closest(".prefs__fieldset").find(".arrow").toggleClass("up");
});
$(".prefs__all-rules").click(function() {
var inputMain = $(this).find(".form-control");
var allInputs = $(this).closest(".prefs__fieldset").find(".prefs__rule").find(".form-control");
allInputs.prop("checked", $(inputMain).prop('checked'));
localStorage.setItem($(inputMain).attr("data-id"), $(inputMain).prop('checked'));
allInputs.each(function() {
localStorage.setItem($(this).attr("data-id"), $(this).prop('checked'));
});
});
$(".prefs__all-rules").closest(".prefs__fieldset").find(".prefs__rule").find(".form-control").click(function() {
localStorage.setItem($(this).attr("data-id"), $(this).prop('checked'));
});
$("#select_example").change(function() {
localStorage.setItem('locale_typograf', $(this).val());
hideShowForLocale();
});
});
function processText(sTxt){
if (sTxt[sTxt.length - 1] === '\n')
sTxt = sTxt.slice(0, sTxt.length - 1);
sTxt = sTxt.replace(/\r/g, "");
var splittedParas = sTxt.split('\n');
splittedParas.forEach(function(item, i, splittedParas) {
splittedParas[i] = item;
});
return splittedParas;
};
function ExecTypograf(sText) {
if (sText == undefined)
return;
var locale = document.getElementsByClassName("prefs__set-locale")[0].value;
var tp = new Typograf({locale: [locale]});
var rules = document.getElementsByClassName("prefs__rule-checkbox");
for (var rule = 0; rule < rules.length; rule++) {
if (rules[rule].checked) {
tp.enableRule(rules[rule].getAttribute("data-id"));
}
else {
tp.disableRule(rules[rule].getAttribute("data-id"));
}
}
var allParsedParas = processText(sText);
var allTypografedParas = [];
for (var Item = 0; Item < allParsedParas.length; Item++) {
typografedText = tp.execute(allParsedParas[Item]);
typografedText = typografedText.replace(/\n/g, String.fromCharCode(13));
allTypografedParas.push(typografedText);
}
Asc.scope.arr = allTypografedParas;
window.Asc.plugin.executeMethod("GetVersion", [], function(version) {
if (version === undefined) {
var strResult = "";
for (var Item = 0; Item < allTypografedParas.length; Item++) {
if (allTypografedParas[Item] === "")
continue;
if (Item < allTypografedParas.length - 1)
strResult += allTypografedParas[Item] + '\n';
else
strResult += allTypografedParas[Item];
}
window.Asc.plugin.executeMethod("PasteText", [strResult]);
}
else {
window.Asc.plugin.executeMethod("ReplaceTextSmart", [Asc.scope.arr, String.fromCharCode(9), String.fromCharCode(13)], function(isDone) {
if (!isDone)
window.Asc.plugin.callCommand(function() {
Api.ReplaceTextSmart(Asc.scope.arr);
});
});
}
});
};
function CorrectText() {
switch (window.Asc.plugin.info.editorType) {
case 'word':
case 'slide': {
window.Asc.plugin.executeMethod("GetSelectedText", [{Numbering:false, Math: false, TableCellSeparator: '\n', ParaSeparator: '\n', TabSymbol: String.fromCharCode(9)}], function(data) {
sText = data;
ExecTypograf(sText);
});
break;
}
case 'cell': {
window.Asc.plugin.executeMethod("GetSelectedText", [{Numbering:false, Math: false, TableCellSeparator: '\n', ParaSeparator: '\n', TabSymbol: String.fromCharCode(9)}], function(data) {
if (data == ''){
sText = sText.replace(/\t/g, '\n');
ExecTypograf(sText);
}
else {
sText = data;
ExecTypograf(sText);
}
});
break;
}
}
}
function updateScroll()
{
Ps && Ps.update();
};
window.Asc.plugin.button = function(id)
{
this.executeCommand("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);

File diff suppressed because one or more lines are too long

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,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>

File diff suppressed because it is too large Load Diff