![]() |
#1 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2011
Device: none
|
Conversion with equations
Hi,
I'm trying to convert an ODT file with equations in it to EPUB (or MOBI) using calibre in ubuntu. The error I get at the end is that the file math.dtd cannot be found. I've installed w3c-dtd-xhtml, w3-dtd-mathml and openoffice.org-dmaths, but still no luck. I've done quite a bit of searching, but can't find any other instance of this error, so I feel a bit stuck. Any suggestions? Here's the output from calibre: Code:
Convert book 1 of 1 (Homework 4-solutions) Resolved conversion options calibre version: 0.8.0 {'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'change_justification': u'original', 'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': None, 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_split_on_page_breaks': False, 'enable_heuristics': False, 'epub_flatten': False, 'extra_css': None, 'extract_to': None, 'fix_indents': True, 'flow_size': 260, 'font_size_mapping': None, 'format_scene_breaks': True, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0xa8a432c>, 'insert_blank_line': False, 'insert_metadata': False, 'isbn': None, 'italicize_common_cases': True, 'keep_ligatures': False, 'language': None, 'level1_toc': None, 'level2_toc': None, 'level3_toc': None, 'line_height': 0.0, 'linearize_tables': False, 'margin_bottom': 5.0, 'margin_left': 5.0, 'margin_right': 5.0, 'margin_top': 5.0, 'markup_chapter_headings': True, 'max_toc_links': 50, 'minimum_line_height': 120.0, 'no_chapters_in_toc': False, 'no_default_epub_cover': False, 'no_inline_navbars': False, 'no_svg_cover': False, 'output_profile': <calibre.customize.profiles.GenericEink object at 0xa8a492c>, 'page_breaks_before': u"//*[name()='h1' or name()='h2']", 'prefer_metadata_cover': False, 'preserve_cover_aspect_ratio': False, 'pretty_print': True, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/tmp/calibre_0.8.0_tmp_ur45Zw/calibre_0.8.0_6_Jy4M.opf', 'remove_fake_margins': True, 'remove_first_image': False, 'remove_paragraph_spacing': False, 'remove_paragraph_spacing_indent_size': 1.5, 'renumber_headings': True, 'replace_scene_breaks': u'', 'series': None, 'series_index': None, 'smarten_punctuation': False, 'sr1_replace': None, 'sr1_search': None, 'sr2_replace': None, 'sr2_search': None, 'sr3_replace': None, 'sr3_search': None, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: ODT Input running on /home/morris/Calibre Library/Andrew Morrison/Homework 4-solutions (2)/Homework 4-solutions - Andrew Morrison.odt Extracting ODT file... Traceback (most recent call last): File "site.py", line 58, in main File "site-packages/calibre/utils/ipc/worker.py", line 119, in main File "site-packages/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override File "site-packages/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert File "site-packages/calibre/ebooks/conversion/plumber.py", line 920, in run File "site-packages/calibre/customize/conversion.py", line 204, in __call__ File "site-packages/calibre/ebooks/odt/input.py", line 120, in convert File "site-packages/calibre/ebooks/odt/input.py", line 82, in __call__ File "site-packages/odf/odf2xhtml.py", line 1485, in odf2xhtml File "site-packages/odf/odf2xhtml.py", line 1467, in load File "site-packages/odf/opendocument.py", line 626, in load File "site-packages/odf/opendocument.py", line 599, in __loadxmlparts File "xml/sax/expatreader.py", line 107, in parse File "xml/sax/xmlreader.py", line 123, in parse File "xml/sax/expatreader.py", line 207, in feed File "xml/sax/expatreader.py", line 381, in external_entity_ref File "xml/sax/saxutils.py", line 304, in prepare_input_source File "urllib.py", line 84, in urlopen File "urllib.py", line 205, in open File "urllib.py", line 461, in open_file File "urllib.py", line 475, in open_local_file IOError: [Errno 2] No such file or directory: 'math.dtd' |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,163
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
odfpy, the library calibre uses to convert ODT to HTML does not support math.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: May 2011
Device: none
|
That would explain the problem. Thanks for the help!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DOCX with equations to MOBI | Chrasty | Kindle Formats | 2 | 11-22-2010 04:13 PM |
PRS-505 Math equations | luma | Sony Reader | 4 | 06-04-2010 07:44 AM |
issues with Technical PDF docs (equations; matrice...) | tristouille | Calibre | 1 | 01-27-2010 07:52 AM |
converting PDFs with equations | significance | Calibre | 6 | 10-25-2009 09:36 PM |
Equations in PDFs | SteveMPotter | Kindle Developer's Corner | 1 | 02-20-2008 12:01 AM |