summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-08-18 16:45:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-08-18 16:45:28 +0000
commite987416cdd51085152e822531898ec6e4e28ceba (patch)
tree439041d4616b0982fc324a2874c9dfc14ff73e23 /Doc
parent21661: fix glob bug introduced in 21655 (diff)
downloadzsh-e987416cdd51085152e822531898ec6e4e28ceba.tar
zsh-e987416cdd51085152e822531898ec6e4e28ceba.tar.gz
zsh-e987416cdd51085152e822531898ec6e4e28ceba.tar.bz2
zsh-e987416cdd51085152e822531898ec6e4e28ceba.tar.lz
zsh-e987416cdd51085152e822531898ec6e4e28ceba.tar.xz
zsh-e987416cdd51085152e822531898ec6e4e28ceba.tar.zst
zsh-e987416cdd51085152e822531898ec6e4e28ceba.zip
21662: new zle widget insert-unicode-char
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo106
1 files changed, 106 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index f9297ffd6..e6a196363 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -668,6 +668,112 @@ into the command line.
example(bindkey '^Xf' insert-files)
)
+tindex(insert-unicode-char)
+item(tt(insert-unicode-char))(
+This function allows you to compose Unicode characters to be inserted
+into the command line. The command is followed by two keys (there is
+no prompt), of which the first indicates the type of accent or special
+character, and the second indicates the base character. Both input
+characters are always from the ASCII character set. For best results
+zsh should have been built with support for multibyte characters
+(configured with tt(--enable-multibyte)).
+
+The character is converted from Unicode into the local representation and
+inserted into the command line at the cursor position.
+(The conversion is done within the shell, using whatever facilities
+the C library provides.) With a numeric argument, the character and its
+code are previewed in the status line
+
+The function may be run outside zle in which case it prints the character
+(together with a newline) to standard output. Input is still read from
+keystrokes.
+
+The set of accented characters is reasonably complete up to U+0180, the
+set of special characters less so. However, it mostly gives up at that
+point. Adding new Unicode characters is easy, however. Please send any
+additions to tt(zsh-workers@sunsite.dk).
+
+The codes for the first character are as follows:
+startsitem()
+sitem(tt(`))(
+Grave accent.
+)
+sitem(tt('))(
+Acute accent.
+)
+sitem(tt(d))(
+Double acute accent (only supported on a few letters).
+)
+sitem(tt(^))(
+Circumflex.
+)
+sitem(tt(~))(
+Tilde.
+)
+sitem(tt("))(
+Diaeresis (Umlaut).
+)
+sitem(tt(o))(
+Circle over the base character.
+)
+sitem(tt(e))(
+Ligatures ending in e or E: tt(e A) gives AE, tt(e o) gives oe, etc.
+)
+sitem(tt(j))(
+Ligatures ending in j or J: ij or IJ.
+)
+sitem(tt(c))(
+Cedilla.
+)
+sitem(tt(/))(
+Stroke through the base character.
+)
+sitem(tt(-))(
+Macron. (A horizonal bar over the base character.)
+)
+sitem(tt(u))(
+Breve. (A shallow dish shape over the base character.)
+)
+sitem(tt(.))(
+Dot above the base character
+)
+sitem(tt(:))(
+A dot in the middle plane of the base character
+)
+sitem(tt(g))(
+Ogonek. (A little forward facing hook at the bottom right
+of the character. The "g" stands for "Ogonek" but another
+mnemonic is that g has a squiggle below the line.)
+)
+sitem(tt(v))(
+Caron. (A little v over the letter.)
+)