Toscead betweox fadungum "MediaWiki:Gadget-spellingstyle.js"
Content deleted Content added
No edit summary |
No edit summary |
||
Líne 25:
convertStyle(contentClone, "gw", targetstyle);
convertStyle(contentClone, "yoghwynn", targetstyle);
convertStyle(contentClone, "insularwynn", targetstyle);
convertStyle(contentClone, "runes", targetstyle);
$("#mw-content-text").hide();
Line 31 ⟶ 32:
$(".click-gw").click({"outputstyle": "gw"}, doConv);
$(".click-yoghwynn").click({"outputstyle": "yoghwynn"}, doConv);
$(".click-insularwynn").click({"outputstyle": "insularwynn"}, doConv);
$(".click-runes").click({"outputstyle": "runes"}, doConv);
}
Line 47 ⟶ 49:
"ᚾ": "n",
"ᛁ": "i",
"ᛄ": "
"ᛇ": "ēo",
"ᛈ": "p",
Line 87 ⟶ 89:
"i": "ᛁ",
"ī": "ᛁ",
"j": "ᛄ",
"ġ": "ᛄ",
"k": "ᚳ",
Line 168 ⟶ 171:
var temp = inputhtml;
if (inputstyle == outputstyle) return inputhtml;
if (inputstyle
temp = myReplace(temp, /
temp = myReplace(temp, /
temp = myReplace(temp, /
} else if (inputstyle == "yoghwynn" && outputstyle == "gw") {▼
temp = myReplace(temp, /
temp = myReplace(temp, /
temp = myReplace(temp, /
}
} else if (inputstyle == "runes") {
for (var rune in runes) {
Line 191 ⟶ 201:
temp = myReplace(temp, latin, runes2[latin]);
}
▲ temp = myReplace(temp, /á/g, "ā");
▲ temp = myReplace(temp, /ǽ/g, "ǣ");
▲ temp = myReplace(temp, /é/g, "ē");
▲ temp = myReplace(temp, /í/g, "ī");
▲ temp = myReplace(temp, /ó/g, "ō");
▲ temp = myReplace(temp, /ú/g, "ū");
}
return temp;
}
Line 257 ⟶ 250:
*/
$(function($) {
if ( mw.config.get( 'wgAction' ) !== 'view') {
$("#mw-content-text").prepend($("<center class=\"nochange\"><small>[ <a href=\"javascript:void(0);\" class=\"click-gw\">gw</a> ] [ <a href=\"javascript:void(0);\" class=\"click-yoghwynn\">ȝƿ</a> ] [ <a href=\"javascript:void(0);\" class=\"click-runes\">ᚱᚢᚾ</a> ]<sup><a href=\"/wiki/Wikipedia:Stylistic_and_font_options\" title=\"Style and font help\">?</a></sup></small></center>"));▼
return;
}
▲ $("#mw-content-text").prepend($("<center class=\"nochange\"><small>[ <a href=\"javascript:void(0);\" class=\"click-gw\">gw</a> ] [ <a href=\"javascript:void(0);\" class=\"click-yoghwynn\">ȝƿ</a> ] [ <a href=\"javascript:void(0);\" class=\"click-insularwynn\">ᵹƿ</a> ] [ <a href=\"javascript:void(0);\" class=\"click-runes\">ᚱᚢᚾ</a> ]<sup><a href=\"/wiki/Wikipedia:Stylistic_and_font_options\" title=\"Style and font help\">?</a></sup></small></center>"));
$(".click-gw").click({"outputstyle": "gw"}, doConv);
$(".click-insularwynn").click({"outputstyle": "insularwynn"}, doConv);
$(".click-yoghwynn").click({"outputstyle": "yoghwynn"}, doConv);
$(".click-runes").click({"outputstyle": "runes"}, doConv);
|