aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2019-06-05 19:52:00 +0300
committerEli Zaretskii2019-06-05 19:52:00 +0300
commitf68b33f50299339a36da29cd1913d19fd5f288e0 (patch)
tree8c5d92a7de588a712eede5fb05c9d5e00b43c187
parentff7ec6ff3322ed38e35342e960b6af5a36c9e51d (diff)
downloademacs-f68b33f50299339a36da29cd1913d19fd5f288e0.tar.gz
emacs-f68b33f50299339a36da29cd1913d19fd5f288e0.zip
Fix styling of Unicode codepoints in manuals
* doc/lispref/nonascii.texi (Character Properties): * doc/lispref/display.texi (Glyphless Chars) (Bidirectional Display): * doc/emacs/search.texi (Lax Search): * doc/emacs/text.texi (Quotation Marks): * doc/emacs/basic.texi (Inserting Text): Canonicalize the style of "U+NNNN CHARACTER NAME". (Bug#35885)
-rw-r--r--doc/emacs/basic.texi2
-rw-r--r--doc/emacs/search.texi13
-rw-r--r--doc/emacs/text.texi8
-rw-r--r--doc/lispref/display.texi10
-rw-r--r--doc/lispref/nonascii.texi23
5 files changed, 29 insertions, 27 deletions
diff --git a/doc/emacs/basic.texi b/doc/emacs/basic.texi
index 7144490cda7..d0bd46c35fc 100644
--- a/doc/emacs/basic.texi
+++ b/doc/emacs/basic.texi
@@ -113,7 +113,7 @@ just like digits. Case is ignored.
113@cindex curved quotes, inserting 113@cindex curved quotes, inserting
114 A few common Unicode characters can be inserted via a command 114 A few common Unicode characters can be inserted via a command
115starting with @kbd{C-x 8}. For example, @kbd{C-x 8 [} inserts @t{‘} 115starting with @kbd{C-x 8}. For example, @kbd{C-x 8 [} inserts @t{‘}
116which is Unicode code-point @code{U+2018} LEFT SINGLE QUOTATION MARK, 116which is Unicode code-point U+2018 @sc{left single quotation mark},
117sometimes called a left single ``curved quote'' or ``curly quote''. 117sometimes called a left single ``curved quote'' or ``curly quote''.
118Similarly, @kbd{C-x 8 ]}, @kbd{C-x 8 @{} and @kbd{C-x 8 @}} insert the 118Similarly, @kbd{C-x 8 ]}, @kbd{C-x 8 @{} and @kbd{C-x 8 @}} insert the
119curved quotes @t{’}, @t{“} and @t{”}, respectively. Also, a working 119curved quotes @t{’}, @t{“} and @t{”}, respectively. Also, a working
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi
index 004280cc64b..0da037330d4 100644
--- a/doc/emacs/search.texi
+++ b/doc/emacs/search.texi
@@ -1310,14 +1310,14 @@ of its accented cousins like @code{@"a} and @code{@'a}, i.e., the
1310match disregards the diacritics that distinguish these 1310match disregards the diacritics that distinguish these
1311variants. In addition, @code{a} matches other characters that 1311variants. In addition, @code{a} matches other characters that
1312resemble it, or have it as part of their graphical representation, 1312resemble it, or have it as part of their graphical representation,
1313such as @sc{u+249c parenthesized latin small letter a} and @sc{u+2100 1313such as U+249C @sc{parenthesized latin small letter a} and U+2100
1314account of} (which looks like a small @code{a} over @code{c}). 1314@sc{account of} (which looks like a small @code{a} over @code{c}).
1315Similarly, the @acronym{ASCII} double-quote character @code{"} matches 1315Similarly, the @acronym{ASCII} double-quote character @code{"} matches
1316all the other variants of double quotes defined by the Unicode 1316all the other variants of double quotes defined by the Unicode
1317standard. Finally, character folding can make a sequence of one or 1317standard. Finally, character folding can make a sequence of one or
1318more characters match another sequence of a different length: for 1318more characters match another sequence of a different length: for
1319example, the sequence of two characters @code{ff} matches @sc{u+fb00 1319example, the sequence of two characters @code{ff} matches U+FB00
1320latin small ligature ff}. Character sequences that are not identical, 1320@sc{latin small ligature ff}. Character sequences that are not identical,
1321but match under character folding are known as @dfn{equivalent 1321but match under character folding are known as @dfn{equivalent
1322character sequences}. 1322character sequences}.
1323 1323
@@ -1642,8 +1642,9 @@ replacement has already been made, @key{DEL} and @key{SPC} are
1642equivalent in this situation; both move to the next occurrence. 1642equivalent in this situation; both move to the next occurrence.
1643 1643
1644You can type @kbd{C-r} at this point (see below) to alter the replaced 1644You can type @kbd{C-r} at this point (see below) to alter the replaced
1645text. You can also type @kbd{C-x u} to undo the replacement; this exits 1645text. You can also undo the replacement with the @code{undo} command
1646the @code{query-replace}, so if you want to do further replacement you 1646(e.g., type @kbd{C-x u}; @pxref{Undo}); this exits the
1647@code{query-replace}, so if you want to do further replacement you
1647must use @kbd{C-x @key{ESC} @key{ESC} @key{RET}} to restart 1648must use @kbd{C-x @key{ESC} @key{ESC} @key{RET}} to restart
1648(@pxref{Repetition}). 1649(@pxref{Repetition}).
1649 1650
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi
index db55feeb665..bd8a1f59acc 100644
--- a/doc/emacs/text.texi
+++ b/doc/emacs/text.texi
@@ -428,10 +428,10 @@ using straight apostrophes @t{'like this'} or double-quotes @t{"like
428this"}. Another common way is the curved quote convention, which uses 428this"}. Another common way is the curved quote convention, which uses
429left and right single or double quotation marks `@t{like this}' or 429left and right single or double quotation marks `@t{like this}' or
430``@t{like this}''@footnote{ 430``@t{like this}''@footnote{
431The curved single quote characters are U+2018 LEFT SINGLE QUOTATION 431The curved single quote characters are U+2018 @sc{left single quotation
432MARK and U+2018 RIGHT SINGLE QUOTATION MARK; the curved double quotes 432mark} and U+2018 @sc{right single quotation mark}; the curved double quotes
433are U+201C LEFT DOUBLE QUOTATION MARK and U+201D RIGHT DOUBLE 433are U+201C @sc{left double quotation mark} and U+201D @sc{right double
434QUOTATION MARK. On text terminals which cannot display these 434quotation mark}. On text terminals which cannot display these
435characters, the Info reader might show them as the typewriter ASCII 435characters, the Info reader might show them as the typewriter ASCII
436quote characters. 436quote characters.
437}. In text files, typewriter quotes are simple and 437}. In text files, typewriter quotes are simple and
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index b07999432ce..2ff73b08bdb 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -7269,9 +7269,9 @@ Non-@acronym{ASCII}, non-printing characters @code{U+0080} to
7269@samp{\230}). 7269@samp{\230}).
7270 7270
7271@item format-control 7271@item format-control
7272Characters of Unicode General Category [Cf], such as @samp{U+200E} 7272Characters of Unicode General Category [Cf], such as U+200E
7273(Left-to-Right Mark), but excluding characters that have graphic 7273@sc{left-to-right mark}, but excluding characters that have graphic
7274images, such as @samp{U+00AD} (Soft Hyphen). 7274images, such as U+00AD @sc{soft hyphen}.
7275 7275
7276@item no-font 7276@item no-font
7277Characters for which there is no suitable font, or which cannot be 7277Characters for which there is no suitable font, or which cannot be
@@ -7654,12 +7654,12 @@ problem:
7654 7654
7655@itemize @minus 7655@itemize @minus
7656@item 7656@item
7657Append the special character @code{U+200E}, LEFT-TO-RIGHT MARK, or 7657Append the special character U+200E @sc{left-to-right mark}, or
7658@acronym{LRM}, to the end of each field that may have bidirectional 7658@acronym{LRM}, to the end of each field that may have bidirectional
7659content, or prepend it to the beginning of the following field. The 7659content, or prepend it to the beginning of the following field. The
7660function @code{bidi-string-mark-left-to-right}, described below, comes 7660function @code{bidi-string-mark-left-to-right}, described below, comes
7661in handy for this purpose. (In a right-to-left paragraph, use 7661in handy for this purpose. (In a right-to-left paragraph, use
7662@code{U+200F}, RIGHT-TO-LEFT MARK, or @acronym{RLM}, instead.) This 7662U+200F @sc{right-to-left mark}, or @acronym{RLM}, instead.) This
7663is one of the solutions recommended by the UBA. 7663is one of the solutions recommended by the UBA.
7664 7664
7665@item 7665@item
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi
index d2eb2cb0728..ca99cbfcde3 100644
--- a/doc/lispref/nonascii.texi
+++ b/doc/lispref/nonascii.texi
@@ -550,8 +550,8 @@ characters whose @code{Numeric_Type} is @samp{Numeric}. The value of
550this property is a number. Examples of characters that have this 550this property is a number. Examples of characters that have this
551property include fractions, subscripts, superscripts, Roman numerals, 551property include fractions, subscripts, superscripts, Roman numerals,
552currency numerators, and encircled numbers. For example, the value of 552currency numerators, and encircled numbers. For example, the value of
553this property for the character @code{U+2155} (@sc{vulgar fraction one 553this property for the character U+2155 @sc{vulgar fraction one
554fifth}) is @code{0.2}. For characters that don't have any numeric 554fifth} is @code{0.2}. For characters that don't have any numeric
555value, and for unassigned codepoints, the value is @code{nil}, which 555value, and for unassigned codepoints, the value is @code{nil}, which
556means @acronym{NaN}. 556means @acronym{NaN}.
557 557
@@ -622,23 +622,24 @@ is @code{nil}, which means the character itself.
622@item special-uppercase 622@item special-uppercase
623Corresponds to Unicode language- and context-independent special upper-casing 623Corresponds to Unicode language- and context-independent special upper-casing
624rules. The value of this property is a string (which may be empty). For 624rules. The value of this property is a string (which may be empty). For
625example mapping for @code{U+00DF} (@sc{latin small letter sharp s}) is 625example mapping for U+00DF @sc{latin small letter sharp s} is
626@code{"SS"}. For characters with no special mapping, the value is @code{nil} 626@code{"SS"}. For characters with no special mapping, the value is @code{nil}
627which means @code{uppercase} property needs to be consulted instead. 627which means @code{uppercase} property needs to be consulted instead.
628 628
629@item special-lowercase 629@item special-lowercase
630Corresponds to Unicode language- and context-independent special lower-casing 630Corresponds to Unicode language- and context-independent special
631rules. The value of this property is a string (which may be empty). For 631lower-casing rules. The value of this property is a string (which may
632example mapping for @code{U+0130} (@sc{latin capital letter i with dot above}) 632be empty). For example mapping for U+0130 @sc{latin capital letter i
633the value is @code{"i\u0307"} (i.e. 2-character string consisting of @sc{latin 633with dot above} the value is @code{"i\u0307"} (i.e. 2-character string
634small letter i} followed by @sc{combining dot above}). For characters with no 634consisting of @sc{latin small letter i} followed by U+0307
635special mapping, the value is @code{nil} which means @code{lowercase} property 635@sc{combining dot above}). For characters with no special mapping,
636needs to be consulted instead. 636the value is @code{nil} which means @code{lowercase} property needs to
637be consulted instead.
637 638
638@item special-titlecase 639@item special-titlecase
639Corresponds to Unicode unconditional special title-casing rules. The value of 640Corresponds to Unicode unconditional special title-casing rules. The value of
640this property is a string (which may be empty). For example mapping for 641this property is a string (which may be empty). For example mapping for
641@code{U+FB01} (@sc{latin small ligature fi}) the value is @code{"Fi"}. For 642U+FB01 @sc{latin small ligature fi} the value is @code{"Fi"}. For
642characters with no special mapping, the value is @code{nil} which means 643characters with no special mapping, the value is @code{nil} which means
643@code{titlecase} property needs to be consulted instead. 644@code{titlecase} property needs to be consulted instead.
644@end table 645@end table