Skip to content

Replaces hyphens and quotation marks. Place `ё` in some russian words. Works only in the <textarea>. If you select a part of the text, only that part will be processed.

Notifications You must be signed in to change notification settings

glebkema/tampermonkey-textarea-typograf

Repository files navigation

Tampermonkey Textarea Typograf

  • Replaces hyphens, nested quotation marks and some uncanonic smiles.
  • Place the letter "yo" in some russian words.

Works only in the <textarea> fields. If you select a part of the text, only that part will be processed.

Tested only for Chrome: Tampermonkey.

Incompatible with Safari and IE11 due to the use of lookbehind in JS regular expressions.

Testing by Mocha

Install:

$ npm install --global mocha

Run all tests:

mocha test

Check main methods:

mocha test/test.js

Check the efficiency of the algorithm on the words with the letter "yo" collected by the project http://python.anabar.ru/yo.htm

mocha test/test-yobase.js

On 2024-03-09 the script corrected 10748 words out of 58138 = 18.49 %

Check the efficiency of the algorithm on the ajectives only

mocha test/test-adjectives.js

On 2024-03-09 the script corrected 351 words out of 2395 = 14.66 %

About

Replaces hyphens and quotation marks. Place `ё` in some russian words. Works only in the <textarea>. If you select a part of the text, only that part will be processed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •