ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #12907
webbrowser-app from shell cmd line
Hello,
I have below a nice example how to send something to the webbrowser-app;
the question I have: is it possible to enlarge the presentation in the
window of the webbrowser-app (which one does with the two fingers) from
the command line too?
Thanks
matthias
#!/bin/sh
# the server lema.rae.es only understands ISO 8859-1 coded words
# but we have to send them via the 'ubuntu-app-launch' either in ASCII
# or in UTF-8,
# so we rewrite the spanish tilded chars in ISO coding, but as %xx
# values
iso=`echo $1 | sed 's/ñ/%f1/g' |\
sed 's/á/%e1/g' |\
sed 's/é/%e9/g' |\
sed 's/í/%ed/g' |\
sed 's/ó/%f3/g' |\
sed 's/ú/%fa/g' |\
sed 's/ü/%fc/g'`
ubuntu-app-launch webbrowser-app "http://lema.rae.es/drae/srv/search?val=$iso"
--
Matthias Apitz, guru@xxxxxxxxxxx, http://www.unixarea.de/ +49-170-4527211 +49-176-38902045
"Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden."
"Si el hombre es formado por las circunstancias entonces es necesario formar humanamente
las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)
Follow ups