Hey aldazo, nice tips with the google translate app!. I didn't know about the "tap to translate" feature. It works well.
I see you have your workflow solved but maybe it is interesting for others: it turns out that you can open Google Translate on top of KOReader activity. That doesn't happen using the SHARE intent but works fine with PROCESS_TEXT intent.
Happily KOReader supports these kind of intents too (because it is what Kiwix use and being both opensource we shall not forget Kiwix!). So it is relatively easy to extend the "translate button" behaviour like we extended the "dictionary button" behaviour (ie: providing integration with 3rd party apps).
In fact if I create a dictionaries.lua with:
Code:
return {
{ "GTranslate", "Google Translate", true, "com.google.android.apps.translate", "text" },
}
and select that dict on the menu the overlay just pops over the activity exactly like when you use "tap to translate" feature.
I don't plan to implement it myself but I will be happy to help