Hi folks,
I have a batch file that is:
replace.py -xml:e:\huwiki-latest-pages-articles.xml -summary:"x" -namespace:0 -fix:vegyesjav4 -regex -excepttext:"{{[Ss]zinnyei}}" -excepttext:"{{[Pp]allas}}" -excepttext:"V.lyi Andr.s" -excepttext:"F.nyes Elek"
Now, exceptions don't work, and I keep getting pages with the wannabe excepted texts. What is the mistake? V.lyi Andr.s and F.nyes Elek stand for Vályi András and Fényes Elek, because there is a difference between DOS and Windows characters and I wantes to avoid this problem.
replace.py id is: __version__='$Id: replace.py 7309 2009-09-25 00:18:58Z siebrand $' But the same error appeared earlier, too.
2009/10/3 Bináris wikiposta@gmail.com:
V.lyi Andr.s and F.nyes Elek stand for Vályi András and Fényes Elek, because there is a difference between DOS and Windows characters and I wantes to avoid this problem.
I don't know what's up with your specific problem. But what is this assertion? DOS and Windows characters are different?
I don't think that I have ever heard of any such problem. If you configure correctly "console_encoding" in your user-config.py you should not run into such issues.
Since no useful answer has arrived, and I have spent a plenty of time with experiments, finally I took "excepttext" out from the replace command, and inserted teh exceptions into the fix itself. Now it works. Is it possible that an 'exceptions': part in fix totally overwrites the command line parameters?
I have a nice conversation with myself. :-) Experiments show that settings within the fix itself suppress any parameter on command line. -summary parameter works only if I completely delete the 'msg': section from the fix. This is true even if I change the 'hu': in the 'msg': of the fix to any other language code, while working in huwiki!
2009/10/10 Bináris wikiposta@gmail.com
Since no useful answer has arrived, and I have spent a plenty of time with experiments, finally I took "excepttext" out from the replace command, and inserted teh exceptions into the fix itself. Now it works. Is it possible that an 'exceptions': part in fix totally overwrites the command line parameters?
pywikipedia-l@lists.wikimedia.org