Jump to content

Compose key: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Severa X.org compositions available, let's call the one shown as default (which it is for en_US and most other languages as well)
m use {{key press}} for key combinations
Line 34: Line 34:
|
|
{| class="wikitable"
{| class="wikitable"
!colspan=2|this !! renders this
!this !! renders this
|-
|-
|| ' || a || á
|| {{key press|<tt>'</tt>}} {{key press|<tt>a</tt>}} || á
|-
|-
|| ' || A || Á
|| {{key press|<tt>'</tt>}} {{key press|<tt>A</tt>}} || Á
|-
|-
|| " || a || ä
|| {{key press|<tt>"</tt>}} {{key press|<tt>a</tt>}} || ä
|-
|-
|| " || A || Ä
|| {{key press|<tt>"</tt>}} {{key press|<tt>A</tt>}} || Ä
|-
|-
|| ` || a || à
|| {{key press|<tt>`</tt>}} {{key press|<tt>a</tt>}} || à
|-
|-
|| ` || A || À
|| {{key press|<tt>`</tt>}} {{key press|<tt>A</tt>}} || À
|-
|-
|| ~ || a || ã
|| {{key press|<tt>~</tt>}} {{key press|<tt>a</tt>}} || ã
|-
|-
|| ~ || A || Ã
|| {{key press|<tt>~</tt>}} {{key press|<tt>A</tt>}} || Ã
|-
|-
|| ^ || a || â
|| {{key press|<tt>^</tt>}} {{key press|<tt>a</tt>}} || â
|-
|-
|| ^ || A || Â
|| {{key press|<tt>^</tt>}} {{key press|<tt>A</tt>}} || Â
|-
|-
|| c || a || ǎ
|| {{key press|<tt>c</tt>}} {{key press|<tt>a</tt>}} || ǎ
|-
|-
|| c || A || Ǎ
|| {{key press|<tt>c</tt>}} {{key press|<tt>A</tt>}} || Ǎ
|-
|-
|| o || a || å
|| {{key press|<tt>o</tt>}} {{key press|<tt>a</tt>}} || å
|-
|-
|| o || A || Å
|| {{key press|<tt>o</tt>}} {{key press|<tt>A</tt>}} || Å
|-
|-
|| _ || a || ā
|| {{key press|<tt>_</tt>}} {{key press|<tt>a</tt>}} || ā
|-
|-
|| _ || A || Ā
|| {{key press|<tt>_</tt>}} {{key press|<tt>A</tt>}} || Ā
|-
|-
|| ; || a || ą
|| {{key press|<tt>;</tt>}} {{key press|<tt>a</tt>}} || ą
|-
|-
|| ; || A || Ą
|| {{key press|<tt>;</tt>}} {{key press|<tt>A</tt>}} || Ą
|-
|-
|| b || a || ă
|| {{key press|<tt>b</tt>}} {{key press|<tt>a</tt>}} || ă
|-
|-
|| b || A || Ă
|| {{key press|<tt>b</tt>}} {{key press|<tt>A</tt>}} || Ă
|-
|-
| colspan="3" | ''Vowels support<br>most of the above''
| colspan="2" | ''Vowels support<br>most of the above''
|-
|-
|}
|}
|
|
{| class="wikitable"
{| class="wikitable"
!colspan=2|this !! renders this
!this !! renders this
|-
|-
||, || c || [[Cedilla|ç]]
|| {{key press|<tt>,</tt>}} {{key press|<tt>c</tt>}} || [[Cedilla|ç]]
|-
|-
||, || C || [[Cedilla|Ç]]
|| {{key press|<tt>,</tt>}} {{key press|<tt>C</tt>}} || [[Cedilla|Ç]]
|-
|-
|| O || R || [[Trademark|®]]
|| {{key press|<tt>O</tt>}} {{key press|<tt>R</tt>}} || [[Trademark|®]]
|-
|-
|| O || C || [[Copyright|©]]
|| {{key press|<tt>O</tt>}} {{key press|<tt>C</tt>}} || [[Copyright|©]]
|-
|-
|| t || m || [[Trademark|™]]
|| {{key press|<tt>t</tt>}} {{key press|<tt>m</tt>}} || [[Trademark|™]]
|-
|-
|| < || < || «
|| {{key press|<tt><</tt>}} {{key press|<tt><</tt>}} || «
|-
|-
|| > || > ||»
|| {{key press|<tt>></tt>}} {{key press|<tt>></tt>}} ||»
|-
|-
|| " || < || “
|| {{key press|<tt>"</tt>}} {{key press|<tt><</tt>}} || “
|-
|-
|| " || > || ”
|| {{key press|<tt>"</tt>}} {{key press|<tt>></tt>}} || ”
|-
|-
|| ' || < || ‘
|| {{key press|<tt>'</tt>}} {{key press|<tt><</tt>}} || ‘
|-
|-
|| ' || > || ’
|| {{key press|<tt>'</tt>}} {{key press|<tt>></tt>}} || ’
|-
|-
|| . || . || …
|| {{key press|<tt>.</tt>}} {{key press|<tt>.</tt>}} || …
|-
|-
|| . || ^ || ·
|| {{key press|<tt>.</tt>}} {{key press|<tt>^</tt>}} || ·
|-
|-
|| x || x || ×
|| {{key press|<tt>x</tt>}} {{key press|<tt>x</tt>}} || ×
|-
|-
|| - || : || ÷
|| {{key press|<tt>-</tt>}} {{key press|<tt>:</tt>}} || ÷
|-
|-
|| ^ || 0 || ⁰
|| {{key press|<tt>^</tt>}} {{key press|<tt>0</tt>}} || ⁰
|-
|-
|| ^ || 1 || ¹
|| {{key press|<tt>^</tt>}} {{key press|<tt>1</tt>}} || ¹
|-
|-
|| ^ || 2 || ²
|| {{key press|<tt>^</tt>}} {{key press|<tt>2</tt>}} || ²
|-
|-
|| ^ || 3 || ³
|| {{key press|<tt>^</tt>}} {{key press|<tt>3</tt>}} || ³
|-
|-
|| 1 || 2 || ½
|| {{key press|<tt>1</tt>}} {{key press|<tt>2</tt>}} || ½
|-
|-
|| 1 || 4 || ¼
|| {{key press|<tt>1</tt>}} {{key press|<tt>4</tt>}} || ¼
|-
|-
|| 3 || 4 || ¾
|| {{key press|<tt>3</tt>}} {{key press|<tt>4</tt>}} || ¾
|-
|-
|}
|}
|
|
{| class="wikitable"
{| class="wikitable"
!colspan=2|this !! renders this
!this !! renders this
|-
|-
|| s || s || ß
|| {{key press|<tt>s</tt>}} {{key press|<tt>s</tt>}} || ß
|-
|-
|| s || o || [[Section sign|§]]
|| {{key press|<tt>s</tt>}} {{key press|<tt>o</tt>}} || [[Section sign|§]]
|-
|-
|| / || o || ø
|| {{key press|<tt>/</tt>}} {{key press|<tt>o</tt>}} || ø
|-
|-
|| / || O || Ø
|| {{key press|<tt>/</tt>}} {{key press|<tt>O</tt>}} || Ø
|-
|-
|| - || d || [[d with stroke|đ]]
|| {{key press|<tt>-</tt>}} {{key press|<tt>d</tt>}} || [[d with stroke|đ]]
|-
|-
|| - || D || [[d with stroke|Đ]]
|| {{key press|<tt>-</tt>}} {{key press|<tt>D</tt>}} || [[d with stroke|Đ]]
|-
|-
|| d || h || [[Eth|ð]]
|| {{key press|<tt>d</tt>}} {{key press|<tt>h</tt>}} || [[Eth|ð]]
|-
|-
|| D || H || [[Eth|Ð]]
|| {{key press|<tt>D</tt>}} {{key press|<tt>H</tt>}} || [[Eth|Ð]]
|-
|-
|| ~ || n || [[ñ]]
|| {{key press|<tt>~</tt>}} {{key press|<tt>n</tt>}} || [[ñ]]
|-
|-
|| t || h || [[Thorn (letter)|þ]]
|| {{key press|<tt>t</tt>}} {{key press|<tt>h</tt>}} || [[Thorn (letter)|þ]]
|-
|-
|| T || H || [[Thorn (letter)|Þ]]
|| {{key press|<tt>T</tt>}} {{key press|<tt>H</tt>}} || [[Thorn (letter)|Þ]]
|-
|-
|| a || e || [[æ]]
|| {{key press|<tt>a</tt>}} {{key press|<tt>e</tt>}} || [[æ]]
|-
|-
|| A || E || [[Æ]]
|| {{key press|<tt>A</tt>}} {{key press|<tt>E</tt>}} || [[Æ]]
|-
|-
|| ! || ! || [[¡]]
|| {{key press|<tt>!</tt>}} {{key press|<tt>!</tt>}} || [[¡]]
|-
|-
|| ? || ? || [[¿]]
|| {{key press|<tt>?</tt>}} {{key press|<tt>?</tt>}} || [[¿]]
|-
|-
|| - || L || [[Pound sign|£]]
|| {{key press|<tt>-</tt>}} {{key press|<tt>L</tt>}} || [[Pound sign|£]]
|-
|-
|| = || E || [[Euro sign|€]]
|| {{key press|<tt>&#61;</tt>}} {{key press|<tt>E</tt>}} || [[Euro sign|€]]
|-
|-
|| = || Y || [[¥]]
|| {{key press|<tt>&#61;</tt>}} {{key press|<tt>Y</tt>}} || [[¥]]
|-
|-
|| / || C || [[Colón (currency)|₡]]
|| {{key press|<tt>/</tt>}} {{key press|<tt>C</tt>}} || [[Colón (currency)|₡]]
|-
|-
|| | || c || [[Cent (currency)|¢]]
|| {{key press|<tt>&#124;</tt>}} {{key press|<tt>c</tt>}} || [[Cent (currency)|¢]]
|-
|-
|| o || x || ¤
|| {{key press|<tt>o</tt>}} {{key press|<tt>x</tt>}} || ¤
|-
|-
|| / || / || \
|| {{key press|<tt>/</tt>}} {{key press|<tt>/</tt>}} || \
|-
|-
|| o || o || °
|| {{key press|<tt>o</tt>}} {{key press|<tt>o</tt>}} || °
|}
|}
|}
|}

Revision as of 00:30, 5 November 2014

XFCE keyboard layout settings window, featuring a Compose key option.

A compose key, available on some computer keyboards, is a special kind of modifier key designated to signal the software to interpret the following (usually two) keystrokes as a combination in order to produce a character not found directly on the keyboard. For example, striking Compose followed by ~ and then n can produce character ñ, whereas striking Compose followed by O and then C can produce the symbol ©, the copyright symbol.

The compose key is different from a typical modifier key (such as AltGr) in that, rather than being pressed and held while another key is struck, it is pressed and released before striking the keys to be modified.

Though it can be considered a type of dead key, the compose key differs in that a normal dead key produces part of the composite, typically a diacritic, to combine with a following letter. Since each different first part requires a different dead key, this limits the number of combinations. The first part of the composite from a compose key can be any key on the keyboard, vastly increasing the number of possible combinations, and allowing some easily memorized sequences such as 1,2 for ½. However it has the cost of using one more keystroke than a dead key.

Occurrence on keyboards

The compose key can be found on the LK201 family of keyboards from Digital Equipment Corporation and its successors. The key can also be found on keyboards from Sun Microsystems.

Microsoft Windows and OS X do not support a compose key by default, therefore the key does not exist on most keyboards designed for modern PC hardware.[citation needed] When software supports compose key behavior, some other key is used. Common examples are the right-hand Windows key, the AltGr key, ⇧ Shift+AltGr,[1] or the right-hand Ctrl key.

ISO/IEC 9995-7 designed a graphical symbol for this key, in ISO/IEC 9995-7 as symbol 15 “Compose Character”, and in ISO 7000 “Graphical symbols for use on equipment” as symbol ISO-7000-2021. This symbol is encoded in Unicode as U+2384 composition symbol (⎄) since version 3.0.0 of the standard.[2]

The compose key and compose LED on Sun Type 5 and 6 keyboards is the second-rightmost key on the bottom row.
The compose key on a DEC LK201 keyboard is the leftmost key on the bottom row.
ISO keyboard symbol for “Compose Character”

Software support

Compose keys are most popular on Linux and other systems using the X Window System.[3] On modern Xorg the default setup maps first pressing ⇧ Shift and then pressing AltGr while ⇧ Shift is still depressed to the compose key, but pressing AltGr first followed by ⇧ Shift to the fourth "keyboard level" modifier[4] (the first three levels correspond to holding no modifiers, ⇧ Shift, and AltGr respectively.) So for example the copyright symbol, © can be typed using the compose key as ⇧ Shift+AltGr, o, c, or using the level four modifier as AltGr+⇧ Shift+c. As this is rather inconvenient (especially if the keyboard does not have AltGr) it is common to select a keyboard layout making another key such as the right-hand Ctrl or Win into the compose key.

On Microsoft Windows a few programs such as PuTTY provide compose key support. There are also a number of open source utilities (such as AllChars or Compose-Keys) and installable keyboard layouts (such as this one) available that emulate the compose key using a selectable modifier key like Control or AltGr.

Common compose combinations

The table shown below contains the current default common compositions for X.Org 7. Other compositions may work, based on the de facto Sun/DEC/Falco standard. Particularly for modern systems which support customizable compose sequences and Unicode, the table would be far from complete.[5]

this renders this
' a á
' A Á
" a ä
" A Ä
` a à
` A À
~ a ã
~ A Ã
^ a â
^ A Â
c a ǎ
c A Ǎ
o a å
o A Å
_ a ā
_ A Ā
; a ą
; A Ą
b a ă
b A Ă
Vowels support
most of the above
this renders this
, c ç
, C Ç
O R ®
O C ©
t m
< < «
> > »
" <
" >
' <
' >
. .
. ^ ·
x x ×
- : ÷
^ 0
^ 1 ¹
^ 2 ²
^ 3 ³
1 2 ½
1 4 ¼
3 4 ¾
this renders this
s s ß
s o §
/ o ø
/ O Ø
- d đ
- D Đ
d h ð
D H Ð
~ n ñ
t h þ
T H Þ
a e æ
A E Æ
! ! ¡
? ? ¿
- L £
= E
= Y ¥
/ C
| c ¢
o x ¤
/ / \
o o °

See also

References

  1. ^ "Compose Key". Ubuntu. Retrieved 10 July 2012.
  2. ^ Unicode chart 2300-23FF
  3. ^ van Geloven, Sander (2012). Compose Key Sequence Reference Guide 2012. Utrecht, the Netherlands: Hellebaard. ISBN 1-4681-4110-4.
  4. ^ Ubuntu Help: Compose Key: Third and fourth level choosers
  5. ^ Complete list of permissible sequences