User:CES1596/common.js

// Button "Regular expressions" mw.loader.load('https://wikisource.org/w/index.php?title=MediaWiki:RegexpButton.js&action=raw&ctype=text/javascript');

// Google OCR mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:GoogleOCR.js&action=raw&ctype=text/javascript');

// OCR tools importScript('User:CES1596/OCR2.js‎');

// Configuration for MathJax rendering var mathTags = $('.mwe-math-mathml-a11y'); if (mathTags.length > 0){ //only do something when there's math on the page window.MathJax = { //hook into MathJax's configuration AuthorInit: function { MathJax.Hub.Register.StartupHook("End",function { //when MathJax is done...        MathJax.Hub.Queue( function{ mathTags.removeClass('mwe-math-mathml-a11y'); // .. make the span around MathML (now MathJax output) visible $('.mwe-math-fallback-image-inline').addClass('mwe-math-mathml-a11y'); //hide fallback images }       );      });    }  };  mw.loader.load('https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=MML_HTMLorMML-full');//load MathJax with a suitable combined config file }

/** * Add several tools useful when proofreading pages in the Page: namespace. * @see https://en.wikisource.org/wiki/Wikisource:TemplateScript */ mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/proofreading.js&action=raw&ctype=text/javascript');

/** * Add several tools for editing typography like diacritics and letter case. * @see https://en.wikisource.org/wiki/Wikisource:TemplateScript */ mw.loader.load('//en.wikisource.org/w/index.php?title=MediaWiki:TemplateScript/typography.js&action=raw&ctype=text/javascript');