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.2.tar.gz
.
File metadata
- Download URL: txt2epub-1.1.2.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 | 06e15757e7100587ced2e33ba6c9940b06a3785eec0d42e802c60f071b9780af |
|
MD5 | 18d7bb0dd9a5fe9a93fda58cc8300e7f |
|
BLAKE2b-256 | 01723a1399615824fe68026a1adf6100c236389810d70a29cdaf9a16713c5c6d |
File details
Details for the file txt2epub-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: txt2epub-1.1.2-py3-none-any.whl
- Upload date:
- Size: 12.7 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 | 08ab18d43bd873ae050c19664bf4dcb13572fd6d4b02412d473f31e0a980644c |
|
MD5 | 257046625ffc4369ba03c79d26757419 |
|
BLAKE2b-256 | dd7a615a5e0b49cbf4122e2481c839f126c6aff721ebb634823ca11e728f4df0 |