HMG 3.1.4

HMG Unicode versions 3.1.x related

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5160
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 127 times
Been thanked: 128 times
Contact:

Re: HMG 3.1.4 (Test)

Post by Rathinagiri » Wed Jul 10, 2013 1:59 pm

Can you please give a small sample?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.

radohabjan
Posts: 92
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Post by radohabjan » Wed Jul 10, 2013 8:45 pm

Hello Rathi,

sorry , I coudln't sent a whole project, it's to big.
Here is picture of EDIT EXTEND. I use SI language:

SET LANGUAGE TO SLOVENIAN
REQUEST HB_CODEPAGE_SLWIN
HB_CDPSELECT("SLWIN")

I marked two buttons Delte and Find
Delete Button must be Briši (delete) and Find must be Poišči (find). In the attached file are some strange charachters.
Program is h_edit_ex.prg and lib libeditex.a

br Rado
Attachments
Capture.PNG
Capture.PNG (59.04 KiB) Viewed 1503 times

User avatar
srvet_claudio
Posts: 1943
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 30 times
Been thanked: 117 times
Contact:

Post by srvet_claudio » Thu Jul 11, 2013 12:12 am

radohabjan wrote:Hello Rathi,

sorry , I coudln't sent a whole project, it's to big.
Here is picture of EDIT EXTEND. I use SI language:

SET LANGUAGE TO SLOVENIAN
REQUEST HB_CODEPAGE_SLWIN
HB_CDPSELECT("SLWIN")

I marked two buttons Delte and Find
Delete Button must be Briši (delete) and Find must be Poišči (find). In the attached file are some strange charachters.
Program is h_edit_ex.prg and lib libeditex.a

br Rado
Hi Rado.
The problem is that when compiling HMG for Unicode all internal messages are in Unicode. When you put a SET CODEPAGE TO, you force HMG to working in ANSI.
Therefore, we must translate the internal messages of HMG from Unicode to ANSI.

Code: Select all

SET LANGUAGE TO SLOVENIAN
REQUEST HB_CODEPAGE_SLWIN
HB_CDPSELECT("SLWIN")

HMG_MESSAGES_UTF8_TO_ANSI("SLWIN")

Code: Select all

FUNCTION HMG_MESSAGES_UTF8_TO_ANSI (cCPID)
LOCAL k, i, nIndex, cUTF8Str, cANSIStr
LOCAL aPos := {128, 129, 130, 131, 132, 133, 134, 136, 137, 331, 371}
   FOR k = 1 TO HMG_LEN (aPos)
      nIndex := aPos [k]
      IF ValType (_HMG_SYSDATA [nIndex]) == "A"
         FOR i = 1 TO HMG_LEN (_HMG_SYSDATA [nIndex])
            cUTF8Str := _HMG_SYSDATA [nIndex] [i]
            cANSIStr := HB_UTF8TOSTR (cUTF8Str, cCPID)
            _HMG_SYSDATA [nIndex] [i] := cANSIStr 
         NEXT
      ELSE
         cUTF8Str := _HMG_SYSDATA [nIndex]
         cANSIStr := HB_UTF8TOSTR (cUTF8Str, cCPID)
         _HMG_SYSDATA [nIndex] := cANSIStr 
      ENDIF
   NEXT
RETURN NIL
Best Regards,
Claudio.
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

radohabjan
Posts: 92
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Post by radohabjan » Thu Jul 11, 2013 1:58 pm

Hello Claudio,

I made simple demo in attached file and still doesn't work.

br Rado
Attachments
DEMOEE.ZIP
(1.94 KiB) Downloaded 73 times

User avatar
srvet_claudio
Posts: 1943
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Has thanked: 30 times
Been thanked: 117 times
Contact:

Post by srvet_claudio » Fri Jul 12, 2013 1:26 am

radohabjan wrote:Hello Claudio,

I made simple demo in attached file and still doesn't work.

br Rado
Hi Rado,
I fixed the bug, the problem is the HB_UTF8TOSTR() Harbour function that not translate correctly the Slovenian.
Please change the original file C:\hmg.3.1.4\SOURCE\h_init.prg, by the new h_init.prg attachment file and re-build the library.
Best Regards,
Claudio.
Attachments
h_init.rar
(38.08 KiB) Downloaded 119 times
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com

radohabjan
Posts: 92
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Post by radohabjan » Fri Jul 12, 2013 7:35 am

Hello Claudio,

now it works. Perfect.
Thanks.

Rado

radohabjan
Posts: 92
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Post by radohabjan » Fri Jul 12, 2013 8:54 pm

Hello friends,

is it possible to put in hmgdoc.htm again CA-Clipper 5.3 documentation. From time to time I'm still use old fashion clipper commands.

br Rado
Attachments
Capture.PNG
Capture.PNG (31.59 KiB) Viewed 1368 times

User avatar
danielmaximiliano
Posts: 2035
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 82 times
Been thanked: 11 times
Contact:

Post by danielmaximiliano » Fri Jul 12, 2013 9:02 pm

radohabjan wrote:Hello friends,

is it possible to put in hmgdoc.htm again CA-Clipper 5.3 documentation. From time to time I'm still use old fashion clipper commands.

br Rado
reference.png
reference.png (43.04 KiB) Viewed 1366 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

radohabjan
Posts: 92
Joined: Mon Nov 30, 2009 7:17 am
Location: Slovenia
Contact:

Post by radohabjan » Sat Jul 13, 2013 8:07 am

Thanks Daniel,

I didn't check all subfolders.

br Rado

User avatar
quartz565
Posts: 442
Joined: Mon Oct 01, 2012 12:37 pm
Location: Thessaloniki, Greece
Has thanked: 103 times
Been thanked: 11 times
Contact:

Post by quartz565 » Sat Jul 13, 2013 1:00 pm

Hi,
If i edit forms in IDE (Unicode version) the Greek characters are not displayed (ide_edit). But there is no problem with Greek characters in exe Program (exe_prog)
What should I do to fix the problem.

Nikos
ide_edit.png
ide_edit.png (35.89 KiB) Viewed 1326 times
Attachments
exe_prog.png
exe_prog.png (48.13 KiB) Viewed 1326 times
Best Regards,
Nikos.

os: Windows Server 2012 - 64
hw: HP Server E5606, 2.13GHz, 8.00 GB - Intel Xeon CPU

Post Reply