Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Marvin

Notices

Reply
 
Thread Tools Search this Thread
Old 09-23-2013, 10:29 PM   #1
MeSue
Geek in the Forest
MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.
 
MeSue's Avatar
 
Posts: 399
Karma: 1077186
Join Date: Nov 2012
Location: FL
Device: iPad Air, iPhone 4s, Nexus 7
Help with URL Scheme for Google Translate (Mobile)

Can anyone help with the URL scheme to launch the Google Translate app? I know the URL scheme is googletranslate:// but I don't know what to put after it to have the selection pasted in as "detect language" and translate to English.
MeSue is offline   Reply With Quote
Old 09-23-2013, 10:43 PM   #2
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
Lightbulb

Here goes:

Code:
http://translate.google.com/?vi=c#auto/en/{define}
It's offered among Marvin's custom menu button presets; I just swapped "ru" inside there for "en".

I also swapped "text" for "define". If you leave "text" there, then Marvin will launch Google Translate, but will not put the word you are translating, into your Vocabulary list. If you use "define" instead of "text", it will add it to your Vocabulary list.

I was testing this on my iPhone, and once again, I was struck by how easy it is to overlook the option to set up custom menu buttons in Marvin for iPhone. I wish at least the text on that settings screen explicitly said something like: "Scroll below, you can set up 4 custom menu buttons there!" I bet 75% or 80% (or even more?) of Marvin users have no idea that any custom menu buttons are there, hidden below the lower edge of the settings pane. Yes, you may notice the blinking scrolling hint arrow the first time around, or the first few times around, but after a while, you mind stops registering it. (See GitHub #116).
Faterson is offline   Reply With Quote
Advert
Old 09-23-2013, 10:47 PM   #3
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
PS: If you specifically insist on using the app, you could try the same code (or its variaton) there following the two slashes. However, the usefulness of launching the app instead of Marvin's internal browser escapes me; both services rely on an active Internet connection, while launching the app would transfer you away from Marvin to the app every time, forcing you to return to Marvin manually every time -- which seems more time-consuming than simply pressing the "Book" button in the top-left corner of Marvin's internal browser pane. It is particularly time-consuming on the iPhone where you do not have the 4-finger swipe gesture available for easily swapping back and forth between two open iOS apps.

Last edited by Faterson; 09-23-2013 at 10:58 PM.
Faterson is offline   Reply With Quote
Old 09-23-2013, 11:56 PM   #4
MeSue
Geek in the Forest
MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.
 
MeSue's Avatar
 
Posts: 399
Karma: 1077186
Join Date: Nov 2012
Location: FL
Device: iPad Air, iPhone 4s, Nexus 7
Quote:
Originally Posted by Faterson View Post
PS: If you specifically insist on using the app, you could try the same code (or its variaton) there following the two slashes. However, the usefulness of launching the app instead of Marvin's internal browser escapes me...
I tried that code after the URL scheme for the app and it doesn't fill in the selected text. I want to use the app (only on the iPhone) because it is formatted better for the small screen. If I could get Marvin's browser to use the mobile version of the site, it would be fine, but I can't get that working either.
MeSue is offline   Reply With Quote
Old 09-24-2013, 12:09 AM   #5
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
Lightbulb

Quote:
Originally Posted by MeSue View Post
If I could get Marvin's browser to use the mobile version of the site, it would be fine, but I can't get that working either.
Use this; it works:

Code:
http://translate.google.com/m?hl=en&sl=auto&tl=en&ie=UTF-8&prev=_m&q={define}
It really is a hassle to switch between two apps on the iPhone... There are 2 reasons why I've been seriously considering an iPhone jailbreak: enabling custom keyboard layouts; and enabling the 4-finger iOS gestures on the iPhone, too....
Faterson is offline   Reply With Quote
Advert
Old 09-24-2013, 01:28 PM   #6
MeSue
Geek in the Forest
MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.
 
MeSue's Avatar
 
Posts: 399
Karma: 1077186
Join Date: Nov 2012
Location: FL
Device: iPad Air, iPhone 4s, Nexus 7
Quote:
Originally Posted by Faterson View Post
Use this; it works:

Code:
http://translate.google.com/m?hl=en&sl=auto&tl=en&ie=UTF-8&prev=_m&q={define}
It really is a hassle to switch between two apps on the iPhone...
That doesn't launch the mobile version of Google Translate for me, and when I switch the view to mobile from the link at the bottom of the page it erases the text I was looking up. The screen shot shows what I get using the code above:
Click image for larger version

Name:	ImageUploadedByTapatalk1380043147.409687.jpg
Views:	673
Size:	146.5 KB
ID:	112050

Not even readable.

I don't find switching apps that much of a hassle. Especially since iOS 7 (I know you hate it) because it puts the last used app in the center for easy switching.
MeSue is offline   Reply With Quote
Old 09-24-2013, 02:17 PM   #7
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
Question

Quote:
Originally Posted by MeSue View Post
I don't find switching apps that much of a hassle.
I see you have a (slightly) newer iPhone than I do. On my 2010 iPhone 4, the central hardware home button is no longer as responsive as it should be. I think it reacts better to the double-press in iOS 7 than it used to in iOS 6 (maybe because everything is "slowed down" in iOS 7), but it still is a hassle to have to double-press, and then tap, just to switch to a different app; and, sometimes that double-press is interpreted by my iPhone as a single press, returning me to the home screen instead of popping up the multi-tasking carousel, and at other times, it is interpreted as a triple-press, switching me to the "white on black" mode... It would really help if that iOS 4-finger swipe gesture were available on the iPhone, too, and I may well decide to jailbreak my iPhone later on, if only because of that.

Quote:
Originally Posted by MeSue View Post
That doesn't launch the mobile version of Google Translate for me
That is very weird. That code definitely launches the mobile version of Google Translate in Marvin for me, see below:

Faterson is offline   Reply With Quote
Old 09-24-2013, 03:25 PM   #8
MeSue
Geek in the Forest
MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.
 
MeSue's Avatar
 
Posts: 399
Karma: 1077186
Join Date: Nov 2012
Location: FL
Device: iPad Air, iPhone 4s, Nexus 7
Quote:
Originally Posted by Faterson View Post
That is very weird. That code definitely launches the mobile version of Google Translate in Marvin for me, see below:
Weird indeed! I tried switching to mobile and trying again, making sure I was signed in, etc. Even when I switch over to mobile view, it looks different for me compared to your screen shot:
Attached Thumbnails
Click image for larger version

Name:	Photo Sep 24, 3 14 45 PM.png
Views:	562
Size:	51.0 KB
ID:	112057  
MeSue is offline   Reply With Quote
Old 09-24-2013, 04:08 PM   #9
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
Question

Google can be rather unpredictable in offering various versions of its webpages to various users, sometimes depending on the users' geographical location, at other times depending on the specific computer/device/browser they use, on the logged-in versus logged-out status, etc. There can also be different versions of the logged-in status! (Say, a logged-in regular Google user compared to a "corporate" or academic logged-in Google Apps user.)

I don't normally use Safari in iOS, but I have just checked it out on my iPhone and I am signed in to Google there (regular Google, not Google Apps). I don't understand why you are seeing a completely different mobile version of Google Translate on your iPhone, compared to my version of it. In my mobile version of Google Translate, there does not even appear to be a way to sign in/out of Google's site.

That we are getting to see such wildly different results while employing the same "trigger code" in Marvin, is mind-boggling.
Faterson is offline   Reply With Quote
Old 09-24-2013, 04:14 PM   #10
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
PS: I have now discovered I was not signed in to Google inside Marvin's browser (which surprised me: I thought Marvin uses Safari, where I had been signed in to Google).

Anyway, even signing in to Google's pages (after tapping "Google Home") in Marvin makes no difference... I still get to see the same Google Translate version of the mobile site as captured in the screenshot above.
Faterson is offline   Reply With Quote
Old 09-24-2013, 07:15 PM   #11
MeSue
Geek in the Forest
MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.
 
MeSue's Avatar
 
Posts: 399
Karma: 1077186
Join Date: Nov 2012
Location: FL
Device: iPad Air, iPhone 4s, Nexus 7
FYI, I moved these posts out of the other thread so it would not be cluttered with non-working URL scheme discussion.

Still seeking help for the working URL scheme that will give me the mobile version (or app) for Google Translate if anyone has suggestions...
MeSue is offline   Reply With Quote
Old 10-02-2013, 08:40 AM   #12
At_Libitum
Addict
At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.At_Libitum ought to be getting tired of karma fortunes by now.
 
Posts: 265
Karma: 724240
Join Date: Aug 2013
Device: KyBook
Hi MeSue

I revisited this today and after some 'fiddling' I finally found a working url format.

Faterson was close. In its simplest form with all the extraneous noise from Google removed it gave me directly the page you saw after switching Faterson's page to mobile

Code:
http://translate.google.com/?sl=auto&tl=en&q={define}
it really does not need any other parameter as these are purely to satisfy Google's curiosity.
At_Libitum is offline   Reply With Quote
Old 10-02-2013, 10:05 AM   #13
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
Question

I wonder, At_Libitum... could be just your particular browser's settings that make it work. My link even explicitly requests the mobile site, and it still doesn't work for Sue. For me, both my and your version works, but there's no guaranteeing (I'm afraid) what will happen on Sue's (or anyone else's) devices, is there? Your link does not request the mobile site; it's the standard link to Google Translate, and on your (and my) device, this gets redirected to the mobile site version as desired, but...
Faterson is offline   Reply With Quote
Old 10-02-2013, 11:40 AM   #14
MeSue
Geek in the Forest
MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.MeSue ought to be getting tired of karma fortunes by now.
 
MeSue's Avatar
 
Posts: 399
Karma: 1077186
Join Date: Nov 2012
Location: FL
Device: iPad Air, iPhone 4s, Nexus 7
Quote:
Originally Posted by At_Libitum View Post
Hi MeSue

I revisited this today and after some 'fiddling' I finally found a working url format.

Code:
http://translate.google.com/?sl=auto&tl=en&q={define}
it really does not need any other parameter as these are purely to satisfy Google's curiosity.
Thank you for your efforts but this still gives me the desktop site in Marvin. When I use the "open in safari" shortcut from Marvin, however, it opens the mobile site in Safari. So I guess it is something that has my Marvin browser locked into the desktop site…? A cookie, maybe, but I don't know what to look for or how to change it. I also get the desktop site when I use the Wikipedia custom menu item (preset), but when I use the search web button from the built-in action menu, then I get a mobile version of Google.
MeSue is offline   Reply With Quote
Old 10-02-2013, 12:01 PM   #15
Faterson
pokrývač škridiel
Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.Faterson ought to be getting tired of karma fortunes by now.
 
Faterson's Avatar
 
Posts: 1,525
Karma: 3300000
Join Date: Oct 2011
Location: Bratislava, Slovakia
Device: 3*iPad, SamsungNote & Tabs, 2*OnyxBoox, Huawei 8″, PocketBook
Question

Quote:
Originally Posted by MeSue View Post
A cookie, maybe, but I don't know what to look for or how to change it.
It's a chaotic situation. I thought Marvin was simply using an embedded Safari window? Yet the browser within Marvin behaves differently for me compared to the ("same") Safari browser outside Marvin. (Which is a browser I don't use at all.) Even when I log in to Google in "both Safaris", I can still see different results within and outside of Marvin.

This could be chaos (co-)created by Google and Apple, or just one of them. I administer a bunch of domains via Google Apps, and let me tell you, chaos is the order of the day there. Totally inconsistent and self-contradictory interface, etc. And it's not a temporary phenomenon -- it's been like that for years, ever since Google Apps first launched. Google's services are great, but transparency or clarity of their organisation/functionality is not among their traits. It's as if Google just kept improvising all the time, as they move along. Remember how Gmail used to be in the "Beta" stage for something like 5 years?
Faterson is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[HACK] Google Translate on Ebook search menu lowpis Kindle Developer's Corner 19 02-24-2021 09:19 AM
Would anyone know Slovoed's URL Scheme Heitor Marvin 3 09-25-2013 01:16 AM
Google Translate: Will this new function kill foreign rights? L.J. Sellers News 26 06-01-2011 09:36 PM
feature wishlist (via google translate) 90x, 60x review PocketBook 0 01-22-2011 05:59 PM


All times are GMT -4. The time now is 10:18 AM.


MobileRead.com is a privately owned, operated and funded community.