|
|
Thread Tools | Search this Thread |
09-08-2024, 03:16 PM | #1 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
converting word doc to epub:Page break shows when it is not present in the word file.
I am using calibre 64bit Version: 7.17.0 and Word 2010.
I am having issues with page breaks at parts of the book where there are no page breaks. Attached is the test word file with the actual title. I have reinstalled word, reinstall calibre, reset the word template. and a load of other things to fix this issue. There are no visable page breaks in the document yet they still show in the converted epub file ! The page break shows before the title "The book of hymns" yet it is not in the word file. I have not changed any configs in word or calibre. Can anyone tell me why this might be happening. TIA |
09-08-2024, 03:39 PM | #2 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
this is another word doc that shows all the chapters correctly and there are no page breaks, I have tried to use the copy format method, but this did not work.
|
Advert | |
|
09-08-2024, 03:42 PM | #3 |
Well trained by Cats
Posts: 30,453
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Imports typically insert Page Breaks before Headings (h1,h2,h3)
Do not use Headings just for STYLE. You can mak a stylesheet class that LOOKS just like a Heading but will not process like 1 (eg semi-auto generated TOC) |
09-08-2024, 04:07 PM | #4 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
It is only this book that the issue happen too. The other book is fine and the chapter markers works fine. If I remove all headings, there are no issues with the page breaking, but then there are no markers to show it is a start of a chapter. I would like to keep it simple and not have to edit the book once imported into calibre.
Is there another way to mark the titles of the chapter names, so that in the readers they can swipe to see the chapter names to go to without having to scroll through the whole book to find where they got to (should they view another book inbetween) |
09-08-2024, 04:11 PM | #5 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
oh I posted but the post disappeared.
I would like to keep things simple without having to edit the book after import in to calibre. What other methods could I ues to set the chapters titles? I set these up so it is easier for people to find where they got to. Say if they viewed another book inbetween. |
Advert | |
|
09-08-2024, 05:26 PM | #6 | |
Well trained by Cats
Posts: 30,453
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
BTW This really just applies to incorrect usage (not a real heading. Eg a bold sign.) |
|
09-08-2024, 07:47 PM | #7 |
null operator (he/him)
Posts: 21,008
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
The two DOCXs you posted use different Templates hence Styles.
NEW INSTALL TEST1 TEST 1 this work Consequently we end up with different stylesheets and xhtml file break up in the EPUB I convert up to a dozen DOCX to EPUB a week. The only thing I do to the EPUBs is to remove superfluous metadata from the OPF and rename the .XHTML files to match chapter numbers and or names. I never touch the formatting. If I see something wrong I correct the manuscript DOCX and redo the conversion. BR |
09-08-2024, 09:18 PM | #8 | |
Evangelist
Posts: 420
Karma: 2737916
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Quote:
Give your THE BOOK OF HYMNS line a different, non-heading style in Word and it will no longer appear as a break in the conversion. You can make the style LOOK like anything you want, just get the "heading" type off it. Word will not show a page break just because of a heading. Page breaks in Word are completely different things than they are in an epub. |
|
09-08-2024, 10:22 PM | #9 | |
null operator (he/him)
Posts: 21,008
Karma: 27620706
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
As will LO Writer, Wordperfect, etc… and pretty sure DISSOS and Profs did too. BR |
|
09-10-2024, 07:18 AM | #10 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
I have checked all headings and all have the same style/font/spacing/margin, I just apply the heading and change the colour and size. I have tried to copy/format and past but still this does not fix it. Why would all other headings work as expected yet this one fails. I have delete the heading and a few lines of text before and after the heading, then retyped manually the text. But still at this very same section the page breaks. yet there are no hidden break or special characters.
In Calibre I go in to edit book, and view the html code, here is the end of the html before the unwanted page break. <p class="block_4"><span class="calibre5"> </span>‘It’s all right,’<span class="calibre5"> he says, softly. </span>‘<span class="calibre5">I’m not blaming you. It’s only natural really, that you should feel like that. Only</span>…’ He pauses, and I look up. ‘Your home is in England now, Odette,’<span class="calibre5"> he continues, very gently. </span>‘Don’t you think you should be making the best of your life here?’</p> <p class="block_4"><span class="calibre5"> I bite my lip. </span>‘<i class="calibre6">J’essaie,</i>’<span class="calibre5"> I reply. Then, </span><i class="calibre6">‘C’est difficile.</i>’<span class="calibre5"> And then I realise. I’m still speaking in French. And in fact, in all the years I live in England, I never lose my French accent. And that night, and every other night, for all the rest of my life, I dream in French.</span></p> <p class="block_5">*</p> </body></html> this is the html after the unwanted page break. Code:
<?xml version='1.0' encoding='utf-8'?> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Unknown</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <link rel="stylesheet" type="text/css" href="stylesheet.css"/> <link rel="stylesheet" type="text/css" href="page_styles.css"/> </head> <body class="calibre"> <h1 class="block_9" id="toc_id_138">THE BASKET</h1> <p class="block_10">*</p> <p class="block_4"><span class="calibre5">On my birthday, there’s a letter from Maman. Crisp blue envelope covered in thin strokes of ink. Send it back. I don’t want to read it. I don’t want to read the word we can’t ever bring ourselves to say.</span> <i class="calibre6">Cancer</i>. The same in both languages.</p> page_style.css @page { margin-bottom: 5pt; margin-top: 5pt; } this is the stylesheet.css .block_ { display: block; font-family: serif; font-size: 0.75em; line-height: 1.08; text-align: center; margin: 0 0 8pt; padding: 0; } .block_1 { display: block; font-size: 2em; line-height: 1.08; text-align: center; margin: 0 0 8pt; padding: 0; } .block_2 { display: block; line-height: 1.2; text-align: center; margin: 0 0 8pt; padding: 0; } .block_3 { display: block; line-height: 1.2; page-break-after: always; margin: 0 0 8pt; padding: 0; } .block_4 { display: block; line-height: 1.2; margin: 0 0 8pt; padding: 0; } .block_5 { display: block; font-family: serif; font-size: 0.75em; line-height: 1.08; margin: 0 0 8pt; padding: 0; } .block_6 { display: block; font-style: italic; line-height: 1.2; margin: 0 0 8pt; padding: 0; } .block_7 { display: block; font-size: 1.125em; font-weight: bold; line-height: 1.2; page-break-after: avoid; page-break-inside: avoid; margin: 12pt 0 0; padding: 0; } .block_8 { display: block; font-size: 1.125em; line-height: 1.2; margin: 0 0 8pt; padding: 0; } .block_9 { display: block; font-size: 1.125em; font-weight: normal; line-height: 1.2; page-break-after: avoid; page-break-inside: avoid; margin: 12pt 0 0; padding: 0; } .block_10 { display: block; font-family: serif; font-size: 0.75em; margin: 0; padding: 0; } .block_11 { display: block; line-height: 1.2; text-align: justify; margin: 0 0 8pt; padding: 0; } .block_12 { display: block; font-family: serif; font-size: 0.75em; line-height: 1.08; text-align: justify; margin: 0 0 8pt; padding: 0; } .block_13 { display: block; font-size: 1.125em; line-height: 1.2; page-break-after: always; margin: 0 0 8pt; padding: 0; } .block_14 { display: block; font-size: 0.75em; line-height: 1.08; margin: 0 0 8pt; padding: 0; } .block_15 { display: block; font-size: 1.125em; font-style: italic; line-height: 1.2; margin: 0 0 8pt; padding: 0; } .block_16 { display: block; font-size: 1.125em; line-height: 1.2; text-align: center; margin: 0 0 8pt; padding: 0; } .calibre { display: block; font-family: "Garamond", serif; font-size: 1em; padding-left: 0; padding-right: 0; margin: 0 5pt; } .calibre1 { line-height: 1.2; } .calibre2 { height: 52.5pt; line-height: 1.2; width: 116pt; } .calibre3 { display: block; page-break-after: always; margin: 0; padding: 0; } .calibre4 { display: block; line-height: 1.2; } .calibre5 { line-height: 1.2; white-space: pre-wrap; } .calibre6 { font-style: italic; line-height: 1.2; } .calibre7 { font-weight: bold; line-height: 1.2; } .calibre8 { font-size: 0.75em; line-height: normal; vertical-align: super; } .tab { line-height: 1.2; white-space: pre-wrap; } .text_ { font-style: italic; letter-spacing: -0.4pt; line-height: 1.2; } .text_1 { background-color: #FFF; font-style: italic; line-height: 1.2; } .text_2 { font-style: italic; font-weight: bold; line-height: 1.2; } .text_3 { font-style: italic; line-height: 1.2; text-decoration: underline solid; } .text_4 { font-size: 1.33333em; line-height: 1.2; } .text_5 { font-size: 1.33333em; font-style: italic; line-height: 1.2; } .text_6 { font-size: 1.5em; line-height: 1.2; } I do not want to be editing these files if I can help it, just fix the issue in the original word document. Last edited by issybird; 09-10-2024 at 08:14 AM. |
09-10-2024, 09:55 AM | #11 |
Well trained by Cats
Posts: 30,453
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
<h1 class="block_9" id="toc_id_138">THE BASKET</h1>
You have set a Page HEADER in your document. This is on every PRINTED PAGE and you don't want to do that for an EPUB as there are no 'pages', only screenfuls that varry with the USER selected size and font. |
09-10-2024, 10:28 AM | #12 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
ok, But I do not have any issues with the other story titles, all using the same method to format them.
|
09-10-2024, 11:34 AM | #13 |
Well trained by Cats
Posts: 30,453
Karma: 58055868
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Are you the Author of these word files? Because Calibre, by default breaks on H1, H2, so something IS slightly different. Note: changing the h1 to a p, will not, in this case, change the look because it is STYLED to look the same.
|
09-10-2024, 01:10 PM | #14 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
I am not the author, I am helping them convert the file for Kindle.
Calibre is not breaking all H1, H2, only two, all others are unaffected. The other book I converted did not have this issue, and all formatting methods used are the same. I have even tried to copy the format from the unaffected book title to the book I am working on now and this did not make any difference. I even cleared the formating and tried to copy/format to make sure it was changing it, which it did, but still the page break shows at this and the other title, yet all other titles show fine without a page break. |
09-10-2024, 01:15 PM | #15 | |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting Word Doc to ePUb- FOOTNOTES | Mooninite1 | ePub | 8 | 02-28-2015 09:26 AM |
Converting a Japanese Word doc to Mobi help, please | ImogenRose | Conversion | 1 | 06-12-2013 02:20 PM |
I need a simple app for converting Word .doc file to .mobi | macdonald79 | Amazon Kindle | 17 | 07-22-2011 08:58 AM |
Converting Word Doc with Tables to Epub? | dhume01 | ePub | 8 | 12-28-2010 09:02 PM |