Revision: 7865 Author: xqt Date: 2010-01-08 07:29:30 +0000 (Fri, 08 Jan 2010)
Log Message: ----------- option has been changes: http://djvu.sourceforge.net/doc/man/djvutxt.html
Modified Paths: -------------- trunk/pywikipedia/djvutext.py
Modified: trunk/pywikipedia/djvutext.py =================================================================== --- trunk/pywikipedia/djvutext.py 2010-01-07 15:40:20 UTC (rev 7864) +++ trunk/pywikipedia/djvutext.py 2010-01-08 07:29:30 UTC (rev 7865) @@ -112,7 +112,7 @@
def get_page(self, pageno): wikipedia.output(unicode("fetching page %d" % (pageno))) - cmd = u"djvutxt -page=%d "%s" "%s.out"" % (pageno, self.djvu, self.djvu) + cmd = u"djvutxt --page=%d "%s" "%s.out"" % (pageno, self.djvu, self.djvu) os.system ( cmd.encode(sys.stdout.encoding) )
f = codecs.open(u"%s.out" % self.djvu, 'r', config.textfile_encoding, 'replace')