glutanimate / cloze-overlapper Goto Github PK
View Code? Open in Web Editor NEWAnki add-on for memorizing lists and enumerations
Home Page: https://ankiweb.net/shared/info/969733775
License: Other
Anki add-on for memorizing lists and enumerations
Home Page: https://ankiweb.net/shared/info/969733775
License: Other
https://github.com/Glutanimate/cloze-overlapper/wiki/Customization#ankis-cards-dialog
Also, I didn't know that was the card prefix and was looking for it in the templates and styling fields. So please mention that it's at "More → Rename".
But there is actually no "More → Deck override" for Cloze types, at least in Anki 2.0.x.
Oops, it turns out it was the case of a dumb user. First of all, the problem also occured with regular clozes, and second, could be avoided by adding more whitespace around the < and >.
Trying to cloze overlap cards with Mathjax which include < and > symbols. Cloze overlapper shows them in the answer correctly when they are written out as </>
- but then they will be shown as error once "Reveal all clozes" is pressed - and basically vice versa.
The issue persists when all add-ons are disabled (please forgive having them toggled on in the screenshot), it surely is some bug in note template.
Here is a test deck (additionally zipped because of Github, not a renamed apkg!):
Default.apkg.zip
Please replace the space inside the brackets with an x if the following items apply:
Anki 2.1.23
Cloze Overlapper 0.40.0-alpha.0
Debug-Info:
Anki 2.1.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.15.4
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-04-02 15:43:11
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Anki Simulator ['anki_simulator', 2020-03-28T20:47, 'None', '']
AwesomeTTS Google Cloud Text-to-Speech unofficial ['814349176', 2020-02-24T13:36, 'None', '']
BetterTags ['bettertags', 2020-01-28T21:30, 'None', '']
Cloze Overlapper ['cloze_overlapper', 2019-02-01T13:37, 'None', '']
Customize Sidebar ['1988760596', 2020-01-28T11:44, 'None', '']
Dancing Baloney Allows changing wallpapers with live preview ['378638814', 2020-03-27T06:28, 'None', mod]
Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-01-16T13:36, 'None', '']
ImageResizer ['1214357311', 2020-02-11T14:37, 'None', '']
Puppy Reinforcement ['puppy_reinforcement', 2020-03-02T20:22, 'None', mod]
Review Heatmap ['review_heatmap', 2018-10-28T23:06, 'None', '']
Searching PDF Reading Note-Taking in Add Dialog ['1781298089', 2020-04-01T23:36, 'None', mod]
Symbols As You Type ['2040501954', 2020-03-18T04:36, 'None', '']
True Retention ['613684242', 2019-07-29T13:23, 'None', '']
Visual Feedback for Reviews ['review_feedback', 2020-01-29T20:43, 'None', '']
===IDs of active AnkiWeb add-ons===
1214357311 1374772155 1781298089 1988760596 2040501954 378638814 516643804 613684242 814349176
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
AnkiWebView Inspector ['31746032', 2019-05-03T00:43, 'None', '']
Extended Card Stats During Review ['1008566916', 2017-08-29T20:59, 'None', '']
PDF Glossary Exporter ['pdf_glossary', 2019-08-19T14:35, 'None', '']
Progress Bar ['2091361802', 2020-02-01T13:10, 'None', '']
The smallest example I can find where the error is reproduced is the following:
In short I believe the add-on currently doesn't support single cloze card design.
One useful application would be tables, in which I would like to reveal multiple fields at the same time.
The fields seem to be correctly populated but adding the card to the deck fails with the error below.
This issue is present only when creating/adding new cards, and not when editing existing ones.
Please replace the space inside the brackets with an x if the following items apply:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
MacOS 10.15.5
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 493, in handler
File "aqt/editor.py", line 481, in <lambda>
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-14>", line 2, in _addCards
File "anki/hooks.py", line 638, in decorator_wrapper
File "anki/hooks.py", line 635, in repl
File "/Users/devster/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 301, in onAddCards
ret, total = overlapper.add()
File "/Users/devster/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/Users/devster/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
note.flush()
File "anki/notes.py", line 67, in flush
AssertionError
When creating new notes with overlapping clozes, there is an AssertionError (see below), because there is no id for the new note yet.
I think that the issue was introduced with ankitects/anki@f637ac9#diff-4a37772b551db2baaf677e04d51a3c04, but I'm not sure.
Debug Info:
Anki 2.1.28 (eb032c4e) Python 3.8.3 Qt 5.12.5 PyQt 5.14.2
Platform: Linux
Flags: frz=False ao=True sv=2
Add-ons, last update check: 2020-05-26 20:07:18
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
'' ['hourly_breakdown', 0, 'None', '']
'' ['print_as_flashcards', 0, 'None', '']
'' ['puppy_reinforcement', 0, 'None', '']
'' ['right_hand_reviews', 0, 'None', mod]
'' ['tagedit_subtag_completer', 0, 'None', '']
Add Hyperlink ['318752047', 2020-04-03T18:06, 'None', '']
Anki Zoom ['538879081', 2020-04-04T02:20, 'v1.1.3', '']
AnkiWebView Inspector ['31746032', 2019-05-03T00:43, 'None', '']
Batch Editing ['291119185', 2019-06-17T17:52, 'None', '']
Cloze Overlapper ['cloze_overlapper', 2019-08-11T08:03, 'None', '']
Extended Card Stats During Review ['1008566916', 2018-10-03T14:53, 'None', '']
Extended Schema Hash ['1187737890', 2020-01-19T14:09, 'None', '']
Field History ['1247884413', 2019-01-08T19:34, 'None', mod]
Frozen Fields ['516643804', 2020-03-01T05:12, 'None', '']
Hierarchical Tags ['anki-hierarchical-tags', 0, 'None', '']
Highlight Search Results in the Browser ['225180905', 2019-11-27T16:06, 'None', '']
Image Occlusion Enhanced ['image_occlusion_enhanced', 2019-09-11T13:45, 'None', '']
Leaderboard ['41708974', 2020-05-07T12:22, 'None', mod]
Mini Format Pack ['mini_format_pack', 2019-08-12T09:37, 'None', '']
Multiple Choice for Anki ['1566095810', 2020-04-10T07:50, 'None', '']
Opening the same window multiple time ['354407385', 2020-05-16T02:59, 'None', '']
Pop-up Dictionary ['popup_dictionary', 2019-10-18T20:28, 'None', '']
Quick tagging 21 ['304770511', 2020-02-11T07:17, 'None', mod]
Review Heatmap ['review_heatmap', 2020-03-22T06:57, 'None', '']
Search and Replace Tags ['138501288', 2018-10-01T16:47, 'None', '']
Spell Check ['spell_check', 2020-03-17T13:19, 'None', '']
Symbols ['1461102936', 2019-06-17T17:52, 'None', mod]
Trigger and actions change one card depending on what occurs on another card ['1981494159', 2020-05-04T22:53, 'None', mod]
Visual Feedback for Reviews ['review_feedback', 2020-01-29T20:43, 'None', '']
===IDs of active AnkiWeb add-ons===
1008566916 1187737890 1247884413 138501288 1461102936 1566095810 1981494159 225180905 291119185 304770511 31746032 318752047 354407385 41708974 516643804 538879081
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Anki Habitica for 21 ['1758045507', 2020-03-24T09:28, 'None', mod]
Keep model of add cards ['424778276', 2020-05-17T01:18, 'None', '']
Caught exception:
Traceback (most recent call last):
File "/home/zjosua/sw_dev/anki/qt/aqt/webview.py", line 467, in handler
cb(val)
File "/home/zjosua/sw_dev/anki/qt/aqt/editor.py", line 477, in <lambda>
self.web.evalWithCallback("saveNow(%d)" % keepFocus, lambda res: callback())
File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/editor.py", line 154, in <lambda>
editor.saveNow(lambda: callback(editor, *args, **kwargs))
File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/editor.py", line 283, in onOlClozeButton
return onFieldReady()
File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/editor.py", line 270, in onFieldReady
overlapper.add()
File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/home/zjosua/.local/share/Anki2/addons21/cloze_overlapper/overlapper.py", line 206, in updateNote
note.flush()
File "/home/zjosua/sw_dev/anki/pylib/anki/notes.py", line 66, in flush
assert self.id != 0
AssertionError
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?
I was trying to generate overlapping clozes with this add-on but however when i clicked on the button, an error shows up. I've done what Anki recommended which is to hold shift while starting anki. The problem does go away then but whenever i clicked on the button again, the same issue persists.
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version:
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):
Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Mac 10.15.5
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-08-05 19:12:20
Add-ons possibly involved: Cloze Overlapper
Please open Anki, go to Help → About, find the two lines starting with Version:
and Qt
, and copy-paste them between the backticks below:
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Mac 10.15.5
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-08-05 19:12:20
Add-ons possibly involved: Cloze Overlapper
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 482, in handler
File "aqt/editor.py", line 479, in <lambda>
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-12>", line 2, in _addCards
File "anki/hooks.py", line 638, in decorator_wrapper
File "anki/hooks.py", line 635, in repl
File "/Users/meylingtr/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 301, in onAddCards
ret, total = overlapper.add()
File "/Users/meylingtr/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/Users/meylingtr/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
note.flush()
File "anki/notes.py", line 67, in flush
AssertionError
Please replace the space inside the brackets with an x if the following items apply:
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."
Concisely describe the solution you would like
Concisely describe alternatives you've considered (if any)
Additional context: Add any other context or screenshots about the feature request here.
Toggle Masks in IO didn't work anymore for me after the introduction of the hint reveal hotkey in cloze overlapper.
I never tried if the hint reveal hotkey for cloze overlapper works when IO is installed too.
Changing the hint reveal hotkey to "h" in reviewer.py fixed the problem for me, but imo this should be in the config dialog.
Hi,
I'm trying to use cloze overlapping under the preference "Strip HTML when pasting text", but when I try to do this I get a message stating there are too many Cloze overlaps generated. I use the "Strip HTML when pasting text" preference because it allows me to copy and paste with the original formatting from Microsoft word (i.e. with colour etc). Is there anything I can do to be able to use Cloze Overlapping with the "Strip HTML when pasting text" preference?
SO, basically I want to use the plugin, so that I have a list of items, and as I continue it reveals definitions for each of them at the bottom. is there any way to add definition to separate items on the list ?
Please replace the space inside the brackets with an x if the following items apply:
I know that clozes are treated as sibling in anki 2.0. Is this also true for anki 2.1?
Caused by Liresol/anki-custom-shortcuts@daa0edc
Editor.onCloze
– which Cloze Overlapper wraps – is no longer assigned in favor of a duplicated CKS-specific cloze method. Working around this fact is possible, but hacky. As other add-ons like Enhanced Cloze are also affected, it would be more sensible for CKS to fix this on their side.
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?
aab build
in the root of the projectcloze-overlapper-v0.4.0-alpha.0-anki21.ankiaddon
to AnkiSHA of commits I tried to run aab build
on:
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version:
Version 2.1.14 (7b93e985)
Qt 5.12.1 PyQt 5.11.3
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):
Anki 2.1.14 (7b93e985) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.14.5
Flags: frz=True ao=True sv=1
Add-ons:
Image Occlusion Enhanced for Anki 21 alpha
Hierarchical Tags Addon 20 21
Button Colours Good Again
True Retention
Cloze Overlapper
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
I notice a typo in a cloze note, so I update it. Except that the Text1
,Text2
, etc. fields do not update to reflect that change. Can I force them to update?
I think all the ellipsis characters provide unnecessary context if you need the association between the previous and the current items not based on their position in a long list (especially relative to a very far end). There could be a way to limit the amount of them like there is with "Context Before" and "Context After".
Expected behavior: [What you expected to happen]
First line
{{c1::Second line}}
...
or at most
First line
{{c1::Second line}}
...
...
Actual behavior: [What actually happened]
First line
{{c1::Second line}}
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Reproducible?:
Yes.
Anki
Version 2.0.52
Qt 4.8.1 PyQt 4.9.1
System
Hi Glut!
I'm searching a solution for custom study for cloze overlapper
The problem is:
Is there a way to create a custom study for the clozes i've marked?
Because when i "mark" a card, anky "mark" all the clozes, i only want the specific ones
Here is an exemple
Question1
[oc1::Asw1] (i need to MARK it/Specif Tag )
Question2
[oc2::Asw2]
Question3
[oc3::Asw3]
.
Etc..
I ahve installed the plugin and whenever i start anki i get this.
https://imgur.com/KfdUquL
how do I fix this ?
The changes in ankitects/anki@389bf07 break Cloze Overlapper.
The cards now look something like this:
Anki 2.1.17 (389bf07b) Python 3.7.6 Qt 5.12.5 PyQt 5.13.2
Platform: Linux
Flags: frz=False ao=True sv=1
Add-ons:
Extended Card Stats During Review (disabled)
Extended Schema Hash (disabled)
Field History (disabled)
Image Occlusion Enhanced for Anki 21 alpha (disabled)
Search and Replace Tags (disabled)
Symbols (disabled)
Anki Habitica for 21 (disabled)
Trigger and actions change one card depending on what occurs on another card (disabled)
Export cards selected in the Browser (disabled)
Progress Bar (disabled)
Highlight Search Results in the Browser (disabled)
Batch Editing (disabled)
Add Hyperlink (disabled)
Let it Snow (disabled)
Frozen Fields (disabled)
Advanced Browser (disabled)
Hierarchical Tags (disabled)
Anki MC (disabled)
Cloze Overlapper
conflate_excess_ease (disabled)
hourly_breakdown (disabled)
Mini Format Pack (disabled)
Pop-up Dictionary (disabled)
print_as_flashcards (disabled)
Puppy Reinforcement (disabled)
Review Heatmap (disabled)
right_hand_reviews (disabled)
tagedit_subtag_completer (disabled)
visual_feedback (disabled)
Night Mode (disabled)
No errors, but I get this on the console.
I'm not sure if it's related though, because I got it with previous commits of Anki as well, where the overlapping cloze cards were still displayed correctly.
template rendering didn't match - please report:
'<div class="front">
<div class="title">the list</div>
<div class="text">
<div><span class=cloze>[...]</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
<div class="hidden">
<div>1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
</div>
</div>
</div>'
'<div class="front">
<div class="title">the list</div>
<div class="text">
<div><span class=cloze>[...]</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
<div>1. this</div><div>2. is</div><div>3. some</div><div>...</div><div>...</div><div>...</div><div>...</div>
<div>...</div><div>2. is</div><div>3. some</div><div>4. list</div><div>...</div><div>...</div><div>...</div>
<div>...</div><div>...</div><div>3. some</div><div>4. list</div><div>5. with</div><div>...</div><div>...</div>
<div>...</div><div>...</div><div>...</div><div>4. list</div><div>5. with</div><div>6. some</div><div>...</div>
<div>...</div><div>...</div><div>...</div><div>...</div><div>5. with</div><div>6. some</div><div>7. items</div>
<div>...</div><div>...</div><div>...</div><div>...</div><div>...</div><div>6. some</div><div>7. items</div>
<div class="hidden">
<div>1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
</div>
</div>
</div>'
template rendering didn't match - please report:
'<div class="back">
<div class="title">the list</div>
<div class="text">
<div><span class=cloze>1. this</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
<div class="hidden">1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
</div>
<div class="extra"><hr></div>
<div class="text"><div class="fullhint">
<a class=hint href="#"
onclick="this.style.display='none';document.getElementById('hint2072769696').style.display='block';return false;">
Show Original</a><div id="hint2072769696" class=hint style="display: none">1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
</div></div>
<div class="extra">
</div>
</div>
<script>
// remove cloze syntax from revealed hint
var hint = document.querySelector('.fullhint>[id^="hint"]')
var html = hint.innerHTML.replace(/\[\[oc(\d+)::(.*?)(::(.*?))?\]\]/mg, "$2")
hint.innerHTML = html
// scroll to cloze
document.addEventListener('DOMContentLoaded', function() {
setTimeout(function(){
const cloze1 = document.getElementsByClassName("cloze")[0];
const rect = cloze1.getBoundingClientRect();
const absTop = rect.top + window.pageYOffset;
const absBot = rect.bottom + window.pageYOffset;
if (absBot >= window.innerHeight) {
const height = rect.top - rect.bottom
const middle = absTop - (window.innerHeight/2) - (height/2);
window.scrollTo(0, middle);};
}, 1);
}, false);
</script>'
'<div class="back">
<div class="title">the list</div>
<div class="text">
<div><span class=cloze>1. this</span></div><div>2. is</div><div>...</div><div>...</div><div>...</div><div>...</div><div>...</div>
<div>1. this</div><div>2. is</div><div>3. some</div><div>...</div><div>...</div><div>...</div><div>...</div>
<div>...</div><div>2. is</div><div>3. some</div><div>4. list</div><div>...</div><div>...</div><div>...</div>
<div>...</div><div>...</div><div>3. some</div><div>4. list</div><div>5. with</div><div>...</div><div>...</div>
<div>...</div><div>...</div><div>...</div><div>4. list</div><div>5. with</div><div>6. some</div><div>...</div>
<div>...</div><div>...</div><div>...</div><div>...</div><div>5. with</div><div>6. some</div><div>7. items</div>
<div>...</div><div>...</div><div>...</div><div>...</div><div>...</div><div>6. some</div><div>7. items</div>
<div class="hidden">1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></div>
</div>
<div class="extra"><hr></div>
<div class="text"><div class="fullhint">
<a class=hint href="#"
onclick="this.style.display='none';
document.getElementById('hint915aeacba8c04fe6').style.display='block';
return false;">
1. this<div>2. is</div><div>3. some</div><div>4. list</div><div>5. with</div><div>6. some</div><div>7. items</div></a>
<div id="hint915aeacba8c04fe6" class=hint style="display: none">Show Original</div>
</div></div>
<div class="extra">
</div>
</div>
<script>
// remove cloze syntax from revealed hint
var hint = document.querySelector('.fullhint>[id^="hint"]')
var html = hint.innerHTML.replace(/\[\[oc(\d+)::(.*?)(::(.*?))?\]\]/mg, "$2")
hint.innerHTML = html
// scroll to cloze
document.addEventListener('DOMContentLoaded', function() {
setTimeout(function(){
const cloze1 = document.getElementsByClassName("cloze")[0];
const rect = cloze1.getBoundingClientRect();
const absTop = rect.top + window.pageYOffset;
const absBot = rect.bottom + window.pageYOffset;
if (absBot >= window.innerHeight) {
const height = rect.top - rect.bottom
const middle = absTop - (window.innerHeight/2) - (height/2);
window.scrollTo(0, middle);};
}, 1);
}, false);
</script>'
Many strings do not fit in their space in the window. Pulling a window corner moves the window, unlike with Firefox or Anki.
[What were you doing when the problem occurred?]
Expected behavior:
Text fits, as there is plenty of space on the screen for the window to grow.
If the window can't grow on its own, I can resize it.
Actual behavior:
Neither of the above.
Reproducible?:
Yes.
Anki
Version 2.0.52
Qt 4.8.1 PyQt 4.9.1
System
Hello
Any plans on supporting anki 2.1 beta ?
On a press of a button and even some other actions (review or note edit?) after editing the Original
field, CO updates any text in the note fields, including text that I have entered or edited myself. It should ask for a confirmation.
It is a possible serious dataloss for me, because I add pictures for almost every cloze (bus routes). To avoid it, I would have to add a Pre field and a Remarks/Extra field for each cloze field.
Original
and abc
into Text1
.[.]
button. It also happens without pressing any button, if the Original
field was edited.Expected behavior:
A confirmation request.
Actual behavior:
The abc
was overwritten with {{c1::123}}\n...
silently.
Reproducible?:
Yes.
Anki Version 2.0.52
Qt 4.8.1 PyQt 4.9.1
CO "Updated 2017-03-08" on AnkiWeb.
System
Please replace the space inside the brackets with an x if the following items apply:
It is mentioned in the readme file that it used to be a stand alone script. Can I use it as such with this release?
The issue is that I could not get it to run in anki, It seems that there are some fundamental issues that are still not fixed and I am not able to build the add-on since I am using windows.
I really appreciate that you included the feature to toggle ordered and unordered lists. I think your add-on does a better job with lists than the "Power Format Pack" add-on, which I've consequentally deleted. However, there are a few ways I think the list feature could be improved:
Currently every line of text becomes a list item when a Toggle List hotkey is pressed. But sometimes I only want parts of the text to be formatted as a list. Would it be possible to introduce the following behavior when a Toggle List hotkey is pressed: if no text is selected, toggle list formatting for all lines; but if only some text is selected, then toggle list formatting for only those lines.
(Because this suggestion requires you to no longer assume that the user wants every line to be a list item as well as a cloze deletion, it might make sense to de-link toggling list formatting and generating overlapping clozes.)
I'd love to be able to use the list feature of this add-on even for other note types. It seems this might be possible if you made toggling list formatting and generating overlapping clozes independent commands. That way, the "Reminder: can only generate overlapping clozes ..." warning would only appear when attempting to generate overlapping cloze. Meanwhile, the user could toggle list formatting freely when working with other note types.
Thanks as always for your great work!
IMPORTANT
The easiest fix that I found online was to downgrade to 2.1.26 which actually worked for me so yay! But one person in Glutaminate's Patreon & another on this thread commented that his error still persisted after downgrading to 2.1.26.
Thank you!
Error message pops up when trying to add a cloze overlapper card in Anki 2.1.33. The error also pops up if -
I go to Tools > Cloze Overlapper Options > Clicking on Ok.
While in the process of adding a card, before actually adding it, clicking on the settings icon to open the cloze overlapper settings window, and clicking Ok.
2.1.33
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):
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-18 18:14:54
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
BetterTags ['bettertags', 2020-01-29T02:00, 'None', '']
Cloze Overlapper ['cloze_overlapper', 2019-02-01T18:07, 'None', '']
Field History ['1247884413', 2020-02-25T09:38, 'None', '']
Frozen Fields ['516643804', 2020-03-01T09:42, 'None', '']
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-28T07:51, 'None', '']
Pop-up Dictionary beta ['153625306', 2019-10-19T19:36, 'None', '']
Puppy Reinforcement ['puppy_reinforcement', 2020-02-05T12:46, 'None', '']
Review Heatmap ['review_heatmap', 2018-10-29T03:36, 'None', '']
TagSelectorV2 ['1022577188', 2020-08-13T08:39, 'None', mod]
Visual Feedback for Reviews ['review_feedback', 2020-01-30T01:13, 'None', '']
===IDs of active AnkiWeb add-ons===
1022577188 1247884413 1374772155 153625306 516643804
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
ReMemorize Rescheduler with sibling and logging v140 ['323586997', 2020-04-17T12:37, 'None', mod]
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-18 18:14:54
Caught exception:
Traceback (most recent call last):
File "aqt\webview.py", line 493, in handler
File "aqt\editor.py", line 481, in <lambda>
File "<C:\Program Files\Anki\decorator.pyc:decorator-gen-32>", line 2, in _addCards
File "anki\hooks.py", line 638, in decorator_wrapper
File "anki\hooks.py", line 635, in repl
File "C:\Users\Hp\AppData\Roaming\Anki2\addons21\cloze_overlapper\editor.py", line 301, in onAddCards
ret, total = overlapper.add()
File "C:\Users\Hp\AppData\Roaming\Anki2\addons21\cloze_overlapper\overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "C:\Users\Hp\AppData\Roaming\Anki2\addons21\cloze_overlapper\overlapper.py", line 203, in updateNote
note.flush()
File "anki\notes.py", line 67, in flush
AssertionError
Please replace the space inside the brackets with an x if the following items apply:
I receive an error whenever I try to install it into my anki version :(
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.29 (bbff62bf) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-08-02 23:06:41
Caught exception:
Traceback (most recent call last):
File "C:\Users\cuten\AppData\Roaming\Anki2\addons21\cloze_overlapper\gui\options_global.py", line 107, in onAccept
config.save(reset=reset_req)
File "C:\Users\cuten\AppData\Roaming\Anki2\addons21\cloze_overlapper\libaddon\anki\configmanager.py", line 219, in save
saver(self._config[name])
File "C:\Users\cuten\AppData\Roaming\Anki2\addons21\cloze_overlapper\libaddon\anki\configmanager.py", line 460, in _saveSynced
self._getStorageObj("synced")[self._conf_key] = config
File "lib\site-packages\anki\config.py", line 64, in setitem
File "lib\site-packages\anki\config.py", line 40, in set
orjson.JSONEncodeError: Type is not JSON serializable: WrappedDict
I'm not sure where you want features such as this @glutanimate.
The ability to type in the cloze would be helpful at times. I'm not sure how difficult it would be to implement it with this addon though. I've tried a few {{type:cloze:}}
combinations, but it doesn't look like it's going to be that simple.
I'll look into this later when I have time to dig into the code.
Installation of the adds-on is going well. The Adds-on is correctly installed.
Once I want to create a card, I got an error if I click on "Generate overlapping clozes" or if I click on overlapping cloze options.
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version: 2.1.33
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):
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-03 13:15:50
===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Advanced Browser ['874215009', 2020-04-23T00:45, 'None', '']
AnkiConnect ['2055492159', 2020-07-12T21:54, 'None', '']
Batch Editing ['291119185', 2019-06-02T20:47, 'None', '']
Button Colours Good Again ['2494384865', 2020-02-09T13:18, 'None', '']
Cloze Overlapper ['cloze_overlapper', 2019-02-01T13:37, 'None', '']
Free Weekend - or Any Other Day ['742185195', 2020-04-10T13:57, 'None', '']
French Keyboard Support AZERTY ['228944836', 2019-03-28T13:36, 'None', '']
Hierarchical Tags 2 ['594329229', 2020-04-11T18:36, 'None', '']
Image Occlusion Enhanced for Anki 21 alpha ['1374772155', 2020-04-28T04:21, 'None', '']
Open Added Today from Reviewer ['861864770', 2019-02-22T20:19, 'None', '']
Pop-up Dictionary beta ['153625306', 2019-03-23T18:32, 'None', '']
Progress Graphs and Stats for Learned and Matured Cards ['266436365', 2020-03-29T08:26, 'None', '']
ReviewHeatmap ['723520343', 2019-08-03T17:14, 'None', '']
Search and Replace Tags ['138501288', 2017-08-29T20:58, 'None', '']
load balancer ['1417170896', 2020-08-06T01:58, 'None', '']
===IDs of active AnkiWeb add-ons===
1374772155 138501288 1417170896 153625306 2055492159 228944836 2494384865 266436365 291119185 594329229 723520343 742185195 861864770 874215009
===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Please open Anki, go to Help → About, find the two lines starting with Version:
and Qt
, and copy-paste them between the backticks below:
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-03 13:15:50
Add-ons possibly involved: Cloze Overlapper
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 493, in handler
File "aqt/editor.py", line 481, in <lambda>
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 154, in <lambda>
editor.saveNow(lambda: callback(editor, *args, **kwargs))
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 283, in onOlClozeButton
return onFieldReady()
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 270, in onFieldReady
overlapper.add()
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
note.flush()
File "anki/notes.py", line 67, in flush
AssertionError
Using the cloze button will currently create Anki clozes ({{c1::
) rather than the add-on's clozes ([[oc1::]]
). This issue does not appear when using the cloze hotkeys.
(thanks to Gabriel for the report!)
As readme states, i must drag-and-drop .ankiapp into addons list. Sadly i cannot find a file or folder with that name in latest release of this addon.
Obviously, i tried dragging and dropping this folder into addons list. It doesn't work.
I also tried to paste this files into "addons" folder on my pc. It didn't work either.
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version:
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):
Anki 2.1.13 (3ba55990) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Windows 10
Flags: frz=True ao=False sv=1
Add-ons:
Edit Field During Review (disabled)
Right Hand Reviews jkl (disabled)
ImageResizer (disabled)
Syntax Highlighting for Code (disabled)
Night Mode (disabled)
Autosync 21 (disabled)
AnkiConnect (disabled)
Automatic Basic to Cloze (disabled)
Fast cards reposition (disabled)
Deck name in title 21 (disabled)
Life Drain (disabled)
cloze_overlapper
review_heatmap (disabled)
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
Hello,
In the Anki version 2.1.33 my cloze-overlapper stops working with the following error message:
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-09-15 21:13:03
Add-ons possibly involved: cloze_overlapper
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 493, in handler
File "aqt/editor.py", line 481, in <lambda>
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-18>", line 2, in _addCards
File "anki/hooks.py", line 638, in decorator_wrapper
File "anki/hooks.py", line 635, in repl
File "/Users/kaifengliang/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 301, in onAddCards
ret, total = overlapper.add()
File "/Users/kaifengliang/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/Users/kaifengliang/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
note.flush()
File "anki/notes.py", line 67, in flush
AssertionError
With the guidance on another thread I have tried to install the last stable version of Anki 2.1.26, but with no luck as the add-on now displays “no configuration is found” and is disabled.
I would really appreciate your help!
Thank you,
Please replace the space inside the brackets with an x if the following items apply:
When will this addon available for Anki 2.1? I was able to build the addon using aab and install it. But I got errors after restarting Anki informing missing forms files
Any plans/roadmap for it?
Since Anki 2.0 support is ending in 2020.
Ideally we would have the full cloze appear once all regular clozes have graduated from learning.
Or, with a more sophisticated implementation: After all regular clozes have reached at least an interval of X days, with X being user-customizable.
When writing a list of items with cloze overlapper
[Be as specific as possible. Provide screenshots if you think they can help.]
[What were you doing when the problem occurred?]
I generated an overlapping cloze with chemical formulas which contained subscripts
Expected behavior: subscripts should be rendered
Actual behavior: subscripts are on their own lines
simplified test case:
template:
as rendered:
Reproducible?:
yes
Anki
Version 2.1.8 (71e0c880)
Qt 5.12.0 PyQt 5.11.3
cloze-overlapper-release-v0.4.0-alpha.0-anki21.zip (Patreon alpha release)
System
Great add-on. I was trying anki cloze, but it doesn't scroll to the cloze spot in long articles. I find a solution on Reddit which leads me here. Does the scroll function work or just me?
E.g. scenario:
Expected behavior:
Actual behavior:
Note: we do account for an empty Original field (because it's usually at position 1). But in corner cases where users have modified their templates the add-on does not behave as expected in this scenario.
I read on here that you could build the addon from source, so I downloaded v0.4.0-alpha.0 from the tags page. Then I ran make on the root directory. Instead of building the addons, it returned some errors.
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version:
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):
Anki 2.1.11 (3cf770c7) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3
Platform: Mac 10.13.6
Flags: frz=True ao=True sv=1
Add-ons:
Image Occlusion Enhanced for Anki 21 alpha
load balancer
Deck Stats
Anki Habitica for 21
AnkiConnect
Progress Bar
Card Info During Review
Button Colours Good Again
Japanese Support
Allows empty first field during adding and import
Life Drain
Polar Connect - PDF and Incremental Reading with Anki Sync
MorphMan for Anki 21
Review Heatmap
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
rm -rf build
find . \( -name '*.pyc' -o -name '*.pyo' -o -name '__pycache__' \) -delete
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
# Create build directory
mkdir -p build/dist build/dist21
# Remove existing release build of same version
rm -f *-release--anki2*.zip
# Create a git snapshot of source files at tag
git archive --format tar | tar -x -C build/dist/
usage: git archive [<options>] <tree-ish> [<path>...]
or: git archive --list
or: git archive --remote <repo> [--exec <cmd>] [<options>] <tree-ish> [<path>...]
or: git archive --remote <repo> [--exec <cmd>] --list
--format <fmt> archive format
--prefix <prefix> prepend prefix to each pathname in the archive
-o, --output <file> write the archive to this file
--worktree-attributes
read .gitattributes in working directory
-v, --verbose report archived files on stderr
-0 store only
-1 compress faster
-9 compress better
-l, --list list supported archive formats
--remote <repo> retrieve the archive from remote repository <repo>
--exec <command> path to the remote git-upload-archive command
# Copy licenses to module directory
for license in build/dist/LICENSE* build/dist/resources/LICENSE*; do \
[[ ! -f "$license" ]] && continue ; \
name=$(basename $license) ; \
ext="${name##*.}" ; \
fname="${name%.*}" ; \
echo "build/dist/src/cloze_overlapper/${fname}.txt" ; \
cp $license "build/dist/src/cloze_overlapper/${fname}.txt" ; \
done
# Include referenced assets that are not part of version control
[[ -d "resources/icons/optional" ]] && \
cp -r "resources/icons/optional" "build/dist/resources/icons/" || true
# Update credits if possible
type patreon_update_credits_addon >/dev/null 2>&1 && \
cp addon.json build/dist/ && \
cd build/dist && patreon_update_credits_addon -r || true
# Duplicate build folder for both build targets
cp -r build/dist/* build/dist21
cp: build/dist/*: No such file or directory
make: *** [buildarchive] Error 1
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?
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version:
2.1.22
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):
Answer portion of MIA
"Invalid HTML on card: TypeError: Cannot read property 'innerHTML' of null"
Please open Anki, go to Help → About, find the two lines starting with Version:
and Qt
, and copy-paste them between the backticks below:
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
I want to use the cloze-overlapper addon and LaTeX together. The following example works fine except that somehow the cloze syntax does not get removed from the Show Original hint.
[latex]
\section*{Bernoulli's Inequality}
For any real number $x$ [[oc1::$> -1, \, x \neq 0$]] and any integer $n$ [[oc2:: $\geq 2$]] we have
[[oc3::$$(1+x)^n > 1+nx.$$]]
[/latex]
I would be very grateful for any help.
Sincerely, Vincent
I downloaded the Add on Cloze Overlapper and followed precisely your YouTube on how to install it in Anki.
However here I receive the follwoing error message when I restart Anki:
An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.
When loading 'cloze_overlapper':
Traceback (most recent call last):
File "aqt/addons.py", line 211, in loadAddons
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/init.py", line 41, in
from . import main # noqa: F401
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/main.py", line 42, in
from .gui.options_global import initializeOptions
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/options_global.py", line 49, in
from .forms import settings_global
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/forms/init.py", line 41, in
from .anki21 import * # noqa: F401
ModuleNotFoundError: No module named 'cloze_overlapper.gui.forms.anki21'
Please replace the space inside the brackets with an x if the following items apply:
*Please fill out the section corresponding with your Anki version: 2.1.33
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
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.33 (3f403040) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=?
Add-ons, last update check: 2020-09-03 13:15:50
Add-ons possibly involved: cloze_overlapper
Caught exception:
Traceback (most recent call last):
File "aqt/addons.py", line 211, in loadAddons
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/__init__.py", line 41, in <module>
from . import main # noqa: F401
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/main.py", line 42, in <module>
from .gui.options_global import initializeOptions
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/options_global.py", line 49, in <module>
from .forms import settings_global
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/forms/__init__.py", line 41, in <module>
from .anki21 import * # noqa: F401
ModuleNotFoundError: No module named 'cloze_overlapper.gui.forms.anki21'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt/main.py", line 1094, in onPrefs
File "aqt/__init__.py", line 105, in open
File "</Applications/Anki.app/Contents/MacOS/decorator.pyc:decorator-gen-8>", line 2, in __init__
File "anki/hooks.py", line 638, in decorator_wrapper
File "anki/hooks.py", line 629, in repl
File "aqt/preferences.py", line 24, in __init__
AttributeError: 'NoneType' object has no attribute 'backend'
Please open Anki, go to Help → About, find the two lines starting with Version:
and Qt
, and copy-paste them between the backticks below:
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
Add ons installed:
Advanced Browser
Anki Connect
Batch Editing
Button Colours Good Agzain
Cloze_overlapper
Free Weekend
French Keyboard
Hierarchical Tags 2
Image occlusion Enhanced
Load balancer
Open Added Today from Reviewer
Pop Up dictionnary beta
Progres Graph
Review Heatmap
Search and Replace Tag
If you've received an error message, please copy and paste it between the backticks below:
When loading 'cloze_overlapper':
Traceback (most recent call last):
File "aqt/addons.py", line 211, in loadAddons
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/__init__.py", line 41, in <module>
from . import main # noqa: F401
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/main.py", line 42, in <module>
from .gui.options_global import initializeOptions
File "/Users/gbeyrend/Library/Application Support
[ANki.docx](https://github.com/glutanimate/cloze-overlapper/files/5173631/ANki.docx)
/Anki2/addons21/cloze_overlapper/gui/options_global.py", line 49, in <module>
from .forms import settings_global
File "/Users/gbeyrend/Library/Application Support/Anki2/addons21/cloze_overlapper/gui/forms/__init__.py", line 41, in <module>
from .anki21 import * # noqa: F401
ModuleNotFoundError: No module named 'cloze_overlapper.gui.forms.anki21'
Anki 2.1.26+ changes how col.conf operates, so we need to adjust config getting/saving accordingly.
Can't rate a card created with the previous Cloze Overlapper.
I updated the templates, only adding Text 21-36 and correcting the stylesheet accordingly.
Please replace the space inside the brackets with an x if the following items apply:
Please fill out the section corresponding with your Anki version:
Please open Anki, go to Help → About, find the two lines starting with Version:
and Qt
, and copy-paste them between the backticks below:
Version 2.0.52
Qt 4.8.1 PyQt 4.9.1
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
Cloze Overlapper version = "0.4.0-alpha.0"
If you've received an error message, please copy and paste it between the backticks below:
An error occurred in an add-on.
Please post on the add-on forum:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "aqt/webview.py", line 21, in link
File "aqt/reviewer.py", line 323, in _linkHandler
File "aqt/reviewer.py", line 268, in _answerCard
File "anki/sched.py", line 63, in answerCard
File "anki/hooks.py", line 61, in repl
File "/home/fc/.local/share/Anki2/addons/cloze_overlapper/sched.py", line 103, in myBurySiblings
if mw.col.schedVer() == 1:
AttributeError: '_Collection' object has no attribute 'schedVer'```
First a big thanks for developing this useful package. It's been a great help for my study!
I usually uses the tool to recite a paragraph of text, where sequential context matters, so I would cloze selected text one by one:
Lorem ipsum [[oc1::dolor sit amet]], [[oc2::consectetuer adipiscing elit]]. Donec hendrerit tempor
tellus. [[oc3::Donec pretium posuere tellus]]. Proin quam nisl, [[oc4::tincidunt et]], [[oc5::mattis
eget, convallis nec, purus.]] Cum sociis natoque penatibus et magnis dis
parturient montes, [[oc6::nascetur ridiculus mus]]. Nulla posuere. [[oc7::Donec vitae dolor]].
[[oc8::Nullam tristique diam non turpis]]. Cras placerat accumsan nulla. [[oc9::Nullam rutrum.]]
[[oc10::Nam vestibulum]] accumsan nisl.
And this generates 10 cloze cards and a full card.
Now during my review session, I sometimes find the original cloze is too coarse, and I would like to break it down into finer pieces. For example, breaks consectetuer adipiscing elit
at oc2
into consectetuer
and adipiscing elit
. My expected result is:
[[oc2::consectetuer]]
and [[oc3::adipiscing elit]]
added, old [[oc2::consectetuer adipiscing elit]]
removed[[oc3::Donec pretium posuere tellus]]
becomes [[oc4:Donec pretium posuere tellus]]
, and original [[oc4:...]]
becomes [[oc5:...]]
, and so on.11 cloze cards are generated with a new full card.
Concisely describe the solution you would like
A command to reindex all clozes based on their position.
Concisely describe alternatives you've considered (if any)
Currently, if I remove [[oc2::...]]
and use shortcut Ctrl+Shift+C
to cloze adipiscing elit
, cloze overlappers would use the maximum index (10
) and generate [[oc11::adipiscing elit]]
. During review then, the context before [[oc11::adipiscing elit]]
is considered to be [[oc10::Nam vestibulum]]
instead of [[oc2::consectetuer]]
, so sequential context is lost.
The only way I can achieve this result, for now, is to remove [[oc2::...]]
, add [oc3::]
, and manually edit index in all subsequent cards from oc3
to oc10
. Disadvantage: becomes tedious when there are many clozes to change.
Yet another solution: remove subsequent clozes one by one, and re-cloze them so they are in the desired order. It's a slight improvement over manual editing. (Side note: I suspect this should work, but the Alt+Shift+R
shortcut to remove cloze in selected text, as I have seen in Wiki/Usage, does not work for me. It simply inserts "R" in text box.)
Yet another solution: Break the whole paragraph into lines to utilize the automatic index behavior in list clozes. Disadvantage: it would not look great at all for a paragraph of text.
Additional context: Add any other context or screenshots about the feature request here.
Again, thanks for the gorgeous plugin!
I want to configure custom styles per deck, but it seems not supported.
It would be quite useful to be able to add custom Note type for cloze overlapping.
Unable to complete any new "close overlapper" card types; prompted with error after completing all fields.
Please replace the space inside the brackets with an x if the following items apply:
Debug info:
Anki 2.1.28 (7d8818f8) Python 3.8.0 Qt 5.15.0 PyQt 5.15.0
Platform: Mac 10.15.6
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-10-21 15:34:29
Add-ons possibly involved: Cloze Overlapper
Caught exception:
Traceback (most recent call last):
File "aqt/webview.py", line 482, in handler
File "aqt/editor.py", line 479, in
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 154, in
editor.saveNow(lambda: callback(editor, *args, **kwargs))
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 283, in onOlClozeButton
return onFieldReady()
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/editor.py", line 270, in onFieldReady
overlapper.add()
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 117, in add
self.updateNote(fields, full, setopts, custom)
File "/Users/alex/Library/Application Support/Anki2/addons21/cloze_overlapper/overlapper.py", line 203, in updateNote
note.flush()
File "anki/notes.py", line 67, in flush
AssertionError
Please fill in details about your operating system (Windows/macOS/Linux, which version):
Please open Anki, go to Tools → Add-ons, take a screenshot of your installed add-ons, and paste it below:
If you've received an error message, please copy and paste it between the backticks below:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.