|
|
Thread Tools | Search this Thread |
09-10-2024, 12:34 PM | #16 |
Well trained by Cats
Posts: 30,389
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
What is Book of Hymns?
Only Chapters (and Part) Should use H tags Code:
<h3 class="chapno">Chapter 23</h3> Headers and Footers appear on all (print) pages A 'Heading' (H#) is a Style of text. It just so happens that Calibre and Sigil use those as markers to generate the TOC with a couple of clicks. In addition, these are normal places where a new chapter starts, so the cod also get page-break-before:always inserted. Stupid Vellum also codes title pages with h1 title, subtitle , h2 for series, author1, author2 ... (Styling like that was so HTML 3 ) Calibre convert turns those into individual screens (pages). Sinc I do WANT that to happen for all others, I do not turn that off. I just hand fix (chang all those OTHER h's to p on the title page |
09-10-2024, 12:45 PM | #17 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Ok, so I have attached the word document to this post. The stories show as expected in the navigation panel. But as you can see the first titles show fine, but the last one is on a new page, not continued from the last story. All have as far as I can see the same formatting.
|
09-10-2024, 01:20 PM | #18 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
This is the resulting epub file.
|
09-10-2024, 01:30 PM | #19 |
Well trained by Cats
Posts: 30,389
Karma: 58053698
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
I use Libre Office and it (the docx) shows on a single 8.5 x 11 page
(I also do not use LO as a book source. AKA authoring) Whatever is happening for you could be a page overflow due to the current styling for h1 You need to understand The Box Model Margin-border-padding-text-padding-border-margin (with the exception of text, all those others can have values for Top, Bottom, Right, Left Usually if not specified Border and padding are 0. BUT the viewer may have non-zero defaults for Margin, which makes it a good practice to specify what you really want A box must fit or it ends up on the next screen (widows and orphans offer additional controls) Personally, I just fix the code. The DOCX gets the document int the editor for final styling. |
09-10-2024, 01:58 PM | #20 | |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Box Model, I understand this. But if this was the case, when I reduce the size of the text in the viewer, this should cause the problematic story title to continue under the previous story?
Quote:
|
|
09-10-2024, 03:22 PM | #21 |
Bibliophagist
Posts: 39,652
Karma: 154147704
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
As far as I can tell, the docx file is using one style for the heading and one style for paragraphs. The docx file is using spaces to indent paragraphs. That is another task that should be done with a style so you need two styles. One for the non-indented paragraph and one for the indented paragraphs. As for the page break before The Book of Hymns, looking at the epub file, you have:
Code:
<div class="calibre2"></div> Code:
.calibre2 { display: block; line-height: 1.2; page-break-after: always; margin: 0; padding: 0; } Last edited by DNSB; 09-10-2024 at 03:24 PM. |
09-10-2024, 03:41 PM | #22 | |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Thank you for this.
But we really need to have all stories below the previous, even if the story continue part way through on the next page, all work corre try. It's just this one, that causes issues. I stripped all formatting and added formatting to just the titles, but this did not work. Having each story start on a new page is not what is wanted. Quote:
|
|
09-10-2024, 06:41 PM | #23 |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Try changing the Structure settings in Conversion to this:
My resultant BUCKET 1.EPUB with those settings is attached. BR |
09-11-2024, 01:40 AM | #24 | |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Thank you so much, think this has solved the page break issue.
Quote:
|
|
09-20-2024, 03:17 PM | #25 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Ok, So I spoke to soon. Without using the paragraphs to mark the start of each story which will in turn show up as chapters in the left hand colum of most readers, what other methods within word could I use to achive the same effect. But use Calibre out of the box without altering anything ?
|
09-20-2024, 07:12 PM | #26 |
null operator (he/him)
Posts: 20,946
Karma: 27620688
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
In Word: make sure paragraphs that have a Style of Heading 1 or Heading 2 avoid the use any of the words that trigger calibre's Conversion->Common options->Structure detection->Detect chapters at (XPath expression), which are:
Code:
chapter, book, section, part, prolog, prologue and epilogue In Calibre: set Conversion->Common options->Structure detection->Chapter mark: to none - either per book or in Preferences. If it were me, I'd change the settings in Calibre, probably as needed for a particular book rather than for all books via the settings in Preferences. BR |
09-20-2024, 08:44 PM | #27 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
ok so the thing that I have found out is that when I drag the doc file to Calibre and right click select View and then View with calibre E-book viewer, it all shows fine. No unwanted page breaks above the titles. But when I right click and select convert books, then convert individually, the unwanted page gaps show up ?
It seems that the test viewer is using a different set of rules ? |
09-20-2024, 09:11 PM | #28 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Yes, the viewer tries to show the input document as close to its designed appearance as possible. Conversion does various transformations be default to get output as consistent as possible for a wide range of input.
|
09-20-2024, 09:31 PM | #29 |
Member
Posts: 18
Karma: 10
Join Date: Sep 2024
Device: calibre
|
Ok, so lets say I change all the story titles, paragraphs (heading 1) to 'Book Title' style, how do I get Calibre to know that this is where I only want to have the page breaks?
|
09-20-2024, 09:53 PM | #30 |
creator of calibre
Posts: 44,377
Karma: 23764838
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Insert the page breaks in your word style and calibre will pick them up automatically. Remeber to set the deteection setting in calibre to / so it doesnt break anywhere else.
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Converting Word Doc to ePUb- FOOTNOTES | Mooninite1 | ePub | 8 | 02-28-2015 08:26 AM |
Converting a Japanese Word doc to Mobi help, please | ImogenRose | Conversion | 1 | 06-12-2013 01:20 PM |
I need a simple app for converting Word .doc file to .mobi | macdonald79 | Amazon Kindle | 17 | 07-22-2011 07:58 AM |
Converting Word Doc with Tables to Epub? | dhume01 | ePub | 8 | 12-28-2010 08:02 PM |