ropencc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -4
- data/lib/ropencc/version.rb +1 -1
- data/ropencc.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,30 +1,42 @@
|
|
1
1
|
ropencc
|
2
2
|
=======
|
3
3
|
ropencc is a project for conversion between Traditional and Simplified Chinese, wrapper in ruby.
|
4
|
-
|
4
|
+
|
5
|
+
Open Chinese Convert(OpenCC)「開放中文轉換」,是一個致力於中
|
6
|
+
文簡繁轉換的項目,提供高質量詞庫和函數庫(libopencc)。<a href='http://code.google.com/p/opencc/'>更多介紹</a>。
|
5
7
|
|
6
8
|
Install
|
7
9
|
-------
|
8
10
|
先安装 libopencc
|
9
11
|
|
10
12
|
Ubuntu
|
13
|
+
|
11
14
|
如果你正在使用Ubuntu 10.10 (Maverick) 以上的版本,opencc已經被加入到了官方源中,使用
|
15
|
+
|
12
16
|
sudo apt-get install opencc
|
17
|
+
|
13
18
|
如果你更願意體驗最新的版本,請使用ppa:
|
19
|
+
|
14
20
|
sudo add-apt-repository ppa:byvoid-kcp/ppa
|
15
21
|
sudo apt-get update
|
16
22
|
sudo apt-get install opencc
|
17
23
|
|
18
24
|
|
19
25
|
Mac OS X
|
26
|
+
|
20
27
|
使用 brew 安装
|
28
|
+
|
21
29
|
brew install opencc
|
22
30
|
|
23
|
-
|
31
|
+
更多 libopencc 安装介绍请查看: <http://code.google.com/p/opencc/wiki/Install>
|
24
32
|
|
25
33
|
Usage
|
26
34
|
-----
|
35
|
+
|
27
36
|
简转繁
|
28
|
-
|
37
|
+
|
38
|
+
Ropencc.conv('simp_to_trad',text)
|
39
|
+
|
29
40
|
繁转简
|
30
|
-
|
41
|
+
|
42
|
+
Ropencc.conv('trad_to_simp',text)
|
data/lib/ropencc/version.rb
CHANGED
data/ropencc.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
|
|
6
6
|
gem.email = ["psi.xie@gmail.com"]
|
7
7
|
gem.description = %q{ a project for conversion between Traditional and Simplified Chinese, wrapper in ruby. }
|
8
8
|
gem.summary = %q{ a project for conversion between Traditional and Simplified Chinese. }
|
9
|
-
gem.homepage = ""
|
9
|
+
gem.homepage = "https://github.com/Psli/ropencc"
|
10
10
|
|
11
11
|
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
12
12
|
gem.files = `git ls-files`.split("\n")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ropencc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -26,7 +26,7 @@ files:
|
|
26
26
|
- lib/ropencc.rb
|
27
27
|
- lib/ropencc/version.rb
|
28
28
|
- ropencc.gemspec
|
29
|
-
homepage:
|
29
|
+
homepage: https://github.com/Psli/ropencc
|
30
30
|
licenses: []
|
31
31
|
post_install_message:
|
32
32
|
rdoc_options: []
|