trgkanki / cloze_hide_all

GNU Affero General Public License v3.0
13 stars 3 forks source link

Using ! to unhide clozes requires typing the ! #59

Closed BrucePlumb closed 6 months ago

BrucePlumb commented 3 years ago

Love this add-on. Use it a lot for language learning. I frequently use the ! for unhiding clozes. I also use TTS. So I was very happy to discover that adding a space after the ! avoids TTS from saying "exclamation point". Perhaps you could add that suggestion to the add-on description on the download page.

But there is still the problem that for typing the answer the ! has to be typed. I recognize that it might be complicated to parse the field and not type the whole field. If you figure out how to do it, to be consistent with the above TTS discovery, for typing please also skip over the added space.

Another unfortunate feature that might be hard to fix is that one can't make clones of this note type. Any future fix planned?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

BrucePlumb commented 2 years ago

I can't believe I am the only user who wants to type the answers. Surely others are also annoyed by the ! needing to be typed.

Annapox4 commented 2 years ago

I also want to type the answers! I'm trying to make cloze cards for conjugation/declension tables. I haven't tried the ! thing yet because I'm still trying to get the add-on to hide everything in the table in the first place, but I would love to not have to type the ! when I get to that point.

BrucePlumb commented 2 years ago

Solution! Discussing this problem in the Anki Forum a poster with the nickname Apetited suggested this and it works! Would the author of this add-on please recommend the following on the Add-on Page:

Add and extra field (here called TextCopy). Copy all the clozes from Text to TextCopy. Other text outside of the clozes does not need to be duplicated. Delete any leading exclamation marks! in the TextCopy field. Any hints in the clozes could also be deleted because they are not used here. In both the front and back Templates, instead of {{type:cloze:Text}} use {{type:cloze:TextCopy}} This also works for audio using TTS which says "exclamantion point". Change the TTS also to the TextCopy field. Example: {{tts it_IT voices=Apple_Luca speed=0.9:cloze-only:TextCopy}}

Hopefully with these possibilities more users might be attracted to your add-on.

BrucePlumb commented 2 years ago

My previous solution for using ! to unhide inactive clozes works well but I myself am getting bogged down with the extra work of copying clozes to the extra field when I make or edit a note. A better solution exists in the Note Type from the "Flexible Cloze" add-on. It allows the position of the charater "!" to be optionally changed to before or after the cloze. i.e. instead of {{c1::!text}} one can use !{{c1::text}}. However I don't like the formatting and look of that add-on and would like to continue using my much customized Cloze Hide All. Can I ask you to check the possibility of the same solution here?

phu54321 commented 1 year ago

LTNS :)

Is there any character that TTS doesn't read? I don't want to change too much code now. (This addon already had too much breaking changes... I don't really want to change how addon fundamentally works. )

https://github.com/trgkanki/cloze_hide_all/issues/18

Issue above discusses adding new syntax {{c1::?test}} , using ? as an alternative to !. Adding a character like this would be a way simpler fix.

Thanks.