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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 06-10-2010, 05:00 PM   #1
romnempire
Member
romnempire began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Dec 2009
Device: Kindle 2
citations in epub spec?

suppose you're writing a book and want make in-text citations, using a format similar to the numbered superscripts in many written books.
how do you go about citing materials in epub?
romnempire is offline   Reply With Quote
Old 06-10-2010, 06:35 PM   #2
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 604284
Join Date: Sep 2009
Device: PRS-505
This is the same thing as footnotes.

At present, the best way of doing this is with bi-directional links.

As an example:
Main text:
Code:
<p>‘No, I won’t cast a stone,’<sup><a id="part01ch22ren33"/><a  href="notes.html#part01ch22en33">33</a></sup> she replied to something, [...]</p>
Notes.html:
Code:
<p class="noindent"><a id="part01ch22en33"/><strong><a href="part01chapter22.html#part01ch22ren33">33</a> cast a stone:</strong> ‘He that is without sin among you, let him first cast a stone at her’ (John 8:7).</p>
If your citations are set as footnotes in a Word doc, then Atlantis will automatically encode the necessary links when it makes the conversion to epub, one of the reasons I recommend it for those who don't want to sit up to 3am hand-coding epubs.
charleski is offline   Reply With Quote
Old 06-10-2010, 08:35 PM   #3
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Seems a bit overly complicated. Why not just use just one tag?

part01chapter22.html:
Code:
<p>‘No, I won’t cast a stone,’<a  href="notes.html#part01ch22en33" id="part01ch22ren33" style="vertical-align: super;">33</a> she replied to something, [...]</p>
Notes.html:
Code:
<p class="noindent"><a href="part01chapter22.html#part01ch22ren33" id="part01ch22en33" style="font-weight: bold;"/>33</a> cast a stone: ‘He that is without sin among you, let him first cast a stone at her’ (John 8:7).</p>
(Or better, define a CSS class rather than using an in-line style element...)
frabjous is offline   Reply With Quote
Old 06-10-2010, 08:59 PM   #4
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 604284
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by frabjous View Post
Seems a bit overly complicated. Why not just use just one tag?

part01chapter22.html:
Code:
<p>‘No, I won’t cast a stone,’<a  href="notes.html#part01ch22en33" id="part01ch22ren33" style="vertical-align: super;">33</a> she replied to something, [...]</p>
Notes.html:
Code:
<p class="noindent"><a href="part01chapter22.html#part01ch22ren33" id="part01ch22en33" style="font-weight: bold;"/>33</a> cast a stone: ‘He that is without sin among you, let him first cast a stone at her’ (John 8:7).</p>
(Or better, define a CSS class rather than using an in-line style element...)
Well, yes that's more economical (though vertical-align:super fails for superscripts, as I discussed in another thread). But this is one area where I'm happy for automatic converters to introduce a bit more code than needed.
charleski is offline   Reply With Quote
Old 06-10-2010, 09:26 PM   #5
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Quote:
Originally Posted by charleski View Post
vertical-align:super fails for superscripts, as I discussed in another thread
Which thread was that? I've had problems with vertical-align: super with Internet Explorer (--what does work with IE? anything?--) but I wouldn't think that would be a big issue for ePubs.
frabjous is offline   Reply With Quote
Old 06-11-2010, 04:29 AM   #6
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: 5,965
Karma: 4346919
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
You may want to add "font-size: 60%;" (or similar) to the style.
Jellby is offline   Reply With Quote
Old 06-11-2010, 04:35 AM   #7
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 604284
Join Date: Sep 2009
Device: PRS-505
Quote:
Originally Posted by frabjous View Post
Which thread was that? I've had problems with vertical-align: super with Internet Explorer (--what does work with IE? anything?--) but I wouldn't think that would be a big issue for ePubs.
Here it is. 'super' causes irregular line-heights, though this can be masked by making the line-height very small. This is true in both ADE and calibre's reader, but not in FBReader, which enforces its own line-height value and doesn't allow changes in the css.
charleski is offline   Reply With Quote
Old 06-12-2010, 07:14 PM   #8
Freeshadow
temp. out of service
Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.Freeshadow ought to be getting tired of karma fortunes by now.
 
Posts: 2,252
Karma: 12572656
Join Date: May 2010
Location: Duisburg (DE)
Device: BeBook mini
this is why I like fonts having real super and subs inside... (among other typographic goodies)
Freeshadow is offline   Reply With Quote
Old 06-13-2010, 04:43 AM   #9
weatherwax
Guru
weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.weatherwax ought to be getting tired of karma fortunes by now.
 
weatherwax's Avatar
 
Posts: 898
Karma: 1495133
Join Date: Jan 2010
Location: South of Germany
Device: PRS650 (red), Kindle PW2, Galaxy Note 8
You may want to try: vertical-align: text-top
weatherwax is offline   Reply With Quote
Reply

Tags
citations, epub, quotations

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chit-Chat Citations absurdes, vachardes etc. YGG- Forum Français 23 10-25-2010 12:30 PM
Bugs in the new 2.0.1 OPF spec? Valloric ePub 3 08-04-2010 09:05 AM
Zip spec for ePub acts_as_david ePub 14 01-02-2010 08:20 PM
PRS-500 BBeB Xylog XML (LRS) final spec released igorsk Sony Reader Dev Corner 5 01-12-2007 02:04 AM
Science Fiction Citations Colin Dunstan Deals, Freebies, and Resources (No Self-Promotion) 0 03-10-2005 05:29 AM


All times are GMT -4. The time now is 07:02 PM.


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