View Single Post
Old 10-21-2016, 10:46 AM   #562
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
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>&lt;</Search>
    <Replace>‹</Replace>
    <Description>&gt; 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
Attached Files
File Type: epub demo w_o cover.epub (4.0 KB, 326 views)
File Type: epub demo with cover and chbreak.epub (126.0 KB, 289 views)
File Type: doc Chapter 1.doc (31.5 KB, 302 views)

Last edited by Mark Nord; 10-23-2016 at 10:09 AM. Reason: Typo
Mark Nord is offline   Reply With Quote