Re: Multi-language support for PHP
| From: | Carl W. Brown | Date: | Tue, 06 Jun 2000 04:44:11 +0000 |
| Subject: | Re: Multi-language support for PHP | ||
| References: | 1 2 3 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-14@lists.php.net to get a copy of this message | ||
Rui,
We thought of using your package since our first implementation is Korean.
However when you get more than a few character sets it becomes difficult to
autodetect and some character sets are very close.
Instead of using the multi-byte regex, I designed the collate function to re
turn a "1" or "0" so that it could be part of a regex expression nest or a p
hp expression. The collate however uses the proper sorting order and norma
lization.
Carl
"Rui Hirokawa" <louis@cityfujisawa.ne.jp> wrote in message news:200006050809
20.3E00.LOUIS@cityfujisawa.ne.jp...
> James,
>
> On Sun, 4 Jun 2000 12:51:37 -0700 (PDT)
> James Byers <jbyers@valinux.com> wrote:
>
> jbyers> Carl,
> jbyers>
> jbyers> The work you've done sounds very interesting. As Rasmus
> jbyers> mentioned, a few different groups are working on I18N for PHP. I'
m
> jbyers> leading a development effort at VA Linux to add Unicode support to
PHP4.
> jbyers> We're just about done with our planning process; I hope to have a
proposal
> jbyers> to post on the list by tomorrow.
>
> We (the japanese PHP user's group) are currently working on PHP I18N.
> The project was focused on PHP3-i18n but PHP4-i18n is working on
> progress.
>
> Currently, this I18N version of PHP only adds Japanese and some multibyte
> asian languages support to base PHP.
> It allows you to use Japanese in scripts, as well as conversion
> between various Japanese (and UTF-8) encodings.
> It will work perfectly fine with ASCII with i18n option enabled.
>
> The main features of PHP-i18n are,
>
> 1. allows you to use various character encodings for script files and
> http output.
> (the encoding conversion engine currently support UTF-8 and latin-1 some
> asian languages.)
> 2. distinguish several character encoding in POST/GET/COOKIE
> 3. proper mail output using JIS as body and MIME/Base64/JIS subject
> 4. if http output's Content-Type is text/html, it will set
> proper charset
> 5. stable character encoding conversion
> (UTF-8 <-> some other encodings or between some encodings)
> 6. multibyte regex and some multibyte enabled functions
> (normal regex packages are not useful for multibyte encodings)
>
> (I attached the detailed manual about php3-i18n.)
>
> Mr. Tsukada is making the encoding conversion extension modules for
> PHP4-RC2 which are available on
> ftp://night.fminn.nagano.nagano.jp/php4/.
> These modules include the encoding conversions modules and the
> multibyte functions and the general text search modules.
>
> These modules are currently in beta status,but very useful for japanese.
>
> ----------------------------------------------------------------
> Rui Hirokawa <louis@cityfujisawa.ne.jp>
> maintainer of the japanese PHP manual <hirokawa@php.net>
> htpp://www.cityfujisawa.ne.jp/%7Elouis/
>
>
>
----------------------------------------------------------------------------
----
> --
> PHP Internationalization Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-i18n-unsubscribe@lists.php.net
> For additional commands, e-mail: php-i18n-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net