You might like to try my webapp for reading and learning a language:
It allows you to read shared texts or upload your own (.txt or .epub) or read any web page with a Chrome extension (https://chrome.google.com/webstore/detail/readlang-web-reade...)
You can click or drag across any word or phrase to get an instant translation.
Every translation is converted into a flashcard, along with the context sentence.
You can practice with Readlang's own spaced repetition flashcards or export to Anki if you prefer.
Hope you find it useful!
(I've been bootstrapping this for the past 2.5 years)