diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lispref/nonascii.texi | 2 | ||||
-rw-r--r-- | doc/lispref/objects.texi | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 9cf3b5750f..66ad9aca71 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi @@ -633,7 +633,7 @@ This function returns the value of @var{char}'s @var{propname} property. @end group @group ;; U+2163 ROMAN NUMERAL FOUR -(get-char-code-property ?\u2163 'numeric-value) +(get-char-code-property ?\N@{ROMAN NUMERAL FOUR@} 'numeric-value) @result{} 4 @end group @group diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index 324593068d..96b334d2b8 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi @@ -387,6 +387,16 @@ up to three octal digits; thus, @samp{?\101} for the character for the character @kbd{C-b}. Only characters up to octal code 777 can be specified this way. + Fourthly, you can specify characters by their name. A character +name escape sequence consists of a backslash, @samp{N@{}, the Unicode +character name, and @samp{@}}. Alternatively, you can also put the +numeric code point value between the braces, using the syntax +@samp{\N@{U+nnnn@}}, where @samp{nnnn} denotes between one and eight +hexadecimal digits. Thus, @samp{?\N@{LATIN CAPITAL LETTER A@}} and +@samp{?\N@{U+41@}} both denote the character @kbd{A}. To simplify +entering multi-line strings, you can replace spaces in the character +names by arbitrary non-empty sequence of whitespace (e.g., newlines). + These escape sequences may also be used in strings. @xref{Non-ASCII in Strings}. |