Project

zidian

0.0
No commit activity in last 3 years
No release in over 3 years
Chinese dictionary using the CEDICT word list
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.6.2
 Project Readme

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