EPUB to DOCX conversion fails when text-indent value is invalid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi, Calibre was downloaded from http://
Thanks for a great tool!
Daniel
calibre, version 2.65.1 (linux2, embedded-python: True)
Conversion Error: Failed: Convert book 1 of 1 (Alice im Wunderland)
Convert book 1 of 1 (Alice im Wunderland)
Resolved conversion options
calibre version: 2.65.1
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., '\\s*((
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/tmp/
'debug_pipeline': None,
'dehyphenate': True,
'delete_
'disable_
'docx_
'docx_no_cover': False,
'docx_no_toc': False,
'docx_page_size': u'letter',
'duplicate_
'embed_all_fonts': False,
'embed_
'enable_
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': u'',
'fix_indents': True,
'font_
'format_
'html_
'input_encoding': None,
'input_profile': <calibre.
'insert_
'insert_
'insert_metadata': False,
'isbn': None,
'italicize_
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_
'margin_bottom': 72.0,
'margin_left': 72.0,
'margin_right': 72.0,
'margin_top': 72.0,
'markup_
'max_toc_links': 50,
'minimum_
'no_chapters_
'no_inline_
'output_profile': <calibre.
'page_
'prefer_
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_
'remove_
'remove_
'remove_
'remove_
'renumber_
'replace_
'search_replace': '[]',
'series': None,
'series_index': None,
'smarten_
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'start_
'subset_
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'transform_
'unsmarten_
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: EPUB Input running
on /tmp/calibre_
Parsing all content...
Parsing OEBPS/Text/
Parsing OEBPS/Styles/
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 2, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
No content to parse.
PropertyValue: Unknown syntax or no value:
CSSStyleDeclara
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 40, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
No content to parse.
PropertyValue: Unknown syntax or no value:
CSSStyleDeclara
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 45, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 49, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 54, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 59, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
PropertyValue: Missing token for production Choice(ColorValue, Dimension, URIValue, Value, variable, MSValue, CSSCalc, function): ('CHAR', u'%', 68, 16)
No content to parse.
PropertyValue: Unknown syntax or no value: %
CSSStyleDeclara
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Parsing OEBPS/Text/
Reading TOC from NCX...
Merging user specified metadata...
Detecting structure...
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 770 items of level: p_2
Found 19 items of level: p_6
Found 4 items of level: div_6
Found 4 items of level: div_7
Found 36 items of level: div_2
Found 36 items of level: div_3
Found 27 items of level: div_1
Ignoring level div_6
Ignoring level div_7
Ignoring level p_6
p_2 left margin stats: Counter({u'0': 770})
p_2 right margin stats: Counter({u'0': 770})
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
div_3 left margin stats: Counter({u'': 36})
div_3 right margin stats: Counter({u'': 36})
div_1 left margin stats: Counter({u'': 14})
div_1 right margin stats: Counter({u'': 14})
Cleaning up manifest...
Trimming unused files from manifest...
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/toc.ncx' from manifest
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Trimming u'OEBPS/
Creating DOCX Output...
Rasterizing SVG images...
Processing OEBPS/Text/
Processing OEBPS/Text/
Traceback (most recent call last):
File "site.py", line 66, in main
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
File "site-packages/
ValueError: invalid literal for int() with base 10: 'ememememememem
Converting EPUB to MOBI first, then converting MOBI to DOCX, does work for this file on the same machine.