In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to generate EPUB e-books on Fedora, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Method 1: ghostwriter and pandoc
The first method is to create an express version of the e-book file. It uses an Markdown editor called ghostwriter and a command-line document conversion tool called pandoc.
You can search and install them from the software center, or you can install them from the terminal. If you use a terminal to install them, run this command:
Sudo dnf install pandoc ghostwriter
For those who don't know what Markdown is, here's a brief explanation: it's a simple markup language created about 15 years ago. It uses simple syntax to format plain text. Markdown files can then be converted to many other document formats.
Ghostwriter
For tools, ghostwriter is a cross-platform, easy-to-use Markdown editor. Pandoc is a very easy-to-use document conversion tool that can handle hundreds of different formats.
To create your ebook, open ghostwriter and start writing your document. If you have used Markdown before, you may be used to placing a # symbol in front of the "title 1" of the document as the title. Like this: # My Man Jeeves. However, pandoc will not recognize it as the title and will place a large "UNTITLED" at the top of your ebook. Instead, put a% in front of your title as the title. For example,% My Man Jeeves. Chapters should be formatted as "title 2", for example, # # Leave It to Jeeves. If you have subsections, use title 3 (#).
When your document is complete, click File-> Export (or press Ctrl+E). In the dialog box, select among several Markdown converters. If this is the first time you have used ghostwriter, the default is Sundown converter. From the dialog box, select pandoc. Next, click Export. Now your EPUB file has been created.
Ghostwriter Export Dialog Box
Note: if you get an error related to pandoc, turn off Smart typesetting and try again.
Method 2: calibre
If you want a more perfect e-book, that's what you're looking for. It takes more steps, but it's worth it.
First, install an application called calibre. Calibre is not only an e-book reader, it is also an e-book manager system. You can install it from the software center or from the terminal:
Sudo dnf install calibre
In this method, you can write your document in LibreOffice, ghostwriter, or any other editor of your choice. Make sure the title of the book is formatted as "title 1", the chapter is formatted as "title 2", and the subchapters are formatted as "title 3".
Next, export your document to a HTML file.
Now add the file to calibre. Open calibre and click add Book. Calibre takes a few seconds to add files.
After the file is imported, edit the file's metadata by clicking the Edit metadata button. Here you can fill in the title of the book and the name of the author. You can also upload a cover image (if you have one), or calibre will generate a cover for you.
Next, click the convert Book button. In the new dialog box, select the layout tab in the Interface and appearance section. Check the "remove blank lines between segments" option. This will indent each paragraph more strictly.
Now, set up the directory. Select the content Catalog section. There are three options to pay attention to: first-level directory, second-level directory, and third-level directory. Click the magic wand button at the end of each option. In the new dialog box, select the HTML tag that applies to the catalog table entry. For example, select "H2" for the first-level directory.
Next, tell calibre to include the content directory. Select the "output EPUB" section and check "insert inline directory". Click OK to create the epub file.
The above is all the contents of the article "how to generate EPUB e-books on Fedora". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.