bug-gtypist
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-gtypist] Backspace 0407 interferes with 'c with acute' U+0107


From: Felix Natter
Subject: Re: [bug-gtypist] Backspace 0407 interferes with 'c with acute' U+0107
Date: Sun, 01 Jul 2012 21:34:45 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Felix Natter <address@hidden> writes:

> Kalthor <address@hidden> writes:
>
>>   Hello,
>
> hello Kalthor,
>
>> I noticed that it is not possible to input one of the Polish diacritic
>> letters 'c with acute' (unicode 0x107 = 263) because it interferes
>> with KEY_BACKSPACE defined in ncurses.h (0407 = 263)
>
> Thanks for reporting and analyzing this!
>
>> I removed rc == KEY_BACKSPACE from the condition in lines 700 and 991
>> which seems to help on my platform: ubuntu 12.04, gtypist 2.9.1
>
> This will not work, at least not for speedtests (where BACKSPACEs are
> honored). However, you may want to use this as a workaround if you don't
> use speedtests.
> For normal drills, BACKSPACEs are just ignored, so with your change, you
> will get errors when you type backspaces.
>
> Simply using 0x8 does not work with ncurses(w). I've read the ncursesw
> man-pages, but couldn't find a solution for this, so I've posted on
> ncurses-bugs:
>   http://news.gmane.org/gmane.comp.lib.ncurses.bugs

@Kalthor: I emailed you a version with a fix. Can you please check
whether this works for you? It does work for me when I paste a ć :-)

@Tim:

I am now using 
  #define GTYPIST_KEY_BACKSPACE 0x0008
for the translated backspace.

We may also be running in trouble with:

- KEY_F(n) (this is only called in do_query() so it should cause
  problems only in very rare cases, i.e. msgid YN includes 0x0108 ("Ĉ"))

- KEY_ENTER: collides with this one: 0x157 ("ŗ")
  => I will fix this tomorrow, too.

Best Regards,
-- 
Felix Natter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]