Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

151: Make (locale) compatible with Anki 2.1.22 and up #155

Open
wants to merge 113 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
e36d74d
Merge pull request #43 from dae/master
glutanimate Dec 9, 2017
dbe897c
Fix options dialog
glutanimate Jan 4, 2018
9264113
Update .gitignore
glutanimate Jan 4, 2018
bf5a2b9
encoding redux
khonkhortisan Feb 25, 2018
90311b0
Merge pull request #49 from khonkhortisan/patch-1
glutanimate Feb 25, 2018
1003ca1
Migrate to new project structure
glutanimate Mar 12, 2018
b8d1c6a
Disable generation of incomplete UI
glutanimate Mar 12, 2018
a7dcb55
Re-implement button icons (fixes #52)
glutanimate Mar 13, 2018
d5d7468
Run pylint and autopep8
glutanimate Mar 13, 2018
20a43cf
Use version check in consts
glutanimate Mar 13, 2018
0173582
Refactor onIoSettings and set it as config action (closes #53)
glutanimate Mar 13, 2018
8e13c29
Update gitignore
glutanimate Mar 14, 2018
b49d363
Fix aqt.editor context menu (fixes #61)
glutanimate Mar 14, 2018
6304b7b
Restore mask reveal hotkey (#51 part 1)
glutanimate Mar 14, 2018
1e5c6c5
Restore preserving the scroll position (#51 part 2)
glutanimate Mar 14, 2018
972f54c
Fix help dialogs (fixes #59)
glutanimate Mar 14, 2018
ad6035a
Fix color selectors in options menu (#58)
glutanimate Mar 14, 2018
8679432
Apply editor styling through conditional CSS class rather than JS calls
glutanimate Mar 17, 2018
397985f
Force editor.Editor reload after I/O note editing
glutanimate Mar 17, 2018
dacafaf
Switch to version-agnostic svg-edit path
glutanimate Mar 18, 2018
dc85b92
Refactor config module; Update config version number
glutanimate Mar 18, 2018
303d3eb
Ability to perform incremental updates to templates
glutanimate Mar 18, 2018
cdb2631
Set up add-on configuration and templates at profile initialization
glutanimate Mar 18, 2018
7be290d
Only load original image after mask loading has completed
glutanimate Mar 18, 2018
6aa60e7
Update UI build task
glutanimate Jun 22, 2018
7f3fd9a
Relabel note generation modes
glutanimate Jun 22, 2018
8b2693e
Notify users of "Hide All, Reveal All" obsolescence, link alternatives
glutanimate Jun 22, 2018
1c30ea9
Refactor dialogs module. Move most dialog messages to dialogs. Always…
glutanimate Jun 23, 2018
d7c680b
Restore non-modal dialog in adding mode (fixes #67)
glutanimate Jun 24, 2018
b7fba1a
Make sure to close dialogs before Anki exits (fixes #68)
glutanimate Jun 24, 2018
715df1e
Fix extension button font
glutanimate Jun 28, 2018
c6f9cbc
Notify Python of SVG-Edit readiness
glutanimate Jun 28, 2018
2f7e41a
Only show SVG-Edit once ready. New ImgOccEdit instance on each edit.
glutanimate Jun 28, 2018
5048951
Call fitImageCanvas on changing image (resolves #42)
glutanimate Jun 28, 2018
bfe6339
Fix profileUnload hooks, take care to remove them once no longer needed
glutanimate Jun 28, 2018
f5f7885
Implement loading animation (fixes #73)
glutanimate Jun 28, 2018
6dac389
Run autopep8
glutanimate Jun 28, 2018
b0acf81
Fix AttributeErrors resulting from object renaming / deletion
glutanimate Jun 28, 2018
9d2f956
Call exporer.exe instead of using os.startfile
glutanimate Jun 28, 2018
a092283
Don't assign parent to ImgOccEdit instances
glutanimate Jun 29, 2018
7a960d1
Merge branch 'anki2.1' while resolving merge conflicts
glutanimate Jun 29, 2018
12eb009
Update README. Add alpha AnkiWeb description.
glutanimate Jun 29, 2018
0e8cd86
Update docs
glutanimate Jul 21, 2018
97eaeaa
Don't try to reload ed.web whent it's None.
zjosua Dec 4, 2018
ad49e6d
Quick hotfix for Anki 2.1 compatibility
glutanimate Dec 11, 2018
dc6662b
Revert 5908e137d1ac7d0616b6a6ab37438d8c3dc32c55
glutanimate Dec 24, 2018
496b559
Merge pull request #88 from zjosua/no-editorwebview
glutanimate Mar 22, 2019
98063cc
Potential fix for rare AttributeError when closing browser
glutanimate Apr 11, 2019
597f517
Add manifest file
glutanimate Apr 14, 2019
5f98f4d
Update .gitignore
glutanimate Apr 14, 2019
b28dbc9
Update manifest
glutanimate Apr 14, 2019
3ba94f3
Preliminary support for *.ankiaddon builds
glutanimate Apr 14, 2019
e3d60a9
Update to new repo structure
glutanimate Jun 1, 2019
15ee9a2
Remove anki20 target as current build no longer supports it
glutanimate Jun 1, 2019
ebb2148
Clarify function of requirements.txt
glutanimate Jun 1, 2019
a0404e5
Tweak logo size
glutanimate Jun 1, 2019
678261f
Remove "v" tag prefix and add missing entry
glutanimate Jun 1, 2019
8defe0d
Tweak README
glutanimate Jun 1, 2019
1641241
Use 2.1 name
glutanimate Jun 1, 2019
17a9bb8
Go back to regular name to avoid confusion
glutanimate Jun 1, 2019
061975b
beta → stable
glutanimate Jun 1, 2019
4506fc5
Tweak README
glutanimate Jun 1, 2019
14f762b
Save clipboard images as jpg by default.
zjosua Jun 22, 2019
2cc1470
Use Anki's `mw.pm.profile["pastePNG"]` to determine pasting behaviour.
zjosua Jun 22, 2019
f2439a4
Fix typos
glutanimate Aug 9, 2019
e711c8a
Move vendorized packages to _vendor, drop PIL, add imghdr
glutanimate Sep 11, 2019
b75f9f5
Refactor image identification, making it more robust and expressive
glutanimate Sep 11, 2019
12aaabd
Update CHANGELOG
glutanimate Sep 11, 2019
953b91a
Bump version: 1.3.0-alpha.4 → 1.3.0-alpha5
glutanimate Sep 11, 2019
0b77124
Fix CHANGELOG links
glutanimate Sep 11, 2019
a4e0157
Fix additions_by_version data type
glutanimate Sep 11, 2019
18bbcd9
Fix issue #95 (crash in in-group editing mode)
5hir0kur0 Dec 4, 2019
bd10bd3
128: Add localisation support
Noxgrim Dec 12, 2019
f6b75dd
124: Add German translation and move old file to .pot file
Noxgrim Jan 18, 2020
7ea76b3
124: Remove unused references to multi threading
Noxgrim Feb 23, 2020
87f7798
Fix version number
glutanimate Mar 7, 2020
509acb4
Use double quotes in queries and don't quote the field name individually
zjosua Mar 24, 2020
de0a8a8
Merge pull request #139 from zjosua/query-quotes
glutanimate Apr 6, 2020
b794a51
Change config access
zjosua Apr 11, 2020
ae2a7aa
Update bug report template
glutanimate Apr 13, 2020
9522c0c
Merge pull request #143 from zjosua/config-db
glutanimate Apr 13, 2020
5245961
Revert "Change config access"
glutanimate Apr 13, 2020
4cad106
Merge pull request #146 from glutanimate/revert-143-config-db
glutanimate Apr 13, 2020
13326c6
Merge branch 'master' of https://github.com/Glutanimate/image-occlusi…
glutanimate Apr 28, 2020
bb716f8
Update CHANGELOG
glutanimate Apr 28, 2020
aacc32a
Bump version: 1.3.0-alpha5 → 1.3.0-alpha6
glutanimate Apr 28, 2020
7148db9
Fix version number
davidculley Apr 28, 2020
cf781a1
Merge pull request #150 from davidculley/fix-version-number
glutanimate Apr 28, 2020
751b5ec
Drop remnants of Anki 2.0 support
glutanimate Jun 4, 2020
5942527
Remove references to Anki 2.0 from repo health files
glutanimate Jun 4, 2020
960107b
Merge pull request #122 from 5hir0kur0/issue-95-ctrl-enter-crash
glutanimate Jun 4, 2020
39e8d71
Merge pull request #105 from zjosua/paste-png
glutanimate Jun 4, 2020
4caab1b
Remove obsolete Anki 2.0 entry point
glutanimate Jun 4, 2020
1352003
Begin migrating to new hook system
glutanimate Jun 4, 2020
9c30461
Migrate reviewStateShortcuts to state_shortcuts_will_change
glutanimate Jun 4, 2020
762b642
Migrate Editor.setNote to on_editor_will_load_note
glutanimate Jun 4, 2020
0dd33c1
Migrate to single-shot web modifications, use on_webview_will_set_con…
glutanimate Jun 4, 2020
99f8e63
Update .gitignore
glutanimate Jun 4, 2020
e0b4ab1
Clarify which Anki versions support which hooks
glutanimate Jun 4, 2020
df8b1c2
Migrate to profile_will_close and browser_menus_did_init
glutanimate Jun 4, 2020
8ec07be
Update copyright year and author URL
glutanimate Jun 4, 2020
61e76f4
Unify all copyright headers
glutanimate Jun 4, 2020
f830e46
Fix remaining headers
glutanimate Jun 4, 2020
59564f5
Merge branch 'master' into 124-add-translation-capability
glutanimate Jun 4, 2020
95e8193
Merge pull request #125 from Noxgrim/124-add-translation-capability
glutanimate Jun 4, 2020
80ea5a2
Run "black"
glutanimate Jun 4, 2020
c1766a2
Bump to dev version
glutanimate Jun 4, 2020
4480b28
Clarify licensing situation with vendored libs
glutanimate Jun 5, 2020
bcb2cc1
Vendor libaddon
glutanimate Jun 5, 2020
6db16be
Initialize libaddon, adding typing support
glutanimate Jun 5, 2020
6e05330
Temporarily replace lang.currentLang with lang.currentLang
glutanimate Jun 5, 2020
b2efb40
Package SVG-Edit 5.1.0
glutanimate Jun 5, 2020
6d96f70
151: Make compatible with Anki 2.1.22 and up
Noxgrim Jun 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 8 additions & 17 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
# Exclude files from deployment:
## git files
.gitattributes export-ignore
.gitignore export-ignore
## duplicate documentation
PAGE.md export-ignore
README.md export-ignore
## build script
build_zip.sh export-ignore
## tools
tools export-ignore
## screenshots
/screenshots export-ignore
# Adjust GitHub linguist settings:
image_occlusion_enhanced/svg-edit/* linguist-vendored
image_occlusion_enhanced/Imaging/* linguist-vendored
image_occlusion_enhanced/uuid/* linguist-vendored
image_occlusion_enhanced/imagesize/* linguist-vendored
tools/fixiocards/* linguist-vendored
PAGE.md linguist-documentation
.github export-ignore
docs export-ignore
screenshots export-ignore
addon.json export-ignore
# Adjust GitHub linguist settings
## Vendored
src/*/libaddon linguist-vendored
src/*/_vendor linguist-vendored
3 changes: 3 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

patreon: glutanimate
ko_fi: glutanimate
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: 'bug'
assignees: ''

---

#### Problem description

*Please describe the issue concisely in here. In case of an error: Walk us through the steps you took to get there. What happened? What did you expect to happen?*


#### Checklist

*Please replace the space inside the brackets with an **x** if the following items apply:*

- [ ] I've restarted Anki to see if it helps
- [ ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
- [ ] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
- [ ] I've tried to disable other add-ons to see if there are any interactions present
- [ ] My issue disappears when I hold shift while starting Anki.
- [ ] I've checked if anyone else reported this problem before by looking through the issue reports. I also checked to see if there is a section about known issues in the add-on description, documentation, or README.


#### Information about your Anki set-up

*Please open Anki, go to Help → About, click on "Copy Debug Info", and paste the result between the backticks below (if the button does not appear you are using an older version of Anki 2.1 and will need to update first):*

```

```

#### Error message (if any)

*If you've received an error message, please copy and paste it between the backticks below:*


```python

```
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: 'enhancement'
assignees: ''

---

#### Checklist

*Please replace the space inside the brackets with an **x** if the following items apply:*

- [ ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
- [ ] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
- [ ] I've checked if anyone else suggested this feature before by looking through the issue reports.

#### Problem case

*Is your feature request related to a problem? If so, please describe it here. E.g.: "My workflow is such and such, and this and that would help."*



#### Solution

*Concisely describe the solution you would like*


*Concisely describe alternatives you've considered (if any)*



#### More information

*Additional context: Add any other context or screenshots about the feature request here.*
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: Question
about: Ask a question about this project
title: ''
labels: 'question'
assignees: ''

---

#### Checklist

*Please replace the space inside the brackets with an **x** if the following items apply:*

- [ ] I've verified that I use the latest version of the add-on by redownloading it from AnkiWeb
- [ ] I've verified that I use the latest version of Anki by checking at https://apps.ankiweb.net#download
- [ ] I've checked if anyone else asked this question before by looking through the issue reports.


#### Your question

*A clear and concise question about the add-on.*
21 changes: 21 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#### Description

*Concisely describe what the pull request is trying to achieve. If pertinent, link to an existing issue report, or briefly explain the problem the PR is meant to solve. Feel free to attach screenshots or other media for UI-related changes.*


#### Checklist:

*Please replace the space inside the brackets with an **x** and fill out the ellipses if the following items apply:*

- [ ] I've read and understood the [contribution guidelines](./CONTRIBUTING.md)
- [ ] I've tested my changes against at least one of the following [Anki builds](https://apps.ankiweb.net/#download):
- [ ] Latest standard Anki 2.1 binary build
- [ ] Latest alternative Anki 2.1 binary build
- [ ] I've tested my changes on at least one of the following platforms:
- [ ] Linux, version:
- [ ] Windows, version:
- [ ] macOS, version:
- [ ] My changes potentially affect non-desktop platforms, of which I've tested:
- [ ] AnkiMobile, version:
- [ ] AnkiDroid, version:
- [ ] AnkiWeb
59 changes: 48 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,50 @@
*.pyc
*.pyo
# Linux FM
.hidden
.directory
image_occlusion_enhanced/svg-edit/build
image_occlusion_enhanced/svg-edit/Makefile
image-occlusion.sublime-project
image-occlusion.sublime-workspace
design-spec.md
image-occlusion-enhanced-*.zip
docs/todo.md
docs/help.md
docs/contribs.ui
# Byte-compiled / optimized / DLL files
*.pyo
*.pyc
__pycache__/
# Python
.python-version
.mypy_cache/
.ropeproject
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/
# Javascript
node_modules
# IDEs
*.sublime-project
*.sublime-workspace
.sublime-backup/
.idea/
.vscode/
# Build files
build
src/*/gui/forms/anki*
src/*/gui/forms/LICENSE*
src/*/gui/resources/anki*
src/*/gui/resources/LICENSE*
*-anki2*.zip
# Dev tools
.bumpversion.cfg
labels.toml
# Temp
.gitold
obsolete
research
# Docs
todo
# Assets
resources/icons/optional
# Anki
src/*/meta.json
src/*/manifest.json
# Repo
src/image_occlusion_enhanced/svg-edit/svg-edit-master/
.pytest_cache/
Loading