Skip to content

bastien/zidian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zidian

Zidian is a simple Chinese-English dictionary written in ruby. It only works under Unix systems, as it uses specific commands (sed, grep, less), at least for now.

Install

gem install zidian

Examples of use

Zidian.find(237) # returns the Word from the 237 id (line number in the file)

Zidian.find("culture") # returns all the words that contain "culture"

Zidian.find("文") # returns all the words that contain "文"

Zidian.find([653,34]) # returns the 2 words corresponding to the given ids

Zidian.find("wei2 cheng2") # returns the words corresponding to the given pinyin with tones

Zidian.find("wei cheng") # returns the words corresponding to the given pinyin without tones

Author: Bastien Vaucher Version: 0.1.1 Licence: MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages