Russian language and FIVEWIN

Russian language and FIVEWIN

Postby Otto » Thu May 08, 2008 1: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
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

Postby Robert Frank » Thu May 08, 2008 2:05 pm

Did you install Russian font in your Windows?
Robert Frank
User avatar
Robert Frank
 
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland

Postby Otto » Thu May 08, 2008 2: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
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

Postby Robert Frank » Thu May 08, 2008 2:16 pm

I've just written letter to my coleague from Russia how to do it.
I'm waiting for an answer.
Robert Frank
User avatar
Robert Frank
 
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland

Postby Robert Frank » Thu May 08, 2008 2: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
User avatar
Robert Frank
 
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland

Postby Robert Frank » Thu May 08, 2008 2: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
User avatar
Robert Frank
 
Posts: 95
Joined: Fri Nov 23, 2007 4:43 am
Location: Gdynia-Poland

Postby Otto » Thu May 08, 2008 4: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


Image
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

special font-characters

Postby ukoenig » Thu May 08, 2008 8: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Otto » Thu May 08, 2008 9:06 pm

Uwe,
thank you. You have my email adress.
Regards,
Otto
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

Re: Russian language and FIVEWIN

Postby Rimantas » Fri May 09, 2008 5: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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Postby Otto » Fri May 09, 2008 7: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
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm

Postby Rimantas » 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 :

Code: Select all  Expand view  RUN
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.
User avatar
Rimantas
 
Posts: 437
Joined: Fri Oct 07, 2005 12:56 pm
Location: Utena , Lithuania

Postby Otto » Fri May 09, 2008 12:44 pm

Rimantas,
thank you very much for your help.
Best regards,
Otto
User avatar
Otto
 
Posts: 6345
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 83 guests