To Ewayne:

Although bomb01 use the same charset(Chinese Simplified) as purefiring, perhaps no Chinese chars in bomb01's file ,or no Chinese chars in visible rect, So it's working well to bomb01
Posted on 2002-06-12 23:04:07 by ForEver
To ForEver:

Are Chinese characters in a string double byte like Unicode?


Thanks,

Ewayne
Posted on 2002-06-12 23:20:14 by Ewayne
this is the screenshot while execute asmedittest.exe
Posted on 2002-06-12 23:44:42 by purefiring
To purefiring:

It looks like the horizontal alignment is ok.

What does the same text look like with AsmEdit.exe?

Thanks,

Ewayne
Posted on 2002-06-13 00:02:08 by Ewayne
It same to AsmEdit.exe
Posted on 2002-06-13 01:27:13 by purefiring
To purefiring:

It looks like for some reason the highlighting
rectangle is up 2 pixels.

I'm attaching a AsmEditTest1.exe that will move
it down 2 pixels.

See what that looks like.

Thanks,

Ewayne
Posted on 2002-06-13 01:46:15 by Ewayne
To Ewayne:

All of Chinese characters in a string are double byte; see below image.
Posted on 2002-06-13 04:26:04 by ForEver
To Ewayne:

Sorry ,this is picture
Posted on 2002-06-13 04:33:08 by ForEver
Very Good WorK!See The Pic Below!
Thank You For Your Work!
Posted on 2002-06-13 04:38:07 by purefiring
To ForEver:

Thanks for the pic.

Could you show me what the string below would
look like using the chinese character set.

"ABCD1234"

Thanks,

Ewayne
Posted on 2002-06-13 07:53:34 by Ewayne
To purefiring:

I'm glad it works, if I could figure out why I
had to move the highlighting rectangle down 2
pixels I would be happy.

Ewayne
Posted on 2002-06-13 07:56:47 by Ewayne
Sorry, I had been careless - should have tried it with Chinese characters. :eek:

Well a .txt file with content "ABCD 1234" looks like below,
Posted on 2002-06-13 08:47:33 by C.Z.
To bomb01:

No problem.

What I need to know is what the actual string looks like.

String

"ABCD1234"

With English character set:
0 1 2 3 4 5 6 7
4142434431323334

With Chinese character set:
0 1 2 3 4 5 6 7
? ? ? ? ? ? ? ?

Does it look like:
0 1 2 3
4142434431323334

Thanks,

Ewayne
Posted on 2002-06-13 09:54:29 by Ewayne
Is this what you want
Posted on 2002-06-13 10:26:38 by C.Z.
To bomb01:

I think so, I'm kind of thick headed at times.

What is the "ABCD1234" string length using the Cninese chatacter set.

Does the system think it's 4 bytes or 16 bytes?

Thanks,

Ewayne
Posted on 2002-06-13 10:49:14 by Ewayne
Ewayne:
I think we'd better use hexadecimals to describe the string ABCD1234 here, in order to get rid of the confusion.:)
I don't know much about unicode, however I suppose:

Applications mainly call lstrlen to determine the string length. So,

1. When the ansi version of lstrlen is called, the length of 4142434431323334 returned would be 8, and the length of A3C1A3C2A3C3A3C4A3B1A3B2A3B3A3B4 returned would be 16, as they actually are.

2. When the unicode version of lstrlen is called, the length of 4142434431323334 returned would be 8, and the length of A3C1A3C2A3C3A3C4A3B1A3B2A3B3A3B4 returned would also be 8, as how it's interpreted using the chinese charset.


I'll read some MSDN docs tomorrow...I really need study on unicode:)
Posted on 2002-06-13 11:30:03 by C.Z.
I just made a jpg that might help:cool:
Posted on 2002-06-13 11:34:18 by C.Z.
Hi,

More fixes and updates.

AsmEdit:

Should now support Chinese and Korean charecter sets for syntax highlighting.
Rewrote some of the syntax highlighting routine.
_xxxx, _xxxx_xxxx, etc. will highlight properly now.
Italic comments option.
Changed auto save on open to number the saved files. (son-father-grandfather, etc)
Added a system information dialog. (You might want to see if it displays properly)

TIP! If you have a large .asm file opened with the Properties list opened you might
want to turn off the Auto Refresh Properties List, otherwise pasting and typing is
a little slow.

ResEdit:

ResEdit now has a 512 byte limit for static text.
Found and fixed one nasty and a couple minor bugs.


Download both FixAsm.zip and FixRes.zip.
Dated 06-18-2002.

http://asmedit.massmind.org

Do the normal thing except copy the LangCode.txt to AsmEdit's HelpFiles folder.

To bomb01:

Thanks for your help I think I have it figured out.

Thanks,

Ewayne
Posted on 2002-06-18 08:45:15 by Ewayne