diff options
| author | Eli Zaretskii | 2008-09-30 19:12:17 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2008-09-30 19:12:17 +0000 |
| commit | d073c1ebc066f590dd45e807e80fef3d056b4605 (patch) | |
| tree | 624879969993cb3aeebcae4fa313ba0ed271f83c | |
| parent | f98c9a2379e6974f120d6111d3c3a95c46a38faa (diff) | |
| download | emacs-d073c1ebc066f590dd45e807e80fef3d056b4605.tar.gz emacs-d073c1ebc066f590dd45e807e80fef3d056b4605.zip | |
(MS-DOS Printing, MS-DOS and MULE): No need to create cpNNN coding systems
anymore.
(MS-DOS and MULE): Don't mention code-pages.el. Don't mention support for
unibyte mode. Don't mention line-drawing characters. Don't mention
dos-unsupported-char-glyph.
| -rw-r--r-- | doc/emacs/msdog-xtra.texi | 76 |
1 files changed, 4 insertions, 72 deletions
diff --git a/doc/emacs/msdog-xtra.texi b/doc/emacs/msdog-xtra.texi index e9f62b64847..d0ca76f0a99 100644 --- a/doc/emacs/msdog-xtra.texi +++ b/doc/emacs/msdog-xtra.texi | |||
| @@ -402,8 +402,7 @@ MULE}. When you print to such printers from Windows, you can use the | |||
| 402 | @kbd{M-x lpr-buffer}; Emacs will then convert the text to the DOS | 402 | @kbd{M-x lpr-buffer}; Emacs will then convert the text to the DOS |
| 403 | codepage that you specify. For example, @kbd{C-x RET c cp850-dos RET | 403 | codepage that you specify. For example, @kbd{C-x RET c cp850-dos RET |
| 404 | M-x lpr-region RET} will print the region while converting it to the | 404 | M-x lpr-region RET} will print the region while converting it to the |
| 405 | codepage 850 encoding. You may need to create the @code{cp@var{nnn}} | 405 | codepage 850 encoding. |
| 406 | coding system with @kbd{M-x codepage-setup}. | ||
| 407 | 406 | ||
| 408 | @vindex dos-printer | 407 | @vindex dos-printer |
| 409 | @vindex dos-ps-printer | 408 | @vindex dos-ps-printer |
| @@ -432,17 +431,12 @@ describes these aspects. | |||
| 432 | 431 | ||
| 433 | The description below is largely specific to the MS-DOS port of | 432 | The description below is largely specific to the MS-DOS port of |
| 434 | Emacs, especially where it talks about practical implications for | 433 | Emacs, especially where it talks about practical implications for |
| 435 | Emacs users. For other operating systems, see the @file{code-pages.el} | 434 | Emacs users. |
| 436 | package, which implements support for MS-DOS- and MS-Windows-specific | ||
| 437 | encodings for all platforms other than MS-DOS. | ||
| 438 | 435 | ||
| 439 | @table @kbd | 436 | @table @kbd |
| 440 | @item M-x dos-codepage-setup | 437 | @item M-x dos-codepage-setup |
| 441 | Set up Emacs display and coding systems as appropriate for the current | 438 | Set up Emacs display and coding systems as appropriate for the current |
| 442 | DOS codepage. | 439 | DOS codepage. |
| 443 | |||
| 444 | @item M-x codepage-setup | ||
| 445 | Create a coding system for a certain DOS codepage. | ||
| 446 | @end table | 440 | @end table |
| 447 | 441 | ||
| 448 | @cindex codepage, MS-DOS | 442 | @cindex codepage, MS-DOS |
| @@ -467,21 +461,6 @@ without rebooting, we describe here how a stock MS-DOS system | |||
| 467 | behaves.}. Much the same limitation applies when you run DOS | 461 | behaves.}. Much the same limitation applies when you run DOS |
| 468 | executables on other systems such as MS-Windows. | 462 | executables on other systems such as MS-Windows. |
| 469 | 463 | ||
| 470 | @cindex unibyte operation @r{(MS-DOS)} | ||
| 471 | If you invoke Emacs on MS-DOS with the @samp{--unibyte} option | ||
| 472 | @iftex | ||
| 473 | (@pxref{Initial Options,,,emacs, the Emacs Manual}), | ||
| 474 | @end iftex | ||
| 475 | @ifnottex | ||
| 476 | (@pxref{Initial Options}), | ||
| 477 | @end ifnottex | ||
| 478 | Emacs does not perform any conversion of non-@acronym{ASCII} | ||
| 479 | characters. Instead, it reads and writes any non-@acronym{ASCII} | ||
| 480 | characters verbatim, and sends their 8-bit codes to the display | ||
| 481 | verbatim. Thus, unibyte Emacs on MS-DOS supports the current | ||
| 482 | codepage, whatever it may be, but cannot even represent any other | ||
| 483 | characters. | ||
| 484 | |||
| 485 | @vindex dos-codepage | 464 | @vindex dos-codepage |
| 486 | For multibyte operation on MS-DOS, Emacs needs to know which | 465 | For multibyte operation on MS-DOS, Emacs needs to know which |
| 487 | characters the chosen DOS codepage can display. So it queries the | 466 | characters the chosen DOS codepage can display. So it queries the |
| @@ -505,7 +484,7 @@ The special features described in the rest of this section mostly | |||
| 505 | pertain to codepages that encode ISO 8859 character sets. | 484 | pertain to codepages that encode ISO 8859 character sets. |
| 506 | 485 | ||
| 507 | For the codepages which correspond to one of the ISO character sets, | 486 | For the codepages which correspond to one of the ISO character sets, |
| 508 | Emacs knows the character set name based on the codepage number. Emacs | 487 | Emacs knows the character set based on the codepage number. Emacs |
| 509 | automatically creates a coding system to support reading and writing | 488 | automatically creates a coding system to support reading and writing |
| 510 | files that use the current codepage, and uses this coding system by | 489 | files that use the current codepage, and uses this coding system by |
| 511 | default. The name of this coding system is @code{cp@var{nnn}}, where | 490 | default. The name of this coding system is @code{cp@var{nnn}}, where |
| @@ -554,60 +533,13 @@ knows the language.) Even though the character may occupy several | |||
| 554 | columns on the screen, it is really still just a single character, and | 533 | columns on the screen, it is really still just a single character, and |
| 555 | all Emacs commands treat it as one. | 534 | all Emacs commands treat it as one. |
| 556 | 535 | ||
| 557 | @cindex IBM graphics characters (MS-DOS) | ||
| 558 | @cindex box-drawing characters (MS-DOS) | ||
| 559 | @cindex line-drawing characters (MS-DOS) | ||
| 560 | Not all characters in DOS codepages correspond to ISO 8859 | ||
| 561 | characters---some are used for other purposes, such as box-drawing | ||
| 562 | characters and other graphics. Emacs maps these characters to two | ||
| 563 | special character sets called @code{eight-bit-control} and | ||
| 564 | @code{eight-bit-graphic}, and displays them as their IBM glyphs. | ||
| 565 | However, you should be aware that other systems might display these | ||
| 566 | characters differently, so you should avoid them in text that might be | ||
| 567 | copied to a different operating system, or even to another DOS machine | ||
| 568 | that uses a different codepage. | ||
| 569 | |||
| 570 | @vindex dos-unsupported-character-glyph | ||
| 571 | Emacs supports many other characters sets aside from ISO 8859, but it | ||
| 572 | cannot display them on MS-DOS. So if one of these multibyte characters | ||
| 573 | appears in a buffer, Emacs on MS-DOS displays them as specified by the | ||
| 574 | @code{dos-unsupported-character-glyph} variable; by default, this glyph | ||
| 575 | is an empty triangle. Use the @kbd{C-u C-x =} command to display the | ||
| 576 | actual code and character set of such characters. | ||
| 577 | @iftex | ||
| 578 | @xref{Position Info,,,emacs, the Emacs Manual}. | ||
| 579 | @end iftex | ||
| 580 | @ifnottex | ||
| 581 | @xref{Position Info}. | ||
| 582 | @end ifnottex | ||
| 583 | |||
| 584 | @findex codepage-setup | ||
| 585 | By default, Emacs defines a coding system to support the current | ||
| 586 | codepage. To define a coding system for some other codepage (e.g., to | ||
| 587 | visit a file written on a DOS machine in another country), use the | ||
| 588 | @kbd{M-x codepage-setup} command. It prompts for the 3-digit code of | ||
| 589 | the codepage, with completion, then creates the coding system for the | ||
| 590 | specified codepage. You can then use the new coding system to read and | ||
| 591 | write files, but you must specify it explicitly for the file command | ||
| 592 | when you want to use it | ||
| 593 | @iftex | ||
| 594 | (@pxref{Text Coding,,,emacs, the Emacs Manual}). | ||
| 595 | @end iftex | ||
| 596 | @ifnottex | ||
| 597 | (@pxref{Text Coding}). | ||
| 598 | @end ifnottex | ||
| 599 | |||
| 600 | These coding systems are also useful for visiting a file encoded using | ||
| 601 | a DOS codepage, using Emacs running on some other operating system. | ||
| 602 | |||
| 603 | @cindex MS-Windows codepages | 536 | @cindex MS-Windows codepages |
| 604 | MS-Windows provides its own codepages, which are different from the | 537 | MS-Windows provides its own codepages, which are different from the |
| 605 | DOS codepages for the same locale. For example, DOS codepage 850 | 538 | DOS codepages for the same locale. For example, DOS codepage 850 |
| 606 | supports the same character set as Windows codepage 1252; DOS codepage | 539 | supports the same character set as Windows codepage 1252; DOS codepage |
| 607 | 855 supports the same character set as Windows codepage 1251, etc. | 540 | 855 supports the same character set as Windows codepage 1251, etc. |
| 608 | The MS-Windows version of Emacs uses the current codepage for display | 541 | The MS-Windows version of Emacs uses the current codepage for display |
| 609 | when invoked with the @samp{-nw} option. Support for codepages in the | 542 | when invoked with the @samp{-nw} option. |
| 610 | Windows port of Emacs is part of the @file{code-pages.el} package. | ||
| 611 | 543 | ||
| 612 | @node MS-DOS Processes | 544 | @node MS-DOS Processes |
| 613 | @subsection Subprocesses on MS-DOS | 545 | @subsection Subprocesses on MS-DOS |