Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 11-18-2013, 05:55 AM   #871
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Check the README for this plugin, it lists what dictionaries the Kobo firmware supports. You can't add new ones, and the names and format have to be exact. The README has directions for fetching and updating hyphenation dictionaries.
jgoguen is offline   Reply With Quote
Old 11-18-2013, 10:47 AM   #872
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by PeterT View Post
Is that actually a valid book? I thought the <head> section in toc.ncx had certain required info http://www.niso.org/workrooms/daisy/...-2005.html#toc
I've already added the missing info to the head section of ncx
Code:
    <meta content="urn:uuid:25408827-9b20-4ef8-b63e-acb744cec453" name="dtb:uid"/>
    <meta content="1" name="dtb:depth"/>
    <meta content="0" name="dtb:totalPageCount"/>
    <meta content="0" name="dtb:maxPageNumber"/>
And it still doesn't work. I upload the fixed ebook. (It has the original_epub extension because of Calibre. But I added .zip because Mobileread doesn't allow attachments with .original_epub extension. Rename to just .epub in order to open it.)

More over when I make the epub to epub conversion inside Calibre, things go worse. Calibre now adds a cover (it's just a jpg made from cubierta.xhtml) so this new book now has nine pages instead of 8.

The page numbering now goes as follows:
1 (hidden as cover), 2, 5, 3, 7, 8, 9, 4, 6

(I also upload this re-epub. It's the .epub file in this post).



What I've seen in the calibre reconverted epub is that dtb:depth has risen to 2. Why?

@PeterT. Good hint but not the perfect one . The relevant ncx section is
Quote:
8.4.1 Navigation Metadata

(This section is normative.)

Metadata shall be included in the head element of the NCX using the meta element. Content producers may introduce other metadata besides those listed below, if needed. However, metadata names shall not begin with the prefix "dtb:" unless defined in this standard. Players must not fail when encountering unknown metadata but must, at a minimum, ignore it.

dtb:uid
Content: The globally unique identifier for the DTB. The value is the same as that of the dc:Identifier element referenced by the unique-identifier attribute on the package file's package element. See section 3.1, "Package Identity."
Occurrence: Required
dtb:depth
Content: Positive integer indicating depth of structure of the DTB as exposed by the NCX.
Occurrence: Required
dtb:generator
Content: Name and version of software that generated the NCX.
Occurrence: Optional - recommended.
dtb:totalPageCount
Content: Non-negative integer indicating the number of pageTargets in the pageList. If there are no navigable pages, then dtb:totalPageCount must have a value of zero.
Occurrence: Required
dtb:maxPageNumber
Content: Non-negative integer indicating the largest value attribute on pageTarget in the pageList. If there are no navigable pages, then dtb:maxPageNumber must have a value of zero.
Occurrence: Required


Because an issue about KTE plugin has been discarded by jgoguen, I've opened a new dedicated thread in the Kobo forum.
Attached Files
File Type: epub Page numbers Test - Yo.epub (7.5 KB, 226 views)
File Type: zip Page numbers Test - Yo.original_epub.zip (4.8 KB, 251 views)

Last edited by arspr; 11-18-2013 at 03:54 PM. Reason: Link to the new thread about the issue
arspr is offline   Reply With Quote
Old 11-18-2013, 07:44 PM   #873
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by arspr View Post
Because an issue about KTE plugin has been discarded by jgoguen, I've opened a new dedicated thread in the Kobo forum.
This is NOT a fault of the extended driver. It is a problem in the firmware. If you simply copy the epub to the device, change the extension to ".kepub.epub", you will see exactly the same problem.

And you are using an undocumented and unsupported feature of the firmware. The full book page numbers for kepubs is not supported by Kobo. The way of turning it on has been found by looking at executables in the firmware. Problems like your are seeing explain why Kobo haven't made it an option in the GUI.

The fix is simple. Either turn the unsupported option off or create a TOC entry for each file in the book.
davidfor is offline   Reply With Quote
Old 11-18-2013, 08:00 PM   #874
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Quote:
Originally Posted by davidfor View Post
And you are using an undocumented and unsupported feature
And inaccurate on a good day even in the RMSDK reader that fully supports this method of page numbering
jgoguen is offline   Reply With Quote
Old 11-19-2013, 11:24 AM   #875
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by jgoguen View Post
And inaccurate on a good day even in the RMSDK reader that fully supports this method of page numbering
Yes I know that RMSDK page numbering (or nearly any kind of page numbering in an ebook) is inaccurate, but at least it doesn't leap like a mad frog...

If there's nothing wrong with the epub, now I do understand why Kobo uses only page numbers relative to each chapter...

But it's somehow quite sad that they cannot get a normal numbering work in a normal way, (even if inaccurate or artificial). So they are forced to use only chapter pages.

(I still hope that there's some kind of bug inside the epub, not in the ACCESS renderer. Why, if you know the pages of each chapter, just ADD them up and you have the total pages of the ebook. Then, when switching chapters, add the total number of pages from the previous chapters to your current 1, 2, 3... Is that so difficult to code and make it work flawless?).
arspr is offline   Reply With Quote
Old 11-19-2013, 08:15 PM   #876
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by arspr View Post
Yes I know that RMSDK page numbering (or nearly any kind of page numbering in an ebook) is inaccurate, but at least it doesn't leap like a mad frog...

If there's nothing wrong with the epub, now I do understand why Kobo uses only page numbers relative to each chapter...

But it's somehow quite sad that they cannot get a normal numbering work in a normal way, (even if inaccurate or artificial). So they are forced to use only chapter pages.

(I still hope that there's some kind of bug inside the epub, not in the ACCESS renderer. Why, if you know the pages of each chapter, just ADD them up and you have the total pages of the ebook. Then, when switching chapters, add the total number of pages from the previous chapters to your current 1, 2, 3... Is that so difficult to code and make it work flawless?).
Yes it is on a low power device. To use per chapter page numbering, you render the current chapter and calculate the numbers. When the user changes the font, font size, margins or line spacing, you rerender and recalculate the page numbers.

To do full page numbering, you need to render the complete book. And re-render each time the settings are changed. For a short book, that will be OK. But, for a long book (think all of Lord of the Rings in one book), that could take some time. And the devices have limited RAM, so t might not even be possible.

Full book page numbering with epubs and the RMSDK is only possible because it calculates the number of pages based on the compressed size of the files. They are independent of the reader settings.

Overall, I think this is a bug in the ACCESS renderer. But, it might be something missing in the book. Remember, we are talking about kepubs, not epubs. They don't have to follow the same rules. And we don't actually know the full specs for kepubs. Maybe to be a valid kepub, it must have a TOC entry for each file. If that is the case, the bug in the firmware is that it displays the book at all.
davidfor is offline   Reply With Quote
Old 11-20-2013, 04:19 PM   #877
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none




@davidfor. We are cannibalizing jgoguen thread with a philosophical discussion which I DO really like, but maybe the owner of the thread doesn't...

I answer you in the thread I opened in the Kobo section of the forums.
arspr is offline   Reply With Quote
Old 11-23-2013, 12:29 AM   #878
kaufman
Calibre Companion Fanatic
kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.
 
kaufman's Avatar
 
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
Problem copying files with version 2.2.13

For various reasons, I did a factory reset on my Aura HD, and now whenever I try to copy any book I get the same error. These are all books I have uploaded before.

-----
calibre, version 1.12.0
ERROR: Error: Error communicating with device

Failed to parse 'The Complete Works of H.P. Lovecraft' by 'H.P. Lovecraft' with error: '' (file: calibre_plugins.kobotouch_extended.container, line: 120)

Traceback (most recent call last):
File "site-packages/calibre/gui2/device.py", line 85, in run
File "site-packages/calibre/gui2/device.py", line 561, in _upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 276, in upload_books
File "site-packages/calibre/devices/kobo/driver.py", line 1888, in upload_books
File "calibre_plugins.kobotouch_extended.device.driver" , line 220, in _modify_epub
InvalidEPub: Failed to parse 'The Complete Works of H.P. Lovecraft' by 'H.P. Lovecraft' with error: '' (file: calibre_plugins.kobotouch_extended.container, line: 120)
------

My settings are shown below. I also get the same failuers if I turn off Modify CSS, smarten punctuations and hyphenate files. Any ideas about what I might be doing wrong would be appreciated.

Thanks.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2013-11-22 23.26.24.png
Views:	275
Size:	130.0 KB
ID:	115610  

Last edited by kaufman; 11-23-2013 at 12:33 AM.
kaufman is offline   Reply With Quote
Old 11-23-2013, 02:29 AM   #879
kaufman
Calibre Companion Fanatic
kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.
 
kaufman's Avatar
 
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
Collections not going away

A second issue I keep having is with collections. Not only are empty collections not being removed, but every collection I have ever had keeps being recreated, even if I don't have any books in it now. I just reset my device to factory defaults, and the first time I synced one book, every old collection came back.

Any ideas as to what might be causing this, or where the collections names are being stored on my Mac. Is there some file I can delete to at least get back to the start state.

Thanks.
kaufman is offline   Reply With Quote
Old 11-23-2013, 02:52 AM   #880
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
If you did a factory reset, any shelves that were synced to the Kobo server will be recreated during the set-up. As the shelf state of sideloaded books is not synced, then a lot of empty shelves will be recreated during the set-up. And there has been a bug that seems to be on the server side where deleted shelves are recreated. I don't know it that has been fixed or not. But, I did a factory reset last week on my Glo and they didn't appear.

The driver should be removing empty shelves as long as the options are set correctly. Could you run calibre in debug mode, connect the device and then post the debug log? I can look through it and hopefully see what is going on.
davidfor is offline   Reply With Quote
Old 11-23-2013, 03:06 AM   #881
kaufman
Calibre Companion Fanatic
kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.
 
kaufman's Avatar
 
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
Quote:
Originally Posted by davidfor View Post
The driver should be removing empty shelves as long as the options are set correctly. Could you run calibre in debug mode, connect the device and then post the debug log? I can look through it and hopefully see what is going on.
Happy to try. 2 questions? How does one run calibre in debug mode and where do I find the log?
kaufman is offline   Reply With Quote
Old 11-23-2013, 03:17 AM   #882
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by kaufman View Post
Happy to try. 2 questions? How does one run calibre in debug mode and where do I find the log?
For some reason I was thinking you would know, so was lazy

To run calibre in debug mode, right-click the preferences button and choose "Restart in debug mode". Calibre will restart. Connect the ereader and let calibre do it stuff. When the jobs have finished and calibre shows the books that are on the device, close calibre and post the displayed log. Or send it to me in PM.
davidfor is offline   Reply With Quote
Old 11-23-2013, 06:45 AM   #883
jgoguen
Generally Awesome Person
jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.jgoguen ought to be getting tired of karma fortunes by now.
 
Posts: 1,100
Karma: 2191133
Join Date: Jan 2013
Location: /dev/kmem
Device: Kobo Clara HD, Kindle Oasis
Is the Lovecraft book a free download from somewhere?
jgoguen is offline   Reply With Quote
Old 11-23-2013, 10:35 AM   #884
AJvK
Member
AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.AJvK knows the square root of minus one.
 
Posts: 24
Karma: 7940
Join Date: Jun 2013
Device: Kindle Voyage, Kobo Aura (normal and HD)
Quote:
Originally Posted by jgoguen View Post
Two pieces of advice actually
  1. Remove the plugin, restart calibre, install the plugin, and restart calibre again
  2. Update both calibre and this plugin much more frequently

The first is what you have to do because you left old versions installed for so long. The second is how you prevent this from happening again.
OK, thanks. Took me some time to get to this, and was loath to try it because of the customizations I made in calibre, but as it turns out all my settings for the extended driver were still intact. Hurray!
I shall try to endeavor to keep my plugins updated

AJvK is offline   Reply With Quote
Old 11-23-2013, 12:31 PM   #885
kaufman
Calibre Companion Fanatic
kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.kaufman ought to be getting tired of karma fortunes by now.
 
kaufman's Avatar
 
Posts: 873
Karma: 1088610
Join Date: Nov 2006
Device: Galaxy Note 4, Kindle Voyage
Quote:
Originally Posted by jgoguen View Post
Is the Lovecraft book a free download from somewhere?
Yes, I got it from:

http://cthulhuchick.com/
kaufman is offline   Reply With Quote
Reply

Tags
error, kobo aura one


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Device Driver Update davidfor Devices 284 05-24-2019 05:24 PM
[Device Plugin] Kindle 2, 3, 4, Touch Device Interface MBP Update Mod cryzed Plugins 7 10-28-2012 04:58 PM
[Device Interface Plugin] Update for Nook Color Driver jmricker Plugins 0 10-22-2011 10:11 AM
Touch Kobo Touch Extended 2 Year Warranty - Is it worth the $34.99? EverC Kobo Reader 11 08-31-2011 11:47 PM
Touch Kobo Touch Extended Warranty Program SensualPoet Kobo Reader 1 07-17-2011 04:08 AM


All times are GMT -4. The time now is 01:19 AM.


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