Quote:
Originally Posted by KevinH
No Sigil does *not* "automatically removes the ../Text/I-1.xhtml part from the href".
Period. Mend will not do that. Nothing in Sigil will do that based on a simple save and reload. I have just tried it repeatedly.
So you are either using a really old or modified version of Sigil or some other tool you are using is removing that text. Sigil does not auto update links unless you use move or rename.
|
Ok. I agree that your method of splitting the files at the beginning of the notes sections is much more practical and avoids all these issues.
Just so you can reproduce the situation I encountered (even though I won't be doing it this way again), here is how the EPUB2 was structured and the steps to trigger the behavior I mentioned:
- All href attributes included the filename (even if not strictly necessary since the id and href were within the same file).
- I edited your sample EPUB3 to add the filenames to the href tags. I saved it, and they remained intact.
- I duplicated the last XHTML file (Section0003.xhtml) and emptied it to use it as a destination for moving the notes.
- I cut the block of notes from the first XHTML file:
Quote:
<p class="note"><a id="fn-021" href="Section0001.xhtml#fn-021-bk"><sup>[1]</sup>footnote 1</a></p>
<p class="note"><a id="fn-022" href="Section0001.xhtml#fn-022-bk"><sup>[2]</sup>footnote 2</a></p>
<p class="note"><a id="fn-023" href="Section0001.xhtml#fn-023-bk"><sup>[3]</sup>footnote 3</a></p>
|
- I pasted them into the new (last) XHTML file (Section0004.xhtml). The filenames were still present in the href attributes.
- Finally, I renamed Section0004.xhtml to "notes.xhtml", and at that exact moment, the filenames disappeared from all href attributes across all XHTML files.
In any case, thanks for the answers and, I repeat, I won't be doing it the way I described again, as the method you propose is much better.