Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2009, 01:18 AM   #1
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Minor Calibre issues

I thought I'd just put these all together in case they've already been addressed somehow:

1. I still find that when I add books to the Calibre library in Windows XP, the adding books dialogue box often fails to close afterward, and won't go away unless I restart Calibre. (I know there was a fix on this a few versions back. Not sure if the fix worked, then got messed up in a newer release.)

2. When I open the Viewer on a LRF file, the viewer window almost always opens with the bottom of the window down behind my Quicklaunch bar, requiring me to move it up. When I do readjust it, the display doesn't properly resize to fit the viewer window, but generally has a vertical scroll bar for each given page, requiring up and down scrolling on each page. (Sort of like a PDF with fixed pages.) Doesn't seem to happen with the EPUB viewer.

3. Don't know how doable this is, but for those of us who like to keep the latest version of Calibre, it would be really nice if we could click an update button from within the program, and have it handle the download and install process.

Thanks, as always. Now that I use Calibre, I couldn't manage without it.
starrigger is offline   Reply With Quote
Old 02-07-2009, 02:08 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
1. Hmm, I can't reproduce this on my windows machines, so it's hard for me to debug.

2. That because LRF, like PDF is a fixed size format (a screen size is defined inside the LRF file). Since the calibre viewer tries to be an accurate simulation of the SONY reader, it respects that size.

3. This is too much work for me
kovidgoyal is offline   Reply With Quote
Advert
Old 02-07-2009, 02:13 AM   #3
starrigger
Jeffrey A. Carver
starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.starrigger ought to be getting tired of karma fortunes by now.
 
starrigger's Avatar
 
Posts: 1,355
Karma: 1107383
Join Date: Aug 2008
Location: Massachusetts, USA
Device: Lenovo Yoga Tab Plus, Droid phone, Nook HD+
Quote:
Originally Posted by kovidgoyal View Post
1. Hmm, I can't reproduce this on my windows machines, so it's hard for me to debug.

2. That because LRF, like PDF is a fixed size format (a screen size is defined inside the LRF file). Since the calibre viewer tries to be an accurate simulation of the SONY reader, it respects that size.

3. This is too much work for me
1. I forgot to mention, it seems more likely to happen if the books are large files, or if I do something like toggle to another program while Calibre is doing its job.

2. I didn't know that about LRF. Learn something every day.

3. I thought that might be the case. But I figured I'd ask.
starrigger is offline   Reply With Quote
Old 02-07-2009, 02:49 AM   #4
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I have the same problem with the Add Books dialog never disappering (on XP Pro +SP3). I wonder if Kovid's version of Windows is different in any way?

Looking at the Calibre source it I notice some strange anomalies between what I see and what I would expect to see:

- When adding multiple books a message is displayed in the dialog about "Reading Metadata" for every book except the last. The source implies there should be one even for the last file.

- Then after a few seconds the dialog back is cleared and goes to pure white (except for the title bar). There should be messages about adding the books to the database.

- After a delay, the main window becomes active again. At this point the Adding Books dialog should disappear but does not. I must admit, though, that looking at the source that I do not see how the progress.Hide() statement at the end of the block that should remove the dialog box is not working as expected.

As Kovid cannot reproduce this and I can do it reliably, I am going to play with tweaks at the source level to see if I can change this behavior, and also to confirm that the statements are being executed as expected from my reading of the source.
itimpi is offline   Reply With Quote
Old 02-07-2009, 07:22 AM   #5
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I added some msgbox() calls (using easygui) around the various calls to update the progress dialog. When these were in place the dialog updated as expected, and then hid itself at the end as expected. I am sure this is a clue to the problem on Windows although I am not sure yet what it means
It is almost as though the dialog is not getting a chance to process events and update itself at the appropriate points.

I will continue to investigate further.
itimpi is offline   Reply With Quote
Advert
Old 02-07-2009, 11:33 AM   #6
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by kovidgoyal View Post
3. This is too much work for me
Is there any type of free package manager for Windows like there is for Linux and Mac?

BOb
pilotbob is offline   Reply With Quote
Old 02-07-2009, 01:03 PM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by pilotbob View Post
Is there any type of free package manager for Windows like there is for Linux and Mac?

BOb
Not that I know off.
kovidgoyal is offline   Reply With Quote
Old 02-07-2009, 01:04 PM   #8
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by itimpi View Post
I added some msgbox() calls (using easygui) around the various calls to update the progress dialog. When these were in place the dialog updated as expected, and then hid itself at the end as expected. I am sure this is a clue to the problem on Windows although I am not sure yet what it means
It is almost as though the dialog is not getting a chance to process events and update itself at the appropriate points.

I will continue to investigate further.
Hmm there is a periodic call to QApplication.processEvents(), but maybe I should just refactor the code to make it run in a separate thread.
kovidgoyal is offline   Reply With Quote
Old 02-07-2009, 02:42 PM   #9
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I added calls to QApplication.processEvents() either side of the various actions on the progress object, and then everything worked as expected including all messages displaying correctly, and the dialog hiding itself at the end.

I almost certainly have far more calls than I need, so I will start removing them gradually to see what the minimum set is to get correct behavior, and then let you have the patch when I get to the minimum set. That should be easier in the short term than worrying about any refactoring.

I wonder why it works OK on your machine and not mine? Perhaps you have a faster machine or a multi-core processor so that changes the event handling timing significantly?
itimpi is offline   Reply With Quote
Old 02-07-2009, 02:53 PM   #10
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by itimpi View Post
I added calls to QApplication.processEvents() either side of the various actions on the progress object, and then everything worked as expected including all messages displaying correctly, and the dialog hiding itself at the end.

I almost certainly have far more calls than I need, so I will start removing them gradually to see what the minimum set is to get correct behavior, and then let you have the patch when I get to the minimum set. That should be easier in the short term than worrying about any refactoring.

I wonder why it works OK on your machine and not mine? Perhaps you have a faster machine or a multi-core processor so that changes the event handling timing significantly?
Yeah, I run the windows tests on a Dual core
kovidgoyal is offline   Reply With Quote
Old 02-07-2009, 02:55 PM   #11
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oh and if you're doing this for add books, could you also do it for save books
kovidgoyal is offline   Reply With Quote
Old 02-07-2009, 03:48 PM   #12
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
No problem.
itimpi is offline   Reply With Quote
Old 02-07-2009, 04:06 PM   #13
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks
kovidgoyal is offline   Reply With Quote
Old 02-08-2009, 05:24 AM   #14
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,552
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
Attached is the diff for the minimum set of changes that seemed to make the add books dialog update itself as expected and remove itself at the end.

I looked at the save books option, but the dialogs seemed to display fine and hide at the end, so have not suggested any changes in that area.
Attached Files
File Type: txt main.py.diff.txt (1.3 KB, 242 views)
itimpi is offline   Reply With Quote
Old 02-08-2009, 06:16 AM   #15
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks, applied.
kovidgoyal is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PP - Minor Issues Xerxes Astak EZReader 52 11-07-2009 10:12 PM
Calibre Issues pghaworth Calibre 21 04-17-2009 02:11 PM
Cybook with Calibre, minor problems taspool Bookeen 14 02-22-2009 06:43 AM
Calibre : minor suggestions carpii Calibre 14 12-16-2008 07:47 PM
Minor errors on calibre web site! itimpi Calibre 17 11-23-2008 05:01 PM


All times are GMT -4. The time now is 03:15 AM.


MobileRead.com is a privately owned, operated and funded community.