delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/19/07:28:21

Newsgroups: comp.os.msdos.djgpp
From: manni DOT heumann AT gmx DOT de (Manni Heumann)
Subject: Re: Allegro, Ansi, TTF2PCX and Umlauts
References: <F77915E7F086D31197F4009027CC81C91CC695 AT probe-2 DOT as-london DOT acclaim DOT com>
X-Newsreader: News Xpress 2.01
Date: Wed, 19 Jan 2000 08:54:53 GMT
NNTP-Posting-Host: dhcp33-226.uni-bielefeld.de
Message-ID: <38857be2$1@news.uni-bielefeld.de>
X-Trace: 19 Jan 2000 09:54:58 +0200, dhcp33-226.uni-bielefeld.de
Lines: 50
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In article <F77915E7F086D31197F4009027CC81C91CC695 AT probe-2 DOT as-london DOT acclaim DOT com>, djgpp AT delorie DOT com wrote:
>Manni Heumann writes:
>> (Pseudocode):
>> char c=readkey() & 0xff;
>> textprintf ("%c", c);
>>
>> all I get is garbage as soon as I press some Umlaut-key
>
>Try printing out the value of c in decimal, and check that it really
>is what www.unicode.org says should be that accented letter. If not,
>there is something wrong with whatever keyboard mapping table you are
>using: I'm afraid I don't have the time or enthusiasm to check all
>these myself, but would be delighted to accept fixed versions if you
>find problems with any of them (the individual mapping files can be 
>exported from keyboard.dat using the grabber, and edited using the
>setup/keyconf utility).
>

BINGO!!!
Believe me, Shaw, the enthusiasm you show is already way beyond anything you 
can expect. You pointed me in the right direction and now I've got a working 
"DE.CFG". I also noticed some other codes being incorrect. Fixed them to. Just 
give me a last hint and tell me what to do with the new file. Import it into 
keyboard.dat and mail that to you?

[some suspicions snipped]

>> Another problem I just discovered are tabs: In former versions (3.11)
>> I could textprintf a tab with no trouble, but in 3.95 a '\t' will 
>> also come out as '^'. Is this a related problem?
>
>Actually tabs have never been supported: Allegro doesn't know anything
>about formatting characters. Older versions used to print all unknown
>characters as spaces, while newer ones print them as squiggles. If
>you need to output tabs you'll have to either write your own more
>capable formatting code, or use something like the d_textbox_proc()
>GUI object that does support such formatting, or you could bodge it
>by including a tab character graphic in your font.
>

This really comes as a surprise. I had some code in my program that 
textprintfed "%s\t%d" and the numbers came out neatly aligned. This was 
compiled with version 3.11.
To fix this I just broke this up in two textprintfs and dropped the tab.

Thanks!

--

Manni

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019