{"id":20340836,"url":"https://github.com/taylor-eos/txt-to-epub","last_synced_at":"2026-05-14T07:33:49.601Z","repository":{"id":259982505,"uuid":"812537796","full_name":"Taylor-eOS/txt-to-epub","owner":"Taylor-eOS","description":"Converts a text input into an EPUB","archived":false,"fork":false,"pushed_at":"2025-02-16T00:35:26.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T01:21:46.494Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Taylor-eOS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-09T07:17:21.000Z","updated_at":"2025-02-16T00:35:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b81cbd5a-b53a-4be9-ace3-2dd15c0a72be","html_url":"https://github.com/Taylor-eOS/txt-to-epub","commit_stats":null,"previous_names":["taylor-eos/txt-to-epub"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taylor-eOS%2Ftxt-to-epub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taylor-eOS%2Ftxt-to-epub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taylor-eOS%2Ftxt-to-epub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Taylor-eOS%2Ftxt-to-epub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Taylor-eOS","download_url":"https://codeload.github.com/Taylor-eOS/txt-to-epub/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241867692,"owners_count":20033816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T21:23:58.717Z","updated_at":"2026-05-14T07:33:44.561Z","avatar_url":"https://github.com/Taylor-eOS.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"This script takes blocks of text from an input TXT file and wraps them into EPUB. It is a lightweight tool, written by an amateur, with a chatbot. \nThe script structures chapters and adds metadata and a cover image.\\\nThe current state of the project is that it works, but doesn't nest chapters or superscript footnote references. The resulting files will be readable, but a little crude.\n\n### How to Use `txt-to-epub`\n1. **Pre-process the Text**: The input needs to be in a particular format, which can be extracted from PDF using [maual-classifier](https://github.com/Taylor-eOS/manual-classifier).\n\n2. Before running the main script, use `pre_processing.py` to combine the blocks properly. (This was tested on particular files, and might need adaptation with some input formats.)\n   ```bash\n   python pre_processing.py input.txt\n   ```\n   This will generate a cleaned text file ready for EPUB conversion.\n\n3. Edit `metadata.json` to contain your author and title data.\n\n4. **Generate the EPUB**: Run `create_epub.py` to convert your cleaned text file to EPUB format. If you plae a cover image (`cover.jpg`) in the folder, it will be used.\n   ```bash\n   python create_epub.py cleaned_input.txt metadata.json\n   ```\nThe script should output a properly formatted EPUB file named after the book title, that can be read on e-readers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylor-eos%2Ftxt-to-epub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaylor-eos%2Ftxt-to-epub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaylor-eos%2Ftxt-to-epub/lists"}