romaji 0.1.5 → 0.1.6
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/lib/romaji.rb +1 -1
- data/lib/romaji/version.rb +1 -1
- data/spec/romaji_spec.rb +1 -0
- metadata +5 -5
data/lib/romaji.rb
CHANGED
@@ -21,7 +21,7 @@ module Romaji
|
|
21
21
|
end
|
22
22
|
|
23
23
|
# ッ
|
24
|
-
if chars[pos] == chars[pos + 1] && !['a', 'i', 'u', 'e', 'o', 'n'].include?(chars[pos])
|
24
|
+
if chars[pos] == chars[pos + 1] && !['a', 'i', 'u', 'e', 'o', 'n'].include?(chars[pos]) && chars[pos] =~ /[a-z]/
|
25
25
|
kana += 'ッ'
|
26
26
|
pos += 1
|
27
27
|
next
|
data/lib/romaji/version.rb
CHANGED
data/spec/romaji_spec.rb
CHANGED
@@ -12,6 +12,7 @@ describe Romaji do
|
|
12
12
|
Romaji.romaji2kana('shimbashi').should == 'シンバシ'
|
13
13
|
Romaji.romaji2kana('kinkakuji').should == 'キンカクジ'
|
14
14
|
Romaji.romaji2kana('tottori').should == 'トットリ'
|
15
|
+
Romaji.romaji2kana('イイハナシダナー').should == 'イイハナシダナー'
|
15
16
|
end
|
16
17
|
|
17
18
|
it 'should transliterate with kana_type' do
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: romaji
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 6
|
10
|
+
version: 0.1.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shimpei Makimoto
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-08-
|
18
|
+
date: 2012-08-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rake
|
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
165
165
|
requirements: []
|
166
166
|
|
167
167
|
rubyforge_project:
|
168
|
-
rubygems_version: 1.8.
|
168
|
+
rubygems_version: 1.8.24
|
169
169
|
signing_key:
|
170
170
|
specification_version: 3
|
171
171
|
summary: Yet another Romaji-Kana transliterator
|