01-19-2010, 06:03 AM | #1 |
Zealot
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
|
Superscript in titles
I'm working on a book with many superscripts in the titles. If I create the code as follows
<h3>TITLE<sup><a href="#sdfootnote24sym" id="sdfootnote24anc">24</a></sup></h3> the book view looks perfecly but the TOC shows: TITLE24 If I change the code to <h3>TITLE</h3> <sup><a href="#sdfootnote24sym" id="sdfootnote24anc">24</a></sup> the TOC is perfect, but the book view looks stupid (superscript on next line). Does anyone has a suggestion? Thanks! |
01-19-2010, 07:15 AM | #2 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
I don't think you'll ever be able to get text display as superscript in the TOC. Not because of Sigil, but because I doubt you can express a superscript in the NCX file. The NCX doctype is, well, "ncx". It's not HTML. I doubt there's a "<sup>" tag (I could be wrong).
What I would do is this: Code:
<h3 title="TITLE^24">TITLE<sup><a href="#sdfootnote24sym" id="sdfootnote24anc">24</a></sup></h3> |
Advert | |
|
01-19-2010, 10:17 AM | #3 |
Zealot
Posts: 147
Karma: 56
Join Date: Dec 2009
Location: Antwerpen
Device: iPhone, Sony PRS-505, EPUBreader
|
|
01-19-2010, 04:48 PM | #4 |
Banned
Posts: 475
Karma: 796
Join Date: Sep 2008
Location: Honolulu
Device: Nokia 770 (fbreader)
|
If the NCX allows unicode, then you could fake it by using superscript characters directly:
Code:
Title²⁴ |
01-19-2010, 04:54 PM | #5 | |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Code:
<h3 title="Title²⁴"> |
|
Advert | |
|
01-20-2010, 08:37 AM | #6 |
frumious Bandersnatch
Posts: 7,536
Karma: 19000001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
But if the "24" is just a note call, I don't think anyone would want it showing in the TOC.
And using Unicode is not always a solution. It does not work if you have "M<sup>lle</sup>" or "3.<sup>er</sup>" in your titles (although in these cases, rendering the superscripts as normal text is an acceptable solution). |
Tags |
superscript, title |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Superscript and Subscript | ramjet1953 | Sigil | 1 | 06-13-2010 07:15 AM |
PRS-600 Titles | trout | Sony Reader | 3 | 04-11-2010 04:40 PM |
Managing Titles | yihyng | Sony Reader | 3 | 09-16-2009 07:23 PM |
So many titles available in the US only... | bentley | Sony Reader | 13 | 03-22-2009 02:54 PM |
Figuring Out Titles | mlove | Sony Reader | 4 | 11-24-2007 08:33 PM |