Wrong links in the converted azw3 file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
calibre |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm converting a epub (or html) file to asw3 for Kindle PW using Calibre v. 4.99.4.
The problem is that when looking at the formats in edit book window from epub I have:
Code:
...
<a href="test_
<a href="test_
<a href="test_
<a href="test_
<a href="test_
...
while in the converted asw3 I get broken internal links. Looking at the debugging processed text parts, the links are correct, whereas in the final aws3 file, the links get corrupted. Any idea where is the issue?
- fragment from azw3 file in edit book window:
Code:
...
<p class="small_font">
<a href="part0000.
<a href="part0000.
<a href="part0000.
<a href="part0000.
<a href="part0000.
<div class="calibre3" id="calibre_
...
Convert book 1 of 1 (Example book)
Processing archive...
Conversion options changed from defaults:
output_profile: 'kindle'
verbose: 2
read_
chapter: '/'
chapter_mark: 'rule'
page_
Resolved conversion options
calibre version: 4.99.4
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'breadth_first': False,
'change_
'chapter': '/',
'chapter_mark': 'rule',
'comments': None,
'cover': None,
'debug_pipeline': None,
'dehyphenate': True,
'delete_
'disable_
'dont_compress': False,
'dont_package': False,
'duplicate_
'embed_all_fonts': False,
'embed_
'enable_
'expand_css': False,
'extra_css': None,
'extract_to': None,
'filter_css': '',
'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': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_
'max_levels': 5,
'max_toc_links': 50,
'minimum_
'mobi_
'no_chapters_
'no_inline_
'no_inline_toc': False,
'output_profile': <calibre.
'page_
'prefer_
'prefer_
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_
'remove_
'remove_
'remove_
'remove_
'renumber_
'replace_
'search_replace': '[]',
'series': None,
'series_index': None,
'share_not_sync': False,
'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,
'toc_title': None,
'transform_
'unsmarten_
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: HTML Input running
on /tmp/calibre_
Parsing all content...
Manifest item 'toc.ncx' not found
Parsing test_1.html ...
Generating default TOC from spine...
Merging user specified metadata...
Detecting structure...
Auto generated TOC with 6 entries.
Flattening CSS and remapping font sizes...
Source base font size is 12.00000pt
Removing fake margins...
Found 7 items of level: div_1
Found 1 items of level: p_1
Ignoring level p_1
div_1 left margin stats: Counter()
div_1 right margin stats: Counter()
Cleaning up manifest...
Trimming unused files from manifest...
Creating AZW3 Output...
Serializing resources...
Splitting markup on page breaks and flow limits, if any...
Splitting on page-break at id=calibre_pb_0
Split into 2 parts
Creating KF8 output
Generating in-line ToC
Generating KF8 markup...
Compressing markup...
Creating indices...
AZW3 output written to /tmp/calibre_
The HTML ids in the file are missing quotes, but that does not appear to be a factor.
The links convert properly in calibre 4.10.1 under Windows, but they are wrong when calibre portable 4.99.4 beta is used. Possibly Python 3 related?