tweecode / twee Goto Github PK
View Code? Open in Web Editor NEWTwee core
Twee core
twee > outfile.html generates this stack trace:
Traceback (most recent call last):
File "/Users/jjohnston/src/twee/twee", line 104, in
main(sys.argv[1:])
File "/Users/jjohnston/src/twee/twee", line 88, in main
print tw.toHtml()
TypeError: toHtml() takes at least 2 arguments (1 given)
I resolved this by changing line 87 to
print tw.toHtml(None, None)
It seems that even though the method toHtml() sets defaults for its arguments, python would see like to see two parameters passed in. Go figure.
We need to investigate whether Twee can be merged into a generation 2 Twine. This will reduce the work of maintaining the codebase.
There is a missing return:
{
label:function(){return"rewind to here"},
tooltip:function(){return"rewind the story"}, // <-- added this
activate:function(){state.rewindTo(this.passage)
}
test...
Setter-links don't seem to be processed properly by twee
.
The readme links to a dead domain.
untwee doesn't work on any of the files I've experimented with on mac due to these lines:
divs_re = re.compile(
r'<div id="storeArea"(.*)</html>',
re.DOTALL
)
divs = divs_re.search(source)
divs is always empty list, as the regex does not match anything.
Specifically, here is an example that cannot be 'untweed': https://www.brainygamer.com/files/lessons-from-the-lake_tyler_hampton.html
The <<back>> macro fix needs to be incorporated into the Twee Sugarcane and Jonah templates. But the header.html files need to refer to being created by Twee (not Twine). The version numbers need to be updated.
Mary DeMarco might be able to help with this. She's been wrking with the Twee code.
"M. C. DeMarco" [email protected]
I also applied the patch to Twee the same way and it worked (and Jonah
didn't). The trouble with Twee is that the Twee zip on the site
doesn't work for me, not even with Susan's twee fix that she posted to
the mailing list a while back. I had to patch my local working Twee
(that I got out of source control at some point) instead. Note that
the header.html file should be edited to say Twee instead of Twine in
the link if you're going to use it for a Twee patch.
The 'Restart Story' link (upper right corner) appears to fail when clicked. It is link to this:
Restart Story
In the sugarcane header.html, there is a Interface object with a similar method. This object does not appear to be present in jonah.
However, the tooltip "rewind to here" does work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.