blob: 4ae355749281c00297d034dd6b816686c3a2d6df (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
--- romkan.rb 2002-02-12 02:45:16.000000000 +0100
+++ romkan.rb 2012-06-25 10:15:59.723542130 +0200
@@ -1,3 +1,4 @@
+# -*- encoding:euc-jp -*-
#
# Ruby/Romkan - a Romaji <-> Kana conversion library for Ruby.
#
@@ -209,13 +210,13 @@
HEPPAT = HEPBURN.sort {|a, b| b.length <=> a.length }.join "|"
TO_HEPBURN = (romrom = Hash.new
- KUNREI.each_with_index {|x, i|
- romrom[KUNREI[i]] = HEPBURN[i]}
+ KUNREI.each_with_index {|x, j|
+ romrom[KUNREI[j]] = HEPBURN[j]}
romrom)
TO_KUNREI = (romrom = Hash.new
- HEPBURN.each_with_index {|x, i|
- romrom[HEPBURN[i]] = KUNREI[i]}
+ HEPBURN.each_with_index {|x, j|
+ romrom[HEPBURN[j]] = KUNREI[j]}
romrom)
# FIXME: ad hod solution
--- test.rb 2002-02-12 02:45:25.000000000 +0100
+++ test.rb 2012-06-25 10:13:51.832021574 +0200
@@ -1,3 +1,4 @@
+# -*- encoding:euc-jp -*-
#
# ruby -Ke test.rb </dev/null && echo ok
#
|