批量转换epub书籍为mobi电子书

更新时间:2023-05-25 19:53:12 阅读: 评论:0

婚礼祝福-幸福是被你需要

批量转换epub书籍为mobi电子书
2023年5月25日发(作者:净影寺)

批量转换epub书籍为mobi电⼦书

电脑上有不少的EPUB格式的电⼦书,想⼀次性把它全转为MOBI格式,试过Calibre,那速度慢得真是叫⼈难以忍受,⽽发邮件给

Amazon,对于这么多的⽂件想想都是噩梦。好在Amazon发布了新版的制作kindle电⼦书的命令⾏⼯具:KindleGen 1.2,试了⼀下转换速

度相当快,只是不⽀持通配符,于是⾃⼰写了个简单的批处理,这样我们便可以批量制作mobi电⼦书了。

Windows版:

1、下载⽂件到你的电脑。

下载地址: 115盘

2、解压到任意⽬录,⽐⽅说:D:KindleGen

3、下载批处理⽂件

或者⾃⼰拷贝下⾯这段代码存为BAT⽂件()

@echo off

@title kindlegen epub转换mobi

REM /

REM 设置存放转换好的MOBI电⼦书的⽬录。由于kindlegen只能将转好的书放在源⽂件同⼀⽬录下,

REM 所以为⽅便管理,需要⾃⼰移到新的位置

t mobidir=..mobi

REM 设置kindlegen的解压后的位置,⽐⽅说C:KindleGen

t path=D:GreenSoftkindlegen_win32_v1.2

for %%i in (*.epub) do kindlegen "%%i"

if not exist %mobidir% md %mobidir%

if exist *.mobi move *.mobi %mobidir%

pau

4、根据⾃⼰的情况修改下载好的批处理⽂件

5、将需要转换的epub书籍拷贝到⼀个⾃⼰认识⽅便的⽂件夹内,⽐⽅说D:epub

6、将修改好的批处理⽂件也拷贝到上⾯提到的epub⽂件夹内

7、双击运⾏批处理⽂件,过⼀会就可以将⽂件夹内所有EPUB书籍转为MOBI格式了

注意:kindlegen对EPUB⾥的META DATA要求⽐较⾼,有些格式不严谨的EPUB会转换失败,所以最后的选择还是⽤calibre来转换,或

者发邮件给Amazon帮你转。

如果需要查看kindlegen的使⽤帮助的话,直接在CMD命令⾏⾥运⾏kindlegen,如下所⽰:

D:GreenSoftkindlegen_win32_v1.2>kindlegen

**************************************************

* kindlegen(Windows) V1.2 build 33307 *

* A command line e-book compiler *

* Copyright 2011 *

**************************************************

Usage : kindlegen /.htm/.html/.epub [-c0 or -c1 or c2] [-verbo] [-rebuild] [-onlydeps or -nodeps] [-western] [-

o ]

Options:

-c0: no compression

-c1: standard DOC compression

-c2: Kindle huffdic compression

-o : Specifies the output file name. Output file will be created in the same directory as that of input file.

name> should not contain directory path.

-verbo: verbo output

-rebuild: rebuilds all dependencies

-onlydeps: build only needed dependencies

-nodeps: do not check/build dependencies

-western: force build of Windows-1252 book

-releanotes: display relea notes

-gif: images are converted to GIF format (no JPEG in the book)

8、从帮助我们可以看到kindlegen⽀持多种格式⽂件的转换,⼤家只需要依葫芦画瓢就好了。

9、另外可以⽤MobiPocket ebook Reader对转换好的MOBI⽂件进⾏预览

我在这⾥只是抛砖引⽟,希望引⾼⼿出来做出⼀些更好⽤的脚本来。

选用育留-双赢的英文

批量转换epub书籍为mobi电子书

本文发布于:2023-05-25 19:53:08,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/zhishi/a/168501559153931.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

本文word下载地址:批量转换epub书籍为mobi电子书.doc

本文 PDF 下载地址:批量转换epub书籍为mobi电子书.pdf

标签:mobi文件
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 实用文体写作网旗下知识大全大全栏目是一个全百科类宝库! 优秀范文|法律文书|专利查询|