zidian 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +5 -0
- data/README.mkd +20 -0
- data/Rakefile +14 -0
- data/lib/cedict_ts.u8 +86617 -0
- data/lib/zidian.rb +49 -0
- data/zidian.gemspec +30 -0
- metadata +67 -0
data/Manifest
ADDED
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 }
|