Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.
/ Tweext Public archive

Converts plain text (books or short stories, potentially) into Twee files for use in Twine

Notifications You must be signed in to change notification settings

frozenpandaman/Tweext

Repository files navigation

Tweext

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.)

Usage

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.

A note

Any texts uploaded to this repository are provided by Project Gutenberg and are in the public domain.

About

Converts plain text (books or short stories, potentially) into Twee files for use in Twine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages