PureBasic 3.81 Released

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post by einander »

Gracias Fred and the PB team! :D
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post 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
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

Shopro,

Have you tried using JaPBe?
TronDoc
Enthusiast
Enthusiast
Posts: 310
Joined: Wed Apr 30, 2003 3:50 am
Location: 3DoorsDown

WOOHOO!!! and Linux toooooo!!!

Post by TronDoc »

WOOHOO!!! and Linux toooooo!!! :D
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]
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post 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
freedimension
Enthusiast
Enthusiast
Posts: 613
Joined: Tue May 06, 2003 2:50 pm
Location: Germany
Contact:

Post 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.
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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.
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

:)

Post by thefool »

Thanks fred.

nice "before christmas" gift :P
dmoc
Enthusiast
Enthusiast
Posts: 739
Joined: Sat Apr 26, 2003 12:40 am

Post 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.
Saboteur
Enthusiast
Enthusiast
Posts: 272
Joined: Fri Apr 25, 2003 7:09 pm
Location: (Madrid) Spain
Contact:

Post 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 ....
[:: PB Registered ::]

Win10 Intel core i5-3330 8GB RAM Nvidia GTX 1050Ti
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post 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
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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)
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post 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
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post 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.
Shopro
Enthusiast
Enthusiast
Posts: 148
Joined: Tue May 13, 2003 8:05 am

Post by Shopro »

GPI:

I found this

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

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

-Shopro
Post Reply