Calibre 使用教程之转换电子书格式
Calibre是一款电子图书管理软件,其提供的“一站式”的电子书解决方案,可以全面满足对电子书需求,甚至可以利用它组织成属于自己的电子图书馆,它的功能更是多种多样,不仅可以用它对图书进行格式转换,归类整理电子书,还可以将文本图像材料、在线内容(RSS)加入并转换为电子书。更重要的是Calibre是免费的、开源的,拥有跨平台的设计,可在Linux, OS X和Windows操作系统中运行,堪称电子书管理神器!
Calibre下载页面:https://bookfere.com/tools#calibre
因为Kindle阅读器支持的电子书格式有限,除了对mobi及其自有格式azw、azw3的支持,对其他一些电子书格式(比如网上颇为流行的epub格式)却没有提供支持,这就需把这些Kindle所不支持的格式转换一下。利用Calibre转换电子书十分方便,步骤如下:
一、添加电子书到书库
下载安装好Calibre并打开它。点击左上角的“添加书籍”图标,将你想要转换的电子书添加到书库中(也可以直接将电子书拖放到书库里)。
二、选择一种转换模式
选中一个或多个电子书,点击鼠标右键,在弹出的菜单中将鼠标定位到“转换书籍”那一项,会弹出一个子菜单,有“逐个转换”和“批量转换”可选。如果选取了多个文件,使用“逐个转换”需要对每一个图书进行单独的设置,比如可以对不同的电子书设置不同的格式;而“批量转换”则是所有电子书共用一个设置。请根据自己的需要选择。
Calibre 支持转换的格式有:EPUB、MOBI、AZW3、DOCX、FB2、HTMLZ、LIT、LRF、PDB、PDF、PMIZ、RB、RTF、SNB、TCR、TXT、TXTZ、ZIP。
三、设置修改电子书信息
如果选择了“逐个转换”会针对每一本电子书弹出一个设置对话框,你可以对该电子书的“输出格式”、“元数据(包括书名、封面、作者等基本信息的设置)”、“界面外观(包括字体大小、内嵌字体、行高等内容格式的设置)”、“智能处理”、“页面设置”、“结构检测”、“内容目录”、“查找与替换”、“EPUB输出”、“调试”项进行详细的设置。如果选择了“批量转换”,则不能批量修改它们的“元数据”及使用“调试”功能。
四、查看或管理转换进程
所有转换设置完毕后,点击“确定”按钮开始转换格式。转换过程中主页面的右下角会有“任务:**”的字样和一枚转动的菊花图标,点击它们便会弹出一个任务列表框,在这里你可以查看转换状态并对单个或多个任务进行中止、隐藏等操作。
五、获取转换后的电子书
当右下角的“任务”后的数字变为“0”时表示全部转换任务已完成。右键点击图书在菜单中点选“打开所在目录”便能转到存储的默认文件夹并找到已经转换好格式的电子书了。如果不想一个一个地打开电子书所在目录,可以选择多个电子书,右键点击在弹出的菜单中将鼠标定位到“保存到磁盘”,在弹出的子菜单中点选“保存到磁盘单个目录”,在弹出的对话框中选择一个目录,就可以将它们统一放到一个文件夹里了。
将电子书的格式转换完之后,是不是像立即将它推送到Kindle中?Calibre早就为我们想到了,它提供了一个十分方便的功能,那就是邮件一键推送,想要再学一招就快点击这篇教程《Calibre使用教程之一键推送电子书》看看吧。
———————
* 使用小贴士:
为什么用 Calibre 将 azw3 格式的电子书转换成 mobi 格式后排版会发生变化?
一般在亚马逊官方购买的电子书都是 azw3 格式,行距是经过设计的有很好的排版效果,但是用 Calibre 将其转化成 mobi 格式后,你会发现段落行距之间变得很窄很挤,这是什么原因呢?原来默认设置下 Calibre 在转换过程中会对 mobi 做一些兼容处理,默认是兼容老的 mobi 格式,这就导致了如 azw3 这种新格式的一些特性丢失。
Calibre 在转换电子书时,在转换设置界面左侧有一个“mobi 输出”设置项,在这里有一个“mobi文件类型”,分别可以选择 old、both、new,这三种格式分别代表:
- new:是只包含 KF8(mobi8)
- both:包含 KF8(mobi8) 和 KF7(mobi7)
- old:只包含 KF7(mobi7)
其中 new 模式会出问题,old 模式又会损失格式。所以可以选择 both 模式,此模式是为了兼容新旧设备,所以会包含两份相同内容但样式不同的文件,虽然这样也不能保证所有格式都能保留,但是可以最大程度的还原 azw 格式的一些新特性。不过需要注意,如果把转换时选择了 new 和 both 模式,亚马逊的个人文档推送服务可能会不支持。
如果以上方法依然不能生效,还有一个更好的办法,请参见:https://bookfere.com/post/102.html。
© 「书伴」原创文章,转载请注明出处及原文链接:https://bookfere.com/post/10.html
“转换电子书格式”相关阅读
- KindleGen:亚马逊官方 Kindle 电子书格式转换工具
- 在 Kindle 中阅读 EPUB 格式电子书的两种有效方法
- Calibre 使用教程之优化电子书的排版
- 如何将 AZW3 格式无损转换为 EPUB 格式并保持原有排版
- Calibre 使用教程之电子书繁体字转简体字
- Kindle Comic Creator:亚马逊官方漫画转换工具
- 如何把 KFX 格式转换成 MOBI 等其它电子书格式
- EasyPub:把 TXT 文档转成带目录的 MOBI 格式
- Calibre 常用命令行工具详解之 ebook-convert
- 把 TXT 文档转换成带目录的 MOBI 格式电子书
- 如何直接推送 EPUB 格式电子书到 Kindle 邮箱
- Kindle Comic Converter:最简单的漫画转换工具
- 如何将 AZW3 格式无损转换为 MOBI 格式并保持原有排版
- 如何把 Kindle 电子书转换成增强型排版的 KFX 格式
- Calibre使用教程之为电子书添加或修改封面
求救,使用calibre将epub转换为azw3格式之后再传送到kindle会识别为个人文档,看了一下可能是因为新版的calibre自动生成isbn码的缘故,请问这样还有救吗呜呜呜
你可以试试 3.48 版本的 Calibre:百度网盘〈提取码 : m69a〉,看是否有同样的问题。
试完回来还是有同样的问题呜呜呜(我下的64位版本),我把书发到底部邮箱了呜呜呜呜呜
建议使用 KindleGen 或 Kindle Previewer 将 EPUB 格式转换成 MOBI 格式,这样转换出来的格式与 AZW3 的本质是一样的,因为转换软件是亚马逊提供的,出问题的几率更小一些。
你好,最近epub转为mobi的书导入进去老是出现书籍出现错误,这是什么原因呢
epub转pdf的时候,中英混排的文档,英文在换行时一个单词会被断到另外一行。检索文档的时候就检索不到这个单词了。头痛。请问怎么解决?
特意看了epub原档,epub不会出现这种情况。
epub转mobi失败多次
转换书籍 第 1 本,共 1 本 (阿加莎·克里斯蒂侦探小说大全集(全85册))
Conversion options changed from defaults:
cover: ‘C:\\Users\\LENOVO\\AppData\\Local\\Temp\\calibre_qv3fvyuk\\mw87dy9_.jpeg’
verbose: 2
output_profile: ‘kindle_pw3’
read_metadata_from_opf: ‘C:\\Users\\LENOVO\\AppData\\Local\\Temp\\calibre_qv3fvyuk\\v5qv9ybp.opf’
Resolved conversion options
calibre version: 5.12.0
{‘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’: ‘C:\\Users\\LENOVO\\AppData\\Local\\Temp\\calibre_qv3fvyuk\\mw87dy9_.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’: ,
‘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’: ‘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’: ‘/’,
‘personal_doc’: ‘[PDOC]’,
‘prefer_author_sort’: False,
‘prefer_metadata_cover’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: ‘C:\\Users\\LENOVO\\AppData\\Local\\Temp\\calibre_qv3fvyuk\\v5qv9ybp.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’: ‘[]’,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: EPUB Input running
on C:\Users\LENOVO\AppData\Local\Temp\calibre_qv3fvyuk\cmdh8npx.epub
Found HTML cover OEBPS/Text/cover_page.xhtml
Parsing all content…
Parsing OEBPS/Text/part1413.xhtml …
Parsing OEBPS/Text/part1549.xhtml …
Parsing OEBPS/Text/part1927.xhtml …
Parsing OEBPS/Text/part1236.xhtml …
Parsing OEBPS/Text/part1614.xhtml …
Parsing OEBPS/Text/part0033.xhtml …
Parsing OEBPS/Styles/style0071.css …
Parsing OEBPS/Text/part1525.xhtml …
Parsing OEBPS/Text/part1903.xhtml …
Parsing OEBPS/Text/part1253.xhtml …
Parsing OEBPS/Text/part1631.xhtml …
Parsing OEBPS/Text/part1726.xhtml …
Parsing OEBPS/Text/part1542.xhtml …
Parsing OEBPS/Text/part1920.xhtml …
Parsing OEBPS/Text/part1259.xhtml …
Parsing OEBPS/Text/part1637.xhtml …
Parsing OEBPS/Text/part1743.xhtml …
Parsing OEBPS/Text/part0038.xhtml …
Parsing OEBPS/Text/part0124.xhtml …
Parsing OEBPS/Text/part0166.xhtml …
Parsing OEBPS/Text/part0249.xhtml …
Parsing OEBPS/Text/part0205.xhtml …
Parsing OEBPS/Text/part0333.xhtml …
Parsing OEBPS/Text/part0753.xhtml …
Parsing OEBPS/Text/part0879.xhtml …
Parsing OEBPS/Text/part0459.xhtml …
Parsing OEBPS/Text/part1130.xhtml …
Parsing OEBPS/Text/part1276.xhtml …
Parsing OEBPS/Text/part1654.xhtml …
Parsing OEBPS/Text/part0097.xhtml …
Parsing OEBPS/Text/part1293.xhtml …
Parsing OEBPS/Text/part1671.xhtml …
Parsing OEBPS/Text/part1396.xhtml …
Parsing OEBPS/Text/part1502.xhtml …
Parsing OEBPS/Text/part1880.xhtml …
Parsing OEBPS/Text/part0016.xhtml …
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 224615 items of level: p_1
Found 2089 items of level: div_1
Found 12 items of level: p_2
Found 671 items of level: div_2
Ignoring level p_2
Negative text indent detected at level p_1, ignoring this level
div_1 left margin stats: Counter({‘0.5em’: 56})
div_1 right margin stats: Counter({”: 56})
Removing level div_1 left margin of: 0.5em
div_2 left margin stats: Counter()
div_2 right margin stats: Counter()
Cleaning up manifest…
Trimming unused files from manifest…
Trimming ‘OEBPS/Text/cover_page.xhtml’ from manifest
Creating MOBI Output…
Serializing resources…
Creating MOBI 6 output
Applying case-transforming CSS…
Parsing manglecase.css …
Rasterizing SVG images…
Converting XHTML to Mobipocket markup…
Traceback (most recent call last):
File “runpy.py”, line 194, in _run_module_as_main
File “runpy.py”, line 87, in _run_code
File “site.py”, line 82, in
File “site.py”, line 77, in main
File “site.py”, line 49, in run_entry_point
File “calibre\utils\ipc\worker.py”, line 216, in main
File “calibre\gui2\convert\gui_conversion.py”, line 41, in gui_convert_override
File “calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
File “calibre\ebooks\conversion\plumber.py”, line 1274, in run
File “calibre\ebooks\conversion\plugins\mobi_output.py”, line 214, in convert
File “calibre\ebooks\conversion\plugins\mobi_output.py”, line 246, in write_mobi
File “calibre\ebooks\mobi\mobiml.py”, line 129, in __call__
File “calibre\ebooks\mobi\mobiml.py”, line 139, in mobimlize_spine
File “calibre\ebooks\mobi\mobiml.py”, line 586, in mobimlize_elem
File “calibre\ebooks\mobi\mobiml.py”, line 584, in mobimlize_elem
File “calibre\ebooks\mobi\mobiml.py”, line 301, in mobimlize_content
File “src/lxml/etree.pyx”, line 3136, in lxml.etree.SubElement
File “src/lxml/apihelpers.pxi”, line 199, in lxml.etree._makeSubElement
File “src/lxml/apihelpers.pxi”, line 194, in lxml.etree._makeSubElement
File “src/lxml/apihelpers.pxi”, line 317, in lxml.etree._initNodeAttributes
File “src/lxml/apihelpers.pxi”, line 334, in lxml.etree._addAttributeToNode
File “src/lxml/apihelpers.pxi”, line 1538, in lxml.etree._utf8
TypeError: Argument must be bytes or unicode, got ‘float’
这个问题需要测试。可以把文件发送到书伴邮箱(页面底部“联系”处获取),以便测试。
我也是这本书,遇到了同样的错误
我也是一直转换失败,请问您现在找到转换方法了吗?
calibre转带有弾注的epub为mobi格式后,弾注失效变为跳转怎么办?
经测试“new”不行,“both”可以,然后文件大小45.5M的发送成功,再稍大点就失败,虽然理论上限是50M,然后客服说最好别超过30M,否则容易发送失败
Calibre的mac版有没有中文的
Calibre 是多国语言版,包含简体中文。你可以前往 Calibre 的偏好设置(Preference),进入界面外观(Look & Feel),将语言设置(Choose Language)选成简体中文(Simplified Chinese),然后重启一下 Calibre 即可。
您好!请教一下,为什么在转换epub电子书到docx时,原来epub做好了目录,点击就可以跳转的,但是生成的docx,开头虽然也有目录,但是点击之后显示无法打开,无法跳转到文档内部的对应页码?
查看其超链接都是 h#mulu4 形式
谢谢!
我同时注意到,此前拷贝进去可用的azw3文件有时也会出现损坏的提示,这是否是硬件有问题?我此前用pw3的时候极少出现这种提示。
出现这个现象后有没有试过重启 Kindle?
求教,近期使用calibre制作的azw3格式电子书,放到kpw4上会频繁出现错误提示,请问是哪里有问题?pw4已经刷新固件,也已重置过,还是有问题
您好,我现在在用的是KP3,固件更新到最新版(未越狱),内存还有1G多,电量80%,书的话是自己打的txt格式,转成AZW3和mobi(mobi有改过new和old还有both),但是一在kindle中打开就死机并显示什么云端blabla的报错,而且不是一本书是但凡自己这么做的txt转换全都打不开,想求问一下这是怎么回事,能不能有办法解决…?自己折腾了一个下午了…
出现电子书打不开的情况,建议首先重启一下 Kindle 设备,看能不能恢复正常。如果没能解决,可能就是电子书本身的问题了,Calibre 转换的 new 模式的 mobi 格式可能有问题,不建议使用。如果是直接拷贝到 Kindle 越狱,建议转换成 azw3 格式,如果是需要邮件推送,建议转换成 old 模式的 mobi 格式。
您好,我在转换txt到mobi时遇到了这个问题 ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
请问我该如何处理呢
我转换的txt是简体中文的
错误提示信息较少,不好判断问题。建议把文件发送到书伴邮箱(页面底部“联系”处获取),方便排查。
转换书籍 第 1 本,共 1 本 (医道官途)
Conversion options changed from defaults:
output_profile: u’kindle_voyage’
read_metadata_from_opf: u’/var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/6bgP2E.opf’
verbose: 2
cover: u’/var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/iuyjRx.jpeg’
markdown_extensions: u’toc, tables, footnotes’
Resolved conversion options
calibre version: 4.1.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/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/iuyjRx.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,
‘formatting_type’: u’auto’,
‘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,
‘markdown_extensions’: u’toc, tables, footnotes’,
‘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′]”,
‘paragraph_type’: u’auto’,
‘personal_doc’: u'[PDOC]’,
‘prefer_author_sort’: False,
‘prefer_metadata_cover’: False,
‘preserve_spaces’: False,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’/var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/6bgP2E.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,
‘transform_css_rules’: ‘[]’,
‘txt_in_remove_indents’: False,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: TXT Input running
on /var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/EQW3Tb.txt
Reading text from file…
Detected input encoding as utf-8 with a confidence of 99.0%
Auto detected paragraph type as single
Auto detected formatting as textile
Running text through textile conversion…
Language not specified
Creator not specified
Building file list…
IgnoreFile(u”Could not read from file: /var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/shuyaya.com with error: [Errno 2] No such file or directory: u’/var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/shuyaya.com'”,)
Found files…
HTMLFile:0:a:/var/folders/gz/gg8rf9jj2fzdrqt933m5jw700000gn/C/calibre_4.1.0_tmp_4r811Z/index-5.html
Normalizing filename cases
Rewriting HTML links
Parsing index-5.html …
Initial parse failed, using more forgiving parsers
Parsing index-5.html as HTML
Merging user specified metadata…
Detecting structure…
Auto generated TOC with 1 entries.
Flattening CSS and remapping font sizes…
Source base font size is 12.00000pt
Removing fake margins…
Found 6 items of level: p_40
Found 1 items of level: p_41
Found 2 items of level: p_42
Found 2 items of level: p_43
Found 4 items of level: p_44
Found 448 items of level: p_20
Found 12 items of level: p_34
Found 1 items of level: p_47
Found 4 items of level: p_48
Found 1 items of level: p_49
Found 779 items of level: p_30
Found 4 items of level: p_21
Found 10 items of level: p_35
Found 1 items of level: div_2
Found 1 items of level: div_3
Found 466 items of level: p_24
Found 1 items of level: div_1
Found 1 items of level: div_6
Found 1 items of level: div_7
Found 1 items of level: div_4
Found 1 items of level: div_5
Found 1 items of level: div_8
Found 1 items of level: div_9
Found 14 items of level: p_45
Found 9 items of level: p_28
Found 9 items of level: p_29
Found 1 items of level: div_12
Found 1 items of level: div_13
Found 1 items of level: div_10
Found 1 items of level: div_11
Found 1 items of level: div_16
Found 1 items of level: div_17
Found 1 items of level: div_14
Found 1 items of level: div_15
Found 2 items of level: p_33
Found 5 items of level: p_39
Found 1 items of level: div_18
Found 1 items of level: div_19
Found 245 items of level: p_51
Found 1 items of level: p_46
Found 3 items of level: p_32
Found 2 items of level: p_50
Found 21 items of level: p_36
Found 3 items of level: p_13
Found 2 items of level: p_12
Found 37 items of level: p_11
Found 7 items of level: p_10
Found 13 items of level: p_17
Found 2 items of level: p_16
Found 5 items of level: p_15
Found 5 items of level: p_14
Found 25 items of level: p_19
Found 15 items of level: p_18
Found 358 items of level: p_25
Found 47 items of level: p_38
Found 97 items of level: p_26
Found 6 items of level: p_27
Found 1 items of level: div_22
Found 1 items of level: div_21
Found 1 items of level: div_20
Found 4 items of level: p_31
Found 8 items of level: p_37
Found 125 items of level: p_1
Found 1 items of level: p_3
Found 1 items of level: p_2
Found 9 items of level: p_5
Found 49 items of level: p_4
Found 1 items of level: p_7
Found 234 items of level: p_6
Found 2 items of level: p_9
Found 288 items of level: p_8
Found 6 items of level: p_22
Found 1011 items of level: p_23
Ignoring level p_40
Ignoring level p_41
Ignoring level p_42
Ignoring level p_43
Ignoring level p_44
Ignoring level p_45
Ignoring level p_46
Ignoring level p_47
Ignoring level p_48
Ignoring level p_49
Ignoring level p_21
Ignoring level div_3
Ignoring level div_6
Ignoring level div_7
Ignoring level div_4
Ignoring level div_5
Ignoring level div_8
Ignoring level div_9
Ignoring level p_28
Ignoring level p_29
Ignoring level div_12
Ignoring level div_13
Ignoring level div_10
Ignoring level div_11
Ignoring level div_16
Ignoring level div_17
Ignoring level div_14
Ignoring level div_15
Ignoring level div_18
Ignoring level div_19
Ignoring level p_2
Ignoring level p_27
Ignoring level p_15
Ignoring level p_50
Ignoring level p_14
Ignoring level p_35
Ignoring level p_34
Ignoring level p_37
Ignoring level p_36
Ignoring level p_17
Ignoring level p_16
Ignoring level p_33
Ignoring level p_32
Ignoring level p_18
Ignoring level p_39
Ignoring level p_13
Ignoring level p_12
Ignoring level div_22
Ignoring level div_21
Ignoring level div_20
Ignoring level p_3
Ignoring level p_10
Ignoring level p_5
Ignoring level p_7
Ignoring level p_9
Ignoring level p_31
Ignoring level p_22
p_20 left margin stats: Counter({u’0′: 448})
p_20 right margin stats: Counter({u’0′: 448})
p_30 left margin stats: Counter({u’0′: 779})
p_30 right margin stats: Counter({u’0′: 779})
div_2 left margin stats: Counter({u”: 1})
div_2 right margin stats: Counter({u”: 1})
p_24 left margin stats: Counter({u’0′: 466})
p_24 right margin stats: Counter({u’0′: 466})
div_1 left margin stats: Counter({u”: 1})
div_1 right margin stats: Counter({u”: 1})
p_51 left margin stats: Counter({u’0′: 245})
p_51 right margin stats: Counter({u’0′: 245})
p_11 left margin stats: Counter({u’0′: 37})
p_11 right margin stats: Counter({u’0′: 37})
p_19 left margin stats: Counter({u’0′: 25})
p_19 right margin stats: Counter({u’0′: 25})
p_25 left margin stats: Counter({u’0′: 358})
p_25 right margin stats: Counter({u’0′: 358})
p_38 left margin stats: Counter({u’0′: 47})
p_38 right margin stats: Counter({u’0′: 47})
p_26 left margin stats: Counter({u’0′: 97})
p_26 right margin stats: Counter({u’0′: 97})
p_1 left margin stats: Counter({u’0′: 125})
p_1 right margin stats: Counter({u’0′: 125})
p_4 left margin stats: Counter({u’0′: 49})
p_4 right margin stats: Counter({u’0′: 49})
p_6 left margin stats: Counter({u’0′: 234})
p_6 right margin stats: Counter({u’0′: 234})
p_8 left margin stats: Counter({u’0′: 288})
p_8 right margin stats: Counter({u’0′: 288})
p_23 left margin stats: Counter({u’0′: 1011})
p_23 right margin stats: Counter({u’0′: 1011})
Cleaning up manifest…
Trimming unused files from manifest…
Creating MOBI Output…
Serializing resources…
Creating MOBI 6 output
Generating in-line TOC…
Applying case-transforming CSS…
Parsing manglecase.css …
Parsing tocstyle.css …
Rasterizing SVG images…
Converting XHTML to Mobipocket markup…
Failed to find image: ”那中年妇女道:“少废话,钱呢?”张扬害怕被别人看到,低声道:“我给我给,咱们换个地方。那中年妇女道:“不行,就在这儿
Python function terminated unexpectedly: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
Traceback (most recent call last):
File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 163, in main
return run_entry_point()
File “/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py”, line 121, in run_entry_point
return getattr(pmod, func)()
File “site-packages/calibre/utils/ipc/worker.py”, line 208, in main
File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 43, in gui_convert_override
File “site-packages/calibre/gui2/convert/gui_conversion.py”, line 28, in gui_convert
File “site-packages/calibre/ebooks/conversion/plumber.py”, line 1275, in run
File “site-packages/calibre/ebooks/conversion/plugins/mobi_output.py”, line 214, in convert
File “site-packages/calibre/ebooks/conversion/plugins/mobi_output.py”, line 246, in write_mobi
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 129, in __call__
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 140, in mobimlize_spine
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 586, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 596, in mobimlize_elem
File “site-packages/calibre/ebooks/mobi/mobiml.py”, line 314, in mobimlize_content
File “src/lxml/etree.pyx”, line 1018, in lxml.etree._Element.text.__set__
File “src/lxml/apihelpers.pxi”, line 710, in lxml.etree._setNodeText
File “src/lxml/apihelpers.pxi”, line 698, in lxml.etree._createTextNode
File “src/lxml/apihelpers.pxi”, line 1493, in lxml.etree._utf8
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
txt档案太大了 无法发送啊
txt档案太大了 无法发送啊
您好,我这边发现TXT转换成MOBI 格式之后, 发送到Kindle但是打不开, 麻烦帮忙看看应该如何解决吧, 多谢
您好 我在Calibre上修改了图书的元数据(包含书名及作者)但另存后再导入kindle 还是显示错误乱码 请问应该如何处理呢?
Calibre 修改元数据后转换了吗?修改新元数据会生效在转换后的电子书上。
你好,为什么我txt格式的文件转换成mobi格式后书名全部变成了拼音呢?
Calibre 会自动把【电子书文件名】的汉字自动转换成拼音,并且没有提供选项禁止这样做,这主要是为了避开字符对软件正常运行可能产生的影响。
不过不用担心,这不影响 Kindle 正常显示汉字电子书名,因为 Kindle 显示的书名读取的是【电子书元数据】而不是文件名,而 Calibre 不会改动元数据中的汉字。
管理员,您好,我用calibre将TXT转换mobi时,不停地提示我转换失败,其他TXT文件依然可以转。
以下是错误代码,请求解决~!!!
calibre, version 3.47.0 (win32, embedded-python: True)
转换错误: 失败: 转换书籍 第 1 本,共 1 本
转换书籍 第 1 本,共 1 本
C:\Program Files (x86)\Calibre2\app\pylib.zip\dateutil\parser.py:601: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode – interpreting them as being unequal
Conversion options changed from defaults:
remove_paragraph_spacing_indent_size: 2.0
read_metadata_from_opf: u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_32i79r\\o8mzfq.opf’
output_profile: u’kindle_oasis’
mobi_file_type: u’both’
insert_blank_line: True
markdown_extensions: u’toc, tables, footnotes’
personal_doc: None
insert_blank_line_size: 1.0
preserve_spaces: True
verbose: 2
disable_font_rescaling: True
minimum_line_height: 140.0
cover: u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_32i79r\\sih1kc.jpeg’
remove_paragraph_spacing: True
Resolved conversion options
calibre version: 3.47.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_32i79r\\sih1kc.jpeg’,
‘debug_pipeline’: None,
‘dehyphenate’: True,
‘delete_blank_paragraphs’: True,
‘disable_font_rescaling’: True,
‘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,
‘formatting_type’: u’auto’,
‘html_unwrap_factor’: 0.4,
‘input_encoding’: None,
‘input_profile’: ,
‘insert_blank_line’: True,
‘insert_blank_line_size’: 1.0,
‘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,
‘markdown_extensions’: u’toc, tables, footnotes’,
‘markup_chapter_headings’: True,
‘max_toc_links’: 50,
‘minimum_line_height’: 140.0,
‘mobi_file_type’: u’both’,
‘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′]”,
‘paragraph_type’: u’auto’,
‘personal_doc’: None,
‘prefer_author_sort’: False,
‘prefer_metadata_cover’: False,
‘preserve_spaces’: True,
‘pretty_print’: False,
‘pubdate’: None,
‘publisher’: None,
‘rating’: None,
‘read_metadata_from_opf’: u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_32i79r\\o8mzfq.opf’,
‘remove_fake_margins’: True,
‘remove_first_image’: False,
‘remove_paragraph_spacing’: True,
‘remove_paragraph_spacing_indent_size’: 2.0,
‘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,
‘transform_css_rules’: ‘[]’,
‘txt_in_remove_indents’: False,
‘unsmarten_punctuation’: False,
‘unwrap_lines’: True,
‘use_auto_toc’: False,
‘verbose’: 2}
InputFormatPlugin: TXT Input running
on C:\Users\ADMINI~1\AppData\Local\Temp\calibre_32i79r\qdo6_k.txt
Reading text from file…
Detected input encoding as gbk with a confidence of 99.0%
Auto detected paragraph type as unformatted
Auto detected formatting as textile
Running text through textile conversion…
Python function terminated unexpectedly
[Errno 2] No such file or directory: u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_32i79r\\’ (Error Code: 1)
Traceback (most recent call last):
File “site.py”, line 101, in main
File “site.py”, line 78, in run_entry_point
File “site-packages\calibre\utils\ipc\worker.py”, line 200, in main
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 43, in gui_convert_override
File “site-packages\calibre\gui2\convert\gui_conversion.py”, line 28, in gui_convert
File “site-packages\calibre\ebooks\conversion\plumber.py”, line 1110, in run
File “site-packages\calibre\customize\conversion.py”, line 246, in __call__
File “site-packages\calibre\ebooks\conversion\plugins\txt_input.py”, line 269, in convert
File “site-packages\calibre\ebooks\conversion\plugins\txt_input.py”, line 118, in fix_resources
IOError: [Errno 2] No such file or directory: u’C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\calibre_32i79r\\’
从错误提示中只能看出 Calibre 找不到下面这个目录:
C:\Users\ADMINI~1\AppData\Local\Temp\calibre_32i79r\
转换出错的 TXT 文件和能正常转换的 TXT 文件有什么不同吗?你转换的步骤是怎么样的?
您好,书名全汉字的,我保存到桌面的txt,拖到caliber,通过转换书籍–输出格式mobi,mobi文件类型是both—-确定,按照步骤进行操作,提示错误。或者我将文档发给你,你这边帮我看一下吗
可以,邮箱在页面底部“联系”处获取。
您好管理员,已经将文件给您的邮箱发送了请你帮我试试看能不能转换mobi,
管理员您好,请问有没有收到我发的邮件呢,可以解决吗
问题找到了,请参考《Calibre 转换 TXT 文件出现 Errno 21 错误的解决方法》这篇文章,解决方案在最后一段。