textadventures / squiffy

a tool for creating interactive fiction
MIT License
158 stars 37 forks source link

Non-ASCII passage names #52

Closed Oreolek closed 9 years ago

Oreolek commented 9 years ago

Would be nice to allow passages named in Unicode, not ASCII only.

alexwarren commented 9 years ago

In theory this should already work properly, but something is making it not work all the time.

I just created this quick example http://docs.textadventures.co.uk/squiffy/scratchpad/?gistid=c5ddaf96e71ad6d7180d&filename=unicode.squiffy

The Unicode "shrug" and Chinese characters don't work. The emoji does though. I'll see if I can work out what's happening. If you have other examples please let me know.

alexwarren commented 9 years ago

Actually the Chinese characters do work - I just mis-pasted the section header in the example. And the shrug example behaves strangely because of the backslash character, so I'll fix that.

So it looks like generally Unicode characters work properly, so please let me know which ones don't!

Oreolek commented 9 years ago

Sorry, looks like I just mispasted my code too.