Comments (2)
Is this the method?
def _preprocess(self, a: str) -> str:
# replace html entity that gets frequently entered in cloze cards
a = a.replace(" ", " ")
return CLOZE_EXTRACT.sub(r"\g<answer>", a).lower()
If so, it does a lot less than it sounds like. In my testing, adding cloze cards often replaces a single space character with the
entity which throws off some of the rules and this just swaps removes that character (and replaces cloze fields with their answers)
from anki_cousins.
Hi, thanks for the answer.
I was not talking about that method, sorry for not being clear.
I'm talking about line 206 of file main.py which contains the following :
yield note_id, stripHTMLMedia(value)
The fonction "stripHTMLMedia" removes the html from the text.
from anki_cousins.
Related Issues (17)
- Configuration fields HOT 2
- Unable to set a config HOT 3
- seems can't bury card,i don't know where had a problem HOT 4
- suggestion : bury cards that have been added in close proximity HOT 3
- suggestion : enable hiding reviews but not new cards
- Suggestion: Fuzzy String Matching HOT 1
- suggestion:can postpones related card a certain number of days instead of bury HOT 2
- better verbose mode
- rule window is too wide HOT 1
- rule "cloze answers contained in" should not work for few words HOT 3
- a failsafe is needed HOT 1
- undo after a review will not unbury all the cards
- Add-on has no configuration !? HOT 7
- New feature HOT 4
- burying cousins only works when "bury until next day" options are checked HOT 2
- No 'config' available in Anki 2.1.35 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from anki_cousins.