feat: handle android.intent.action.WEB_SEARCH and open wikipedia links#3864
feat: handle android.intent.action.WEB_SEARCH and open wikipedia links#3864farfromrefug wants to merge 5 commits intokiwix:mainfrom
android.intent.action.WEB_SEARCH and open wikipedia links#3864Conversation
…al links in app directly
|
@farfromrefug Thank you for your PR. we are currently very focused on releasing 3.11.1. Once made we will review your PR. Thank younformOurnpatience. |
|
@farfromrefug Thanks for your PR.
We are handling the localization in the
If anyone tried to search any word with the kiwix from context menu with "Search kiwix" then openSearch method will be called. For now, it will search in the currently opened book.
Currently, if someone uses the "Search kiwix" option then openSearch method will call to search the article for that
Have you used the |
Fixes #731
This PR adds 2 things:
https://en.wikipedia.org/wiki/Special:Search?search=queryqquery parameter and the wikipediasearchquery parameterandroid.intent.action.WEB_SEARCHwhich is the default web search intent. If an app triggers a web search then Kiwix can be used to handle the search. It is disabled by default and can be enabled in the settingsI also added a setting to automatically open supported external links within the app.
How does the project handles localization? i only added english localization.
When you make a search with openSearch, is it searched in all books?
I have a remaining question. If i have an url pointing to an existing page within a book like
https://fr.wikipedia.org/wiki/Gi%C3%A8resis it possible to open it directly within a book? Right now it is always seen as a search so i kind of end up in a endless search loopEDIT: i found a "basic" way of finding the correct book/zim for an url (
https://fr.wikipedia.org/wiki/Gi%C3%A8res) but when i try to open that page within that book i get an webview errorthe page cannot be loaded. Are the URLs transformed in the zim? @kelson42 maybe you know?Screenshots