MobileRead Forums

MobileRead Forums (https://www.mobileread.com/forums/index.php)
-   Sigil (https://www.mobileread.com/forums/forumdisplay.php?f=203)
-   -   Is possible to add footnotes? (https://www.mobileread.com/forums/showthread.php?t=63567)

gczobel 11-28-2009 04:18 PM

Is possible to add footnotes?
 
Just this... is possible?

Punksmurf 11-30-2009 04:30 PM

It should be.

Look over here for the specifications concerning CSS used in ePub files.

Especially of interest to you should be the oeb-page-head and oeb-page-head values for the display property.

Also, read this (from that same page):

[6] The content of an element assigned display: oeb-page-head should be presented only as a header, and the content of an element assigned display: oeb-page-foot should be presented only as a footer. Neither should be simply presented as if it were inline or block. Reading Systems, however, are free to present headers and footers either in special areas as usual for paper publications, or to make them available in another way. For example, a device with a small screen might instead pop them up on demand. For purposes of page layout, these display values are similar to block boxes with an absolute position (i.e. a position value of fixed or absolute). That is, they are removed from the normal flow and a new block box is created with its own flow. Margins, padding and other block characteristics are determined as if the element had position: fixed set.

An element assigned display: oeb-page-head or display: oeb-page-foot shall not be considered in effect while any preceding content remains presented. For example, when rendered to a screen with appropriate style settings, the myhead-classed div element below would become the page header as soon as nothing preceding the containing div is displayed:

Code:

<div>
  <div class="myhead" style="display: oeb-page-head">
      The OEB Publication Structure: Introduction
  </div>
  <h2>Introduction</h2>
  <p>...</p>
</div>

Such a header (or footer) remains in effect until another header (or footer) is in effect instead, or until no part of its parent element remains presented (such as when the div is no longer visible in the above example), whichever occurs first.



Good luck :).

DaleDe 11-30-2009 06:13 PM

Punksmurf, your comment has nothing to do with footnotes. footers are not the same thing. As to the original question footnotes are simply coded as links to disconnected text. The display of this data is up to the display program but they are most often displayed as end notes.

A specific implementation of footnotes like a wiki has for example is not defined.

Dale

Punksmurf 11-30-2009 06:45 PM

I'm sorry, you're right.

HarryT 12-01-2009 04:06 AM

Unless it's been add in recent versions, Sigil currently has no "GUI" support for hyperlink management; they have to be "hand-coded", which is not very friendly. I've already raised a support ticket to request such a facility.

gczobel 12-05-2009 10:20 AM

So... no.
Thanks guys!

GeoffC 12-05-2009 12:32 PM

Quote:

Originally Posted by gczobel (Post 672362)
Just this... is possible?


one problem would be the definition of a 'page'. as e-readers have difficulty handing this, it would seem difficult to define a footer.
unless you 'fix' a page of so many lines long (say 20), that would be retained for most 'normal' font sizes ....

otherwise end-notes ....

HarryT 12-05-2009 01:24 PM

As has been said, hyperlinked end-notes really are the way to go with an e-Book.

Valloric 12-05-2009 01:45 PM

Quote:

Originally Posted by GeoffC (Post 682125)
one problem would be the definition of a 'page'. as e-readers have difficulty handing this, it would seem difficult to define a footer.
unless you 'fix' a page of so many lines long (say 20), that would be retained for most 'normal' font sizes ....

otherwise end-notes ....

Quote:

Originally Posted by HarryT (Post 682205)
As has been said, hyperlinked end-notes really are the way to go with an e-Book.

EPUB actually has support for real headers and footers. See here, and look for the "oeb-page-head" and "oeb-page-foot" properties. Scroll down to the "[6]" footnote for details.

Jellby 12-05-2009 04:23 PM

Quote:

Originally Posted by Valloric (Post 682248)
EPUB actually has support for real headers and footers. See here, and look for the "oeb-page-head" and "oeb-page-foot" properties. Scroll down to the "[6]" footnote for details.

Right. But no ePUB reading software supports them yet :rolleyes:

Valloric 12-05-2009 05:43 PM

Quote:

Originally Posted by Jellby (Post 682431)
Right. But no ePUB reading software supports them yet :rolleyes:

I'm aware of this, yes. Still, that's not the epub's fault. The specification has it, and it would be very nice to have in Reading Systems.

GeoffC 12-06-2009 03:31 AM

when the tortoise catches up with the hare

DaleDe 12-06-2009 09:40 PM

Quote:

Originally Posted by Valloric (Post 682248)
EPUB actually has support for real headers and footers. See here, and look for the "oeb-page-head" and "oeb-page-foot" properties. Scroll down to the "[6]" footnote for details.

Headers and footers have nothing to do with footnotes. My old eBookwise supported headers and footers but modern eBook readers seem not to.

Dale

Valloric 12-06-2009 10:22 PM

Quote:

Originally Posted by DaleDe (Post 683935)
Headers and footers have nothing to do with footnotes. My old eBookwise supported headers and footers but modern eBook readers seem not to.

Yes, I know. But the way footers are implemented in the epub standard, they could very easily be used for footnotes. See, epub-style footers are not universal throughout the file. You could specify a different footer element ever other element if you wanted to, and then clear it afterwards.

This just begs to be used for footnotes. So you could add a footnote reference to your text like this:

Code:

<div class="footnote" style="display: oeb-page-foot">[1] The Lemming Conspiracy by Wacko Cookie</div>
<p>The proof that lemmings indeed do control the world can be found throughout modern literature [1].</p>
<div class="footnote" style="display: oeb-page-foot"></div>

You would need to list the footer above the first reference, and then clear it below the reference. The footer would be displayed while the <p> element is displayed. When the paragraph goes off the screen, the clearing footer would take over.

colinsky 12-06-2009 10:50 PM

Yep, Valloric, that's exactly they way I would prefer footnotes to be implemented too (as opposed to endnotes). If only...


All times are GMT -4. The time now is 06:44 PM.

Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.