Storybook
Here’s a very simple template for customizing a font, a color scheme, and creating a custom class for printing a larger first letter (after the style of storybooks). Note that this font will not be legible for everyone, even though it’s displayed with high contrast and large character size.
For that reason, consider this a ready example to build upon rather than something to drop in a work, choosing font and colors that complement a specific work.
This example also demonstrates the use of spacing and substitution to create “tabs” for text layout.
Note that “.BufferLine; white-space; pre-wrap” will be needed to preserve the tab stops. I have added it to my default CSS for occasions such as this.
Code
ab is a room.
include simple multimedia effects for v10 by mathbrush.
include basic screen effects by emily short.
release along with a "bisquixe" interpreter.
this is the initial window setup rule:
import-google-fonts "Macondo";
css-set-fast ".BufferLine; white-space; pre-wrap";
css-set-fast ".BufferWindow; background; #F1E9D2";
css-set-fast ".BufferWindow; font-family; Macondo, sans-serif";
css-set-fast ".BufferWindow; font-size; 26px";
css-set-fast ".GridWindow; background; #2b1d0e";
css-set-fast ".GridWindow; color; #faf4ef";
css-set-fast ".GridWindow; font-size; 24px";
css-set-fast ".interpretercredit; display; none";
this is the first letter rule:
css-set-fast ".Style_letter; font-family; inherit";
css-set-fast ".Style_letter; font-size; 65px";
css-set-fast ".Style_letter; line-height; 65px";
to say letter:
set-any-class "letter";
when play begins:
follow the initial window setup rule;
follow the first letter rule;
say portrait;
wait for any key;
to say portrait:
say "[letter]O[roman type]nce upon a time and a very good time it was there was a moocow coming down along the road and this moocow that was coming down along the road met a nicens little boy named baby tuckoo....
His father told him that story: his father looked at him through a glass: he had a hairy face.
He was baby tuckoo. The moocow came down the road where Betty Byrne lived: she sold lemon platt.
[fixed letter spacing] [variable letter spacing]O, the wild rose blossoms
[line break][fixed letter spacing] [variable letter spacing]On the little green place.
He sang that song. That was his song.
[fixed letter spacing] [variable letter spacing]O, the green wothe botheth.
When you wet the bed, first it is warm then it gets cold. His mother put on the oilsheet. That had the queer smell.
His mother had a nicer smell than his father. She played on the piano the sailor’s hornpipe for him to dance. He danced:
[fixed letter spacing] [variable letter spacing]Tralala lala,
[line break][fixed letter spacing] [variable letter spacing]Tralala tralaladdy,
[line break][fixed letter spacing] [variable letter spacing]Tralala lala,
[line break][fixed letter spacing] [variable letter spacing]Tralala lala."
