[code]Text Abbreviations by Hanon Ondricek begins here.
“Provides shorter text formatting substitutions.”
To say i: say “[italic type]”.
To say b: say “[bold type]”.
to say f: say “[fixed letter spacing]”.
to say v: say “[variable letter spacing]”.
to say p: say “[paragraph break]”.
to say l: say “[line break]”.
to say /: say “[roman type]”.
to say lb: say “[bracket]”.
to say rb: say “[close bracket]”.
Text Abbreviations ends here.
---- DOCUMENTATION ----
This tiny bit of code adds shortcuts for common text formatting to save typing out common formatting such as [bracket]paragraph break[close bracket] hundreds of times. The code goes within brackets inside quotation marks as a text substitution.
i is italic type.
b is bold type.
f is fixed letter spacing. (usually will display as Courier, or the preferred monospace font in an interpreter)
v is variable letter spacing. (normal variable with font, the default)
p is paragraph break
l is line break
/ is roman type (cancel formatting - standard text display)
lb is left bracket (bracket)- “[bracket]”
rb is right bracket (close bracket) - “[close bracket]”
*: “Formatting Test”
Include Text Abbreviations by Hanon Ondricek
Test Room is a room. "[one of]Type LOOK.[or]You are in the [b]Test Room[/]. It is [i]quite[/] deserted in here except for a screen reading [f]THIS ROOM IS UNIMPLEMENTED[l]-Do not even try to examine this screen-[/].[p][lb]You feel as if you are being [i]watched[/][rb]...[p]Here are your literal formatting codes, because I was too lazy to type 'bracket/close bracket' nine times in a row (yes, I know, [i]copy/paste[/]):[p][lb]i[rb][l][lb]b[rb][l][lb]f[rb][l][lb]v[rb][l][lb]p[rb][l][lb]l[rb][l][lb]/[rb][l][lb]lb[rb][l][lb]rb[rb][l][stopping]"
Test me with "look".
I’ve pursued that, but how about for GLUX. I’m trying to revise “Bronze” by Emily Short to run under Inform 7 v 6M62 to run in that environment and things like “say white letters” generates a compiler error. BSE explicitly indicates that such features don’t work for GLUX, and even Glulx Text Effects doesn’t provide a solution.
I’m not aware of any similar method to control colors in a standard Glulx project. The only thing that comes to mind would be something like Vorple, but that is a hosted solution and I don’t believe there’s a standalone interpreter that runs it for offline play. I haven’t done any in-depth research whether it’s possible to bind up a Vorple-game-website as a standalone app. vorple-if.com/
But if you don’t want to mess with Vorple, Glulx Text Effects can do the job, depending on the number of colours you want. You can define two custom styles if you only need two colours. If you need more, you can overwrite other styles if some features are not used in the game (for example, you can use the note style if the game don’t have score).
If you need colours in the status bar, I’ve written an extension that do the same thing as Glulx Text Effects, but for the status bar.
Thanks for the responses! I’m too new at this to take on another platform! I realize that Inform hasn’t had a major release in some time, but I sure hope that =someday= it will be enhanced to the point that it supports the full complement of functions contained in Emily Short’s “Basic Screen Effects”.