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


Manual Reference Pages  -  TEXT::KAKASI::JP (3)

.ds Aq ’

NAME

Text::Kakasi::JP - Text::Kakasi AEuËÜeXi\k:`XE\k:'|\n:uXo\k:'\h |\n:uXE\k:`

CONTENTS

SYNOPSIS



  use Text::Kakasi;
  # functional
  $res = Text::Kakasi::getopt_argv(kakasi, -ieuc, -w);
  $str = Text::Kakasi::do_kakasi($japanese_text);
  # object-oriented
  $obj = Text::Kakasi->new(-ieuc,-w);
  $str = $obj->get($japanese_text);



DESCRIPTION

EÜeXa\k:^XXXaaXXXeeXIekakasi (kanji kana simple inverter)XO\k:/XI\k:^XXXo\k:'\h |\n:uXXXXXO\k:~XXXXXX XoÀö\k:'|\n:uXXXXXeeXI\k:^XIeXXinput methodXE\k:`XO\k:~XXXXXE\k:^XieXA\k:'|\n:uXu\k:'\h |\n:u XLPXXXeÊ\k:^XXo\k:`XO\k:`Xe\k:'|\n:uXXXLPXu\k:'|\n:uXEeXO\k:~E\k:^N\k:~XXXXXeeXXC\k:,XXC\k:,XXXXkakasi XIeXLPXXE\k:^XXn\k:~XIÊ\k:^XXXXA\k:'|\n:uN\k:~XXXeeXXXE\k:`XXXC\k:,X XLPXXXXXUeXXXXXIe <http://kakasi.namazu.org/> Xo\k:`XaeI\k:'\h |\n:uXXXXXXXXX

Text::Kakasi XIeXXAaAÁayÁaXXE\k:^XO\k:/Xo\k:^XU\k:`XXXXXXXe\k:`XO\k:'|\n:uD-E\k:^y\k:'|\n:u XXXXXO\k:~XXXXXXXoÀö\k:'|\n:uXIe ver. 1.05 XE\k:` 100% XssXXXC\k:,XX XXXXPerl 5.8 XE\k:^XssXI\k:^XXXXC\k:,XXo\k:`XE\k:`XXXEeXIeXXXOeXXXXXXXE\k:`XO\k:/XbpXXXo\k:'\h |\n:uXXXXXO\k:~XXXXXXXo\k:` XE\k:`XXE\k:'|\n:uXXXXXXe\k:^XLPXXXX

Functional APIs

A\k:~i\k:'Text::Kakasi:: XIeXEÎ\k:^XXXXAEXXXLPXXXXXC\k:,XO\k:~XXXeeXE\k:`XC\k:,XIe Text::Kakasi XIeXXXa\k:^ export XXXLPXXXo\k:'import XXXeeXEeXIeXXIâ\k:~ XXXD-XE\k:^XXXI\k:^Xe\k:`XXXEeXXXLPXXXX



  use Text::Kakasi qw/getopt_argv do_kakasi/;



$err = getopt_argv($arg1, $arg2, ...) kakasiXo\k:`Xe\k:'|\n:uXo\k:^XIekakasiXI\k:^XXXXXXXc\k:,Xo\k:'\h |\n:uXEÀEXAau\k:`XC\k:,XXXXXE\k:^XXXIe kakasi 2.3.4 XEeXXXXXeeXXXXXXXc\k:,Xo\k:'|\n:uXXC\k:,XXXX



  -a[jE] -j[aE] -g[ajE] -k[ajKH]
  -E[aj] -K[ajkH] -H[ajkK] -J[ajkKH]
  -i{oldjis,newjis,dec,euc,sjis}
   -o{oldjis,newjis,dec,euc,sjis}
  -r{hepburn,kunrei} -p -s -f -c"chars"
   [jisyo1, jisyo2,,,]

  Character Sets:
       a: ascii  j: jisroman  g: graphic  k: kana
       (j,k     defined in jisx0201)
       E: kigou  K: katakana  H: hiragana J: kanji
       (E,K,H,J defined in jisx0208)

  Options:
    -i: input coding system    -o: output coding system
    -r: romaji conversion system
    -p: list all readings (with -J option)
    -s: insert separate characters (with -J option)
    -f: furigana mode (with -J option)
    -c: skip chars within jukugo
        (with -J option: default TAB CR LF BLANK)
    -C: romaji Capitalize (with -Ja or -Jj option)
    -U: romaji Upcase     (with -Ja or -Jj option)
    -u: call fflush() after 1 character output
    -w: wakatigaki mode



EÜeXO\k:/Xo\k:^XIeXXA\k:`XXu\k:`XbpXEe0Xo\k:`XXXXC\k:,O\k:^XbpXEeXIeXXXi\k:`XE\k:^XXXIÂ\k:~I\k:'\h |\n:uXoÈÔeXXXLPXXXX

$processed_str = do_kakasi($str) $strXEÄ\k:^D-XXXAEkakasiXo\k:`XA\k:^XO\k:^XXXXXeeXI\k:`XoÈÔeXXXLPXXXXXXXe\k:'\h |\n:uXXXIÎàÄê\k:^XXE\k:`XA\k:`XXXXX Xi\k:`Xc\k:,XXundefXoÈÔeXXXLPXXXX

Ver. 1.x XE\k:`XU\k:^XE\k:^Xe\k:^XXXu\k:'|\n:uXEekakasiXo\k:`XAeXXXeË\k:'|\n:uXXIeXXXe\k:^XLPXXXo\k:'|\n:u Xi\k:'|\n:uXXXLPXC\k:,XE\k:'|\n:uXX

close_kanwadic() XAaXXAaXXEöpenXXXi\k:`XXX Xn\k:~XO\k:~XXXXXeeXo\k:`closeXXXLPXXXXEÜeXO\k:/Xo\k:^XIeXa\k:'\h |\n:uXi\k:^XI\k:^XssXXA\k:` XI\k:^Xss XI\k:^XXXa\k:'|\n:uN\k:~XXXeË\k:'|\n:uXXIeXLPXXXE\k:^XXXC\k:,XXXc\k:,XXXX

Object-Oriented APIs

Version 2.0 Xe\k:`Xe\k:^XXEÜeXa\k:^XXXaaXXXeeXIeXXXOeXXXXXXXE\k:`XO\k:/Xbp(OOP)XIÂPIXaÂö\k:'\h |\n:uXXXXXLPXXXX
$k = Text::Kakasi->new($args ...) XXXOeXXXXXXXE\k:`XoÀ\k:`XA\k:`XXXXLPXXXXXu\k:'\h |\n:uXo\k:^XXA\k:^XXssXXXeeXi\k:`Xc\k:,XIeXX Text::Kakasi->new->set($args ...) XXXXXI\k:^XEÀEXXXXeeXI\k:`XE\k:`XE\k:^Xe\k:^XLPXXXX
$k->set($args ...) getopt_argv XO\k:/XIÔOPXXXo\k:'\h |\n:uXXXXXO\k:~XXXXXXXX



  my $k = Text::Kakasi->new;
  $k->set(-w); # Text::Kakasi::getopt_argv(-w);



XXXAEXXXXXXXoÈÔeXX getopt_argv() XE\k:`XIeXU\k:^XE\k:^Xe\k:^XX set XIeXieXEeXXXOeXXXXXX XE\k:`XXXE\k:`XoÈÔeXXXI\k:^XC\k:,XXXE\k:^XXXI\k:^Xe\k:`XXXEÊ\k:'\h |\n:uXX XXXAeC\k:,XXC\k:,XXXX



  my $tokenized = $k->set(-w)->get($raw_japanese);



XXXAEXXXXXXXXI\k:'$k->error Xo\k:`XE\k:`XXXLPXXXX

$k->error XC\k:,XaaXEeXAEXD-Xi\k:`XXXa\k:'|\n:uXI\k:^XXXAEXXXXXXXoÈÔeXXXLPXXXX
$processed = $k->get($raw_japanese); do_kakasi XO\k:/XIÔOPXXXo\k:'|\n:uXAeXI\k:^XXXXXE\k:'|\n:uXC\k:,XXXX



  # Functional
  getopt_argv(-w); $processed = do_kakasi($raw_japanese);
  # OOP
  $k->set(-w)->get($raw_japanese);



Perl 5.8 Features

Perl 5.8 XC\k:,XXE\k:^XXu\k:'|\n:uXXaÀaXXEÎËÀÉ\k:`XssXXEncodeXa\k:^XXXaaXXXeeXEeXe\k:`XA\k:~ XAEAö\k:'perl 5.8 XE\k:^XssXEeXAEXXXI\k:^XXC\k:,XXoÌó\k:/I\k:'\h |\n:uN\k:~XXXeeXe\k:` XXXEeXE\k:^XA\k:~XAEXXXLPXXXX

$k->set($args ...)XO\k:/XI\k:^Xu\k:'XXXe\k:`XO\k:'-oencodingXXXXXLPXLPXi\k:`XeeXi\k:`Xc\k:,XXE\k:^XXu\k:'\h |\n:uXXXXXEÉ\k:^N\k:~XXXIËncodeXXXO\k:^XXXLPXXXX Xu\k:'|\n:uXXXE\k:`XXXAEXXXeeXa\k:^XI\k:^XE\k:^XXXEeXa\k:^XXEncodeXXXXXY\k:'\h |\n:uXXXE\k:`XXXAE XXXeeXa\k:^XI\k:^XIÄ\k:'\h |\n:uXXAEXE\k:`XXXLPXXXX Iâ\k:~XXXD-XX



  $result = $k->set(qw/-iutf8 -outf8 -w/)->get($utf8);



XIeXE\k:^XXXE\k:`XU\k:^XUÄEXXA\k:'\h |\n:uXC\k:,XXXX



  $euc = encode(eucjp => $utf8);
  getopt_argv(-w);
  $tmp = do_kakasi($euc);
  $result = decode(eucjp => $tmp);



-outf8,XXXLPXLPXi\k:`XAEXXXeeXi\k:`Xc\k:,XIeXX $k->get XIütf8XO\k:~Xe\k:'|\n:u Iô\k:'\h |\n:uXoÈÔeXXXLPXXXX

XXXi\k:`Xe\k:'$Text::Kakasi::HAS_ENCODEXEe0XoÀ\k:`ssAë\k:^XXXeeXXXE\k:`XC\k:,Ió\k:/I\k:'\h |\n:uN\k:~XX XE\k:^XXXe\k:`XXXEeXXXeeXXXE\k:`Xa\k:^XAeC\k:,XXC\k:,XXXXAÏ\k:`XiË\k:^N\k:~Xo\k:^XIeXXEÜeXa\k:^XXXaaXXXeeXoùseXXXXXY\k:'\h |\n:uXEeXX AEXAaXXEÄ\k:`ssAë\k:^XXXi\k:`XLPXXXX

SEE ALSO

kakasi(1), <http://kakasi.namazu.org/>,Encode,perlunicode

COPYRIGHT



  (C) 1998, 1999, 2000 NOKUBI Takatsugu <knok@daionet.gr.jp>
  (C) 2003 Dan Kogai <dankogai@dan.co.jp>



There is no warranty for this free software. Anyone can modify and/or redistribute this module under GNU GENERAL PUBLIC LICENSE. See COPYING file that is included in the archive for more details.

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 7: Non-ASCII character seen before =encoding in ’AEuËÜeXi\k:`XE\k:'|\n:uXo\k:'Assuming ISO8859-1
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 TEXT::KAKASI::JP (3) 2003-05-26

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