https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
Web browser: --- Bug ID: 54566 Summary: New option "-no" to djvutext.py Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/patches/539/ Reported by: aronsson Created on: 2012-03-12 14:40:15 Subject: New option "-no" to djvutext.py Original description: djvutext.py adds OCR text to books in Wikisource. Some books already have text for some pages, but not for others. The "-no" flag added by this patch only adds new pages, but doesn't alter the text for any existing pages. (At any such question, it answers "no" automatically.)
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Patch created with "diff -Naur", based on __version__ = '$Id: djvutext.py 9692 2011-10-30 15:03:29Z xqt $'
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Here's a new patch with the argument renamed to -overwrite:no and also support for -overwrite:yes
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Lars, could you take a look at xqt's comments? See http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10036%5C#c32460 . Thanks.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Committed in r10036 [ http://toolserver.org/~pywikipedia/r10036 ]. Thanks!
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- For reference: I had a discussion on this patch with Lars on IRC and mentioned some improvements (naming/parameter). He's working on a new patch version.
Again, thanks for the effort, Lars! :-)
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #6 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Last housekeeper's note: this patch applies cleanly to r10035 (duh. it's the same djvutext.py)
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #7 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- A better patch (patch-djvutext-overwrite.py) has been uploaded now.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #8 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: closed-accepted --> open
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
--- Comment #9 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open --> closed-accepted
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/patches/539
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
Nemo federicoleva@tiscali.it changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal CC| |federicoleva@tiscali.it
https://bugzilla.wikimedia.org/show_bug.cgi?id=54566
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED
pywikipedia-bugs@lists.wikimedia.org