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> -t <title> -a <author> -l <language> -c <cover>

...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 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.5.1.tar.gz (68.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

txt2epub-1.5.1-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: txt2epub-1.5.1.tar.gz
  • Upload date:
  • Size: 68.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for txt2epub-1.5.1.tar.gz
Algorithm Hash digest
SHA256 be87bba35d6ec18838995d30670aed9b325b208b308d742e38789d1d91044268
MD5 f07082c653b697a88260f3584b387d41
BLAKE2b-256 bd784c9bb938f58ffc05a2c64f2e05dcb4331490653acb453786890224e006f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: txt2epub-1.5.1-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for txt2epub-1.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 95cc3df83a27340ef7b0226b5b5beaa2e025fddf7d1c489c49d42911128194eb
MD5 d225d69e2fcc732a63932e34b2f65885
BLAKE2b-256 8a69c656673f9eea91743cec70d91b4f31c6e075e32ab65eb57dabc5b7ad1276

See more details on using hashes here.

Supported by

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