Page 2 of 3

Posted: Wed Dec 10, 2003 2:59 am
by einander
Gracias Fred and the PB team! :D

Posted: Wed Dec 10, 2003 3:57 am
by Shopro
Yep:) well, almost, heheh

All the Japanese in the gadgets display perfectly.
But there are problems when inputting Japanese text within the code.
Everytime you hit Enter on a line of code with Japanese characters, a chunk(sometimes over 2 lines) of code disappears!

but as all my projects are Japanese/English, I can just read the Japanese characters from an external text file to display them in my programs.

I will contact you again when I find a way to fix the input problems:)

But for the time being, I'm satisfied:)

thanks!

-Shopro

Posted: Wed Dec 10, 2003 1:00 pm
by GedB
Shopro,

Have you tried using JaPBe?

WOOHOO!!! and Linux toooooo!!!

Posted: Thu Dec 11, 2003 12:12 pm
by TronDoc
WOOHOO!!! and Linux toooooo!!! :D
Happy b-day kwag!
Cool new avatar Fr34k!
--jb

Posted: Thu Dec 11, 2003 5:15 pm
by Shopro
GedB:

Yeah, that's what I mainly use actually:) (Thanks GPI!)

but since it uses the same gadget functions as the official editor, the symptoms(disappearing chunks of text when hitting Enter on a line of code with Japanese text) are just about the same.

Ja stands for "Just another", I think, no "Japanese"

heh, thanks for the info though

-Shopro

Posted: Thu Dec 11, 2003 6:33 pm
by freedimension
Shopro wrote: Yeah, that's what I mainly use actually:) (Thanks GPI!)

but since it uses the same gadget functions as the official editor
No, it doesn't. jaPBe uses a Scintilla based textfield, not RichText as the original IDE does.

Posted: Thu Dec 11, 2003 6:54 pm
by GPI
Shopro wrote:but since it uses the same gadget functions as the official editor, the symptoms(disappearing chunks of text when hitting Enter on a line of code with Japanese text) are just about the same.
I use Scintilla, IDE use RichEdit.

I found in the scintilla help follow:

Code: Select all

SCI_SETCODEPAGE(int codePage)
SCI_GETCODEPAGE
Scintilla has some support for Japanese, Chinese and Korean DBCS. Use this message with codePage set to the code page number to set Scintilla to use code page information to ensure double byte characters are treated as one character rather than two. This also stops the caret from moving between the two bytes in a double byte character. Call with codePage set to zero to disable DBCS support. The default is SCI_SETCODEPAGE(0).

Code page SC_CP_UTF8 (65001) sets Scintilla into Unicode mode with the document treated as a sequence of characters expressed in UTF-8. The text is converted to the platform's normal Unicode encoding before being drawn by the OS and thus can display Hebrew, Arabic, Cyrillic, and Han characters. Languages which can use two characters stacked vertically in one horizontal space, such as Thai, will mostly work but there are some issues where the characters are drawn separately leading to visual glitches. Bi-directional text is not supported.

On GTK+, code page SC_CP_DBCS (1) sets Scintilla into multi byte character mode as is required for Japanese language processing with the EUC encoding.

For GTK+, the locale should be set to a Unicode locale with a call similar to setlocale(LC_CTYPE, "en_US.UTF-8"). Fonts with an "iso10646" registry should be used in a font set. Font sets are a comma separated list of partial font specifications where each partial font specification can be in the form: foundry-fontface-charsetregistry-encoding or fontface-charsetregistry-encoding or foundry- fontface or fontface. An example is "misc-fixed-iso10646-1,*".

Setting codePage to a non-zero value that is not SC_CP_UTF8 is operating system dependent.
Search in the japbe.pb SetSciEdiBasics() und add there a
SCI_SETCODEPAGE(int codePage)
with the right codePage. When it work, please report me and i will add something to jaPBe.

But i have a problem: I don't understand japanise, i haven't a japanise-Windows-Version.

And sorry: What i don't know, i can't support.

:)

Posted: Thu Dec 11, 2003 11:16 pm
by thefool
Thanks fred.

nice "before christmas" gift :P

Posted: Thu Dec 11, 2003 11:41 pm
by dmoc
WOOHOO!!! and Linux toooooo!!!
Has the new Linux version been released yet? I only ask because earlier versions never seemed to appear for download, always by email request.

Posted: Fri Dec 12, 2003 12:29 am
by Saboteur
Hey....
I want the Linux version too!! 8O
Is ready or we have to wait a little more???
Please please please please please please please please please ....

Posted: Fri Dec 12, 2003 7:55 am
by Shopro
Freedimension:
Ah, I see. since the symptoms were the same, I assumed what I said. Thanks for the correction.

GPI:
Thanks for the research.
I tried to compile the jaPBe sources, but I get an error in "System.pbi",
"Line85: GetTempPath() is not a function, an array, or a linked list"

I think I'm doing it wrong, but I've included all the libs in the compiler option, and still can't get it to compile. Any tips? I really want to test what you said out.

oh, and I *think* the codepage for Japanese is 932

s_h_o_p_r_o_@_h_o_t_m_a_i_l._c_o_m

t_0_3_3_4_1_k_g_@s_f_c_._k_e_i_o_._a_c_._j_p

if there is any code or program you want to test on Japanese machines, feel free to send it to me to the above 2 emails(without the underbars_)

Thank you

-Shopro

Posted: Fri Dec 12, 2003 8:53 pm
by GPI
@Shopro
try the new Beta:

http://caosandkin.bei.t-online.de/pureb ... 2-Beta.zip

Start japbe and close it. now you found in the "japbe.pref" a "test"-Section.
At the moment there is only a codepage-Option.
Try for example: 65001 (=unicode)

Posted: Sat Dec 13, 2003 5:45 am
by Shopro
WOOOOOOOOOOOOOOOOOOOOOOOOOAH!

GPI:
It worked!!

CodePage = 65001

just gave me garbled text(in a different way, but still garbled), but

CodePage = 932

made jaPBe display Japanese perfectly!
you have just made my life much, much more easy:)
I don't know how to thank you enough :D!!
pls feel welcome to have any other code tested in Japanese Windows/Linux:)

Oh, any chance you'd want a Japanese translation for jaPBe? I do:)
If it's ok, I'll do one

-Shopro

Posted: Sat Dec 13, 2003 6:20 am
by GPI
Have somebody a list of all CodePages?

Edit: About the Translation: Simple post your language-File under the japbe-thread in the announcment. The next full-version should be released this weekend.

Posted: Sun Dec 14, 2003 5:28 am
by Shopro
GPI:

I found this

http://www.microsoft.com/globaldev/reference/wincp.mspx

About the language file, I'll do it:)

-Shopro