File: romkan.en.rd

package info (click to toggle)
ruby-romkan 0.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 88 kB
  • ctags: 54
  • sloc: ruby: 348; makefile: 2
file content (79 lines) | stat: -rw-r--r-- 1,762 bytes parent folder | download | duplicates (2)
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
=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/>))
.

== 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