Bỏ qua đến nội dung

Export Cards As Text

Chờ xử lý #anki #addon #export #cards #text
Unknown
8/7/2021

Cách tải addon Export Cards As Text

Bạn có thể tải addon bằng một trong hai cách sau:

Click nút Copy bên dưới để copy code vào clipboard

1112021968

Sau đó mở Anki → Tools → Add-ons → Get Add-ons → Dán code → OK

Mở trang addon trên AnkiWeb và tìm mã code ở cuối trang

Mở trên AnkiWeb

Cuộn xuống cuối trang AnkiWeb, tìm dòng có mã code 1112021968 và copy

8
9

Mô tả chi tiết

Anki add-on for exporting cards from Anki to a text file (CSV, XML, JSON). Copyright (c) 2014-2021 Jiri Kriz, http://www.nosco.ch/main/en/contact.php License: GNU GPL, version 3 or later; http://www.gnu.org/copyleft/gpl.html Version 3.0 (05-Jul-2021) (running with Anki 2.1.0 and higher) (Use the add-on 1589071665 for Anki 2.0.x.) Support: None. Use at your own risk. You can send me suggestions and bug reports on https://www.nosco.ch/main/en/contact.php

Export Dialog Help:

Format Format of the exported text file. One of: CSV (Comma Separateted Values), JSON, XML

CSV Delimiter Delimiter in the CSV file, e.g. ’,’ or ’;’ or ‘\t’ (tabulator).

File The exported file.

Browse Displays a file dialog to specify the exported file.

Deck Filter The specified deck or all decks will be exported.

Tag Filter Cards having one of the specified tags (delimited by blanks) will be exported. If the filter is empty, then all cards will be exported.

Include All Fields If checked, then all card fields will be output. If not checked, then only the front and back sides will be output.

Include All Tags If checked, then all card tags will be output. If not checked, then none tags will be output.

Include Reverse Cards If checked, then also the reverse cards will be output. If not checked, then the reverse cards will not be output.

Include Deck Name If checked, then the card’s deck name will be output. If not checked, then the deck name will not be output.

Include Card ID If checked, then the card’s ID will be output. If not checked, then the card’s ID will not be output.

Include Card Type If checked, then the card’s type will be output. If not checked, then the card’s type will not be output.

Include Note ID If checked, then the note’s ID will be output. If not checked, then the note’s ID will not be output.

Include Note Type If checked, then note’s type will be output. If not checked, then the note’s type will not be output.

OK Perform the export with the specified settings.

Cancel Cancel the export.

Remarks:

It is assumed that the created card and the associated reversed card (if any) have neighboring IDs. More precisely, if a card has ID1 and its associated reversed card has ID2, then no other card has an ID between ID1 and ID2. It seems that this assumption is always fulfilled. If this assumption were wrong then reverse cards would potentially also be exported even if ‘Include Reverse Cards’ = False. Note that associated reverse cards have the same ‘NoteID’ and different ‘CardType’.

The addon was tested on Windows only.

Versions:

1.0 (19-May-2014) Initial version

1.1 (14-Sep-2014) Fixed bug ‘IndexError’ in deck list

2.1 (17-Aug-2017) Ported to Anki 2.1

3.0 (05-Jul-2021)

  • New name “Export Cards As Text” (previously “Export Cards As Text V2.1.1”)
  • Running with Anki 2.1.x
  • The first line “Field 1 (Front) Field 2 (Back) …” not written
  • All fields are written first, then Tags and other information
  • Fields containing commas, quotes, etc. are quoted properly
  • Empty decks are not exported

Reviews (17)

👍 2023-11-23

Doesn’t work.

👍 2022-01-19

Doesn’t work. All export file types blank.

👍 2022-01-03

Doesn’t work. I can export, but the files are empty.

👍 2021-09-30

Anki 2.1.48 (fb07bad3) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2

Platform: Windows 10

Flags: frz=True ao=True sv=2

Add-ons, last update check: 2021-09-29 21:45:25

Caught exception:

Traceback (most recent call last):

File “C:\Users\usuario\AppData\Roaming\Anki2\addons21\1112021968_init_.py”, line 328, in accept

ok = exporter.doExport()

File “C:\Users\usuario\AppData\Roaming\Anki2\addons21\1112021968_init_.py”, line 493, in doExport

self.exportDeck(deckID, deckName)

File ”

👍 2021-06-28

The addon works correctly, even with csv files. Just make sure, if you use commas , in your text, that you choose tab \t as the seperator, and also that you select that option when opening the csv with another table editor like libre calc, because the standard option will be comma , in the most cases.

👍 2021-04-20

works perfect with XML

👍 2021-04-08

Works well!

👍 2020-09-05

Funciona pra mim.

👍 2020-07-15

Works for me, no complaints here.

👍 2020-06-27

Works for me =)

👍 2020-05-05

didnt work

👍 2019-10-24

I test json and xml and it works fine.

thank you.

👍 2019-01-08

Cannot export cards. The error is below.

Debug info:

Anki 2.1.5 Python 3.6.1 Qt 5.9.2 PyQt 5.9

Platform: Windows 10

Flags: frz=True ao=True sv=1

Caught exception:

File “C:\Users\user\AppData\Roaming\Anki2\addons21\1112021968_init_.py”, line 314, in accept

ok = exporter.doExport()

File “C:\Users\user\AppData\Roaming\Anki2\addons21\1112021968_init_.py”, line 449, in doExport

cardIds = sorted(self.cardIds())

File “C:\Users\user\AppData\Roaming\Anki2\addons21\198320

👍 2018-12-23

Tried exporting to csv and didn’t separate correctly

👍 2018-11-12

The CSV export does not encapsulate with quotes, so any commas in the field end up breaking the csv import into a spreadsheet.

👍 2018-08-22

Export to JSON feature is unusable. You need to handle special characters properly (e.g., quote mark).

👍 2018-02-07

Exactly what I need. Excellent job! Thank you