Keyword Interface

version 8 by Aaron Reed

  • Home page
  • Beginning
  • Previous
  • Next



  • Section - Z-Machine Style Definitions (for Z-machine only)

    The keyword emphases are keyword-red, keyword-green, keyword-yellow, keyword-blue, keyword-magenta, keyword-cyan, keyword-white, keyword-bold-style, keyword-italics-style, keyword-fixedwidth-style, and keyword-no-style.

    The style of object-word is usually keyword-blue. The style of direction-word is usually keyword-magenta. The style of topic-word is usually keyword-red. [These are really the only three z-code colors that are readable on a white background.] The style of parser-word is usually keyword-italics-style.

    To set the text style for (val - a keyword emphasis):
        if val is keyword-red:
            say red letters;
            say bold type;
        else if val is keyword-green:
            say green letters;
            say bold type;
        else if val is keyword-yellow:
            say yellow letters;
            say bold type;
        else if val is keyword-blue:
            say blue letters;
            say bold type;
        else if val is keyword-magenta:
            say magenta letters;
            say bold type;
        else if val is keyword-cyan:
            say cyan letters;
            say bold type;
        else if val is keyword-white:
            say white letters;
            say bold type;
        else if val is keyword-bold-style:
            say black letters;
            say bold type;
        else if val is keyword-italics-style:
            say italic type;
        else if val is keyword-fixedwidth-style:
            say fixed letter spacing;
        else if val is keyword-no-style:
            do nothing.

    To reset styles with (val - a keyword emphasis):
        if val is keyword-fixedwidth-style:
            say variable letter spacing;
        else:
            say roman type;
            say default letters;
        if we-are-parser-speaking is true, say as the parser.