Hacker News new | ask | show | jobs
by tra3 2042 days ago
Interesting. Do you have an automated way of breaking books down, or are you doing it manually?
1 comments

Semi-automated: I have a hacky Python script that will break up the main text and pick the cloze words, but the other metadata on my cards has to be entered manually (Title, Author, Chapter)

I did the first one manually. In addition to being a lot of work, there were major spoiler hazards— If I wasn’t already familiar with the general shape of the plot, the process would have revealed secrets too early.

Are you able to share your script or your deck? Would love to experiment with that.
Sure, but it's pretty rough; the cards are normal Anki cloze cards with a couple of extra fields.

The script will ask you for a text file to process and the pop up a Tkinter window with a single button. Each time you press the button, it copies the next card's body text to the clipboard, ready to be pasted into Anki's Add window.

The text file needs to be already split into reasonable-length lines, like the ones you get from gutenberg.org

Card template: https://pastebin.com/BFJxW1jC

Cloze splitting script: https://pastebin.com/4Jek0G7u