Demo delle funzionalità di Vorple — 6 of 16

Juhana Leinonen

Release 1

Part 2 - Wikipedia

Release along with JavaScript "encyclopedia.js".

The Enciclopedia del Tutto (f) is in the Libreria. The description is "Questo libro dichiara di contenere tutta la conoscenza umana.

[italic type]Usa il comando CONSULTA seguito dall[']argomento che vuoi leggere nel libro.[roman type]"

Understand "libro" as the Enciclopedia del Tutto.

Instead of consulting the Enciclopedia del Tutto about when Vorple is supported:

place a block level element called "dictionary-entry";

execute JavaScript command "wikipedia_query('[escaped topic understood]')";

say run paragraph on;

block the user interface. [the Wikipedia script will unblock the UI]

After consulting the Enciclopedia del Tutto about when Vorple is not supported:

say "Trovi il capitolo corrispondente e leggi quanto riguarda [topic understood].".

Looking up is an action applying to one topic.

Understand "consulta [text]" as looking up.

Understand "leggi [text]" as looking up.

Instead of looking up when the player can see the Enciclopedia del Tutto:

try consulting the Enciclopedia del Tutto about the topic understood.

Test wikipedia with "consulta Pippo / consulta Oceano Atlantico / consulta Italia".