be54ea25b7fc39803fc00aa9e999203f4ed6848a
[elisp/tm.git] / doc / tm-view_ja.texi
1 \input texinfo.tex
2 @c{-*-tm manual-*-}
3 @setfilename tm-view_ja.info
4 @settitle{tm-view manual}
5
6 @titlepage
7 @title{tm-view}
8 @author{¼é²¬ ÃÎɧ}
9 @code{$Id: tm-view_ja.texi,v 6.5 1995/09/02 01:50:37 morioka Exp $}
10 @end titlepage
11
12
13 @node Top, Abstract, (tm_ja.info), (tm_ja.info)
14 @comment  node-name,  next,  previous,  up
15
16 @ifinfo
17 GNU Emacs ¤ÇÆ°ºî¤¹¤ëÈÆÍÑŪ¤Ê MIME viewer kernel ¤Î `tm-view' ¤Ë¤Ä¤¤¤Æ
18 ÀâÌÀ¤·¤Þ¤¹¡£
19 @end ifinfo
20
21 @menu
22 * Abstract::       tm-view ³µÀâ
23 * How to run::     mime/viewer-mode ¤Îµ¯Æ°¤Î»ÅÊý
24 * Commands::       mime/viewer-mode ¤Î command
25 * Preview Buffer:: preview buffer ¤Î²èÌ̹½À®
26 * Decoding::       content ¤ËÂФ¹¤ëºÆÀ¸¡¢file Ãê½Ð¡¢°õºþÁàºî¤Î»ÅÁȤß
27
28 Preview buffer
29 * Preview Buffer:: preview buffer ¤Î²èÌ̹½À®
30 * content-subject::
31 * content-header::
32 * content-body::
33 * content-separator::
34
35 Decoding
36 * Decoding:: content ¤ËÂФ¹¤ëºÆÀ¸¡¢file Ãê½Ð¡¢°õºþÁàºî¤Î»ÅÁȤß
37 * decoding-condition:: content ¤Î decode ¾ò·ï¤ÎÀßÄê
38 * Format of method value:: method ¤ÎÃÍÉô¤Î½ñ¼°
39 * Example of decoding-condition:: ÀßÄêÎã
40
41 Indexes
42 * Concept Index::
43 * Command Index::
44 * Variable Index::
45 @end menu
46
47
48 @node Abstract, How to run, Top, Top
49 @comment  node-name,  next,  previous,  up
50 @chapter{tm-view ¤È¤Ï}
51 @cindex{tm-view ¤È¤Ï}
52
53 tm-view ¤Ï GNU Emacs ¤ÇÆ°ºî¤¹¤ëÈÆÍÑŪ¤Ê MIME viewer ¤Ç¤¹¡£
54
55 tm-view ¤Ï @code{mime/viewer-mode} ¤È¤¤¤¦ MIME message ¤ò¸«¤ë¤¿¤á¤Î 
56 major-mode ¤ò MUA ¤ËÂФ·¤ÆÄ󶡤·¤Þ¤¹¡£MUA ¤ÎÀ߷׼ԤϤ³¤Î mode ¤òÍøÍѤ¹
57 ¤ë¤³¤È¤Ç¤½¤Î MUA ¤Ë MIME µ¡Ç½¤òÉղ乤뤳¤È¤¬¤Ç¤­¤Þ¤¹¡£
58
59 tm-view ¤Ï¡¢MIME ½èÍý¤ò¹Ô¤Ê¤¦Á°¤ÎÀ¸¤Î message ¤¬Æþ¤Ã¤Æ¤¤¤ë³Æ MUA ¤Î 
60 @strong{article buffer} ¤È¤½¤ÎÆâÍƤò user ¤Ë´Ê·é¤Ëɽ¼¨¤¹¤ë¤¿¤á¤Î 
61 @strong{preview buffer} ¤È¤¤¤¦£²¤Ä¤Î buffer ¤ò´ÉÍý¤·¤Þ¤¹¡£
62
63 @code{mime/viewer-mode} ¤ò¼Â¹Ô¤¹¤ë¤È¡¢tm-view ¤Ï¤Þ¤º article buffer ¤Î
64 ÆâÍƤò²òÀϤ·¡¢¤½¤Î message ¤Î¹½Â¤¤ò article buffer ¤Î buffer local ÊÑ
65 ¿ô @code{mime::article/content-info} ¤Ëµ­Ï¿¤·¤Þ¤¹¡£
66
67 ¼¡¤Ë¡¢¤³¤Î·ë²Ì¤ò¸µ¤Ë article buffer ¤ËÂбþ¤¹¤ë preview buffer ¤òºî¤ê¤Þ
68 ¤¹¡£¤³¤ÎºÝ¡¢Content-Type ¤Ë±þ¤¸¤Æ¡¢content Ã±°Ì¤Ç header ¤ä body ¤ò²Ã
69 ¹©¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
70
71 @code{mime/viewer-mode} ¤ò¼Â¹Ô¤·¤¿·ë²Ì¤Ç¤­¤ë preview buffer ¾å¤Ç user 
72 ¤Ï¡¢³°Éô vewer ¤Îµ¯Æ°¡¦file Ãê½Ð¡¦°õºþ¤È¤¤¤Ã¤¿ decode Áàºî¤ò¹Ô¤Ê¤¦¤³¤È
73 ¤¬¤Ç¤­¤Þ¤¹¡£
74
75
76 @section{¡ÎÃí°Õ¡Ï}
77
78 ¤³¤ÎÀâÌÀ½ñ¤Ç¤Ï¡¢Content-Type field ¤Î content-type/subtype ¤Î¤³¤È¤ò¾Î
79 ¤·¤Æ @strong{content-type} ¤È¸Æ¤Ó¤Þ¤¹¡£
80
81
82 @node How to run, Commands, Abstract, Top
83 @comment  node-name,  next,  previous,  up
84 @chapter{mime/viewer-mode ¤Îµ¯Æ°¤Î»ÅÊý}
85 @cindex{mime/viewer-mode ¤Îµ¯Æ°¤Î»ÅÊý}
86
87 @deffn{Command} mime/viewer-mode &optional mother ctl encoding
88
89 current-buffer ¤ò MIME message ¤È¤·¤Æ²òÀϤ·¤Æ¡¢¤½¤ÎÆâÍƤò±ÜÍ÷¤¹¤ë¤¿¤á
90 ¤Î preview buffer ¤òºîÀ®¤·¡¢@code{mime/viewer-mode} ¤ËÆþ¤ê¤Þ¤¹¡£
91
92 @var{mother} ¤Ï¡¢²òÀϤÎÂоݤȤ¹¤ë article buffer ¤¬ message/partial ·Á
93 ¼°¤Îʬ³ä¤µ¤ì¤¿ message ¤ò·ë¹ç¤·¤ÆºîÀ®¤·¤¿¾ì¹ç¤Ê¤É¤Ë¤ª¤±¤ë¸µ¤Î buffer 
94 ¤ò»ØÄꤹ¤ë¤¿¤á¤Ë»È¤¤¤Þ¤¹¡£
95
96 @var{ctl} ¤Ï Content-Type field ¤Î field-body ¤ò 
97 @code{mime/Content-Type} ¤Î½ÐÎÏÀµ¼°¤Ë¤·¤¿¤â¤Î¤òÆþ¤ì¤Þ¤¹¡£¤³¤Î°ú¿ô¤¬¤¢
98 ¤ë¾ì¹ç¡¢article buffer ¤Î Content-Type field ¤è¤ê¤â¤³¤Î°ú¿ô¤òÍ¥À褷¤Þ
99 ¤¹¡£
100
101 @var{encoding} ¤Ï Content-Transfer-Encoding field ¤Î field-body ¤òÆþ¤ì
102 ¤Þ¤¹¡£¤³¤Î°ú¿ô¤¬¤¢¤ë¾ì¹ç¡¢article buffer ¤Î Content-Transfer-Encoding
103 field ¤è¤ê¤â¤³¤Î°ú¿ô¤òÍ¥À褷¤Þ¤¹¡£
104 @end deffn
105
106
107 @node Commands, Preview Buffer, How to run, Top
108 @comment  node-name,  next,  previous,  up
109 @chapter{mime/viewer-mode ¤Î command}
110 @cindex{mime/viewer-mode ¤Î command}
111
112 mime/viewer-mode ¤Ë¤Ï°Ê²¼¤Îµ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£
113
114 @table @kbd 
115 @item u
116         ¾å¤Î content ¤ËÌá¤ë¡Êmessage ¤Î°ìÈÖ¾å¤Î content ¤Ç¤³¤ì¤ò¹Ô¤Ê¤¦
117         ¤È Summary mode ¤ËÌá¤ë (*1)¡Ë
118 @item p
119         Á°¤Î content ¤Ë°ÜÆ°¤¹¤ë
120 @item n
121         ¼¡¤Î content ¤Ë°ÜÆ°¤¹¤ë
122 @item @key{SPC}
123         scroll up ¤¹¤ë
124 @item @key{M-SPC}
125         scroll down ¤¹¤ë
126 @item @key{DEL}
127         scroll down ¤¹¤ë
128 @item @key{RET}
129         ¼¡¤Î¹Ô¤Ë°ÜÆ°¤¹¤ë
130 @item @key{M-RET}
131         Á°¤Î¹Ô¤Ë°ÜÆ°¤¹¤ë
132 @item v
133         content ¤òºÆÀ¸¤¹¤ë           (*2)
134 @item e
135         content ¤«¤é file ¤ò¼è¤ê½Ð¤¹ (*2)
136 @item C-c C-p
137         content ¤ò°õºþ¤¹¤ë           (*2)
138 @end table
139
140 @noindent @b{¡ÎÃí°Õ¡Ï}
141 @enumerate
142 @item
143 tm-MUA ¤Ç tm-view ¤ÎÀßÄê¤ò¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢Summary mode ¤Ë¤ÏÌá¤ê¤Þ¤»¤ó¡£ 
144
145 @item
146 ¼ÂºÝ¤ÎÆ°ºî¤ÏÂбþ¤¹¤ë method ¤Ë°Í¤ê¤Þ¤¹¡£
147 @end enumerate
148
149
150 @node Preview Buffer, content-subject, Commands, Top
151 @comment  node-name,  next,  previous,  up
152 @chapter{preview buffer ¤Î²èÌ̹½À®}
153 @cindex{preview buffer ¤Î²èÌ̹½À®}
154
155 preview buffer ¤Ç¤Ï³Æ content ¤ËÂФ·¤Æ
156
157 @example
158         [content-subject]
159         (content-header)
160         
161         (content-body)
162         (content-separator)
163 @end example
164
165 ¤È¤¤¤¦¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£¤³¤ì¤é¤Ï content-type Ëè¤Ë design ¤òÊѹ¹¤·¤¿¤ê¡¢
166 ɽ¼¨¤òÍÞÀ©¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
167
168 °Ê²¼¤Ë¡¢preview buffer ¤Îɽ¼¨Îã¤ò¼¨¤·¤Þ¤¹¡£
169
170
171 @example
172 From: ¼é²¬ ÃÎɧ (MORIOKA Tomohiko) <morioka@@jaist.ac.jp>
173 Newsgroups: zxr.comp.emacs.tm-english
174 Subject: tm6.63.tar.gz
175 Date: Mon, 26 Jun 1995 17:39:50 JST
176 Organization: Chamonix, JAIST, Tatsunokuchi, Ishikawa, Japan
177 Reply-To: tm-eng@@chamonix.jaist.ac.jp
178 To: tm-eng@@chamonix.jaist.ac.jp
179 In-Reply-To: Your message of "Sun, 25 Jun 1995 23:20:49 MST"
180 X-Mua: mh-e 4.1 + tm 6.63 / Mule 2.2 ( ¼ã»ç ) PL02
181 X-Mime-Composer: mime.el + tiny-mime 5.12
182 X-Ml-Count: 32
183
184 [1  (text/plain)]
185   I put tm6.63.tar.gz in ftp.jaist.ac.jp.
186
187   In this version, tm-view uses new MIME encoding/decoding engine
188 ``mel (MIME encoding library''. This library has internal/external
189 encoding/decoding engine. If data is smaller than a limit, tm-view
190 uses internal decoder, otherwise external decoder.
191
192 [2 tm6.63.tar.gz ([anon-ftp] ftp.jaist.ac.jp:/pub/GNU/elisp/mime/alpha)]
193
194 [3  (text/plain)]
195 ----
196 MORIOKA, Tomohiko <morioka@@jaist.ac.jp>
197 @end example
198
199
200 @menu
201 * content-subject::
202 * content-header::
203 * content-body::
204 * content-separator::
205 @end menu
206
207
208 @node content-subject, content-header, Preview Buffer, Preview Buffer
209 @comment  node-name,  next,  previous,  up
210 @section{content-subject}
211 @cindex{content-subject}
212
213 content-subject ¤Ï content ¤ÎÀèƬ¤Ë¤¢¤Ã¤Æ¡¢¤½¤Î content ¤Ë´Ø¤¹¤ëÂç¤Þ¤«
214 ¤Ê¾ðÊó¤òɽ¼¨¤¹¤ëÉôʬ¤Ç¤¹¡£
215
216 ɸ½à¤Ç¤Ï
217
218 @example
219         [1.3 test (text/plain)]
220 @end example
221
222 ¤Î¤è¤¦¤Ê´¶¤¸¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
223
224 ºÇ½é¤Î¿ô»ú¤Ï message Ãæ¤Î¤³¤Î content ¤Î°ÌÃÖ¤òÀáÈÖ¹æ¤Î¤è¤¦¤Ëɽ¤·¤¿¤â¤Î
225 ¤Ç¡¢content-number ¤È¸Æ¤Ó¤Þ¤¹¡£
226
227 £²ÈÖÌܤÎʸ»úÎó¤ÏɽÂê¤òɽ¤·¤Þ¤¹¡£¤³¤Î¾ðÊó¤Ï¡¢
228
229 @itemize
230 @item{Content-Type field ¤Î name paramater ¤â¤·¤¯¤Ï x-name parameter ¤Ë½ñ
231   ¤«¤ì¤¿ file Ì¾}
232 @item{Content-Description field ¤â¤·¤¯¤Ï Subject field ¤Ë½ñ¤«¤ì¤¿É½Âê}
233 @item{uuencode ¤Î¾ì¹ç¤Î file Ì¾}
234 @end itemize
235
236 ¤«¤éºî¤ê¤Þ¤¹¡£¤É¤ì¤â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï¶õÇò¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
237
238 £³ÈÖÌܤγç¸Ì¤ÎÃæ¤Î¾ðÊó¤Ï¤½¤Î content ¤Î content-type/subtype ¤òɽ¤·¤Þ
239 ¤¹¡£Èó MIME part ¤Î¾ì¹ç¡¢@code{nil} ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
240
241 ¤³¤Î content-subject ¤Ï content-header, content-body ¤òɽ¼¨¤·¤Ê¤¤¾ì¹ç¡¢
242 icon ¤Î¤è¤¦¤ÊÌò³ä¤ò²Ì¤¿¤·¤Þ¤¹¡£Î㤨¤Ð¡¢
243
244 @example
245         [2  (image/gif)]
246 @end example
247
248 ¤Î¾å¤Ç `v' ¤ò²¡¤»¤Ð¤³¤³¤ËÆþ¤Ã¤Æ¤¤¤ë³¨¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
249
250
251 @defvr{Variable} mime-viewer/content-subject-omitting-Content-Type-list
252
253 ɽ¼¨¤·¤Ê¤¤ Content-Type ¤òÍ×ÁǤȤ¹¤ë list. ´Ø¿ô 
254 @code{mime-viewer/default-content-subject-function} ¤Ë¤è¤Ã¤Æ»²¾È¤µ¤ì¤ë¡£
255 @end defvr
256
257
258 @deffn{Function} mime-viewer/default-content-subject-function cnum cinfo ctype params subj
259
260 ɸ½à¤Î content-subject É½¼¨´Ø¿ô¡£ÊÑ¿ô 
261 @code{mime-viewer/content-subject-omitting-Content-Type-list} ¤ò»²¾È¤·
262 ¤Æ¤¤¤ë¡£
263 @end deffn
264
265
266 @defvar mime-viewer/content-subject-function cnum cinfo ctype params subj
267
268 content-subject É½¼¨´Ø¿ô¤òÀßÄꤹ¤ë¤¿¤á¤ÎÊÑ¿ô¡£´ûÄêÃͤϴؿô 
269 @code{mime-viewer/default-content-subject-function} ¤Ç¤¢¤ë¡£
270
271 ¤³¤ÎÊÑ¿ô¤Ë¡¢´Ø¿ô @code{mime-viewer/default-content-subject-function} 
272 °Ê³°¤Î´Ø¿ô¤òÀßÄꤷ¤¿¾ì¹ç¡¢ÊÑ¿ô 
273 @code{mime-viewer/content-subject-omitting-Content-Type-list} ¤ÎÍ­¸úÀ­
274 ¤ÏÊݾڤµ¤ì¤Ê¤¤¤Î¤ÇÃí°Õ¤¹¤ë¤³¤È¡£
275 @end defvar
276
277
278 @node content-header, content-body, content-subject, Preview Buffer
279 @comment  node-name,  next,  previous,  up
280 @section{content-header}
281 @cindex{content-header}
282
283 ¤¢¤ë content ¤Î content-number ¤ò´Ø¿ô 
284 @code{mime-viewer/header-visible-p} ¤ËÆþÎϤ·¤Æ¤½¤ÎÊÖ¤êÃͤ¬ @code{t} ¤Ë
285 ¤Ê¤ë¾ì¹ç¡¢¤½¤Î content ¤Î content-header ¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£¤³¤ÎȽÄê´Ø¿ô
286 ¤Ï¡¢°ìÈÖ¾å¤Î content ¤Ç¤Ê¤¯¡¢¤½¤Î content ¤Î¿Æ¤Î content-type ¤¬ÊÑ¿ô 
287 @code{mime-viewer/childrens-header-showing-Content-Type-list} ¤Ç»ØÄꤵ
288 ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë @code{t} ¤òÊÖ¤·¤Þ¤¹¡£
289
290 ¤³¤Î¾ò·ï¤òÊѤ¨¤¿¤¤¾ì¹ç¤Ï¡¢¤³¤Î´Ø¿ô¤òºÆÄêµÁ¤·¤Æ²¼¤µ¤¤¡£Ã¢¤·¡¢É¸½à¤Ç¤Ï¡¢
291 ÊÑ¿ô @code{mime-viewer/childrens-header-showing-Content-Type-list} ¤ò
292 »²¾È¤·¤Þ¤¹¤¬¡¢ºÆÄêµÁ¤·¤¿¾ì¹ç¡¢¤³¤ÎÊÑ¿ô¤ÎÍ­¸úÀ­¤ÏÊݾڤµ¤ì¤Ê¤¤¤Î¤ÇÃí°Õ¤·
293 ¤Æ²¼¤µ¤¤¡£
294
295 content-header ¤¬É½¼¨¤µ¤ì¤ë¾ì¹ç¡¢content-header ¤Ï 
296 content-header-filter ¤Ë¤è¤Ã¤ÆÀ°·Á¤µ¤ì¤Þ¤¹¡£¸Æ¤Ð¤ì¤ë 
297 content-header-filter ¤Ï article buffer ¤Î major-mode ¤ò key ¤È¤·¤ÆÊÑ
298 ¿ô @code{mime-viewer/content-header-filter-alist} ¤«¤éõ¤µ¤ì¤Þ¤¹¡£¤â¤·¡¢
299 content-header-filter ¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¡¢´Ø¿ô 
300 @code{mime-viewer/default-content-header-filter} ¤¬¸Æ¤Ð¤ì¤Þ¤¹¡£
301
302
303 @defvar mime-viewer/childrens-header-showing-Content-Type-list
304
305 ¤¢¤ë content ¤Î»Ò¤ËÅö¤¿¤ë content ¤Î content-header ¤òɽ¼¨¤¹¤Ù¤­ 
306 Content-Type ¤ò¼ý¤á¤¿ list. ´ûÄêÃͤϠ"message/rfc822" ¤Ç¤¢¤ë¡£
307
308 ¤³¤ÎÊÑ¿ô¤Ï´Ø¿ô @code{mime-viewer/header-visible-p} ¤Ë¤è¤Ã¤Æ»²¾È¤µ¤ì¤ë¡£
309 @end defvar
310
311
312 @deffn{Function} mime-viewer/header-visible-p cnum cinfo &optional ctype
313
314 content-info @var{cinfo} Ãæ¤Î content-number ¤¬ @var{cnum} ¤Ç¤¢¤ë 
315 content ¤Î header ¤¬É½¼¨¤µ¤ì¤ë¾ì¹ç¡¢t ¤òÊÖ¤¹¡£¤½¤Î content ¤Î 
316 content-type ¤¬¤¢¤é¤«¤¸¤á¤ï¤«¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢@var{ctype} ¤Ë°ú¿ô¤È¤·¤ÆÅÏ
317 ¤¹¤³¤È¤¬¤Ç¤­¤ë¡£
318 @end deffn
319
320
321 @defvar mime-viewer/content-header-filter-alist
322
323 article buffer ¤Î major-mode ¤ò key ¤È¤·¤¿Ï¢Áۥꥹ¥È¤Ç¡¢ÃÍÉô¤Ë¤Ï 
324 content-header-filter ¤¬Æþ¤Ã¤Æ¤¤¤ë¡£
325 @end defvar
326
327
328 @deffn{Function} mime-viewer/default-content-header-filter
329
330 ¤¢¤ë content ¤Î content-header ¤òɽ¼¨¤¹¤Ù¤­»þ¡¢ÊÑ¿ô 
331 @code{mime-viewer/content-header-filter-alist} ¤ÎÃæ¤Ë 
332 content-header-filter ¤¬¸«¤Ä¤«¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¡£
333 @end deffn
334
335
336 @node content-body, content-separator, content-header, Preview Buffer
337 @comment  node-name,  next,  previous,  up
338 @section{content-body}
339 @cindex{content-body}
340
341 ¤¢¤ë content ¤Î content-body ¤òɽ¼¨¤¹¤ë¤«¤É¤¦¤«¤Ï¡¢´Ø¿ô 
342 @code{mime-viewer/body-visible-p} ¤¬ @code{t} ¤Ë¤Ê¤ë¤«¤É¤¦¤«¤Ç·è¤Þ¤ê¤Þ
343 ¤¹¡£É¸½à¤Ç¤Ï¡¢¤¢¤ë content ¤Î content-type ¤¬ÊÑ¿ô 
344 @code{mime-viewer/default-showing-Content-Type-list} ¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë
345 »þ¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
346
347 ¤¢¤ë content ¤Î content-body ¤¬É½¼¨¤µ¤ì¤ë»þ¡¢preview buffer ¤Ë¤Ï 
348 content-body ¤ò content-filter ¤Ë¤è¤Ã¤ÆÀ°·Á¤µ¤ì¤¿¤â¤Î¤¬É½¼¨¤µ¤ì¤Þ¤¹¡£
349 ¸Æ¤Ð¤ì¤ë content-filter ¤Ï article buffer ¤Î major-mode ¤ò key ¤È¤·¤Æ
350 ÊÑ¿ô @code{mime-viewer/content-filter-alist} ¤«¤éõ¤µ¤ì¤Þ¤¹¡£¤â¤·¡¢¤³
351 ¤ÎÊÑ¿ô¤ËÅÐÏ¿¤µ¤ì¤Æ¤¤¤Ê¤«¤Ã¤¿¾ì¹ç¡¢´Ø¿ô 
352 @code{mime-viewer/default-content-filter} ¤¬¸Æ¤Ð¤ì¤Þ¤¹¡£
353
354
355 @defvar mime-viewer/default-showing-Content-Type-list
356
357 ɽ¼¨¤¹¤Ù¤­ content-type ¤òÍ×ÁǤȤ¹¤ë list.
358 @end defvar
359
360
361 @deffn{Function} mime-viewer/body-visible-p cnum cinfo &optional ctype
362
363 content-number ¤¬ @var{cnum} ¤Ç¤¢¤ë content ¤¬É½¼¨¤µ¤ì¤ë¾ì¹ç¡¢@code{t} 
364 ¤òÊÖ¤¹¡£¤½¤Î content ¤Î content-type ¤¬¤¢¤é¤«¤¸¤á¤ï¤«¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢
365 @var{ctype} ¤Ë°ú¿ô¤È¤·¤ÆÅϤ¹¤³¤È¤¬¤Ç¤­¤ë¡£
366 @end deffn
367
368
369 @defvar mime-viewer/content-filter-alist
370
371 article buffer ¤Î major-mode ¤ò key ¤È¤·¤¿Ï¢Áۥꥹ¥È¤Ç¡¢ÃÍÉô¤Ë¤Ï 
372 content-filter ¤¬Æþ¤Ã¤Æ¤¤¤ë¡£
373 @end defvar
374
375
376 @deffn{Function} mime-viewer/default-content-filter cnum cinfo ctype params subj
377
378 ¤¢¤ë content ¤Î content-body ¤òɽ¼¨¤¹¤Ù¤­»þ¡¢ÊÑ¿ô 
379 @code{mime-viewer/content-filter-alist} ¤ÎÃæ¤Ë content-filter ¤¬¸«¤Ä¤«
380 ¤é¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¡£
381
382 ɸ½à¤Ç¤Ï²¿¤â¤·¤Ê¤¤¡£
383 @end deffn
384
385
386 @node content-separator, Decoding, content-body, Preview Buffer
387 @comment  node-name,  next,  previous,  up
388 @section{content-separator}
389 @cindex{content-separator}
390
391 content-separator ¤Ï content ¤Î°ìÈֺǸå¤Ë content ´Ö¤Î¶­ÌܤòÌÀ¤é¤«¤Ë¤¹
392 ¤ë¤¿¤á¤Ëɽ¼¨¤µ¤ì¤Þ¤¹¡£
393
394 content-separator ¤Ï´Ø¿ô @code{mime-viewer/default-content-separator} 
395 ¤Ë¤è¤Ã¤Æɽ¼¨¤µ¤ì¤Þ¤¹¡£É¸½à¤Ç¤Ï¡¢content-header ¤â content-body ¤âɽ¼¨
396 ¤µ¤ì¤Ê¤¤¾ì¹ç¤Î¤ß¡¢²þ¹Ô¤òɽ¼¨¤·¤Þ¤¹¡£
397
398 content-separator ¤ÎÀßÄê¤òÊѹ¹¤·¤¿¤¤¾ì¹ç¤Ï¡¢¤³¤Î´Ø¿ô¤òºÆÄêµÁ¤·¤Æ²¼¤µ¤¤¡£
399
400
401 @deffn{Function} mime-viewer/default-content-separator cnum cinfo ctype params subj
402
403 content-number ¤¬ @var{cnum} ¤Ç¤¢¤ë content ¤Î content-separator ¤òɽ
404 ¼¨¤¹¤ë¡£É¸½à¤Ç¤Ï¡¢content-header ¤â content-body ¤âɽ¼¨¤µ¤ì¤Ê¤¤¾ì¹ç¤Î
405 ¤ß¡¢²þ¹Ô¤òɽ¼¨¤¹¤ë¡£
406 @end deffn
407
408
409 @node Decoding, decoding-condition, Preview Buffer, Top
410 @comment  node-name,  next,  previous,  up
411 @chapter{Decoding}
412 @cindex{Decoding}
413
414 @code{mime/viewer-mode} ¤Ç¤Ï user ¤Ï³Æ content ¤ËÂФ·¤Æ¡¢play
415 (@key{v}), extract (@key{e}), print (@key{C-c C-p}) ¤È¤¤¤¦Áàºî¤ò¹Ô¤Ê¤¦
416 ¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£¤³¤¦¤·¤¿Áàºî¤Î¤³¤È¤ò¡Ø¡Êcontent ¤ËÂФ¹¤ë¡Ëdecode Áàºî¡Ù
417 ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹¡£¤Þ¤¿¡¢@strong{play}, @strong{extract},
418 @strong{print} ¤È¤¤¤¦ decode Áàºî¤Î¼ïÎà¤Î¤³¤È¤ò @strong{decoding-mode} 
419 ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹¡£
420
421 decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢¤½¤Î content ¤Î content-type ¤Ê¤É¤Î¾ò·ï¤ä¤½
422 ¤Î¾ì¤Î´Ä¶­¤Ë±þ¤¸¤Æ¼ÂºÝ¤Ë¤½¤ÎÁàºî¤ò¼Â¹Ô¤¹¤ë¼ê³¤­¤¬¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤Î¼ê³
423 ¤­¤Î¤³¤È¤ò @strong{method} ¤È¸Æ¤Ó¤Þ¤¹¡£
424
425 method ¤Ë¤Ï¡¢Emacs Lisp ¤Ç½ñ¤«¤ì¤¿ @strong{ÆâÉô method} ¤È¡¢³°Éô 
426 program ¤Ç¼Â¸½¤µ¤ì¤¿ @strong{³°Éô method} ¤¬¤¢¤ê¤Þ¤¹¡£ÆâÉô method ¤Ï 
427 Emacs ¤Îµ¡Ç½¤ò»È¤Ã¤Æ¤­¤áºÙ¤«¤¤½èÍý¤ò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£³°Éô method 
428 ¤ÏÈóƱ´ü¥×¥í¥»¥¹¸Æ¤Ó½Ð¤·¤ò»È¤Ã¤Æ¼Â¸½¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¼Â¹ÔÃæÂÔ¤¿¤µ¤ì¤º¤Ë
429 ¤¹¤ß¤Þ¤¹¡£¤³¤Î¤¿¤á¡¢ÀŻ߲è¤äÆ°²è¤Ê¤É¤ÎµðÂç¤Ê data ¤òºÆÀ¸¤¹¤ë¤Î¤ËÎɤ¤¤Ç
430 ¤·¤ç¤¦¡£
431
432 @menu
433 * decoding-condition::            content ¤Î decode ¾ò·ï¤ÎÀßÄê
434 * Format of method value::        method ¤ÎÃÍÉô¤Î½ñ¼°
435 * Example of decoding-condition:: ÀßÄêÎã
436 @end menu
437
438
439 @node decoding-condition, Format of method value, Decoding, Decoding
440 @comment  node-name,  next,  previous,  up
441 @section{content ¤Î decode ¾ò·ï¤ÎÀßÄê}
442 @cindex{content ¤Î decode ¾ò·ï¤ÎÀßÄê}
443
444 tm-view ¤Ï decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¡¢ÊÑ¿ô 
445 @code{mime/content-decoding-condition} ¤«¤é¤½¤Î»þ¤Î¾ò·ï¤Ë¹çÃפ·¤¿ 
446 method ¤òÁܤ·½Ð¤·¤Æ¡¢¤½¤ì¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£
447
448 ÊÑ¿ô @code{mime/content-decoding-condition} ¤Ï
449
450 @lisp
451         (¾ò·ï1 ¾ò·ï2 ...)
452 @end lisp
453
454 ¤È¤¤¤¦·Á¤ò¤·¤¿ list ¤Ç¡¢³Æ¾ò·ï¤Ï
455
456 @lisp
457         ((field-type_1 . value_1)
458          (field-type_2 . value_2)
459          ...)
460 @end lisp
461
462 ¤È¤¤¤¦·Á¤ÎÏ¢ÁÛ list ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
463
464 Î㤨¤Ð¡¢text/plain ¤Î»þ¡¢tm-plain ¤òµ¯Æ°¤¹¤ë»þ¡¢
465
466 @lisp
467         ((type . "text/plain")
468          (method "tm-plain" nil 'file 'type 'encoding 'mode 'name))
469 @end lisp
470
471 ¤È¤¤¤¦¾ò·ï¤ò½ñ¤­¤Þ¤¹¡£¤³¤Î method ¤Î value Éô¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï¸å¤Ç¾Ü¤·
472 ¤¯½Ò¤Ù¤Þ¤¹¡£
473
474 ¤³¤Î¾ò·ï¤Ï content-type ¤¬ text/plain ¤Ç¤¢¤ë content ¤Ê¤éÁ´¤Æ¤Î 
475 decoding-mode ¤ÇÍ­¸ú¤Ç¤¹¡£¤·¤«¤·¡¢
476
477 @lisp
478         ((type . "text/plain")
479          (method "tm-plain" nil 'file 'type 'encoding 'mode 'name)
480          (mode . "play"))
481 @end lisp
482
483 ¤Ê¤é¡¢play mode ¤Î»þ¤·¤«Í­¸ú¤Ë¤Ê¤ê¤Þ¤»¤ó¡£
484
485 µÕ¤Ë¡¢
486
487 @lisp
488         ((method "metamail" t "-m" "tm" "-x" "-d" "-z" "-e" 'file)
489          (mode . "play"))
490 @end lisp
491
492 ¤Ê¤é¡¢Á´¤Æ¤Î content-type ¤Î play mode ¤ÇÍ­¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
493
494 ¤³¤¦¤·¤Æ³Æ¾ò·ï¤òÁ°¤«¤é¸«¤Æ¹Ô¤­¡¢ºÇ½é¤ËÍ­¸ú¤Ë¤Ê¤Ã¤¿¾ò·ï¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
495
496
497 @node Format of method value, Example of decoding-condition, decoding-condition, Decoding
498 @comment  node-name,  next,  previous,  up
499 @section{method ¤Î ÃÍÉô¤Î½ñ¼°}
500 @cindex{method ¤Î ÃÍÉô¤Î½ñ¼°}
501
502 decode-condition ¤Î method field ¤Ï
503
504 @lisp
505         (method . SYMBOL)
506 @end lisp
507
508 ¤«
509
510 @lisp
511         (method  Ê¸»úÎó  FLAG  °ú¿ô1  °ú¿ô2  ...)
512 @end lisp
513
514 ¤È¤¤¤¦·Á¤ò¤·¤Æ¤¤¤Þ¤¹¡£
515
516 Á°¼Ô¤ÏÆâÉô method ¤ò»ØÄꤹ¤ë¤¿¤á¤Î·Á¼°¤Ç¡¢decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢
517 SYMBOL ¤È¤¤¤¦´Ø¿ô¤¬´Ø¿ô¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤ÆÆâÉô method ¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ
518 ¤¹¡£
519
520 ¸å¼Ô¤Ï³°Éô method ¤ò»ØÄꤹ¤ë¤¿¤á¤Î·Á¼°¤Ç¡¢decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢
521 ʸ»úÎó¤Ç»ØÄꤵ¤ì¤¿³°Éô program ¤¬ÈóƱ´ü¥×¥í¥»¥¹¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ³°Éô 
522 method ¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£
523
524
525 ³°Éô method ¤ò»ØÄꤹ¤ë¾ì¹ç¤Î method field ¤Î½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
526
527 @table @samp
528 @item Ê¸»úÎó
529         ³°Éô method ¤Î̾Á°
530 @item FLAG
531         @code{t} ¤Ê¤é content-header ¤â³°Éô method ¤ËÅϤ¹¡£@code{nil} 
532         ¤Ê¤é content-body ¤Î¤ß¤òÅϤ¹¡£
533 @item °ú¿ôÎó
534         ³°Éô method ¤Î°ú¿ô
535 @end table
536
537 ¤Þ¤¿¡¢³°Éô method ¤Î°ú¿ô¤Ï¼¡¤Î¤è¤¦¤Ê·Á¼°¤Ç½ñ¤­¤Þ¤¹¡£
538
539 @table @samp
540 @item Ê¸»úÎó
541         ¤½¤Îʸ»úÎó¤òÅϤ¹
542 @item 'SYMBOL
543         SYMBOL ¤ò key ¤È¤·¤¿ decoding-condition ¤ÎÃͤòÅϤ¹
544 @item 'ʸ»úÎó
545         Ê¸»úÎó¤ò key ¤È¤·¤¿ decoding-condition ¤ÎÃͤòÅϤ¹
546 @end table
547
548 'SYMBOL ¤Ç»ØÄê¤Ç¤­¤ë¤â¤Î¤Ë¤Ï¡¢
549
550 @table @samp
551 @item 'file
552         content ¤òÅϤ¹¤¿¤á¤Î file Ì¾
553 @item 'type
554         Content-Type field ¤Î content-type/subtype
555 @item 'encoding
556         Content-Transfer-Encoding field ¤Î field body
557 @item 'mode
558         decoding-mode
559 @item 'name
560         file ¤ËÍ¾ì¹ç¤Î file Ì¾
561 @end table
562
563 ¤Ê¤É¤¬¤¢¤ê¡¢'ʸ»úÎó ¤Ç¤Ï Content-Type field ¤Î parameter ¤ÎÃͤ¬»ØÄê¤Ç
564 ¤­¤Þ¤¹¡£
565
566
567 @node Example of decoding-condition, Concept Index, Format of method value, Decoding
568 @comment  node-name,  next,  previous,  up
569 @section{decoding-condition ¤ÎÎã}
570 @cindex{decoding-condition ¤ÎÎã}
571
572 °Ê²¼¤Ë decoding-condition ¤ÎÀßÄêÎã¤ò¼¨¤·¤Þ¤¹¡£
573
574 @lisp
575 (defvar mime/content-decoding-condition
576   '(((type . "text/plain")
577      (method "tm-plain" nil 'file 'type 'encoding 'mode 'name))
578     ((type . "text/x-latex")
579      (method "tm-latex" nil 'file 'type 'encoding 'mode 'name))
580     ((type . "audio/basic")
581      (method "tm-au"    nil 'file 'type 'encoding 'mode 'name))
582     ((type . "image/gif")
583      (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
584     ((type . "image/jpeg")
585      (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
586     ((type . "image/tiff")
587      (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
588     ((type . "image/x-tiff")
589      (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
590     ((type . "image/x-xbm")
591      (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
592     ((type . "image/x-pic")
593      (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
594     ((type . "video/mpeg")`
595      (method "tm-mpeg"  nil 'file 'type 'encoding 'mode 'name))
596     ((type . "application/octet-stream")
597      (method "tm-file"  nil 'file 'type 'encoding 'mode 'name))
598     ((type . "message/partial")
599      (method . mime/decode-message/partial-region))
600     ((method "metamail" t
601              "-m" "tm" "-x" "-d" "-z" "-e" 'file)(mode . "play"))
602     ))
603 @end lisp
604
605 Î㤨¤Ð¡¢¡ÖÁ´Éô metamail »È¤¦¤ó¤ä¡×¤È¤¤¤¦¾ì¹ç¡¢
606
607 @lisp
608 (setq mime/content-decoding-condition
609       '(
610         ((method "metamail" t "-m" "tm" "-x" "-d" "-z" "-e" 'file))
611        ))
612 @end lisp
613
614 ¤È¤¹¤ì¤Ð OK ¤Ç¤¹¡£
615
616 ¹©Éפ¹¤ì¤Ð¡¢¤«¤Ê¤êÊ£»¨¤Ê¾ò·ï¤¬½ñ¤±¤ë¤Ç¤·¤ç¤¦¡£
617
618
619 °Ê²¼¤Ë¡¢decoding-condition ¤òÀßÄꤹ¤ë¤¿¤á¤ÎÍ­ÍѤʴؿô¤ò¾Ò²ð¤·¤Þ¤¹¡£
620
621
622 @deffn{Function} set-atype symbol alist
623
624 @var{symbol} ¤Ë¾ò·ï @var{alist} ¤òÄɲä·¤Þ¤¹¡£
625
626 Î㡧
627
628 @lisp
629 (set-atype 'mime/content-decoding-condition
630            '((type . "message/external-body")
631              ("access-type" . "anon-ftp")
632              (method . mime/decode-message/external-ftp)
633              ))
634 @end lisp
635 @end deffn
636
637
638 @node Concept Index, Command Index, Decoding, Top
639 @unnumbered ³µÇ°º÷°ú
640
641 @printindex cp
642
643
644 @node Command Index, Variable Index, Concept Index, Top
645 @unnumbered ´Ø¿ô¡¦¥³¥Þ¥ó¥Éº÷°ú
646
647 @printindex fn
648
649
650 @node Variable Index,  , Command Index, Top
651 @unnumbered ÊÑ¿ôº÷°ú
652
653 @printindex vr
654
655 @bye