Hello Toxaris,
I am using your ePUBTools 1.25.2 (July 12th – 2016) regulary for some time and came across three problems
1 - strange results with the tool-generated TOC.
Case 1 - Chapterheadings formated as heading2 in docx-file
- convert to html
- generate epub - do not select a cover
- TOC looks good, but is missing the last chapter (Chapter 4)
Case 2 - same docx-file but this time select a cover
The resulting TOC is missing Chapter 1 and Chapter 4
Am I doing something wrong here?
2 - Search and Replace Rules
Since I started already with your Word-Macro, I was used to use Replacerules in doc format. And found I can't edit the rules in the Settings-Dialog.
So I converted the doc to XML and still no joy.
Then I loaded the XML ruleset from your homepage and all is working as expected.
Comparing the two XML files shows for the tool-converted XML:
Code:
<Rules2>
<Wildcards>0</Wildcards>
<Permission>0</Permission>
<CaseSensitive>0</CaseSensitive>
<WholeWord>0</WholeWord>
<Search>^32-^32</Search>
<Replace>^32^=^32</Replace>
<Description>Replace space hyphen space by ndash</Description>
</Rules2>
while the working one shows:
Code:
<Rules2>
<Wildcards>False</Wildcards>
<Permission>False</Permission>
<CaseSensitive>False</CaseSensitive>
<WholeWord>False</WholeWord>
<Search><</Search>
<Replace>‹</Replace>
<Description>> to single</Description>
</Rules2>
3 - Chapter-Breaks
Preferences set to use Sigil-Split-Marker
Manually inserted [Chbreak] in the text.
Convert to HTML -> generate EPUB
Sigil claims a not well-formed html in the EPUB-file.
flightcrew states: element "hr" is not allowed for contentmodel p
Turns out that the manually inserted ChapterBreak ist translated to
Code:
<p><hr class="sigil_split_marker" /></p>
while the ones (automatically) inserted before headings stand alone.
Code:
<hr class="sigil_split_marker" /><h2 id="TOC_0_3" >Chapter 4</h2>
None of this is a really problem and easily fixed in the workflow, and I'm also aware, that you are in a process of re-writing ePUB-Tools, but thought I let you know.
And let me not forget to thank you for this incredible pice of software!
Sincerely
Mark