QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: krovit on September 24, 2020, 03:52:40 am

Title: Uppercase accented words
Post by: krovit on September 24, 2020, 03:52:40 am
Hi everyone,

the uppercase of " é "  is chr$(130)...
which is the uppercase of " è " ??

It seems that it is not foreseen anywhere ...

Title: Re: Uppercase accented words
Post by: mpgcan on September 24, 2020, 06:22:18 am
chr$(138)
Ref: https://www.alt-codes.net/
Title: Re: Uppercase accented words
Post by: krovit on September 24, 2020, 07:05:41 am
chr$(138)= è

it seems that that uppercase of "è" is not supported in QB64...
and it's pretty weird (although there will be a valid reason for that)
in italian language cannot do without a uppercase of " è " (È)
Title: Re: Uppercase accented words
Post by: bplus on September 24, 2020, 11:22:25 am
You can make your own set:
https://www.qb64.org/forum/index.php?topic=3025.0

A couple of ways, even create a new language font.

Welcome to the forum! @mpgcan
Title: Re: Uppercase accented words
Post by: krovit on September 24, 2020, 03:46:00 pm
thanks ... it's a bit complicated ... I'll take a look at it
Title: Re: Uppercase accented words
Post by: krovit on September 24, 2020, 03:56:42 pm
thanks bplus, I have only just seen the code you posted in my discussion about the approximation of decimal numbers: very interesting!
Title: Re: Uppercase accented words
Post by: Cobalt on September 24, 2020, 05:27:35 pm
https://www.qb64.org/forum/index.php?topic=2911.0

this might be a bit easier to use, if you wanted to makeup your own bios font.

QB64's base font is based off ASCII.
Title: Re: Uppercase accented words
Post by: Bert22306 on September 24, 2020, 09:01:09 pm
chr$(138)= è

it seems that that uppercase of "è" is not supported in QB64...
and it's pretty weird (although there will be a valid reason for that)
in italian language cannot do without a uppercase of " è " (È)

The base font for Qbasic and QB64 uses the original MS-DOS 8-bit extended ASCII, where all the accented characters, and some Greek characters, and some symbols for drawing blocks, and a few other goodies, take up code 128-255. So yeah, not everything is supported. I always have a table next to me, which shows the basic extended characters.

Otherwise, you have to select some UTF-8 font. There are people here who have become experts in this matter, like Tempodibasic. I'm too lazy, so I just use whatever accents are available in the base font. (Italian uses so few accents that for the most part, they all exist in the base font, other than upper case accented characters. French seems to have been given priority, in this base character set.)