Commit graph

115 commits

Author SHA1 Message Date
Damien Elmes
f2d538d546 catch errors trying to determine fs type 2013-06-14 13:15:05 +09:00
Damien Elmes
a6b44cff01 skip fat32 check on unmapped network drive (#902) 2013-06-10 15:32:21 +09:00
Damien Elmes
adaf951a5a force y axis min of 0 in reps graph too 2013-06-06 08:19:32 +09:00
Damien Elmes
4d2101cf89 dupes->dupe (fix dupe search) 2013-06-06 07:40:18 +09:00
Damien Elmes
8e8de1e333 mnemosyne importer tweaks
- convert newlines to br
- non-greedy match mnemosyne clozes
2013-06-05 18:39:32 +09:00
Damien Elmes
a4b7a93bcc mnemosyne importer improvements
- support cloze type
- use proper names for front/back, etc
- change <audio> to [sound:]
- change mnemosyne-style latex references
2013-06-03 13:58:40 +09:00
Damien Elmes
5db00d5815 fix find dupes when fieldname case differs 2013-06-01 10:49:33 +09:00
Damien Elmes
ec888eb2aa fix bug in media sync where we weren't fetching needed files 2013-05-31 14:03:34 +09:00
Damien Elmes
122c5c8f4c ensure we have access to col when removing notes while syncing 2013-05-31 10:42:24 +09:00
Damien Elmes
be78c3f9e3 better msg when media sanity fails 2013-05-30 10:54:55 +09:00
Damien Elmes
9714143af9 remove dropbox image escape hack 2013-05-29 09:34:12 +09:00
Damien Elmes
744d9abfdb fix modification check in note merge 2013-05-28 14:41:12 +09:00
Damien Elmes
84a03d291d modding the schema should also set collection modified
required for the force full sync case
2013-05-28 12:42:12 +09:00
Damien Elmes
e38aa0c615 fix importing of images 2013-05-27 16:20:53 +09:00
Damien Elmes
dceacff47c tell server which files we need 2013-05-27 15:29:24 +09:00
Damien Elmes
0a81df60dc automatically resync media, and don't send media server already has (#583) 2013-05-27 14:25:30 +09:00
Damien Elmes
cfac1eb99b add utf8 input back to latex
This was what we originally had in templates in Anki 1. It was changed to
utf8x at one point, then we discovered that some LaTeX installs didn't have
that package so it was removed, when we should have reverted to utf8 instead.
This fixes things like umlauts but does not allow display of things like
Japanese text.
2013-05-27 10:52:55 +09:00
Damien Elmes
73b197b3a9 only duplicate notes with diff schema in anki1 import (#612) 2013-05-24 11:55:50 +09:00
Damien Elmes
97a92e5ea9 translation issues 2013-05-24 10:46:44 +09:00
Damien Elmes
97a342ae23 when media deleted during sync, move to trash instead of deleting 2013-05-23 13:38:51 +09:00
Damien Elmes
d72fb35825 need to order cards after import for sibling spacing (#464) 2013-05-22 13:16:12 +09:00
Damien Elmes
e61e849e09 Merge branch 'findhook' 2013-05-22 12:35:05 +09:00
Damien Elmes
ce1199e9cb Merge branch 'addhook-search' of git://github.com/valgaav/anki into findhook
Conflicts:
	anki/find.py
2013-05-22 12:34:21 +09:00
Damien Elmes
ddc01ad8e8 log deletions in text file 2013-05-22 12:27:37 +09:00
Damien Elmes
4f073f0b85 fix upgrading of latex references 2013-05-22 09:46:09 +09:00
Damien Elmes
918694a096 more media regexp fixes
- split quoted and unquoted image case into separate regexps, since we can't
  include a group reference inside a character set
- disallow spaces in the non-quoted case
- this should fix matching on images with other attributes again
2013-05-22 09:45:58 +09:00
Damien Elmes
81b4e521cc fix float issue in stats
[Beta Testing #23]
2013-05-22 08:56:15 +09:00
Damien Elmes
85cb7ef47e ignore _ in field references (#803) 2013-05-18 18:57:24 +09:00
Damien Elmes
f97abacb4a add mature today stat 2013-05-18 18:37:17 +09:00
Damien Elmes
3326254eec fix cloze+latex issue in media check, and duplicate answers (#757, #758)
we were replacing spans with spaces during review but not during media check.
just strip the tags instead, which makes the media check consistent and
doesn't result in multiple identical answers
2013-05-18 18:07:34 +09:00
Damien Elmes
201b54777a leave new cards alone when exporting, so order is preserved (#447) 2013-05-17 16:22:11 +09:00
Damien Elmes
4aa634bc44 need greedy match on images 2013-05-17 16:20:27 +09:00
Damien Elmes
da66844f6b canonify tags when saving, and strip quotes (#794) 2013-05-17 13:51:49 +09:00
Damien Elmes
8f36841281 ensure we match on identical closing quote (#769) 2013-05-17 12:23:56 +09:00
Damien Elmes
403a53cebf shuffle after importing when random on (#576) 2013-05-16 21:55:57 +09:00
Damien Elmes
13a2943667 full media scan on fat32 drives (#844) 2013-05-16 17:58:30 +09:00
Damien Elmes
c8f4d3a582 check checksum of all filename alternatives when adding media
patch thanks to Julien Baley
2013-05-16 17:24:20 +09:00
Damien Elmes
3dd72ad4d6 log updates & duplicates (#859) 2013-05-16 17:24:12 +09:00
Damien Elmes
a7b9a7b055 fix bug where 2 buttons shown on second learn step (#864) 2013-05-16 17:10:31 +09:00
Damien Elmes
e06594a303 fix rescheduling of relearn cards (#874)
- need to reset 'odue'
- also need to reset 'due' so the new cards don't take on - timestamp
  positions
2013-05-16 16:36:37 +09:00
Damien Elmes
3f6266a712 fix duplicate search in browser (#855) 2013-05-16 14:17:28 +09:00
Damien Elmes
0dceb0ce22 round() doesn't convert to int 2013-05-15 23:37:27 +09:00
Damien Elmes
f7c5003c1c better error with very long fields in import (#852) 2013-05-14 18:38:35 +09:00
Damien Elmes
7ad33fea06 catch notes with invalid field count in db check 2013-05-14 18:12:31 +09:00
Damien Elmes
ab198c46be unify pre-check, sanity-check and upload error messages 2013-05-14 15:41:18 +09:00
Damien Elmes
79d4451299 move full sync into preferences, and remove maintenance menu 2013-05-14 15:27:40 +09:00
Damien Elmes
e913c75fd7 perform basic check prior to syncing 2013-05-14 15:10:58 +09:00
Damien Elmes
d2535fd6cb run basic integrity check prior to full up 2013-05-13 19:36:09 +09:00
Damien Elmes
a379e47ca5 handle cloned note types in mnemo import 2013-05-13 13:58:10 +09:00
Mike Blume
dcf097b55f use futuristic division
Python used to use C-style division, where division of two ints was
truncated, and division involving a float resulted in a float.

This is confusing, because you often can't tell from looking at a
line of code in isolation what sort of division it's supposed to do.

With 'from __future__ import division' Python ensures that division is
always explicit.

// means (floored) integer division
/ means float division

regardless of argument types.

This should make the source a bit clearer now, as well as removing one
obstacle if Anki is ever ported to Python 3.
2013-05-05 11:09:16 -07:00