Calibre 使用教程之转换电子书格式

“转换电子书格式”相关阅读

给这篇文章写一条留言

提示:带 * 标记的是必填项。您填写的邮箱地址将会被保密。首次留言将会在通过人工审核后显示。如果是提出问题,请务必提供尽可能多信息,这有助于他人更好地理解你所提出的问题。

小伙伴们写下了 157 条留言

  1. 使用Calibre转换出的azw3格式文件在Kindle PaperWhite 3里用词典取词时,总是直接取到一整行,但是转换成Mobi格式便没有这个问题,请问这个是怎么回事呢?

    • jiome 您好。经过反复测试,得出以下结论,仅供参考。

      不论是使用亚马逊官方最新版本的 KindleGen 转换的 MOBI 格式,还是用 Calibre 转换的 AZW3 格式,都属于亚马逊 KF8 标准的电子书,直接拷贝到 Kindle 中,都只会取一整句,而不是单个字词。如果把 KindleGen 转换的 MOBI 格式推送到亚马逊云端,亚马逊服务器会自动转换成 AZW3 格式,而这个 AZW3 格式在 Kindle 中却能选择单字或单词。猜测和可能亚马逊服务器端对 AZW3 格式进行了如分词之类的特殊处理。因为 AZW3 是亚马逊私有格式,并不开源,具体什么原因无从得知。

      即便是亚马逊服务器转换后的 AZW3 格式,如果仔细观察,你会发现,某些字组合在一起并不能成为一个词,但仍只能两个、三个同时选择,而不能选择自由点选,这可能是因为技术还不成熟,毕竟中文不像英文单词那样词与词之间有空格很好区分,和搜索引擎的分词技术一个道理。

      以上是分析。解决方法是:如果你很在意自由点选字词,不推荐转换成 KF8 标准的格式,也就是在 Calibre 中不要转换成 AZW3 或 new、both 模式的 MOBI。如果非常在意排版格式的话,建议使用最新版的 KindleGen 转换成 MOBI 格式,再推送到亚马逊云端(这种方法会导致不显示封面)。

  2. 我昨天根据网上的教程试过一回(过程更详细,设置修改电子书信息的),我想转化一本pdf格式的书籍到mobi格式,原文件大约84mb,转化之后目录里出现了一个84mb的mobi格式的书籍,我把它放进kindle打开,内容跟pdf一模一样。难道这个软件不能转化pdf吗?

    • 大魔王 您好。Calibre 只会简单的把 PDF 转成其他格式,并不会改变里面的排版。另外,关于使用 Kindle 阅读 PDF 需要向您详细说明一下。

      一般 PDF 分为“文字版”和“扫描版”,文字版最直观的判断就是文档内容可用鼠标选中,而扫描版其实就是一个图片集合。对于文字版 PDF 您可以在邮件推送时在主题中填入“convert”,亚马逊服务器会自动帮你转成适合 Kindle 阅读的排版格式。而扫描版的 PDF 并不适合 Kindle 阅读,目前也没有特别好的解决办法,建议尽量去找其他格式电子书资源,如 mobi、epub、azw3 或者是 6 吋 PDF。如果实在找不到,可以尝试下面的提到的两种解决方案。

      1、使用 Kindle 的横屏阅读模式
      2、使用如 K2pdfopt 这类软件重排 PDF

      这两种方法其实都有各自的局限。横屏阅读模式对于比较小幅面的 PDF 还勉强可用,如果幅面太大就不行了。K2pdfopt 虽然可以重排 PDF 文档内的内容以适应 Kindle 阅读,但是从实际应用来看效果并不理想,尤其是遇到公式、列表这种特殊排版时。

  3. 你好,请问转换失败,出现这个错误是什么原因呀。
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.38.0

    • kt 您好。请问这是全部错误提示吗?看起来像是程序处理编码遇到了错误。转换其他电子书会不会出现同样的问题呢?

  4. 使用Calibre转换出的azw3格式文件在Kindle PaperWhite 3里用词典取词时,总是直接取到一整行,但是转换成Mobi格式便没有这个问题,请问这个是怎么回事呢?

  5. 你好,请问使用这个软件转换一本书大概要多久?现在已经运行5分钟了,进度只有1%……

    • adam 您好。转换电子书的过程中出现的问题比较复杂,请针对某个具体问题,贴出相应错误提示,不然无法帮您准确的判断问题所在。

  6. 我用AZW3 EPUB 转换DOCX提示这是什么问题,我用的版本是2.29,是最新版本了

    转换书籍 第 1 本,共 1 本 (Graduate Admissions Essays, Fourth Edition: Write Your Way into the Graduate School of Your Choice)
    C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:339: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
    Resolved conversion options
    calibre version: 2.29.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’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_ig5yh3\\j4vqxb.jpeg’,
    ‘debug_pipeline’: None,
    ‘dehyphenate’: True,
    ‘delete_blank_paragraphs’: True,
    ‘disable_font_rescaling’: False,
    ‘docx_custom_page_size’: None,
    ‘docx_no_cover’: False,
    ‘docx_no_toc’: False,
    ‘docx_page_size’: u’a4′,
    ‘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’: u”,
    ‘fix_indents’: True,
    ‘font_size_mapping’: None,
    ‘format_scene_breaks’: True,
    ‘html_unwrap_factor’: 0.4,
    ‘input_encoding’: None,
    ‘input_profile’: ,
    ‘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,
    ‘no_chapters_in_toc’: False,
    ‘no_inline_navbars’: False,
    ‘output_profile’: ,
    ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
    ‘prefer_metadata_cover’: False,
    ‘pretty_print’: False,
    ‘pubdate’: None,
    ‘publisher’: None,
    ‘rating’: None,
    ‘read_metadata_from_opf’: u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_ig5yh3\\mqqj1c.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,
    ‘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,
    ‘unsmarten_punctuation’: False,
    ‘unwrap_lines’: True,
    ‘use_auto_toc’: False,
    ‘verbose’: 2}
    InputFormatPlugin: MOBI Input running
    on C:\Users\ADMINI~1\AppData\Local\Temp\calibre_ig5yh3\xnybrz.azw3
    Found KF8 MOBI of type ‘standalone’
    Extracting text…
    Parsing all content…
    Parsing text/part0015.html …
    Parsing text/part0016.html …
    Parsing text/part0017.html …
    Parsing text/part0018.html …
    Parsing styles/0001.css …
    Parsing text/part0001.html …
    Parsing text/part0000.html …
    Parsing text/part0002.html …
    Parsing text/part0003.html …
    Parsing text/part0004.html …
    Parsing text/part0005.html …
    Parsing text/part0006.html …
    Parsing text/part0007.html …
    Parsing text/part0008.html …
    Parsing text/part0009.html …
    Parsing text/part0010.html …
    Parsing text/part0011.html …
    Parsing text/part0012.html …
    Parsing text/part0013.html …
    Parsing text/part0014.html …
    Referenced file u’styles/XXXXXXXXXXXXXXXX’ not found
    Referenced file u’text/page-template.xpgt’ not found
    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 193 items of level: div_2
    Found 23 items of level: p_4
    Found 1432 items of level: p_2
    Found 304 items of level: p_3
    Found 15 items of level: div_3
    Found 713 items of level: p_1
    Found 329 items of level: div_1
    Ignoring level p_4
    Ignoring level div_3
    div_2 left margin stats: Counter({u’2.2em’: 4, u’2.8em’: 3, u’2.7em’: 2, u’2em’: 2, u’1.5em’: 1, u’3.2em’: 1})
    div_2 right margin stats: Counter({u”: 13})
    Negative text indent detected at level p_2, ignoring this level
    Negative text indent detected at level p_3, ignoring this level
    p_1 left margin stats: Counter({u’0′: 633, u’1px’: 80})
    p_1 right margin stats: Counter({u’0′: 713})
    div_1 left margin stats: Counter({u”: 67, u’3em’: 19, u’1.7em’: 9, u’2.2em’: 4, u’2em’: 4, u’1em’: 2, u’0′: 1})
    div_1 right margin stats: Counter({u”: 103, u’1em’: 2, u’0′: 1})
    Cleaning up manifest…
    Trimming unused files from manifest…
    Trimming u’images/00048.jpeg’ from manifest
    Trimming u’images/00001.jpeg’ from manifest
    Creating DOCX Output…
    Rasterizing SVG images…
    Processing text/part0000.html
    Processing text/part0001.html
    Processing text/part0002.html
    Processing text/part0003.html
    Processing text/part0004.html
    Processing text/part0005.html
    Processing text/part0006.html
    Processing text/part0007.html
    Processing text/part0008.html
    Processing text/part0009.html
    Processing text/part0010.html
    Processing text/part0011.html
    Processing text/part0012.html
    Processing text/part0013.html
    Python function terminated unexpectedly
    ‘TextStyle’ object has no attribute ‘vertical_align’ (Error Code: 1)
    Traceback (most recent call last):
    File “site.py”, line 132, in main
    File “site.py”, line 109, in run_entry_point
    File “site-packages\calibre\utils\ipc\worker.py”, line 193, 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 1198, in run
    File “site-packages\calibre\ebooks\conversion\plugins\docx_output.py”, line 65, in convert
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 416, in __call__
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 458, in process_item
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 509, in process_tag
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 509, in process_tag
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 509, in process_tag
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 486, in process_tag
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 556, in add_inline_tag
    File “site-packages\calibre\ebooks\docx\writer\from_html.py”, line 166, in add_text
    File “site-packages\calibre\ebooks\docx\writer\styles.py”, line 613, in create_text_style
    File “site-packages\calibre\ebooks\docx\writer\styles.py”, line 223, in __init__
    AttributeError: ‘TextStyle’ object has no attribute ‘vertical_align’

    • adam 您好。出现这种问题可能是因为源文件的问题,您可以现将电子书转换成 mobi 格式,然后再将 mobi 格式转换成 docx 格式试试看。另外不建议您将电子书转换成 word 文件使用。

  7. 你好,第一次安装后设置了默认发送格式,每次推送都要转换格式,特别麻烦。自己找了很久也没有找到如何修改,请问在哪里可以重新设置默认推送格式

    • 兎仈滒 您好。请问您推送的电子书是什么格式?我看了下相关选项以及重新运行欢迎向导,貌似都没有“默认发送格式”这个选项。不过需要注意的是,在用 Calibre 推送电子书时,如果遇到 epub 格式则必须转换成 mobi 格式后才能进行推送哦。

  8. 您好,我在给书排版保存时显示DRM锁定,请问怎么解决?

    书是在中国亚马逊买的,我想改字体然后调整一下排版。

  9. 你好!我在用calibre将azw3转换为mobi的时候,大部分的图书都可以,但是有几本提示错误,转换不成功,不知道是什么原因?

          • calibre, version 1.48.0 (win32, isfrozen: True)
            转换错误: 失败: 转换书籍 第 1 本,共 1 本 (木心作品一辑八种(套装共8册))

            转换书籍 第 1 本,共 1 本 (木心作品一辑八种(套装共8册))
            C:\Program Files\Calibre2\pylib.zip\dateutil\parser.py:336: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
            Resolved conversion options
            calibre version: 1.48.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’D:\\Personal\\Temp\\calibre_ytigwm\\phdumu.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’: u”,
            ‘fix_indents’: True,
            ‘font_size_mapping’: None,
            ‘format_scene_breaks’: True,
            ‘html_unwrap_factor’: 0.4,
            ‘input_encoding’: None,
            ‘input_profile’: ,
            ‘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’: False,
            ‘no_inline_navbars’: True,
            ‘no_inline_toc’: False,
            ‘output_profile’: ,
            ‘page_breaks_before’: u”//*[name()=’h1′ or name()=’h2′]”,
            ‘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’D:\\Personal\\Temp\\calibre_ytigwm\\kx_jaa.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’: False,
            ‘tags’: None,
            ‘timestamp’: None,
            ‘title’: None,
            ‘title_sort’: None,
            ‘toc_filter’: None,
            ‘toc_threshold’: 6,
            ‘toc_title’: None,
            ‘unsmarten_punctuation’: False,
            ‘unwrap_lines’: True,
            ‘use_auto_toc’: False,
            ‘verbose’: 2}
            InputFormatPlugin: MOBI Input running
            on D:\Personal\Temp\calibre_ytigwm\brm8zc.azw3
            Found KF8 MOBI of type ‘standalone’
            Extracting text…
            Python function terminated unexpectedly
            ‘NoneType’ object has no attribute ‘resource_index’ (Error Code: 1)
            Traceback (most recent call last):
            File “site.py”, line 132, in main
            File “site.py”, line 109, in run_entry_point
            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 1040, in run
            File “site-packages\calibre\customize\conversion.py”, line 241, in __call__
            File “site-packages\calibre\ebooks\conversion\plugins\mobi_input.py”, line 43, in convert
            File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 102, in __call__
            File “site-packages\calibre\ebooks\mobi\reader\mobi8.py”, line 436, in extract_resources
            AttributeError: ‘NoneType’ object has no attribute ‘resource_index’

            • tzb 您好。您使用的 Calibre 的版本为 1.48.0,这可能是老版本 Calibre 存在的问题,此问题在新版本 Calibre 中已修复,请点击这里下载升级到最新版。

    • 印象中在 Kindle 人社区好像看到过有一个软件可以实现,不过现在论坛关站找不到了,如果有找到有效办法再通知您。^_^

  10. 转换时将“mobi输出”这个转换选项里的“mobi文件类型”选为both,但行间距问题依然拥挤。KV5.6.1.0.1,为什么呢?

    • Seaven 您好,这个both 选项虽可以尽可能多的保留被转换电子书的内容格式,却不能完全还原如 AZW3 这种亚马逊私有电子书格式的排版。通过转换的电子书放到 Kindle 后,可以把 Kindle 里的行距设置成最大行距,这样阅读起来会比较舒适。

      • 你好,原始格式是mobi,转成azw3直接用USB拷入knidle格式是正常的,说明原始格式是正常的。将这个mobi或是用任各种参数转换后的mobi通过邮件传送到kindle却始终行间距过小。不知是什么原因?

        • seaven 您好,azw3 格式是亚马逊的私有格式,它的一些新特性被 Calibre 转换后会有损失,比如您遇到的行距变小的问题。如果您希望保持原有的格式,建议不要使用 Calibre 转换。如果为了推送而必须使用 Calibre 转换的话,您可以在 Kindle 中把行距设置成最大,这样更适合阅读。

          • 不同的书转成mobi推送到KINDLE,有的行间距比较宽,有的调到最大了还是很窄,还是有什么参数在起作用的。

            • seaven 您好,用 Calibre 把电子书转换呈 mobi 格式确实有这样的问题,不过有办法解决,请参考这篇文章:https://bookfere.com/post/102.html,按照这篇文章的装换方法可以保持电子书的排版不被丢失。另外,如果你想自定义行距,在用 Calibre 转成 epub 格式的时候,在转换设置里面设置下就可以。有什么不明白的可以再在留言区留言。^_^

  11. 您好,请问一下,使用Calibre把epub转成mobi,默认设置,会不会丢失排版、字体信息?

    • 有可能会的,如果你用Calibre将azw或azw3这种比较新的格式转换成mobi,里面的内容格式有可能会出现丢失的情况,但是Calibre可以在转换的时候尽可能的保留这些新格式的特性,只需要再转换的时候设置一下,具体的设置步骤可以点击这个连接查看:https://bookfere.com/post/5.html#skill_9。个人认为影响不大,有更好的转换方法Kindle伴侣会进行介绍。

      • 谢谢回复!
        是不是说,epub最老,mobi一般,azw最新,新的格式转老的格式由于兼容性可能会丢失内容格式?
        那老的格式转新的格式就不会丢失了吧?

        • 这样比较并不准确。mobi、azw和azw3可以说是亚马逊的私有格式,mobi和azw格式其实本质一样,可以说azw是mobi的另外一种形式,azw3是比另外两个更新的格式,所以它能支持更多的新特性。就像你说的,高版本转低版本,显然会丢失掉一些特性。

          而epub是开源的国际通用电子书格式,包括苹果、Google在内的公司因为这种格式的可扩展性更强(比如支持多媒体)都推崇这种格式。而亚马逊之所以采用自己的私有格式是为了将创新成果迅速结合到产品中去。

  12. 你好,你这篇文章里指出的“Calibre官方下载页面:http://calibre-ebook.com/download”是全英文页面啊,而且好像下载安装要收费了。

    • Calibre是免费开源软件,是不收费的。如果你看不懂英文页面,我刚刚更新了这篇文章,列出了和各个操作系统版本相对应的Calibre的直接下载链接,按照你需要的直接下载就可以了。