Commit graph

2309 commits

Author SHA1 Message Date
Damien Elmes
8823fe7538 more importing changes
- when importing cards from a filtered deck, convert them to normal cards
- ignore empty default deck when determining deck prefix
2012-10-25 01:02:12 +09:00
Damien Elmes
bc896c21c9 fix unit test, add ordinals to db 2012-10-25 00:42:10 +09:00
Damien Elmes
5c3f036936 add a hook to customize imported deck name 2012-10-25 00:19:50 +09:00
Damien Elmes
de541617cf add html stripping to import; don't always display empty note msg 2012-10-24 23:48:21 +09:00
Damien Elmes
045d5d68cd Revert "include info about whether it was a full export"
This reverts commit 63ec4983a4.
2012-10-24 22:58:55 +09:00
Damien Elmes
958967f3c3 log the generated .tex for debugging, and add \n on </div> 2012-10-24 22:29:01 +09:00
Damien Elmes
63ec4983a4 include info about whether it was a full export 2012-10-24 17:53:53 +09:00
Damien Elmes
b5c72155a3 work around invalid 1.2 decks with multiple templates sharing same ord 2012-10-24 13:11:18 +09:00
Damien Elmes
7cec4762eb revert to noteCrt if sort order invalid 2012-10-24 00:50:09 +09:00
Damien Elmes
f0a0df5a29 make sure we display review graph even if there's only a single bar 2012-10-23 23:24:13 +09:00
Damien Elmes
31e2f927c7 fix deck list not being consistent with study screen
We must make sure to bound each deck by its current remaining, not its daily
limit. Fixes counts when "study more" used, and also counts where there are
more cards due than can be shown
2012-10-23 22:20:52 +09:00
Damien Elmes
96b0087262 fix x axis on ivl graph when showing deck life 2012-10-23 21:39:58 +09:00
Damien Elmes
439821b3c9 always use pattern, but use a more subtle one 2012-10-23 20:52:58 +09:00
Damien Elmes
23b24d30f3 add footer and background to graphs 2012-10-23 20:42:23 +09:00
Damien Elmes
133d4c2e8e unbury cards when returning to deck list 2012-10-23 19:48:35 +09:00
Damien Elmes
acae66d60e don't remove from dyn deck when burying 2012-10-23 19:45:54 +09:00
Damien Elmes
5c8b7e2a00 fix error when renaming decks with different case 2012-10-23 18:39:47 +09:00
Damien Elmes
cb17319e4e add warning when import fails to generate cards 2012-10-23 18:07:36 +09:00
Damien Elmes
eb7240d220 allow duplicates in import 2012-10-23 17:52:55 +09:00
Damien Elmes
bee3422a72 catch cards without template in db check 2012-10-23 13:09:57 +09:00
Damien Elmes
7747bdca28 when a cloze has a hint, don't show dots 2012-10-23 13:04:13 +09:00
Damien Elmes
fa7536ca36 fix rounding error in rev history graphs 2012-10-18 03:55:10 +09:00
Damien Elmes
dd12431806 Merge branch 'fix-quote' of https://github.com/ospalh/libanki 2012-10-16 09:34:25 +09:00
ospalh
2e52ce2df1 Fix closing quote to match opening quote. 2012-10-12 17:03:52 +02:00
Damien Elmes
54461918a6 make sure newly created cards don't end up in filtered deck 2012-10-09 19:35:08 +09:00
Damien Elmes
2f34361b89 reinit mapping when delimiter changed 2012-10-09 03:11:23 +09:00
Damien Elmes
d4988c50ee merge 3&4 in learning mode answer button stats 2012-10-02 23:17:35 +09:00
Damien Elmes
b2e5fe3c7d make sure we include notes table when searching for no tags 2012-10-01 20:45:49 +09:00
Damien Elmes
880d50ed8a move brackets out of translation so translators can't break card review 2012-09-28 22:45:19 +09:00
Damien Elmes
2f8248eeff template docs 2012-09-27 22:29:29 +09:00
Damien Elmes
7eb8b66b7a add exporters hook 2012-09-25 22:17:04 +09:00
Damien Elmes
76b356fe0d read media files in binary format 2012-09-25 10:33:09 +09:00
Damien Elmes
90a4ac2584 add support for verbatim export, and make apkg the default 2012-09-23 15:46:22 +09:00
Damien Elmes
386b9b7ead make sure we count per-day learning cards in graphs 2012-09-22 21:22:08 +09:00
Damien Elmes
3eb8b5fec2 don't die if exporting with no source media folder 2012-09-22 10:27:56 +09:00
Damien Elmes
3f01b1ef59 don't die if src collection is missing media folder 2012-09-21 23:50:41 +09:00
Damien Elmes
e3da64f00b don't clobber tags if they're not mapped 2012-09-21 15:51:45 +09:00
Damien Elmes
f2fffce6d1 handle conflicts in apkg import as well 2012-09-21 15:42:30 +09:00
Damien Elmes
f13acf8c68 handle file name conflicts in media on .anki2 import 2012-09-21 15:25:52 +09:00
Damien Elmes
fe6147e1dc detecting if a given note has a field 2012-09-21 15:25:13 +09:00
Damien Elmes
7eb2533fca don't break when user deletes deck with default deck as subdeck 2012-09-21 11:26:40 +09:00
Damien Elmes
b01f089ee1 don't remove empty spans
The regex was not matching nested spans properly, leading to invalid output on
decks like the Heisig one.
2012-09-20 16:28:08 +09:00
Damien Elmes
8e1ed0dacd fix hour cutoff 2012-09-15 09:54:33 +09:00
Damien Elmes
da639c00a5 report # of notes that are already in the collection 2012-09-15 09:39:10 +09:00
Damien Elmes
c127f4b3c8 reverse order added in dyn deck 2012-09-13 08:05:50 +09:00
Damien Elmes
59d938bc7e fix an i18n string 2012-09-11 08:37:37 +09:00
Damien Elmes
b8c2110cb0 export all _foo media in apkg export 2012-09-11 08:37:30 +09:00
Damien Elmes
de04f8bc41 Merge branch 'master' of github.com:dae/libanki 2012-09-10 09:27:00 +09:00
Soren Bjornstad
1f7c19f535 added pluralization in a number of spots 2012-09-09 17:07:47 -05:00
Damien Elmes
e37f299fd2 filter on type, not queue, for learn/rev, so we catch suspended 2012-09-10 03:00:25 +09:00
Damien Elmes
6ebdd7a8b8 fix importing of anki1 media 2012-09-09 06:29:30 +09:00
Damien Elmes
fa1d309885 don't update odue if we're not in a filtered deck 2012-09-09 06:09:16 +09:00
Damien Elmes
2ee3ec8b7a delete notes that are missing their model 2012-09-09 06:06:55 +09:00
Damien Elmes
958768ccfe deck list shouldn't apply rev limit to 1+ day learning cards 2012-09-09 02:49:00 +09:00
Damien Elmes
b66d1479c2 stripHTML() handles entity replacement, which should be done post-strip 2012-09-07 04:54:59 +09:00
Damien Elmes
59cb45eda6 need to update odue when failing rev card in filtered deck 2012-09-06 04:34:44 +09:00
Damien Elmes
1db6a0bd3a don't throw error if we can't return to old folder 2012-09-03 05:02:54 +09:00
Damien Elmes
fa4f26e560 is:learn should match relearning cards too - filter on queue, not type 2012-09-03 03:20:12 +09:00
Damien Elmes
7c1ff307ed fix spurious and 2012-08-30 10:02:49 +09:00
Damien Elmes
20c0ae2e33 count per-day learning cards in deck list 2012-08-29 13:19:57 +09:00
Damien Elmes
a742784873 fix return when collection corrupt 2012-08-28 12:38:24 +09:00
Damien Elmes
73bfbb7f24 make sure _ is defined in hint.py 2012-08-27 12:06:17 +09:00
Damien Elmes
6d54a43060 don't bump mod time when importing apkg 2012-08-26 17:34:47 +09:00
Damien Elmes
78039891ce make sure we limit review time period to oldest card in deck, not collection 2012-08-26 17:03:32 +09:00
Damien Elmes
1be0f919f4 make sure we honor the minimum interval on lapses 2012-08-26 15:09:28 +09:00
Damien Elmes
7e2c11d45c honour period limit in answer buttons graph 2012-08-25 22:04:51 +09:00
Damien Elmes
7e0e54d7fd add young/mature counts to labels 2012-08-25 21:30:16 +09:00
Damien Elmes
8aaff17ccf when exporting without scheduling, revert decks to default conf 2012-08-25 16:09:49 +09:00
Damien Elmes
087533fbc5 defer i18n lookup of shortTimeTable 2012-08-25 15:45:23 +09:00
Damien Elmes
df98e8609e need to bump deck usn so collapse syncs 2012-08-25 13:39:03 +09:00
Damien Elmes
ef07d98d0a Merge branch 'master' of github.com:dae/libanki 2012-08-25 13:22:34 +09:00
Damien Elmes
a59cb3b7a6 cards/5 minutes -> cards/minute 2012-08-24 15:58:00 +09:00
Damien Elmes
0432911ef9 save deck description on import 2012-08-24 15:55:56 +09:00
Chris L
1e30532692 libanki collapse method (part 2 of 2) 2012-08-23 21:30:35 -04:00
Damien Elmes
f661eef702 add hint class to link/div 2012-08-23 20:03:29 +09:00
Damien Elmes
162ccdcc03 bury shouldn't touch suspended siblings 2012-08-23 19:44:25 +09:00
Damien Elmes
bcb9b53368 ensure we return cards in created order when sorting 2012-08-23 17:07:41 +09:00
Damien Elmes
6c1239ee9c reset rep/lapse count on export 2012-08-23 16:57:08 +09:00
Damien Elmes
500dff04c8 must preserve selected card order when repositioning 2012-08-23 15:09:10 +09:00
Damien Elmes
d001b83ab1 fix anki1 media importing again 2012-08-23 14:11:04 +09:00
Damien Elmes
7c2e9ece1c make it possible to override the media folder when exporting 2012-08-09 14:07:31 +09:00
Damien Elmes
9cc6ab9685 fix iniju's patch 2012-08-09 14:01:41 +09:00
Damien Elmes
949660288e needCards/needWizard obsolete
We always include the cards as designed, and suggest to the user they can
customize them instead.
2012-08-09 11:40:56 +09:00
Damien Elmes
b74f773d46 post export hook for apkg 2012-08-03 20:29:59 +09:00
Damien Elmes
4ff3a9969b Merge branch 'master' of github.com:dae/libanki 2012-07-28 22:26:00 +09:00
iniju
2c43c3adca fix import deck: target correct media dir on linux. 2012-07-28 12:57:26 +01:00
Damien Elmes
875342e141 space buttons by at least a day
when a card has a low interval like 1, you can end up with next times of
2,2,3, which some users think is a bug. change the code to yield 2,3,4
instead.
2012-07-28 12:47:25 +09:00
Damien Elmes
153c971db6 report intervals below collapse time like "<10m" 2012-07-26 13:42:51 +09:00
Damien Elmes
c371d318a2 fix ordinals instead of aborting upgrade 2012-07-19 23:57:51 +09:00
Damien Elmes
b165ef3980 fix another tmpdir() reference 2012-07-19 21:00:28 +09:00
Damien Elmes
f56c2156a2 pass utf8 to sqlite but don't clobber our original format 2012-07-19 17:37:47 +09:00
Damien Elmes
5ddc4c639e make sure we feed sqlite utf8, and use unicode for tmp filenames 2012-07-19 15:34:19 +09:00
Damien Elmes
9d153313e5 make sure to update sort field when fields moved 2012-07-19 15:16:08 +09:00
Damien Elmes
779bcbef39 ensure crt synced 2012-07-18 11:19:30 +09:00
Damien Elmes
bd80f31c48 no need to exclude/dedupe audio anymore
because audio is stripped from FrontSide, we don't need to jump through hoops
to ensure audio plays correctly anymore
2012-07-15 16:46:34 +09:00
Damien Elmes
2616e95348 don't delete old revlog entries when cards deleted 2012-07-11 10:35:17 +09:00
Damien Elmes
35a498b858 cloze is blank if no match 2012-07-05 19:49:40 +09:00
Damien Elmes
57a9668350 fix cloze->basic model changing 2012-07-05 05:39:25 +09:00
Damien Elmes
49ec362ea3 fix findDupes() when no limit provided 2012-07-05 03:22:00 +09:00
Damien Elmes
50bfb9dd4b replace clozes individually so hints aren't shared 2012-07-05 03:17:16 +09:00