Tea and Toast — 14 of 31

Maria del Pangolin

Release 1

Chapter - Describing the Room

Section - Prominence-Ordered Lists

[trust me, you do not want to see the horrible kludges I had in place before I figured the following trick out]

To say A prepared list:

let T be indexed text;

now T is "[a prepared list]";

replace character number 1 in T with character number 1 in T in upper case;

say T.

To say The prepared list:

let T be indexed text;

now T is "[the prepared list]";

replace character number 1 in T with character number 1 in T in upper case;

say T.

To say A list of (OS - description of objects):

let T be indexed text;

now T is "[a list of OS]";

replace character number 1 in T with character number 1 in T in upper case;

say T.

To say A prominence-ordered (catalogue - list of things):

now everything is not marked for special listing;

repeat with the item running through the catalogue:

now the item is marked for special listing;

register things marked for listing;

repeat through the Table of Scored Listing:

now the assigned score entry is (0 - the prominence of the output entry); [rather than try to cajole Complex Listing into saying things with the biggest score first, since "invert scored listing" isn't really explained in the documentation, we just make the score negative so ascending order works.]

say "[A prepared list]".

To say The prominence-ordered (catalogue - list of things):

now everything is not marked for special listing;

repeat with the item running through the catalogue:

now the item is marked for special listing;

register things marked for listing;

repeat through the Table of Scored Listing:

now the assigned score entry is (0 - the prominence of the output entry); [as above]

say "[The prepared list]".