Re: [Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Joao Silva via Freedos-user
Hello.

So, whats the code for Portugal Portuguese?

Thank you.

On Thu, Apr 25, 2024 at 6:43 PM Jim Hall via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> Davi Ramos wrote:
> >> > The "ã" is a very common character in Portuguese. It shows up in words
> >> > such as "não", "alçapão", and "órgão".
> >> >
> >> > The system's keyboard and layout are already configured to "br" (for
> >> > Brazilian Portuguese) and working perfectly. Other accentuated
> >> > characters display just fine. That is the case of "á", "à", "ô".
> >> > However, "ã" shows as something else entirely. Image below:
> >> > oIh6TW8.png
> >> >
> >> > How can I get FreeDOS to correctly display those characters?
>
>
> Vacek Nules wrote:
> >
> > Hi Davi,
> >
> > Your codepage is probably set to CP437, which does not contain the
> > "ã" character. Change your codepage to CP850 (or CP858 if you also
> > need the Euro sign) and try again.
>
>
> That's what I was going to suggest too. Looks like Brazilian
> Portuguese is codepage 850? So I think Davi also needs to enter these
> commands to set up the display for 850:
>
> display con=(ega,850,1)
> mode con cp prep=((850) C:\freedos\cpi\ega.cpx)
>
>
> ___
> 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] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Davi Ramos via Freedos-user
That did it! "ã" and other tilde-accentuated characters are displaying
perfectly now. Thanks!

Although I cannot say I understand the fix, it did work and now all
tilde-accentuated characters work fine everywhere in FreeDOS.

I had to change "fdos" to "freedos" since that is how the directory is
actually called on this version.  I added the fix to FDAUTO.BAT, which I
assume is FreeDOS version of AUTOEXEC.BAT.

LH DISPLAY CON=(EGA,,1)
> MODE CON CP PREP=((858) C:\FREEDOS\cpi\EGA.CPX)
> MODE CON CP SEL=858


Is that an okay place to put those settings?

Thanks!

On Thu, Apr 25, 2024 at 3:41 PM Eric Auer via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

>
> Hi Robert and Davi,
>
> >> The system's keyboard and layout are already configured to "br" (for
> >> Brazilian Portuguese) and working perfectly. Other accentuated
> >> characters display just fine. That is the case of "á", "à", "ô".
> >> However, "ã" shows as something else entirely. Image below:
> >> oIh6TW8.png
> >>
> >> How can I get FreeDOS to correctly display those characters?
>
> You probably have to load DISPLAY and use MODE to set the codepage
> to load a font which has all accented characters at the place where
> your already Brazilian keyboard configuration expects them :-)
>
> See the HTMLHELP system for details. There should also be some
> examples on the web. It should work similar to this:
>
> First, load the DISPLAY thing. You can do this in your autoexec
> to load it automatically at boot, or manually at the prompt:
>
> LH DISPLAY CON=(EGA,,1)
> rem or maybe for example DISPLAY CON=(EGA,858,1) or similar?
>
> Second, use MODE CON CODEPAGE (shorthand MODE CON CP also
> works) to first prepare (shorthand PREP) and then select
> (shorthand SEL) the codepage for your country.
>
> In my example the codepage is 858, which happens to be in
> EGA.CPX, which is a compressed version of EGA.CPI - some
> less common codepages will probably be in other CPX files.
>
> MODE CON CP PREP=((858) C:\FDOS\cpi\EGA.CPX)
>
> MODE CON CP SEL=858
>
> You can do those two MODE invocations in autoexec or at
> the prompt as well. You can use MODE /? for help, too.
>
> The internet says that Brazilians prefer codepage 860 :-)
>
> Regards, Eric
>
> > 1) How do you enter "ã"?
> > 2) Is that a separate key on your keyboard?
> > 3) What does
> > https://bootablecd.de/fdhelp-internet/en/hhstndrd/base/keycode.htm
> > produce, when you hit that key or key combo?
>
> Interesting questions :-) Maybe all falls into place with CP860.
>
>
>
>
> ___
> 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] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Davi Ramos via Freedos-user
Unfortunately, after entering the following:

display con=(ega,850,1)

mode con cp prep=((850) C:\freedos\cpi\ega.cpx)


There was no alteration in the displaying of "ã".


On Thu, Apr 25, 2024 at 3:43 PM Jim Hall via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> Davi Ramos wrote:
> >> > The "ã" is a very common character in Portuguese. It shows up in words
> >> > such as "não", "alçapão", and "órgão".
> >> >
> >> > The system's keyboard and layout are already configured to "br" (for
> >> > Brazilian Portuguese) and working perfectly. Other accentuated
> >> > characters display just fine. That is the case of "á", "à", "ô".
> >> > However, "ã" shows as something else entirely. Image below:
> >> > oIh6TW8.png
> >> >
> >> > How can I get FreeDOS to correctly display those characters?
>
>
> Vacek Nules wrote:
> >
> > Hi Davi,
> >
> > Your codepage is probably set to CP437, which does not contain the
> > "ã" character. Change your codepage to CP850 (or CP858 if you also
> > need the Euro sign) and try again.
>
>
> That's what I was going to suggest too. Looks like Brazilian
> Portuguese is codepage 850? So I think Davi also needs to enter these
> commands to set up the display for 850:
>
> display con=(ega,850,1)
> mode con cp prep=((850) C:\freedos\cpi\ega.cpx)
>
>
> ___
> 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] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Davi Ramos via Freedos-user
I tried the commands. "MODE CON CP SELECT=858" and "MODE CON CP
SELECT=850". The "ã" still displays as that weird character.

On Thu, Apr 25, 2024 at 3:39 PM Vacek Nules via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> Hi Davi,
>
> Your codepage is probably set to CP437, which does not contain the "ã"
> character. Change your codepage to CP850 (or CP858 if you also need the
> Euro sign) and try again.
>
> Cheers,
> Vacek
>
>
> Robert Riebisch via Freedos-user  ezt
> írta (időpont: 2024. ápr. 25., Csü 20:29):
>
>> Hi Davi,
>>
>> > The "ã" is a very common character in Portuguese. It shows up in words
>> > such as "não", "alçapão", and "órgão".
>> >
>> > The system's keyboard and layout are already configured to "br" (for
>> > Brazilian Portuguese) and working perfectly. Other accentuated
>> > characters display just fine. That is the case of "á", "à", "ô".
>> > However, "ã" shows as something else entirely. Image below:
>> > oIh6TW8.png
>> >
>> > How can I get FreeDOS to correctly display those characters?
>>
>> 1) How do you enter "ã"?
>> 2) Is that a separate key on your keyboard?
>> 3) What does
>> 
>> produce, when you hit that key or key combo?
>>
>> Cheers,
>> Robert
>> --
>> BTTR Software   https://www.bttr-software.de/
>> DOS ain't dead  https://www.bttr-software.de/forum/
>>
>>
>> ___
>> 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 mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Davi Ramos via Freedos-user
Sorry, but how can I change my codepage? I don't really know what that is.

Thanks!

On Thu, Apr 25, 2024 at 3:39 PM Vacek Nules via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> Hi Davi,
>
> Your codepage is probably set to CP437, which does not contain the "ã"
> character. Change your codepage to CP850 (or CP858 if you also need the
> Euro sign) and try again.
>
> Cheers,
> Vacek
>
>
> Robert Riebisch via Freedos-user  ezt
> írta (időpont: 2024. ápr. 25., Csü 20:29):
>
>> Hi Davi,
>>
>> > The "ã" is a very common character in Portuguese. It shows up in words
>> > such as "não", "alçapão", and "órgão".
>> >
>> > The system's keyboard and layout are already configured to "br" (for
>> > Brazilian Portuguese) and working perfectly. Other accentuated
>> > characters display just fine. That is the case of "á", "à", "ô".
>> > However, "ã" shows as something else entirely. Image below:
>> > oIh6TW8.png
>> >
>> > How can I get FreeDOS to correctly display those characters?
>>
>> 1) How do you enter "ã"?
>> 2) Is that a separate key on your keyboard?
>> 3) What does
>> 
>> produce, when you hit that key or key combo?
>>
>> Cheers,
>> Robert
>> --
>> BTTR Software   https://www.bttr-software.de/
>> DOS ain't dead  https://www.bttr-software.de/forum/
>>
>>
>> ___
>> 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 mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Davi Ramos via Freedos-user
1. I enter "ã" by typing the "~ ^" followed by the "a" key. Resulting in
"ã".
2. Yes, it is a separate key on my keyboard. By itself, that key will
generate the tilde. With shift, it generates the "little hat" (circumflex),
which is used in words such as "ângulo" or "acadêmico". The circumflex
displays perfectly on FreeDOS, the tilde ("~") does not.
3. "keycode" generates "Bad command or filename". I'm not sure how to
install this command, I'm looking at fdimples and it is not immediately
obvious :/. Is there a way to get it installed I am not aware of?

Thanks!

On Thu, Apr 25, 2024 at 3:31 PM Robert Riebisch via Freedos-user <
freedos-user@lists.sourceforge.net> wrote:

> Hi Davi,
>
> > The "ã" is a very common character in Portuguese. It shows up in words
> > such as "não", "alçapão", and "órgão".
> >
> > The system's keyboard and layout are already configured to "br" (for
> > Brazilian Portuguese) and working perfectly. Other accentuated
> > characters display just fine. That is the case of "á", "à", "ô".
> > However, "ã" shows as something else entirely. Image below:
> > oIh6TW8.png
> >
> > How can I get FreeDOS to correctly display those characters?
>
> 1) How do you enter "ã"?
> 2) Is that a separate key on your keyboard?
> 3) What does
> 
> produce, when you hit that key or key combo?
>
> Cheers,
> Robert
> --
> BTTR Software   https://www.bttr-software.de/
> DOS ain't dead  https://www.bttr-software.de/forum/
>
>
> ___
> 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] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Frantisek Rysanek via Freedos-user
Let me suggest the following hypothesis:

Your FreeDOS and graphical hardware is running with the HW-default 
code page, known as Code Page 437.
https://en.wikipedia.org/wiki/Code_page_437

Whereas, you're trying to display text encoded in CP850.
https://en.wikipedia.org/wiki/Code_page_850
CP850, aka PC Latin 1, which is not the same as ISO Latin 1.

Perhaps your keyboard is already switched to produce CP850.

You probably need to run some program(s) to load the right codepage 
into the graphics card. I don't have a ready-made and tested recipe 
for you... could be something like:

In config.sys:
COUNTRY=055,850,C:\FDOS\BIN\COUNTRY.SYS

In autoexec.bat:
DISPLAY CON=(EGA,850,2)
MODE CON CP PREP=(437,850) C:\FDOS\BIN\EGA.CPX)
MODE CON CP SEL=850
   maybe also:
CHCP 850

Further reading:
https://gitlab.com/FreeDOS/base/cpidos/-/tree/master/DOC/CPIDOS
http://home.mnet-online.de/willybilly/fdhelp-internet/en/hhstndrd/base
/display.htm
http://home.mnet-online.de/willybilly/fdhelp-internet/en/hhstndrd/comm
and/chcp.htm
http://home.mnet-online.de/willybilly/fdhelp-internet/en/hhstndrd/base
/cpidos.htm
http://home.mnet-online.de/willybilly/fdhelp-internet/en/hhstndrd/cnfi
gsys/country.htm
https://marc.info/?l=freedos-dev=99788711909602  (examples look 
more like MS-DOS than FreeDOS)

Frank

> 
> The "ã" is a very common character in Portuguese. It shows up in 
> words such as "não", "alçapão", and "órgão". 
> 
> The system's keyboard and layout are already configured to "br" (for 
> Brazilian Portuguese) and working perfectly. Other accentuated 
> characters display just fine. That is the case of "á", "à", "ô". 
> However, "ã" shows as something else entirely. Image below:
> oIh6TW8.png
> 
> How can I get FreeDOS to correctly display those characters?
> 
> Thanks!




___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Jim Hall via Freedos-user
Davi Ramos wrote:
>> > The "ã" is a very common character in Portuguese. It shows up in words
>> > such as "não", "alçapão", and "órgão".
>> >
>> > The system's keyboard and layout are already configured to "br" (for
>> > Brazilian Portuguese) and working perfectly. Other accentuated
>> > characters display just fine. That is the case of "á", "à", "ô".
>> > However, "ã" shows as something else entirely. Image below:
>> > oIh6TW8.png
>> >
>> > How can I get FreeDOS to correctly display those characters?


Vacek Nules wrote:
>
> Hi Davi,
>
> Your codepage is probably set to CP437, which does not contain the
> "ã" character. Change your codepage to CP850 (or CP858 if you also
> need the Euro sign) and try again.


That's what I was going to suggest too. Looks like Brazilian
Portuguese is codepage 850? So I think Davi also needs to enter these
commands to set up the display for 850:

display con=(ega,850,1)
mode con cp prep=((850) C:\freedos\cpi\ega.cpx)


___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Eric Auer via Freedos-user


Hi Robert and Davi,


The system's keyboard and layout are already configured to "br" (for
Brazilian Portuguese) and working perfectly. Other accentuated
characters display just fine. That is the case of "á", "à", "ô".
However, "ã" shows as something else entirely. Image below:
oIh6TW8.png

How can I get FreeDOS to correctly display those characters?


You probably have to load DISPLAY and use MODE to set the codepage
to load a font which has all accented characters at the place where
your already Brazilian keyboard configuration expects them :-)

See the HTMLHELP system for details. There should also be some
examples on the web. It should work similar to this:

First, load the DISPLAY thing. You can do this in your autoexec
to load it automatically at boot, or manually at the prompt:

LH DISPLAY CON=(EGA,,1)
rem or maybe for example DISPLAY CON=(EGA,858,1) or similar?

Second, use MODE CON CODEPAGE (shorthand MODE CON CP also
works) to first prepare (shorthand PREP) and then select
(shorthand SEL) the codepage for your country.

In my example the codepage is 858, which happens to be in
EGA.CPX, which is a compressed version of EGA.CPI - some
less common codepages will probably be in other CPX files.

MODE CON CP PREP=((858) C:\FDOS\cpi\EGA.CPX)

MODE CON CP SEL=858

You can do those two MODE invocations in autoexec or at
the prompt as well. You can use MODE /? for help, too.

The internet says that Brazilians prefer codepage 860 :-)

Regards, Eric


1) How do you enter "ã"?
2) Is that a separate key on your keyboard?
3) What does
https://bootablecd.de/fdhelp-internet/en/hhstndrd/base/keycode.htm
produce, when you hit that key or key combo?


Interesting questions :-) Maybe all falls into place with CP860.




___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


Re: [Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Vacek Nules via Freedos-user
Hi Davi,

Your codepage is probably set to CP437, which does not contain the "ã"
character. Change your codepage to CP850 (or CP858 if you also need the
Euro sign) and try again.

Cheers,
Vacek


Robert Riebisch via Freedos-user  ezt
írta (időpont: 2024. ápr. 25., Csü 20:29):

> Hi Davi,
>
> > The "ã" is a very common character in Portuguese. It shows up in words
> > such as "não", "alçapão", and "órgão".
> >
> > The system's keyboard and layout are already configured to "br" (for
> > Brazilian Portuguese) and working perfectly. Other accentuated
> > characters display just fine. That is the case of "á", "à", "ô".
> > However, "ã" shows as something else entirely. Image below:
> > oIh6TW8.png
> >
> > How can I get FreeDOS to correctly display those characters?
>
> 1) How do you enter "ã"?
> 2) Is that a separate key on your keyboard?
> 3) What does
> 
> produce, when you hit that key or key combo?
>
> Cheers,
> Robert
> --
> BTTR Software   https://www.bttr-software.de/
> DOS ain't dead  https://www.bttr-software.de/forum/
>
>
> ___
> 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] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Robert Riebisch via Freedos-user
Hi Davi,

> The "ã" is a very common character in Portuguese. It shows up in words
> such as "não", "alçapão", and "órgão".
> 
> The system's keyboard and layout are already configured to "br" (for
> Brazilian Portuguese) and working perfectly. Other accentuated
> characters display just fine. That is the case of "á", "à", "ô".
> However, "ã" shows as something else entirely. Image below:
> oIh6TW8.png
> 
> How can I get FreeDOS to correctly display those characters?

1) How do you enter "ã"?
2) Is that a separate key on your keyboard?
3) What does

produce, when you hit that key or key combo?

Cheers,
Robert
-- 
BTTR Software   https://www.bttr-software.de/
DOS ain't dead  https://www.bttr-software.de/forum/


___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user


[Freedos-user] How can I make FreeDOS correctly display the "ã" character?

2024-04-25 Thread Davi Ramos via Freedos-user
The "ã" is a very common character in Portuguese. It shows up in words such
as "não", "alçapão", and "órgão".

The system's keyboard and layout are already configured to "br" (for
Brazilian Portuguese) and working perfectly. Other accentuated characters
display just fine. That is the case of "á", "à", "ô". However, "ã" shows as
something else entirely. Image below:
[image: oIh6TW8.png]

How can I get FreeDOS to correctly display those characters?

Thanks!
___
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user