Re: kakasi & PHP
| From: | Moriyoshi Koizumi | Date: | Fri, 25 Jul 2003 13:55:59 +0000 |
| Subject: | Re: kakasi & PHP | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-592@lists.php.net to get a copy of this message | ||
Hi,
Kakasi extension is available in PECL.
http://cvs.php.net/pecl
If you are using one of *nix-like OS's (Linux, FreeBSD, and whatsoever),
You can fetch it with the following command:
(In contrast to the standard modules like APC, this module cannot be
installed via "pear" command.)
$ cvs -d:pserver:cvsread@cvs.php.net:/repository co pecl/kakasi
$ cd pecl/kakashi
$ phpize
$ ./configure
$ make
$ make install
- SYNOPSIS -
<?php
// string kakasi(string input, array options)
// This function may accept the same options as the command line.
$result = kakasi("some japanese text in EUC-JP", array("-JH",
"-KH"));
?>
BTW I'm not the author of this extension, so I don't seem to be the right
person to ask further questions :)
Anyway, hope this helps.
Moriyoshi
"Simon Dedeyne" <Simon.Dedeyne@psy.kuleuven.ac.be> wrote:
> I would like to use kakasi functionality with PHP, but right now the
> only way to do this would be running the kakasi program in shell or
> using PERL text:kakasi.
> Are there any alternatives, or people who have experience how to get php
> & kakasi up and working smooth?
>
> thanks,
> Simon