# -*- coding: utf-8 -*- help = u""" * 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, so you can run this in automatic mode. * case-de - fix upper/lower case errors in German * grammar-de - fix grammar and typography in German * vonbis - Ersetze Binde-/Gedankenstrich durch "bis" in German * music - Links auf Begriffsklärungen in German * datum - specific date formats in German * correct-ar - Corrections for Arabic Wikipedia and any Arabic wiki. * yu-tld - the yu top-level domain will soon be disabled, see * fckeditor - Try to convert FCKeditor HTML tags to wiki syntax. http://lists.wikimedia.org/pipermail/wikibots-l/2009-February/000290.html """ fixes = { # These replacements will convert HTML to wiki syntax where possible, and # make remaining tags XHTML compliant. 'daily-cleanup-regex': { 'regex': True, 'msg': { 'de': u'Bot: Textersetzungen ([[User:PlasmarelaisBot/Befehle/fixes.py|Befehl]])', }, 'replacements': [ (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), (r'falsch', r'richtig'), ], 'exceptions': { 'inside-tags': [ 'nowiki', 'comment', 'math', 'pre' ], } }, 'daily-cleanup': { 'regex': False, 'msg': { 'de': u'Bot: Textersetzungen ([[User:PlasmarelaisBot/Befehle/fixes.py|Befehl]])', }, 'replacements': [ (r'[[Kategorie: ', r'[[Kategorie:'), (r'[[Category:', r'[[Kategorie:'), (r'[[Datei: ', r'[[Datei:'), (r'[[File:', r'[[Datei:'), (r'[[Bild:', r'[[Datei:'), (r'[[Image:', r'[[Datei:'), (r'Charaktäre', r'Charaktere'), (r'aussen ', r'außen '), (r'B\'Elana', r'B\'Elanna'), (r'Barcley', r'Barclay'), (r'begiebt', r'begibt'), (r'Checkov', r'Chekov'), (r'daß', r'dass'), (r'denoch', r'dennoch'), (r'epsiode', r'episode'), (r'entgültig', r'endgültig'), (r'entgültige', r'endgültige'), (r'Enteprise', r'Enterprise'), (r'Enterpise', r'Enterprise'), (r'Förderation', r'Föderation'), (r'Geplenkel', r'Geplänkel'), (r'gesammt', r'gesamt'), (r'gesammte', r'gesamte'), (r'herraus', r'heraus'), (r'Kasedy', r'Kasidy Yates'), (r'LaForge', r'La Forge'), (r'Leutenant', r'Lieutenant'), (r'Lieutnant', r'Lieutenant'), (r'Lizens', r'Lizenz'), (r'lizensiert', r'lizenziert'), (r'Lizensierung', r'Lizenzierung'), (r'Noonian Soong', r'Noonien Soong'), (r'Qonos', r'Qo\'noS'), (r'Quo\'noS', r'Qo\'noS'), (r'Standart', r'Standard'), (r'Terretorium', r'Territorium'), (r'Trineer', r'Trinneer'), (r'udn', r'und'), (r'übrigends', r'übrigens'), (r'vorallem', r'vor allem'), (r'vorrüber', r'vorüber'), (r'Wiederstand', r'Widerstand'), ], 'exceptions': { 'inside-tags': [ 'nowiki', 'comment', 'math', 'pre' ], } }, } # # Load the user fixes file. from pywikibot import config try: exec(compile(open(config.datafilepath("user-fixes.py")).read(), config.datafilepath("user-fixes.py"), 'exec')) except IOError: pass
Nutzung von Community-Inhalten gemäß CC-BY-NC, sofern nicht anders angegeben.