diff options
| author | Eli Zaretskii | 2017-12-26 22:43:32 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-12-26 22:43:32 +0200 |
| commit | 2ebc8dc3b6a46a0dff928dd43a2530e9fdb35b20 (patch) | |
| tree | 38b2daaf8e64732659696f61dda13fdf5da34642 | |
| parent | e4a881b5cf50bd7e91413ce885a68cad1cad4097 (diff) | |
| download | emacs-2ebc8dc3b6a46a0dff928dd43a2530e9fdb35b20.tar.gz emacs-2ebc8dc3b6a46a0dff928dd43a2530e9fdb35b20.zip | |
Fix curved quotes in printed manual
* doc/emacs/text.texi (Quotation Marks): Fix curved quote
characters in the printed version of the manual.
| -rw-r--r-- | doc/emacs/text.texi | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/doc/emacs/text.texi b/doc/emacs/text.texi index 948abc3a960..1f53992f10b 100644 --- a/doc/emacs/text.texi +++ b/doc/emacs/text.texi | |||
| @@ -424,22 +424,31 @@ beginning of a line. | |||
| 424 | @cindex curved quotes | 424 | @cindex curved quotes |
| 425 | @cindex guillemets | 425 | @cindex guillemets |
| 426 | @findex electric-quote-mode | 426 | @findex electric-quote-mode |
| 427 | @c The funny quoting below is to make the printed version look | ||
| 428 | @c correct. FIXME. | ||
| 427 | One common way to quote is the typewriter convention, which quotes | 429 | One common way to quote is the typewriter convention, which quotes |
| 428 | using straight apostrophes @t{'like this'} or double-quotes @t{"like | 430 | using straight apostrophes @t{'like this'} or double-quotes @t{"like |
| 429 | this"}. Another common way is the curved quote convention, which uses | 431 | this"}. Another common way is the curved quote convention, which uses |
| 430 | left and right single or double quotation marks @t{‘like this’} or | 432 | left and right single or double quotation marks `@t{like this}' or |
| 431 | @t{“like this”}. In text files, typewriter quotes are simple and | 433 | ``@t{like this}''@footnote{ |
| 434 | The curved single quote characters are U+2018 LEFT SINGLE QUOTATION | ||
| 435 | MARK and U+2018 RIGHT SINGLE QUOTATION MARK; the curved double quotes | ||
| 436 | are U+201C LEFT DOUBLE QUOTATION MARK and U+201D RIGHT DOUBLE | ||
| 437 | QUOTATION MARK. On text terminals which cannot display these | ||
| 438 | characters, the Info reader might show them as the typewriter ASCII | ||
| 439 | quote characters. | ||
| 440 | }. In text files, typewriter quotes are simple and | ||
| 432 | portable; curved quotes are less ambiguous and typically look nicer. | 441 | portable; curved quotes are less ambiguous and typically look nicer. |
| 433 | 442 | ||
| 434 | @vindex electric-quote-chars | 443 | @vindex electric-quote-chars |
| 435 | Electric Quote mode makes it easier to type curved quotes. As you | 444 | Electric Quote mode makes it easier to type curved quotes. As you |
| 436 | type characters it optionally converts @t{`} to @t{‘}, @t{'} to @t{’}, | 445 | type characters it optionally converts @t{`} to ‘, @t{'} to ', |
| 437 | @t{``} to @t{“}, and @t{''} to @t{”}. It's possible to change the | 446 | @t{``} to ``, and @t{''} to ''. It's possible to change the |
| 438 | default quotes listed above, by customizing the variable | 447 | default quotes listed above, by customizing the variable |
| 439 | @code{electric-quote-chars}, a list of four characters, where the | 448 | @code{electric-quote-chars}, a list of four characters, where the |
| 440 | items correspond to the left single quote, the right single quote, the | 449 | items correspond to the left single quote, the right single quote, the |
| 441 | left double quote and the right double quote, respectively, whose | 450 | left double quote and the right double quote, respectively, whose |
| 442 | default value is @code{'(?‘ ?’ ?“ ?”)}. | 451 | default value is @code{'(?@r{`} ?@r{'} ?@r{``} ?@r{''})}. |
| 443 | 452 | ||
| 444 | @vindex electric-quote-paragraph | 453 | @vindex electric-quote-paragraph |
| 445 | @vindex electric-quote-comment | 454 | @vindex electric-quote-comment |
| @@ -460,7 +469,7 @@ To toggle it globally, type | |||
| 460 | type @kbd{C-q `} or @kbd{C-q '} instead of @kbd{`} or @kbd{'}. To | 469 | type @kbd{C-q `} or @kbd{C-q '} instead of @kbd{`} or @kbd{'}. To |
| 461 | insert a curved quote even when Electric Quote is disabled or | 470 | insert a curved quote even when Electric Quote is disabled or |
| 462 | inactive, you can type @kbd{C-x 8 [} for @t{‘}, @kbd{C-x 8 ]} for | 471 | inactive, you can type @kbd{C-x 8 [} for @t{‘}, @kbd{C-x 8 ]} for |
| 463 | @t{’}, @kbd{C-x 8 @{} for @t{“}, and @kbd{C-x 8 @}} for @t{”}. | 472 | @t{’}, @kbd{C-x 8 @{} for ``, and @kbd{C-x 8 @}} for ''. |
| 464 | @xref{Inserting Text}. Note that the value of | 473 | @xref{Inserting Text}. Note that the value of |
| 465 | @code{electric-quote-chars} does not affect these keybindings, they | 474 | @code{electric-quote-chars} does not affect these keybindings, they |
| 466 | are not keybindings of @code{electric-quote-mode} but bound in | 475 | are not keybindings of @code{electric-quote-mode} but bound in |