[Pywikipedia-l] Enhacement of replace.py on Meta

2011-08-28 Thread Bináris
Hi replace.py users,

I wrote a new chapter to Meta, mainly for beginners. I hope it will be
easier to start with this description. See
http://meta.wikimedia.org/wiki/Pywikipediabot/replace.py#Overview. Please
check it and complete is necessary.
(Article on fixes.py is the next important task.)

-- 
Bináris
___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] Enhacement of replace.py on Meta

2011-08-28 Thread Bináris
2011/8/28 Bináris wikipo...@gmail.com

 Please check it and complete is necessary.

 is -- if


-- 
Bináris
___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] No permission to send mail...

2011-08-28 Thread Dr. Trigon
 Sure, it might be a real problem, but it's most probably on the
 side of MediaWiki (or actually Wikimedia installation) rather
 than the framework.

But then we should file a bug report the the mw bugzilla?!?

Greetings
Dr. Trigon

___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] [Pywikipedia-svn] SVN: [9448] trunk/pywikipedia/pywikibot/i18n.py

2011-08-28 Thread Dr. Trigon
Sorry for going a little bit off-topic here, but I have a question:
(and I think this is the best place to get a helpful answer ;)

As some of you might know I'm using the trunk (not re-write) version
of the framework for DrTrigonBot too.

I'm thinking about a good implementation for translations. As you
are switching to translatewiki I would like to do this also. The
actual question is how to do so?? As far as I can see my project
is not that important to need an own account on translatewiki...?
Or am I wrong? May be it would make sence to include my translations
into the pywikipedia bot framework directly, since I do not use that
many messages...

Any help or hint is greatly appreciated.

Thanks and greetings!
Dr. Trigon


Am 26.08.2011 03:12, schrieb i...@gno.de:
 Hi Merlijn,
 
 I've seen it during discussion with Nikerabbit on tw.net (look at the first 
 LQ-threat according pywikipedia) and I am working on a pythonic version of 
 the plural-gettext.txt. I am using lambda function for that like this one 
 (for mk-wiki):
 plural = lambda n: 0 if (n == 1 or n%10 == 1) else 1
 I think this is the easiest way.
 But we have a remaining problem found on table2wiki. Now we have 3 messages. 
 One message is used if we have no warning, and we have two messages either 
 for one or a lot of warnings. I guess we could keep the first 
 table2wiki-no-warning message and merge the two messages 
 table2wiki-one-warning and table2wiki-warnings using {{Plural:}} tag. It 
 is also possible to use the first message every time and append the warning 
 message if needed.
 
 Greetings
 
 
 - Original Nachricht 
 Von: Merlijn van Deen valhall...@arctus.nl
 An:  pywikipedia-l@lists.wikimedia.org
 Datum:   25.08.2011 19:46
 Betreff: Re: [Pywikipedia-l] [Pywikipedia-svn] SVN: [9448]
   trunk/pywikipedia/pywikibot/i18n.py
 
 Hello xqt,

 On 21 August 2011 15:49, x...@svn.wikimedia.org wrote:

 +value. At the moment, we have only one plural_func = x: x!= 1 yet.
 Multiple
 +PLURAL tags are not supported (yet).


 Good to see you're working on plural support. Have you seen
 http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Translate/data/pl
 ural-gettext.txt?view=markup
 ,
 which lists the plural possibilities for each language. Unfortunately,
 python does not support the  a ? b : c notation, so it's not possible to
 copy the code 1-on-1.

 Alternatively, there is
 http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/Translate/data/pl
 ural-cldr.yaml?view=markup
 ,
 but that is fairly unreadable IMO.

 Good luck!

 Best,
 Merlijn


 

 ___
 Pywikipedia-l mailing list
 Pywikipedia-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

 
 Arcor empfiehlt: Mal über die Karriere nachdenken! Wissenswertes und 
 Nützliches finden Sie hierzu unter 
 http://www.arcor.de/content/finanzen_job/job_karriere/bewerbung_karriere/ratgeber/
 
 ___
 Pywikipedia-l mailing list
 Pywikipedia-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
 


___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] Enhacement of replace.py on Meta

2011-08-28 Thread Dr. Trigon
 I wrote a new chapter to Meta, mainly for beginners. I hope it will be
 easier to start with this description. See
 http://meta.wikimedia.org/wiki/Pywikipediabot/replace.py#Overview.
 Please check it and complete if necessary.
 (Article on fixes.py is the next important task.)

Thanks a lot - such manual fits perfectly well into my (very long term)
plans for creation of a Script WikiUserInterface bot... ;))

Greetings

___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] Enhacement of replace.py on Meta

2011-08-28 Thread Bináris
2011/8/28 Dr. Trigon dr.tri...@surfeu.ch


 Thanks a lot - such manual fits perfectly well into my (very long term)
 plans for creation of a Script WikiUserInterface bot... ;))

 What will this bot do? I can hardly imagine from the name.

-- 
Bináris
___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] Enhacement of replace.py on Meta

2011-08-28 Thread Dr. Trigon
The main concept is to forward some command line calls of scripts,
e.g. things like:

templatecount -count -namespace:0 ref note
templatecount -count ref note
template test1 test2 space test -subst
replace -page:John_Doe -fix:isbn
weblinkchecker Benutzer_Diskussion:DrTrigon
cosmetic_changes Benutzer_Diskussion:DrTrigon -always
add_text -page:Benutzer:DrTrigon/Spielwiese -text:HaLLo
image FlagrantCopyvio.jpg

to the wiki in a manner that some wiki users (NOT! all ;) can run
such calls like from command line. Exactly speaking the bot runs
the scripts, first answering all questions whether to change something
with 'n' (no) and returns the output to the wiki. The user then can
have a look at this output (imagine a SIMPLE replace job) and edit
all problematic pages manual, then give the job again back to the bot
which will do the rest (all other pages that had no problems)...

This is roughly speaking the idea. Since a lot of scripts/bots in
framework use the very same yes/no/blabla user interface (e.g.
replace.py, template.py, ...) this will work without much effort.
To include other scripts needs to change them a little bit OR make
the script_WUI.py smarter. ;)

Some (very early stage) test-edits can be found at [1] and the according
jobs at [2].

You can also find further information on [3] but I have to applogize
since they are currently available in German only...

Be aware this is a very early concept - in later stage things like
nice pages including e.g. check-boxes or other fancy stuff to make
the user interaction as easy and intuitive as possible... Let your
imagination run free! ;))

[1] http://de.wikipedia.org/wiki/Benutzer:DrTrigonBot/Simulation
[2]
http://de.wikipedia.org/w/index.php?title=Benutzer:DrTrigonBot/Simon_sagtoldid=92870099
[3] http://de.wikipedia.org/wiki/Benutzer:DrTrigonBot

Am 28.08.2011 14:56, schrieb Bináris:
 
 2011/8/28 Dr. Trigon dr.tri...@surfeu.ch mailto:dr.tri...@surfeu.ch
 
 
 Thanks a lot - such manual fits perfectly well into my (very long term)
 plans for creation of a Script WikiUserInterface bot... ;))
 
 What will this bot do? I can hardly imagine from the name.
 
 -- 
 Bináris
 
 
 ___
 Pywikipedia-l mailing list
 Pywikipedia-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


Re: [Pywikipedia-l] Enhacement of replace.py on Meta

2011-08-28 Thread Dr. Trigon
and to be fair I have to admit the concept was initially inspired
by [1] (Sebmols Sebbot) and my desire to get something similar
for template remplacements. But since there is already the code
that does this I decided to focus on the UserInterface and make
all this more (meaning more general, more powerfull and
more cool... ;)

[1]
http://de.wikipedia.org/wiki/Wikipedia:WikiProjekt_Kategorien/Warteschlange

Am 28.08.2011 14:56, schrieb Bináris:
 
 2011/8/28 Dr. Trigon dr.tri...@surfeu.ch mailto:dr.tri...@surfeu.ch
 
 
 Thanks a lot - such manual fits perfectly well into my (very long term)
 plans for creation of a Script WikiUserInterface bot... ;))
 
 What will this bot do? I can hardly imagine from the name.
 
 -- 
 Bináris
 
 
 ___
 Pywikipedia-l mailing list
 Pywikipedia-l@lists.wikimedia.org
 https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l


___
Pywikipedia-l mailing list
Pywikipedia-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l