trgkanki / cloze_hide_all

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

New Cards Not Hiding Anything #62

Closed Annapox4 closed 1 year ago

Annapox4 commented 2 years ago

Bug report

Describe the bug

The original Cloze (Hide All) notes I created still work, but when I create new notes of the same type, they function like normal Cloze cards, without hiding anything.

Reproduction step

  1. I created several Cloze (Hide All) notes that work as intended.
  2. I cloned the card type for future reference.
  3. I made formatting changes to the original Cloze (Hide All) note type (background color, text placement).
  4. I changed from regular Cloze to Cloze with type-in by changing {{cloze:Text}} to {{type:cloze:Text}} in the front section of the Cards editor.
  5. I changed the name and field names of the original Cloze (Hide All) note type.
  6. I converted several Cloze with Type-In notes to the customized note type I created using the steps above.
  7. I created a new note of the customized type I created using the steps above.

Expected behavior

Since the cards I created in step 1 worked after step 5 (inactive Cloze deletions were hidden and active Cloze deletions had text fields for me to type the answer), I expected the converted notes to work in the same way.

Actual behavior

The cards I created in step 1 still work as intended, but the cards I converted in step 6 work like normal Cloze with Type-In cards; they don't hide the inactive Cloze deletions. Note that the two sets of cards are exactly the same note type and are formatted exactly the same. The new note I created after trying to convert the cards also works like a regular Cloze with Type-In.

This is the preview of the back side of one of the cards I created in step 1; it hides the inactive Cloze deletions as intended. It shows the deletions when I click the toggle button.

Screen Shot 2021-12-11 at 11 09 50

This is the preview of the back of one of the converted cards; it doesn't hide the inactive Cloze deletions, no matter how many times I click the toggle button. The new cards I created in step 7 look the same as this one.

Screen Shot 2021-12-11 at 11 11 29

Anki/OS versions

Annapox4 commented 2 years ago

Update: I am now having a problem with the original cards I created. When I created them, the infinitive outside the table was c1 and the remaining Cloze deletions in the tables went by row (row 2 was c2, row 3 was c2, etc.). I changed the numbers around so they go by column now (column 1 is c2, column 2 is c3, etc.).

The front of the card is now missing the infinitive (the word below the label "German" is missing), and the back looks like this:

Screen Shot 2021-12-12 at 11 13 59

As you can see, all the rectangles hiding the Cloze deletions are there, but some of the deletions appear next to their respective rectangles instead of remaining hidden. The infinitive is missing from the back of the card as well, just like it is on the front.

phu54321 commented 1 year ago

Type-in answers won't be supported. Too much work. Thanks.