Speaking of Bisquixe limits, the hyperlink syntax shown in the latest couple posts looks very clunky. Could someone with a working Bisquixe check if this code works real quick? (It’s an adaptation of Inline Hyperlinks to work with Simple Multimedia Effects.)
Include Simple Multimedia Effects for v10 by Mathbrush.
Include version 1 of Formatting Capture by Daniel Stelzer.
The inline hyperlinked command is a text variable.
To begin link:
if expanding text for comparison purposes, stop;
now the inline hyperlinked command is "";
start capturing text.
To say link command -- beginning say_link -- running on:
begin link.
To say link -- beginning say_link -- running on:
begin link.
To say l -- beginning say_link -- running on:
begin link.
To continue link:
if expanding text for comparison purposes, stop;
stop capturing text;
now the inline hyperlinked command is the substituted form of "[captured text without formatting]";
start capturing text.
To say with text -- continuing say_link -- running on:
continue link.
To say with -- continuing say_link -- running on:
continue link.
To say = -- continuing say_link -- running on:
continue link.
To end link:
if expanding text for comparison purposes, stop;
stop capturing text;
if the inline hyperlinked command is empty:
now the inline hyperlinked command is the substituted form of "[captured text without formatting]";
hyperlink "[captured text]" as the inline hyperlinked command.
To say end link -- ending say_link -- running on:
end link.
To say /link -- ending say_link -- running on:
end link.
To say /l -- ending say_link -- running on:
end link.
Lab is a room. "You can [l]jump[=]jump [italic type]around[roman type][/l] if you want. Or just [link][bold type]wait[roman type][/link].".
It works in my local interpreter, but the point is to work with Bisquixe! Specifically:
- There should be italics inside the first link and bold inside the second link
- The first link should expand to “jump” and the second to “wait”
Inform 10 version of Formatting Capture: Formatting Capture-v1.i7x (7.7 KB)
The point of this is to add a more convenient syntax for links, like the one Dialog uses: [link]examine the dresser[/link] or [link]EXAMINE THE DRESSER[with text]examine it[end link]. You can also shorten that to [l]EXAMINE THE DRESSER[=]examine it[/l] and so on. It’s not perfect—in particular, if you set a Bisquixe inline style inside the text of a link, that style change may get lost—but standard Inform bold/italic/etc formatting will be fine. (And that problem could be fixed by an update to Formatting Capture.)
If it works, I’ll put it in a new Inline Hyperlinks for Bisquixe extension and throw it in the repository. Since this is pure I7 code, it’ll work the same for I10 and I9.