Dialogue Punctuation

version 3 by Ron Newcomb

  • Home page
  • Beginning
  • Previous



  • Example: ** "Dialogue Test" - A working example of most every combination.

        "Dialogue Test"

        Include Dialogue Punctuation by Ron Newcomb. [Use dialogue punctuation debugging.]

        The podium is a room. "You are [player]." Allen, Bob, and Charlie are men in the podium. The player is Bob. Rule for printing the name of the player: say "[printed name of player]".

        Understand "r [number]" as reciting. Reciting is an action applying to one number.
        Carry out reciting 1: say "[player speaking]I shall comma-attribute this line[c says player][run paragraph on]".
        Carry out reciting 2: say "[player speaking]This is unattributed.[run paragraph on]".
        Carry out reciting 3: say "[player speaking]This is exclamatory unattributed![run paragraph on]".
        Carry out reciting 4: say "[player speaking]Now I will pick a random action to call.[run paragraph on]"; try regurgitating a random number from 1 to 3.
        Carry out reciting 5: say "[player speaking]I will attrib then call![run paragraph on][says player]"; try regurgitating 3. [ need the run paragraph on right after the ! ]
        Carry out reciting 6: say "[player speaking]I will call something comma-attributed.[run paragraph on]"; try regurgitating 1.
        Carry out reciting 7: say "[Player says]I will pre-attrib.[run paragraph on]".
        Carry out reciting 8: say "[Player says]I will pre-attrib then call.[run paragraph on]"; try regurgitating 2.
        Carry out reciting 9: say "[player speaking]I will call a pre-attributed subaction.[run paragraph on]"; try regurgitating 4.
        Carry out reciting 10: turn off dialogue punctuation; say "This narrative turned off the extension."
        Carry out reciting 11: turn off dialogue punctuation; say "This narrative turned off the extension and calls some sub-narrative per Inform's normal rules."; try regurgitating 5.
        Carry out reciting 12: turn off dialogue punctuation; say "This narrative turned off the extension and calls some sub-narrative as a single paragraph.[run paragraph on] "; try regurgitating 5.
        Carry out reciting 13: say "[Player speaking]I end with with non-comma attribution![run paragraph on][says player]".
        Carry out reciting 14: say "[Player speaking]Now I will segue through narrative for a beat.[run paragraph on][narrative]".
        Carry out reciting 15: say "This is a grounding beat, with the necessary RPO and sentence break.[run paragraph on] ".

        Regurgitating is an action applying to one number.
        Carry out regurgitating 1: say "[player speaking]This is from a comma-attributed sub-action[c says player][run paragraph on]".
        Carry out regurgitating 2: say "[player speaking]Boring sub-action.[run paragraph on]".
        Carry out regurgitating 3: say "[player speaking]Another boring sub-action.[run paragraph on]".
        Carry out regurgitating 4: say "[Player says]This is pre-attributed.[run paragraph on]".
        Carry out regurgitating 5: turn off dialogue punctuation; say "This is narrative from a sub-action. I am printed according to Inform's native rules about linebreaking between rulebooks."

        Understand "be [person]" as becoming. Becoming is an action [out of world] applying to one thing. Carry out becoming: now the player is the noun.

        Understand "note [text]" as noting. Noting is an action applying to one topic.

        Test me with "r 2. note Basic Unattrib / r 1. note Basic Attrib Comma Rep / r 3. r 2. note Basic Unattrib Connective / r 1. r 2. note Basic Middle Connective / r 1. r 2. r 1. note Middle Connective with Silenced Extension / r 1. r 2. be allen. r 1. note Basic Speaker Change / r 2. r 3. r 1. note Extension with Ending Attrib / r 4. note Basic Inter-Action Connective / r 6. r 1. r 5. note First Attrib from Subaction with Silenced Extension / r 5. r 5. r 5. note Attrib then Call, Silencing Extensions / r 1. be bob. be bob. r 1. note Spurious Linebreak Nonexistance / r 7. note Basic pre-attribution / r 8. note Pre-attributed followed by subaction / r 9. r 9. note Calling a pre-attributed subaction / be charlie. r 1. r 2. be allen. r 8. note Basic Speaker Change with a Pre-attrib / r 1. be bob. r 8. note Post-attrib followed by pre-attrib / r 13. note End with non-comma attrib / r 10. note Simple Narrative / r 1. r 10. r 1. note Narrative inside dialogue / r 10. r 1. r 10. note Dialogue inside narrative. / r 1. r 11. note Dialogue followed by lots of narrative / r 12. note Long narrative / r 1. r 14. r 15. r 9. note Dialogue with grounding beat. / r 1. r 14. r 15. note Ending with grounding beat.".