Dead key

Last updated

A dead key is a special kind of modifier key on a mechanical typewriter, or computer keyboard, that is typically used to attach a specific diacritic to a base letter. [1] The dead key does not generate a (complete) character by itself, but modifies the character generated by the key struck immediately after. Thus, a dedicated key is not needed for each possible combination of a diacritic and a letter, but rather only one dead key for each diacritic is needed, in addition to the normal base letter keys.

Contents

For example, if a keyboard mapping (such as US international) has a dead key for the circumflex, ^, the character â can be generated by first pressing ^ and then a. [2]

Usually, the diacritic itself can be generated as a free-standing character by pressing the dead key followed by space; so a caret (free-standing circumflex) can be typed by pressing ^ and then Space.

Mechanical typewriters

Spanish typewriter (QWERTY keyboard) with dead keys for acute, circumflex, diaeresis and grave accents. Idazmakina.jpg
Spanish typewriter (QWERTY keyboard) with dead keys for acute, circumflex, diaeresis and grave accents.

The dead key is mechanical in origin, and "dead" means without movement. On mechanical typebar typewriters, all characters are of equal width. As a key is pressed, a metal typebar strikes the character onto an inked ribbon, transferring ink to the paper, and a mechanism is triggered which causes the paper (inserted in a carriage ) to move forward one space. To use a single diacritic, such as the acute accent, with multiple foundation characters (such as á, é, í, ó, ú) the decision was made to create a new character, the acute accent or diacritic ´, which did not exist in typesetting as of that date. Due to a change in the mechanism, striking the key containing the accent did not advance the paper (the key was "dead" or non-spacing), meaning it could be followed by any character that was to appear under the acute accent, producing an overstruck character. This second key moved the paper carriage forward.

Note that with mechanical keyboards, the acute accent could be followed by any character, to create new combinations such as q with acute accent.

Electronic keyboards

A dead key is different from a typical modifier key (such as AltGr or Option ), in that rather than being pressed and held while another key is struck, the dead key is pressed and released before striking the key to be modified. In some computer systems, there is no indication to the user that a dead key has been struck, so the key appears dead (nothing immediately happens), but in some text-entry systems, the diacritic is displayed, along with an indication that the system is waiting for another keystroke to complete the typing sequence.

Computers,[ which? ] however, work differently. The dead key temporarily changes the mapping of the keyboard for the next keystroke, which activates a special keyboard mode rather than actually generating a modifier character. Instead of the normal letter, a precomposed variant, with the appropriate diacritic, is generated. Each combination of a diacritic and a base letter must be specified in the character set and must be supported by the font in use.

There is no precomposed character to combine the acute accent with the letter q, striking ´ and then q is likely to result in ´q, with the accent and letter as separate characters. However, in some systems, the invalid typing sequence may be discarded. (By using the combining characters available in the Unicode character set, it may be possible to generate a combination that more or less looks like a q with an acute accent (), but that technique is quite distinct from the dead key functionality. In addition, since a letter like q does not normally take accents, font makers may not include the font attributes necessary for a combining accent to be applied successfully or in an attractive way. It is necessary to test this usage on a font by font basis, since support for accenting in this way varies considerably.)

Chained dead keys

Unicode encoded over one hundred precomposed characters with two diacritics, for use in Latin script for Vietnamese and a number of other languages. For convenience, they are generated on most keyboards supporting them, by pressing the two corresponding deadkeys in any order, followed by the letter key. Therefore, these dead keys are chained, which means that the second keystroke does not trigger any insertion, the system being still awaiting another key press.

This chained dead key behavior is toggled by the dead key flag, which is the fourth argument of the DEADTRANS function (after the base character code, the diacritic code, and the composed character code). If this flag is set to its default value zero, the composed character is inserted; if it is set to one, the composed character code is handled as another diacritic code like those due to dead key presses, and occurs typically as a second argument in other dead list entries.

Chaining dead keys allows for compose key emulation by simply using the dead key feature. This may be performed either with proprietary keyboard editing software, [3] or with driver development kits. [4]

Dead keys on various keyboard layouts

A key may function as a dead key by default, and many non-English keyboard layouts in particular have dead keys directly on the keyboard. The basic US keyboard does not have any dead keys, but the US-International keyboard layout, available on Windows and the X Window System, places some dead keys directly on similar-looking punctuation marks. Keyboards sold in most of the rest of the world have an AltGr (Alternative graphic) key, which gives the ability to modify some letters directly and turns others into dead keys (depending on keyboard setting). Old computer systems, such as the MSX, often had a special key labeled dead key, which in combination with the Ctrl and Shift keys could be used to add some of the diacritics commonly needed in the Western European languages (´, `, ˆ and ¨) to vowels that were typed subsequently.

In the absence of a default dead key, even a normal printing key can temporarily be altered to function as a dead key by simultaneously holding down another modifier key (typically AltGr or Option). In Microsoft Word (and in most other text-input fields), using the Control key with a key that usually resembles the diacritic (e.g. ^ for a circumflex) acts as a dead key. [5] On the Macintosh, many keyboard layouts employ dead keys. For example, when ⌥ Option+i are first pressed simultaneously and then followed by a, the result is â. [6] On a Macintosh, pressing one of these Option-key combinations creates the accent and highlights it, then the final character appears when the key for the base character is pressed.[ citation needed ]

However, some accented Latin letters less common in the major Western European languages, such as ŵ (used in Welsh) or š (used in many Central European languages), cannot be typed with the "US" layout. For users with US keyboards, access to many more diacritics is provided by the "US International" keyboard layout. Users with UK keyboards have a similar option with UK extended layout; many other national settings are available.

In AmigaOS, dead keys are generated by pressing Alt in combination with F (acute), G (grave), H (circumflex), J (tilde) or K (trema) (e.g., the ALT-F combination followed by the a key generates á and ALT-F followed by e generates é, whereas ALT-G followed by a generates à and ALT-G followed by e generates è). [7]

See also

Related Research Articles

<span class="mw-page-title-main">QWERTY</span> Keyboard layout for Latin-script alphabets

QWERTY is a keyboard layout for Latin-script alphabets. The name comes from the order of the first six keys on the top letter row of the keyboard. The QWERTY design is based on a layout included in the Sholes and Glidden typewriter sold via E. Remington and Sons from 1874. QWERTY became popular with the success of the Remington No. 2 of 1878, and remains in ubiquitous use.

In computing, a modifier key is a special key on a computer keyboard that temporarily modifies the normal action of another key when pressed together. By themselves, modifier keys usually do nothing; that is, pressing any of the ⇧ Shift, Alt, or Ctrl keys alone does not (generally) trigger any action from the computer.

The acute accent, ◌́, is a diacritic used in many modern written languages with alphabets based on the Latin, Cyrillic, and Greek scripts. For the most commonly encountered uses of the accent in the Latin and Greek alphabets, precomposed characters are available.

The circumflex is a diacritic in the Latin and Greek scripts that is also used in the written forms of many languages and in various romanization and transcription schemes. It received its English name from Latin: circumflexus "bent around"—a translation of the Greek: περισπωμένη.

A caron is a diacritic mark commonly placed over certain letters in the orthography of some languages to indicate a change of the related letter's pronunciation.

<span class="mw-page-title-main">AZERTY</span> Keyboard layout used for French

AZERTY is a specific layout for the characters of the Latin alphabet on typewriter keys and computer keyboards. The layout takes its name from the first six letters to appear on the first row of alphabetical keys; that is,. Similar to the QWERTZ layout, it is modelled on the English QWERTY layout. It is used in France and Belgium, although each of these countries has its own national variation on the layout. Luxembourg and Switzerland use the Swiss QWERTZ keyboard. Most residents of Quebec, the mainly French-speaking province of Canada, use a QWERTY keyboard that has been adapted to the French language such as the Multilingual Standard keyboard CAN/CSA Z243.200-92 which is stipulated by the government of Quebec and the Government of Canada.

The International Alphabet of Sanskrit Transliteration (IAST) is a transliteration scheme that allows the lossless romanisation of Indic scripts as employed by Sanskrit and related Indic languages. It is based on a scheme that emerged during the 19th century from suggestions by Charles Trevelyan, William Jones, Monier Monier-Williams and other scholars, and formalised by the Transliteration Committee of the Geneva Oriental Congress, in September 1894. IAST makes it possible for the reader to read the Indic text unambiguously, exactly as if it were in the original Indic script. It is this faithfulness to the original scripts that accounts for its continuing popularity amongst scholars.

<span class="mw-page-title-main">AltGr key</span> Modifier key on some computer keyboards

AltGr is a modifier key found on many computer keyboards. It is primarily used to type special characters and symbols that are not widely used in the territory where sold, such as foreign currency symbols, typographic marks and accented letters. On a typical Windows-compatible PC keyboard, the AltGr key, when present, takes the place of the right-hand Alt key. The key at this location will operate as AltGr if a keyboard layout using AltGr is chosen in the operating system, regardless of what is engraved on the key. In macOS, the Option key has functions similar to the AltGr key.

<span class="mw-page-title-main">Alt key</span> Computer key

The Alt keyAlt on a computer keyboard is used to change (alternate) the function of other pressed keys. Thus, the Alt key is a modifier key, used in a similar fashion to the Shift key. For example, simply pressing A will type the letter 'a', but holding down the Alt key while pressing A will cause the computer to perform an Alt+A function, which varies from program to program. The international standard ISO/IEC 9995-2 calls it Alternate key. The key is located on either side of the space bar, but in non-US PC keyboard layouts, rather than a second Alt key, there is an 'Alt Gr' key to the right of the space bar. Both placements are in accordance with ISO/IEC 9995-2. With some keyboard mappings, the right Alt key can be reconfigured to function as an AltGr key although not engraved as such.

<span class="mw-page-title-main">Backspace</span> Key on a keyboard

Backspace is the keyboard key that in typewriters originally pushed the carriage one position backwards, and in modern computer systems typically moves the display cursor one position backwards, deletes the character at that position, and shifts back any text after that position by one character.

The degree symbol or degree sign, °, is a glyph or symbol that is used, among other things, to represent degrees of arc, hours, degrees of temperature or alcohol proof. The symbol consists of a small superscript circle.

<span class="mw-page-title-main">Compose key</span> Computer key to initiate glyph merger

A compose key is a key on a computer keyboard that indicates that the following keystrokes trigger the insertion of an alternate character, typically a precomposed character or a symbol.

There are two major English language computer keyboard layouts, the United States layout and the United Kingdom layout defined in BS 4822. Both are QWERTY layouts. Users in the United States do not frequently need to make use of the £ (pound) and € (euro) currency symbols, which are common needs in the United Kingdom and Ireland, although the $ symbol is also provided as standard on UK and Irish keyboards. In other countries which predominantly use English as a common working language, such as Australia, Canada, and New Zealand, the US keyboard is commonly used.

Diacritical marks of two dots¨, placed side-by-side over or under a letter, are used in a number of languages for several different purposes. The most familiar to English-language speakers are the diaeresis and the umlaut, though there are numerous others. For example, in Albanian, ë represents a schwa. Such diacritics are also sometimes used for stylistic reasons.

On personal computers with numeric keypads that use Microsoft operating systems, such as Windows, many characters that do not have a dedicated key combination on the keyboard may nevertheless be entered using the Alt code. This is done by pressing and holding the Alt key, then typing a number on the keyboard's numeric keypad that identifies the character and then releasing Alt.

<span class="mw-page-title-main">Unicode input</span> Input characters using their Unicode code points

Unicode input is the insertion of a specific Unicode character on a computer by a user; it is a common way to input characters not directly supported by a physical keyboard. Unicode characters can be produced either by selecting them from a display or by typing a certain sequence of keys on a physical keyboard. In addition, a character produced by one of these methods in one web page or document can be copied into another. In contrast to ASCII's 96 element character set, Unicode encodes hundreds of thousands of graphemes (characters) from almost all of the world's written languages and many other signs and symbols besides.

<span class="mw-page-title-main">Keyboard layout</span> Arrangement of keys on a typographic keyboard

A keyboard layout is any specific physical, visual, or functional arrangement of the keys, legends, or key-meaning associations (respectively) of a computer keyboard, mobile phone, or other computer-controlled typographic keyboard.

The German keyboard layout is a QWERTZ keyboard layout commonly used in Austria and Germany. It is based on one defined in a former edition of the German standard DIN 2137–2. The current edition DIN 2137-1:2012-06 standardizes it as the first (basic) one of three layouts, calling it "T1".

There are a number of methods to input Esperanto letters and text on a computer, e.g. when using a word processor or email. Input methods depend on a computer's operating system. Specifically the characters ĵ, ĝ, ĉ, ĥ, ŭ, ŝ can be problematic.

References

  1. "Dead Key | Definition of Dead Key by Merriam-Webster". Merriam-webster.com. Retrieved 2017-05-01.
  2. The Unicode Standard, version 8.0.0, ch.05, §12 Strategies for Handling Nonspacing Marks: Keyboard Input | https://www.unicode.org/versions/Unicode8.0.0/ch05.pdf#G1076
  3. "Chained dead keys". Kbdedit.com. Retrieved 2017-05-01.
  4. "Download Windows Driver Kit Version 7.1.0 from Official Microsoft Download Center". Microsoft.com. 2010-02-26. Retrieved 2017-05-01.
  5. "How do I get letters with accent marks in Microsoft Word?". www.computerhope.com. Retrieved 21 February 2019.
  6. "Enter characters with accent marks on Mac". Apple Support. Retrieved 2024-01-21.
  7. Commodore-Amiga, Inc. (1992). AMIGA ROM Kernel Reference Manual LIBRARIES. Addison-Wesley. pp. 823–827. ISBN   0-201-56774-1.