Damien Elmes
328c73d0bc
ignore broken reset hooks in database check
...
ideally the original code should be correctly cleaning up the hooks,
but if it does not, then we don't want to repeatedly present the user
with confusing errors when they try to check their database is ok.
2018-12-15 13:14:33 +10:00
Damien Elmes
0c6cd8f1e8
restart mpv if it stops responding
...
https://anki.tenderapp.com/discussions/ankidesktop/31433-error
2018-12-13 21:30:17 +10:00
Damien Elmes
0e62ab7699
bump version
2018-12-13 21:03:56 +10:00
Damien Elmes
6e09d1c6ec
find comparisons needs to be normalized
...
this data should probably be normalized when it's originally
added to the collection
https://anki.tenderapp.com/discussions/ankidesktop/31409-cant-search-by-deck-when-searching-decks-containing-arabic-text
2018-12-13 20:36:04 +10:00
Damien Elmes
9a726d0e4e
bump version
2018-12-10 15:17:21 +10:00
Damien Elmes
87575674f9
scan for due learning cards more frequently
2018-12-10 12:11:45 +10:00
Damien Elmes
2e0ff282cc
disable wal on win32
...
another attempt at fixing 'database locked' errors on windows,
based on the suspicion that pysqlite is holding an open statement
handle that is preventing the switch from wal mode on close
also remove unused sync arg
2018-12-10 09:53:02 +10:00
Alexey Lebedeff
8a992a9f30
Make quotes consistent with surroundings
2018-12-01 10:52:19 +01:00
Alexey Lebedeff
ba67e3e71c
Fix searching for python 3.7
...
3.7 introduced a change to `re.escape()`, which no longer escapes
`%`. By using `re.escape("%")` instead of a literal, we can detect
a proper form at runtime.
2018-11-30 10:44:39 +01:00
Damien Elmes
c1f9f4e277
bump version
2018-11-27 19:40:27 +10:00
Damien Elmes
aeea07498c
update learning cutoff time periodically
...
prevents users from having to leave and return to the deck to show
cards that have become due during the study session
https://anki.tenderapp.com/discussions/ankimobile/8530-ankimobile-with-experimental-schedule-not-showing-due-cards-in-realtime
2018-11-27 19:37:46 +10:00
Damien Elmes
0560b6c4b2
limit find&replace fields to selected notes
2018-11-27 16:42:00 +10:00
Damien Elmes
4fb7fb07fd
find&replace should not be case sensitive on field
2018-11-27 16:34:48 +10:00
Damien Elmes
d532726adb
cap filename length when attaching media to cards
...
https://anki.tenderapp.com/discussions/ankidesktop/30953-can-not-paste-or-upload-images-into-deck
2018-11-27 14:45:38 +10:00
Arthur Milchior
690680bbe3
Using cardIds in AnkiExporter
2018-11-26 10:47:26 +01:00
Arthur-Milchior
708cc0a628
Change order of new cards
...
This commit corrects the following bug:
* Create a note N in an empty deck D of type basic (reverse), with
only some back, no front. Only card 2 will be generated.
* Edit the note, add a front. Card 1 will be generated.
* In the main window, try to learn deck D. In anki, currently, you'll
see Card 2 first. According to the manual (and to my common sens),
it should be Card 1 first.
This commit correct this bug, and ensure that new cards are seen
according to their order, and not to their creation date.
2018-11-20 21:50:36 +01:00
Damien Elmes
28c8d6eefa
be more verbose in importing dialog
...
Many users seem to get confused when duplicates are not imported,
so we list out what's being skipped now to help the users to be able
to search for the content.
2018-11-14 16:58:47 +10:00
Damien Elmes
9b1b142906
bump version
2018-11-13 11:30:27 +10:00
Damien Elmes
f576d19426
improve handling of invalid deck trees
...
- move checking code out of the schedulers and into the deck manager
- ensure we can fix the problem in one loop - the previous recursive
approach could lead to stack overflows if the top level of a large
deck tree was missing. this was also the cause of the sqlite
'interrupted' error that some users were seeing
2018-11-09 15:04:35 +10:00
Damien Elmes
321559c8db
Revert "increase db timeout"
...
This reverts commit 7a2dc6066c .
did not seem to help
2018-10-28 14:17:43 +10:00
Damien Elmes
9d20de871b
run latex commands without bundled libs
...
https://anki.tenderapp.com/discussions/ankidesktop/30531-latex-wont-generate-svgs-automatically-but-will-generate-pngs
2018-10-28 11:41:43 +10:00
Damien Elmes
b3d168664f
bump version
2018-10-25 14:52:49 +10:00
Damien Elmes
416c64c493
prevent infinite loop with invalid template
2018-10-20 19:37:01 +10:00
Damien Elmes
38189f53d0
fix bug in tag deletion
...
https://anki.tenderapp.com/discussions/ankidesktop/30146-removing-single-letter-tags-also-removes-any-other-tags-with-the-letter
2018-10-07 18:21:51 +10:00
Damien Elmes
0735a42cfa
bump version
2018-10-01 15:43:47 +10:00
Damien Elmes
f861faaf83
bump version
2018-09-28 18:49:38 +10:00
giqtaqisi
d10511627c
add support for Lojban
2018-09-26 16:15:07 +00:00
Damien Elmes
9be9d7c576
strictly enforce maxIvl
...
https://anki.tenderapp.com/discussions/ankidesktop/29904-bug-in-v2-scheduler-that-allows-exceeding-the-maximum-review-interval
2018-09-25 09:55:46 +10:00
Damien Elmes
0cfca6d70b
beta version
2018-09-24 19:17:35 +10:00
Damien Elmes
04ef57551e
fix translation path for packaged builds on Linux
2018-09-24 18:23:57 +10:00
Damien Elmes
7a2dc6066c
increase db timeout
...
possible workaround for 'database is locked' when switching
from WAL mode
https://anki.tenderapp.com/discussions/ankidesktop/29751-90dec2fdce28bb9f0bb7571f41edaff258e953d3
2018-09-24 17:25:23 +10:00
Damien Elmes
18af2db5aa
use custom mpv config folder
...
not the first time the default location has caused problems for users
https://anki.tenderapp.com/discussions/ankidesktop/29531-bug-ankis-version-of-mpv-loads-mpvconf-from-configmpv-on-macos
2018-09-24 16:26:08 +10:00
Damien Elmes
e7d8cef8b5
recover from decks with blank sections (eg '::deck')
2018-09-22 16:04:26 +10:00
Damien Elmes
df72b02dda
when rebuilding field cache make sure we don't discard filenames
...
stripHTMLMedia() already used in notes.py
2018-09-20 15:28:28 +10:00
Damien Elmes
2c24401d6b
support timeout customization
2018-09-19 23:47:54 +10:00
Damien Elmes
7d5b78ef95
add missing headers in get calls
2018-09-19 23:45:52 +10:00
Damien Elmes
a6eb0185dd
fix exporting of v2 colpkg in non-English language
...
https://anki.tenderapp.com/discussions/ankidesktop/29661-error-exporting-decks
2018-09-14 19:35:52 +10:00
Damien Elmes
10068e1009
fix stripping of html in conditional replacement
2018-09-13 14:38:18 +10:00
Damien Elmes
5ea4ac0c70
bump version
2018-09-05 20:23:39 +10:00
Damien Elmes
b1cd168447
days since creation needs to be calculated relative to rollover
...
https://anki.tenderapp.com/discussions/ankidesktop/29502-next-day-starts-experimental-v2-scheduler-bug
2018-09-05 20:21:30 +10:00
Damien Elmes
86bf9e53a0
prevent new users from downloading accidentally
2018-09-05 19:53:41 +10:00
Damien Elmes
beccd2abdf
bump version
2018-08-30 14:34:05 +10:00
Damien Elmes
46d27136ce
catch suspended new cards w/ wrong due number
...
https://anki.tenderapp.com/discussions/ankidesktop/29267-01
2018-08-30 12:43:53 +10:00
Damien Elmes
a1f576e339
bump version
2018-08-20 14:38:51 +10:00
Damien Elmes
48617b67a4
bump version
2018-08-09 16:29:43 +10:00
Damien Elmes
c4cd97f956
bump version
2018-08-08 23:48:29 +10:00
Damien Elmes
a27b65aad5
bump version
2018-08-08 12:47:19 +10:00
Damien Elmes
47c28295c0
bump version to 2.1.0
2018-08-06 14:17:13 +10:00
Damien Elmes
f61f9857b7
bump version
2018-07-28 18:50:55 +10:00
Damien Elmes
1d97d284e9
support dynamic sync url
2018-07-28 18:08:16 +10:00
Damien Elmes
c7620478cf
v2: limit learn delay fuzz to 5 minutes and sub-day
2018-07-28 13:56:56 +10:00
Damien Elmes
066adfd933
use scheduled ivl in lapse calculation
...
reverting to 2.0 behaviour
https://anki.tenderapp.com/discussions/effective-learning/1300-lapse-duration-not-being-honored-for-lapses-of-multi-stepday-relearn-cards
2018-07-27 15:02:41 +10:00
Damien Elmes
3c1aa8242f
chunk deletions to reduce load on AnkiWeb
2018-07-26 21:34:53 +10:00
Damien Elmes
ee5eedeb3b
strip out unused syncing code
2018-07-26 19:41:52 +10:00
Damien Elmes
e0f24b626f
better handle invalid deck list
...
deleting will fail if the problem deck is the default deck - better to
rename instead
fixes infinite recursion errors
2018-07-26 11:34:10 +10:00
Damien Elmes
9a0a3a2674
bump version
2018-07-23 13:59:02 +10:00
Damien Elmes
991aa7d402
fixes for mpv focus switching
...
- avoid changing focus if an Anki window is already focused
- only try to restore focus when playing videos
2018-07-23 13:57:09 +10:00
Damien Elmes
d78a6eb3fb
fix invalid cards when moving from v2->v1 sched
...
type needs to be reset from 3->2 when relearning cards removed from
learning
https://anki.tenderapp.com/discussions/beta-testing/1210-scheduling-error
2018-07-16 16:29:53 +10:00
Damien Elmes
134a788f9f
bump version
2018-07-11 22:40:05 +10:00
Damien Elmes
2fdd9c89d5
differentiate easy button more when reviewing early
...
apply half the easy bonus post ivl calculation, or else very early
reviews with longer intervals appear to have the same intervals as
answering 'good'
2018-07-11 22:18:46 +10:00
Damien Elmes
f656a2da09
support customizing hard factor
2018-07-11 21:23:22 +10:00
Damien Elmes
4dbf51ef9a
don't pull learning cards into v1 filtered deck
...
preventing emptying is harder - operations like suspending
don't expect remFromDyn() to fail
2018-07-11 20:28:14 +10:00
Damien Elmes
1e63ed2965
remove study card count cap in v2 sched
...
- cap kept for the deck list, as we need to calculate it for multiple
decks
- v2 sched can calculate review limit faster, as it doesn't have to
check each deck separately
- filtered deck cap is same as in interface
- as this will be deployed on ankiweb, beta clients will need to update
or risk getting sanity check errors when syncing with high due counts
2018-07-11 20:03:36 +10:00
Damien Elmes
7bc6b2beb0
Merge pull request #240 from maiself/avoid-reordering-when-importing
...
Avoid reordering entire deck when importing notes
2018-07-11 15:24:13 +10:00
Mai Lavelle
8832bfb7ee
avoid reordering entire deck when importing notes
...
No need to reorder existing cards, which may have been manually
ordered by the user, when importing notes if we can give cards
a proper due number from the start. Retrieving any sibling's
due number for this is easy as all relevant cards will have
already been queried for when generating the new cards.
2018-07-06 00:49:47 -04:00
Damien Elmes
9f7464fac2
fix media check with [$]{{c1::a}}{{c2::b}}[/$]
...
https://anki.tenderapp.com/discussions/ankidesktop/28625-cloze-deletion-in-latex-check-medias-regression-in-21
appears to have broken in 61cc3cec86
2018-06-28 13:11:04 +10:00
Damien Elmes
2949d4ceec
bump version
2018-06-25 20:27:45 +10:00
Damien Elmes
51f50e7b4c
make sure we don't put suspended leeches back in the learning queue
...
fixes
https://anki.tenderapp.com/discussions/beta-testing/1119-anki-210-beta-38#comment_45555453
2018-06-25 20:27:26 +10:00
Damien Elmes
3486511d02
Merge pull request #239 from emrysn/master
...
Update lang.py with correct Romanian language option
2018-06-18 10:19:46 +10:00
Floren
cb7df4972f
Update lang.py
2018-06-16 21:32:47 +03:00
Damien Elmes
580deee1be
bump version
2018-06-15 11:59:22 +10:00
Damien Elmes
5bc2b6395f
fix detection of multiline cloze deletions
2018-06-15 11:24:59 +10:00
Damien Elmes
d3fd519d0b
remove comments when stripping
...
gets rid of unwanted metadata from ms word pastes
2018-06-09 16:27:46 +10:00
Damien Elmes
34eb85cc77
make sure we don't import cards into a filtered deck
2018-06-08 14:51:55 +10:00
Damien Elmes
d352ec7581
ignore delay in hard case
...
https://anki.tenderapp.com/discussions/ankidesktop/27627-request-allow-setting-maximum-delay-for-interval-calculation-in-overdue-cards
2018-06-01 12:24:11 +10:00
Damien Elmes
1333019557
bump version
2018-05-31 16:26:31 +10:00
Damien Elmes
b7d3e5fa68
speed up v2 deckDueList() in many decks case
2018-05-31 16:21:33 +10:00
Damien Elmes
69cb9a9d37
fix incorrect scheduling when importing cards in relearning
...
private link:
https://anki.tenderapp.com/discussions/ankidesktop/28234
2018-05-31 13:27:59 +10:00
Damien Elmes
0562c7ba45
need to record active window prior to playing in mpv
2018-05-31 13:22:17 +10:00
Damien Elmes
f8101d0084
fix regular reviews being treated as relearning in v2 sched
2018-05-31 12:44:23 +10:00
Damien Elmes
3b91c1d6c5
cache deck name->obj map to improve many decks case
2018-05-29 19:30:13 +10:00
Damien Elmes
cc6ad80dd0
add Armenian lang
2018-05-28 11:23:24 +10:00
Damien Elmes
e6ef4267ca
bump version
2018-05-10 16:49:24 +10:00
Damien Elmes
0487620ce2
bump version
2018-05-01 14:41:18 +10:00
Damien Elmes
73ddd79967
work around video focus stealing
...
https://anki.tenderapp.com/discussions/ankidesktop/27401-bug-when-playing-a-video-on-anki-for-mac-anki-lanches-mplayer-and-doesnt-quit-it-or-return-to-anki
2018-04-30 17:12:26 +10:00
Damien Elmes
7ae073e955
check upload doesn't exceed ankiweb limits
...
better to abort prior to upload instead of giving a misleading error
2018-04-30 16:58:00 +10:00
Damien Elmes
cdee96baa6
add envvar to disable ssl verification
2018-04-30 15:36:55 +10:00
Dudemanguy911
0f6312ee68
force mpv --keep-open=no
2018-04-08 11:18:51 -05:00
Damien Elmes
d07c6e7978
fix memory leak caused by text_factory
2018-03-05 15:27:22 +10:00
Damien Elmes
fe52cc8fc9
bump version
2018-03-01 15:55:17 +10:00
Damien Elmes
5bcb76e176
don't convert quotes to entities on import
...
https://anki.tenderapp.com/discussions/ankidesktop/26926-bug-report-exporting-than-re-importing-messes-up-quotes
2018-03-01 13:38:06 +10:00
Damien Elmes
ce8f66fac8
normalize to NFC on all platforms
...
APFS is normalization-preserving, which results in spurious changes
being detected if we assume we'll receive NFD from file listings
this needs to be ported to 2.0.x as well
2018-02-28 16:22:06 +10:00
Damien Elmes
c8b5c9da42
increase default rev limit to 200
2018-02-27 12:58:24 +10:00
Damien Elmes
841e88c2a8
change sibling burying to default to off
...
causes too much confusion for new users
2018-02-22 17:00:11 +11:00
Damien Elmes
29597abe85
give hard a 1.5x interval when there's only one (re)learning step
...
otherwise we end up with two buttons that do the same thing
2018-02-06 15:41:56 +10:00
Damien Elmes
fe85b3bf26
misleading spacing
2018-02-06 11:47:28 +10:00
Damien Elmes
2c8668a5f9
bump version
2018-02-05 16:10:29 +10:00
Damien Elmes
80487ad664
rename _restoreFromFiltered
...
and use same logic as restoreQueueSnippet
2018-02-02 19:10:35 +10:00
Damien Elmes
b9932249e3
remove _cidsByDid()
...
no longer necessary
2018-02-02 16:55:53 +10:00
Damien Elmes
32241b9cb1
fix is:buried in v2 scheduler
2018-02-02 16:17:26 +10:00
Damien Elmes
067191b8cc
simplify rev card answering
2018-02-02 15:19:41 +10:00
Damien Elmes
3d3cf3d135
fix no relearn steps case in v2 sched
2018-02-02 14:30:53 +10:00
Damien Elmes
4f281b5db0
v2 sched cleanups
2018-02-02 12:44:56 +10:00
Damien Elmes
386329fc09
include average answer time for today
2018-01-31 17:35:22 +10:00
Damien Elmes
ce89d769c3
bump version
2018-01-31 15:34:04 +10:00
Damien Elmes
58f51ca095
make sure we don't import v1 scheduling into a v2 collection
2018-01-31 15:33:58 +10:00
Damien Elmes
7013cbcd57
experiment with counting learning cards instead of learning steps
...
When studying, the learning count now indicates the number of
learning cards due within the learn ahead limit, instead of the total
number of learning steps required to complete that day.
Also fix the ineffective limit clauses in the learning counts.
2018-01-31 14:50:17 +10:00
Damien Elmes
bcbc6ee44a
fix check for nesting under filtered deck
2018-01-31 11:40:16 +10:00
Damien Elmes
a681a8e299
enable syncing w/ v2 scheduler, and bump sync version
...
any client using a sync version of 9 must be able to handle
the V2 scheduler
2018-01-30 17:52:03 +10:00
Damien Elmes
c474f58748
enforce schema version; allow importing+exporting v2 scheduler
...
To avoid all sorts of problems, we need to ensure cards scheduled with
the V2 scheduler are not studied in older clients. Unfortunately we
can't just bump the file's schema version, as the existing clients will
freely import files created with newer versions. This patch changes
that, so things should be a bit easier in the future.
In the mean time, we need a way to prevent older clients from importing
files created with the V2 scheduler. To do this, we switch to using a
'collection.anki21' file in the archive, and include a dummy collection
.anki2 file.
The code has been tested with both deck and collection packages, but
exporting deck packages w/ scheduling info will remain disabled until
the V2 scheduler has had more testing.
2018-01-29 14:12:04 +10:00
Damien Elmes
4545db7e8c
remove unused bundled certs
2018-01-27 16:08:31 +10:00
Damien Elmes
82957a1c4f
bump version
2018-01-27 15:48:27 +10:00
Damien Elmes
15f4304920
re.escape leaves _ alone in python 3
2018-01-27 15:15:07 +10:00
Damien Elmes
8d536a16e8
fix error on final step of lapsed card
...
https://anki.tenderapp.com/discussions/beta-testing/968-experimental-scheduler-in-anki-210beta31#comment_44552449
2018-01-22 12:10:39 +10:00
Damien Elmes
a5dbb8287d
bump version
2018-01-22 11:25:09 +10:00
Damien Elmes
fa3b70236c
linux mpv doesn't understand --input-media-keys
2018-01-21 10:34:29 +10:00
Damien Elmes
13d7319c60
bump version
2018-01-20 16:12:09 +10:00
Damien Elmes
7c79f24916
add option to show day learn cards before reviews
2018-01-20 16:07:57 +10:00
Damien Elmes
65b81b0a47
make preview delay customizable
2018-01-20 15:26:11 +10:00
Damien Elmes
b8c498b570
fix counts in preview mode
...
We can't preserve the original queues when in preview mode, as
otherwise the due counts report the remaining steps of cards in
the learning queue, instead of just 1.
Rather than the rather complicated approach of making the learning and
deck list code aware of the current mode we're in, preview mode moves
all cards to the review queue when the filtered deck is built - just as
cards are moved to the new queue in Anki 2.0.x. The reason for the
review queue is that users were frequently confused when cards appeared
as new - hopefully this is slightly less confusing.
2018-01-20 14:22:57 +10:00
Damien Elmes
96cb1e6dd9
return to win32 audio driver on windows
...
fixes various playback issues some users were experiencing
2018-01-20 13:41:12 +10:00
Damien Elmes
43d5589e6a
prevent exceptions when invalid utf-8 in db
2018-01-20 11:23:49 +10:00
Damien Elmes
f6669cc362
work around some decks with mod time stored as string
2018-01-19 11:42:06 +10:00
Damien Elmes
07dcacf09b
remove format literals so we can support python 3.5
2018-01-16 16:07:30 +10:00
Damien Elmes
0612e20dfe
bump version
2018-01-14 19:32:31 +10:00
Damien Elmes
5b8f2ad4e5
bump version
2018-01-14 17:53:09 +10:00
Damien Elmes
1f818aa10b
disable syncing and deck exports for v2 sched
2018-01-14 17:35:59 +10:00
Damien Elmes
5f22a067e2
extra newline
2018-01-14 17:01:39 +10:00
Damien Elmes
3c728e60f5
support sched versions in collection
2018-01-14 16:58:04 +10:00
Damien Elmes
59aa78f253
code in new scheduler to move between versions
2018-01-14 16:57:40 +10:00
Damien Elmes
1b88490bb1
add old sched code back
2018-01-14 16:55:07 +10:00
Damien Elmes
cdb3ee4702
rename new sched code to schedv2.py
2018-01-14 16:54:48 +10:00
Damien Elmes
0482a37517
support a second filter in filtered decks
2018-01-14 13:08:38 +10:00
Damien Elmes
f671a7aa99
store day rollover relative to local time
2018-01-14 12:16:53 +10:00
Damien Elmes
3f3fbd6fe3
make sure we log the correct type when card.type=3
2018-01-14 12:16:53 +10:00
Damien Elmes
f6176748c5
don't fetch reviews in deck order
...
- fetch reviews from all child decks at once, sorted by due order
- shuffle the gathered cards as we did previously
- review limits on child decks are ignored - only the current deck and
its parents control what the limit is
- to make the deck list consistent with actual counts, we can't sum the
child counts, as the sum in the parent limit>child limit case may not
reflect the actual number of cards that would be presented
2018-01-14 12:16:53 +10:00
Damien Elmes
65c779f25d
distinguish between buried siblings and manually buried cards
2018-01-14 12:16:53 +10:00
Damien Elmes
38cd7f543a
preserve learning/filtered state when suspending/burying
...
add new card type of 3 so we can distinguish cards in relearning from
normal reviews
2018-01-14 12:16:53 +10:00
Damien Elmes
a312ccf32e
experiment with simple resched=off case to 'preview mode'
...
the previous approach meant we weren't able to preserve the card state
exactly when cards were in learning, since we didn't record the step
position prior to cards being moved into the filtered deck.
it also meant the answer buttons needed to change depending on state - 4
for cards in learning/review, but 2 when the card is on the final step
or is a review.
instead, in preview mode cards always have 2 buttons: again will repeat
again after a delay, and good immediately removes the card and restores
it to its previous state.
to accomplish this, we use a separate queue #, as the learn count
always needs to have a 1:1 correspondence to the number of cards
2018-01-14 12:16:53 +10:00
Damien Elmes
accf75be26
tweaks to interval constraining
...
- move fuzzing into _constrainedIvl() so it's applied prior to limits
like maxIvl
- don't fuzz early reviews, so cards get the same interval if a filtered
deck is rebuilt again
2018-01-14 12:16:53 +10:00
Damien Elmes
60db50a285
use the review queue for undue reviews
2018-01-14 12:16:53 +10:00
Damien Elmes
4b581c9f77
schedtest changes, squashed from local branch
2018-01-14 12:16:53 +10:00
Carl Hofmeister
430d38223c
Fix string decode error when importing csv files
2017-12-31 14:01:47 -06:00
Damien Elmes
d08f6c4f46
bump version
2017-12-24 22:27:09 +10:00
aakatov
793e12a84c
fix play sound with HTML special symbols in its filename
2017-12-23 12:36:26 +03:00
Damien Elmes
b5c17cb370
bump version
2017-12-22 21:48:13 +10:00
Damien Elmes
9230211809
different cloze colour in night mode
2017-12-20 16:05:28 +10:00
Damien Elmes
174e1a46b3
fix error when importing
2017-12-12 11:55:27 +10:00
Damien Elmes
39bc5d42ae
fix mpv warnings
2017-12-11 17:26:25 +10:00
Damien Elmes
83b220f931
more open() and regex strings
2017-12-11 17:25:51 +10:00
Damien Elmes
7bc9fd6d04
move regex flags to start of string
2017-12-11 16:42:19 +10:00
Damien Elmes
ebfc475efe
fix 'unclosed file' warnings with python -Wall
2017-12-11 16:38:15 +10:00
Damien Elmes
ccb39c5f50
cgi.escape is deprecated
2017-12-11 16:20:00 +10:00
Damien Elmes
4875d0502e
add the ability to disable cert verification
2017-12-07 17:15:20 +10:00
Damien Elmes
54780dcd53
work around pops in recording start
...
https://anki.tenderapp.com/discussions/ankidesktop/26005-when-recording-sound-on-mbp
on my machine, the pops start around sample 2048 of a 44.1khz recording,
and only for the first recording after the audio hardware has gone to
sleep
2017-12-05 11:07:52 +10:00
Damien Elmes
857c9a5cea
bump version
2017-12-04 12:58:29 +10:00
Damien Elmes
5f787d6d3c
play question audio when preview set to 'show both sides'
2017-12-04 12:45:22 +10:00
Damien Elmes
b2c2cbf421
fix time translation patch
2017-12-04 12:33:23 +10:00
Damien Elmes
7c520c55df
night mode
2017-12-04 12:20:56 +10:00
Damien Elmes
7fbbee43e6
add catalan
2017-12-03 16:06:56 +10:00
Piotr Kubowicz
b821c70929
Allow to better translate "in x minutes"
...
"There is 1 minute" and "in 1 minute" need to be translated
differently in Slavic languages.
Additionally remove unused afterTimeTable.
2017-11-30 20:03:51 +01:00
Damien Elmes
63c03eea83
bump version
2017-11-27 11:17:42 +10:00
Damien Elmes
e3a29ac3d1
accept current and future mnemosyne imports
2017-11-27 10:49:38 +10:00
Damien Elmes
b632a1805d
restore media dir mod check
...
https://anki.tenderapp.com/discussions/beta-testing/853-anki-210-beta-21/page/1#comment_44071381
2017-11-20 14:22:53 +10:00
Damien Elmes
3cda126717
bump version
2017-11-17 17:35:36 +10:00
Damien Elmes
a97f1d87ff
detect image extension, catch errors, add timeout
2017-11-17 17:30:01 +10:00
Damien Elmes
ee4e1cadbf
fix crash when deleting nested default deck
...
https://anki.tenderapp.com/discussions/ankidesktop/25777-bug-report-syn
2017-11-14 13:13:52 +10:00
Damien Elmes
7d9530377e
bump version
2017-11-11 12:15:38 +10:00
Damien Elmes
1631160ddc
favour most recent modified when importing template changes
2017-11-11 12:11:45 +10:00
Damien Elmes
97833c71ad
fix stutter when multiple audio files on card on windows
...
setting playlist pos to 0 was causing half-played sound to restart
2017-11-10 19:52:20 +10:00
Damien Elmes
3da4b9f60e
bump version
2017-10-27 18:07:29 +10:00
Damien Elmes
87d19a2619
bump version
2017-10-26 19:57:47 +10:00
Damien Elmes
ffcd0833be
bump version
2017-10-25 20:47:00 +10:00
Damien Elmes
86c50f067c
drop experimental prewrap mode
...
- pasting in prewrap mode had been broken for a while and nobody noticed
- needs changes to export code and cloze handling code to deal with the
newlines
- newline rewriting in filterNode() is likely fragile
- may revisit post 2.1
2017-10-25 19:18:00 +10:00
Damien Elmes
d35210c42b
don't leave a wav file lying around when recording
2017-10-25 18:35:39 +10:00
Damien Elmes
61cc3cec86
fix detection of media refs in cloze
...
https://anki.tenderapp.com/discussions/beta-testing/796-another-check-media-issue
2017-10-18 21:56:57 +10:00
Damien Elmes
3b23cdafc2
bump version
2017-10-13 13:12:36 +10:00
Damien Elmes
6a61516622
don't capture media keys
2017-10-13 13:11:22 +10:00
Damien Elmes
0fa24f4e0b
probable fix for win32 startup errors; add timeout to mpv start
2017-10-13 12:14:40 +10:00
Damien Elmes
f87bd23f3f
bump version
2017-10-11 14:50:28 +10:00
Damien Elmes
37dc564402
bump version
2017-10-05 17:26:48 +10:00
Damien Elmes
253dcd5e1f
don't show album artwork
2017-10-05 14:35:58 +10:00
Damien Elmes
1edcafcd5d
add coding: line to mpv.py for xgettext
2017-10-02 16:41:14 +10:00
Damien Elmes
fac3ee4604
bump version
2017-10-02 16:38:20 +10:00
Damien Elmes
c9aac25fba
integrate _packagedCmd() into mpv for binary distrib
2017-10-02 16:37:52 +10:00
Damien Elmes
28893890f5
turn off mpv debug
2017-09-30 19:33:09 +10:00
Damien Elmes
975f19b642
use named pipes for mpv on windows
...
currently using non-blocking mode which involves a sleep in the read
loop - overlapped i/o might be a better option in the future
2017-09-30 19:32:48 +10:00
Damien Elmes
7a3bcc62ae
mpv support
2017-09-30 19:29:48 +10:00
Damien Elmes
5c4296d41c
mpv.py fixes
...
- enable input keys for video seeking
- output debug info to stdout so it's not caught by anki's error handler
- before sending a command, check the process is still alive, and
restart if necessary - otherwise a user who closes a video window will
end up with errors
2017-09-30 19:29:48 +10:00
Damien Elmes
4f0afb0a20
add mpv.py
2017-09-30 19:29:48 +10:00
Damien Elmes
5af1d67cef
fix normalization in normal import
2017-09-30 19:29:33 +10:00
Damien Elmes
8cfc1e1315
stripHTML() should work when tag split over multiple lines
2017-09-30 15:33:05 +10:00
Damien Elmes
ed0561e914
another fix for mathjax+cloze
2017-09-12 13:53:08 +10:00
Damien Elmes
830258b2b3
Merge pull request #209 from sieben/simplify_comparisons
...
Simplify comparisons
2017-09-11 15:01:07 +10:00
Damien Elmes
a3c2efee89
Merge pull request #208 from sieben/none_comparison
...
Comparison with None shouldn't use equality
2017-09-11 15:01:01 +10:00
Rémy Léone
2a2b4a86dd
Simplify comparisons
2017-09-10 15:32:51 +02:00
Rémy Léone
4ee2ebdada
Comparison with None shouldn't use equality
...
That type of comparisons should always be done with 'is' or 'is not',
never the equality operators.
2017-09-10 15:30:22 +02:00
Rémy Léone
02fc117096
Remove trailing semicolon
2017-09-10 14:41:38 +02:00
Damien Elmes
f10968769f
fix broken cloze deletion
2017-09-10 19:51:25 +10:00
Damien Elmes
2460311f6a
bump version
2017-09-10 18:54:08 +10:00