Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Доработки по расстановке кавычек и апострофа
- Loading branch information
Showing
9 changed files
with
65 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
Typograf.data('common/quote', '«‹»›„‚“‟‘‛”’"'); | ||
Typograf.data('common/quote', '«‹»›„“‟”"'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Typograf.rule({ | ||
name: 'common/punctuation/apostrophe', | ||
handler: function(text) { | ||
var letters = '([' + this.data('l') + '])', | ||
re = new RegExp(letters + '\'' + letters, 'gi'); | ||
|
||
return text.replace(re, '$1’$2'); | ||
} | ||
}); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
tests.push(['common/punctuation/apostrophe', [ | ||
[ | ||
'Жанна д\'Арк, О\'Коннор, д\'Артаньян', | ||
'Жанна д’Арк, О’Коннор, д’Артаньян', | ||
'ru' | ||
], | ||
[ | ||
'c-moll\'ная увертюра, пользоваться E-mail\'ом', | ||
'c-moll’ная увертюра, пользоваться E-mail’ом', | ||
'ru' | ||
], | ||
[ | ||
'Кот-д\'Ивуар', | ||
'Кот-д’Ивуар', | ||
'ru' | ||
], | ||
[ | ||
'Л\'Алькерия-д\'Аснар', | ||
'Л’Алькерия-д’Аснар', | ||
'ru' | ||
], | ||
[ | ||
'Не говорите плохо о Yoko, хотя бы из-за уважения к Lennon\'у', | ||
'Не говорите плохо о Yoko, хотя бы из-за уважения к Lennon’у', | ||
'ru' | ||
], | ||
[ | ||
'О\'Коннор, О\'Хара, О\'Нил, О\'Хиггинс, О\'Куинн, О\'Кейси', | ||
'О’Коннор, О’Хара, О’Нил, О’Хиггинс, О’Куинн, О’Кейси', | ||
'ru' | ||
], | ||
[ | ||
'Кот-д\'Ор, Кот-д\'Армор, Л\'Умо, Пон-л\'Эвек, Л\'Иль-сюр-ла-Сорг, Морро-д\'Оро, Морро-д\'Альба, Л\'Алькерия-д\'Аснар', | ||
'Кот-д’Ор, Кот-д’Армор, Л’Умо, Пон-л’Эвек, Л’Иль-сюр-ла-Сорг, Морро-д’Оро, Морро-д’Альба, Л’Алькерия-д’Аснар', | ||
'ru' | ||
], | ||
[ | ||
'Yesterday I saw Jack\'s dog', | ||
'Yesterday I saw Jack’s dog', | ||
'en' | ||
], | ||
[ | ||
'tables\' legs', | ||
'tables\' legs', | ||
'en' | ||
], | ||
[ | ||
'Katie\'s and Erin\'s houses are beautiful.', | ||
'Katie’s and Erin’s houses are beautiful.', | ||
'en' | ||
] | ||
]]); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ const tests = [ | |
], | ||
[ | ||
'Bob’s', | ||
'Bobʼs' | ||
'Bob’s' | ||
] | ||
]; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -234,7 +234,7 @@ const ruTests = [ | |
], | ||
[ | ||
'LO\'Лайт', | ||
'LOʼЛайт' | ||
'LO’Лайт' | ||
], | ||
[ | ||
'ООО "Рога и копыта"', | ||
|