Skip to content

Complete Example

The following Practice Set combines metadata, formatted context, an image, answers, voices, and translation.

[uuid:11111111-2222-3333-4444-555555555555]
[id:example-cafe-practice]
[cat:cafe, conversation, vocabulary, example]
[context]
## At the Café
You are at a **busy café**.
Practice asking and answering common questions.
[yellow]Try to respond before viewing the answer.[/yellow]
![A café](/assets/es/examples/cafe.png)[size:60]
[/context]
- Buenos días. [ans-en-N: "Good morning."]
- ¿Qué desea? [front:waiter, back:customer, ans: "Quiero un café."]
- ¿Cuánto cuesta? [ans: "Cuesta tres euros."]
- ¿Cómo está? [v:H, ans: "Muy bien, gracias."]
- ¿Dónde está la mesa? [thash:]

This example demonstrates several layers of Kx Markdown.

[uuid:...]
[id:example-cafe-practice]
[cat:cafe, conversation, vocabulary, example]

identifies and categorizes the Practice Set.

The context uses:

## heading
**bold**
[yellow]highlight[/yellow]
![image](...)[size:60]

to provide supporting information without making it part of the practice lines.

[ans: "Quiero un café."]

provides an answer directly.

A language-specific answer can include both language and voice:

[ans-en-N: "Good morning."]
[front:waiter, back:customer]

identifies roles associated with the two sides.

[v:H]

selects a voice for the practice content.

[thash:]

requests translation of the front. After translation, Kx Toolbox stores the translation using the appropriate language-specific answer instruction and records the translation hash.