You are not logged in.
-EDIT- Changed post title -/EDIT-
...with the ability to translate sentences too.
My primary language is italian.
Thanks for any advice!
Last edited by kokoko3k (2013-07-25 10:58:28)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Could you specify a bit more about what you are loking for? First of all, do you have any experience with CAT and are you a professional translator? Or, do you simply want machine translation software?
Offline
I just need something that translates words and sentences when i read something in a language i don't understand...
Yes, i'd call it a machine translator software
what is CAT?
PS: i just edited the post title to make it clearer.
Last edited by kokoko3k (2013-07-25 10:59:00)
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
what is CAT?
Offline
Thanks, definitely not what i need.
To make it simple, now i copy and past into google translator.
I'd like to do it offline!
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
There is Apertium: http://www.apertium.org/
Offline
Yeah, seems to be the closest one, thanks.
Too bad there aren't not so many dictionaries to choose from.
...Meanwhile, google is giving out offline translation abilities to smartphones
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
There is Apertium: http://www.apertium.org/
Holy crap, THANKS. I wish I knew about this longer.
Offline
Do you have to be offline, or do you just want to get away from using a browser with google?
This will get you a translation from CLI with google. Paste in your text when prompted.
#! /usr/bin/env bash
# Translate text using google. Don't abuse.
# Requires curl, awk, iconv, html2text
# Language are:
# af ar az be bn bg bs ca cub zh-CN zh-TW cs cy da de en en_us en_gb en_au
# el es et eu fa fi fr ga gl gu ht hi hmn hr hu hy is id it iw ja jw ka km
# kn ko la lv lt mk mr ms mt no nl pl pt ro ru sr sk sl sq sw sv ta te th tl
# tr uk ur vi yi
echo "Language options are:"
echo "en de fr es it" # Add languages here.
echo "What input language"
read ILAN
echo "What ouput language"
read OLAN
echo "Enter text"
read TEXT
result=$(curl -s -i --user-agent "" -d "sl=$ILAN" -d "tl=$OLAN" --data-urlencode "text=$TEXT" http://translate.google.com)
encoding=$(awk '/Content-Type: .* charset=/ {sub(/^.*charset=["'\'']?/,""); sub(/[ "'\''].*$/,""); print}' <<<"$result")
iconv -f $encoding <<<"$result" | awk 'BEGIN {RS="</div>"};/<span[^>]* id=["'\'']?result_box["'\'']?/' | html2text
exit
Offline
...Meanwhile, google is giving out offline translation abilities to smartphones
What do you mean? It's impossible for a phone to translate language. The phone always sends the words to Google, the servers translate it, and it gets sent back to your phone.
Did I miss a major leap in technological capability?
Offline
Is machine translation such a resource intensive operation?
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Is machine translation such a resource intensive operation?
I don't know. I imagine it would take a lot of processing, a ton of data stored in a huge database, and extremely specialized software. And that's per language.
I'm hoping the more opinions I throw out the closer we'll get to someone proving me wrong.
Last edited by drcouzelis (2013-07-26 14:46:20)
Offline
@teckk:
Thanks, but i'm really looking for an offline one.
@drcouzelis:
Yes, google is giving out his dictionaries for offline use.
...I'm becoming more and more dependant from google services (i use their calendar, their search engine, their translator, their office apps...) and i don't think this is good.
So i'm trying to regain my independence.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
@teckk interesting script but not working for me.
I have the depenedcies at least I am asuming iconv is perl-text-iconv
any way I choose the lang. then the output lang. then type in some text(or paste in) like
how are you
then press enter
but I just get a blank line
You can like linux without becoming a fanatic!
Offline
I am asuming iconv is perl-text-iconv
No, I don't have that installed.
pacman -Ss iconv
extra/perl-text-iconv 1.7-8
interesting script but not working for me.
I just checked, it doesn't work here anymore either. I haven't used that for a while.
So I looked to see what they changed.......
These quick example from english > deutsch, deutsch > english work.
curl -s -A "Mozilla" "http://translate.google.com/translate_a/t?client=t&text=I+like+to+read+man+pages&hl=pt-BR&sl=en&tl=de&multires=1&ssel=0&tsel=0&sc=1" | awk -F'"' '{print $2}'
curl -s -A "Mozilla" "http://translate.google.com/translate_a/t?client=t&text=Ich+mag+linux+Es+macht+freiheit&hl=pt-BR&sl=de&tl=en&multires=1&ssel=0&tsel=0&sc=1" | awk -F'"' '{print $2}'
I'm in the U.S. Use your countries google server.
If you want text to voice.
curl -s -A Mozilla "http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=I+like+to+read+man+pages" > out.mp3
wget -q -U Mozilla -O output.mp3 "http://translate.google.com/translate_tts?ie=UTF-8&tl=en&q=I+like+to+read+man+pages"
Make yourself a script however you like.
Offline
thanks for the update info - I'm sure I'll get something crude but good enough for me.
ha ha "i like to read manpages"!
You can like linux without becoming a fanatic!
Offline
Thanks, definitely not what i need.
To make it simple, now i copy and past into google translator.I'd like to do it offline!
I have a nexus 7 tablet that can download the Google translator to work offline via google play.
You can select the language you need instead of all of them
Offline
Yep, but i'd like to do that on my linux desktop...
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Yep, but i'd like to do that on my linux desktop...
Did you try this...
Offline
Thanks, but it looks like just as another interface to the online google translator.
Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !
Offline
Maybe it takes to install Android into a virtualbox
do it good first, it will be faster than do it twice the saint
Offline