Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature idea: Sentence-by-sentence reader #3

Open
csalg opened this issue Dec 14, 2019 · 3 comments
Open

Feature idea: Sentence-by-sentence reader #3

csalg opened this issue Dec 14, 2019 · 3 comments

Comments

@csalg
Copy link

csalg commented Dec 14, 2019

I am thinking of pulling and adding a sentence-by-sentence reader feature. I'm opening this issue for discussion, maybe you guys have a better idea? If you think the idea is good I would be happy to contribute this.

I have recently been making flashcards from subtitles using some subtitle translation websites and SubtitleMemorize. This approach works quite well and I prefer to review sentences than individual words. The problem is that I prefer reading books to watching TV, so I was thinking of adding a similar feature to LWT.
The feature would work like this:

  • Parse the text and break it up into sentences.
  • Use Google Translate API to translate each individual sentence, similar to how some websites do it.
  • Store both sentences in a table, and also an array with newline locations in the original texts so that the text can be reassembled from the table.
  • Now, when reading, one clicks on the sentence and the flashcard editor appears. Front is target language, back is native language. One can select some words, for example by using curly braces as LWT does right now, in both languages, to highlight the terms when reviewing in Anki.

This feature would also really improve user experience IMO as it is much faster to read the cached translation from local database than call external dictionary API's every time.

I was thinking of having a separate page for this, or perhaps extending the current text reader using some shortcut (for example, click to display term edit options, ctrl+click for sentence edit options).

Opinions?

@joshua-koehler
Copy link

Coming in a bit late here, but this is an interesting idea.

@alex-laird
Copy link

I would also really like and benefit from this. If you're still interested in contributing this feature, I'd love to see how it turns out.

@val1101
Copy link

val1101 commented Mar 30, 2021

Hello, I was looking for this feature, have you been able to do it? 😀😀 @csalg

(English is not my native language hehe sorry for my mistakes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants