9fans archive / 1998 / 08 / 17 / prev next
From: Kenji Okamoto okamoto@ear...
Subject: [9fans] updated version of ktrans {JIS coded]
Date: Sat, 15 Aug 1998 18:13:14 +0900
I still has one more problem regarding reading /dev/kbd.
In main() function of translate.c of original ktrans, I added
two lines just before the line to get mp:
mp = match(bp, &nchar, table);.
The added lines are very simple tolower() function like this:
if (table == kana && (*bp <='Z' && *bp>= 'A'))
*bp = tolower(*bp);
Here, I expected the behaviour such that we see "か" when I input
from keyboard like "KA". However, I got kあ.
I;ve read siource codes many times, but I couldn't got success to
understand the reason why it behaves like that. I know my brains
are reaching to my max though...
Kenji