A utility for converting plain text files (short stories, books, etc.) into Twee files, for use with Twine, a UI for creating hypertext stories.
The basic Twee story format can be seen here.
I'll probably rename this project at some point (or at the very least, remove this line regarding the potential renaming.)
Run the following from the command line:
python tweext.py your_filename.txt
This will output your_filename.tw
which can then be imported, read, and compiled by Twine/Twee. Currently, the last word of every paragraph is converted into a link leading to the next paragraph. In the future, I hope to incorporate synctactic category identification (part-of-speech tagging) to create a better, smarter, more dynamic linking system.
The twee utility can compile from the command line (an easier, more automatic alternative to using the Twine application/GUI), so I plan to integrate this in the future as well.
An installation of Python 2.6.x or 2.7.x is required.
Any texts uploaded to this repository are provided by Project Gutenberg and are in the public domain.