User:UnderlyingBot

From Wikisource
Jump to navigation Jump to search

Regex changes[edit]

  • "(\b)uot(\b)" -> "\1not\2": change 'uot' to 'not;
  • "(\b)sorm" -> "\1form": 'sorm' to 'form';
  • "([a-zA-Z])8" -> "\1s": '8' to 's', when preceded or followed by letters;
  • "8([a-zA-Z])" -> "s\1"
  • "([a-zA-Z])1" -> "\1i": '1' to 'i', when preceded or followed by letters;
  • "1([a-zA-Z])" -> "i\1"
  • "([a-zA-Z])@" -> "\1a": '@' to 'a', when preceded or followed by letters;
  • "@([a-zA-Z])" -> "a\1"
  • "OS[\w]x(\.|,)" -> "OSax.": fix typo in the abbreviation (Old Saxon);
  • "(\b)tle(\b)" -> "\1the\2": 'tle' to 'the';
  • "(¿|©)[\s]?" -> "‘": opening single quote instead of ¿,©;
  • "(\b)(Á|Â)S\." -> "\1AS.": fix typo in the abbreviation (Anglo-Saxon);
  • "\b(MidHG|Fr|Ital|LG|E|AS|OHG|Du|OSax|Sans|MidLat|Lat|Goth|OIr|Lith|OSlov|OIc)\. ([^\s\)]+)(,|\.|;|\()", r"\1. \2\3", x): apply italics to the word after the language label;
  • "(\b)(S)({|<)(\w)" -> "\1sch\4": 'S<' and 'S{' into 'Sch';
  • "schh" -> "sch"
  • "\s([;])" -> "\1": remove space before semicolon;
  • "([‘“])\s" -> "\1": space after opening quote sign;
  • "&([a-zA-Z])" -> "h\1" '&' to 'h', when preceded or followed by letters;
  • "([a-zA-Z])&" -> "\1h"
  • "&([a-zA-Z])" -> "h\1"
  • "line=ipx\s" -> "line=1px "