dracosh 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/locales/en.json CHANGED
@@ -71,10 +71,12 @@
71
71
  "pasteFix": "enter done · esc back",
72
72
  "grading": "1 or ← didn't know · 2 or → knew it",
73
73
  "sessionWaiting": "enter next card · / commands · q quit",
74
- "decks": "→ direction · {choose}",
75
- "directionPick": "{choose} · esc or typing on keeps 1",
74
+ "decks": "→ settings · {choose}",
75
+ "directionPick": "{choose} · → languages · esc or typing on keeps 1",
76
76
  "addName": "enter create · esc cancel",
77
- "confirm": "{yes} yes · {no} no"
77
+ "confirm": "{yes} yes · {no} no",
78
+ "languagePick": "type to search · ↑/↓ choose · enter confirm · ← back",
79
+ "choiceLeft": "{choose} · ← back"
78
80
  },
79
81
  "settings": {
80
82
  "title": "Settings",
@@ -95,6 +97,10 @@
95
97
  "label": "Sound",
96
98
  "hint": "answer and new-card sounds"
97
99
  },
100
+ "speak": {
101
+ "label": "Read aloud",
102
+ "hint": "reads the word aloud in the language you're learning, once the answer is out (macOS voices)"
103
+ },
98
104
  "volume": {
99
105
  "label": "Volume",
100
106
  "hint": "plays a preview when changed"
@@ -187,7 +193,12 @@
187
193
  "directionSaved": "\"{deck}\" asks the new way from the next card.",
188
194
  "front": "front",
189
195
  "back": "back",
190
- "progressKept": "Progress stays for every direction, even one you turn off."
196
+ "progressKept": "Progress stays for every direction, even one you turn off.",
197
+ "askRow": "How it asks",
198
+ "languagesRow": "Languages",
199
+ "detectRow": "Detect from the cards",
200
+ "learningRow": "Learning",
201
+ "learningShort": "learning {language}"
191
202
  },
192
203
  "add": {
193
204
  "fields": {
@@ -235,7 +246,7 @@
235
246
  "youType": "you type {answer}",
236
247
  "bothWays": "Both ways",
237
248
  "bothWaysNote": "every card asked both ways",
238
- "directionLater": "You can change it later: /decks, then →.",
249
+ "directionLater": "You can change all of this later: /decks, then →.",
239
250
  "directionSet": "Got it: {how} · next card:",
240
251
  "paste": {
241
252
  "title": "Pasted cards · {deck}",
@@ -259,7 +270,12 @@
259
270
  "one": "1 line skipped: it still needed fixing.",
260
271
  "other": "{count} lines skipped: they still needed fixing."
261
272
  }
262
- }
273
+ },
274
+ "languagesLine": "Languages: {pair}",
275
+ "languagesNow": "Looks like {pair}. If not, fix it in /decks →.",
276
+ "languagesSoon": "Languages: I'll tell after a few cards",
277
+ "learningLine": "Learning: {language}",
278
+ "learningGuess": "that is a guess: → to change it"
263
279
  },
264
280
  "quiz": {
265
281
  "youWrote": "you wrote ",
@@ -288,7 +304,12 @@
288
304
  "dayDoneTitle": "All done for today.",
289
305
  "dayDoneNext": "Your cards come back {when}. Want more today? /add some new ones.",
290
306
  "laterTitle": "Nothing to practise right now.",
291
- "laterNext": "The next card is due {when}. It will come by itself."
307
+ "laterNext": "The next card is due {when}. It will come by itself.",
308
+ "newTomorrow": {
309
+ "one": "{count} new card waits for tomorrow (up to {max} new ones a day).",
310
+ "other": "{count} new cards wait for tomorrow (up to {max} new ones a day)."
311
+ },
312
+ "dayDoneHeldNext": "Your cards come back {when}."
292
313
  },
293
314
  "previewNoAdd": "The preview can't add cards; run dracosh for that.",
294
315
  "previewNoDecks": "The preview has one demo deck; run dracosh for yours.",
@@ -308,7 +329,17 @@
308
329
  },
309
330
  "sessionProgress": "{done} of {count} in this session",
310
331
  "escAgain": "Esc again to quit.",
311
- "correctConfirm": "Count \"{answer}\" as right, and accept it from now on?"
332
+ "correctConfirm": "Count \"{answer}\" as right, and accept it from now on?",
333
+ "almost": {
334
+ "article": "Almost: mind the article.",
335
+ "umlaut": "Almost: mind the umlaut (ä, ö, ü); ae, oe, ue work too.",
336
+ "article-umlaut": "Almost: mind the article and the umlaut; ae, oe, ue work too.",
337
+ "held": "The card comes back {now}, not {would}.",
338
+ "days": {
339
+ "one": "tomorrow",
340
+ "other": "in {count} days"
341
+ }
342
+ }
312
343
  },
313
344
  "dragon": {
314
345
  "stages": {
@@ -541,7 +572,7 @@
541
572
  "weekends": "weekends",
542
573
  "noWeekends": "no weekends",
543
574
  "daysOff": " · days off {ranges}",
544
- "month": "Goal reached on {goalDays} of {days} days · {correct} correct answers",
575
+ "month": "Days with the goal reached: {goalDays}/{days} · correct answers: {correct}",
545
576
  "weekdays": "M T W T F S S",
546
577
  "badgesLine": "{unlocked}/{total} badges · /badges lists them all"
547
578
  },
@@ -671,7 +702,7 @@
671
702
  "slashSwitch": "\"{text}\" would have to be typed, and in the quiz / opens the commands. Change that card first."
672
703
  },
673
704
  "cli": {
674
- "help": "Dracosh: a vocabulary and quiz trainer for your terminal\n\nUsage: dracosh [options]\n dracosh restore [number] list your backups, or bring one back\n\n --deck <name> quiz this deck, this run only (otherwise the one picked in /decks)\n --every <time> pause between questions: 30s, 10m, 1h (default: {interval})\n --no-sound turn sound effects off\n --volume <0-1> sound volume (default: {volume})\n --stats print progress and exit\n --data show where your cards, progress and backups are kept\n --preview browse every animation and screen on made-up data (nothing is saved)\n -y, --yes restore without asking first\n -h, --help show this help\n\nFlags override your saved settings for this run only. Change the saved ones with /settings.\n\nWhile running: Enter submits (with nothing typed it shows the answer, then 1 or 2), \"/\" opens the command menu (/add, /decks, /settings, /stats, /help…),\nEsc quits (clears the line first if you typed something). Ctrl+C also works.\nBetween cards: Enter asks the next one right away, q quits. /help explains the rest.",
705
+ "help": "Dracosh: a vocabulary and quiz trainer for your terminal\n\nUsage: dracosh [options]\n dracosh import <file|-> add cards from a file (.txt, .csv, .tsv, an Anki .apkg or .colpkg, Anki or Quizlet text exports, a .json backup), or \"-\" for standard input\n dracosh export <file> write your decks to .apkg (Anki), .txt, .tsv, .csv or .json (everything)\n dracosh restore [number] list your backups, or bring one back\n\n --deck <name> quiz this deck, this run only (otherwise the one picked in /decks);\n with import or export: the deck to fill or write\n --every <time> pause between questions: 30s, 10m, 1h (default: {interval})\n --no-sound turn sound effects off\n --volume <0-1> sound volume (default: {volume})\n --stats print progress and exit\n --data show where your cards, progress and backups are kept\n --preview browse every animation and screen on made-up data (nothing is saved)\n --update import: cards already there take the file's answers (otherwise you're asked)\n --split import: an answer listing several (\"cat, kitty\") becomes one answer each\n --separator <s> import: what splits the columns: tab, comma, semicolon, pipe, colon, space or a character\n --encoding <e> import: a file that isn't UTF-8, e.g. windows-1250\n --anki import or export: straight from or to a running Anki (AnkiConnect add-on)\n -y, --yes import, export or restore without asking first\n -h, --help show this help\n\nFlags override your saved settings for this run only. Change the saved ones with /settings.\n\nWhile running: Enter submits (with nothing typed it shows the answer, then 1 or 2), \"/\" opens the command menu (/add, /decks, /settings, /stats, /help…),\nEsc quits (clears the line first if you typed something). Ctrl+C also works.\nBetween cards: Enter asks the next one right away, q quits. /help explains the rest.",
675
706
  "badEvery": "Invalid --every \"{value}\". Use e.g. 30s, 10m, 1h.",
676
707
  "badVolume": "Invalid --volume \"{value}\". Use a number from 0 to 1.",
677
708
  "unknownCommand": "Unknown command \"{command}\". See dracosh --help.",
@@ -722,13 +753,16 @@
722
753
  "daily": "daily",
723
754
  "before-reset": "before reset",
724
755
  "before-delete": "before delete",
725
- "before-restore": "before restore"
756
+ "before-restore": "before restore",
757
+ "before-import": "before import"
726
758
  }
727
759
  },
728
760
  "backups": {
729
761
  "one": "{count} backup",
730
762
  "other": "{count} backups"
731
- }
763
+ },
764
+ "unknownOption": "Unknown option {option}. See dracosh --help.",
765
+ "oneFile": "dracosh {command} takes one file at a time."
732
766
  },
733
767
  "tips": {
734
768
  "keys-enter": {
@@ -1025,5 +1059,250 @@
1025
1059
  "example": "Now make it yours and type `/add` to start your own deck. The tour makes room for it."
1026
1060
  }
1027
1061
  ]
1062
+ },
1063
+ "languages": {
1064
+ "notYet": "not sure yet",
1065
+ "mixed": "other or mixed",
1066
+ "mixedNote": "no rules of one language",
1067
+ "current": "current",
1068
+ "guessed": "detected from your cards",
1069
+ "frontQuestion": "What language is on the front of the cards in \"{deck}\"?",
1070
+ "backQuestion": "What language is on the back of the cards in \"{deck}\"?",
1071
+ "example": "like {sample}",
1072
+ "search": "search:",
1073
+ "noMatch": "No language matches \"{query}\".",
1074
+ "saved": "Languages of \"{deck}\": {pair}.",
1075
+ "detecting": "\"{deck}\" detects its languages from the cards again.",
1076
+ "learningQuestion": "Which language are you learning in \"{deck}\"?",
1077
+ "learningNote": "Words in this language are read aloud, if Read aloud is on in /settings.",
1078
+ "learningSaved": "\"{deck}\": now learning {language}.",
1079
+ "guessShort": "a guess",
1080
+ "learningArticles": "A missing or wrong article in it counts as \"almost\".",
1081
+ "savedWithLearning": "Languages of \"{deck}\": {pair}, learning {language}.",
1082
+ "learningUmlauts": "In German, so does an umlaut left plain."
1083
+ },
1084
+ "import": {
1085
+ "needFile": "Which file? dracosh import <file> (or - to read the cards from standard input)",
1086
+ "noFile": "There's no file {file}.",
1087
+ "unknownEncoding": "Unknown encoding \"{encoding}\". Try utf-8, utf-16, windows-1250 or windows-1252.",
1088
+ "notUtf8": "{file} isn't saved as UTF-8. Here is its first line with special letters, read as each likely encoding:",
1089
+ "notUtf8Hint": "Run the import again with the one that reads right, or save the file as UTF-8 (in Excel: CSV UTF-8).",
1090
+ "stdin": "standard input",
1091
+ "reading": "Reading {file}: {what}",
1092
+ "encoding": " (read as {encoding})",
1093
+ "formats": {
1094
+ "lines": "Dracosh lines (front = answer; other answer // example)",
1095
+ "dashes": "a list split by dashes (front - answer)",
1096
+ "table": "a table split by {separator}; columns: {columns}",
1097
+ "apkg": "an Anki package"
1098
+ },
1099
+ "separators": {
1100
+ "tab": "tabs",
1101
+ "comma": "commas",
1102
+ "semicolon": "semicolons",
1103
+ "pipe": "\"|\"",
1104
+ "colon": "colons",
1105
+ "space": "spaces"
1106
+ },
1107
+ "column": "{number} {role}",
1108
+ "roles": {
1109
+ "front": "front",
1110
+ "back": "answer",
1111
+ "example": "example",
1112
+ "deck": "deck"
1113
+ },
1114
+ "empty": "There are no cards in it.",
1115
+ "yourDecks": "Your decks: {decks}",
1116
+ "askDeck": "Which deck should they go into? Enter makes a new deck \"{deck}\", or type a name: ",
1117
+ "askDeckEmpty": "Which deck should they go into? Type a name: ",
1118
+ "needDeck": "Say which deck the cards go into: dracosh import - --deck <name>",
1119
+ "intoDeck": "Into {deck} ({cards} now):",
1120
+ "intoNewDeck": "Into a new deck, {deck}:",
1121
+ "more": {
1122
+ "one": "… and 1 more",
1123
+ "other": "… and {count} more"
1124
+ },
1125
+ "counts": {
1126
+ "new": {
1127
+ "one": "1 new card",
1128
+ "other": "{count} new cards"
1129
+ },
1130
+ "same": {
1131
+ "one": "1 already there",
1132
+ "other": "{count} already there"
1133
+ },
1134
+ "changed": {
1135
+ "one": "1 already there, different in the file",
1136
+ "other": "{count} already there, different in the file"
1137
+ }
1138
+ },
1139
+ "problems": {
1140
+ "one": "1 line can't be added:",
1141
+ "other": "{count} lines can't be added:"
1142
+ },
1143
+ "issues": {
1144
+ "noFront": "no front",
1145
+ "noBack": "no answer",
1146
+ "noDeck": "no deck",
1147
+ "twice": "also on line {line}",
1148
+ "slash": "an answer starts with /",
1149
+ "tooLong": "the deck name \"{deck}\" is longer than {max} characters: pick one with --deck",
1150
+ "tour": "\"{deck}\" is the tour deck: pick another name",
1151
+ "noSeparator": "no \" = \" between front and answer",
1152
+ "badDirection": "not a direction: use forward, backward or both",
1153
+ "twiceNote": "twice in the package",
1154
+ "picture": "a picture with parts to guess (image occlusion)",
1155
+ "mediaOnly": "only a picture or a sound, nothing to ask in text"
1156
+ },
1157
+ "ignored": {
1158
+ "one": "1 row has text in a column that isn't read (line {lines}): only front, answer and example are.",
1159
+ "other": "{count} rows have text in columns that aren't read (lines {lines}): only front, answer and example are."
1160
+ },
1161
+ "changedTitle": {
1162
+ "one": "1 card is already there and the file has it differently (now → in the file):",
1163
+ "other": "{count} cards are already there and the file has them differently (now → in the file):"
1164
+ },
1165
+ "updateAsk": {
1166
+ "one": "Update it to the file's version? Its progress stays.",
1167
+ "other": "Update these {count} to the file's version? Their progress stays."
1168
+ },
1169
+ "changedLeft": "They're left as they are (--update takes the file's version).",
1170
+ "nothing": "Nothing to add: the cards are already there, or can't be added as they are.",
1171
+ "directionTitle": "How should {deck} ask?",
1172
+ "directionAsk": "Pick 1, 2 or 3 (Enter: 1): ",
1173
+ "askSuffix": "[Y/n]",
1174
+ "doneNew": {
1175
+ "one": "Made the deck {deck} with 1 card.",
1176
+ "other": "Made the deck {deck} with {count} cards."
1177
+ },
1178
+ "done": {
1179
+ "one": "Added 1 card to {deck}.",
1180
+ "other": "Added {count} cards to {deck}."
1181
+ },
1182
+ "doneUpdated": {
1183
+ "one": " Updated 1.",
1184
+ "other": " Updated {count}."
1185
+ },
1186
+ "undo": "Undo it with \"dracosh restore 1\" (the backup taken just now).",
1187
+ "start": "Practise it with: dracosh --deck {deck}",
1188
+ "inDecks": "Dracosh is running: the new cards are in /decks.",
1189
+ "backupFile": "{file} is a full Dracosh backup: it brings back the cards, progress and settings it holds.",
1190
+ "backupAsk": "Bring it back?",
1191
+ "doneOnlyUpdated": {
1192
+ "one": "Updated 1 card in {deck}.",
1193
+ "other": "Updated {count} cards in {deck}."
1194
+ },
1195
+ "askDeckYours": "Which deck should they go into? Enter: {deck} (yours, {cards}), or type a name: ",
1196
+ "listed": {
1197
+ "one": "1 answer lists several, like \"{example}\".",
1198
+ "other": "{count} answers list several, like \"{example}\"."
1199
+ },
1200
+ "splitAsk": "Take each one as an answer of its own?",
1201
+ "splitHint": "Each stays one answer as written (--split takes each one on its own).",
1202
+ "directionTitleMany": "How should the {count} new decks ask?",
1203
+ "previewOnly": "Preview only, nothing saved. To import: {command}",
1204
+ "confirmAdd": {
1205
+ "one": "Add 1 card?",
1206
+ "other": "Add {count} cards?"
1207
+ },
1208
+ "confirmUpdate": {
1209
+ "one": "Update 1 card?",
1210
+ "other": "Update {count} cards?"
1211
+ },
1212
+ "confirmBoth": {
1213
+ "one": "Add {cards} and update 1?",
1214
+ "other": "Add {cards} and update {count}?"
1215
+ },
1216
+ "tourGone": "The Getting started tour made room for your own deck.",
1217
+ "badSeparator": "Unknown separator \"{value}\": use tab, comma, semicolon, pipe, colon, space or one character.",
1218
+ "languagesGuess": "Languages: {front} → {back} (a guess; change it in /decks)",
1219
+ "languagesUnsure": "Languages: not sure yet (set them in /decks)",
1220
+ "ankiNoHtml": "This Anki export has no HTML, so an answer and its example run together: export again with \"Include HTML and media references\" on.",
1221
+ "no": "n|no",
1222
+ "isFolder": "{file} is a folder: name a file in it.",
1223
+ "noPermission": "Dracosh may not read {file}.",
1224
+ "tooBig": "{file} is over {max} MB: that's not a deck. Split it, or check it's the right file.",
1225
+ "notText": "{file} isn't a text file. Dracosh imports text (Dracosh lines, CSV, TSV, Anki's and Quizlet's text exports) and Anki packages (.apkg, .colpkg).",
1226
+ "problemLine": "line {line} {issue}: {text}",
1227
+ "backupReplaces": "It takes the place of what you have now ({decks} · {cards}).",
1228
+ "mediaLeft": {
1229
+ "one": "1 note has pictures or sounds; only its text is imported.",
1230
+ "other": "{count} notes have pictures or sounds; only their text is imported."
1231
+ },
1232
+ "problemsNotes": {
1233
+ "one": "1 note can't be added:",
1234
+ "other": "{count} notes can't be added:"
1235
+ },
1236
+ "problemNote": "{issue}: {text}",
1237
+ "notAnki": "{file} isn't an Anki package Dracosh can read. In Anki, File → Export → Anki Deck Package (.apkg) makes one.",
1238
+ "needsNode": "Reading an Anki package needs Node {version} or newer (this is {current}). Update Node, or export the deck from Anki as Notes in Plain Text and import that.",
1239
+ "subdecks": "Anki's subdecks become decks of their own here, like \"{deck}\".",
1240
+ "hint": "(hint: {hint})",
1241
+ "notForPackage": "--separator and --encoding are for text files: an Anki package doesn't need them.",
1242
+ "anki": {
1243
+ "empty": "There are no cards in Anki to bring over.",
1244
+ "noDeck": "Anki has no deck \"{deck}\" with cards. Its decks: {decks}",
1245
+ "yourDecks": "Your decks in Anki:",
1246
+ "which": "Which ones? Numbers like 1 3, or Enter for all: ",
1247
+ "asking": "Getting {deck} from Anki…",
1248
+ "read": "From Anki: {decks}"
1249
+ }
1250
+ },
1251
+ "export": {
1252
+ "needFile": "Where to? dracosh export <file>: .apkg (Anki), .txt (Dracosh), .tsv (Anki text), .csv or .json (everything)",
1253
+ "unknownFormat": "{file}: pick the format with the file's ending: .apkg (Anki), .txt (Dracosh), .tsv (Anki text), .csv or .json (everything).",
1254
+ "needsNode": "An Anki package needs Node {version} or newer (this is {current}). Update Node, or export to .tsv instead.",
1255
+ "jsonAll": "A .json export holds everything (all decks, progress and settings): leave --deck out.",
1256
+ "noDecks": "No decks of your own to export yet.",
1257
+ "exists": "{file} is already there. Write over it?",
1258
+ "existsNeedsYes": "{file} is already there: add --yes to write over it.",
1259
+ "wrote": {
1260
+ "one": "Wrote 1 card to {file}.",
1261
+ "other": "Wrote {count} cards to {file}."
1262
+ },
1263
+ "wroteAll": "Wrote your cards, progress and settings to {file}.",
1264
+ "next": {
1265
+ "txt": "Read it back with: dracosh import {file}",
1266
+ "apkg": "In Anki: double-click {file}, or File → Import. Exporting again later updates the same notes.",
1267
+ "tsv": "In Anki: File → Import, pick {file}, and check the note type is Basic (named in your Anki's language).",
1268
+ "csv": "Opens in any spreadsheet; dracosh import {file} reads it back.",
1269
+ "json": "dracosh import {file} brings it all back, on this computer or another one."
1270
+ },
1271
+ "fileHeader": "Dracosh cards, {date}. One card per line: front = answer; other answer // example",
1272
+ "fileHowTo": "Read them back with: dracosh import <this file>",
1273
+ "inData": "That's in Dracosh's own folder ({home}): export somewhere else, so nothing there is written over.",
1274
+ "cantWrite": "Can't write {file}: {error}",
1275
+ "noFolder": "there's no such folder",
1276
+ "wroteCloze": {
1277
+ "one": "Wrote 1 cloze card to {file}.",
1278
+ "other": "Wrote {count} cloze cards to {file}."
1279
+ },
1280
+ "nextCloze": "Import it into Anki the same way, with the note type Cloze: Anki keeps the two kinds apart.",
1281
+ "anki": {
1282
+ "noFile": "--anki sends the cards straight to Anki, without a file: dracosh export --anki, or add --deck <name> for one deck.",
1283
+ "needsYes": "Sending to Anki changes your Anki collection: add --yes to do it without asking.",
1284
+ "ask": "Send to Anki: {cards} ({decks})?",
1285
+ "sent": "Sent to Anki: {cards} ({decks}). Notes it already had from Dracosh are updated.",
1286
+ "fromAnki": {
1287
+ "one": "1 card came from Anki and stays out: Anki has it already.",
1288
+ "other": "{count} cards came from Anki and stay out: Anki has them already."
1289
+ },
1290
+ "nothingNew": "Nothing to send: these cards all came from Anki, which has them already.",
1291
+ "changedNoteType": "The note type {type} in Anki has other fields now ({fields}): updating its notes would lose what's in them. Nothing was sent. To keep both, export to a file (dracosh export cards.apkg) and import it in Anki."
1292
+ },
1293
+ "fromAnkiCopies": {
1294
+ "one": "1 card in it came from Anki: imported into that same Anki, it's a second copy.",
1295
+ "other": "{count} cards in it came from Anki: imported into that same Anki, they're a second copy."
1296
+ }
1297
+ },
1298
+ "anki": {
1299
+ "notRunning": "Anki isn't answering. Open Anki with the AnkiConnect add-on (Tools → Add-ons → Get Add-ons..., code 2055492159, then restart Anki) and try again.",
1300
+ "old": "This AnkiConnect is too old for Dracosh: in Anki, Tools → Add-ons → Check for Updates.",
1301
+ "key": "AnkiConnect asks for its API key: run this again with DRACOSH_ANKI_KEY set to it.",
1302
+ "said": "Anki said: {detail}",
1303
+ "busy": "Anki took the call but isn't answering: it may be busy (syncing, checking its database) or asleep in the background. Bring Anki to the front and try again.",
1304
+ "badUrl": "DRACOSH_ANKI_URL isn't an address Dracosh can use ({detail}): it looks like http://127.0.0.1:8765.",
1305
+ "noDeck": "Anki has no deck \"{detail}\" any more.",
1306
+ "notImported": "Anki didn't take the cards: nothing was sent."
1028
1307
  }
1029
1308
  }