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

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 01-04-2012, 07:04 AM   #1
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1009530
Join Date: Apr 2011
Location: Geelong, Australia
Device: Sony PRS-T1, Sony PRS-350, Palm TX
eReader/PML footnote problems

Hi folks,

I've got two different problems with eReader PML footnotes:
  1. There's no footnote link produced. From an input pml with:

    Code:
    No one had gone bananas, not in that way at least.\Fn="Fn1"\Fn
    produces html like:

    Code:
    <p>No one had gone bananas, not in that way at least.<span id="rfn-Fn1"></span></p>
    Interestingly, with the eReader app on my Palm TX, there is no link to the footnote either! Would I be correct in assuming that Calibre is actually doing the right thing here and the original PML is incorrect? Or could Calibre be smart enough to create some footnote link text (eg, a single asterisk) if there is no footnote link text in the original PML?
  2. Calibre 0.8.31 appears to get terribly confused in any footnotes are present. This wasn't the case with Calibre 0.8.30. The output from ebook-convert is the same for a pml with and without a footnote except for this one line that is added for the pml without a footnote:

    Code:
    Forcing index.html into XHTML namespace
    The input/index.html that is generated for the case with a bookmark contains:

    Code:
    <<small><a href="#rfn-fn">return</a></small>
    .

    Notice the double << at the start of that. This appears to come from the FN definition around like 83 of src/calibre/ebooks/pml/pmlconverter.py. The parsed/index.html then comes out with what appears to be the body of the html inside the title tag, with all the < > converted to &lt; and &gt;.

    From the changelog, I can't guess what caused this change in behaviour - the entry for "# Conversion engine: When parsing invalid XHTML use the HTML 5 algorithm, for greater robustness. Closes tickets: 901466" appears to be the only thing remotely applicable.

    If I had to guess, would changing that "<<small" to "<small" in pmlconverter.py fix this problem? I don't have the setup to rebuild calibre here yet to test this.

Cheers,
Simon.
snarkophilus is offline   Reply With Quote
Old 01-04-2012, 07:43 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 25,397
Karma: 4961459
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
2. is fixed for 0.8.34.
kovidgoyal is offline   Reply With Quote
 
Enthusiast
Old 01-04-2012, 08:29 AM   #3
snarkophilus
Wannabe Connoisseur
snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.snarkophilus ought to be getting tired of karma fortunes by now.
 
Posts: 241
Karma: 1009530
Join Date: Apr 2011
Location: Geelong, Australia
Device: Sony PRS-T1, Sony PRS-350, Palm TX
Quote:
Originally Posted by kovidgoyal View Post
2. is fixed for 0.8.34.
Thanks!
snarkophilus 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
Continuing a footnote on the next page DSpider Workshop 3 11-17-2011 04:19 AM
inline text to footnote Ciprian Workshop 0 06-27-2011 04:13 AM
Multiple references to the same footnote crutledge Sigil 8 08-23-2010 04:33 AM
Problems with PML Conversions - Is it a bug? JulianL Calibre 10 07-18-2010 04:15 PM
Including images from PML macr0t0r Calibre 13 12-05-2009 01:52 AM


All times are GMT -4. The time now is 10:18 AM.


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