Re: kakasi & PHP

Moriyoshi Koizumi <[email protected]>
Newsgroups gmane.comp.php.internationalization
Message-ID <[email protected]>
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:[email protected]:/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" <[email protected]> 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


-- 
PHP Internationalization Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.