View Single Post
Old 10-08-2023, 06:15 AM   #18
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,348
Karma: 105899727
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by retiredbiker View Post
The numbering of headings means that the source file is considering the heading part of a numbered list. I get this if I save a Writer doc as .docx before conversion. I have fought it forever and don't know why. Others may not have this problem. To avoid it, use some custom style in Writer, rather than the "heading" ones.
I don't know why this happens, but the once off solution is simple.

Make styles with your own names just the same as Heading 1, Heading 2 etc. Make sure to set the heading level and Page Break before (with blank style entry) if needed. Calibre should be splitting files on such headings.

Save all your new styles as a template with an outline odt that uses them. Then only view Applied Styles in the style browser.
Only direct formats for text in a paragraph that's italic, bold, super, subscript etc. Never indents, line spacing, font, or size.

Only edit as odt. An extra Save As in docx for Calibre.
Tools > Options > User Data [First/last name/initials will be imported as Author Metadata.
In Properties
Title -> Title
Subject -> maybe to tags
Keywords -> tags
Comments (the Blurb) -> Comments

Language should also be set automatically.

The docx converts better than odt, as it's maintained and docx odt isn't.

Only open a docx in LO Writer you are checking and saving as odt as it does a conversion and may mess up styles or links or headings as the conversion designed to look cosmetically correct as paper print!

Embed fonts if Calibre is on a different computer, or make sure it has the fonts, if embedding fonts in epub.

Quote:
On the other hand now, the problem is with my publisher who, by automatically converting the perfect ePub for me, created many problems.
For paper, edit a copy of ODT and change the styles to suit PDF. Export PDF. Never give epubs to "printers" they are only for ebook publishing.

A PDF version will have headers & footers, multiple page styles, hyphenation (don't enable or insert for epub except words that have it such as "he had a fish-like face"), different spacings, maybe different fonts and font sizes. It might have other features not in an epub.

Last edited by BetterRed; 10-08-2023 at 04:45 PM. Reason: typo fixed - docx-> odt
Quoth is offline   Reply With Quote