View Single Post
Old 04-02-2012, 01:14 PM   #4
mmat1
Berti
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 1,197
Karma: 4985964
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by sebito View Post
ok, but that's not the problem, the problem is the creation of links back of 181,000 footnotes. I need an automatic way to do it.
First of all: Footnote and Text-Anchor should have the same number. Your code should read:

Code:
In the beginning of everything, God created <a id="a65"> </a> <a href="notes.html#n65"> hyperlinktext</a>

and then note:

<p><a id="n65"></a>Genesis 1.1</p>
In your example, the number of the note is 21105 and the number of the text to jump back is 65. How should a programm guess, that the backreference of 21105 is 65 ???

If the references were build as shown in my example, it would be just a question of a simple regex to build the backlink, but in this case i'm nearly out of ideas .....
mmat1 is offline   Reply With Quote