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 08-07-2016, 08:03 AM   #1
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 63
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Aura H2O
Too many page breaks when converting from .azw3 to epub

Hi,

I've noticed recently that books I've bought from Amazon and converted to ePub in Calibre are showing up on my reader with a page break at the end of each paragraph. So, I'm getting a book with 2756 pages instead of 290 and I have to swipe after the end of each paragraph - when the paragraph consists of ""Yes" he said" it is especially frustrating.

Is there some code I can use in the edit book function to fix the conversion or can you suggest some other way to make the ePub version look better?

thx so much!
Kaetrin is offline   Reply With Quote
Old 08-07-2016, 08:06 AM   #2
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,341
Karma: 309002494
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Do not edit the epub. Tweak the conversion parameters. I'd guess that the paragraphs in the AZW3 are marked up in a way that the default calibre settings interpret as requiring a new page.
pdurrant is offline   Reply With Quote
Advert
Old 08-07-2016, 08:08 AM   #3
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 63
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Aura H2O
How would I tweak the conversion parameters? Any suggestions? (I've never had to do it before - I've just clicked "convert"!)
Kaetrin is offline   Reply With Quote
Old 08-07-2016, 08:56 AM   #4
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
For me a better solution is most time the plugin Kindle unpack (KF8 to EPUB).

https://www.mobileread.com/forums/sho...d.php?t=171529
Attached Thumbnails
Click image for larger version

Name:	calpikiun.JPG
Views:	444
Size:	16.1 KB
ID:	150739  
Divingduck is offline   Reply With Quote
Old 08-07-2016, 10:17 AM   #5
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 72,341
Karma: 309002494
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Kaetrin View Post
How would I tweak the conversion parameters? Any suggestions? (I've never had to do it before - I've just clicked "convert"!)
In the conversion dialog there's a section 'structure detection'. I suspect some paragraph attribute is matching the 'detect chapters' expression.
pdurrant is offline   Reply With Quote
Advert
Old 08-07-2016, 10:58 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,139
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Divingduck View Post
For me a better solution is most time the plugin Kindle unpack (KF8 to EPUB).

https://www.mobileread.com/forums/sho...d.php?t=171529
After the format shift from KF8 to ePub, you will need to validate the code because it will contain errors.Not many and it's easy to fix.
JSWolf is online now   Reply With Quote
Old 08-07-2016, 03:59 PM   #7
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Yes, that is correct. Thanks for the hint (I forgot to mention this point). I usually open each of these files with the editor and adjust the findings on the fly. As you wrote, easy and fast to fix. For me this is in most cases a better way then to screw up the whole book structure with a standard EPUB conversion.
Divingduck is offline   Reply With Quote
Old 08-08-2016, 02:10 AM   #8
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 63
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Aura H2O
@JS Wolf I'm sorry, I'm not sure what you mean by "validate the code".

I was using Kindle unpack to convert amazon files to epub but my reader didn't like it much (although I have a new one now so maybe that's changed). Even though I could see the epub was fine in Calibre it wouldn't open on my reader. I found that if I convered .azw3 to mobi and then converted to epub from the mobi file just using the standard convert button in Calibre it worked fine. Perhaps a little more unwieldy but I was happy enough and I never had trouble getting books on my reader. But suddenly there are a subset of the .azw3 files which are converting to epub strangely.

@PDurrant
I don't know much about html code or anything like that so I'm hoping the solution will be really simple. Many of the suggestions so far have gone over my head I'm afraid. You are probably right about some paragraph attribute but I don't have the first clue what I'm looking for here or how to fix it. Hence I came to the experts!
Kaetrin is offline   Reply With Quote
Old 08-08-2016, 04:01 AM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,139
Karma: 134368292
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Kaetrin View Post
@JS Wolf I'm sorry, I'm not sure what you mean by "validate the code".

I was using Kindle unpack to convert amazon files to epub but my reader didn't like it much (although I have a new one now so maybe that's changed). Even though I could see the epub was fine in Calibre it wouldn't open on my reader. I found that if I convered .azw3 to mobi and then converted to epub from the mobi file just using the standard convert button in Calibre it worked fine. Perhaps a little more unwieldy but I was happy enough and I never had trouble getting books on my reader. But suddenly there are a subset of the .azw3 files which are converting to epub strangely.
Um.. don't do that. It makes a right mess of things. Mobi is obsolete and going KF8 > Mobi > ePub is a rather bad idea.

Validate the code means opening the eBook in the Calibre eBook editor and validating the code and then fixing anything found. I should then work on your Reader.
JSWolf is online now   Reply With Quote
Old 08-08-2016, 07:53 AM   #10
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 63
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Aura H2O
@JSWolf. You see, I don't understand what you've just said. I don't know what "validating the code" means. I don't know what codes to look for and what is "good" code and what is "bad" code. I don't know what instructions to put in to change something from one way to another. I'm not experienced in ebook editing at all. All I want to be able to do is not have a page break at the end of every paragraph when I convert from .azw3 to epub.

As for converting to mobi first, I still buy books in mobi format and I've never had any trouble converting from .azw3 to mobi to epub before. Even if I just convert from .azw3 to epub, I'm still getting the same issue however (I tested it). In any event, it's not mobi that's causing the issue, I'm quite confident of that. There's something in the .azw3 file but I don't know what it is, how to identify it or how to get rid of it.

Last edited by Kaetrin; 08-08-2016 at 07:55 AM. Reason: update
Kaetrin is offline   Reply With Quote
Old 08-08-2016, 08:58 AM   #11
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
@Kaetrin,

It sounds to me as if you are using calibre's default setting for page splits and that this particular book is totally unsuited for that default. Try the following:

Make sure you're converting from the original source azw3 and on calibre's Convert - Structure Detection page try the following 2 settings:
Detect chapters at: /
Insert page breaks before: /

and on the Convert - Table of Contents page, make sure the Level 1, Level 2, Level 3 TOC boxes are all blank

The calibre defaults were probably created for the early ebook days when it was necessary to split a solid wall of text into sensible chapter chunks. These days a well-designed retail quality ebook should (but don't bet real money on it ) already be split into the correct chunks with a matching TOC so you don't need calibre to try and guess where the chapters start/end.

ETA: Also make sure that on the Convert - Heuristic Processing page the 'Enable heuristic processing' is UNCHECKED

Last edited by jackie_w; 08-08-2016 at 09:01 AM.
jackie_w is offline   Reply With Quote
Old 08-08-2016, 12:15 PM   #12
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
Quote:
Originally Posted by Kaetrin View Post
@JS Wolf I'm sorry, I'm not sure what you mean by "validate the code".
I was using Kindle unpack to convert amazon files to epub but my reader didn't like it much (although I have a new one now so maybe that's changed). Even though I could see the epub was fine in Calibre it wouldn't open on my reader.
As I brought this solution up to discussion with no further explanations, here a short introduction how to go forward with Kindle unpack and error correction of the resulting EPUB. The ZIP contains a word file with explanations, some screenshots and a saved search example for import used in the explanation for the calibre editor. Hope you will find it useful for your needs.

Best regards, DD
Attached Files
File Type: zip AZW3 to EPUB with GUI PlugIn KindleUnpack.zip (2.92 MB, 327 views)
Divingduck is offline   Reply With Quote
Old 08-08-2016, 10:17 PM   #13
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 63
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Aura H2O
Hi Jackie,

Here is what Calibre defaults to:

Detect chapters at (x path expression)
//*[((name()='h1' or name()='h2') and re:test(., '\s*((chapter|book|section|part)\s+)|((prolog|prol ogue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']

and

Insert page breaks before (x path expression)
//*[name()='h1' or name()='h2']

Should I delete one of the / symbols?
Kaetrin is offline   Reply With Quote
Old 08-08-2016, 10:18 PM   #14
Kaetrin
Connoisseur
Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.Kaetrin can eat soup with a fork.
 
Kaetrin's Avatar
 
Posts: 63
Karma: 9402
Join Date: Jul 2009
Location: Adelaide, South Australia
Device: Kobo Aura H2O
thx, I'll take a look and see if I can get my head around it.
Kaetrin is offline   Reply With Quote
Old 08-09-2016, 05:48 AM   #15
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,216
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
Set both of them to a single forward-slash.
jackie_w is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Dictionary (MOBI to EPUB), remove page breaks fncll Conversion 5 12-13-2014 09:24 PM
Converting ePub > AZW3 so the cover shows up as the first page JSWolf Kindle Formats 5 06-30-2014 01:52 PM
Converting AZ3 to MOBI adds numerous page breaks jensp Conversion 3 11-24-2013 11:15 PM
Converting to PDF help? Bad page breaks and no TOC produced. Jokerfwb Conversion 6 07-24-2012 10:36 PM
Any way to force page breaks when converting HTML to EPUB Bierkonig Calibre 23 10-31-2009 01:51 PM


All times are GMT -4. The time now is 10:28 AM.


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