arthaey / anki-cloze-blanks Goto Github PK
View Code? Open in Web Editor NEWAn Anki add-on that adds "fill in the blank"-style hints to cloze cards. ID: 546020849
Home Page: https://ankiweb.net/shared/info/546020849
An Anki add-on that adds "fill in the blank"-style hints to cloze cards. ID: 546020849
Home Page: https://ankiweb.net/shared/info/546020849
I like the idea behind your add-on; however, I'm looking to just add first letter of each cloze with no blanks. Ideas on how I can accomplish that with your code? Thanks.
Hi. What's up?
I found your add-on - Cloze Blanks https://ankiweb.net/shared/info/546020849 and I like the idea, but unfortunately it doesn't work.
If it possible, may you edit the code? Thanks!
Traceback (most recent call last):
File "C:\Users\user\Documents\Anki\addons\Cloze_Blanks.py", line 43, in addClozeBlanksToExistingCards
_forExistingCards(u"Add blanks to ALL cloze cards?", _addClozeBlanksToNotes)
File "C:\Users\user\Documents\Anki\addons\Cloze_Blanks.py", line 52, in _forExistingCards
nids = mw.col.models.nids(cloze)
File "anki\models.py", line 202, in nids
TypeError: 'NoneType' object has no attribute 'getitem'
Hi. Would it be possible to add an option to generate something like this instead of multiple cloze deletions (one card out of many words)?
{{c1::Those::T__}} {{c1::who::w_}} {{c1::can::c_}} {{c1::make::m__}} {{c1::you::y_}} {{c1::believe::b___}} {{c1::absurdities::a_____}} {{c1::can::c_}} {{c1::make::m__}} {{c1::you::y_}} {{c1::commit::c___}} {{c1::atrocities.::a_____}} {{c1::Voltaire::V____}}
Tried and loved the plugin. Thanks a LOT!
My question is about the symbols used for the underline stuff. What happens here (arch linux, xfce) is that the underliens get "connected" and I can't see if I should fill in a blank of two, three, four, etc characters.
Should I pick another font? If that is not that path, what else? Perhaps editing the CSS for the card type/close thing?
Great add-on. However, the cloze brackets (normally present) make the blanks look funny. Do you know of a way to remove/disable the brackets entirely?
my emailÑ [email protected]
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 "C:\Users\islan\AppData\Roaming\Anki2\addons\Cloze_Blanks.py", line 45, in _keyPressEvent
if self.keyHandler(evt):
File "anki\hooks.py", line 61, in repl
File "C:\Users\islan\AppData\Roaming\Anki2\addons\Visual Feedback.py", line 48, in _keyHandler
key = str(evt.text())
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 0: ordinal not in range(128)
I hinted all of my cards and only realized I made a big mistake after I couldn't reverse it; that is, without loading a backup.
Buenas "tardes".
Hay alguna forma que el formato de cloze blank se pueda utilizar tambien en la web? o debo modificar la edición de la tarjeta de nuevo.
The browser is a drag. If there was a button OR shortcut that could add hints to all clozes on a particular note, it'd be amazing.
I've been looking for a portable way of doing what cloze to highlight does. Your addon's behaviour is very similar, but appears to works at the card content level as opposed to desktop display level.
In essence, I'm looking for a mode that trivially clozes cards.
{{c1::my text}}
=> {{c1::my text::my text}}
That gives me the freedom to play with how clozes display in javascript by myself. So far I haven't seen an addon that enables this.
I realize that sorta departs from the concept of "blanks", but it seems like this addon is functionally about automating hint text.
Hi. Are you going to port the plugin to Anki 2.1? Regards
笔记类型:Cloze
应用时,提示为:Updated 0 cards(from 1 cloze notes) and replaced spaces inside clozes with non-breaking spaces.
Say your card has "{{c1::100}} percent", it's not really helpful to have a hint of [1]. Lol
For symbols, it usually subs in what the symbol starts with (e.g., A for α) <<< that's an alpha btw (looks like an a).
I say give the option of leaving those hints out of the processing.
It's regarding my previous comment:
"So, excited about this. Works great! Any way to force capital letters and/or have something like "[R c]" look like [RC] or just [R]? That would make for a really solid add-on. Thanks for the help!"
I have zero coding experience, but after about 2-3 hours was able to 1) determine that python is mad confusing, 2) figure out what your code was actually doing, and 3) painstakingly alter it just enough to accomplish the above. I'll continue to use my hacky version until you get some time to look into it. Just thought I'd let you know.
This addon is on ankiweb as https://ankiweb.net/shared/info/546020849
If I enter the number 546020849 into Anki 2.0.52 I get a file that is named Cloze_Blanks.py but the content is all wrong. In fact it's a different addon. These are the first lines of the file Cloze_Blanks.py that I just downloaded from AnkiWeb [1]:
# -*- coding: utf-8 -*-
# See github page to report issues or to contribute:
# https://github.com/Arthaey/anki-custom-keyboard-shortcuts
#
# Also available for Anki at https://ankiweb.net/shared/info/1483821271
from aqt.qt import QMainWindow
from aqt.main import AnkiQt
################################################################################
#
# USER-MODIFABLE SETTINGS. CHANGE THINGS HERE TO THE SETTINGS YOU WANT.
#
################################################################################
# CUSTOMIZE THESE SHORTCUT KEYS.
GLOBAL_DECKS_SHORTCUT = "d"
[1] I don't have the addon anki-custom-keyboard-shortcuts. So I'm pretty sure I made no mistake.
比如:{{c1::你好,我叫王小二}} 转换之后,变成为:{{c1::你好,我叫王小二::,___}}
按照字符的个数显示下划线的长度,并且保留标点符号。
谢谢!
Google Translate to English:
For example: {{c1:: Hello, my name is Wang Xiaoer}} After the conversion, it becomes: {{c1:: Hello, my name is Wang Xiaoer::, ___}} Displays the length of the underline according to the number of characters and retains the punctuation.
Thank you!
一个插件发生了错误。
请把它报告在插件的论坛上:
https://anki.tenderapp.com/discussions/add-ons
Traceback (most recent call last):
File "/Users/shulj/Library/Application Support/Anki2/addons/Cloze_Blanks.py", line 46, in clozeEachWordForExistingCards
_forExistingCards(u"Make each word into a cloze for ALL cards?", _clozeEachWord)
File "/Users/shulj/Library/Application Support/Anki2/addons/Cloze_Blanks.py", line 52, in _forExistingCards
nids = mw.col.models.nids(cloze)
File "anki/models.pyc", line 202, in nids
TypeError: 'NoneType' object has no attribute 'getitem'
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.