typograf 7.5.0 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/htmlEntities/index.d.ts +7 -4
- package/dist/rules/en-GB/dash/index.d.ts +1 -0
- package/dist/rules/en-GB/dash/main.d.ts +2 -0
- package/dist/rules/en-GB/dash/main.test.d.ts +1 -0
- package/dist/rules/en-GB/index.d.ts +1 -0
- package/dist/rules/index.d.ts +1 -0
- package/dist/typograf.all.js +47 -32
- package/dist/typograf.all.min.js +2 -2
- package/dist/typograf.es.mjs +46 -31
- package/dist/typograf.js +46 -31
- package/dist/typograf.min.js +2 -2
- package/dist/typograf.titles.js +1 -1
- package/dist/typograf.titles.json +1 -1
- package/dist/version.d.ts +1 -1
- package/docs/RULES.en-US.md +55 -54
- package/docs/RULES.ru.md +55 -54
- package/docs/RULES_SORTED.en-US.md +75 -74
- package/docs/RULES_SORTED.ru.md +75 -74
- package/docs/api_attrs.md +1 -1
- package/docs/api_entities.md +5 -5
- package/docs/api_fly.md +1 -1
- package/docs/api_localization.md +3 -3
- package/docs/api_nbsp.md +1 -1
- package/docs/api_optalign.md +1 -1
- package/docs/api_parts.md +1 -1
- package/docs/api_rules.md +2 -2
- package/docs/using.md +12 -3
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
# v7.7.0
|
|
4
|
+
Добавлено правило `en-GB/dash/main`, аналогичное `en-US/dash/main`.
|
|
5
|
+
|
|
6
|
+
# v7.6.0
|
|
7
|
+
Добавлен новый тип HTML-сущностей `js`. У Типографа появилась возможность корректно обрабатывать строки с `\uXXXX` в коде JavaScript и TypeScript.
|
|
8
|
+
|
|
9
|
+
```js
|
|
10
|
+
const tp = new Typograf({ locale: 'ru', htmlEntity: { type: 'js', onlyInvisible: true }});
|
|
11
|
+
console.log(tp.execute('1м²')); // '1\\u00a0м²'
|
|
12
|
+
```
|
|
13
|
+
|
|
3
14
|
# v7.5.0
|
|
4
15
|
Добавлено правило `afterShortWordByList` для расстановки неразрывного пробела после союзов, артиклей, предлогов и пр.
|
|
5
16
|
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import type { TypografContext } from '../main';
|
|
2
2
|
export type Entity = [string, number];
|
|
3
|
-
export type TypografHtmlEntityType = 'name' | 'digit' | 'default';
|
|
3
|
+
export type TypografHtmlEntityType = 'name' | 'digit' | 'js' | 'default';
|
|
4
4
|
interface HtmlEntityInfo {
|
|
5
5
|
name: string;
|
|
6
|
-
nameEntity: string;
|
|
7
|
-
digitEntity: string;
|
|
8
6
|
utf: string;
|
|
9
|
-
reName: RegExp;
|
|
10
7
|
reUtf: RegExp;
|
|
8
|
+
type: {
|
|
9
|
+
name: string;
|
|
10
|
+
digit: string;
|
|
11
|
+
js: string;
|
|
12
|
+
};
|
|
11
13
|
}
|
|
12
14
|
declare class HtmlEntities {
|
|
13
15
|
private entities;
|
|
14
16
|
private invisibleEntities;
|
|
15
17
|
private entitiesByName;
|
|
16
18
|
private entitiesByNameEntity;
|
|
19
|
+
private entitiesByJsEntity;
|
|
17
20
|
private entitiesByDigitEntity;
|
|
18
21
|
private entitiesByUtf;
|
|
19
22
|
constructor();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './dash/index';
|
package/dist/rules/index.d.ts
CHANGED
package/dist/typograf.all.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! typograf | ©
|
|
1
|
+
/*! typograf | © 2026 Denis Seleznev | MIT License | https://github.com/typograf/typograf */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -312,11 +312,13 @@
|
|
|
312
312
|
this.entitiesByName = {};
|
|
313
313
|
this.entitiesByNameEntity = {};
|
|
314
314
|
this.entitiesByDigitEntity = {};
|
|
315
|
+
this.entitiesByJsEntity = {};
|
|
315
316
|
this.entitiesByUtf = {};
|
|
316
317
|
this.entities.forEach(function (entity) {
|
|
317
318
|
_this.entitiesByName[entity.name] = entity;
|
|
318
|
-
_this.entitiesByNameEntity[entity.
|
|
319
|
-
_this.entitiesByDigitEntity[entity.
|
|
319
|
+
_this.entitiesByNameEntity[entity.type.name] = entity;
|
|
320
|
+
_this.entitiesByDigitEntity[entity.type.digit] = entity;
|
|
321
|
+
_this.entitiesByJsEntity[entity.type.js] = entity;
|
|
320
322
|
_this.entitiesByUtf[entity.utf] = entity;
|
|
321
323
|
});
|
|
322
324
|
this.invisibleEntities = this.prepareEntities(invisibleEntities);
|
|
@@ -326,9 +328,11 @@
|
|
|
326
328
|
*/
|
|
327
329
|
HtmlEntities.prototype.toUtf = function (context) {
|
|
328
330
|
var _this = this;
|
|
331
|
+
//  
|
|
329
332
|
if (context.text.search(/&#/) !== -1) {
|
|
330
333
|
context.text = this.decHexToUtf(context.text);
|
|
331
334
|
}
|
|
335
|
+
//
|
|
332
336
|
if (context.text.search(/&[a-z]/i) !== -1) {
|
|
333
337
|
// 2 - min length of entity without & and ;. Example: ⅅ
|
|
334
338
|
// 31 - max length of entity without & and ;. Example: ∳
|
|
@@ -337,6 +341,13 @@
|
|
|
337
341
|
return entity ? entity.utf : key;
|
|
338
342
|
});
|
|
339
343
|
}
|
|
344
|
+
// \u00a0
|
|
345
|
+
if (context.text.search(/\\u[\da-f]/i) !== -1) {
|
|
346
|
+
context.text = context.text.replace(/\\u[\da-f]{4};/gi, function (key) {
|
|
347
|
+
var entity = _this.entitiesByJsEntity[key.toLowerCase()];
|
|
348
|
+
return entity ? entity.utf : key;
|
|
349
|
+
});
|
|
350
|
+
}
|
|
340
351
|
};
|
|
341
352
|
/**
|
|
342
353
|
* Entities in decimal or hexadecimal form to UTF-8.
|
|
@@ -356,38 +367,34 @@
|
|
|
356
367
|
HtmlEntities.prototype.restore = function (context) {
|
|
357
368
|
var params = context.prefs.htmlEntity;
|
|
358
369
|
var type = params.type;
|
|
370
|
+
if (type === 'default') {
|
|
371
|
+
return;
|
|
372
|
+
}
|
|
359
373
|
var entities = this.entities;
|
|
360
|
-
if (
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
entities = entities.concat(this.prepareListParam(params.list));
|
|
368
|
-
}
|
|
374
|
+
if (params.onlyInvisible || params.list) {
|
|
375
|
+
entities = [];
|
|
376
|
+
if (params.onlyInvisible) {
|
|
377
|
+
entities = entities.concat(this.invisibleEntities);
|
|
378
|
+
}
|
|
379
|
+
if (params.list) {
|
|
380
|
+
entities = entities.concat(this.prepareListParam(params.list));
|
|
369
381
|
}
|
|
370
|
-
var entityType = type === 'name' ? 'nameEntity' : 'digitEntity';
|
|
371
|
-
context.text = this.restoreEntitiesByIndex(context.text, entityType, entities);
|
|
372
382
|
}
|
|
383
|
+
context.text = this.restoreEntitiesByIndex(context.text, type, entities);
|
|
373
384
|
};
|
|
374
385
|
/**
|
|
375
386
|
* Get a entity by utf using the type.
|
|
376
387
|
*/
|
|
377
388
|
HtmlEntities.prototype.getByUtf = function (symbol, type) {
|
|
378
|
-
var result;
|
|
379
389
|
switch (type) {
|
|
380
390
|
case 'digit':
|
|
381
|
-
|
|
382
|
-
break;
|
|
391
|
+
return this.entitiesByDigitEntity[symbol];
|
|
383
392
|
case 'name':
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
result = symbol;
|
|
388
|
-
break;
|
|
393
|
+
return this.entitiesByNameEntity[symbol];
|
|
394
|
+
case 'js':
|
|
395
|
+
return this.entitiesByJsEntity[symbol];
|
|
389
396
|
}
|
|
390
|
-
return
|
|
397
|
+
return symbol;
|
|
391
398
|
};
|
|
392
399
|
HtmlEntities.prototype.prepareEntities = function (entities) {
|
|
393
400
|
var result = [];
|
|
@@ -396,11 +403,13 @@
|
|
|
396
403
|
var utf = String.fromCharCode(digit);
|
|
397
404
|
result.push({
|
|
398
405
|
name: name,
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
406
|
+
utf: utf, // \u00a0
|
|
407
|
+
reUtf: new RegExp(utf, 'g'),
|
|
408
|
+
type: {
|
|
409
|
+
name: '&' + name + ';', //
|
|
410
|
+
digit: '&#' + digit + ';', //  
|
|
411
|
+
js: '\\u' + ('0000' + digit.toString(16)).slice(-4), // \u00a0
|
|
412
|
+
},
|
|
404
413
|
});
|
|
405
414
|
});
|
|
406
415
|
return result;
|
|
@@ -418,7 +427,7 @@
|
|
|
418
427
|
};
|
|
419
428
|
HtmlEntities.prototype.restoreEntitiesByIndex = function (text, type, entities) {
|
|
420
429
|
entities.forEach(function (entity) {
|
|
421
|
-
text = text.replace(entity.reUtf, entity[type]);
|
|
430
|
+
text = text.replace(entity.reUtf, entity.type[type]);
|
|
422
431
|
});
|
|
423
432
|
return text;
|
|
424
433
|
};
|
|
@@ -806,7 +815,7 @@
|
|
|
806
815
|
return preparedRule;
|
|
807
816
|
}
|
|
808
817
|
|
|
809
|
-
var PACKAGE_VERSION = '7.
|
|
818
|
+
var PACKAGE_VERSION = '7.7.0';
|
|
810
819
|
|
|
811
820
|
function prepareHtmlEntity(htmlEntity) {
|
|
812
821
|
var result = {
|
|
@@ -2356,7 +2365,7 @@
|
|
|
2356
2365
|
copyRule,
|
|
2357
2366
|
]);
|
|
2358
2367
|
|
|
2359
|
-
var mainRule$
|
|
2368
|
+
var mainRule$2 = {
|
|
2360
2369
|
name: 'en-US/dash/main',
|
|
2361
2370
|
index: '-5',
|
|
2362
2371
|
handler: function (text) {
|
|
@@ -2370,6 +2379,12 @@
|
|
|
2370
2379
|
},
|
|
2371
2380
|
};
|
|
2372
2381
|
|
|
2382
|
+
Typograf.addRules([
|
|
2383
|
+
mainRule$2,
|
|
2384
|
+
]);
|
|
2385
|
+
|
|
2386
|
+
var mainRule$1 = __assign(__assign({}, mainRule$2), { name: 'en-GB/dash/main' });
|
|
2387
|
+
|
|
2373
2388
|
Typograf.addRules([
|
|
2374
2389
|
mainRule$1,
|
|
2375
2390
|
]);
|
|
@@ -3310,7 +3325,7 @@
|
|
|
3310
3325
|
switchingKeyboardLayoutRule,
|
|
3311
3326
|
]);
|
|
3312
3327
|
|
|
3313
|
-
var titles = {"common/html/e-mail":{"en-US":"Placement of links for e-mail","ru":"Расстановка ссылок для эл. почты"},"common/html/escape":{"en-US":"Escaping HTML","ru":"Экранирование HTML"},"common/html/nbr":{"en-US":"Replacement line break on <br/>","ru":"Замена перевода строки на <br/>"},"common/html/p":{"en-US":"Placement of paragraph","ru":"Расстановка абзацев"},"common/html/processingAttrs":{"en-US":"Processing HTML attributes","ru":"Типографирование HTML-атрибутов"},"common/html/quot":{"common":"" → \""},"common/html/stripTags":{"en-US":"Removing HTML-tags","ru":"Удаление HTML-тегов"},"common/html/url":{"en-US":"Placement of links","ru":"Расстановка ссылок"},"common/nbsp/afterNumber":{"en-US":"Non-breaking space between number and word","ru":"Нераз. пробел между числом и словом"},"common/nbsp/afterParagraphMark":{"en-US":"Non-breaking space after ¶","ru":"Нераз. пробел после ¶"},"common/nbsp/afterSectionMark":{"en-US":"Non-breaking space after §","ru":"Нераз. узкий пробел после §"},"common/nbsp/afterShortWord":{"en-US":"Non-breaking space after short word","ru":"Нераз. пробел после короткого слова"},"common/nbsp/afterShortWordByList":{"en-US":"Non-breaking space after conjunctions, articles and prepositions","ru":"Нераз. пробел после союзов, артиклей и предлогов"},"common/nbsp/beforeShortLastNumber":{"en-US":"Non-breaking space before number (maximum 2 digits) at end of sentence","ru":"Нераз. пробел перед числом (не более 2 цифр) в конце предложения"},"common/nbsp/beforeShortLastWord":{"en-US":"Non-breaking space before last short word in sentence","ru":"Нераз. пробел перед последним коротким словом в предложении"},"common/nbsp/dpi":{"en-US":"Non-breaking space before lpi and dpi","ru":"Нераз. пробел перед lpi и dpi"},"common/nbsp/nowrap":{"en-US":"Replace non-breaking space to normal space in tags nowrap and nobr","ru":"Заменять нераз. пробел на обычный пробел в тегах nowrap и nobr"},"common/nbsp/replaceNbsp":{"en-US":"Replacing non-breaking space on normal before text correction","ru":"Замена неразрывного пробела на обычный перед типографированием"},"common/number/digitGrouping":{"en-US":"Divide into groups numbers with many digits","ru":"Разбивать длинные числа по разрядам"},"common/number/fraction":{"common":"1/2 → ½, 1/4 → ¼, 3/4 → ¾"},"common/number/mathSigns":{"common":"!= → ≠, <= → ≤, >= → ≥, ~= → ≅, +- → ±"},"common/number/times":{"common":"x → × (10 x 5 → 10×5)"},"common/other/delBOM":{"en-US":"Delete character BOM (Byte Order Mark)","ru":"Удаление символа BOM (Byte Order Mark)"},"common/other/repeatWord":{"en-US":"Removing repeat words","ru":"Удаление повтора слова"},"common/punctuation/apostrophe":{"en-US":"Placement of correct apostrophe","ru":"Расстановка правильного апострофа"},"common/punctuation/delDoublePunctuation":{"en-US":"Removing double punctuation","ru":"Удаление двойной пунктуации"},"common/punctuation/hellip":{"en-US":"Replacement of three points by ellipsis","ru":"Замена трёх точек на многоточие"},"common/punctuation/quote":{"en-US":"Placement of quotation marks in texts","ru":"Расстановка кавычек правильного вида"},"common/punctuation/quoteLink":{"en-US":"Removal quotes outside a link","ru":"Вынос кавычек за пределы ссылки"},"common/space/afterColon":{"en-US":"space after colon","ru":"Пробел после двоеточия"},"common/space/afterComma":{"en-US":"space after comma","ru":"Пробел после запятой"},"common/space/afterExclamationMark":{"en-US":"space after exclamation mark","ru":"Пробел после знака восклицания"},"common/space/afterQuestionMark":{"en-US":"space after question mark","ru":"Пробел после знака вопроса"},"common/space/afterSemicolon":{"en-US":"space after semicolon","ru":"Пробел после точки с запятой"},"common/space/beforeBracket":{"en-US":"Space before opening bracket","ru":"Пробел перед открывающей скобкой"},"common/space/bracket":{"en-US":"Remove extra spaces after opening and before closing bracket","ru":"Удаление лишних пробелов после открывающей и перед закрывающей скобкой"},"common/space/delBeforeDot":{"en-US":"Remove space before dot","ru":"Удаление пробела перед точкой"},"common/space/delBeforePercent":{"en-US":"Remove space before %, ‰ and ‱","ru":"Удаление пробела перед %, ‰ и ‱"},"common/space/delBeforePunctuation":{"en-US":"Remove spaces before punctuation","ru":"Удаление пробелов перед знаками пунктуации"},"common/space/delBetweenExclamationMarks":{"en-US":"Remove spaces before exclamation marks","ru":"Удаление пробелов между знаками восклицания"},"common/space/delLeadingBlanks":{"en-US":"Remove spaces at start of line","ru":"Удаление пробелов в начале строки"},"common/space/delRepeatN":{"en-US":"Remove duplicate line breaks","ru":"Удаление повторяющихся переносов строки"},"common/space/delRepeatSpace":{"en-US":"Removing duplicate spaces between characters","ru":"Удаление повторяющихся пробелов между символами"},"common/space/delTrailingBlanks":{"en-US":"Remove spaces at end of line","ru":"Удаление пробелов в конце строки"},"common/space/insertFinalNewline":{"en-US":"Insert final newline","ru":"Вставить в конце текста перевод строки"},"common/space/replaceTab":{"en-US":"Replacement of tab to 4 spaces","ru":"Замена таба на 4 пробела"},"common/space/squareBracket":{"en-US":"Remove extra spaces after opening and before closing square bracket","ru":"Удаление лишних пробелов после открывающей и перед закрывающей квадратной скобкой"},"common/space/trimLeft":{"en-US":"Remove spaces and line breaks in beginning of text","ru":"Удаление пробелов и переносов строк в начале текста"},"common/space/trimRight":{"en-US":"Remove spaces and line breaks at end of text","ru":"Удаление пробелов и переносов строк в конце текста"},"common/symbols/arrow":{"common":"-> → →, <- → ←"},"common/symbols/cf":{"en-US":"Adding ° to C and F","ru":"Добавление ° к C и F"},"common/symbols/copy":{"common":"(c) → ©, (tm) → ™, (r) → ®"},"en-US/dash/main":{"en-US":"Replace hyphens surrounded by spaces with an em-dash","ru":"Замена дефиса на длинное тире"},"ru/dash/centuries":{"en-US":"Hyphen to dash in centuries","ru":"Замена дефиса на тире в веках"},"ru/dash/daysMonth":{"en-US":"Dash between days of one month","ru":"Тире между днями одного месяца"},"ru/dash/de":{"en-US":"Hyphen before “де”","ru":"Дефис перед «де»"},"ru/dash/decade":{"en-US":"Dash in decade","ru":"Тире в десятилетиях, 80—90-е гг."},"ru/dash/directSpeech":{"en-US":"Dash in direct speech","ru":"Тире в прямой речи"},"ru/dash/izpod":{"en-US":"Hyphen between “из-под”","ru":"Дефис между «из-под»"},"ru/dash/izza":{"en-US":"Hyphen between “из-за”","ru":"Дефис между «из-за»"},"ru/dash/ka":{"en-US":"Hyphen before “ка” and “кась”","ru":"Дефис перед «ка» и «кась»"},"ru/dash/kakto":{"en-US":"Hyphen for “как то”","ru":"Дефис для «как то»"},"ru/dash/koe":{"en-US":"Hyphen after “кое” and “кой”","ru":"Дефис после «кое» и «кой»"},"ru/dash/main":{"en-US":"Replacement hyphen with dash","ru":"Замена дефиса на тире"},"ru/dash/month":{"en-US":"Dash between months","ru":"Тире между месяцами"},"ru/dash/surname":{"en-US":"Acronyms with a dash","ru":"Сокращения с помощью тире"},"ru/dash/taki":{"en-US":"Hyphen between “верно-таки” and etc.","ru":"Дефис между «верно-таки» и т. д."},"ru/dash/time":{"en-US":"Dash in time intervals","ru":"Тире в интервалах времени"},"ru/dash/to":{"en-US":"Hyphen before “то”, “либо”, “нибудь”","ru":"Дефис перед «то», «либо», «нибудь»"},"ru/dash/weekday":{"en-US":"Dash between the days of the week","ru":"Тире между днями недели"},"ru/dash/years":{"en-US":"Hyphen to dash in years","ru":"Замена дефиса на тире в годах"},"ru/date/fromISO":{"en-US":"Converting dates YYYY-MM-DD type DD.MM.YYYY","ru":"Преобразование дат YYYY-MM-DD к виду DD.MM.YYYY"},"ru/date/weekday":{"common":"2 Мая, Понедельник → 2 мая, понедельник"},"ru/money/currency":{"en-US":"Currency symbol ($, €, ¥, Ұ, £ and ₤) after the number, $100 → 100 $","ru":"Символ валюты ($, €, ¥, Ұ, £ и ₤) после числа, $100 → 100 $"},"ru/money/ruble":{"common":"1 руб. → 1 ₽"},"ru/nbsp/abbr":{"en-US":"Non-breaking space in abbreviations, e.g. “т. д.”","ru":"Нераз. пробел в сокращениях, например, в «т. д.»"},"ru/nbsp/addr":{"en-US":"Placement of non-breaking space after “г.”, “обл.”, “ул.”, “пр.”, “кв.” et al.","ru":"Расстановка нераз. пробела после «г.», «обл.», «ул.», «пр.», «кв.» и др."},"ru/nbsp/afterNumberSign":{"en-US":"Non-breaking thin space after №","ru":"Нераз. узкий пробел после №"},"ru/nbsp/beforeParticle":{"en-US":"Non-breaking space before “ли”, “ль”, “же”, “бы”, “б”","ru":"Нераз. пробел перед «ли», «ль», «же», «бы», «б»"},"ru/nbsp/centuries":{"en-US":"Remove spaces and extra points in “вв.”","ru":"Удаление пробелов и лишних точек в «вв.»"},"ru/nbsp/dayMonth":{"en-US":"Non-breaking space between number and month","ru":"Нераз. пробел между числом и месяцем"},"ru/nbsp/initials":{"en-US":"Binding of initials to the name","ru":"Привязка инициалов к фамилии"},"ru/nbsp/m":{"en-US":"m2 → м², m3 → м³ and non-breaking space","ru":"м2 → м², м3 → м³ и нераз. пробел"},"ru/nbsp/mln":{"en-US":"Non-breaking space between number and “тыс.”, “млн”, “млрд” and “трлн”","ru":"Неразр. пробел между числом и «тыс.», «млн», «млрд» и «трлн»"},"ru/nbsp/ooo":{"en-US":"Non-breaking space after “OOO, ОАО, ЗАО, НИИ, ПБОЮЛ”","ru":"Нераз. пробел после OOO, ОАО, ЗАО, НИИ и ПБОЮЛ"},"ru/nbsp/page":{"en-US":"Non-breaking space after “стр.”, “гл.”, “рис.”, “илл.”","ru":"Нераз. пробел после «стр.», «гл.», «рис.», «илл.»"},"ru/nbsp/ps":{"en-US":"Non-breaking space in P. S. and P. P. S.","ru":"Нераз. пробел в P. S. и P. P. S."},"ru/nbsp/rubleKopek":{"en-US":"Not once. space before the “rub” and “cop.”","ru":"Нераз. пробел перед «руб.» и «коп.»"},"ru/nbsp/see":{"en-US":"Non-breaking space after abbreviation «см.» and «им.»","ru":"Нераз. пробел после сокращений «см.» и «им.»"},"ru/nbsp/year":{"en-US":"Non-breaking space before XXXX г. (2012 г.)","ru":"Нераз. пробел после XXXX г. (2012 г.)"},"ru/nbsp/years":{"en-US":"г.г. → гг. and non-breaking space","ru":"г.г. → гг. и нераз. пробел"},"ru/number/comma":{"en-US":"Commas in numbers","ru":"Замена точки на запятую в числах"},"ru/number/ordinals":{"common":"N-ый, -ой, -ая, -ое, -ые, -ым, -ом, -ых → N-й, -я, -е, -м, -х (25-й)"},"ru/optalign/bracket":{"en-US":"for opening bracket","ru":"для открывающей скобки"},"ru/optalign/comma":{"en-US":"for comma","ru":"для запятой"},"ru/optalign/quote":{"en-US":"for opening quotation marks","ru":"для открывающей кавычки"},"ru/other/accent":{"en-US":"Replacement capital letters to lowercase with addition of accent","ru":"Замена заглавной буквы на строчную с добавлением ударения"},"ru/other/phone-number":{"en-US":"Formatting phone numbers","ru":"Форматирование телефонных номеров"},"ru/punctuation/ano":{"en-US":"Placement of commas before “а” and “но”","ru":"Расстановка запятых перед «а» и «но»"},"ru/punctuation/exclamation":{"common":"!! → !"},"ru/punctuation/exclamationQuestion":{"common":"!? → ?!"},"ru/punctuation/hellipQuestion":{"common":"«?…» → «?..», «!…» → «!..», «…,» → «…»"},"ru/space/afterHellip":{"en-US":"Space after “...”, “!..” and “?..”","ru":"Пробел после «...», «!..» и «?..»"},"ru/space/year":{"en-US":"Space between number and word “год”","ru":"Пробел между числом и словом «год»"},"ru/symbols/NN":{"common":"№№ → №"},"ru/typo/switchingKeyboardLayout":{"en-US":"Replacement of Latin letters in Russian. Typos occur when you switch keyboard layouts","ru":"Замена латинских букв на русские. Опечатки, возникающие при переключении клавиатурной раскладки"}};
|
|
3328
|
+
var titles = {"common/html/e-mail":{"en-US":"Placement of links for e-mail","ru":"Расстановка ссылок для эл. почты"},"common/html/escape":{"en-US":"Escaping HTML","ru":"Экранирование HTML"},"common/html/nbr":{"en-US":"Replacement line break on <br/>","ru":"Замена перевода строки на <br/>"},"common/html/p":{"en-US":"Placement of paragraph","ru":"Расстановка абзацев"},"common/html/processingAttrs":{"en-US":"Processing HTML attributes","ru":"Типографирование HTML-атрибутов"},"common/html/quot":{"common":"" → \""},"common/html/stripTags":{"en-US":"Removing HTML-tags","ru":"Удаление HTML-тегов"},"common/html/url":{"en-US":"Placement of links","ru":"Расстановка ссылок"},"common/nbsp/afterNumber":{"en-US":"Non-breaking space between number and word","ru":"Нераз. пробел между числом и словом"},"common/nbsp/afterParagraphMark":{"en-US":"Non-breaking space after ¶","ru":"Нераз. пробел после ¶"},"common/nbsp/afterSectionMark":{"en-US":"Non-breaking space after §","ru":"Нераз. узкий пробел после §"},"common/nbsp/afterShortWord":{"en-US":"Non-breaking space after short word","ru":"Нераз. пробел после короткого слова"},"common/nbsp/afterShortWordByList":{"en-US":"Non-breaking space after conjunctions, articles and prepositions","ru":"Нераз. пробел после союзов, артиклей и предлогов"},"common/nbsp/beforeShortLastNumber":{"en-US":"Non-breaking space before number (maximum 2 digits) at end of sentence","ru":"Нераз. пробел перед числом (не более 2 цифр) в конце предложения"},"common/nbsp/beforeShortLastWord":{"en-US":"Non-breaking space before last short word in sentence","ru":"Нераз. пробел перед последним коротким словом в предложении"},"common/nbsp/dpi":{"en-US":"Non-breaking space before lpi and dpi","ru":"Нераз. пробел перед lpi и dpi"},"common/nbsp/nowrap":{"en-US":"Replace non-breaking space to normal space in tags nowrap and nobr","ru":"Заменять нераз. пробел на обычный пробел в тегах nowrap и nobr"},"common/nbsp/replaceNbsp":{"en-US":"Replacing non-breaking space on normal before text correction","ru":"Замена неразрывного пробела на обычный перед типографированием"},"common/number/digitGrouping":{"en-US":"Divide into groups numbers with many digits","ru":"Разбивать длинные числа по разрядам"},"common/number/fraction":{"common":"1/2 → ½, 1/4 → ¼, 3/4 → ¾"},"common/number/mathSigns":{"common":"!= → ≠, <= → ≤, >= → ≥, ~= → ≅, +- → ±"},"common/number/times":{"common":"x → × (10 x 5 → 10×5)"},"common/other/delBOM":{"en-US":"Delete character BOM (Byte Order Mark)","ru":"Удаление символа BOM (Byte Order Mark)"},"common/other/repeatWord":{"en-US":"Removing repeat words","ru":"Удаление повтора слова"},"common/punctuation/apostrophe":{"en-US":"Placement of correct apostrophe","ru":"Расстановка правильного апострофа"},"common/punctuation/delDoublePunctuation":{"en-US":"Removing double punctuation","ru":"Удаление двойной пунктуации"},"common/punctuation/hellip":{"en-US":"Replacement of three points by ellipsis","ru":"Замена трёх точек на многоточие"},"common/punctuation/quote":{"en-US":"Placement of quotation marks in texts","ru":"Расстановка кавычек правильного вида"},"common/punctuation/quoteLink":{"en-US":"Removal quotes outside a link","ru":"Вынос кавычек за пределы ссылки"},"common/space/afterColon":{"en-US":"space after colon","ru":"Пробел после двоеточия"},"common/space/afterComma":{"en-US":"space after comma","ru":"Пробел после запятой"},"common/space/afterExclamationMark":{"en-US":"space after exclamation mark","ru":"Пробел после знака восклицания"},"common/space/afterQuestionMark":{"en-US":"space after question mark","ru":"Пробел после знака вопроса"},"common/space/afterSemicolon":{"en-US":"space after semicolon","ru":"Пробел после точки с запятой"},"common/space/beforeBracket":{"en-US":"Space before opening bracket","ru":"Пробел перед открывающей скобкой"},"common/space/bracket":{"en-US":"Remove extra spaces after opening and before closing bracket","ru":"Удаление лишних пробелов после открывающей и перед закрывающей скобкой"},"common/space/delBeforeDot":{"en-US":"Remove space before dot","ru":"Удаление пробела перед точкой"},"common/space/delBeforePercent":{"en-US":"Remove space before %, ‰ and ‱","ru":"Удаление пробела перед %, ‰ и ‱"},"common/space/delBeforePunctuation":{"en-US":"Remove spaces before punctuation","ru":"Удаление пробелов перед знаками пунктуации"},"common/space/delBetweenExclamationMarks":{"en-US":"Remove spaces before exclamation marks","ru":"Удаление пробелов между знаками восклицания"},"common/space/delLeadingBlanks":{"en-US":"Remove spaces at start of line","ru":"Удаление пробелов в начале строки"},"common/space/delRepeatN":{"en-US":"Remove duplicate line breaks","ru":"Удаление повторяющихся переносов строки"},"common/space/delRepeatSpace":{"en-US":"Removing duplicate spaces between characters","ru":"Удаление повторяющихся пробелов между символами"},"common/space/delTrailingBlanks":{"en-US":"Remove spaces at end of line","ru":"Удаление пробелов в конце строки"},"common/space/insertFinalNewline":{"en-US":"Insert final newline","ru":"Вставить в конце текста перевод строки"},"common/space/replaceTab":{"en-US":"Replacement of tab to 4 spaces","ru":"Замена таба на 4 пробела"},"common/space/squareBracket":{"en-US":"Remove extra spaces after opening and before closing square bracket","ru":"Удаление лишних пробелов после открывающей и перед закрывающей квадратной скобкой"},"common/space/trimLeft":{"en-US":"Remove spaces and line breaks in beginning of text","ru":"Удаление пробелов и переносов строк в начале текста"},"common/space/trimRight":{"en-US":"Remove spaces and line breaks at end of text","ru":"Удаление пробелов и переносов строк в конце текста"},"common/symbols/arrow":{"common":"-> → →, <- → ←"},"common/symbols/cf":{"en-US":"Adding ° to C and F","ru":"Добавление ° к C и F"},"common/symbols/copy":{"common":"(c) → ©, (tm) → ™, (r) → ®"},"en-GB/dash/main":{"en-US":"Replace hyphens surrounded by spaces with an em-dash","ru":"Замена дефиса на длинное тире"},"en-US/dash/main":{"en-US":"Replace hyphens surrounded by spaces with an em-dash","ru":"Замена дефиса на длинное тире"},"ru/dash/centuries":{"en-US":"Hyphen to dash in centuries","ru":"Замена дефиса на тире в веках"},"ru/dash/daysMonth":{"en-US":"Dash between days of one month","ru":"Тире между днями одного месяца"},"ru/dash/de":{"en-US":"Hyphen before “де”","ru":"Дефис перед «де»"},"ru/dash/decade":{"en-US":"Dash in decade","ru":"Тире в десятилетиях, 80—90-е гг."},"ru/dash/directSpeech":{"en-US":"Dash in direct speech","ru":"Тире в прямой речи"},"ru/dash/izpod":{"en-US":"Hyphen between “из-под”","ru":"Дефис между «из-под»"},"ru/dash/izza":{"en-US":"Hyphen between “из-за”","ru":"Дефис между «из-за»"},"ru/dash/ka":{"en-US":"Hyphen before “ка” and “кась”","ru":"Дефис перед «ка» и «кась»"},"ru/dash/kakto":{"en-US":"Hyphen for “как то”","ru":"Дефис для «как то»"},"ru/dash/koe":{"en-US":"Hyphen after “кое” and “кой”","ru":"Дефис после «кое» и «кой»"},"ru/dash/main":{"en-US":"Replacement hyphen with dash","ru":"Замена дефиса на тире"},"ru/dash/month":{"en-US":"Dash between months","ru":"Тире между месяцами"},"ru/dash/surname":{"en-US":"Acronyms with a dash","ru":"Сокращения с помощью тире"},"ru/dash/taki":{"en-US":"Hyphen between “верно-таки” and etc.","ru":"Дефис между «верно-таки» и т. д."},"ru/dash/time":{"en-US":"Dash in time intervals","ru":"Тире в интервалах времени"},"ru/dash/to":{"en-US":"Hyphen before “то”, “либо”, “нибудь”","ru":"Дефис перед «то», «либо», «нибудь»"},"ru/dash/weekday":{"en-US":"Dash between the days of the week","ru":"Тире между днями недели"},"ru/dash/years":{"en-US":"Hyphen to dash in years","ru":"Замена дефиса на тире в годах"},"ru/date/fromISO":{"en-US":"Converting dates YYYY-MM-DD type DD.MM.YYYY","ru":"Преобразование дат YYYY-MM-DD к виду DD.MM.YYYY"},"ru/date/weekday":{"common":"2 Мая, Понедельник → 2 мая, понедельник"},"ru/money/currency":{"en-US":"Currency symbol ($, €, ¥, Ұ, £ and ₤) after the number, $100 → 100 $","ru":"Символ валюты ($, €, ¥, Ұ, £ и ₤) после числа, $100 → 100 $"},"ru/money/ruble":{"common":"1 руб. → 1 ₽"},"ru/nbsp/abbr":{"en-US":"Non-breaking space in abbreviations, e.g. “т. д.”","ru":"Нераз. пробел в сокращениях, например, в «т. д.»"},"ru/nbsp/addr":{"en-US":"Placement of non-breaking space after “г.”, “обл.”, “ул.”, “пр.”, “кв.” et al.","ru":"Расстановка нераз. пробела после «г.», «обл.», «ул.», «пр.», «кв.» и др."},"ru/nbsp/afterNumberSign":{"en-US":"Non-breaking thin space after №","ru":"Нераз. узкий пробел после №"},"ru/nbsp/beforeParticle":{"en-US":"Non-breaking space before “ли”, “ль”, “же”, “бы”, “б”","ru":"Нераз. пробел перед «ли», «ль», «же», «бы», «б»"},"ru/nbsp/centuries":{"en-US":"Remove spaces and extra points in “вв.”","ru":"Удаление пробелов и лишних точек в «вв.»"},"ru/nbsp/dayMonth":{"en-US":"Non-breaking space between number and month","ru":"Нераз. пробел между числом и месяцем"},"ru/nbsp/initials":{"en-US":"Binding of initials to the name","ru":"Привязка инициалов к фамилии"},"ru/nbsp/m":{"en-US":"m2 → м², m3 → м³ and non-breaking space","ru":"м2 → м², м3 → м³ и нераз. пробел"},"ru/nbsp/mln":{"en-US":"Non-breaking space between number and “тыс.”, “млн”, “млрд” and “трлн”","ru":"Неразр. пробел между числом и «тыс.», «млн», «млрд» и «трлн»"},"ru/nbsp/ooo":{"en-US":"Non-breaking space after “OOO, ОАО, ЗАО, НИИ, ПБОЮЛ”","ru":"Нераз. пробел после OOO, ОАО, ЗАО, НИИ и ПБОЮЛ"},"ru/nbsp/page":{"en-US":"Non-breaking space after “стр.”, “гл.”, “рис.”, “илл.”","ru":"Нераз. пробел после «стр.», «гл.», «рис.», «илл.»"},"ru/nbsp/ps":{"en-US":"Non-breaking space in P. S. and P. P. S.","ru":"Нераз. пробел в P. S. и P. P. S."},"ru/nbsp/rubleKopek":{"en-US":"Not once. space before the “rub” and “cop.”","ru":"Нераз. пробел перед «руб.» и «коп.»"},"ru/nbsp/see":{"en-US":"Non-breaking space after abbreviation «см.» and «им.»","ru":"Нераз. пробел после сокращений «см.» и «им.»"},"ru/nbsp/year":{"en-US":"Non-breaking space before XXXX г. (2012 г.)","ru":"Нераз. пробел после XXXX г. (2012 г.)"},"ru/nbsp/years":{"en-US":"г.г. → гг. and non-breaking space","ru":"г.г. → гг. и нераз. пробел"},"ru/number/comma":{"en-US":"Commas in numbers","ru":"Замена точки на запятую в числах"},"ru/number/ordinals":{"common":"N-ый, -ой, -ая, -ое, -ые, -ым, -ом, -ых → N-й, -я, -е, -м, -х (25-й)"},"ru/optalign/bracket":{"en-US":"for opening bracket","ru":"для открывающей скобки"},"ru/optalign/comma":{"en-US":"for comma","ru":"для запятой"},"ru/optalign/quote":{"en-US":"for opening quotation marks","ru":"для открывающей кавычки"},"ru/other/accent":{"en-US":"Replacement capital letters to lowercase with addition of accent","ru":"Замена заглавной буквы на строчную с добавлением ударения"},"ru/other/phone-number":{"en-US":"Formatting phone numbers","ru":"Форматирование телефонных номеров"},"ru/punctuation/ano":{"en-US":"Placement of commas before “а” and “но”","ru":"Расстановка запятых перед «а» и «но»"},"ru/punctuation/exclamation":{"common":"!! → !"},"ru/punctuation/exclamationQuestion":{"common":"!? → ?!"},"ru/punctuation/hellipQuestion":{"common":"«?…» → «?..», «!…» → «!..», «…,» → «…»"},"ru/space/afterHellip":{"en-US":"Space after “...”, “!..” and “?..”","ru":"Пробел после «...», «!..» и «?..»"},"ru/space/year":{"en-US":"Space between number and word “год”","ru":"Пробел между числом и словом «год»"},"ru/symbols/NN":{"common":"№№ → №"},"ru/typo/switchingKeyboardLayout":{"en-US":"Replacement of Latin letters in Russian. Typos occur when you switch keyboard layouts","ru":"Замена латинских букв на русские. Опечатки, возникающие при переключении клавиатурной раскладки"}};
|
|
3314
3329
|
|
|
3315
3330
|
var groups = [
|
|
3316
3331
|
{
|