Git Product home page Git Product logo

anki-cloze-blanks's People

Contributors

arthaey avatar ciemarr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anki-cloze-blanks's Issues

First letter without blanks.

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.

Cloze Blanks

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'

generate one cloze instead of several

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____}}

Font for _ _ _ underlines

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?

RE: Removal of Cloze Brackets

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?

error with close blanks

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)

Use in anki web?

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.

Suggestion: Highlight mode (trivial clozes)

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.

Anki 2.1

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.

Suggestion: exclusion of numbers and/or symbols.

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.

Hacky fix?

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.

wrong add-on on ankiweb ?

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.

Can you adapt to Chinese fill in the blanks? [Orig: 能否适应中文填空]

比如:{{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!

it does not working

一个插件发生了错误。
请把它报告在插件的论坛上:
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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.