Skip to content

windilt/TXTtoEPUB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

TXTtoEPUB

A very simply python script to convert all TXT file in current folder to EPUB format with index.

It is updated from ljpkok / TXT_To_EPUB Major change 1, change multi-level index to one level index 2, change all TXT file in current folder 3, show progress 4, optimize the detection method of index

一个很简单的python程序,可以把当前目录下的所有TXT文件转成带目录的EPUB。是根据ljpkok / TXT_To_EPUB 修改而来,大部分代码是ChatGPT 4o mini生成的

Usage method

1, download

2, pip install ebooklib typing Pillow

3, put all TXT file in same folder of main.py

4, python ./main.py

使用方法

1, 下载main.py

2, pip install ebooklib typing Pillow

3, 把要转换的TXT文件放到main.py相同目录

4, python ./main.py

Tips

可以使用sendtokindle服务,把带目录的epub文件转换成带目录的azw3文件,在kindle查看 https://www.amazon.com/sendtokindle

About

simply python script to convert all TXT file in current folder to EPUB format

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages