https://github.com/mcjones/twinespacer
A python script that uses graphviz to layout a Twine story into something ideally nice looking
https://github.com/mcjones/twinespacer
python twine
Last synced: 9 days ago
JSON representation
A python script that uses graphviz to layout a Twine story into something ideally nice looking
- Host: GitHub
- URL: https://github.com/mcjones/twinespacer
- Owner: McJones
- License: mit
- Created: 2017-05-02T12:54:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-02T13:14:34.000Z (over 8 years ago)
- Last Synced: 2025-10-12T02:07:43.097Z (9 days ago)
- Topics: python, twine
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# twinespacer
A python script that uses graphviz to layout a Twine 2 story into something ideally nice looking.
This is by no means a perfect system and something well worth fiddling about, especially with the layout engine and `spacing` variable in the python script## Use
`python twinespacer.py originalTwineStory newTwineStory layoutStyle`
The layout style is optional, and matches the engines from graphviz, will default to the dot engine if none is provided.
**back up your twine files before using this program, I am a bad python programmer and may destroy your story**
## Installation
- Python 2.7 (3 should be fine though)
- BeautifulSoup: `pip install beautifulsoup4`
- graphviz: (on macOS the easiest way is to use brew, no idea on anything else)
- graphviz python library: `pip install graphviz`Once you've got all these installed, running the script should work