11-26-2020, 03:04 PM | #1 |
Avid Learner
Posts: 39
Karma: 10
Join Date: Sep 2020
Location: Charleston, SC
Device: Kindle Fire, iPad
|
MS Word Header Styles Conversion to EPUB
This question is in general, not about a specific document.
My 'document' is completely formatted using Styles in MS Word. . I am trying to figure out how to set up a style, so it gets converted into a header style in the EPUB file. As Headers are the only thing that get brought into the TOC in Sigil. . Attached is the Style setup I currently have. . Can this be achieved during the conversion, or do I need to fix it in Sigil? . Thanx for the assist. |
11-26-2020, 04:36 PM | #2 |
null operator (he/him)
Posts: 20,583
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
What format are you converting?
If you save as DOCX and convert it using the default settings, then calibre should convert the Word header styles one-for-one i.e. Word Style Heading 1 becomes <h1… >, Word Style Heading 2 becomes <h2…> etc. BR |
Advert | |
|
11-26-2020, 05:39 PM | #3 |
Addict
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
I had a very similar problem, although it was with Writer, not Word. I found that if I made a new style based on Header 1, header 2, etc., it was ignored during conversion. I had to actually modify the existing Header 1 or 2 style, rather than make a new one. I think the conversion looks for "Header 1" only and specifically, so if I had a "Header 1a", it was ignored as a header.
|
11-27-2020, 12:27 PM | #4 |
the rook, bossing Never.
Posts: 11,169
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
|
You can make a new style from scratch in Writer, or Word. But a new style by default is body text level. You need to go to the part of the style definition and set it to Level 1, Level 2, Level 3 etc.
I tend now to use Level 2 for chapters and then there is no Level 1 unless there are higher level sections, parts or volumes than the chapter. If it's an omnibus edition, then chapters can be even Level 3 if a book in the Omnibus has parts. The Title is body text level unless it's an omnibus edition. Anything that's not in the TOC/NCX should be body level. Additionally I have a user embedded Contents in eBooks. I make it like this: 1) Insert Index, but edit template so there are no page numbers 2) Cut it all and paste in a text editor 3) Copy it back and apply a suitable style. 4) Put an anchor (bookmark) at the start of each heading that is in the Contents in the body of the book. Word may let you select a range, but don't. Just click at start of line. 5) Select line of contents and then command to insert link. Use the bookmark name with # prefix rather than using Document properties. Go properties and check title, details, fonts embedded. Save As an extra copy as docx if using Writer, never edit docx in Writer, use odt. Import docx to Calibre (or use Sigil). Convert to epub even if you want mobi. Tablet mode for page, assuming the images are done properly. View in Calibre (make sure it's not set to save bookmarks in the epub!). Verify the system NCX is correct and all the links work. Verify all the links ALSO work in the Contents page you made. Then the epub is fine for Amazon KDP. Remove the docx so when you make any other format, it's made from the epub. Like dual mobi to test on your own kindle or upload to Smashwords AS WELL AS the epub. You also need to Save As a Doc from Word or Writer for formats on Smashwords other than Kindle and epub. Use epub for Amazon and Google. Smashwords will distribute the epub you uploaded to Apple, Kobo, Barnes & Noble etc (basically all except Amazon and Google). |
11-27-2020, 05:45 PM | #5 |
Addict
Posts: 387
Karma: 1638210
Join Date: May 2013
Location: Ontario, Canada
Device: Kindle KB, Oasis, Pop_Os!, Jutoh, Kobo Forma
|
Ah, that's under Outline Level. Of course. I'll give this a try next time I want a couple-three custom header styles. Thanks!
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
In epub converting calibre auto split file in header. Why not create toc from header. | The_book | Conversion | 7 | 11-06-2020 09:09 AM |
HTML to EPUB conversion breaks styles | iliakan | Conversion | 1 | 01-15-2015 02:36 PM |
Conversion from Word file to Epub | Charlie658 | Conversion | 2 | 11-10-2014 03:45 PM |
Strip specific styles from EPUB conversion? | kurokaze | Conversion | 1 | 04-06-2011 07:04 AM |
MS Word 2010 to EPUB conversion | gertblij | Calibre | 13 | 12-17-2010 10:10 AM |