(Answer) (Category) SCO UnixWare 7/OpenUNIX 8/OpenServer 6 FAQ : (Category) User Related Information :
How do I type accented charaters in vi, Messanger, or Kedit?
Uw7/OSR6 supports compose keys and dead keys in X.

     Quickly:   In Kedit...
     ---------------------------------------------------------
          The compose key is               ^T
          Press the compose key(s)         ctrl+shift+t
          Release.
          Now Press                        c/

     Synopsis:
     ----------
          <Compose key> <character> <accent>

     Examples:   press these keys and see what they create
     --------------------------------------------------------
          ^Te'
          ^Ta*
          ^TY=
          ^Tae
          ^T??
          e^T^2 are the w00t w00t.


    I've had success with Kedit, Netscape Messanger, and in an Eterm.
    So vi is no problem.  It doesn't work in an xterm, though, nor
    does it work on a regular tty, as far as I can figure.


      Detail
      ---------
       a)  You need your locale to be en_US or similar, not C.
                /bin/locale
                scoadmin acc
b) Once your locale is set, log in and startx.
c) Boot up Netscape Navigator and bookmark the mapchan file that's used to tranlate keystrokes: file:/usr/lib/mapchan/ISO8859-1/ISO8859-1

       d)  The important section (it's big):
compose 0x14 # Compose character (^T) ' ' ' ' 0240 # NBSP '"' ' ' 0xa8 # umlaut accent '\'' ' ' 0xb4 # acute accent '+' '+' '#' # number sign 'A' 'A' '@' # commercial at '(' '(' '[' # opening bracket '/' '/' '\\' # backslash '/' '<' '\\' # backslash ')' ')' ']' # closing bracket '^' ' ' '^' # circumflex accent '>' ' ' '^' # circumflex accent '`' ' ' '`' # grave accent '(' '-' '{' # opening brace '/' '^' '|' # vertical line 'L' 'V' '|' # vertical line 'l' 'v' '|' # vertical line ')' '-' '}' # closing brace '~' ' ' '~' # tilde '-' ' ' '~' # tilde '!' '!' 0241 # inverted ! 'c' '/' 0242 # cent sign 'C' '/' 0242 # cent sign 'c' '|' 0242 # cent sign 'C' '|' 0242 # cent sign ...

         The good stuff starts down there with the inverted ! statement.
         Any line where the third field is in 0222 style notation is
         an accented character when created with the compose key and
         the first two characters.


     e)  The compose key is listed above.  Once you press it, Uw7/OSR6 knows
         the next two keystrokes are meant to compose the character and
         an accent.
Compose character: ^T But take care! That's not ctrl + t, that's ctrl + shift + t
You need to press and hold each key until they are all pressed, in the order listed, then release them all. If you accidentially get dyslexic and press shift+ctrl+t, you're out of luck.

         You can change your compose key.  To do so, change the
         line that says:
              compose 0x14   # Compose character (^T)
         to read some other hex value, and that's it.  Very tidy.

     f)  Let's make a cent sign, and an inverted exclamation.
         Open up Netscape Messanger and compose new mail.
         Click in the body area and type a few keys and spaces,
         then:
1) Press this: ^T 2) see this: nothing, cursor doesn't move 3) Press this: c 4) see this: nothing, cursor waits for 2nd character 5) Press this: / 6) see this: <A2>

              1) Press this:         ^T!!
              2) see this:           <A1>

     That's about it.


     Notes:
     -----------
            In Windows, you compose the cent sign by engaging your NUMLOCK
            key, then _holding down_ the ALT key while pressing 0162 on the
            keypad:       ALT 0162
            When you relase the ALT key, the accented character will appear.
Windows uses the synopsis:
<ALT> <4 digit decimal value>
where the decimal value is similar to
0064 0164 0283
Win see also: http://www.ramsch.org/martin/uni/fmi-hp/iso8859-1.html

<mschalit@pacbell.net>
gerberb@zenez.com

[Append to This Answer]
Previous: (Answer) How do I display my current working directory at a bash prompt?
Next: (Answer) How do I use ghostscript to format documents for an Epson 800?
This document is: http://www.zenez.com/cgi-bin/ou8faq/faq?file=256
[Search] [Appearance]
This is a Faq-O-Matic 2.721.