david-swift / Memorize

Study flashcards in a native GNOME app
https://flathub.org/apps/io.github.david_swift.Flashcards
GNU General Public License v3.0
87 stars 9 forks source link

Support Anki import #5

Open 12people opened 6 months ago

12people commented 6 months ago

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

It'd be great if Flashcards allowed importing Anki files.

Describe alternatives you've considered

I suppose Anki could gain support for export to Flashcards instead, but Anki is the more common format here.

Additional context

Anki is probably the most commonly-used free and open-source flashcard app. As such, there's a lot of Anki decks being shared around and it'd be great to be able to use them inside Flashcards.

david-swift commented 6 months ago

Thanks for opening this issue! There is basic support for importing Anki decks since the commit afe3a8bb87edfdfa0f2dcac6648f9c66d3a78cf3, discussed in #1 here. This works for simple decks, but the difficulty is that Anki supports HTML while Flashcards doesn't. The idea is that Markdown support could be implemented into Flashcards, and the HTML of a deck could then be converted into Markdown during the import process. What do you think about that, @12people?

12people commented 6 months ago

That sounds great!

Only thing to keep in mind here: there should be a message before or after the import about how some aspects of the Anki deck might not be imported correctly (as HTML -> Markdown is lossy), so that users aren't surprised that some things don't look quite right.