|
![]() |
|
Thread Tools | Search this Thread |
![]() |
#1 |
Member
![]() Posts: 11
Karma: 10
Join Date: Sep 2013
Device: none
|
![]()
Having trouble converting an .epub file made in Sigil to .mobi format for Kindle.
Fonts are embedded and .epub version displays correctly through iBooks. @font-face definitions from .epub css file as follows: Code:
@font-face { font-family: 'StarlingBook'; font-weight: normal; font-style: normal; src: url('../Fonts/Starling-Book.otf'); } @font-face { font-family: 'StarlingBold'; font-weight: normal; font-style: normal; src: url('../Fonts/Starling-Bold.otf'); } @font-face { font-family: 'StarlingBookItalic'; font-weight: normal; font-style: normal; src: url('../Fonts/Starling-BookItalic.otf'); } @font-face { font-family: 'StarlingBookSC'; font-weight: normal; font-style: normal; src: url('../Fonts/Starling-BookSC.otf'); } @font-face { font-family: 'StarlingBookItalicSC'; font-weight: normal; font-style: normal; src: url('../Fonts/Starling-BookItalicSC.otf'); } @font-face { font-family: 'UniversRoman'; font-weight: normal; font-style: normal; src: url('../Fonts/Univers-55_Roman.otf'); } @font-face { font-family: 'UniversItalic'; font-weight: normal; font-style: normal; src: url('../Fonts/Univers-55_Italic.ttf'); } I've attached a couple of screen shots of the conversion panel in calibre. Embed referenced fonts is selected and they are all .ttf or .otf format so I'm not sure what is wrong. I've converted files like this before and not encountered this problem. Can anyone help? Thanks! |
![]() |
![]() |
![]() |
#2 |
Member
![]() Posts: 11
Karma: 10
Join Date: Sep 2013
Device: none
|
screenshots
relating to above post
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 30,891
Karma: 59840954
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You did not click (and show) the Details in/of the error
Mobi Embedded fonts? No https://www.mobileread.com/forums/sho...52&postcount=2 |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Convert to azw3 not mobi
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 11
Karma: 10
Join Date: Sep 2013
Device: none
|
theducks - sorry - here are the 'show details' results:
Code:
Convert book 1 of 1 (Real Estates: Life Without Debt) Resolved conversion options calibre version: 1.46.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(., '\\s*((chapter|book|section|part)\\s+)|((prolog|prologue|epilogue)(\\s+|$))', 'i')) or @class = 'chapter']", 'chapter_mark': u'pagebreak', 'comments': None, 'cover': u'/var/folders/7l/5gx3grtx0wg7pg02p37gbzmsj3swnc/T/calibre_1.46.0_tmp_oGToHb/9Zgdjc.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': True, 'embed_font_family': None, 'enable_heuristics': False, 'expand_css': False, 'extra_css': None, 'extract_to': None, 'filter_css': u'', '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 0x10b63aad0>, '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_file_type': u'old', 'mobi_ignore_margins': False, 'mobi_keep_original_images': False, 'mobi_toc_at_start': False, 'no_chapters_in_toc': True, 'no_inline_navbars': False, 'no_inline_toc': False, 'output_profile': <calibre.customize.profiles.OutputProfile object at 0x10b63ae90>, 'page_breaks_before': u'/', 'personal_doc': u'[PDOC]', 'prefer_author_sort': False, 'prefer_metadata_cover': False, 'pretty_print': False, 'pubdate': None, 'publisher': None, 'rating': None, 'read_metadata_from_opf': u'/var/folders/7l/5gx3grtx0wg7pg02p37gbzmsj3swnc/T/calibre_1.46.0_tmp_oGToHb/xRYCkQ.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'', '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': True, 'tags': None, 'timestamp': None, 'title': None, 'title_sort': None, 'toc_filter': None, 'toc_threshold': 6, 'toc_title': u'Contents', 'unsmarten_punctuation': False, 'unwrap_lines': True, 'use_auto_toc': False, 'verbose': 2} InputFormatPlugin: EPUB Input running on /var/folders/7l/5gx3grtx0wg7pg02p37gbzmsj3swnc/T/calibre_1.46.0_tmp_oGToHb/3nBIzR.epub Parsing all content... Parsing OEBPS/Text/11_derivative-architecture-figD.xhtml ... Parsing OEBPS/Text/7_me-myself-and-i.xhtml ... Parsing OEBPS/Text/1_introduction.xhtml ... Parsing OEBPS/Text/12_silver-bullets.xhtml ... Parsing OEBPS/Text/2_neoliberalisation.xhtml ... Parsing OEBPS/Text/14_unreal-estates-figG-H.xhtml ... Parsing OEBPS/Text/9_capitalism-and-freedom.xhtml ... Parsing OEBPS/Styles/Real_Estates.css ... Parsing OEBPS/Text/18_colophon.xhtml ... Parsing OEBPS/Text/11_derivative-architecture-figE-b.xhtml ... Parsing OEBPS/Text/11_derivative-architecture-figC.xhtml ... Parsing OEBPS/Text/3_shadow-states.xhtml ... Parsing OEBPS/Text/8_self-destruction-machine-figA.xhtml ... Parsing OEBPS/Text/14_unreal-estates-figI-J.xhtml ... Parsing OEBPS/Text/11_derivative-architecture-figE-d.xhtml ... Parsing OEBPS/Text/4_out-of-the-jungle.xhtml ... Parsing OEBPS/Text/8_self-destruction-machine.xhtml ... Parsing OEBPS/Text/11_derivative-architecture-figB.xhtml ... Parsing OEBPS/Text/5_room-against-ownership.xhtml ... Parsing OEBPS/Text/11_derivative-architecture.xhtml ... Parsing OEBPS/Text/0_title-image.xhtml ... Parsing OEBPS/Text/11_derivative-architecture-figE-a.xhtml ... Parsing OEBPS/Text/14_unreal-estates-figF.xhtml ... Parsing OEBPS/Text/14_unreal-estates.xhtml ... Parsing OEBPS/Text/11_derivative-architecture-figE-c.xhtml ... Parsing OEBPS/Text/6_tutti-proprietari.xhtml ... Parsing OEBPS/Text/13_politicisation-of-debt.xhtml ... Parsing OEBPS/Text/16_getting-real.xhtml ... Parsing OEBPS/Text/15_wrestling-the-right.xhtml ... Parsing OEBPS/Text/10_money-time-space.xhtml ... Parsing OEBPS/Text/17_biographies.xhtml ... Referenced file u'OEBPS/Images/figureH.jpg' not in manifest Reading TOC from NCX... Merging user specified metadata... Detecting structure... Python function terminated unexpectedly: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte. -- Note: Markdown only accepts unicode input! Flattening CSS and remapping font sizes... Source base font size is 12.00000pt Removing fake margins... Found 8 items of level: div_1 Found 8 items of level: p_2 Found 172 items of level: p_1 Ignoring level p_2 div_1 left margin stats: Counter() div_1 right margin stats: Counter() p_1 left margin stats: Counter({u'0': 172}) p_1 right margin stats: Counter({u'0': 172}) OEBPS/Misc/figureA contains data in TXT format converting to HTML Converting OEBPS/Misc/figureA ... Traceback (most recent call last): File "/Applications/calibre 1.46.app/Contents/Resources/Python/lib/python2.7/site.py", line 208, in main return run_entry_point() File "/Applications/calibre 1.46.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/utils/ipc/worker.py", line 195, 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 1164, in run File "site-packages/calibre/ebooks/oeb/transforms/embed_fonts.py", line 82, in __call__ File "site-packages/calibre/ebooks/oeb/transforms/embed_fonts.py", line 117, in find_style_rules File "site-packages/calibre/ebooks/oeb/base.py", line 976, in fget File "site-packages/calibre/ebooks/oeb/base.py", line 912, in _parse_txt File "site-packages/calibre/ebooks/txt/processor.py", line 105, in convert_markdown File "site-packages/calibre/ebooks/markdown/__init__.py", line 280, in convert UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: invalid start byte. -- Note: Markdown only accepts unicode input! kovidgoyal, can you explain why converting to azw3 and not mobi will make a difference? I'd like to understand better. Thanks! |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,169
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
The MOBI format does not support embedded fonts, the AZW3 format does.
You might be fooled into thinking a MOBI file contains embedded fonts, that can only happen if it is a combined mobi containing an azw3 part and an old MOBI part |
![]() |
![]() |
![]() |
Tags |
conversion, embed, epub, font, mobi |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Uploading ePub to KDP allows >127K images in mobi (hooray!) but strips embedded fonts | Peter Ahlstrom | Kindle Formats | 4 | 10-24-2014 11:30 AM |
Calibre's ebook-viewer and embedded fonts in EPUB books | gentoosiast | Calibre | 1 | 03-20-2013 07:53 AM |
mobi to epub conversion fail and unable to open | vulcan_girl | Conversion | 1 | 12-24-2012 01:27 PM |
Problem with embedded fonts in KF8/Mobi | orpheus2011 | Kindle Formats | 1 | 10-09-2012 09:30 AM |