利用者:村田ラジオ/common.js

提供:Wikisource

注意: 保存後、変更を確認するにはブラウザーのキャッシュを消去する必要がある場合があります。

  • Firefox / Safari: Shift を押しながら 再読み込み をクリックするか、Ctrl-F5 または Ctrl-R を押してください (Mac では ⌘-R)
  • Google Chrome: Ctrl-Shift-R を押してください (Mac では ⌘-Shift-R)
  • Internet Explorer / Microsoft Edge: Ctrl を押しながら 最新の情報に更新 をクリックするか、Ctrl-F5 を押してください
  • Opera: Ctrl-F5を押してください
// Converter to ruby
//importScript('User:CES1596/to-ruby0.js');

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

// OCR tool based on wikisource.org's MediaWiki:OCR.js, MediaWiki:GoogleOCR.js and User:Putnik/TesseractOCR.js
//importScript('User:CES1596/OCR0.js');

// Simplified OCR tool based on wikisource.org's MediaWiki:GoogleOCR.js
//importScript('User:CES1596/OCR1.js');

// convert to CJK unified ideographs
importScript('User:CES1596/to-CJKui.js');

// Converter to Modern Japanese Writing
//importScript('User:Sat.d.h./modern-ja-writing.js');

// Converter to old character
// ボタン操作により辞書ファイルをもとに変換テーブルを作成し、テキストエリア内の新漢字を旧漢字に自動変換します。
// [[テンプレート:新旧字体変換用辞書]]に掲載されている文字を対象とします。
// 複数の候補のあるもの(剣->劔劍、弁->辨辯瓣、間->間閒など)、CJK互換漢字、サロゲートペア(沿の旧漢字が該当)は変換されません。
//importScript('User:CES1596/to-old-char2.js');
// ボタン操作により辞書ファイルをもとに変換テーブルを作成し、idプロパティがmw-content-textの要素に対して、新漢字と旧漢字の代替候補を「▼▲」で挟んで表示します。
// importScript('User:CES1596/MediaWiki-Gadget-to-old-char0.js');

/**
 * TemplateScript adds configurable templates and scripts to the sidebar, and adds an example regex editor.
 * @see [[meta:TemplateScript]]
 * @update-token [[File:Pathoschild/templatescript.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/i18n/ja.js');
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.templatescript.js');