Sha256: a01b252e7c9f9b0af9c2466dfdf547045945fa2dc8d22ab9c76c8ca5e91d209a
Contents?: true
Size: 1.91 KB
Versions: 1
Compression:
Stored size: 1.91 KB
Contents
#Termit [![Build Status](https://travis-ci.org/pawurb/termit.png)](https://travis-ci.org/pawurb/termit) [![Gem Version](https://badge.fury.io/rb/termit.png)](http://badge.fury.io/rb/termit) [![Coverage Status](https://coveralls.io/repos/pawurb/termit/badge.png)](https://coveralls.io/r/pawurb/termit) Termit is an easy way to use Google Translate in your terminal. ## Installation ```ruby gem install termit ``` ## Usage ```ruby termit 'source_language' 'target_language' 'text' ``` Example: ```ruby termit en es "hey cowboy where is your horse?" => "Hey vaquero dónde está tu caballo?" termit fr en "qui est votre papa?" => "Who's Your Daddy?" ``` Parenthesis are not necessary for text data input: ```ruby termit fr ru qui est votre papa? => "Кто твой папочка?" ``` #### Speech synthesis Specify a **-t** (talk) flag to use speech synthesis (requires mpg123): ``` ruby termit en zh "hey cowboy where is your horse?" -t => "嘿,牛仔是你的马在哪里?" #and a chinese voice says something about a horse ``` #### Synonyms Specify a **-s** (synonyms) flag to get the list of synonyms if available: ``` ruby termit es en muchacho -s => boy => Synonyms: boy, lad, youngster, laddie, cully ``` ## Language codes: * english - en * polish - pl * french - fr * spanish - es * slovakian - sk * chinese - zh * russian - ru * automatic source language detection - auto To find all available language codes visit www.translate.google.com. Choose langauges and their codes will appear in the url. ## Requirements Works with Ruby 1.9.2 and higher. To use speech synthesis you need to have mpg123 installed. For Ubuntu: sudo apt-get install mpg123 For MacOSX: brew install mpg123 ## Status This is my first open-source project for people to use. Any feedback will be appreciated. Currently I am available for hire as a rails developer and willing to relocate. You can contact me on: p.urbanek89@gmail.com
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
termit-2.0.8 | README.md |