Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 08-30-2010, 06: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: 401
Karma: 546196
Join Date: Mar 2009
Location: UK canal boat
Device: sony prs505, prs650 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, 09: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,086
Karma: 1444487
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
Old 08-31-2010, 09: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: 6,259
Karma: 4801165
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, 05: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


All times are GMT -4. The time now is 08:45 PM.


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