The time now is Sun 22 Apr 2018, 06:10
All times are UTC - 4 |
Author |
Message |
Bernie_by_the_Sea

Joined: 09 Feb 2011 Posts: 329
|
Posted: Thu 07 Apr 2011, 07:42 Post subject:
Re: new version - 0.1b |
|
Geoffrey wrote: |
I've done a comparison of Goot and gxlat and found that Goot is about twice as fast at getting a translation and the app startup times is about the same, I know it's quite large though I do have a number of other java apps so the size is of no consequence to me, I would say it all l depends on the hardware being used. |
I also have other java apps. I've been using the Firefox/SeaMonkey addon, Quick Translator. Any idea how it compares with these two? I dislike Google almost as much as Microsoft.
https://addons.mozilla.org/en-US/firefox/addon/quick-translator/
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: Thu 07 Apr 2011, 08:28 Post subject:
Re: new version - 0.1b |
|
Bernie_by_the_Sea wrote: | Geoffrey wrote: |
I've done a comparison of Goot and gxlat and found that Goot is about twice as fast at getting a translation and the app startup times is about the same, I know it's quite large though I do have a number of other java apps so the size is of no consequence to me, I would say it all l depends on the hardware being used. |
I also have other java apps. I've been using the Firefox/SeaMonkey addon, Quick Translator. Any idea how it compares with these two? I dislike Google almost as much as Microsoft.
https://addons.mozilla.org/en-US/firefox/addon/quick-translator/ |
I had a look at Quick Translator looks ok if you want to translate web pages into you own language, couldn't see anywhere to convert english into another language which is what I want to use translate for, I find the stand alone translator more versatile for my needs and so far Goot seems to be the quickest on my hardware, I did some more testing and in most cases Goot is up to 7 times faster at getting a translation than gxlat, maybe someone else can test them and see what results they get.
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Thu 07 Apr 2011, 13:44 Post subject:
|
|
Dear Geoffrey,
As for the speed of Goot, I can only say the gxlat, if you look at the code, posts the query to google's translation engine and displays the results instantaneously. The only delay is the server's response. If Goot uses Google, there response has, by definition, have to be slower, since they have to go through java layers for presentation, whereas gxlat uses straight gtk as rendered by C. If, however, they use another translation engine, therein lies the difference.
With kind regards,
vovchik
PS. I translated the original java APIs found on the Google site
|
Back to top
|
|
 |
Geoffrey

Joined: 30 May 2010 Posts: 2346 Location: Queensland
|
Posted: Thu 07 Apr 2011, 21:26 Post subject:
|
|
vovchik,
I can only go on how it runs for me, every test I've done shows that Goot is faster, I just made a short flv of gxlat and Goot in action, this is in real time or very close to it and shows a considerable difference in speed, in some cases Goot is instantaneous.
regards, Geoffrey
|
Back to top
|
|
 |
mcewanw
Joined: 16 Aug 2007 Posts: 3194 Location: New Zealand
|
Posted: Thu 21 Apr 2011, 21:55 Post subject:
|
|
vovchik wrote: |
I still have to do something about escaping double quotes and ampersands in the text. Any ideas? Please look at the function translate in the gxlat script.
|
Thanks for this dotpet vovchik. It is proving very useful in my multi-lingual household...
You seem to have fixed the issue you had with quotes etc., but I'll take a look in case there is anything I can help suggest further there. I had a lot of such issues to deal with when creating my recent app, Pcreole (my first bit of programming for a few years...) so my mind is fresh on the matter.
_________________ SomeOfMyWork with links:
dCoreDog
weX, scrox, Precord, Premote, fokSyfEyeR, xhippo-mod, flite_hts_pet
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Fri 22 Apr 2011, 05:42 Post subject:
|
|
Dear mcewanw (William),
Thanks. Please have a look at the parsing stuff. My sed skills are really lacklustre, and we could do a more thourogh clean in the BaCon bit. In fact, using gtrayapp or Doyle's quick tray app might be a nice idea as a launcher, since the prog would always be available in the taskbar. Goot does that bit well. And a language swap would be nice.
I am also trying to understand pcreole and will find some nice uses.
With kind regards,
vovchik
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3431 Location: www.eussenheim.de/
|
Posted: Thu 12 May 2011, 10:18 Post subject:
speed of gxlat Subject description: response time |
|
#
# time wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=Dear vovchik, I like your program and I am thinking it is worth to be improved&langpair=en|ru"
{"responseData": {"translatedText":"Уважаемый Вовчик, мне нравится ваша программа, и я имею в виду, стоит быть улучшены"}, "responseDetails": null, "responseStatus": 200}
real 0m0.216s
user 0m0.028s
sys 0m0.000s
#
That was when I had gxlat startet successfully (after 2 timeouts)
Now the same without gxlat running:
# time wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=Dear vovchik, I like your program and I am thinking it is worth to be improved&langpair=en|ru"
{"responseData": {"translatedText":"Уважаемый Вовчик, мне нравится ваша программа, и я имею в виду, стоит быть улучшены"}, "responseDetails": null, "responseStatus": 200}
real 0m5.182s
user 0m0.024s
sys 0m0.000s
#
Hope that helps
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Thu 12 May 2011, 14:48 Post subject:
gxlat timeouts |
|
Dear L18L,
I think the timeout problem is related to my timeout setting in bing (bacon program, the source should be there). As you have shown, gxlat really does not inherently slow anything down . The timeouts result from bing reporting slow DNS resolution.
With kind regards,
vovchik
PS. Es ist einfach das Zeug zu ändern/verbessern. Bezüglich Netzwerkverbindungen, Gxlat funktioniert bei mir tadellos - in Wien und sogar in der Ukraine.
|
Back to top
|
|
 |
mcewanw
Joined: 16 Aug 2007 Posts: 3194 Location: New Zealand
|
Posted: Thu 12 May 2011, 15:10 Post subject:
|
|
vovchik wrote: | Dear mcewanw (William),
Thanks. Please have a look at the parsing stuff. |
Sorry vovchik, I said I would do that, but I got really busy, and now I have too much ahead for a long while. I don't think I'll be able to afterall, but I trust you have everything solved to your satisfaction now anyway. I have matters on the personal front coming up so I'm expecting to be going quiet on the computing front for some time, though I'll be back thereafter.
Best wishes
William
_________________ SomeOfMyWork with links:
dCoreDog
weX, scrox, Precord, Premote, fokSyfEyeR, xhippo-mod, flite_hts_pet
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3431 Location: www.eussenheim.de/
|
Posted: Fri 13 May 2011, 08:34 Post subject:
Re: gxlat timeouts Subject description: improvement |
|
vovchik wrote: | PS. Es ist einfach das Zeug zu ändern/verbessern. Bezüglich Netzwerkverbindungen, Gxlat funktioniert bei mir tadellos - in Wien und sogar in der Ukraine. |
and here is the translation that gxlat wrote: | PS. It's just what it takes to change / improve. Regarding network connectivity, Gxlat works perfectly for me - in Vienna and even in Ukraine. |
"It's just what it takes"....mh
It was not that simle....
But anyhow here is my improvement for users outside Vienna.
Code: |
# *********************
# MAIN
# *********************
init_vars
#check_inet
# replacement for check_inet part 1 L18L
yaf-splash -placement center -bg yellow -fontsize large -text "`gettext \"Please wait, probing primary remote site...\"`" &
YPID=$!
for n in 3 2 1 0
do
myDUMMY_TEXT=`wget -qO- "http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=dummy&langpair=en|de" | sed 's/.*"translatedText":"\([^"]*\)".*}/\1\n/' `
[ "$myDUMMY_TEXT" != "" ] && break
sleep `echo $n`
#echo -n $n
done
# end replacement for check_inet part 1 L18L
make_help_gui
make_readme_gui
make_gui
export -f swap_langs
export -f strip_lang_name
export -f translate
#gtkdialog3 -p MAIN
# replacement for check_inet part 2 L18L
if [ "$myDUMMY_TEXT" != "" ]
then
kill $YPID
gtkdialog3 -p MAIN
else
T_noco=$(gettext "Don't wait, no connection to remote site...")
echo "$T_noco"
yaf-splash -placement center -bg yellow -fontsize large -text "$T_noco"
fi
# end replacement for check_inet part 2 L18L
# *********************
# END MAIN
# *********************
|
tested with "Disconnected from network" too.
When connected it is retrying 3 times to to enable the use of this nice program.
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Fri 13 May 2011, 08:54 Post subject:
nice improgvement |
|
Dear L18L,
Much better! Thanks. Do you want to post a revised pet or should I? Very nice mod.
With kind regards,
vovchik
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3431 Location: www.eussenheim.de/
|
Posted: Fri 13 May 2011, 09:56 Post subject:
Re: nice improvement Subject description: not good enough |
|
vovchik wrote: | Dear L18L,
Much better! Thanks. Do you want to post a revised pet or should I? Very nice mod.
With kind regards,
vovchik |
You should do...
I will make the internationalization.
I would like to convert it to BaCon later (with working SWAP button). The translations which have to be made from this shell version can also be used by the BaCon version.
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3431 Location: www.eussenheim.de/
|
Posted: Sat 14 May 2011, 08:27 Post subject:
Re: nice improgvement Subject description: internationalization added |
|
vovchik wrote: | Do you want to post a revised pet or should I? |
Revised yes but no pet. Feel free to delete comments and beautify sources.
The image is showing usage of variables.
Translated once - used twice
Description |
|

Download |
Filename |
gxlat_01c.tar.gz |
Filesize |
33.66 KB |
Downloaded |
599 Time(s) |
|
Back to top
|
|
 |
L18L
Joined: 19 Jun 2010 Posts: 3431 Location: www.eussenheim.de/
|
Posted: Fri 27 May 2011, 05:44 Post subject:
gxlat - urlencoding problem ? Subject description: Russian -> English not working |
|
Hi all
Привет всем
I am about working at "swap languages"...
Did it having converted gxlat to BaCon...
Now I have found a problem which is not BaCon related at all.
So I have reproduced it in gxlat 0.1.b
Source text: Привет всем
From: Russian [ru]
To: English [en]
Translated text: ÐŸÑ € ОР² ÐμÑ, Ð ² Ñ ÐμÐŒ
http://translate.google.com/ can translate to "Hi all"
please help
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Sat 28 May 2011, 11:04 Post subject:
Privet vsem |
|
Dear L18L,
This isn't a gxlat problem. Please see my screenshot. Nothing like yours. It could be that your font isn't showing utf-8 properly or your LANG setting is weird. Mine is set to en_US and I see cyrillic just fine.
With kind regards,
vovchik
Description |
|
Filesize |
23.2 KB |
Viewed |
950 Time(s) |

|
|
Back to top
|
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|