Date: Tue, 7 Dec 1999 08:55:52 +0200 (EET) From: Evren Yurtesen <yurtesen@ispro.net.tr> To: Greg Lehey <grog@lemis.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to create a keymap for iso 8859-9??? Message-ID: <Pine.BSF.4.05.9912070848280.52822-100000@finland.ispro.net.tr> In-Reply-To: <19991205175105.62529@mojave.sitaranetworks.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9912070848280.52822-100000>
