Skip to the text
Parseh
پParseh guide The studio›Exercises in the editor
On this page

Exercises in the editor

An exercise is a block of the document’s Markdown, from an :::exercise <type> line to a closing ::: — twelve kinds of activity, three kinds of flashcard and the follow-up chain, answered on the document’s page and studied in the exercise decks. You can type one by hand (the syntax of every kind is in Writing exercises), but the editor’s Exercises ▾ menu writes them for you, reads them back, and brings them in from elsewhere:

Add exercise…
— a form for a new exercise of any kind.
Generate with LLM…
— a prompt that asks a language model to add exercises to this page.
Load from a deck…
— an exercise out of one of your exercise decks.

The menu closes as soon as you pick an entry.

1. Add exercise…#

Add exercise… opens a grid of the activities a learner can be given, each with a line saying what it is:

EntryType
Fill in blanksfill-blanks
Order sentencesorder-sentences
Construct a sentenceconstruct-sentence
Match translationsmatch-translations
Match oppositesmatch-opposites
Match definitionsmatch-definitions
Yes / No questionsyes-no
True / False questionstrue-false
Choose one answersingle-choice
Choose all correct answerschoose-all
Identify the incorrect partincorrect-part
Odd one outodd-one-out
Embedded vocabulary flashcardflashcard, card-type: vocab
Embedded opposites flashcardflashcard, card-type: opposites
Embedded Jolly flashcardflashcard, card-type: jolly
Follow-up questionsfollow-up

Pick one, and the form for that kind opens. You never have to know the Markdown it writes: the form asks for what the learner will see.

The form#

The form is in sections, from the top:

  • Instructions (every kind but a flashcard): Prompt shown to the learner, with the usual instruction of that kind as its placeholder, and Writing direction of the activity — Automatic, Use Persian direction (the document’s target), Right to left or Left to right.

  • The activity itself, in the words of its kind:

    • Fill in blanks: Sentence and blanks, built from pieces — + Add sentence text for the words that stay visible, + Add blank for a gap and the block that belongs in it — and Extra movable blocks (optional distractors), with + Add distractor.
    • Order sentences and Construct a sentence: the sentences, or the words or chunks, in the correct order, one per row, with + Add sentence or + Add word or chunk. A sentence to construct also has Direction of the answer (including wrapped lines) and Reverse order, which turns the whole list round — the quick fix for a right-to-left sentence typed in the wrong order.
    • The three matchings: Pairs, two fields each, with + Add pair; for translations and definitions, What the learner sees on the left.
    • Yes / No and True / False: Questions and answers or Statements and answers, each with its Correct answer.
    • The choices: Answer choices (or Sentence segments), each with Correct answer ticked on the right ones — exactly one, except for Choose all correct answers — or This is the incorrect segment.
    • A flashcard: Card content — for a vocabulary card the word, its reading, its transliteration, its meaning, an example, notes, a source, or a custom front and back; for an opposites card the word and its opposite with their readings and transliterations; for a Jolly card the four fields, primary and secondary, of each side, which take any Markdown of the dialect over several lines. Each text field has Text appearance: its Text size (%), from 50 to 250, and its Color treatment — Primary text, Subdued, Muted, Accent color or Custom color; under the example, the notes and the source it also has Show on the side shown first, which puts one of them there instead of on the side the card turns to. Which side appears first is Front, Back (which turns the card round), Both (random) (the front or the back, drawn each time the card is shown) or Both (repeat) (the front first; a deck asks both sides).
    • Follow-up questions: Steps, a list in which every step has its place (Step 3 of 8), its type and its opening words, a handle to drag, ↑ and ↓, a box to type its place in, ✎ Edit, Duplicate, ⤴ Put back (out of the chain, onto the page as an exercise of its own), Delete (with an Undo for six seconds) and a tick — ticked steps move and go together. + New step… opens the grid again, without the follow-up, and the chosen type’s own form in a frame over this one, titled Step 2 — …, with Add to the chain for Insert exercise; + From this page… lists the exercises the page already has, to make steps of, and Remove them from the page once they are in the chain takes the originals away in the same undoable step. Follow-up questions has every control.

    Every row has ↑ and ↓ to move it and Delete to take it away.

  • Pictures (optional) and Recordings (optional) (every kind but a flashcard): Picture with the question and Recording with the question, shown between the prompt and the activity, and Picture shown after the answer and Recording played after the answer, kept back until the exercise has been answered, right or wrong. Each has Upload…, which stores the file in the document and fills in its path, and a fold — Size and position, or Size, position and clip — with Width (% of the column) and Where it sits, and for a recording Play from and Play to.

  • Explanation after checking (optional): one shown when the answer is correct, one when it is not. With only the first filled in, it is shown either way.

  • Preview: the exercise as the editor’s preview will draw it, solved, redrawn as you type.

A flashcard’s picture and recording fields have Upload… too, and a recording field a ▶ to hear it. A Jolly field has Image… and Recording…, which upload a file and put its line into the field at the cursor.

A picture field of any exercise also has Pictogram… beside Upload…, and a Jolly field one beside Image…: they search the ARASAAC pictograms kept on this computer by a word, show each before you choose, and store a copy in the document as an uploaded picture would be. An exercise’s own picture comes with a width of 20 % and the middle, which suit a pictogram. Pictogram… at the foot of the form, beside ∑ Maths…, puts one in the field you were last in: a small picture inside the line of a text field, a figure in a Jolly field, the picture itself in a picture field (Pictograms).

Every text box of the form has its own ⇤ RTL / ⇥ LTR button: the box starts the way its text is written, and the button turns it for typing — a Persian answer inside an English exercise, say. It changes only how that box is edited, never the exercise. ∑ Maths… at the foot of the form opens the maths sheet and writes the formula, in the line, into the field you were last in.

Insert exercise checks the form — a blank with no block, a choice with no right answer, a row half filled are each said in a message, and the form stays open — then puts the exercise in at the cursor, on lines of its own. Cancel, ✕ or Escape closes the form and writes nothing.

Save the document before uploading. Pictures and recordings go into the document’s own folders, so Upload…, Image…, Recording… and Pictogram… need it saved once.

Paste markdown…#

Under the grid, Paste markdown… takes an exercise copied as Markdown — copy markdown on a book’s or a video’s card sheet gives one, and so does any :::exercise block copied out of another document — and opens it in the form as a new exercise, to be looked over before Insert exercise. Paste it into the box and press Open in the form (or Ctrl+Enter); Back returns to the grid. Pressing Ctrl+V on the grid itself does all of it at once. Words around the block are left out; a text with no exercise, or more than one, is refused with a line saying so. In a saved document, the recordings and pictures the block names come in from the clip tray before the form opens, so its preview plays them.

2. ✎ Edit, in the preview#

Every exercise in the preview has ✎ Edit in its head. It reopens that exact block in the same form, filled in, and Save exercise puts the changed block back where it was — one step you can undo. An exercise the form cannot show (a kind it does not know) says so instead, and stays yours to edit in the source.

3. Generate with LLM…#

Generate with LLM… prepares a prompt that asks a language model to add practice activities to this page. The page itself is always included — the editor’s text as it is now, saved or not.

The prompt is in parts you choose, as the LLM prompt page is, so that it is no longer than the job needs:

The exercise types.
One box for each of the twelve — fill in the blanks, flashcard, put in order, match translations, match opposites, match definitions, yes or no, single choice, build the sentence, find the mistake, choose all that apply, odd one out — each with the size it adds. The types the page already holds are ticked; a page with no exercise yet starts with all of them. The flashcard is the longest by far, because a Jolly card can hold any block of the dialect. Tick at least one.
The dialect.
The same boxes as the prompt page — vocabulary entries, glosses, lists, tables, footnotes and the rest — ticked from what the page already uses, which the studio reads with its own parser, so that the model knows how to write inside a prompt, an answer or a card what the page writes. Tick more to let the exercises use more. Like the prompt page, it always tells the model which marks the studio reads, and that pictures, recordings and links to other documents are never its to write; for a right-to-left target it always carries the rule for the order of isolated right-to-left boxes, which is why that box is not offered here, and the exercises box is not either: the types are the exercises. A prompt you saved on the prompt page is that page’s own and does not come here.
For a learner at
and length, one line each, as on the prompt page, and where the language has one the scheme of its transliteration (usual scheme or IPA). Nothing is remembered between two openings except that scheme: what a page uses is not what another one does.
Known vocabulary.
Under those, the dialog lists your Anki decks of the page’s language (the ones the toolbox builds for you; see the cards and Anki section), each with its language and its number of cards: tick some, and their words — with readings, transliterations and meanings — go into the prompt as vocabulary the learner already knows, for the model to use where it helps. None is needed: No Persian Anki deck installed — the prompt works without one.

The dialog shows the size of the prompt. copy the prompt puts on the clipboard, in one piece: the instructions for writing exercises, the description of the dialect, the target language’s conventions, the known vocabulary, and the page. The line beside the button says how many known words went in.

In front of the button, prompt: Parseh’s ▾ chooses between Parseh’s prompt for exercises and your own: the list is the dialog’s own, apart from the one on the LLM prompt page, and its editor opens at the top of what scrolls. A prompt of yours in place of Parseh’s, with none of the boxes’ or the exercise types’ blocks in it, is copied whole, and the boxes and types are greyed with the reason.

Paste it to your model. It answers with the whole page, exercises added, in one Markdown block, opened and closed with four backticks: copy that block, select all the text in the editor, paste it in place, look it over in the preview and Save — or undo, if you do not like it.

4. Load from a deck…#

Load from a deck… is the other direction of a document page’s + Deck: it takes an exercise out of one of your exercise decks and puts it in this page. The dialog lists the decks of the page’s language — only those, since a deck holds one language — and, under the chosen deck, every exercise in it, headed by its kind and showing its opening words; one the deck reports as broken is marked, and still offered, since a document is where it is easiest to mend. Click one and press Insert.

The exercise goes in at the cursor exactly as the deck has it, and what it needs comes with it:

its pictures and recordings
are copied into this document’s own images/ and audio/ — a file whose name is taken there by a different file is stored as name-2.png, and the block that goes in names it so;
the footnotes it calls
are placed among the document’s own, in reading order, and one whose name the document already uses for another note is renamed (n1-2) in the block and in its definition, so neither note is lost.

The deck is left exactly as it was. The document must have been saved once, since the files go into its folder. With no deck in the page’s language the dialog says No Persian deck yet — make one with “+ Deck” on a page.

The entry is there only when the exercise decks can be reached from this page: always in the studio’s own library, and in a note beside a book or a video when the decks know that book or video.