diff options
| author | Dave Love | 2002-09-12 17:14:25 +0000 |
|---|---|---|
| committer | Dave Love | 2002-09-12 17:14:25 +0000 |
| commit | dd6478be6ac27039a3710260e00f6db79c262aed (patch) | |
| tree | ee2edfca71de708c1d63293eac2c29a13bed6898 | |
| parent | 7fda10ab2d24cf8f630561732ea8291ffc15a7ec (diff) | |
| download | emacs-dd6478be6ac27039a3710260e00f6db79c262aed.tar.gz emacs-dd6478be6ac27039a3710260e00f6db79c262aed.zip | |
(Charset Translation): Fix description of process.
| -rw-r--r-- | man/emacs-mime.texi | 48 |
1 files changed, 29 insertions, 19 deletions
diff --git a/man/emacs-mime.texi b/man/emacs-mime.texi index 1f8d23ce470..90adeb196fd 100644 --- a/man/emacs-mime.texi +++ b/man/emacs-mime.texi | |||
| @@ -18,7 +18,7 @@ | |||
| 18 | 18 | ||
| 19 | This file documents the Emacs MIME interface functionality. | 19 | This file documents the Emacs MIME interface functionality. |
| 20 | 20 | ||
| 21 | Copyright (C) 1998,99,2000 Free Software Foundation, Inc. | 21 | Copyright (C) 1998,99,2000, 2002 Free Software Foundation, Inc. |
| 22 | 22 | ||
| 23 | Permission is granted to copy, distribute and/or modify this document | 23 | Permission is granted to copy, distribute and/or modify this document |
| 24 | under the terms of the GNU Free Documentation License, Version 1.1 or | 24 | under the terms of the GNU Free Documentation License, Version 1.1 or |
| @@ -47,7 +47,7 @@ license to the document, as described in section 6 of the license. | |||
| 47 | @page | 47 | @page |
| 48 | 48 | ||
| 49 | @vskip 0pt plus 1filll | 49 | @vskip 0pt plus 1filll |
| 50 | Copyright @copyright{} 1998,99,2000 Free Software Foundation, Inc. | 50 | Copyright @copyright{} 1998,99,2000, 2002 Free Software Foundation, Inc. |
| 51 | 51 | ||
| 52 | Permission is granted to copy, distribute and/or modify this document | 52 | Permission is granted to copy, distribute and/or modify this document |
| 53 | under the terms of the GNU Free Documentation License, Version 1.1 or | 53 | under the terms of the GNU Free Documentation License, Version 1.1 or |
| @@ -1264,7 +1264,9 @@ has been composed inside Emacs, an appropriate @sc{mime} charset has to | |||
| 1264 | be chosen. | 1264 | be chosen. |
| 1265 | 1265 | ||
| 1266 | @vindex mail-parse-charset | 1266 | @vindex mail-parse-charset |
| 1267 | If you are running a non-Mule Emacs, this process is simple: if the part | 1267 | @cindex unibyte Emacs |
| 1268 | If you are running a non-Mule XEmacs, or Emacs in unibyte | ||
| 1269 | mode@footnote{Deprecated!}, this process is simple: if the part | ||
| 1268 | contains any non-@sc{ascii} (8-bit) characters, the @sc{mime} charset | 1270 | contains any non-@sc{ascii} (8-bit) characters, the @sc{mime} charset |
| 1269 | given by @code{mail-parse-charset} (a symbol) is used. (Never set this | 1271 | given by @code{mail-parse-charset} (a symbol) is used. (Never set this |
| 1270 | variable directly, though. If you want to change the default charset, | 1272 | variable directly, though. If you want to change the default charset, |
| @@ -1274,23 +1276,31 @@ Variables, message, Message Manual}, for example.) If there are only | |||
| 1274 | @sc{ascii} characters, the @sc{mime} charset @samp{US-ASCII} is used, of | 1276 | @sc{ascii} characters, the @sc{mime} charset @samp{US-ASCII} is used, of |
| 1275 | course. | 1277 | course. |
| 1276 | 1278 | ||
| 1277 | @cindex Mule | 1279 | @cindex multibyte Emacs |
| 1278 | @cindex UTF-8 | 1280 | @cindex @code{mime-charset} property |
| 1279 | @cindex Unicode | 1281 | In a normal (multibyte) Emacs session, a list of coding systems is |
| 1282 | derived that can encode the message part's content and correspond to | ||
| 1283 | MIME charsets (according to their @code{mime-charset} property). This | ||
| 1284 | list is according to the normal priority rules and the highest priority | ||
| 1285 | one is chosen to encode the part. If no such coding system can encode | ||
| 1286 | the part's contents, they are split into several parts such that each | ||
| 1287 | can be encoded with an appropriate coding system/@sc{mime} | ||
| 1288 | charset.@footnote{The part can only be split at line boundaries, | ||
| 1289 | though---if more than one @sc{mime} charset is required to encode a | ||
| 1290 | single line, it is not possible to encode the part.} Note that this | ||
| 1291 | procedure works with any correctly-defined coding systems, not just | ||
| 1292 | built-in ones. Given a suitably-defined UTF-8 coding system---one | ||
| 1293 | capable of encoding the Emacs charsets you use---it is not normally | ||
| 1294 | necessary to split a part by charset. | ||
| 1295 | |||
| 1280 | @vindex mm-mime-mule-charset-alist | 1296 | @vindex mm-mime-mule-charset-alist |
| 1281 | Things are slightly more complicated when running Emacs with Mule | 1297 | @cindex XEmacs/Mule |
| 1282 | support. In this case, a list of the Mule charsets used in the part is | 1298 | It isn't possible to do this properly in XEmacs/Mule. Instead, a list |
| 1283 | obtained, and the corresponding @sc{mime} charsets are determined. If | 1299 | of the Mule charsets used in the part is obtained, and the |
| 1284 | this results in a single @sc{mime} charset, this is used to encode the | 1300 | corresponding @sc{mime} charsets are determined by lookup in |
| 1285 | part. But if the resulting list of @sc{mime} charsets contains more | 1301 | @code{mm-mime-mule-charset-alist}. If the list elements all |
| 1286 | than one element, two things can happen: if it is possible to encode the | 1302 | correspond to a single @sc{mime} charset, that is used to encode the |
| 1287 | part via UTF-8, this charset is used. (For this, Emacs must support the | 1303 | part. Otherwise, the part is split as above. |
| 1288 | @code{utf-8} coding system, and the part must consist entirely of | ||
| 1289 | characters which have Unicode counterparts.) If UTF-8 is not available, | ||
| 1290 | the part is split into several, so that each one can be encoded with a | ||
| 1291 | single @sc{mime} charset. The part can only be split at line | ||
| 1292 | boundaries, though---if more than one @sc{mime} charset is required to | ||
| 1293 | encode a single line, it is not possible to encode the part. | ||
| 1294 | 1304 | ||
| 1295 | @node Conversion | 1305 | @node Conversion |
| 1296 | @section Conversion | 1306 | @section Conversion |