Difference between revisions 55577 and 58145 on cawikisource

/*Barreja de diferents Mediawikis de Wikisource (ThomasV, Pathoschild, et al.)*/

function Fragment_Tipo(text) {
 var typo_def = new Array (
  "(  )", " ",
  "(— )", "—",
  "( —)", "—",
  "(- )", "-",
(contracted; show full)  "(loient )", "lment ",
  "(ni[ce][nu]y)", "menys",
  "(mo[iïíìl!1]t)", "molt",
  "(—jN)", "—¡N",
  "(n[*'\\^])", "n'",
  "([*'\\^]n)", "'n",
  " [nu]o ", " no ",
  "
nl[a-z][un][lt]([ ;.:r])[aeiou]","nt$1",  //entre, -ntcontra
  "(oU)", "oll",
  "(—jP)", "—¡P",
  "(prc)", "pre",
  "(—[ij]Q)", "—¡Q",
  "(Q[anou][ce])", "Que",
  "(Q[anou][iïíìl!1I])", "Qui",
  "([çq][*'\\^])", "q'",
(contracted; show full)  " [tl][iIïíìÏÌÍIL][un][ce]([h ;.:])"," tinc$1",
  "(trc)", "tre", //tb "tro"
  "( [nu][nu] )", " un ", //tb " nu "
  "( [nu][nu][oa] )", " una ", //tb " nua "
  "(uU)", "ull",
  "(▼)", "V",
  "v[ce]ll", "vell",

  "exlr", "extr",
  "(•)", ".",
  "([*\\^])", " "
 );
 
 var lng = typo_def.length;
 if (lng % 2 != 0) return text;
 for (var i = 0; i < lng; i += 2) {
  search = new RegExp(typo_def[i + 0], "g");
(contracted; show full) }
}
function add_Corr_button(){
 if (wgNamespaceNumber == 102) {
  addButton2("wpRep","Correccions automàtiques","Correcció automàtica", "//upload.wikimedia.org/wikipedia/commons/a/af/Button_Fractur_OCR.png", CreaFormulari);
 }
}
addOnloadHook(add_Corr_button);