Bináris | 23 Jun 2012 22:59
Picon

Manual of fixes.py

As a preparation to my upcoming presentaion at Wikimania (http://wikimania2012.wikimedia.org/wiki/Submissions/Efficient_and_flexible_text_manipulation,_spelling_correction_and_page_collections_with_Pywikibot) I wrote the missing manpage of fixes.py. Please review and complete if necessary.
http://www.mediawiki.org/wiki/Manual:Pywikipediabot/fixes.py

--
Bináris

_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
info | 23 Jun 2012 23:39
Picon

Re: Manual of fixes.py

if the 'msg' key is not a dict but a basestring this is interpreted as a i18n modul name and the messages are
retrieved  from i18n folder. You'll see an example at fixes['isbn'] where 'isbn-formatting' is assigned
to the 'msg' key

Greetings
xqt

----- Original Nachricht ----
Von:     Bináris <wikiposta <at> gmail.com>
An:      Pywikipedia discussion list <pywikipedia-l <at> lists.wikimedia.org>
Datum:   23.06.2012 22:59
Betreff: [Pywikipedia-l] Manual of fixes.py

> As a preparation to my upcoming presentaion at Wikimania (
> http://wikimania2012.wikimedia.org/wiki/Submissions/Efficient_and_flexible_t
> ext_manipulation,_spelling_correction_and_page_collections_with_Pywikibot)
> I wrote the missing manpage of fixes.py. Please review and complete if
> necessary.
> http://www.mediawiki.org/wiki/Manual:Pywikipediabot/fixes.py
> 
> -- 
> Bináris
> 
> 
> --------------------------------
> 
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
Bináris | 24 Jun 2012 15:28
Picon

Re: Manual of fixes.py

Done, and I also added the dictionary syntax of replacements that I have just discovered in replace.py, and nocase key as well. Thanks!

2012/6/23 <info <at> gno.de>
if the 'msg' key is not a dict but a basestring this is interpreted as a i18n modul name and the messages are retrieved  from i18n folder. You'll see an example at fixes['isbn'] where 'isbn-formatting' is assigned to the 'msg' key

Greetings
xqt

----- Original Nachricht ----
Von:     Bináris <wikiposta <at> gmail.com>
An:      Pywikipedia discussion list <pywikipedia-l <at> lists.wikimedia.org>
Datum:   23.06.2012 22:59
Betreff: [Pywikipedia-l] Manual of fixes.py

> As a preparation to my upcoming presentaion at Wikimania (
> http://wikimania2012.wikimedia.org/wiki/Submissions/Efficient_and_flexible_t
> ext_manipulation,_spelling_correction_and_page_collections_with_Pywikibot)
> I wrote the missing manpage of fixes.py. Please review and complete if
> necessary.
> http://www.mediawiki.org/wiki/Manual:Pywikipediabot/fixes.py
>
> --
> Bináris
>
>
> --------------------------------
>
> _______________________________________________
> Pywikipedia-l mailing list
> Pywikipedia-l <at> lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>



--
Bináris
_______________________________________________
Pywikipedia-l mailing list
Pywikipedia-l <at> lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Gmane