User talk:Samwilson/PageCleanUp.js

Latest comment: 2 years ago by Samwilson in topic Discussions

How to use this edit

Adds a toolbar button to clean up OCR text. This is a fork of part of MediaWiki:TemplateScript/proofreading.js, to re-implement it as a toolbar button. To use, add this to your common.js page:

mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/PageCleanUp.js&action=raw&ctype=text/javascript');

Discussions edit

@Samwilson: Can you change .replace(/,(\s[A-Z])/g, '.$1') to .replace(/,(\s[A-HJ-Z])/g, '.$1'), so that it doesn't autocorrect ", I"? Nosferattus (talk) 22:16, 31 August 2021 (UTC)Reply

@Nosferattus Good idea, done! Sam Wilson 00:36, 1 September 2021 (UTC)Reply