Quote:
Originally Posted by roger64
This script goes just beyond this precise step. If the links are broken (if only the return links), I have used two regex to recreate the links (first the return ones with bad chapter numbers, then the body ones which point to the return file). As for the return links, the number of the body chapter is missing or wrong. This script finally retrieves the missing body chapter numbers and writes them on a new xhtml file.
|
If your book contains, for example, 10 footnote references and 10 footnote definitions in a separate file, and all of them are tagged with unique classes, you could simply first override all existing footnote reference backlink ids with
id="fnbl1..10" and then all footnote definitions with
id="fn1..10". You'd then only need one or two regex searches to add the required links/backlinks.
Quote:
Originally Posted by roger64
If you are interested, I can PM you a test file using this script. It's quite efficient and quick but for this defect... It maybe could be integrated in your plugin.
|
I'm mostly interested in developing plugins that can be repeatedly used; developing plugins just to fix a one-off special problem simply doesn't make sense.
BTW, also check out the
Sigil footnote plugin.