expand-iso-accents - Expand an ISO accent
iso-accents-mode - Enable/disable ISO accent expansion short-cut mode
expand-iso-accents provides a facility to enter a plain text representation of an ISO accent and then to expand it into a proper ISO accented character. For example:-
`a => small a, grave accent
^a => small a, circumflex accent
'a => small a, acute accent
"a => small a, umlaut
~a => small a, tilde
.a => small a, ring
14 => fraction, one-quater
12 => fraction, one-half
34 => fraction, three-quaters
ae => ae ligature
sz => small sz ligature, German.
+- => plus or minus (math.)
co => copyright
rg => registered trademark
tm => trade mark
oe => small oe ligature
/o => small o, slash
The expand-iso-accents can be called directly to expands the ISO abbreviated character sequence into it's ISO ASCII character equivalent. The command looks at the 2 characters to the left of the cursor and tries to find a matching abbreviation, if found the 2 characters are removed, replaced by the single ISO character.
The more typical way of using this feature is by enabling its use in the abbreviation handler which is usually bound to "esc esc ". It can be enabled by either by using the iso-accents-mode command or, for a more permanent installation, from the user-setup(3) => General => Abbrev Expansion settings.
When using the iso-accents-mode command, if a numeric argument n is given (the value is not used) then the ISO accent expansion is installed locally into the current buffer. If n is omitted then expansion is enabled/disabled globally (across all buffers).
expand-iso-accents is the macro command that This is by default bound to . If an ISO character is not located then expand-abbrev(2) is invoked to try a standard abbreviation.
iso-accents-mode and expand-iso-accents are implemented as macros in the file abbrev.emf, the repertoire of expansions may be enhanced by editing this file.
Unlike the general expand-abbrev(2) command which attempts to expand the current word, expand-iso-accents only considers the last two characters regardless of whether they are word characters or start a word. Therefore the general expand-abbrev command cannot be used to implement a similar feature.
Copyright (c) 1998-2006 JASSPA
Last Modified: 2002/10/16
Generated On: 2006/10/07