Automatically create flashcards from any website

1,448 views
Skip to first unread message

axel.m...@gmail.com

unread,
May 17, 2018, 4:42:04 AM5/17/18
to AnkiDroid
Hi, I am searching for hours and days for:
1) a dictionary app English - German that has a "send to Anki" API function like the great Japanese app "Takoboto", which automatically creates flashcards with word, meaning, notes and example sentence

Or 2) a way to send the contents of a dictionary website to Ankidroid via the "share" function.

Since I have installed almost all English - German dictionary apps on playstore I can say that there is not a single one with Ankidroid support or even with a reasonable sharing function :-(
If you know any, then please let me know.

According to 2) my question is now:
- is there a way to send marked and copied text from any website to Ankidroid, using Javascript to split up that text and allocate it to different fields in the "create note" window?

Yes, I could just mark any text and choose "share - Ankidroid card" but then all the text is pasted in the first field. Could I use Javascript on the website or a userscript or a chrome extension to split the marked text into different fields in Ankidroid? and where would I get the code to do this?

Since I can use userscripts and chrome extensions on my Android browser I could also use any existing software. So if you know a userscript\extension that creates Anki cards from copied text, please let me know.

Thanks a lot and cheers!

Mike Hardy

unread,
May 17, 2018, 6:43:39 AM5/17/18
to anki-a...@googlegroups.com
I use the Google dictionary plug in and configure it to save lookups (made via double click on words or ctrl and select on phrases) . Periodically I take the csv from it and import to anki desktop

-Mike
--
+14157209408 (WhatsApp and US phone)
--
You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
To post to this group, send email to anki-a...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/6bd6f599-35d3-41a3-b57c-8c46d84127f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

axel.m...@gmail.com

unread,
May 17, 2018, 10:02:13 AM5/17/18
to AnkiDroid
Hi Mike, I am using the "Fluentcards" plug-in already wich also creates word pairs of marked words and lets me directly export the list as anki deck. But this plug-in doesn't create any example sentences (same with the google plug-in I think) so it is easier to just visit a dictionary website, mark the word or sentence and choose "share - Ankidroid card". But there was the original problem that I can't influence where the shared text is pasted. Everthing is pasted in the first field of the new Ankidroid card.
So is there a way to influence that behavior? For example, when I copy\share 2 lines of text the first line should be pasted in the first field and the second line in the second field. This alone would save a lot of time.

Mike Hardy

unread,
May 17, 2018, 11:02:15 AM5/17/18
to anki-a...@googlegroups.com

Hmm - I’m not sure how the “share to Ankidroid card” thing works, but in general feature requests accompanied by github pull requests are always at least looked at from what I’ve seen. Maybe there could be some configuration in the app that configures how share ingestion works, and then the shares could be more structured…

With regards to example sentences, I know the kindle-to-anki plugin for Anki Desktop pulls example sentences, perhaps you could repurpose that Python pretty quickly into a csv-to-anki general Anki Desktop plugin that grabbed example sentences the same way?

-Mike


> On May 17, 2018, at 9:02 AM, axel.m...@gmail.com wrote:
>
> Hi Mike, I am using the "Fluentcards" plug-in already wich also creates word pairs of marked words and lets me directly export the list as anki deck. But this plug-in doesn't create any example sentences (same with the google plug-in I think) so it is easier to just visit a dictionary website, mark the word or sentence and choose "share - Ankidroid card". But there was the original problem that I can't influence where the shared text is pasted. Everthing is pasted in the first field of the new Ankidroid card.
> So is there a way to influence that behavior? For example, when I copy\share 2 lines of text the first line should be pasted in the first field and the second line in the second field. This alone would save a lot of time.
>
> --
> You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to anki-android...@googlegroups.com.
> To post to this group, send email to anki-a...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/anki-android/1c41c730-44de-458e-b9be-621841987741%40googlegroups.com.

Timothy Rae

unread,
May 17, 2018, 9:52:46 PM5/17/18
to AnkiDroid
AnkiDroid has an API for adding new notes without any user intervention, and also supports a standard "intent" based system for sharing up to two fields with the AnkiDroid note editor.

As a user there isn't really anything you can do to influence this process, other than asking the developers of the dictionary app you're using to add the features that you need.


On Friday, May 18, 2018 at 12:02:15 AM UTC+9, Mike Hardy wrote:

Hmm - I’m not sure how the “share to Ankidroid card” thing works, but in general feature requests accompanied by github pull requests are always at least looked at from what I’ve seen. Maybe there could be some configuration in the app that configures how share ingestion works, and then the shares could be more structured…

With regards to example sentences, I know the kindle-to-anki plugin for Anki Desktop pulls example sentences, perhaps you could repurpose that Python pretty quickly into a csv-to-anki general Anki Desktop plugin that grabbed example sentences the same way?

-Mike


> On May 17, 2018, at 9:02 AM, axel.merboldt wrote:
>
> Hi Mike, I am using the "Fluentcards" plug-in already wich also creates word pairs of marked words and lets me directly export the list as anki deck. But this plug-in doesn't create any example sentences (same with the google plug-in I think) so it is easier to just visit a dictionary website, mark the word or sentence and choose "share - Ankidroid card". But there was the original problem that I can't influence where the shared text is pasted. Everthing is pasted in the first field of the new Ankidroid card.
> So is there a way to influence that behavior? For example, when I copy\share 2 lines of text the first line should be pasted in the first field and the second line in the second field. This alone would save a lot of time.
>
> --
> You received this message because you are subscribed to the Google Groups "AnkiDroid" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to anki-android+unsubscribe@googlegroups.com.

axel.m...@gmail.com

unread,
May 18, 2018, 6:02:04 AM5/18/18
to AnkiDroid
Hi Mike, I am not familiar enough with scripting that I could just adapt that plug-in to my own needs. And since Anki Desktop plug-ins are not running on AnkiDroid this wouldn't work for me (I am just using my Android phone to create cards)

A github pull request might be a good idea or, as Timothy suggested, a request in the forum of the dictionary app to implement the send to AnkiDroid feature into their app.
Reply all
Reply to author
Forward
0 new messages