Jump to page: 1 2
Thread overview
styledtext: gibberish codes
Aug 21, 2008
yidabu
Aug 22, 2008
Frank Benoit
Aug 22, 2008
yidabu
Aug 22, 2008
Frank Benoit
Aug 22, 2008
yidabu
Aug 22, 2008
Frank Benoit
Aug 22, 2008
yidabu
Aug 22, 2008
Frank Benoit
Aug 22, 2008
Bill Baxter
Aug 22, 2008
Frank Benoit
Aug 22, 2008
yidabu
Aug 23, 2008
Frank Benoit
Aug 23, 2008
yidabu
Aug 23, 2008
Frank Benoit
Aug 23, 2008
yidabu
August 21, 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/


August 22, 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.
August 22, 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/


August 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.
>>>
>> 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
> 
> 
> 

I do not get this.
Can you describe more detailed how you can produce that?

August 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.
> >>>
> >> 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
> > 
> > 
> > 
> 
> 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/


August 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.
>>>>>
>>>> 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
>>>
>>>
>>>
>> 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

Hm, this runs for me: http://img373.imageshack.us/my.php?image=snippet218jq3.png

I use QuickKey to "type" the two chinese characters.


August 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.
> >>>>>
> >>>> 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
> >>>
> >>>
> >>>
> >> 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
> 
> 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/


August 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?
August 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?
>
August 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


« First   ‹ Prev
1 2