FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Russian language and FIVEWIN
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 01:55 PM

Today I had a request to make printouts and some input screens in Russian language
I copied a word from an Russian homepage Рестораны (I hope this is Russian) and tried to insert this via my Fivewin program to a database. But the result is ??????????.

Could someone please help me.
Regards,
Otto

Posts: 95
Joined: Fri Nov 23, 2007 04:43 AM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 02:05 PM

Did you install Russian font in your Windows?

Robert Frank
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 02:09 PM

Robert,
Thank you for your answer.

How do I install Russian font?
Can I use German and Russian in the same application?

Thanks in advance
Otto

Posts: 95
Joined: Fri Nov 23, 2007 04:43 AM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 02:16 PM

I've just written letter to my coleague from Russia how to do it.
I'm waiting for an answer.

Robert Frank
Posts: 95
Joined: Fri Nov 23, 2007 04:43 AM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 02:21 PM

Look on ASCI codepage

http://www.ascii.ca/koi8-r.htm

and

http://www.ibiblio.org/sergei/Software/

Problem is to input high ascii value via keyboard :)

Robert Frank
Posts: 95
Joined: Fri Nov 23, 2007 04:43 AM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 02:57 PM
Robert Frank wrote:I've just written letter to my coleague from Russia how to do it.
I'm waiting for an answer.


Answer is, that you can play with it with database, but it isn't easy.

User interface for both of languages in one time is near impossible (he is Delphy programmer - he doesn't know FWH).

R.
Robert Frank
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 04:33 PM
Hello Frank, hello Dutch,

I saw in Dutch’s program that he uses Thai characters and English. Maybe Dutch can help me.
Dutch, ขอบคุณ.

Regards,
Otto


Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
special font-characters
Posted: Thu May 08, 2008 08:34 PM

Hello Otto,

I solved the problem with my font-editor.
I used Arial and then i replaced not needed characters
with the desired ones. As well it is possible to paint
own characters. Then i installed the new font with a different name.
When you need some russian-font, i can send them to you
so you can copy special characters to a different font.
When you do it this way, you have your own font.
In your program you call the font with => DEFINE FONT oFont "New Font"
My customers are very satisfied with this solution
because there is no need to use different fonts or combinations alt+ ...
As a sample i replaced the not needed chacacter

with ALT + 0137 ( double % )

When you need a font-editor, i can send it to you.

Regards

Uwe

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Russian language and FIVEWIN
Posted: Thu May 08, 2008 09:06 PM

Uwe,
thank you. You have my email adress.
Regards,
Otto

Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Re: Russian language and FIVEWIN
Posted: Fri May 09, 2008 05:27 AM
Otto wrote:Today I had a request to make printouts and some input screens in Russian language
I copied a word from an Russian homepage Рестораны (I hope this is Russian) and tried to insert this via my Fivewin program to a database. But the result is ??????????.

Could someone please help me.
Regards,
Otto


Otto ,

I'm from Lithuania , Russian neigbour . And have many troubles with Russian fonts . The main problem it seems is that Windows can't work at the same time with some codings . Multilingual here isn't solved for non Unicode programs .

If you want to use Russian fonts , try through "Regional and Language options" in "Advanced" tab to change language to "Russian" , also and in "Regional options" . After restart you will see true Рестораны ( Restaurants ... :-) )

Question to Antonio - how to make FWH program Unicode ? :-) ...

With best regards !
Rimantas U.
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Russian language and FIVEWIN
Posted: Fri May 09, 2008 07:34 AM

Rimantas,

Thank you very much for your help.
Glad to know it is Restaurant – one never knows what you copy and paste if you don’t know a language.

Did you ever tried a solution as Uwe mentioned with an own font?

Regards,
Otto

Posts: 437
Joined: Fri Oct 07, 2005 12:56 PM
Russian language and FIVEWIN
Posted: Fri May 09, 2008 12:26 PM
Otto wrote:Rimantas,

Thank you very much for your help.
Glad to know it is Restaurant – one never knows what you copy and paste if you don’t know a language.

Did you ever tried a solution as Uwe mentioned with an own font?


Regards,
Otto


One moment I was playing with that . But this solution isn't good . The own font must be instaled in PC of user . So if a user will change PC , then problems will appears . But maybe it can be done with instaliation of own font from FWH application ... . The best solution - Unicode application . Sorry , but I don't know how to do that with FWH . So I leaved this question to Antonio - is any possibility to do FWH application as Unicode ?

ADDED - searching through forum I found that : Antonio's answer -

"FWH provides AnsiToWide() and WideToAnsi() so you can convert from ansi to unicode and viceversa."

I tried that with one browse :

ADD COLUMN TO BROWSE oBrw DATA OemToAnsi( PREKES->PREKE_RUS ) ;
HEADER aHead[ 12 ] PICTURE "@!K" EDITABLE


and can confirm that this is working ! :-) ...

So , Otto , you must add this functions in all places where you want to see true cirrilic inscriptions ... :-)
Rimantas U.
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Russian language and FIVEWIN
Posted: Fri May 09, 2008 12:44 PM

Rimantas,
thank you very much for your help.
Best regards,
Otto

Continue the discussion