PICTURE "@!" PROBLEM

PICTURE "@!" PROBLEM

Postby E. Bartzokas » Wed Sep 27, 2006 7:32 pm

Hi all,
I have this problem with my greek language applications:

Regardless if used in resource dialog, or dialog created by code, if I use this:
REDEFINE GET oget VAR cGet PICTURE "@!" ..... (Upper case)
If I type in latin (english language), everything works fine.
If I shift my keybord to greek, and type something, the displayed characters are not readable.

If I remove the PICTURE "@!" from the above example, and type something in my native language, then it shows just fine! Of course, if I type in lower case either english or greek, the string respects the case.

Anyone can verify and tell me if it happens to other languages (e.g. italian or spanish or whatever), and if you have come with some workaround?

Thanks to all
Kind regards
Evans
User avatar
E. Bartzokas
 
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: PICTURE "@!" PROBLEM

Postby Richard Chidiak » Wed Sep 27, 2006 7:55 pm

E. Bartzokas wrote:Hi all,
I have this problem with my greek language applications:

Regardless if used in resource dialog, or dialog created by code, if I use this:
REDEFINE GET oget VAR cGet PICTURE "@!" ..... (Upper case)
If I type in latin (english language), everything works fine.
If I shift my keybord to greek, and type something, the displayed characters are not readable.

If I remove the PICTURE "@!" from the above example, and type something in my native language, then it shows just fine! Of course, if I type in lower case either english or greek, the string respects the case.

Anyone can verify and tell me if it happens to other languages (e.g. italian or spanish or whatever), and if you have come with some workaround?

Thanks to all
Kind regards
Evans


Are you using a oemtoansi conversion ?
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: PICTURE "@!" PROBLEM

Postby E. Bartzokas » Wed Sep 27, 2006 8:07 pm

Are you using a oemtoansi conversion ?


Thanks for the reply my friend!
No I am not using OEMTOANSI...
I load a greek font as follows:
DEFINE FONT ofont NAME "COURIER NEW GREEK" size 0,-12

and use the font in my GET object, e.g.
REDEFINE GET oget VAR cget ID ... of oDlg FONT ofont

It's the picture clause that makes everything change.
Without the picture, I get normal greek letters shown.
If I have PICTURE "@!", I see characters that have nothing to do with the greek language... Most likely, the codepage for the font is changed inside either FWH or XHarbour.

Thanks for the reply and my kindest regards
Evans
User avatar
E. Bartzokas
 
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: PICTURE "@!" PROBLEM

Postby Richard Chidiak » Wed Sep 27, 2006 8:11 pm

E. Bartzokas wrote:
Are you using a oemtoansi conversion ?


Thanks for the reply my friend!
No I am not using OEMTOANSI...
I load a greek font as follows:
DEFINE FONT ofont NAME "COURIER NEW GREEK" size 0,-12

and use the font in my GET object, e.g.
REDEFINE GET oget VAR cget ID ... of oDlg FONT ofont

It's the picture clause that makes everything change.
Without the picture, I get normal greek letters shown.
If I have PICTURE "@!", I see characters that have nothing to do with the greek language... Most likely, the codepage for the font is changed inside either FWH or XHarbour.

Thanks for the reply and my kindest regards
Evans


Evans

I have a lot of "@!" in my app and as you know it is in french.

I do not have this type of problems. Have you tried another font ?

Are you using a HB_ lang statement ?

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: PICTURE "@!" PROBLEM

Postby E. Bartzokas » Wed Sep 27, 2006 9:53 pm

Richard Chidiak wrote:
E. Bartzokas wrote:
Are you using a oemtoansi conversion ?


Thanks for the reply my friend!
No I am not using OEMTOANSI...
I load a greek font as follows:
DEFINE FONT ofont NAME "COURIER NEW GREEK" size 0,-12

and use the font in my GET object, e.g.
REDEFINE GET oget VAR cget ID ... of oDlg FONT ofont

It's the picture clause that makes everything change.
Without the picture, I get normal greek letters shown.
If I have PICTURE "@!", I see characters that have nothing to do with the greek language... Most likely, the codepage for the font is changed inside either FWH or XHarbour.

Thanks for the reply and my kindest regards
Evans


Evans

I have a lot of "@!" in my app and as you know it is in french.

I do not have this type of problems. Have you tried another font ?

Are you using a HB_ lang statement ?

Richard


Richard
Can you please tell me where to find the definitions for my language?
I currently use these, because I couldn't find anything better...

REQUEST HB_LANG_EN // _EN
HB_LANGSELECT('EN') // 'EN'

Request DBFCDX
RDDSETDEFAULT("DBFCDX")

rddInfo( RDDI_MEMOTYPE, DB_MEMO_DBT, "DBFCDX" ) // From XHB NG

Thanks again...
Evans
User avatar
E. Bartzokas
 
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Postby Antonio Linares » Thu Sep 28, 2006 5:46 am

Evans,

REQUEST HB_LANG_EL
REQUEST HB_CODEPAGE_ELWIN
HB_LangSelect("EL")
HB_SetCodePage("ELWIN")
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby E. Bartzokas » Thu Sep 28, 2006 7:55 am

Antonio Linares wrote:Evans,

REQUEST HB_LANG_EL
REQUEST HB_CODEPAGE_ELWIN
HB_LangSelect("EL")
HB_SetCodePage("ELWIN")


Hola Antonio,

xBuilder complains about missing external function:
(Unresolved external symbol)
HB_FUN_HB_LANG_EL
Using xBuild Wizzard ver. 4.01 (Jan 24, 2006)

Is there some way I can find these definitions please?

Gracias/saludos
Evans
ps. Getting closer to fixing the problem through your help
User avatar
E. Bartzokas
 
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Postby Antonio Linares » Thu Sep 28, 2006 8:30 am

Evans,

They are located at harbour\source\codepage\cpelwin.c but it looks as it has not been included in the libs.

* Harbour Project source code:
* National Collation Support Module ( Greek WIN )
*
* Copyright 2004 Pete Dionisopoulos <pete_westg@yahoo.gr>
* www - http://www.harbour-project.org
* v1.0 2004 Panayotis (Pete) Dionysopoulos <pete_westg@yahoo.gr>
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42120
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Timm Sodtalbers and 61 guests