
PureBasic 3.81 Released
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
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
WOOHOO!!! and Linux toooooo!!!
WOOHOO!!! and Linux toooooo!!!
Happy b-day kwag!
Cool new avatar Fr34k!
--jb

Happy b-day kwag!
Cool new avatar Fr34k!
--jb
peace
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
[pI 166Mhz 32Mb w95]
[pII 350Mhz 256Mb atir3RagePro WinDoze '98 FE & 2k]
[Athlon 1.3Ghz 160Mb XPHome & RedHat9]
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
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
-
- Enthusiast
- Posts: 613
- Joined: Tue May 06, 2003 2:50 pm
- Location: Germany
- Contact:
I use Scintilla, IDE use RichEdit.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 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.
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.
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
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
@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)
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)
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
!!
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
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

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
GPI:
I found this
http://www.microsoft.com/globaldev/reference/wincp.mspx
About the language file, I'll do it:)
-Shopro
I found this
http://www.microsoft.com/globaldev/reference/wincp.mspx
About the language file, I'll do it:)
-Shopro