fixes — standard fixes for replace.py script#

File containing all standard fixes.

Removed in version 11.0: The yu-tld predefined fix was removed.

Currently available predefined fixes:

  • HTML - Convert HTML tags to wiki syntax, and fix XHTML.

  • isbn - Fix badly formatted ISBNs.

  • syntax - Try to fix bad wiki markup. Do not run this in automatic mode, as the bot may make mistakes.

  • syntax-safe - Like syntax, but less risky; can be run in automatic mode.

  • case-de - Fix upper/lower case errors in German.

  • grammar-de - Fix grammar and typography in German.

  • vonbis - Replace hyphens or dashes with “bis” in German.

  • music - Links to disambiguation pages in German.

  • datum - Specific date formats in German.

  • correct-ar - Typo corrections for Arabic Wikipedia and other Arabic wikis.

  • fckeditor - Convert FCKeditor HTML tags to wiki syntax.

fixes._load_file(filename)[source]#

Load the fixes from the given filename.

Returns True if the file existed and was loaded, False otherwise.

Parameters:

filename (str)

Return type:

bool