Using the Editor function to activate links?
Hi
I give one example: I have a book with 40 footnotes (ftn). Links are broken or missing for any reason. The only thing is the notes are numbered in chapter 25 and the note anchors are present in the text.
To recreate the links I first use a regex within the notes text file which adds these two attributes into each link (with incremented numbers)
href="chapter25#ftn1a id=ftn1b
Then I use a second regex to fill the remaining 40 links scattered in the body text files (it's the same except that I permutated the letters a and b to create the couples of links).
href="chapter25#ftn1b id=ftn1a
But the recreated links now work only from body to notes because I did not write the exact body chapter number. Of course I can add it manually jumping from one to another, for 40 notes it's a matter of 20 minutes, if I have 400 though...
What I need is to indicate to each link which is in the notes text file the chapter number of its corresponding link in the body text.
I do not know if I can use a function of the Calibre Editor to do this task. If possible, could somebody give me a hand on this?
Last edited by roger64; 01-12-2016 at 06:58 AM.
Reason: typo
|