Mercurial > emacs
comparison lisp/international/codepage.el @ 23952:4ef8ec98dd43
(cp-make-coding-systems-for-codepage): Doc fix.
(cp-coding-system-for-codepage-1): Likewise.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Tue, 29 Dec 1998 11:42:26 +0000 |
parents | efcf2fcda617 |
children | d026025237b5 |
comparison
equal
deleted
inserted
replaced
23951:ef1cba882819 | 23952:4ef8ec98dd43 |
---|---|
51 encoding to Emacs multibyte characters. | 51 encoding to Emacs multibyte characters. |
52 ENCODER is a translation table for encoding Emacs multibyte characters into | 52 ENCODER is a translation table for encoding Emacs multibyte characters into |
53 external DOS codepage codes. | 53 external DOS codepage codes. |
54 | 54 |
55 Note that the coding systems created by this function support automatic | 55 Note that the coding systems created by this function support automatic |
56 detection of the EOL format." | 56 detection of the EOL format. However, the decoders and encoders created |
57 for these coding systems only support DOS and Unix style EOLs (the -mac | |
58 variety is actually just an alias for the -unix variety)." | |
57 (save-match-data | 59 (save-match-data |
58 (let* ((coding-name (symbol-name coding)) | 60 (let* ((coding-name (symbol-name coding)) |
59 (ccl-decoder-dos | 61 (ccl-decoder-dos |
60 (ccl-compile | 62 (ccl-compile |
61 `(4 (loop (read r1) | 63 `(4 (loop (read r1) |
407 (setplist 'cp775-decode-table | 409 (setplist 'cp775-decode-table |
408 '(charset latin-iso8859-4 language "Latin-4" offset 160)) | 410 '(charset latin-iso8859-4 language "Latin-4" offset 160)) |
409 | 411 |
410 ;;;###autoload | 412 ;;;###autoload |
411 (defun cp-make-coding-systems-for-codepage (codepage iso-name offset) | 413 (defun cp-make-coding-systems-for-codepage (codepage iso-name offset) |
412 "Create 2 coding systems to convert IBM CODEPAGE into charset ISO-NAME | 414 "Create a coding system to convert IBM CODEPAGE into charset ISO-NAME |
413 whose first character is at offset OFFSET from the beginning of 8-bit | 415 whose first character is at offset OFFSET from the beginning of 8-bit |
414 ASCII table. | 416 ASCII table. |
415 | 417 |
416 The two coding systems are identical except for the EOL conversion: one | 418 The created coding system has the usual 3 subsidiary systems: for Unix-, |
417 of them decodes DOS-style EOLs, the other assumes Unix style and doesn't | 419 DOS- and Mac-style EOL conversion. However, unlike built-in coding |
418 perform any EOL conversions." | 420 systems, the Mac-style EOL conversion is currently not supported by the |
421 decoder and encoder created by this function." | |
419 (let* ((decode-table (intern (format "%s-decode-table" codepage))) | 422 (let* ((decode-table (intern (format "%s-decode-table" codepage))) |
420 (nonascii-table | 423 (nonascii-table |
421 (intern (format "%s-nonascii-translation-table" codepage))) | 424 (intern (format "%s-nonascii-translation-table" codepage))) |
422 (decode-translation | 425 (decode-translation |
423 (intern (format "%s-decode-translation-table" codepage))) | 426 (intern (format "%s-decode-translation-table" codepage))) |