From owner-freebsd-questions Mon Dec 6 22:56:30 1999 Delivered-To: freebsd-questions@freebsd.org Received: from finland.ispro.net.tr (finland.ispro.net.tr [212.174.120.1]) by hub.freebsd.org (Postfix) with ESMTP id A095614BE7 for ; Mon, 6 Dec 1999 22:56:15 -0800 (PST) (envelope-from yurtesen@ispro.net.tr) Received: from localhost (yurtesen@localhost) by finland.ispro.net.tr (8.9.3/8.9.3) with ESMTP id IAA59129; Tue, 7 Dec 1999 08:55:52 +0200 (EET) (envelope-from yurtesen@ispro.net.tr) Date: Tue, 7 Dec 1999 08:55:52 +0200 (EET) From: Evren Yurtesen To: Greg Lehey Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to create a keymap for iso 8859-9??? In-Reply-To: <19991205175105.62529@mojave.sitaranetworks.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alright, When I asked if there is a place where I can find which key should produce which character I wanted to ask if there is some documents about 8859-9. Of course I knew that there are keymaps in /usr/share/syscons/keymaps But there is no keymap for Turkish and I want to create it but I do not have a keyboard which Turkish letters are printed on it. Also is it a good idea to to look at the keys when creating a keymap? I thought there may be some characters which were not printed on the keyboard but defined in 8859-9 character set. If you say there is no documentation then, Now I can install Turkish keyboard support on my windows and start to try the keys to see what characters they are producing with ALT, CTRL SHIFT, ALT-SHIFT... Well this will take lots of time to try all the combinations and note them and stuff... Thank you, Evren On Sun, 5 Dec 1999, Greg Lehey wrote: > > My problem is a little bit different. I have found out that FreeBSD > > does not have support for ISO-8859-9 character set. Which is consisting of > > Turkish characters. I could find information about character set and I > > could change the required characters to make a font which comlies with ISO > > 8859-9 but I could not find any information about the key map for Turkish > > keyboard. Now I can do it manually by trying the keys in Windows and then > > apply to the keymap in FreeBSd but it is very time consuming and I do not > > know if I can put everything to the right places. > > Do you have a Turkish keyboard? Does it also show the US key layout? > If so, it's not very difficult. > > > Is there any place for document you know which clearly defines which key > > produces which characters with which key combinations ? (For example > > ALT-4 should produce $ sign) > > Yes, that's in the keymap definition. Look at > /usr/share/syscons/keymaps/us.iso.kbd, which defines the standard > layout. You would want to create a tr.iso.kbd for your layout. > > Here's an excerpt. > > # alt > # scan cntrl alt alt cntrl lock > # code base shift cntrl shift alt shift cntrl shift state > # ------------------------------------------------------------------ > 000 nop nop nop nop nop nop nop nop O > 001 esc esc esc esc esc esc debug esc O > 002 '1' '!' nop nop '1' '!' nop nop O > 003 '2' '@' nul nul '2' '@' nul nul O > 004 '3' '#' nop nop '3' '#' nop nop O > 005 '4' '$' nop nop '4' '$' nop nop O > 006 '5' '%' nop nop '5' '%' nop nop O > 007 '6' '^' rs rs '6' '^' rs rs O > 008 '7' '&' nop nop '7' '&' nop nop O > 009 '8' '*' nop nop '8' '*' nop nop O > 010 '9' '(' nop nop '9' '(' nop nop O > 011 '0' ')' nop nop '0' ')' nop nop O > 012 '-' '_' us us '-' '_' us us O > 013 '=' '+' nop nop '=' '+' nop nop O > 014 bs bs del del bs bs del del O > 015 ht btab nop nop ht btab nop nop O > 016 'q' 'Q' dc1 dc1 'q' 'Q' dc1 dc1 C > 017 'w' 'W' etb etb 'w' 'W' etb etb C > 018 'e' 'E' enq enq 'e' 'E' enq enq C > 019 'r' 'R' dc2 dc2 'r' 'R' dc2 dc2 C > 020 't' 'T' dc4 dc4 't' 'T' dc4 dc4 C > 021 'y' 'Y' em em 'y' 'Y' em em C > 022 'u' 'U' nak nak 'u' 'U' nak nak C > 023 'i' 'I' ht ht 'i' 'I' ht ht C > 024 'o' 'O' si si 'o' 'O' si si C > 025 'p' 'P' dle dle 'p' 'P' dle dle C > > The scan code (which in decimal, not octal, despite the leading 0) > represents the key. The next column describes the character generated > by the key alone. The column after that describes the character > generated with the key and the shift key. The column after that > describes the character generated with the key and the control key. > The column after that describes the character generated with the key > and the control and shift keys, and so on. The last column specifies > whether the CapsLock key applies to this character or not. > > To change this, just change the characters which are generated by the > key. For example, key 21 is 'y' in the USA, but 'z' in Germany. The > German keymap contains: > > 021 'z' 'Z' sub sub 'z' 'Z' sub sub C > > Note that the control characters have changed too: 'sub' is the ASCII > SUB control character, ^Z. If you leave this as dc4, you'll have the > bizarre situation where the key generates 'z' by itself, but ^Y with > the control key. > > > Also how can I submit the product to FreeBSD group so that it can be > > included in future releases? > > Send me the keymap when it's ready, and I'll commit it. > > Greg > -- > When replying to this message, please copy the original recipients. > For more information, see http://www.lemis.com/questions.html > Finger grog@lemis.com for PGP public key > See complete headers for address and phone numbers > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message