![]() |
#1 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
Superscripts in LRF
I am formatting a very long book with hundreds of footnotes. The footnotes are formatted as superscript. I have taken the approach of using the BookCreater template and MS Word since I cannot find an acceptable LRS- or EPUB-output editor (I have not tried InDesign yet.) The original text is in web-page format (HTML).
After converting to LIT and then using Calibre to convert to LF, I find the footnote links are not superscript and are in a very large font. They also will not move to the correct bookmark (MS Word terminology). I am using endnotes at the end of each chapter. So is superscript not supported in LRF or does Calibre just not support it? How can I make the footnote links resolve to the correct endnote. Or should I use another strategy for footnotes. Inline footnotes are out. Thanks. |
![]() |
![]() |
![]() |
#2 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,891
Karma: 146918083
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I've taken some Discworld novels in PRC, converted to HTML using Mobi2OEB and then loaded into Book Designer. The footnotes were kept just fine. Is this HTML something you can attach or link to so I can have a look?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,419
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
for calibre to convert something into a superscript you have to put it in the <sup> tag in the source HTML.
|
![]() |
![]() |
![]() |
#4 |
Techno-geek
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 225
Karma: 1116651
Join Date: Nov 2006
Location: Mississippi, USA
Device: PRS-T1 (Black), PRS-T3S (Black), Kobo Aura ONE
|
The original HTML is copied into MS Word format using the BookCreator template and then I create a LIT file using the Word add-in. I suppose I can explode the LIT to look at the HTML? I looks like I want it in Microsoft Reader and the footnote links work correctly.
|
![]() |
![]() |
![]() |
#5 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,419
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Unfortunately, conversion of HTML to LRf is far from an exact science. LRF supports a very small subset ofg the features of HTML. html2lrf tries to map things as intelligently as possible, but it doesn't always succeed. In this cases you have to massage the HTML to get what you want.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,671
Karma: 12205348
Join Date: Mar 2008
Device: Galaxy S, Nook w/CM7
|
@ dynabook To view your HTML you can save yourself a few steps and just save the word doc as HTML of HTML Filtered. The WordRMR plug in does just that before creating the LIT files.
I'm working on a straight Word to LRF for the template it uses Kovoids html2lrf. It's working right now but I have to polish it up before I release it to the public @kovid: I've looked at the generated html source. The footnotes by default don't have a sub or sup. However even if I add one calibre does not seem to make use of it. I've attached the code and the generated LRF. The html is zipped up. |
![]() |
![]() |
![]() |
#7 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,419
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Oh yeah, that because LRF doesn't support arbitrary markup in links (it support only simple text).
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pissed off with LRF formatting: LRF/LRS clean tool? | grimborg | LRF | 8 | 02-15-2010 01:14 PM |
superscripts and subscripts lost in ePub | cyberbaffled | ePub | 3 | 10-13-2009 11:52 AM |
CBZ > LRF (LRF>HTML/MOBI????) | sideburnt | Calibre | 4 | 09-15-2009 06:44 AM |
rtf to lrf, is it possible to have images on lrf? | sergiodongala | Calibre | 2 | 01-12-2009 07:23 PM |
libprs500 Issues Converting .LIT to .LRF - .LRF crashes everything | vasbinde | Calibre | 6 | 02-14-2008 12:16 PM |