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

Support for other browsers #52

Closed
themoeway-bot opened this issue Mar 5, 2023 · 3 comments
Closed

Support for other browsers #52

themoeway-bot opened this issue Mar 5, 2023 · 3 comments

Comments

@themoeway-bot
Copy link
Collaborator

AdrienLemaire opened issue FooSoft/yomichan#341 on 2020-01-30


Hi @FooSoft. Thanks for making this tool, I've used it for many years after using Rikaikun, on both chrome/chromium and Firefox.

I'm now adopting vimb as my default browser, but no yomichan is painful.

Vimb explains how to install some plugins like SimplyRead. Get the sources, copy the simplifyread.js content to vimb scripts.js, add a binding to the js function, done.

Yomichan is a much bigger tool, but wouldn't it be possible to copy the proper dir/files and add a mapping to the entrypoint javascript method ?
With 64 js files in your source archive, I haven't dared to try and figure this out by myself. Any hint would be much appreciated :)

@themoeway-bot
Copy link
Collaborator Author

toasted-nutbread commented on 2020-02-02


There are a few issues that I see with trying to get Yomichan to work on such a browser.

Infrastructure

Yomichan is reliant on the WebExtensions APIs provided by modern web browsers, and the behaviour that the extension environment provides. For example, Yomichan has a hidden background window which does a lot of the processing, and it also relies heavily on IndexedDB to store data. It would also be necessary to have Yomichan's settings page for setup and configuration.

vimb's description indicates that it's a "webkit based web browser", but that doesn't explain the full nature of its capabilities.

Input and controls

What would the method be for activating the input? It looks like it's intended to be primarily keyboard driven, while Yomichan is primarily mouse driven. There has been some work related to using keyboard input to control Yomichan, but it's not a formalized feature currently: #300.

There is also some ongoing work to make Yomichan be able to be used as an app that can be used by other processes: #262. So this would still require a Firefox/Chrom* browser to be installed separately, but a more simple script could be implemented to connect to Yomichan running in that browser (once this feature is fully supported).

@themoeway-bot
Copy link
Collaborator Author

AdrienLemaire commented on 2020-02-03


Vimb is using webkit2gtk, like Epiphany and Midori. It is apparently the official web engine on GNOME. It seems to have Web Extensions capabilities.

For the method to activate the input, the most natural way (but I only thought about it 20 seconds) would be to press the yomichan keybind after searching for a word on the page (/ on vimb, Ctrl-f on chrome/firefox). yomichan can find the selected search element with the css property ::selection.

I understand that this is not a trivial task, and I'll keep studying japanese / using firefox with yomichan in the meanwhile. Thanks for considering it :)

@Aquafina-water-bottle
Copy link

Probably not planned, outside for more popular browsers. Note that #66 is still open.

@Aquafina-water-bottle Aquafina-water-bottle closed this as not planned Won't fix, can't repro, duplicate, stale Jun 11, 2023
Casheeew pushed a commit to Casheeew/lesen-tan that referenced this issue Jul 20, 2024
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

2 participants