fixes — standard fixes for replace.py script#

File containing all standard fixes. 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.

  • yu-tld - Fix links to .yu domains, which are disabled.

    See: https://lists.wikimedia.org/pipermail/wikibots-l/2009-February/000290.html

  • 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