php-i18n Digest 1 Oct 2002 13:43:01 -0000 Issue 127
Topics (messages 338 through 341):
Re: Multi-byte strings and Japanese characters
338 by: Jonas Koch Bentzen
339 by: Yasuo Ohgaki
Re: !! ImageTTFText not displaying Japanese text !!
340 by: Deepak Karunakaran
Japanese: mb_split broken?
341 by: Jean-Christian Imbeault
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Yasuo Ohgaki wrote:
>
> Believe me. I'm native Japanese and telling you they are useless
> for Japanese text.
Don't worry, I believe you :)
> They are useless for Korean, Chinese, etc text
> also.
Alright - but what I want to do is not necessarily word-wrap Japanese
text. What I want to do is make sure that wordwrap() doesn't *break* the
Japanese string.
The thing is, I'm building an international site that uses UTF-8
throughout. The user will have the possibility to send mail from the
site. When the user posts the text that he/she want to send, I won't
know whether the text is in Japanese, Russian, Danish, or whatever. I'll
then use wordwrap() to make sure that strings that can be wrapped (such
as Western European and Cyrillic strings) will be wrapped - but at the
same time I want to make sure that the string doesn't break if the
string is in Japanese. It's not a big problem if the Japanese text
doesn't get wrapped - I just wanna make sure that the Japanese text
isn't broken by using wordwrap().
Anyway, thank you very much for your help. If I understand it correctly,
wordwrap() will not actually wrap Japanese text - but it won't break it
either. Is that correct?
--- End Message ---
--- Begin Message ---
Jonas Koch Bentzen wrote:
> Anyway, thank you very much for your help. If I understand it correctly,
> wordwrap() will not actually wrap Japanese text - but it won't break it
> either. Is that correct?
AFAIK, there is no encoding includes " " in a Japanese char.
So Japanese text won't be wrapped by wordwrap unless you force to,
therefore wordwrap won't break.
--
Yasuo Ohgaki
--- End Message ---
--- Begin Message ---
Hello Experts.
I found that when I increase the font size in ImageTTFText(), I could get
correct Japanese characters displayed. However, one would not require such a
big font size of 17. I have tried above using Windows MSMincho fonts. When I
try to use Watanabe-mincho & Wadalab-gothic fonts coming with Linux, I get
"Problem in loading glyph".
How can I get the font size reduced to 10 without characters getting
distorted? How can I avoid glyph problems when using Linux fonts?
Please help!
Regards,
Deepak
"Deepak Karunakaran" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello Experts,
>
> I have been trying very hard to get Japanese characters displayed in
images
> using GD library from PHP. I use:
> PHP4.1.2
> freetype2.0.9
> gd1.8.4
>
> But it seems that the images are displayed with weird strokes instead of
> texts. The text consists of English and Japanese Characters. I am using
> "watanabe-mincho.ttf" font available in linux.
>
> Please help! Thanks in advance.
>
>
--- End Message ---
--- Begin Message ---
mb_split appears to be broken in 4.2.3. I have submitted a bug report
but in the mean time ... my app is broken and I badly need a fix :(
Can anyone recommend a way for me to split japanese strings on white space?
I need this for user entered search string, which are space delimited.
Thanks.
Jc
--- End Message ---