Formatting Capture by Daniel Stelzer


This is a patch to Text Capture by Eric Eve that preserves basic formatting. With this extension, capturing text will preserve bold, italic, roman, fixed-width, and variable-width formatting, and output it again when saying the captured text.

It does this by overriding and its ilk to instead print an escape sequence when text capture is active: followed by a single letter indicating the type of formatting. When the captured text is printed, any escape codes encountered are passed to the "escape detection rules", which turn them back into the appropriate formatting.

"Echo Echo Echo"

Include Formatting Capture by Daniel Stelzer.

Mirror Gallery is a room. "Mirrors line the walls. You see every action reflected back at you many times over."

First before doing anything except looking:
     start capturing text.
First every turn:
     stop capturing text;
     say the captured text;
     say the captured text.

Instead of waiting: say "[bold type]Bold [italic type]Italic [roman type]Roman [fixed letter spacing]Fixed [variable letter spacing]Variable!".

Test me with "z".