zidian 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Manifest +5 -0
  2. data/README.mkd +20 -0
  3. data/Rakefile +14 -0
  4. data/lib/cedict_ts.u8 +86617 -0
  5. data/lib/zidian.rb +49 -0
  6. data/zidian.gemspec +30 -0
  7. metadata +67 -0
data/Manifest ADDED
@@ -0,0 +1,5 @@
1
+ README.mkd
2
+ Rakefile
3
+ lib/cedict_ts.u8
4
+ lib/zidian.rb
5
+ Manifest
data/README.mkd ADDED
@@ -0,0 +1,20 @@
1
+ Zidian
2
+ ======
3
+
4
+ Zidian is a simple Chinese-English dictionary written in ruby.
5
+ It only works under Unix systems, as it uses specific commands (sed, grep, less), at least for now.
6
+
7
+ Examples of use
8
+ --------------
9
+
10
+ Zidian.find(237) # returns the Word from the 237 id (line number in the file)
11
+
12
+ Zidian.find("culture") # returns all the words that contain "culture"
13
+
14
+ Zidian.find("文") # returns all the words that contain "文"
15
+
16
+ Zidian.find([653,34]) # returns the 2 words corresponding to the given ids
17
+
18
+ Author: Bastien Vaucher
19
+ Version: 0.0.1
20
+ Licence: MIT
data/Rakefile ADDED
@@ -0,0 +1,14 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+ require 'echoe'
4
+
5
+ Echoe.new('zidian', '0.0.1') do |p|
6
+ p.description = "Chinese dictionary"
7
+ p.url = "http://github.com/bastien/zidian"
8
+ p.author = "Bastien Vaucher"
9
+ p.email = "bastien.vaucher@gmail.com"
10
+ p.ignore_pattern = ["tmp/*", "script/*"]
11
+ p.development_dependencies = []
12
+ end
13
+
14
+ Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }