From 902297ba137736f81c0f3b977841ba0076570606 Mon Sep 17 00:00:00 2001 From: dae Date: Thu, 10 Oct 2024 09:58:32 +0000 Subject: [PATCH] deploy: 050d166e567499b0aef2e53d17e0bd2e4f42795b --- backups.html | 13 ++--- importing/packaged-decks.html | 36 ------------ print.html | 103 +++------------------------------- searchindex.js | 2 +- searchindex.json | 2 +- stats.html | 6 +- studying.html | 3 +- templates/generation.html | 40 +------------ templates/intro.html | 5 +- 9 files changed, 18 insertions(+), 192 deletions(-) diff --git a/backups.html b/backups.html index 99faa78f..225e76ae 100644 --- a/backups.html +++ b/backups.html @@ -152,14 +152,13 @@

Backups

  • Automatic backups
  • Manual colpkg backups
  • AnkiWeb
  • @@ -183,7 +182,7 @@

    Restoring

    When restoring from a backup, any changes made since the backup was created will be lost.

    Anki disables automatic syncing and backups when you restore from a backup. Once you're happy that you've restored the correct backup, close and re-open Anki to return to normal.

    -

    Anki 2.1.50+

    +

    Creating

    Backups are created periodically. You can configure the time between backups in the preferences screen. The default is 30 minutes.

    Certain operations will trigger a backup, even if the configured time has not @@ -196,14 +195,10 @@

    Anki 2.1.50+

    After backups are two days old, Anki will start removing some of the older ones. You can control how many daily, weekly and monthly backups you'd like to keep.

    Backups created with 2.1.50 will not be importable into older Anki versions.

    -

    Older Anki versions

    -

    Each time your collection is closed (when closing Anki, switching -profiles, or doing a full sync download), Anki creates a backup. By default -it will store up to 30 backups; you can adjust this in the preferences.

    Manual colpkg backups

    Restoring

    You can restore from a manual backup by using File>Import.

    -

    Creating

    +

    Creating

    In Anki 2.1.50+, you can use File>Create Backup to trigger an immediate backup. This functions like regular automatic backups, and does not include media files.

    To create a backup that includes your sounds and images:

    diff --git a/importing/packaged-decks.html b/importing/packaged-decks.html index 1c66ac9a..0913135a 100644 --- a/importing/packaged-decks.html +++ b/importing/packaged-decks.html @@ -157,7 +157,6 @@

    Packaged Decks<
  • Note to Deck Authors
  • -
  • Workaround for Anki 2.1.66 and Earlier
  • @@ -198,41 +197,6 @@

    Not

    See this this add-on for why it is advantageous to share notetypes with field and template ids, and how to add them to existing ones.

    -

    Workaround for Anki 2.1.66 and Earlier

    -

    If you know the deck author has made changes and you wish to gain access to -them, changing the notetype back is possible, but rather difficult. You'll need -to do the following:

    - -
    nt = bcard().note().note_type()
    -print("notetype", nt["name"], "has id", nt["id"])
    -
    - -
    nt = bcard().note().note_type()
    -print("current:", nt["name"], "has id", nt["id"])
    -nt = mw.col.models.get(xxx)
    -print("desired:", nt["name"], "has id", nt["id"])
    -
    - diff --git a/print.html b/print.html index 4da8ae74..1f695c41 100644 --- a/print.html +++ b/print.html @@ -1497,8 +1497,7 @@

    Sib the other hand, when you study a learning card, any new/review siblings will be buried.

    Also note that a card cannot be buried and suspended at the same time. Suspending a -buried card will unbury it. Burying a suspended card does not work on Anki -2.1.49+, whereas on earlier versions, it will unsuspend the card.

    +buried card will unbury it. Suspended cards can't be buried.

    Keyboard Shortcuts

    Most of the common operations in Anki have keyboard shortcuts. Most of them are discoverable in the interface: menu items list their shortcuts @@ -2036,10 +2035,7 @@

    U

    The Templates Screen

    You can modify card templates by clicking the "Cards..." button inside the editing screen.

    -

    For older Anki versions, on the top left is the front template, on the bottom left is the back -template, and in between them is the card styling section. For Anki versions -2.1.28+ the front, back, and styling are no longer shown at the same time. -You can switch between them with Ctrl+1, Ctrl+2, and Ctrl+3.

    +

    You can switch between Front template, Back template and Styling with Ctrl+1, Ctrl+2, and Ctrl+3.

    In Anki, templates are written in HTML, which is the language that web pages are written in. The styling section is CSS, which is the language used for styling web pages.

    @@ -2444,7 +2440,6 @@

    Che
  • Selective Card Generation
  • Conditional Replacement
  • Blank Back Sides
  • -
  • Limitations in Older Anki Versions
  • Adding Empty Notes
  • Cloze Templates
  • @@ -2576,49 +2571,12 @@

    Blank Back {{/Field 2}}

    This will ensure the card is generated only if both Field 2 and Field 1 are non-empty.

    -

    Limitations in Older Anki Versions

    -

    The following limitations do not apply to Anki 2.1.28+ and AnkiMobile 2.0.64+.

    -

    Older Anki versions cannot use negated conditionals for card generation. -For example, on Anki 2.1.28, the following would add a card if a field -called AddIfEmpty is empty, and Front is non-empty:

    -
    {{^AddIfEmpty}}
    -    {{Front}}
    -{{/AddIfEmpty}}
    -
    -

    On earlier Anki versions, the negated conditional is ignored, and card -generation will depend only on Front being non-empty.

    -

    Mixing AND and OR conditions can also cause problems on older versions. -For example, the following ("add the card if A OR B OR C is non-empty") -is fine:

    -
    {{A}}
    -{{B}}
    -{{C}}
    -
    -

    And the following ("add the card if A AND B AND C are non-empty") is fine:

    -
    {{#A}}
    -    {{#B}}
    -        {{#C}}
    -            {{A}}
    -        {{/C}}
    -    {{/B}}
    -{{/A}}
    -
    -

    But the following ("add the card if A OR (B AND C) are non-empty") will not work properly:

    -
    {{A}}
    -{{#B}}
    -    {{#C}}
    -        {{B}}
    -    {{/C}}
    -{{/B}}
    -

    Adding Empty Notes

    -

    When you add a new note in Anki 2.1.28+ and AnkiMobile 2.0.64+, if the card +

    When you add a new note in Anki, if the card templates and note fields combine to produce no cards, a blank card will be created using the first template. This allows you to add material even if it's incomplete, and modify it or the template later to make it valid. If you don't wish to keep an empty note, you can remove it with the Empty Cards function.

    -

    On older Anki versions, Anki refuses to add or import a note if no cards -would be generated.

    Cloze Templates

    Please see the cloze deletion section for background info.

    The cloze note type functions differently from regular note types. @@ -5095,7 +5053,6 @@

    GUID Column

  • Note to Deck Authors
  • -
  • Workaround for Anki 2.1.66 and Earlier
  • @@ -5136,41 +5093,6 @@

    Not

    See this this add-on for why it is advantageous to share notetypes with field and template ids, and how to add them to existing ones.

    -

    Workaround for Anki 2.1.66 and Earlier

    -

    If you know the deck author has made changes and you wish to gain access to -them, changing the notetype back is possible, but rather difficult. You'll need -to do the following:

    - -
    nt = bcard().note().note_type()
    -print("notetype", nt["name"], "has id", nt["id"])
    -
    - -
    nt = bcard().note().note_type()
    -print("current:", nt["name"], "has id", nt["id"])
    -nt = mw.col.models.get(xxx)
    -print("desired:", nt["name"], "has id", nt["id"])
    -
    -

    Exporting