GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Lingua::JA::Regular::Unicode(3) User Contributed Perl Documentation Lingua::JA::Regular::Unicode(3)

Lingua::JA::Regular::Unicode - convert japanese chars.

    use Lingua::JA::Regular::Unicode qw/alnum_z2h hiragana2katakana space_z2h/;
    alnum_z2h("A1");                                        # => "A1"
    hiragana2katakana("ほげ");                                # => "ホゲ"
    space_z2h("\x{0300}");                                    # => 半角スペース

Lingua::JA::Regular::Unicode is regularizer.

Convert alphabet, numbers and symbols ZENKAKU to HANKAKU.

Symbols contains >, <.

Yes, it's bit strange. But so, this behaviour is needed by historical reason.

Convert alphabet, numbers and symbols HANKAKU to ZENKAKU.
convert spaces ZENKAKU to HANKAKU.
convert spaces HANKAKU to ZENKAKU.
convert katakanas ZENKAKU to HANKAKU.
convert katakanas HANKAKU to ZENKAKU.
convert KATAKANA to HIRAGANA.

This method ignores following chars:

    KATAKANA LETTER VA
    KATAKANA LETTER SMALL RE
    KATAKANA LETTER SMALL HU
    KATAKANA LETTER SMALL HI
    KATAKANA LETTER SMALL HE
    KATAKANA DIGRAPH KOTO
    KATAKANA LETTER SMALL SU
    KATAKANA LETTER SMALL HO
    KATAKANA LETTER SMALL SI
    KATAKANA LETTER SMALL RI
    KATAKANA LETTER VE
    KATAKANA LETTER SMALL TO
    KATAKANA LETTER SMALL KU
    KATAKANA LETTER VO
    KATAKANA LETTER SMALL RO
    KATAKANA LETTER SMALL RA
    KATAKANA LETTER SMALL MU
    KATAKANA LETTER SMALL HA
    KATAKANA LETTER VI
    KATAKANA LETTER SMALL RU
    KATAKANA LETTER SMALL NU
    KATAKANA MIDDLE DOT
    HALFWIDTH KATAKANA SEMI-VOICED SOUND MARK
    HALFWIDTH KATAKANA VOICED SOUND MARK
    HALFWIDTH KATAKANA MIDDLE DOT
    
convert HIRAGANA to KATAKANA.

This method ignores following chars:

    HIRAGANA DIGRAPH YORI
    

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

    takefumi kimura - the author of L<Lingua::JA::Regular>
    dankogai

Lingua::JA::Regular

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2016-12-14 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.