LinguaCafe icon indicating copy to clipboard operation
LinguaCafe copied to clipboard

Browser plugin.

Open simjanos-dev opened this issue 1 year ago • 2 comments

Browser plugin that allows the user to import any text from the browser, or use popup vocabulary right there on the websites as they were in LinguaCafe's library.

simjanos-dev avatar Jan 10 '24 16:01 simjanos-dev

I would like to help with this one. I have experience developing Chrome extensions.

skyfighteer avatar Jan 15 '24 12:01 skyfighteer

Can it use vuejs/vuetify code for the interactive text and popup vocabulary box from the already existing codebase?

I haven't developed a browser plugin yet, so I don't know what are the different possible ways to do this. But this is how I thought would work:

Japanese/Chinese:

  • Collect all the text on a website
  • Send a request to LinguaCafe server with the text. It will return the tokenised text.
  • Replace the text on the website with interactive text.
  • Whenever the user modifies a word or phrase, the plugin sends an API request to LinguaCafe.

Other languages Since these texts don't have to be split up to words because they already have spaces, I think there would be a much easier way to do this, and the first 3 steps would not be necessary. We could start by not supporting Chinese/Japanese at first.

There is also a plugin called yomichan that could be looked at to figure out the best way to handle chinese/japanese texts.

What do you think? I haven't really thought this through yet.

simjanos-dev avatar Jan 15 '24 12:01 simjanos-dev