Skip to reading
At the Clockmaker’s Bench: Illustrated Parser & Cursor Workshop

Adapt the words to another language

Edition 0.86.4.9

The 19-page 0.86.4.9 revision supersedes the supplied 18-page 0.86.4.8 Illustrated Workshop. The original cover and early lessons retain their 0.86.4.8 labels. Opening and validation instructions are revised, and page 19 adds an export check. The earlier PDF is retained for reference and excluded from current guide/page totals.

Download PDFView illustrations

Keep the action and the clock. Change the words the player can use to reach them.

18 The workshop’s English vocabulary. The question is shown for ambiguous commands. Filler words and pronouns affect how the sentence is read.

Give the clock a Spanish command#

1. Find Grandfather clock with Search project. In its General Inspector, add reloj to Synonyms, keeping clock. Apply the change. A synonym gives the existing object another name.

2. Add a grammar rule with ID mira_objeto, pattern mira (el) [target:entity], and Rule language (blank for any) set to es. Set Response to verb, Verb to look, and Target capture to target. The optional (el) makes both forms possible.

3. In Command Preview, set Preview room to room_01 and Language to es. Parse mira el reloj. Look for mira_objeto and clock. Switch the preview language to en and try the same sentence. The Spanish-only rule is now out of scope.

19 The Spanish preview resolves to mira_objeto with the clock synonym and rule from this page.

To change the wording of the two-key question, set Vocabulary language to the language you are editing and enter your text in Clarification question. Decimal separator applies to number captures. Pronoun fields tell the parser which words can stand for an object or person.

This rule still calls the same Look action. If the clock answers in English, the matching worked. Translate the response text separately to give the player a Spanish reply as well.

Page 12 of 19Permalink
Go to page