Discussion:
Russian characters in a BP 7.0 real mode program
(too old to reply)
Kevin Young
2006-12-21 16:16:04 UTC
Permalink
Any idea on how to get Russian characters to the user screen and printer. I have Russian translations for all the English
strings used in my program. I would like to keep the code and insert the Russian characters.

Thanks
Maurice Lombardi
2006-12-21 19:24:19 UTC
Permalink
Post by Kevin Young
Any idea on how to get Russian characters to the user screen and printer. I have Russian translations for all the English
strings used in my program. I would like to keep the code and insert the Russian characters.
Thanks
In principle all you have to do is to use a DOS (or Windows DOS emulation) with
a Russian Codepage: I use french and the principle is the same for accented
characters which exist in french and not in english.

For a DOS emulation in Windows 98se:

In config.sys I have:

device=c:\windows\COMMAND\display.sys con=(ega,,1)
Country=033,850,c:\windows\COMMAND\country.sys

in autoexec.bat I have

mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi)
mode con codepage select=850

033 is france, 850 is codepage for french
You have to find the numbers for russian,
but probably you know if you already work sometimes in russian

Maurice
--
Maurice Lombardi
Laboratoire de Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
mailto:***@ujf-grenoble.fr
Kevin Young
2006-12-27 22:17:28 UTC
Permalink
Thanks for your response Maurice,

I am doing this and it works fine for text mode but
when I try to write to the screen in graphics mode I get the
extended english characters. Of course my outtext() statements
reference the characters from ascii 128-255 as this is where they are at in the russian code page (0-127 is the standard english set). I think I have to get a russian font file and register it with my program. I am investigating that now. Any wisdom or thoughts?

Kevin
Post by Maurice Lombardi
Post by Kevin Young
Any idea on how to get Russian characters to the user screen and printer. I have Russian translations for all the English
strings used in my program. I would like to keep the code and insert the Russian characters.
Thanks
In principle all you have to do is to use a DOS (or Windows DOS emulation) with
a Russian Codepage: I use french and the principle is the same for accented
characters which exist in french and not in english.
device=c:\windows\COMMAND\display.sys con=(ega,,1)
Country=033,850,c:\windows\COMMAND\country.sys
in autoexec.bat I have
mode con codepage prepare=((850) c:\windows\COMMAND\ega.cpi)
mode con codepage select=850
033 is france, 850 is codepage for french
You have to find the numbers for russian,
but probably you know if you already work sometimes in russian
Maurice
--
Maurice Lombardi
Laboratoire de Spectrometrie Physique,
Universite Joseph Fourier de Grenoble, BP87
38402 Saint Martin d'Heres Cedex FRANCE
Tel: 33 (0)4 76 51 47 51
Fax: 33 (0)4 76 63 54 95
Loading...