(cross-post from Tweecode / Twine google group)
Hello, I'm wondering if there's anyway to designate a section in a passage that should not be twine formatted, something like the <pre> tag in HTML. I'm making a story with a lot of ASCII art, and things like == and __ are triggering the formatting where I don't want them to. Is there a way to designate a section that should not be formatted?
Comments
That's three double-quotes, actually. And I don't think that the vanilla headers include the raw text formatter. The vanilla headers are based on an older version of the TiddlyWiki syntax, which I don't think has ever been updated. I'm pretty sure that SugarCube supports most of the current TiddlyWiki syntax though.
@agrilledfish:
If you're using one of the vanilla headers, you should be able to add it fairly easily though. I believe this will work, just add it to a script tagged passage:
If you want to style the resultant element, I believe the CSS selector " .passage code " will work.
As you can see, it works for this example (barring some possible CSS adjustments like line-height). So, can I ask why it didn't work for you?
Perhaps it has something to do with the level of detail.
Passage Stylesheet Result:
Thanks again for helping me figure it out!
Edit: It seems that a {{{one-liner}}} turns into a code tag instead of pre. Make sure to adjust your CSS accordingly.
With Japanese characters, it's not exactly ASCII art, at least not in the literal meaning of ASCII.
Here is what I am after;
[URL=http://s157.photobucket.com/user/Daza_07/media/Ascii_art_bad02.jpg.html][IMG]http://i157.photobucket.com/albums/t60/Daza_07/Ascii_art_bad02.jpg[/img][/URL]
This is how it's displayed in Twine as per instructions in this thread;
[URL=http://s157.photobucket.com/user/Daza_07/media/Ascii_art_bad01.jpg.html][IMG]http://i157.photobucket.com/albums/t60/Daza_07/Ascii_art_bad01.jpg[/img][/URL]
I am using Sugarcube btw, don't know if that makes much difference.
I didn't change the font in the stylesheet for this as I don't know what to change it too. The text was generated on the website I linked above, but as far as i can tell the fonts in the selection menu pertain to style of ascii text you want to display as a title.
Any ideas?
You might try some flavor of Courier. You might have to hand-replace the backslashes after the copy and paste. You might also have to work with the spacing a tad.
All this is said without reading the post, so take it with a grain of salt.
Mona
norMS PGothic
is ASCII compatible, they're both Shift JIS fonts. Technically speaking, he was doing Shift JIS art, not ASCII art.Try this (and only this):
@Sharpe your suggestion i tried first and it works, i change the font to Courier as your suggested and it displays it perfectly.
TheMadExile's example works fine too, probably easier to implement since you do not need a stylesheet.
This is neat. Cheers