Re: [Freedos-user] Codepage and keyboard setting for Czech language
FYI, in MS-DOS divided the Internationalization aspect into four different subcategories: Keyboard Layout, Code Page, Country, and Language (which also includes dialects). While they all overlap and inter-relate to some degree, they are distinct and are all handled separately. The more "modern" operating systems also have the same issues but handle it differently than MS-DOS did/does, in part because of limited resources (like hard drive and memory space). ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Codepage and keyboard setting for Czech language
-- Původní e-mail --Od: Mateusz Viste via Freedos-user < freedos-user@lists.sourceforge.net> Komu: freedos-user@lists.sourceforge.net Kopie: Mateusz Viste Datum: 19. 12. 2023 21:46:02 Předmět: Re: [Freedos-user] Codepage and keyboard setting for Czech language "On 19/12/2023 18:18, Lukáš Kotek via Freedos-user wrote: > display con=(ega,852,1) > mode con codepage prepare ((852) C:\freedos\cpi\ega.cpx) > mode con codepage select=852 > > All czech-specific letters are printed correctly now. > > Is this the recommended way? Yes, it is the "official" way, as Microsoft intended. Essentially loading the set of CP852 characters into the EGA/VGA memory, otherwise the video hardware usually defaults to CP437. " Thanks! Now I also noticed these commands from above are also part of FDAUTO.BAT. I should have checked it earlier. " > Or is there some a bit more straightforward > approach possible, please? Back in the day it was common in Poland to use hacky TSRs to display Polish characters in the Mazovia format, which was a national standard superior in many aspects to the Microsoft 852 proposition. Our Pepíci brothers had a very similar solution, albeit the standard of course had to be different because we use different glyphs: on your side of the border you used the Kamenicky encoding, and there were TSRs floating around on floppies to support Kamenicky on EGA screens, just like there were TSRs for Mazovia on our side. " Ah yeah, Kamenicky! For me, this is a part of history I don't really remember. I mean I am (somehow) aware about these things existed, but that's it. When I was growing up, the "big thing" regarding codepages was cp1250 vs iso 8859-2, and soon utf-8. The time I spent with any type of DOS in the past was actually quite short, so all the aspects of FreeDOS project are currently very new to me (and I find it to be factinating). " A couple of links so you can get a good idea what to look for: http://www.cestina.cz/pocestovani/dos/system/display.html http://www.cestina.cz/kodovani/#KEYBCS2 https://vitsoft.info/ (Podpora češtiny) " Thanks for the links! I will check them out. Lukas " Mateusz ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user "___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Codepage and keyboard setting for Czech language
On 19/12/2023 18:18, Lukáš Kotek via Freedos-user wrote: display con=(ega,852,1) mode con codepage prepare ((852) C:\freedos\cpi\ega.cpx) mode con codepage select=852 All czech-specific letters are printed correctly now. Is this the recommended way? Yes, it is the "official" way, as Microsoft intended. Essentially loading the set of CP852 characters into the EGA/VGA memory, otherwise the video hardware usually defaults to CP437. Or is there some a bit more straightforward approach possible, please? Back in the day it was common in Poland to use hacky TSRs to display Polish characters in the Mazovia format, which was a national standard superior in many aspects to the Microsoft 852 proposition. Our Pepíci brothers had a very similar solution, albeit the standard of course had to be different because we use different glyphs: on your side of the border you used the Kamenicky encoding, and there were TSRs floating around on floppies to support Kamenicky on EGA screens, just like there were TSRs for Mazovia on our side. A couple of links so you can get a good idea what to look for: http://www.cestina.cz/pocestovani/dos/system/display.html http://www.cestina.cz/kodovani/#KEYBCS2 https://vitsoft.info/ (Podpora češtiny) Mateusz ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Codepage and keyboard setting for Czech language
OK, so I figured out how to resolve it literally moments after I sent the previous email :-) It is based on the docs: - https://github.com/FDOS/cpi/blob/master/Readme.txt - http://wiki.freedos.org/wiki/index.php/Mode Following solution works: display con=(ega,852,1) mode con codepage prepare ((852) C:\freedos\cpi\ega.cpx) mode con codepage select=852 All czech-specific letters are printed correctly now. Is this the recommended way? Or is there some a bit more straightforward approach possible, please? I guess this is something probably any user who wishes to use some Czech with FreeDOS must hit. (Is it worth documenting?) Or maybe it is only me :-) Lukas -- Původní e-mail -- Od: Lukáš Kotek via Freedos-user Komu: freedos-user@lists.sourceforge.net Kopie: Lukáš Kotek Datum: 19. 12. 2023 18:03:46 Předmět: [Freedos-user] Codepage and keyboard setting for Czech language "Hello everyone, I am trying to use Czech keyboard layout on FreeDOS, but I guess I am doing some, probably obvious, mistake here. Can you help or point me to what I am doing wrong, please? I am running FreeDOS on Fedora 39 using qemu 8.1 (but behaviour is fully reproducible also with VirtualBox). My full qemu command is: qemu-system-i386 -m 64 -k cz -rtc base=localtime -display gtk -hda dos.img - cdrom FD13LGCY.iso -boot order=c -enable-kvm -device sb16 -device adlib - drive file=fat:rw:share/ I set keyboard layout via `keyb cz,852`, but some czech-specific letters are shown incorrectly (letters with hooks etc). Czech keyboard uses following letters ;+ěščřžýáíé=´ (on keys where US layout has `1234567890-= chars). The most of these is always printed incorrectly, I also tried with DosBOX which show it just fine (see pictures bellow to compare). - https://lukaskotek.eu/static/dosbox_correct_chars.png - https://lukaskotek.eu/static/freedos_incorrect_chars.png - https://lukaskotek.eu/static/freedos_multiple_codepages.png I also experimented with different codepages like cp858, cp867, but with no luck. I tried to save these special chars via echo command to the text file on drive shared with my Linux host and then, on the host, I converted the file to utf8 with iconv by: iconv -f cp852 -t utf8 -o czech_ch_converted.txt czech_ch.txt ...and in that case all the letters in the output file are completely fine : -) Any idea what can be wrong? I noticed there is app Blocek which is definitely expected to work properly with Czech language, so the problem is very probably on my side. I just cannot see it. I'll be glad for any advice here. Best regards, Lukas___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user "___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
[Freedos-user] Codepage and keyboard setting for Czech language
Hello everyone, I am trying to use Czech keyboard layout on FreeDOS, but I guess I am doing some, probably obvious, mistake here. Can you help or point me to what I am doing wrong, please? I am running FreeDOS on Fedora 39 using qemu 8.1 (but behaviour is fully reproducible also with VirtualBox). My full qemu command is: qemu-system-i386 -m 64 -k cz -rtc base=localtime -display gtk -hda dos.img - cdrom FD13LGCY.iso -boot order=c -enable-kvm -device sb16 -device adlib - drive file=fat:rw:share/ I set keyboard layout via `keyb cz,852`, but some czech-specific letters are shown incorrectly (letters with hooks etc). Czech keyboard uses following letters ;+ěščřžýáíé=´ (on keys where US layout has `1234567890-= chars). The most of these is always printed incorrectly, I also tried with DosBOX which show it just fine (see pictures bellow to compare). - https://lukaskotek.eu/static/dosbox_correct_chars.png - https://lukaskotek.eu/static/freedos_incorrect_chars.png - https://lukaskotek.eu/static/freedos_multiple_codepages.png I also experimented with different codepages like cp858, cp867, but with no luck. I tried to save these special chars via echo command to the text file on drive shared with my Linux host and then, on the host, I converted the file to utf8 with iconv by: iconv -f cp852 -t utf8 -o czech_ch_converted.txt czech_ch.txt ...and in that case all the letters in the output file are completely fine : -) Any idea what can be wrong? I noticed there is app Blocek which is definitely expected to work properly with Czech language, so the problem is very probably on my side. I just cannot see it. I'll be glad for any advice here. Best regards, Lukas___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user