A simple TXT to ePub converter
Project description
TXT2EPUB
A simple tool for converting TXT books into ePub.
Installation
You'll first need to have Python3 and Pip installed. If you're using Windows, then the default Python installer will come with Pip. If you're using Linux, you may need to install an extra package like python3-pip
. The exact package name depends on your distro.
Then, execute the following command to install TXT2EPUB.
pip install txt2epub
Usage
You may convert a file from the command line:
txt2epub convert -i <input> -o <output>
...or using the GUI:
txt2epub gui
Chapter Detection
This program detects the book chapters and chapter titles following the standard TXT book format:
- Chapters are separated by three two new lines (i.e.,
\n\n\n
) - The first line in a new chapter is the chapter's title.
For example, in the text below, there are two chapters with titles "Chapter 1" and "Chapter 2."
Chapter 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at sapien ante.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae.
Chapter 2
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec at sapien ante.
Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia curae.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file txt2epub-1.1.0.tar.gz
.
File metadata
- Download URL: txt2epub-1.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8640b8054a1b4920e3c9d60245cf3ce6efe155ee4d510d7a729ee2e7f6deec47 |
|
MD5 | 0ad7126b3fda7b5428232d13b0ab55d4 |
|
BLAKE2b-256 | d79aa53647d2fe493249c34394f23de255c25ea513070f2f81222bb0681dc675 |
File details
Details for the file txt2epub-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: txt2epub-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 649d9d25bfdca449e00835a9d5d72a86c1bdb55e0af457392c58a3185b34c2ba |
|
MD5 | cc6e89c1d2bc2b84e72f47ba1eb64a16 |
|
BLAKE2b-256 | 0eb1af91bc0e27316084aa83d4a34ea097fce1715f7093d386a7e4b88ced4867 |