Project

iciba

0.0
No release in over 3 years
Low commit activity in last 3 years
iciba wrapper
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Iciba

A command-line/ruby tool to translate chinese using fy.iciba.com

Installation

Add this line to your application's Gemfile:

gem 'iciba'

And then execute:

$ bundle

Or install it yourself as:

$ gem install iciba

Usage

Command-line usage:

$ fy words to be translated
$ fy english -s #for first word to be returned
$ fy You will need to have root access to do this. -p #to get pinyin for chinese characters, (hopefully fy.iciba.com is correct)
$ fy http://www.chinadaily.com.cn/business/2012-09/07/content_15742188.htm -l #to download links

Ruby usage:

require 'iciba'
Iciba::Fanyi.new('words to be translated').result

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request