Wikipedysta:Sunridin.bot

Ten użytkownik jest botem polskojęzycznej Wikipedii.
pth Python jest językiem ojczystym tego użytkownika.

Sunridin.bot (kiedyś pod nazwą BrokenglaSSbot)

Krótki opis

Poprawiam wzory w LaTeX-u. Będę poprawiał błędy językowe (zła odmiana skrótowców, wziąść na wziąć, etc).

Flagę bota otrzymałem o 10:06, 15 lut 2007 (CET) dzięki Gdarinowi [1].

Charakterystyka

Liczniki edycji

Listy dla bota

Pracuję sobie i pracuję…


Regułki

  • poprawki całek: "\\\\int(_| _|\^| \^)" "\\\\int\limits\1"
  • tg i ctg: "( |>)(tg|ctg)" "\1\operatorname{\2}"
  • tan na tg: "\\\\tan" "\\\\operatorname{tg}"
  • / na kreski ułamkowe (niedokończone): "([0-9])(/| /|/ | / )([0-9]) " "\\\\frac{\1}{\3}"
fixes = {
    # These replacements will convert HTML to wiki syntax where possible, and
    # make remaining tags XHTML compliant.
    # pl.wikipedia: LaTeX fixes
    'latex': {
        'regex': True,
        'msg': {
             'pl':u'[[Wikipedysta:BrokenglaSSbot|BrokenglaSSbot]] poprawia LaTeX',
             },
        'replacements': [
(u"\\\\(i|ii|iii|iiii|oi|oii|oiii|oiiii)nt(_| _|\^| \^)", ur"\\\1nt\limits\2"),
(u"( |>|\{|}|\)|\()(tg|ctg)(\\\\| |<|\{|\)|\()", ur"\1\\operatorname{\2}\3"),
(u"( |>|\{|}|\)|\()tan(\\\\| |<|\{|\}|\)|\()", ur"\1\\operatorname{tg}\2"),
(u"( |>|\{|}|\)|\()cot(\\\\| |<|\{|\}|\)|\()", ur"\1\\operatorname{ctg}\2"),
(u"\\\\tan(\\\\| |<|\{|\)|\()", ur"\\operatorname{tg}\1"),
(u"\\\\cot(\\\\| |<|\{|\)|\()", ur"\\operatorname{ctg}\1"),
(u"( |>|\{|}|\)|\()(sin|cos|sinh|cosh|arcsin|arccos|sec|csc|lim|limsup|liminf|inf|min|max|sup|exp|ln|log|lg)(\\\\| |<|\{|\)|\()", ur"\1\\\2\3"),
# (u"<math>*[...]*</math>", ur"<math> dupa </math>"),
#(r"[.][.][.]", r"\\cdots"),
#(u"[^(<math>)]\\\\(i|ii|iii|iiii|oi|oii|oiii|oiiii)nt(_| _|\^| \^)", ur"\\\2nt\limits\3"),
#(u"( |>|\{|}|\)|\()(tg|ctg)(.+?)</math>", ur"\1\\operatorname{\2}\3</math>"),
#(u"\\\\tan(\\\\| )(.+?)</math>", ur"\\operatorname{tg}\1\2</math>"),
#(u"\\\\cot(\\\\| )(.+?)</math>", ur"\\operatorname{ctg}\1\2</math>"),
#(u"( |>|\{|}|\)|\()(sin|cos|sinh|cosh|arcsin|arccos|sec|csc|lim|limsup|liminf|inf|min|max|sup|exp|ln|log|lg)( |\\\\|\{)(.+?)</math>", ur"\1\\\2\3\4</ math>"),
        ]
    },
    #odmiany
    'pol': {
        'regex': True,
        'msg': {
               'pl':u'[[Wikipedysta:BrokenglaSSbot|BrokenglaSSbot]] poprawia język',
              },
        'replacements': [
(u"([A-ZĄĆĘŁÓŹŻŃŚ])(\]\]|)('|`|)(a|owi|em|u|e|o|i|y|ę|ą|om|ami|ach|ów)(,|\.|:|;| |\)|\]|\?|!)", ur"\1\2-\4\5"),
        ]
    },
    # links
    'lnk': {
        'regex': True,
        # 'exceptions':  ['Wikiped'],
        'msg': {
               'pl':u'[[Wikipedysta:BrokenglaSSbot|BrokenglaSSbot]] poprawia linki',
              },
        'replacements': [
#(u"\[\[Windows\]\]", ur"[[Microsoft Windows|Windows]]"),
# (u"\[\[MacOS(\]\]|\|)", ur"[[Mac OS\1"),
#(u"\[\[(g|G)eny\]\]", ur"[[\1en]]y"),
#(u"\[\[(g|G)eny\|", ur"[[\1eny|"),
#(u"\[\[(c|C)horoby( |_)zakaźne\]\]", ur"[[\1horoba zakaźna|\1horoby zakaźne]]"),
#(u"\[\[(c|C)horoby( |_)zakaźne\|", ur"[[\1horoba zakaźna|"),
(u"\[\[Paramount\]\]", ur"[[Paramount Pictures|Paramount]]"),
(u"\[\[Paramount\|", ur"[[Paramount Pictures|"),
        ]
    },
}

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.
Kembali kehalaman sebelumnya