Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 09-10-2018, 05:25 AM   #1
yJan1986
Member
yJan1986 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: pocketbook Touch HD 2
calibre >=3.30. Touch 2 HD shows strangest behavior

Hello!

On my device ( pocketbook touch 2 hd ), I have tried to view an epub book that I have previously created from an HTML file. The e-book conversion took place with calibre (3.30).

Table of contents created by automatically detecting H1 tags.

If you open the book and select an entry in the table of contents, it jumps to the designated text position, no problem.
But if you return to the table of contents, it boldly marks a wrong entry to signify where you came from.
The version of the touch 2 hd is "U631.5.18.463".

I wanted to ask if someone could give me an answer or clarification, if I have to contact the manufacturer.

.epub file:
https://drive.google.com/open?id=1rp...nj-kHEVtc6NXVT

.htmlz file:
https://drive.google.com/open?id=16w...t-R8uGi8tMl-sq

Thank you for all your help!

Last edited by yJan1986; 09-10-2018 at 05:48 AM.
yJan1986 is offline   Reply With Quote
Old 09-10-2018, 07:16 AM   #2
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Interestingly enough, the Kobo epub reader has a similar bug. It there is more than one ToC entry for an internal file, the ToC will always show the first entry in the file as the current chapter. Selecting any of the others works. As another device has the same bug, it is probably a bug in the Adobe RMSDK.

The workaround on a Kobo is to split the book up by chapters into separate internal files. In general, I think this works better. You can do this with a conversion, or in the editor.
davidfor is offline   Reply With Quote
Old 09-11-2018, 11:30 AM   #3
yJan1986
Member
yJan1986 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: pocketbook Touch HD 2
Okay,
Thanks for your reply, I didn't know about multiple toc entries, I thought the option "Force use of auto-generated TOC " was enough.

The workaround on your kobo is somehow unclear to me, because I don't know of any method to split by chapters, other than the option calibre provides - to split by size, under the EPUB output options during conversion.

I have tried to adjust the version of the EPUB to 3 and tried to force the separation by size, unfortunately to no avail. The fact that the EPUB e-books from earlier versions of calibre have worked like a charm with my touch 2 hd, implies that someone musr have changed something in these lines of code.

Unfortunately, I am no code monkey that I could find this issue by myself :-(.

Last edited by yJan1986; 09-11-2018 at 01:31 PM.
yJan1986 is offline   Reply With Quote
Old 09-11-2018, 02:13 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by yJan1986 View Post
Okay,
Thanks for your reply, I didn't know about multiple toc entries, I thought the option "Force use of auto-generated TOC " was enough.

The workaround on your kobo is somehow unclear to me, because I don't know of any method to split by chapters, other than the option calibre provides - to split by size, under the EPUB output options during conversion.

I have tried to adjust the version of the EPUB to 3 and tried to force the separation by size, unfortunately to no avail. The fact that the EPUB e-books from earlier versions of calibre have worked like a charm with my touch 2 hd, implies that someone musr have changed something in these lines of code.

Unfortunately, I am no code monkey that I could find this issue by myself :-(.
My preference is to mark the splits using Sigil and then split the files however this is a manual process. The calibre editor has much the same capability. A quick workaround is to try an epub to epub conversion in calibre as calibre should split the file automatically at headers (the h1, h2, h3, etc. tags).
DNSB is offline   Reply With Quote
Old 09-11-2018, 03:18 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,800
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Calibre EDITOR splits are done in the Preview pane for Manual
OR bulk mode
context menu in any text (xhtml) pane using the wizard

I also use Sigil to Search and replace to add a sigil split marker via regex
(F6 splits at markers), then I Merge fragments to their parrent section

You have choices
theducks is online now   Reply With Quote
Old 09-12-2018, 09:28 AM   #6
yJan1986
Member
yJan1986 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: pocketbook Touch HD 2
Oh, I don't doubt the functionality of your advices, but I thought more of an advice like "of course, you can modify calibre's behavior by visiting the settings pane..." Or "copy the EPUB_output.DLL of version 3.29 over your current installation files". Ain't there an easier way to change calibre's behaviour for EPUB's to pre-3.30 ways, that sounds like much manual work for me.

Can anyone tell me if this is unwanted calibre behavior as davidfor pointed out earlier, and how do I create chapters in the HTML form?


@theducks: unfortunately, I didn't get the way you performed your tasks. Could you elaborate on that with screenshots or a link to an FAQ?

@DNSB: the book in this screenshot ( https://drive.google.com/open?id=1sQ...iN6ry0WEsuX4n4 ) is my EPUB file, opened with sigil, that creates these problems. It has been converted from the HTML file to EPUB with calibre.

However, after the second time converting the file, EPUB to EPUB, Sigil complaints about "not well formed HTML", and the images in the file seem to have disappeared from the html view in sigil.

Last edited by yJan1986; 09-12-2018 at 09:42 AM.
yJan1986 is offline   Reply With Quote
Old 09-12-2018, 10:00 AM   #7
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by yJan1986 View Post
Oh, I don't doubt the functionality of your advices, but I thought more of an advice like "of course, you can modify calibre's behavior by visiting the settings pane..." Or "copy the EPUB_output.DLL of version 3.29 over your current installation files". Ain't there an easier way to change calibre's behaviour for EPUB's to pre-3.30 ways, that sounds like much manual work for me.

Can anyone tell me if this is unwanted calibre behavior as davidfor pointed out earlier, and how do I create chapters in the HTML form?


@theducks: unfortunately, I didn't get the way you performed your tasks. Could you elaborate on that with screenshots or a link to an FAQ?

@DNSB: the book in this screenshot ( https://drive.google.com/open?id=1sQ...iN6ry0WEsuX4n4 ) is my EPUB file, opened with sigil, that creates these problems. It has been converted from the HTML file to EPUB with calibre.

However, after the second time converting the file, EPUB to EPUB, Sigil complaints about "not well formed HTML", and the images in the file seem to have gone from the html.
Firstly, I did not say this was "unwanted calibre". I said this was a bug in the ereader software on your device and the Kobo devices that didn't handle the ToC properly when there was more than one ToC entry per internal file. And that the fix was to split those files.

As to fixing file, open the epub in the calibre editor, open the file with all the text. Right-click somewhere in the text and select "Split at multiple locations". On the dialog, use the drop-down to select the XPath that matches best with the headings you used. It is probably the one with "h1" in it. Then press the "Ok" button. The file will be split.

Alternatively, run the conversion again. This time, uncheck the "Do not split on page break" option that is on the "EPUB output" page of the conversion options. There might be another option that need to be changed, but that's the only one I can think of at the moment.
davidfor is offline   Reply With Quote
Old 09-13-2018, 01:50 PM   #8
yJan1986
Member
yJan1986 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: pocketbook Touch HD 2
Thank you very much for your explanations, I have contacted the German support from pocketbook to inform them of this error, would you care to give me some links, informing me about these matters?

Best regards to you and your family!
yJan1986 is offline   Reply With Quote
Old 09-13-2018, 04:38 PM   #9
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,380
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by yJan1986 View Post
@DNSB: the book in this screenshot ( https://drive.google.com/open?id=1sQ...iN6ry0WEsuX4n4 ) is my EPUB file, opened with sigil, that creates these problems. It has been converted from the HTML file to EPUB with calibre.
Looking at the file list, it shows two html files. One for the cover image and another that contains the rest of the ebook.

Quote:
Originally Posted by yJan1986 View Post
However, after the second time converting the file, EPUB to EPUB, Sigil complaints about "not well formed HTML", and the images in the file seem to have disappeared from the html view in sigil.
I've seen that happen due to a habit of Sigil's of placing files in subdirectories. This can lead to links to images not being updated properly so they don't point to the Images subdirectory and stylesheet links not pointing to the Styles subdirectory. Again looking at your posted image, Sigil will move your stylesheets into a Styles subdirectory so the 2 visible stylesheet links that currently reads:

Code:
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
would need to be edited to read:

Code:
<link href="../Styles/stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="../Styles/page_styles.css" rel="stylesheet" type="text/css"/>
For images, it's very similar. I don't see an image link in what is visible but I suspect they would look similar to:

Code:
<img alt="" class="glyphw36" src="trdlogo.jpeg"/>
and need to be changed to:

Code:
<img alt="" class="glyphw36" src="../Images/trdlogo.jpeg"/>
I ended up saving searches to clean up both stylesheet and images links.
DNSB is offline   Reply With Quote
Old 09-13-2018, 08:34 PM   #10
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,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by yJan1986 View Post
Thank you very much for your explanations, I have contacted the German support from pocketbook to inform them of this error, would you care to give me some links, informing me about these matters?
I have no idea of any discussion on Pocketbook devices. It has been discussed a few times in the Kobo forum, but, that won't really help you. I'd probably just point them at this thread as it does describe the behaviour with examples.

And I do need to poke Kobo about it, so I'll probably just use this thread.
davidfor is offline   Reply With Quote
Old 09-16-2018, 10:11 AM   #11
yJan1986
Member
yJan1986 began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Mar 2018
Device: pocketbook Touch HD 2
Which leads me to my second question ... https://www.mobileread.com/forums/sh...45#post3748945
yJan1986 is offline   Reply With Quote
Reply

Tags
epub, pocketbook, touch 2 hd


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre latest version . Touch 2 HD shows strangest behavior yJan1986 PocketBook 1 09-11-2018 01:37 PM
Weird behavior with Kobo Touch maddz Devices 2 02-17-2017 05:27 AM
frame indent behavior and wrap spacing behavior rjwse@aol.com Conversion 0 03-10-2015 12:03 PM
kobo touch now shows blank everything justywusty Kobo Reader 2 01-11-2012 03:02 PM
Unexpected behavior - Calibre 0.8 zdt0343 Calibre 2 12-11-2011 08:03 AM


All times are GMT -4. The time now is 09:27 AM.


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