Giter VIP home page Giter VIP logo

youdao's Introduction

youdao

A Linux translate tool based on JRE8, MySQL5.7 and Bash.

Introduction

This is an international translate tool which works in a bash environment. It uses the Youdao1 online API translate service and local mysql server to support a personal translate service. The tool can translate nine languages including English, Simplified Chinese, Japanese, Korean, French, Russian, Portuguese, Spanish and Vietnamese from one to another one.

Pre-installation

  1. Install JRE1.8 or above.
  2. Install MySQL5.7+
  3. [optional] Installsox(a multimedia player) and it's corresponding media library if you are going to play the pronunciation of translations.

Installation

Download the script yd and jar file Youdao-3.1.0-SNAPSHOT.jar within setup directory and put them in the same directory.

Usage

Usage: translate [OPTION]... [WORD]...
Translate words from specified language type to specified language type(the default language type is auto).

Description:
     -F FILE, the sourced file.
	The file contains what you want to translate.
     -f TYPE, the sourced language type.
	It can be zh-CHS(Simplified Chinese), ja(Japanese), EN(English),
	ko(Korean), fr(French), ru(Russian), pt(Portuguese), es(Spanish) or vi(Vietnamese).
	It can auto detect the sourced language type if you do not set the sourced language type.
     -t TYPE, the targeted language type.
	It can be zh-CHS(Simplified Chinese), ja(Japanese), EN(English),
	ko(Korean), fr(French), ru(Russian), pt(Portuguese) or es(Spanish) or vi(Vietnamese).
	It can auto detect the targeted language type if you do not set the targeted language type.
     -w Enable the web translation.
     -p Enable sox to play the basic pronunciation. Basic pronunciation can be uk or us.
     -v Choose the voice type of basic pronunciation, 0 stands for female voice and 1 for male.
	Defualt voice is female and you need enable option p before choose this voice type.
     -S Enable sox to play the query information.
     -T Enable sox to play the results of translation.
     -h Print this help information.

Samples

sample1

sample2

sample3

License

© Vin Qin, Computer Science Department of ShanTou University

Licensed under the MIT License.


Footnotes

  1. Youdao is a subsidiary of Netease (a Chinese Internet technology company) that use big data technology to provide mobile Internet applications.

youdao's People

Contributors

vinqin avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.