View Single Post
Old 04-30-2010, 05:16 PM   #8
dmapr
Evangelist
dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.dmapr ought to be getting tired of karma fortunes by now.
 
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
Quote:
Originally Posted by kovidgoyal View Post
No problem Thanks to that ticket I discovered yet another bug in ADE
Good!

BTW, I downloaded the 0.6.50 and converting that same HTML file I get an error:
Code:
C:\TEMP>"c:\Program Files\Calibre2\ebook-convert.exe" lists.html lists-calibre.epub
1% Converting input to HTML...
InputFormatPlugin: HTML Input running
on C:\TEMP\lists.html
Language not specified
Creator not specified
Building file list...
Forcing lists.html into XHTML namespace
34% Running transforms on ebook...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 0 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Cleaning up manifest...
Trimming unused files from manifest...
Creating EPUB Output...
67% Creating EPUB Output
Python function terminated unexpectedly
  'CSSRuleList' object has no attribute 'rulesOfType' (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 103, in main
  File "site.py", line 85, in run_entry_point
  File "site-packages\calibre\ebooks\conversion\cli.py", line 254, in main
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 905, in run
  File "site-packages\calibre\ebooks\epub\output.py", line 159, in convert
  File "site-packages\calibre\ebooks\epub\output.py", line 474, in workaround_ade_quirks
AttributeError: 'CSSRuleList' object has no attribute 'rulesOfType'
Is there something I need to change in my original HTML?
Code:
<html>
        <head>
                <title>List tests</title>
                <style>
                        ul.circle {list-style-type:circle}
                        ul.square {list-style-type:square}
                        ol.decimal {list-style-type:decimal}
                        ol.upper-roman {list-style-type:upper-roman}
                        ol.lower-alpha {list-style-type:lower-alpha}
                </style>
        </head>
        <body>
                <ul class="circle">
                        <li>Bullet</li>
                        <li>Another bullet</li>
                        <li>
                                Subpoints
                                <ul class="square">
                                        <li>Subpoint</li>
                                        <li>Another subpoint</li>
                                </ul>
                        </li>
                </ul>
                <ol class="decimal">
                        <li>First item</li>
                        <li>Second item</li>
                        <li>
                                More details
                                <ol class="upper-roman">
                                        <li>First detail</li>
                                        <li>Second detail</li>
                                </ol>
                        </li>
                        <li>
                                A different angle
                                <ol class="lower-alpha">
                                        <li>First angle</li>
                                        <li>Another angle</li>
                                </ol>
                        </li>
                </ol>
        </body>
</html>
dmapr is offline   Reply With Quote