/usr/share/doc/ruby-romkan/romkan.en.rd is in ruby-romkan 0.4-7build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 | =begin
index:Ej
= Ruby/Romkan: a Romaji <-> Kana conversion library for Ruby
Last Modified: 2002-02-12
--
Ruby/Romkan is a Romaji <-> Kana conversion library for
Ruby. It can convert a Japanese Romaji string to a Japanese
Kana string or vice versa.
Tha latest version of Ruby/Romkan is available at
((<URL:http://namazu.org/~satoru/ruby-romkan/>))
.
== Charcode
Set Ruby's charcode to EUC-JP. $KCODE="e"
== API
--- String#to_kana
Convert a Kunrei or Hepburn Romaji string into a Kana string.
--- String#to_roma
Conver a Hiragana string into a Hepburn Romaji string.
--- String#to_hepburn
Convert a Kunrei Romaji string into a Hepburn Romaji string.
--- String#to_kunrei
Convert a Hepburn Romaji string into a Kunrei Romaji string.
--- String#to_kana!
Destructive version of String#to_kana.
--- String#to_roma!
Destructive version of String#to_roma.
--- String#to_hepburn!
Destructive version of String#to_hepburn.
--- String#to_kunrei!
Destructive version of String#to_kunrei.
--- String#consonant?
Return true if self is a consonant.
--- String#vowel?
Return true if self is a vowel.
--- String#expand_consonant
Expand the trailing consonant into consonants.
e.g. "z".expand_consonant => ["za", "ze", "zi", "zo", "zu"]
== Example
% irb
irb(main):001:0> $KCODE="e"
"e"
irb(main):002:0> require 'romkan'
true
irb(main):003:0> "syatyou".to_kana
"¤·¤ã¤Á¤ç¤¦"
irb(main):004:0> "¤·¤ã¤Á¤ç¤¦".to_roma
"shachou"
irb(main):005:0> "syatyou".to_hepburn
"shachou"
== Download
Ruby/Romkan is a free software with ABSOLUTELY NO WARRANTY under the terms of
the Ruby's licence.
* ((<URL:http://namazu.org/~satoru/ruby-romkan/ruby-romkan-0.4.tar.gz>))
* ((<URL:http://cvs.namazu.org/ruby-romkan/>))
--
satoru@namazu.org
=end
|