Commit Graph

5387 Commits

Author SHA1 Message Date
Damien Elmes
8ca023048a add coding specifier to anki/__init__.py
older gettext versions will complain otherwise (was breaking Windows CI)
2020-11-11 21:51:11 +10:00
Damien Elmes
5536ffb343 update qt/ to 3.8 as well 2020-11-11 21:37:36 +10:00
Damien Elmes
0fcccae6e8
Merge pull request #817 from cecini/formatcheck
Update mypy and black format check to python version 3.8
2020-11-11 21:36:32 +10:00
Damien Elmes
adbef730a6 ensure repos.bzl is up to date at end of run 2020-11-11 21:26:47 +10:00
Damien Elmes
cb69ee9d09 update translations 2020-11-11 21:23:38 +10:00
Damien Elmes
64fffd1bfc add option to skip pot update; update sha1 after commit 2020-11-11 21:23:27 +10:00
Damien Elmes
84c1e7bdd2 sort merged po files 2020-11-11 21:18:41 +10:00
Damien Elmes
8d4df820cc update i18n scripts
- export updated .po files for consumption
- add a script to pull and push translations
2020-11-11 21:08:06 +10:00
cecini
62da8e6a40 Update mypy and black format check to python version 3.8 2020-11-11 09:24:28 +00:00
Damien Elmes
d89a1106f8 update translations 2020-11-11 18:34:41 +10:00
Damien Elmes
c4f28a0a17 prep for i18n updates
Update scripts will be split into separate repo
2020-11-11 16:18:28 +10:00
Damien Elmes
a97ea55f17 Windows doc updates 2020-11-11 15:42:38 +10:00
Damien Elmes
fd5815653f fix error exporting v2 collection when translations don't match
https://forums.ankiweb.net/t/utf8-error-in-importing-deck/4430/13
2020-11-11 15:42:08 +10:00
Damien Elmes
8a2cd15fd6 add Makefile and README from packaged Linux version 2020-11-11 13:57:38 +10:00
Damien Elmes
f8f2839b55 add pyqtwebengine to wheel deps and bump minimum required pyqt 2020-11-11 10:33:49 +10:00
Damien Elmes
6e3f971ae1 handle packaged pylib buildinfo.txt; drop aqt buildinfo 2020-11-11 10:33:49 +10:00
Damien Elmes
013d1d404a add bazel version check for external consumers 2020-11-11 10:33:49 +10:00
Damien Elmes
e99c0dbe15
Merge pull request #793 from nwwt/object-audio-tags-support
Audio & object tag support
2020-11-11 10:33:31 +10:00
Andreas Reis
54f51da944 Allow <audio> to play without user interaction in accordance to autoplay setting
Since 2018, Chromium by default requires at least one user interaction with a page in order for sound to play. That's not what an Anki user expects.

So this commit undoes this by setting the policy accordingly if the deck's settings have autoplay set, so that files in <audio> tags (if they further have the autoplay attribute set / are jscripted accordingly) are treated the same as ones in [sound:…] elements. OFC, it's obviously not a good idea to mix both on one card.

(AnkiDroid's WebView has already been unconditionally ignoring the requirement since forever.)
2020-11-10 14:53:45 +01:00
Andreas Reis
e68a40f13e cleanup / renames
・ soundRegexps →  sound_regexps

・ htmlRegexps →  html_media_regexps

・ HTML_TAGS →  HTML_MEDIA_TAGS

・ escapeImages →  escape_media_filenames + alias

・ strip_html_preserving_image_filenames →  strip_html_preserving_media_filenames
2020-11-10 14:53:04 +01:00
Damien Elmes
e3eca1c563 bust CI cache 2020-11-10 09:48:42 +10:00
Damien Elmes
b74166bc78 update to cargo-raze 0.7.0 + latest deps
Gives us wildcard entries in raze.toml, and solves warnings about
unrecognized "raze" entries.
2020-11-10 09:48:42 +10:00
Damien Elmes
92e516c6b0
Merge pull request #811 from ianki/media_filters_head
Add hooks for filtering media.
2020-11-09 20:41:56 +10:00
ianki
c2901e4859 Add hooks for filtering media. 2020-11-09 02:12:23 -08:00
Damien Elmes
20f0c887eb
Merge pull request #814 from k12ish/master
Improve compatibility with graphics pad/touchscreen
2020-11-09 19:42:41 +10:00
Damien Elmes
b38218f7c6
Merge pull request #813 from RumovZ/fix-search-combos
Fix clicking filters with keyboard modifiers
2020-11-09 19:42:13 +10:00
Damien Elmes
e5059a5dff update Windows CI 2020-11-09 19:09:23 +10:00
k12ish
cc5cb1eab6
Update CONTRIBUTORS 2020-11-08 18:49:12 +00:00
k12ish
da7063f16b Revert "Update CONTRIBUTORS"
This reverts commit 78168c72ec.
2020-11-08 18:38:02 +00:00
k12ish
78168c72ec Update CONTRIBUTORS 2020-11-08 18:34:30 +00:00
k12ish
b592e20a3c Improve compatibility with graphics pad/touchscreen
When using anki with a graphics pad, text is often selected on accident. This snippet of CSS will fix that issue
2020-11-08 18:14:37 +00:00
RumovZ
557616f36a Fix clicking filters with keyboard modifiers 2020-11-08 11:05:11 +01:00
Damien Elmes
37695da713 fix missing QAudioDeviceInfo on macOS 2020-11-06 12:01:37 +10:00
Damien Elmes
ecab88d8c5
Merge pull request #808 from sobjornstad/reposition-highlight
Start with default value in reposition spinbox selected
2020-11-06 11:09:15 +10:00
Damien Elmes
96f77b4b5e
Merge pull request #805 from cecini/duecounts
align rslib get_subnode impl with anki pythonapi find_deck_in_tree
2020-11-06 10:57:49 +10:00
Damien Elmes
c157ccb3f5 handle notes with invalid utf8 2020-11-06 10:21:51 +10:00
Damien Elmes
96f6b94dba disable Windows CI for now 2020-11-05 21:00:02 +10:00
Damien Elmes
61bf2f80eb doc updates 2020-11-05 20:25:48 +10:00
Damien Elmes
c42325cb49 fix aqt version requirement; use py3 instead of cp38 tag 2020-11-05 20:25:08 +10:00
Damien Elmes
abf34b561e Revert "remove gif-lfs"
This reverts commit 1c5b82ff75.

Issue fixed.
2020-11-05 18:46:22 +10:00
Damien Elmes
bbdfd61eb8 packages.bzl -> repos.bzl; update rules_rust 2020-11-05 14:22:45 +10:00
Damien Elmes
1c5b82ff75 remove gif-lfs
https://github.com/actions/virtual-environments/issues/1983
2020-11-05 12:31:14 +10:00
Damien Elmes
6f95a7f3e2 migrate away from insecure add-path statement 2020-11-05 12:27:36 +10:00
Damien Elmes
38e4428c4a gettext and bazelisk come standard on macOS runner 2020-11-05 12:24:10 +10:00
Damien Elmes
2efcf8a9d0 show Bazel timestamps in CI 2020-11-05 12:23:06 +10:00
Damien Elmes
9f215e2f7a experiment with repo/disk cache instead of output root
edit to trigger rebuild
2020-11-05 12:07:01 +10:00
Damien Elmes
3f47ff9abd fix missing buildinfo on Windows 2020-11-05 11:21:27 +10:00
Damien Elmes
29ae7480f2 cleanups 2020-11-05 11:21:13 +10:00
Damien Elmes
95317a4f17 fix backend_pb2 race 2020-11-05 11:02:40 +10:00
Damien Elmes
264dd8f1ea fix external consumption of ts rules, and simplify import path 2020-11-05 11:01:52 +10:00