1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
|
# -*- mode: org; coding: utf-8 -*-
#+STARTUP: showall
# examples of card definitions for use with org-drill.
# Cards, AKA topics, have the 'drill' tag. Note that the higher-level headings
# in the file do NOT have this tag.
* Spanish questions
** Greetings
# Simple cards. When each card is presented, all subheadings are collapsed, but
# the text under the topic's main heading remains visible.
*** Greeting 1 :drill:
Translate into Spanish:
What is your name? (formal)
**** Answer
¿Cómo se llama usted?
**** Notes
llamar = to be named
*** Greeting 2 :drill:
Translate into Spanish:
What is your name? (informal)
**** Answer
¿Cómo te llamas?
**** Notes
llamar = to be named
** Grammar rules 1
# More simple cards -- here the question and answer are produced purely using
# cloze deletion of test in [square brackets], without the need to hide any
# subtopics (though they WILL still be hidden if present).
# If the text between the brackets contains a `|' character, everything after
# that character is considered to be a `hint', and will remain visible when the
# rest of the clozed text is hidden.
# Set the variable `org-drill-use-visible-cloze-face-p' to `t' if you want
# cloze-deleted text to be shown in a special face when you are editing org
# mode buffers.
*** Grammar Rule :drill:
To form the plural of a noun ending in a consonant, add [-es] to the end.
*** Grammar Rule :drill:
To make the plural of an adjective ending in [a stressed vowel or a consonant
other than -z], add /-es/.
** Grammar rules 2
# An example of a 'hide1cloze' card. One of the areas marked with square
# brackets will be hidden (chosen at random), the others will remain visible.
# This card also illustrates the use of hints inside clozed text. Note how
# during testing, the hint text `gender' is invisible unless its clozed text
# area is being hidden, in which case that text is replaced by `[gender...]'
*** Grammar Rule :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: hide1cloze
:END:
To form [an adverb] from an adjective, add [-mente] to the [feminine|gender]
form of the adjective.
** Vocabulary
# Examples of 'twosided' cards. These are 'flip cards' where one of the
# first 2 'sides' (subheadings) is presented at random, while all others stay
# hidden.
# There is another builtin card type called 'multisided'. These are like
# 'twosided' cards, but can have any number of sides. So we could extend the
# examples below by changing their type to multisided and adding a third
# subheading which contains an inline image.
*** Noun :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: twosided
:END:
Translate this word.
**** Spanish
el gato
**** English
the cat
**** Example sentence
*El gato* se sentó en la estera.
*The cat* sat on the mat.
*** Noun :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: hide1cloze
:END:
Sp: [el perro]
En: [the dog]
**** Example sentence
Cuidado con *el perro*.
Beware of *the dog*.
*** Noun :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: multisided
:END:
**** Spanish
la manzana
**** English
the apple
**** Picture
The Spanish word for...
[[file:apple.jpg][Picture]]
*** Adjective :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: twosided
:END:
Translate this word.
**** Spanish
caliente
**** English
hot
**** Example sentence
El agua está muy caliente.
The water is very hot.
** Verbs
[[Regular Verb: bailar][Below]] is an example of a complex drill item. The main item is itself a drill
item which tests your ability to translate 'bailar' to and from English (which
direction is chosen at random).
The item has several child items, some of which contain notes about the verb,
others of which are separate drill items relating to the verb. In this example,
all the child drill items test verb conjugation, and have the 'conjugate' card
type. Which tense to test is specified by the =VERB_TENSE= property in each item,
and the information about the verb is retrieved from the parent's
=VERB_INFINITIVE= and =VERB_TRANSLATION= properties.
Some of the conjugation items are empty -- this allows the user to past in
conjugations as they are learned.
Following this item is an [[Old Style Verb][example]] of the "spanish_verb" card type. This is not
as sophisticated or useful as the above example, but is intended to demonstrate
how a function can control which subheadings are visible when an item is
tested.
*** Regular Verb: bailar :verb:drill:
:PROPERTIES:
:VERB_INFINITIVE: "bailar"
:VERB_TRANSLATION: "to dance"
:DRILL_CARD_TYPE: hide1cloze
:DATE_ADDED: [2011-04-30 Sat]
:END:
Sp: [bailar]
En: [to dance] (verb)
**** Notes
This is a regular verb.
**** Examples
Bailé con mi novia.
I danced with my girlfriend.
**** Present Indicative tense :verb:drill:
:PROPERTIES:
:VERB_TENSE: "present indicative"
:DRILL_CARD_TYPE: conjugate
:END:
| yo | bailo |
| tú | bailas |
| él/usted | baila |
| nosotros | bailamos |
| vosotros | bailáis |
| ellos/ustedes | bailan |
**** Participles :verb:drill:
Present participle of bailar: [bailando]
Past participle of bailar: [bailado]
**** Preterite tense :verb:drill:
:PROPERTIES:
:VERB_TENSE: "preterite"
:DRILL_CARD_TYPE: conjugate
:END:
| yo | bailé |
| tú | bailaste |
| él/usted | bailó |
| nosotros | bailamos |
| vosotros | bailasteis |
| ellos/ustedes | bailaron |
**** Imperfect tense :verb:drill:
:PROPERTIES:
:VERB_TENSE: "imperfect"
:DRILL_CARD_TYPE: conjugate
:END:
**** Future tense :verb:drill:
:PROPERTIES:
:VERB_TENSE: "future"
:DRILL_CARD_TYPE: conjugate
:END:
*** Old Style Verb :drill:
:PROPERTIES:
:DRILL_CARD_TYPE: spanish_verb
:END:
**** Infinitive
cantar
**** English
to sing
**** Present Tense
| yo canto | nosotros cantamos |
| tú cantas | vosotros cantáis |
| él canta | ellos cantan |
**** Past Tense
| yo canté | nosotros cantamos |
| tú cantaste | vosotros cantasteis |
| él cantó | ellos cantaron |
**** Future Perfect Tense
| yo cantaré | nosotros cantaremos |
| tú cantarás | vosotros cantaréis |
| él cantarán | ellos cantarán |
**** Notes
Regular verb.
** Random Numbers
Below is an example of a card that tests the user's ability to translate random
whole numbers to and from a non-English language. For it to work correctly, you
must have the third party library [[http://www.emacswiki.org/emacs/spell-number.el][spell-number.el]] installed and loaded.
The meaning of the item's properties is as follows:
- =DRILL_LANGUAGE=: any language recognised by spell-number.el. At the time of
writing these include: catalan, danish, dutch, english-eur, english-gb,
english-us, esperanto, finnish, french-fr, french-ch, german, italian,
japanese, norwegian, portuguese-br, portuguese-pt, spanish and swedish.
- =DRILL_NUMBER_MIN= and =DRILL_NUMBER_MAX=: the range between which the random
number will fall.
*** Random Number 20-99 :drill:
:PROPERTIES:
:DRILL_NUMBER_MIN: 20
:DRILL_NUMBER_MAX: 99
:DRILL_LANGUAGE: spanish
:DRILL_CARD_TYPE: translate_number
:END:
# This comment is included so that the item body is non-empty. Items with
# empty bodies are skipped during drill sessions.
|