digitalmars.D.dwt - styledtext: gibberish codes
- yidabu <yidabu.spam gmail.com> Aug 21 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 22 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 22 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 22 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 22 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 22 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 22 2008
- Frank Benoit <keinfarbton googlemail.com> Aug 23 2008
- yidabu <yidabu.spam gmail.com> Aug 22 2008
- yidabu <yidabu.spam gmail.com> Aug 22 2008
- yidabu <yidabu.spam gmail.com> Aug 22 2008
- "Bill Baxter" <wbaxter gmail.com> Aug 22 2008
- yidabu <yidabu.spam gmail.com> Aug 22 2008
- yidabu <yidabu.spam gmail.com> Aug 22 2008
- yidabu <yidabu.spam gmail.com> Aug 23 2008
running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 中国 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed. -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 21 2008
yidabu schrieb:running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 涓浗 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed.
I found two problematic places. The example works now. Can you please retry.
Aug 22 2008
yidabu schrieb:On Fri, 22 Aug 2008 09:13:46 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 涓浗 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed.
Can you please retry.
still now work. Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128) ->us #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #5 0x0040b5b9 in dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521 #6 0x004040f2 in _Dmain () at Snippet244.d:65 #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2 #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2 #9 0x006342c8 in _main () from dmain2 #10 0x0064e551 in _mainCRTStartup () from constart #11 0x7c816fd7 in ?? () from KERNEL32.dll
I do not get this. Can you describe more detailed how you can produce that?
Aug 22 2008
yidabu schrieb:On Fri, 22 Aug 2008 12:32:36 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Fri, 22 Aug 2008 09:13:46 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 涓浗 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed.
Can you please retry.
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128) ->us #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #5 0x0040b5b9 in dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521 #6 0x004040f2 in _Dmain () at Snippet244.d:65 #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2 #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2 #9 0x006342c8 in _main () from dmain2 #10 0x0064e551 in _mainCRTStartup () from constart #11 0x7c816fd7 in ?? () from KERNEL32.dll
Can you describe more detailed how you can produce that?
1, update dwt-win locae copy 2, dsss 0.75 to building dwt.lib 3, dmd 1.033 to building styledtext snippet for example, build.bat: set flags=D:\dwt-samples\dwt.res -L/SUBSYSTEM:windows:5 -JD:\dwt-samples\res -debug -g -unittest set src=Snippet218 dmd %src%.d %flags% %src% del *.obj *.map pause 4, the snippets still not work
Hm, this runs for me: http://img373.imageshack.us/my.php?image=snippet218jq3.png I use QuickKey to "type" the two chinese characters.
Aug 22 2008
yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
Can you explain how i can reproduce that on an US-keyboard? I have no experience in typing chinese. Which software do you use? Is there a free software?
Aug 22 2008
Bill Baxter schrieb:You have to go to the Regional & Language Options control panel. Click "languages" tab. and click "Details..." There you can select "Add..." button that's inside the "Installed services" box. That should pop up an "Add Input Lanuguage" dialog. From there select Japanese or Chinese or Korean, and check the box that says KeyboardLayout/IME. .... next step is to figure out how to actually use the IME. :-) The difference between pasting and using an IME is that when you use an IME, Windows sends a bunch of different messages to the text control that have to do with the status of the input. --bb
Ok, i did install Chinese simplified IME 3.0 Now when i open notepad i can type and get characters. But i don't know when a codepoint is completed. Sometime 2 characters are produced at the same time. Can someone give some examples of characters and the exact keyboard sequence that is needed and the resulting unicode number? for example, \u4E2D \u56FD
Aug 22 2008
yidabu schrieb:On Sat, 23 Aug 2008 00:46:05 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
I have no experience in typing chinese. Which software do you use? Is there a free software?
Frank Benoit, Hello yidabu, yidabu gmail.com 2008-08-23 ----- Receiving the following content ----- From: Frank Benoit Receiver: yidabu Time: 2008-08-22, 15:18:21 Subject: Re: styledtext Snippet 211, 213, 217, 218, 222, 244yidabu schrieb:hello, I ported some styledtext snippets. thanks for you great work. styledtext snippets are not crashed now, but when snippet runing, and typing in multi-bytes characters(e.g. Chinese), the result is gibberish codes. best regards. yidabu
To transfer your work, just one bundle is necessary. hg bundle --base 123 yidabu.bdl Now yidabu.bdl contains all your changes. Please retry with the new fixes in dwt-win. Frank
I sent you a chinese IME(freeware), after installed, press keys khlg then press space to enter 涓浗
seems like 'zhongguo<SPACE>' produces the China characters with the winXp IME.
Aug 22 2008
yidabu schrieb:On Sat, 23 Aug 2008 03:12:22 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Sat, 23 Aug 2008 00:46:05 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
I have no experience in typing chinese. Which software do you use? Is there a free software?
yidabu, yidabu gmail.com 2008-08-23 ----- Receiving the following content ----- From: Frank Benoit Receiver: yidabu Time: 2008-08-22, 15:18:21 Subject: Re: styledtext Snippet 211, 213, 217, 218, 222, 244yidabu schrieb:hello, I ported some styledtext snippets. thanks for you great work. styledtext snippets are not crashed now, but when snippet runing, and typing in multi-bytes characters(e.g. Chinese), the result is gibberish codes. best regards. yidabu
To transfer your work, just one bundle is necessary. hg bundle --base 123 yidabu.bdl Now yidabu.bdl contains all your changes. Please retry with the new fixes in dwt-win. Frank
winXp IME.
right.
After fixes this seems to work now. http://www.dsource.org/projects/dwt-win/changeset/297%3A7d431a32f71e http://www.dsource.org/projects/dwt-win/changeset/298%3A8fa53b71485d Can you please retry?
Aug 23 2008
On Fri, 22 Aug 2008 09:13:46 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 中国 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed.
I found two problematic places. The example works now. Can you please retry.
still now work. Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128) ->us #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #5 0x0040b5b9 in dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521 #6 0x004040f2 in _Dmain () at Snippet244.d:65 #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2 #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2 #9 0x006342c8 in _main () from dmain2 #10 0x0064e551 in _mainCRTStartup () from constart #11 0x7c816fd7 in ?? () from KERNEL32.dll -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 22 2008
On Fri, 22 Aug 2008 12:32:36 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Fri, 22 Aug 2008 09:13:46 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 中国 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed.
Can you please retry.
still now work. Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128) ->us #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #5 0x0040b5b9 in dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521 #6 0x004040f2 in _Dmain () at Snippet244.d:65 #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2 #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2 #9 0x006342c8 in _main () from dmain2 #10 0x0064e551 in _mainCRTStartup () from constart #11 0x7c816fd7 in ?? () from KERNEL32.dll
I do not get this. Can you describe more detailed how you can produce that?
1, update dwt-win locae copy 2, dsss 0.75 to building dwt.lib 3, dmd 1.033 to building styledtext snippet for example, build.bat: set flags=D:\dwt-samples\dwt.res -L/SUBSYSTEM:windows:5 -JD:\dwt-samples\res -debug -g -unittest set src=Snippet218 dmd %src%.d %flags% %src% del *.obj *.map pause 4, the snippets still not work -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 22 2008
On Fri, 22 Aug 2008 15:01:04 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Fri, 22 Aug 2008 12:32:36 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Fri, 22 Aug 2008 09:13:46 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:running sytledtext snippet, type in multi-bytes characters, the result is gibberish code. e.g. type in 中国 (means China), I tested with two IMEs, 1, the result is gibberish code 2, the snippet creashed.
Can you please retry.
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION(0xc0000005) at pintlgnt.dll (0x3a61e573) thread(2128) ->us #0 ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #1 0x3a6315f5 in ?? () at dwt\widgets\Display.d:3521 from pintlgnt.dll #2 0x7e4590b9 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #3 0x7c90eae3 in ?? () at dwt\widgets\Display.d:3521 from ntdll.dll #4 0x7e419402 in ?? () at dwt\widgets\Display.d:3521 from USER32.dll #5 0x0040b5b9 in dwt.widgets.Display.Display.readAndDispatch () at dwt\widgets\Display.d:3521 #6 0x004040f2 in _Dmain () at Snippet244.d:65 #7 0x00634550 in extern (C) int dmain2.main(int, char**) . void runMain(void*) () from dmain2 #8 0x00634587 in extern (C) int dmain2.main(int, char**) . void runAll(void*) () from dmain2 #9 0x006342c8 in _main () from dmain2 #10 0x0064e551 in _mainCRTStartup () from constart #11 0x7c816fd7 in ?? () from KERNEL32.dll
Can you describe more detailed how you can produce that?
1, update dwt-win locae copy 2, dsss 0.75 to building dwt.lib 3, dmd 1.033 to building styledtext snippet for example, build.bat: set flags=D:\dwt-samples\dwt.res -L/SUBSYSTEM:windows:5 -JD:\dwt-samples\res -debug -g -unittest set src=Snippet218 dmd %src%.d %flags% %src% del *.obj *.map pause 4, the snippets still not work
Hm, this runs for me: http://img373.imageshack.us/my.php?image=snippet218jq3.png I use QuickKey to "type" the two chinese characters.
no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 22 2008
You have to go to the Regional & Language Options control panel. Click "languages" tab. and click "Details..." There you can select "Add..." button that's inside the "Installed services" box. That should pop up an "Add Input Lanuguage" dialog. From there select Japanese or Chinese or Korean, and check the box that says KeyboardLayout/IME. ... next step is to figure out how to actually use the IME. :-) The difference between pasting and using an IME is that when you use an IME, Windows sends a bunch of different messages to the text control that have to do with the status of the input. --bb On Sat, Aug 23, 2008 at 7:46 AM, Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
Can you explain how i can reproduce that on an US-keyboard? I have no experience in typing chinese. Which software do you use? Is there a free software?
Aug 22 2008
On Sat, 23 Aug 2008 00:46:05 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
Can you explain how i can reproduce that on an US-keyboard? I have no experience in typing chinese. Which software do you use? Is there a free software?
Frank Benoit, Hello yidabu, yidabu gmail.com 2008-08-23 ----- Receiving the following content ----- From: Frank Benoit Receiver: yidabu Time: 2008-08-22, 15:18:21 Subject: Re: styledtext Snippet 211, 213, 217, 218, 222, 244yidabu schrieb:hello, I ported some styledtext snippets. thanks for you great work. styledtext snippets are not crashed now, but when snippet runing, and typing in multi-bytes characters(e.g. Chinese), the result is gibberish codes. best regards. yidabu
Thanks for the snippets. To transfer your work, just one bundle is necessary. hg bundle --base 123 yidabu.bdl Now yidabu.bdl contains all your changes. Please retry with the new fixes in dwt-win. Frank
I sent you a chinese IME(freeware), after installed, press keys khlg then press space to enter 中国 -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 22 2008
On Sat, 23 Aug 2008 03:12:22 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Sat, 23 Aug 2008 00:46:05 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
I have no experience in typing chinese. Which software do you use? Is there a free software?
Frank Benoit, Hello yidabu, yidabu gmail.com 2008-08-23 ----- Receiving the following content ----- From: Frank Benoit Receiver: yidabu Time: 2008-08-22, 15:18:21 Subject: Re: styledtext Snippet 211, 213, 217, 218, 222, 244yidabu schrieb:hello, I ported some styledtext snippets. thanks for you great work. styledtext snippets are not crashed now, but when snippet runing, and typing in multi-bytes characters(e.g. Chinese), the result is gibberish codes. best regards. yidabu
To transfer your work, just one bundle is necessary. hg bundle --base 123 yidabu.bdl Now yidabu.bdl contains all your changes. Please retry with the new fixes in dwt-win. Frank
I sent you a chinese IME(freeware), after installed, press keys khlg then press space to enter 中国
seems like 'zhongguo<SPACE>' produces the China characters with the winXp IME.
right. -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 22 2008
On Sat, 23 Aug 2008 15:22:12 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Sat, 23 Aug 2008 03:12:22 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:On Sat, 23 Aug 2008 00:46:05 +0200 Frank Benoit <keinfarbton googlemail.com> wrote:yidabu schrieb:no problem when paste Chinese to the stylted text. but when type in by Chinese IME (Windows XP), the program crashed or show gibber code. http://img151.imageshack.us/my.php?image=20080823063435rf7.jpg
I have no experience in typing chinese. Which software do you use? Is there a free software?
yidabu, yidabu gmail.com 2008-08-23 ----- Receiving the following content ----- From: Frank Benoit Receiver: yidabu Time: 2008-08-22, 15:18:21 Subject: Re: styledtext Snippet 211, 213, 217, 218, 222, 244yidabu schrieb:hello, I ported some styledtext snippets. thanks for you great work. styledtext snippets are not crashed now, but when snippet runing, and typing in multi-bytes characters(e.g. Chinese), the result is gibberish codes. best regards. yidabu
To transfer your work, just one bundle is necessary. hg bundle --base 123 yidabu.bdl Now yidabu.bdl contains all your changes. Please retry with the new fixes in dwt-win. Frank
winXp IME.
right.
After fixes this seems to work now. http://www.dsource.org/projects/dwt-win/changeset/297%3A7d431a32f71e http://www.dsource.org/projects/dwt-win/changeset/298%3A8fa53b71485d Can you please retry?
work now. thanks! -- yidabu <yidabu.spam gmail.com> http://www.dsource.org/projects/dwin D 语言-中文(D Chinese): http://www.d-programming-language-china.org/ http://bbs.d-programming-language-china.org/ http://dwin.d-programming-language-china.org/ http://scite4d.d-programming-language-china.org/
Aug 23 2008









Frank Benoit <keinfarbton googlemail.com> 