View Single Post
Old 12-21-2019, 10:53 AM   #18
aap
Member
aap began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2019
Device: HTML
BR/Koval -

After wandering through the catacombs of Word's bizarre styles dialogs, here's a solution.

Heading3 did indeed have a buried alignment and indent setting (Heading3 Styles problem.png)

To resolve this and the Heading4 missing list level number in the body text:

Step1: Change Heading3 indent and alignment to match Heading1 and Heading2 (1. fix H3 indent.png)

Step2: Select Heading4 and change to match Heading3 (2. update H4 to match selection.png)

Step 3: Change Heading4 to List Level 4 (3. change list level.png)

Step 4: Insure Heading4 number values are 1.1.1.1 (4. set number value.png)

After processing through Calibre with the flow DOCX>HTMLZ>ZIP, the resulting HTML is now correct !!! (firefox rendering.png)

Modified DOCX source (test-docx.zip) and Calibre HTML output (test calibre out.zip) are included.

So it is indeed possible to do the 4-level chapter and TOC with Calibre 4.6.0.

Thanks to all for your help.
Attached Thumbnails
Click image for larger version

Name:	Heading3 Styles problem.png
Views:	211
Size:	73.2 KB
ID:	175787   Click image for larger version

Name:	1. fix H3 indent.png
Views:	225
Size:	19.4 KB
ID:	175788   Click image for larger version

Name:	2. update H4 to match selection.png
Views:	209
Size:	15.2 KB
ID:	175789   Click image for larger version

Name:	3. change list level.png
Views:	215
Size:	24.0 KB
ID:	175790   Click image for larger version

Name:	4. set number value.png
Views:	211
Size:	13.9 KB
ID:	175791   Click image for larger version

Name:	firefox rendering.png
Views:	213
Size:	46.4 KB
ID:	175792  
Attached Files
File Type: zip test-docx.zip (69.8 KB, 202 views)
File Type: zip test calibre out.zip (3.2 KB, 197 views)
aap is offline   Reply With Quote