Manual:Pywikibot/djvutext.py

djvutext.py extracts the ocr text from a djvu page image and uploads it to the corresponding page in the page namespace on Wikisource. In order for the bot to function, an identical djvu file must be in the same folder pywikipediabot runs from. On a blank page this script will leave a blank page and set the pagequality level=1 (not proofread) and the user= to the name of your bot (e.g. ). On the English Wikisource it will add the template blank page, however, this template has been deprecated. A bug has been submitted to correct this.

Parameters
The following parameters are supported:

-dry          If given, doesn't do any real changes, but only shows what would have been changed. -ask          Ask for confirmation before uploading each page. (Default: ask when overwriting pages) -djvu:... Filename of the djvu file -index:... Name of the index page (Default: the djvu filename) -pages: - Page range to upload; is optional

All other parameters will be regarded as part of the title of a single page, and the bot will only work on that single page.