Quote:
Originally Posted by theducks
That looks like someone used a LI and Ordered List, in the original instead of UNORDERED (and no mark).
Calibre conversions can look for strings to Create Chapter Headings.
Found in Conversion: Structure detection
Code:
//*[((name()='h1' or name()='h2') and re:test(., '\s*((chapter|book|section|part)\s+)|((prolog|prologue|epilogue)(\s+|$))', 'i')) or @class = 'chapter']
|
Just for giggles I took a "bad" mobi file and converted that back to epub to maybe see if there was something in it that might be helpful.
This epub was a docx file created in Kubuntu 18.04 using LibreOffice 6 marking "Chapter 1" as Heading 1, and the docx converted to a mobi using Calibre 3.35 and then that mobi converted to an epub.
---------
<?xml version='1.0' encoding='utf-8'?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TEST</title>
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
<link href="page_styles.css" rel="stylesheet" type="text/css"/>
</head>
<body class="calibre">
<ol class="calibre_">
<li value="1" class="calibre_1"><span class="calibre1"><span class="bold"><span class="calibre_2">Chapter 1</span></span></span></li>
</ol>
<p class="calibre_3"><span class="calibre_2">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</span></p>
---------
So yes, you were correct. LI and OL are there. Don't know how or why, but that is what it shows.
I'm moving on to azw3.
Thank you for your help.