Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2010, 05:36 PM   #1
alecE
Evangelist
alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.alecE ought to be getting tired of karma fortunes by now.
 
alecE's Avatar
 
Posts: 412
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650, kobo Glo HD liseuses
Footnotes - another contribution

My apologies if this is an elementary bit of html that everybody bar me already knew!

I nicked this style of coding from a "proper" epub and applied it to a text I was working up. It appears to solve the problem of linking from a footnote citation in the main text to the footnote text and then linking back to the citation again.

The epub was created in Sigil (bless you Valloric!), and loaded to my Sony 505 via Calibre. The links appear to work in Sigil, Calibre & on the reader.

Example: - I've separated the significant bits to make them more obvious.

In file ..Text/Section0006.xhtml (an element of the main text):

<p>The five novels of this series cover only the earlier half of Judge Dee’s career, when he was serving as magistrate in various districts in the provinces. About this phase the Chinese historical records have little to say beyond the fact that he solved a great number of mysterious crimes. Concerning Judge Dee’s career at Court, however, those records go into considerable detail, for then the judge became a figure of national importance. He was one of the very few statesmen who could bring some influence to bear on Empress Wu, the cruel and dissolute but extremely capable woman who for fifty years ruled the T’ang Empire with an iron hand.

[Footnote <sup><a href="../Text/Section0035.xhtml#fnote1" id="fcite1">1</a></sup> ]

How Judge Dee tried to reform a corrupt administration and, falsely accused, was sentenced to be tortured to death; by what stratagem he succeeded in escaping from prison and how he effected his return to power; how thereafter he prevented the Empress from committing many a cruel deed and how, as crowning achievement of his career, he thwarted her scheme to place an unrightful heir on the Dragon Throne - all this proves clearly that fact is indeed stranger than fiction.</p>



In file ..Text/Section0035.xhtml (Where the notes come from) (no I'm not Charlie's Aunt from Brazil; err, sorry!):

<p>

<a href="../Text/Section0006.xhtml#fcite1" id="fnote1">[Footnote 1]</a>

The second part of Judge Dee’s career has been vividly described by Lin Yutang in his recent historical novel <i>Lady Wu, a True Story</i> (W. Heinemann Ltd., London 1959, Chapter 37); there his name is transcribed Di Renjiay.</p>

Hope this is of help to others!
alecE is offline   Reply With Quote
Old 08-31-2010, 08:05 AM   #2
mrmikel
Color me gone
mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.mrmikel ought to be getting tired of karma fortunes by now.
 
Posts: 2,089
Karma: 1445295
Join Date: Apr 2008
Location: Central Oregon Coast
Device: PRS-300
<sup>

With the 505 some prefer the bracket[] rather than superscript because the superscript can be rather small. It can also mess up the appearance by changing line spacing.

Both of these are matters of personal preference, and the superscript does appear less clunky.
mrmikel is offline   Reply With Quote
Advert
Old 08-31-2010, 08:28 AM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
But the superscript size can be adjusted, and the line spacing can be fixed:

Code:
sup {
  font-size: 85%;
  vertical-align: super;
  line-height: 0;
}
for instance, or with "vertical-align: text-top;".
Jellby is offline   Reply With Quote
Old 09-01-2010, 04:56 PM   #4
Oldpilot
Groupie
Oldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with othersOldpilot plays well with others
 
Posts: 184
Karma: 2572
Join Date: Aug 2010
Device: Kindle
Quote:
Originally Posted by mrmikel View Post
With the 505 some prefer the bracket[] rather than superscript because the superscript can be rather small. It can also mess up the appearance by changing line spacing.
So instead of [Footnote <sup><a href="../Text/Section0035.xhtml#fnote1" id="fcite1">1</a></sup> ]

I would write [Footnote [<a href="../Text/Section0035.xhtml#fnote1" id="fcite1">1</a>] ]

?
Oldpilot is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Contribution and bug-fixes vdevan OpenInkpot 14 08-03-2009 08:10 AM
Getting to footnotes kdelany Fictionwise eBookwise 0 02-27-2009 03:11 AM
PDF2LRF contribution fund for CACAPEE! skyd171 Sony Reader 1 01-31-2008 05:05 PM


All times are GMT -4. The time now is 09:37 AM.


MobileRead.com is a privately owned, operated and funded community.