View Single Post
Old 07-16-2012, 02:20 PM   #370
lbolton
Junior Member
lbolton began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2010
Device: android
Hi.

Like many, I've scoured the intermess to find, assemble and manage a large collection. Though I don't use it often, My wife is temporarily homebound and has found this a significant comfort.

Your plugin is one of the most useful tools I've found, and I've quickly come to rely on it heavily.

I've recently noted some behaviors that may not have been mentioned here.
I've included some representative log entries.

My system is:
Opensuse 12.12
KDE 4.7.2
Calibre 0.8.60

First, starting with the plugin versions available on 0.8.59,
And, using any of the three algorithms available,
scanning an entry with ONLY a pdf file, will give a valid page count, but a word count of 0 (zero). I haven't diagnosed this extensively. If I could relearn python, I'd have just helped rather then begged.

Second, unfortunately, the new word count WILL overwrite an older. no matter what settings are used.

Third, I'm sure its been noticed, but there seems to be a number of unicode characters
that throw a fatal error that will abort a job.

Most especially, I seem to have a large number of files originally encoded to include:
a particular rendition of single quotes with codes of \u2018 and \u2019. Though there are many others.

I would like to join other voices in encouraging a few enhancements to overcome these.

I wonder if there are not python libraries that more gracefully or completely handle
some of these problematic characters.
Or, include a user accessible enumerated list of potentially incorrect characters with
an appropriate mapping.
Or, mayhap, Both? I'd like to imagine that a list of exceptions or replacement rules could be called from calibre's existing conversion tools.

I wonder if it's possible to simply log such errors without aborting the job.

I wonder if it may be possible to allow an option to simply keep the epub conversion
created to enable the count of PDFs.

log follows.
----------------------------------------cut---------------------------------------

--------------------------------------------cut---------------------------------------
shire:~ # calibre-debug --gui
Starting up...
Started up in 6.74 seconds with 10029 books
Job: 1 Get device information started
DeviceJob: 1 Get device information done, calling callback
DeviceJob: 1 Get device information callback returned
Job: 2 Get list of books on device started
DEBUG: 0.0 USBMS: Fetching list of books from device. Device= FOLDER_DEVICE oncard= None
DEBUG: 0.0 USBMS: dirs are: /local/staging/
DEBUG: 0.0 USBMS: scan from root False /local/staging/
DEBUG: 0.0 USBMS: count found in cache: 43, count of files in metadata: 43, need_sync: False
DEBUG: 0.0 USBMS: Finished fetching list of books from device. oncard= None
DEBUG: 0.1 USBMS: Fetching list of books from device. Device= FOLDER_DEVICE oncard= carda
DEBUG: 0.1 USBMS: Fetching list of books from device. Device= FOLDER_DEVICE oncard= cardb
DeviceJob: 2 Get list of books on device done, calling callback
Job: 1 Get device information finished
No details available.
Job: 2 Get list of books on device finished
No details available.
DeviceJob: 2 Get list of books on device callback returned
Job: 2 Get list of books on device finished
No details available.
Worker Launch took: 0.23487496376
InputFormatPlugin: EPUB Input running
on /local/books/James Patrick Kelly/10 16 to 1 (4098)/10 16 to 1 - James Patrick Kelly.epub
Found HTML cover titlepage.xhtml
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::begin: Paint device returned engine == 0, type: 2
/usr/bin/xdg-open: line 322: test: KDE Development Platform: 4.7.2 (4.7.2) "release 5": integer expression expected
/usr/bin/xdg-open: line 323: test: KDE Development Platform: 4.7.2 (4.7.2) "release 5": integer expression expected
/usr/bin/xdg-open: line 324: test: KDE Development Platform: 4.7.2 (4.7.2) "release 5": integer expression expected

(process:11870): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed
Worker Launch took: 0.245404005051
Job: 4 Convert book 1 of 1 (10 16 to 1) finished
Convert book 1 of 1 (10 16 to 1)
Resolved conversion options
calibre version: 0.8.60
{'asciiize': False,


.................deleted----------------


No TOC, MOBI index not generated
MOBI output written to /tmp/calibre_0.8.60_tmp_bbWOxU/QZ_OuQ.mobi


(process:11848): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed

(process:11848): GLib-CRITICAL **: g_main_context_pop_thread_default: assertion `g_queue_peek_head (stack) == context' failed
shire:~ #
-------------------------------------------------cut-------------------------------------


TIA
lbolton is offline   Reply With Quote