View Single Post
Old 02-10-2012, 09:24 AM   #1
astrodad
Guru
astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.astrodad ought to be getting tired of karma fortunes by now.
 
astrodad's Avatar
 
Posts: 962
Karma: 568242
Join Date: Dec 2007
Device: Kindle Oasis 3, Kindle Paperwhite 1, iPad, iPhone
Automatically create links

Hello all,

I am converting some historical documents in HTML within which are lines alike this:


they have lost the power of
discriminating between the true and the false."[2]

The [2] points to an element at the bottom of the document:

<li>2. Encyclical letter &quot;Arcanum,&quot; 10 February 1880. </li>

I could write a program to automatically parse these while still in HTML using something like Beautiful Soup, but can anyone think of a trick in Calibre that will automatically create a link from the [2] to the footnote <li> element?
astrodad is offline   Reply With Quote