adl-jinx / Project_Alice

Formatting the book, in pages, chapters to put it into my reading app [DreamyTales]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

๐ŸŽฉ๐Ÿ‡๐Ÿ“š Project: Wonderland Text Formatter ๐Ÿ“š๐Ÿ‡๐ŸŽฉ

Project Gutenberg Ebook - Alice's Adventures

๐Ÿ Pythonized Prose

Transform any book into a Python string. We've chosen Lewis Carroll's "Alice in Wonderland" as our guide. The entire text goes through a Pythonic transformation, morphing into a 'formatted_book'.

๐ŸŽŸ๏ธ Chapter Extraction

We journey through the text, isolating and extracting "CHAPTER I". The first adventure from Wonderland is saved in 'chapterI.txt'.

๐Ÿ“œ Paragraph Partition

Structure is key. We split the chapter into separate paragraphs, creating a digital necklace of narrative pearls.

๐Ÿ“‘ Page Generation

Now the real magic! ๐ŸŽฉ๐Ÿ”ฎ Each paragraph becomes its own text file. The 'pages' variable is filled with 21 unique filenames, each housing a piece of the story.

๐Ÿ”“ Unlocking Versatility

This magic isn't just for Alice. Any book, any language, can be similarly transformed. A tool for bibliophiles worldwide!

This project is a joyful tumble down a rabbit hole of text transformation, page generation, and Pythonic magic. Join the adventure! ๐Ÿš€

*** START OF THIS PROJECT GUTENBERG EBOOK ALICEโ€™S ADVENTURES IN WONDERLAND ***

Note: the book comes from the Project Gutemberg. Project Gutenbergโ€™s Aliceโ€™s Adventures in Wonderland, by Lewis Carroll

This eBook is for the use of anyone anywhere at no cost and with almost no restrictions whatsoever. You may copy it, give it away or re-use it under the terms of the Project Gutenberg License included with this eBook or online at www.gutenberg.org

About

Formatting the book, in pages, chapters to put it into my reading app [DreamyTales]


Languages

Language:Python 47.0%Language:Rich Text Format 44.9%Language:Jupyter Notebook 8.2%