一千萬個為什麽

搜索

如何用章節制作基本電子書

基本上,我想要做的是將每個在線課本(我已經處理過)下載到每一頁作為一個.txt文件,這樣我就可以在我的電子閱讀器而不是我的電腦上閱讀我的課本了。無論如何,所以我找不到任何好的教程/我不知道如何制作由純文本和章節組成的基本電子書,這就是我來到這裏的原因!

TL; DR:我想將每個頁面的基本電子書制作成簡單文本和章節。

最佳答案

Pandoc can convert from and to a large number of formats:

  • It can read plain text, Markdown, CommonMark, PHP Markdown Extra, GitHub-Flavored Markdown, MultiMarkdown, and (subsets of) Textile, reStructuredText, HTML, LaTeX, MediaWiki markup, TWiki markup, Haddock markup, OPML, Emacs Org mode, DocBook, txt2tags, EPUB, ODT and Word docx
  • it can write plain text, Markdown, CommonMark, PHP Markdown Extra, GitHub-Flavored Markdown, MultiMarkdown, reStructuredText, XHTML, HTML5, LaTeX (including beamer slide shows), ConTeXt, RTF, OPML, DocBook, OpenDocument, ODT, Word docx, GNU Texinfo, MediaWiki markup, DokuWiki markup, ZimWiki markup, Haddock markup, EPUB (v2 or v3), FictionBook2, Textile, groff man pages, Emacs Org mode, AsciiDoc, InDesign ICML, TEI Simple, and Slidy, Slideous, DZSlides, reveal.js or S5 HTML slide shows. It can also produce PDF output on systems where LaTeX, ConTeXt, or wkhtmltopdf is installed.
  • It can create epub files with chapters see here for instructions.
  • It runs on Linux, Windows & OS-X
  • It is free, gratis & open source
  • You can even point it at a URL and it will do a reasonable job of converting the online resource into an epub.

如果準備好多花一點時間準備,那麽python Sphinx 文檔生成器可以從許多輸入格式(包括純文本)生成EPUB格式,組織成章節。

  • Also free, gratis & open source

轉載註明原文: 如何用章節制作基本電子書