Skip to main content

A simple TXT to ePub converter

Project description

TXT2EPUB

中文说明

A simple tool for converting TXT books into ePub.

image

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

txt2epub-1.0.4.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

txt2epub-1.0.4-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file txt2epub-1.0.4.tar.gz.

File metadata

  • Download URL: txt2epub-1.0.4.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for txt2epub-1.0.4.tar.gz
Algorithm Hash digest
SHA256 2d51d57bbde6b2c4294a2f690a8c9b7f9da1835483985c8368dd58c84c32934a
MD5 488fa9b7dff0894d022879a976f0a61e
BLAKE2b-256 210d3f01b005efa04470fb66bf2751b9bfc3af808905497ca2f1a3a1339f2496

See more details on using hashes here.

File details

Details for the file txt2epub-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: txt2epub-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for txt2epub-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d9756b58975f5255da54fdb5a9e640b5bc21b9f11d05837f32c9f3523ca47488
MD5 1f053cbc20d79ef772f3ded50dcc053e
BLAKE2b-256 234b911d1dfb568cdb125d5f6b8d8329fe363e4199ffd4378d0652ee02787afa

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page