Package: txt2ebook
txt2ebookA console tool to convert txt file to different ebook formats.InstallationStable version From PyPI:python3 -m pip install txt2ebookUpgrade to latest stable version:python3 -m pip install txt2ebook --upgradeLatest development version from GitHub:python3 -m pip install -e git+https://github.com/kianmeng/txt2ebook.gitUsageShowing help message of command-line options:txt2ebook --helpusage: txt2ebook [-of OUTPUT_FOLDER] [-p] [-f {epub,gmi,md,pdf,txt,typ}][-t TITLE] [-l LANGUAGE] [-a AUTHOR] [-tr TRANSLATOR][-c IMAGE_FILENAME] [-w WIDTH] [-ff FILENAME_FORMAT][-ps SEPARATOR] [-pz PAGE_SIZE] [-rd REGEX] [-rvc REGEX][-rv REGEX] [-rc REGEX] [-rt REGEX] [-ra REGEX] [-rl REGEX][-rr REGEX REGEX] [-et {clean,condense,noindent}] [-vp] [-tp][-sp] [-ss] [-toc] [-hn] [-fw] [-rw] [-ow] [-op] [-q] [-v][-y] [-d] [-h] [-V]TXT_FILENAME [EBOOK_FILENAME]txt2ebook/tte is a cli tool to convert txt file to ebook format.website: https://github.com/kianmeng/txt2ebookchangelog: https://github.com/kianmeng/txt2ebook/blob/master/CHANGELOG.mdissues: https://github.com/kianmeng/txt2ebook/issuespositional arguments:TXT_FILENAMEsource text filenameEBOOK_FILENAMEconverted ebook filename (default: 'TXT_FILENAME.epub')optional arguments:-of OUTPUT_FOLDER, --output-folder OUTPUT_FOLDERset default output folder (default: 'output')-p, --purgeremove converted ebooks specified by --output-folder option (default: 'False')-f {epub,gmi,md,pdf,txt,typ}, --format {epub,gmi,md,pdf,txt,typ}ebook format (default: 'epub')-t TITLE, --title TITLEtitle of the ebook (default: 'None')-l LANGUAGE, --language LANGUAGElanguage of the ebook (default: 'None')-a AUTHOR, --author AUTHORauthor of the ebook (default: '[]')-tr TRANSLATOR, --translator TRANSLATORtranslator of the ebook (default: '[]')-ff FILENAME_FORMAT, --filename-format FILENAME_FORMATthe output filename format (default: TXT_FILENAME [EBOOK_FILENAME])1 - title_authors.EBOOK_EXTENSION2 - authors_title.EBOOK_EXTENSION-ps SEPARATOR, --paragraph_separator SEPARATORparagraph separator (default: '\n\n')-rd REGEX, --regex-delete REGEXregex to delete word or phrase (default: '[]')-rvc REGEX, --regex-volume-chapter REGEXregex to parse volume and chapter header (default: by LANGUAGE)-rv REGEX, --regex-volume REGEXregex to parse volume header (default: by LANGUAGE)-rc REGEX, --regex-chapter REGEXregex to parse chapter header (default: by LANGUAGE)-rt REGEX, --regex-title REGEXregex to parse title of the book (default: by LANGUAGE)-ra REGEX, --regex-author REGEXregex to parse author of the book (default: by LANGUAGE)-rl REGEX, --regex-delete-line REGEXregex to delete whole line (default: '[]')-rr REGEX REGEX, --regex-replace REGEX REGEXregex to search and replace (default: '[]')-tp, --test-parsingtest parsing for volume/chapter header-ss, --sort-volume-and-chaptershort volume and chapter-rw, --raise-on-warningraise exception and stop parsing upon warning-ow, --overwriteoverwrite massaged TXT_FILENAME-op, --openopen the generated file using default program-q, --quietsuppress all logging-v, --verboseshow verbosity of debugging log, use -vv, -vvv for more details-y, --yesyes to prompt-d, --debugshow debugging log and stacktrace-h, --helpshow this help message and exit-V, --versionshow program's version number and exit--format epub:-c IMAGE_FILENAME, --cover IMAGE_FILENAMEcover of the ebook-et {clean,condense,noindent}, --epub-template {clean,condense,noindent}CSS template for epub ebook (default: 'clean')-vp, --volume-pagegenerate each volume as separate page--format pdf:-pz PAGE_SIZE, --page-size PAGE_SIZEpage size of the ebook (default: 'a5')--format txt:-w WIDTH, --width WIDTHwidth for line wrapping-sp, --split-volume-and-chaptersplit volume or chapter into separate file and ignore the --overwrite option-toc, --table-of-contentadd table of content--language zh-cn / --language zh-tw:-hn, --header-numberconvert section header from words to numbers-fw, --fullwidthconvert ASCII character from halfwidth to fullwidthConvert a txt file into epub:txt2ebook ebook.txtCopyright and LicenseCopyright (c) 2021,2022,2023,2024 Kian-Meng AngThis program is free software: you can redistribute it and/or modify it under
the terms of the GNU Affero General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.You should have received a copy of the GNU Affero General Public License along
with this program. If not, seehttps://www.gnu.org/licenses/.The fish logo used in the documentation generated by Sphinx is a public domain
drawing of Troschel's parrotfish (Chlorurus troschelii Var. A.) fromhttps://commons.wikimedia.org/entity/M18506436.