Last modified: 2014-02-01 16:53:49 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T56566, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 54566 - New option "-no" to djvutext.py
New option "-no" to djvutext.py
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-09-24 22:33 UTC by Kunal Mehta (Legoktm)
Modified: 2014-02-01 16:53 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-09-24 22:33:35 UTC
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.\)
Comment 1 Kunal Mehta (Legoktm) 2013-09-24 22:33:37 UTC
Patch created with "diff -Naur", based on __version__ = '$Id: djvutext.py 9692 2011-10-30 15:03:29Z xqt $'
Comment 2 Kunal Mehta (Legoktm) 2013-09-24 22:33:39 UTC
Here's a new patch with the argument renamed to -overwrite:no and also support for -overwrite:yes
Comment 3 Kunal Mehta (Legoktm) 2013-09-24 22:33:40 UTC
Lars, could you take a look at xqt's comments? See http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10036\#c32460 . Thanks.
Comment 4 Kunal Mehta (Legoktm) 2013-09-24 22:33:42 UTC
Committed in r10036 \[ http://toolserver.org/~pywikipedia/﷒1﷓ \]. Thanks\!
Comment 5 Kunal Mehta (Legoktm) 2013-09-24 22:33:44 UTC
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\! :-\)
Comment 6 Kunal Mehta (Legoktm) 2013-09-24 22:33:46 UTC
Last housekeeper's note: this patch applies cleanly to r10035 \(duh. it's the same djvutext.py\)
Comment 7 Kunal Mehta (Legoktm) 2013-09-24 22:33:47 UTC
A better patch \(patch-djvutext-overwrite.py\) has been uploaded now.
Comment 8 Kunal Mehta (Legoktm) 2013-09-24 22:33:49 UTC
- **status**: closed-accepted --> open
Comment 9 Kunal Mehta (Legoktm) 2013-09-24 22:33:51 UTC
- **status**: open --> closed-accepted

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links