![]() |
#1 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: Kindle Scribe
|
Epub to azw3 conversion breaks formatting
Hi!
Epub conversion to azw3 breaks the formatting on this one book. I have attached a screenshot of the original epub and the converted azw file. No other books from this publisher have this issue as far as i can tell. Sadly the file is copyrighted and I'm not sure how to make a private report on launchpad. Below is the conversion log. I did not do any changes to the conversion settings (also reverted to defaults just in case). Code:
Convert book 1 of 1 (The Man Who Would Be King: Selected Stories of Rudyard Kipling) Conversion options changed from defaults: cover: '/tmp/calibre-ow7zhcb4/wwmakmzj.jpeg' verbose: 2 read_metadata_from_opf: '/tmp/calibre-ow7zhcb4/a422yzyo.opf' output_profile: 'kindle_scribe' Resolved conversion options calibre version: 8.4.0 {'add_alt_text_to_img': False, 'asciiize': False, 'author_sort': None, 'authors': None, 'base_font_size': 0.0, 'book_producer': None, 'change_justification': 'original', 'chapter': "//*[((name()='h1' or name()='h2') and re:test(., " "'\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', " "'i')) or @class = 'chapter']", 'chapter_mark': 'pagebreak', 'comments': None, 'cover': '/tmp/calibre-ow7zhcb4/wwmakmzj.jpeg', 'debug_pipeline': None, 'dehyphenate': True, 'delete_blank_paragraphs': True, 'disable_font_rescaling': False, 'dont_compress': False, 'duplicate_links_in_toc': False, 'embed_all_fonts': False, 'embed_font_family': None, 'enable_heuristics': False, 'expand_css': False, 'extra_css': None, 'extract_to': None, 'filter_css': '', 'fix_indents': True, 'font_size_mapping': None, 'format_scene_breaks': True, 'html_unwrap_factor': 0.4, 'input_encoding': None, 'input_profile': <calibre.customize.profiles.InputProfile object at 0x7f447f3ebe10>, 'insert_blank_line': False, 'insert_blank_line_size': 0.5, '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, 'mobi_toc_at_start': False, 'no_chapters_in_toc': False, 'no_inline_navbars': False, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.KindleScribeOutput object at 0x7f447f403650>, 'page_breaks_before': '/', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': '/tmp/calibre-ow7zhcb4/a422yzyo.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': '', 'search_replace': '[]', 'series': None, 'series_index': None, 'share_not_sync': False, 'smarten_punctuation': False, 'sr1_replace': None, 'sr1_search': None, 'sr2_replace': None, 'sr2_search': None, 'sr3_replace': None, 'sr3_search': None, 'start_reading_at': None, 'subset_embedded_fonts': False, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': None, 'transform_css_rules': '[]', 'transform_html_rules': '[]', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: EPUB Input running on /tmp/calibre-ow7zhcb4/dz4o3l7h.epub Found HTML cover OEBPS/Text/cover.html Parsing all content... Parsing OEBPS/Text/notes.html ... Parsing OEBPS/Text/chapter029.html ... Parsing OEBPS/Text/chapter033.html ... Parsing OEBPS/Text/chapter025.html ... Parsing OEBPS/Text/chapter033-fn.html ... Parsing OEBPS/Text/chapter035-fn.html ... Parsing OEBPS/Text/preface.html ... Parsing OEBPS/Text/chapter007.html ... Parsing OEBPS/Text/chapter004.html ... Parsing OEBPS/Text/chapter010.html ... Parsing OEBPS/Text/chapter001.html ... Parsing OEBPS/Text/chapter002-fn.html ... Parsing OEBPS/Text/chapter006.html ... Parsing OEBPS/Text/chapter012.html ... Parsing OEBPS/Text/chapter013.html ... Parsing OEBPS/Text/chapter014.html ... Parsing OEBPS/Text/chapter015.html ... Parsing OEBPS/Text/chapter022.html ... Parsing OEBPS/Text/chapter020.html ... Parsing OEBPS/Text/chapter023.html ... Parsing OEBPS/Text/chapter026.html ... Parsing OEBPS/Text/chapter036.html ... Parsing OEBPS/Text/reading.html ... Parsing OEBPS/Text/chapter037.html ... Parsing OEBPS/Text/abouttheauthor.html ... Parsing OEBPS/Text/chapter027.html ... Parsing OEBPS/Text/chapter016.html ... Parsing OEBPS/Text/text.html ... Parsing OEBPS/Text/chapter037-fn.html ... Parsing OEBPS/Text/title.html ... Parsing OEBPS/Text/chapter017.html ... Parsing OEBPS/Text/chapter028.html ... Parsing OEBPS/Text/chapter030.html ... Parsing OEBPS/Text/chapter038.html ... Parsing OEBPS/Text/chapter019-fn.html ... Parsing OEBPS/Text/toc.html ... Parsing OEBPS/Text/chapter009.html ... Parsing OEBPS/Text/chapter024.html ... Parsing OEBPS/Text/chapter038-fn.html ... Parsing OEBPS/Text/chapter008.html ... Parsing OEBPS/Text/chapter011.html ... Parsing OEBPS/Text/chapter003.html ... Parsing OEBPS/Text/chapter005.html ... Parsing OEBPS/Text/chronology.html ... Parsing OEBPS/Text/chapter021.html ... Parsing OEBPS/Text/copyright.html ... Parsing OEBPS/Text/chapter002.html ... Parsing OEBPS/Text/chapter031.html ... Parsing OEBPS/Text/cover.html ... Parsing OEBPS/Text/chapter019.html ... Parsing OEBPS/Text/chapter034.html ... Parsing OEBPS/Text/chapter018.html ... Parsing OEBPS/Text/introduction.html ... Parsing OEBPS/Text/chapter032.html ... Parsing OEBPS/Text/chapter035.html ... Reading TOC from NCX... Merging user specified metadata... Detecting structure... Flattening CSS and remapping font sizes... Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/abouttheauthor.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/title.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/copyright.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/toc.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chronology.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/preface.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/introduction.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/text.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/reading.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter001.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter002.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter003.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter004.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter005.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter006.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter007.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter008.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter009.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter010.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter011.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter012.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter013.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter014.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter015.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter016.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter017.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter018.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter019.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter020.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter021.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter022.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter023.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter024.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter025.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter026.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter027.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter028.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter029.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter030.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter031.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter032.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter033.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter034.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter035.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter036.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter037.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter038.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/notes.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter002-fn.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter019-fn.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter033-fn.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter035-fn.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter037-fn.html' is not CSS Stylesheet 'OEBPS/Styles/stylesheet.css' referenced by file 'OEBPS/Text/chapter038-fn.html' is not CSS Source base font size is 12.00000pt Removing fake margins... Found 1533 items of level: p_1 Found 157 items of level: div_1 Found 4688 items of level: p_2 Found 6 items of level: p_4 Ignoring level p_4 p_1 left margin stats: Counter({'0': 1533}) p_1 right margin stats: Counter({'0': 1533}) div_1 left margin stats: Counter({'': 87}) div_1 right margin stats: Counter({'': 87}) p_2 left margin stats: Counter({'0': 4688}) p_2 right margin stats: Counter({'0': 4688}) Cleaning up manifest... Trimming unused files from manifest... Trimming 'OEBPS/Fonts/CharisSILBI.ttf' from manifest Trimming 'OEBPS/Fonts/CharisSILR.ttf' from manifest Trimming 'OEBPS/Fonts/CharisSILI.ttf' from manifest Trimming 'OEBPS/Fonts/CharisSILB.ttf' from manifest Trimming 'OEBPS/Styles/stylesheet.css' from manifest Trimming 'OEBPS/Text/cover.html' from manifest Creating AZW3 Output... Serializing resources... Splitting markup on page breaks and flow limits, if any... Creating KF8 output Generating KF8 markup... Compressing markup... Creating indices... AZW3 output written to /tmp/calibre-ow7zhcb4/lmh2yw57.azw3 |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,611
Karma: 9500498
Join Date: Sep 2021
Location: Australia
Device: Kobo Libra 2
|
It would be easier to understand the problem if you posted the before and after screenshots of the same page, not different chapters as you have done.
|
![]() |
![]() |
![]() |
#3 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,771
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: Kindle Scribe
|
Hi,
I didn't realize that I accidentally quoted 2 different chapters. I have attached a screenshot of the same section in epub and azw3. The issues are that in the azw3 as opposed to the epub: 1. The title is justified left instead of center, and the font seems to have a different size 2. The proverb quoted is justified left instead of center and has a different font size 3. Same for the proverb's source, which is justified left instead of right 4. The text is all justified left and lacks the indent before the start of each paragraph. I have tried to look in launchpad to see the option of creating a private bug, but I couldn't find it. |
![]() |
![]() |
![]() |
#5 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,367
Karma: 78877538
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
I believe the private option appears after you open a bug and attach a file.
|
![]() |
![]() |
![]() |
#6 |
The Grand Mouse 高貴的老鼠
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73,771
Karma: 315126578
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Oasis
|
The Man Who Would be King, along with the rest of Kipling's work, is out of copyright in the EU. You can just upload the ePub and AZW3 here unless it includes some in-copyright introduction.
|
![]() |
![]() |
![]() |
#7 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: Kindle Scribe
|
Thanks to pdurrant's info about copyright I managed to create an extract of the original epub (with just the short story). I can still reproduce the issue
|
![]() |
![]() |
![]() |
#8 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,310
Karma: 168808723
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I opened the epub in Sigil and ran epubcheck against it. There was an issue finding the stylesheet so I unlinked it and relinked it to the xhtml file. I also changed to embed all fonts on the first tab and the text justification to original on the second tab of the Look & Feel in the conversion dialog.
I've attached my modified version of the .epub and the azw3/KF8 conversion output. |
![]() |
![]() |
![]() |
#9 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: May 2025
Device: Kindle Scribe
|
Hi, thanks for the info, i appreciate the help. Is this a bug with calibre or an issue with the original file?
|
![]() |
![]() |
![]() |
#10 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,398
Karma: 145491800
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Coversion from EPUB breaks formatting | surg | Conversion | 2 | 01-27-2022 01:22 AM |
Amazon AZW3 conversion to PDF creating too many breaks | Maddcow | Conversion | 3 | 10-11-2017 10:56 AM |
epub -> epub/mobi/azw3 breaks up chapters | Siavahda | Conversion | 1 | 09-25-2017 11:20 AM |
Too many page breaks when converting from .azw3 to epub | Kaetrin | Conversion | 15 | 08-10-2016 03:00 AM |
epub to azw3 conversion formatting issues | topquark | Conversion | 45 | 07-31-2014 05:28 AM |