使用C#以编程方式创建Kindle电子书? [英] Create Kindle book programmatically using C#?

查看:226
本文介绍了使用C#以编程方式创建Kindle电子书?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对一个项目有一个想法,但它需要能够在服务器上(最好是在.net中)动态创建Kindle电子书.

I have an idea for a project but it will require being able to create Kindle books on the fly on the server and preferably in .net.

但是我还没有找到可以执行此操作的库.我看到有epub库,但是这些库仍需要转换为azw.

I haven't found any libraries to do this however. I see that there are epub libraries, but these would then still need to be converted to azw.

这有可能吗?如果有的话,请问有人有指针吗?

Is this possible, and if so does anyone have any pointers please?

推荐答案

我正在做类似的事情.一种解决方法是:

I am doing something similar. One way to go about it is:

  1. 用您的书创建一个特殊格式的HTML文件(请参阅以下有关kindle格式指南的信息);和
  2. 使用命令行 Amazon KindleGen工具生成电子书.
  1. Create a specially formatted HTML file with your book (see info on kindle formatting guides below); and
  2. Use the command line Amazon KindleGen tool to generate the eBook.

关于创建诸如目录,在新页面上开始的章节以及可以在Kindle电子书中完成的其他事情,您可能需要阅读kindle格式指南,例如Amazon Kindle出版 准则.

As far as creating things like the Table of Contents, starting chapters on a new page, and other things that can be accomplished in a Kindle eBook, you may want to read a kindle formatting guide, such as the Amazon Kindle Publishing Guidelines.

此外,您可能希望第三方阅读有关该主题的书.我亲自阅读过Joshua Tallent撰写的Kindle Formatting和Steven Stevens撰写的How to Format Perfect Kindle Books,它们都包含使用HTML文件正确格式化Kindle书籍所需的信息.您可以从亚马逊获得这两本书. Tallent和Lewis的书籍面向可能从未手工创建HTML文件的作者,并通过该过程为您提供指导.

Also, you may want to read a book by a third party on the subject. I have personally read Kindle Formatting by Joshua Tallent and How to Format Perfect Kindle Books by Steven Lewis and they both contain the information needed for properly formatting a kindle book using an HTML file. You can obtain both books from Amazon. The Tallent and Lewis books are aimed at authors that may have never created an HTML file by hand and guide you thru the process.

这篇关于使用C#以编程方式创建Kindle电子书?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆