1 @c $Id: tm-view-m=ja.texi,v 2.0 1995/12/17 22:59:35 morioka Exp $
3 @node method, Mechanism of tm-view, mime/viewer-mode, tm-view
4 @comment node-name, next, previous, up
8 @code{mime/viewer-mode} ¤Ç¤Ï¡¢³Æ content ¤ËÂФ·¤Æ¡¢play (@key{v}),
9 extract (@key{e}), print (@key{C-c C-p}) ¤È¤¤¤¦Áàºî¤ò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤
10 ¤Þ¤¹¡£¤³¤¦¤·¤¿Áàºî¤Î¤³¤È¤ò¡Ø¡Êcontent ¤ËÂФ¹¤ë¡Ëdecode Áàºî¡Ù¤È¸Æ¤Ö¤³
11 ¤È¤Ë¤·¤Þ¤¹¡£¤Þ¤¿¡¢@strong{play}, @strong{extract}, @strong{print} ¤È¤¤
12 ¤¦ decode Áàºî¤Î¼ïÎà¤Î¤³¤È¤ò @strong{decoding-mode} ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹¡£
14 decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢¤½¤Î content ¤Î content-type ¤Ê¤É¤Î¾ò·ï¤ä¤½
15 ¤Î¾ì¤Î´Ä¶¤Ë±þ¤¸¤Æ¼ÂºÝ¤Ë¤½¤ÎÁàºî¤ò¼Â¹Ô¤¹¤ë¼ê³¤¤¬¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤Î¼ê³
16 ¤¤Î¤³¤È¤ò @strong{method} ¤È¸Æ¤Ó¤Þ¤¹¡£
18 method ¤Ë¤Ï¡¢Emacs Lisp ¤Ç½ñ¤«¤ì¤¿ @strong{ÆâÉô method} ¤È¡¢³°Éô
19 program ¤Ç¼Â¸½¤µ¤ì¤¿ @strong{³°Éô method} ¤¬¤¢¤ê¤Þ¤¹¡£ÆâÉô method ¤Ï
20 Emacs ¤Îµ¡Ç½¤ò»È¤Ã¤Æ¤¤áºÙ¤«¤¤½èÍý¤ò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤¤Þ¤¹¡£³°Éô method
21 ¤ÏÈóƱ´ü¥×¥í¥»¥¹¸Æ¤Ó½Ð¤·¤ò»È¤Ã¤Æ¼Â¸½¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¼Â¹ÔÃæÂÔ¤¿¤µ¤ì¤º¤Ë
22 ¤¹¤ß¤Þ¤¹¡£¤³¤Î¤¿¤á¡¢ÀŻ߲è¤äÆ°²è¤Ê¤É¤ÎµðÂç¤Ê data ¤òºÆÀ¸¤¹¤ë¤Î¤ËÎɤ¤¤Ç
26 * decoding-condition:: content ¤Î decode ¾ò·ï¤ÎÀßÄê
27 * Format of method value:: method ¤ÎÃÍÉô¤Î½ñ¼°
28 * Example of decoding-condition:: ÀßÄêÎã
29 * environment variables:: ´Ä¶ÊÑ¿ô
33 @node decoding-condition, Format of method value, method, method
34 @comment node-name, next, previous, up
35 @subsection content ¤Î decode ¾ò·ï¤ÎÀßÄê
36 @cindex content decoding condition
38 tm-view ¤Ï decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¡¢ÊÑ¿ô
39 @code{mime/content-decoding-condition} ¤«¤é¤½¤Î»þ¤Î¾ò·ï¤Ë¹çÃפ·¤¿
40 method ¤òÁܤ·½Ð¤·¤Æ¡¢¤½¤ì¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£
42 ÊÑ¿ô @code{mime/content-decoding-condition} ¤Ï
48 ¤È¤¤¤¦·Á¤ò¤·¤¿ list ¤Ç¡¢³Æ¾ò·ï¤Ï
51 ((field-type_1 . value_1)
52 (field-type_2 . value_2)
56 ¤È¤¤¤¦·Á¤ÎÏ¢ÁÛ list ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
58 Î㤨¤Ð¡¢text/plain ¤Î»þ¡¢tm-plain ¤òµ¯Æ°¤¹¤ë»þ¡¢
61 ((type . "text/plain")
62 (method "tm-plain" nil 'file 'type 'encoding 'mode 'name))
65 ¤È¤¤¤¦¾ò·ï¤ò½ñ¤¤Þ¤¹¡£¤³¤Î method ¤Î value Éô¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï¸å¤Ç¾Ü¤·
68 ¤³¤Î¾ò·ï¤Ï content-type ¤¬ text/plain ¤Ç¤¢¤ë content ¤Ê¤éÁ´¤Æ¤Î
69 decoding-mode ¤Ç͸ú¤Ç¤¹¡£¤·¤«¤·¡¢
72 ((type . "text/plain")
73 (method "tm-plain" nil 'file 'type 'encoding 'mode 'name)
77 ¤Ê¤é¡¢play mode ¤Î»þ¤·¤«Í¸ú¤Ë¤Ê¤ê¤Þ¤»¤ó¡£
82 ((method "metamail" t "-m" "tm" "-x" "-d" "-z" "-e" 'file)
86 ¤Ê¤é¡¢Á´¤Æ¤Î content-type ¤Î play mode ¤Ç͸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
88 ¤³¤¦¤·¤Æ³Æ¾ò·ï¤òÁ°¤«¤é¸«¤Æ¹Ô¤¡¢ºÇ½é¤Ë͸ú¤Ë¤Ê¤Ã¤¿¾ò·ï¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
91 @node Format of method value, Example of decoding-condition, decoding-condition, method
92 @comment node-name, next, previous, up
93 @subsection method ¤ÎÃÍÉô¤Î½ñ¼°
94 @cindex method ¤ÎÃÍÉô¤Î½ñ¼°
96 decode-condition ¤Î method field ¤Ï
105 (method ʸ»úÎó FLAG °ú¿ô1 °ú¿ô2 ...)
108 ¤È¤¤¤¦·Á¤ò¤·¤Æ¤¤¤Þ¤¹¡£
110 Á°¼Ô¤ÏÆâÉô method ¤ò»ØÄꤹ¤ë¤¿¤á¤Î·Á¼°¤Ç¡¢decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢
111 SYMBOL ¤È¤¤¤¦´Ø¿ô¤¬´Ø¿ô¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤ÆÆâÉô method ¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ
114 ¸å¼Ô¤Ï³°Éô method ¤ò»ØÄꤹ¤ë¤¿¤á¤Î·Á¼°¤Ç¡¢decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢
115 ʸ»úÎó¤Ç»ØÄꤵ¤ì¤¿³°Éô program ¤¬ÈóƱ´ü¥×¥í¥»¥¹¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ³°Éô
116 method ¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£
119 ³°Éô method ¤ò»ØÄꤹ¤ë¾ì¹ç¤Î method field ¤Î½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
125 @code{t} ¤Ê¤é content-header ¤â³°Éô method ¤ËÅϤ¹¡£@code{nil}
126 ¤Ê¤é content-body ¤Î¤ß¤òÅϤ¹¡£
131 ¤Þ¤¿¡¢³°Éô method ¤Î°ú¿ô¤Ï¼¡¤Î¤è¤¦¤Ê·Á¼°¤Ç½ñ¤¤Þ¤¹¡£
137 SYMBOL ¤ò key ¤È¤·¤¿ decoding-condition ¤ÎÃͤòÅϤ¹
139 ʸ»úÎó¤ò key ¤È¤·¤¿ decoding-condition ¤ÎÃͤòÅϤ¹
142 'SYMBOL ¤Ç»ØÄê¤Ç¤¤ë¤â¤Î¤Ë¤Ï¡¢
146 content ¤òÅϤ¹¤¿¤á¤Î file ̾
148 Content-Type field ¤Î content-type/subtype
150 Content-Transfer-Encoding field ¤Î field body
154 file ¤ËÍ¾ì¹ç¤Î file ̾
157 ¤Ê¤É¤¬¤¢¤ê¡¢'ʸ»úÎó ¤Ç¤Ï Content-Type field ¤Î parameter ¤ÎÃͤ¬»ØÄê¤Ç
161 @node Example of decoding-condition, environment variables, Format of method value, method
162 @comment node-name, next, previous, up
163 @subsection decoding-condition ¤ÎÎã
164 @cindex decoding-condition ¤ÎÎã
166 °Ê²¼¤Ë decoding-condition ¤ÎÀßÄêÎã¤ò¼¨¤·¤Þ¤¹¡£
169 (defvar mime/content-decoding-condition
170 '(((type . "text/plain")
171 (method "tm-plain" nil 'file 'type 'encoding 'mode 'name))
172 ((type . "text/x-latex")
173 (method "tm-latex" nil 'file 'type 'encoding 'mode 'name))
174 ((type . "audio/basic")
175 (method "tm-au" nil 'file 'type 'encoding 'mode 'name))
176 ((type . "image/gif")
177 (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
178 ((type . "image/jpeg")
179 (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
180 ((type . "image/tiff")
181 (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
182 ((type . "image/x-tiff")
183 (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
184 ((type . "image/x-xbm")
185 (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
186 ((type . "image/x-pic")
187 (method "tm-image" nil 'file 'type 'encoding 'mode 'name))
188 ((type . "video/mpeg")`
189 (method "tm-mpeg" nil 'file 'type 'encoding 'mode 'name))
190 ((type . "application/octet-stream")
191 (method "tm-file" nil 'file 'type 'encoding 'mode 'name))
192 ((type . "message/partial")
193 (method . mime/decode-message/partial-region))
194 ((method "metamail" t
195 "-m" "tm" "-x" "-d" "-z" "-e" 'file)(mode . "play"))
199 Î㤨¤Ð¡¢¡ÖÁ´Éô metamail »È¤¦¤ó¤ä¡×¤È¤¤¤¦¾ì¹ç¡¢
202 (setq mime/content-decoding-condition
204 ((method "metamail" t "-m" "tm" "-x" "-d" "-z" "-e" 'file))
210 ¹©Éפ¹¤ì¤Ð¡¢¤«¤Ê¤êÊ£»¨¤Ê¾ò·ï¤¬½ñ¤±¤ë¤Ç¤·¤ç¤¦¡£
213 °Ê²¼¤Ë¡¢decoding-condition ¤òÀßÄꤹ¤ë¤¿¤á¤ÎÍÍѤʴؿô¤ò¾Ò²ð¤·¤Þ¤¹¡£
216 @deffn{Function} set-atype symbol alist
218 @var{symbol} ¤Ë¾ò·ï @var{alist} ¤òÄɲä·¤Þ¤¹¡£
223 (set-atype 'mime/content-decoding-condition
224 '((type . "message/external-body")
225 ("access-type" . "anon-ftp")
226 (method . mime/decode-message/external-ftp)
232 @node environment variables, , Example of decoding-condition, method
233 @comment node-name, next, previous, up
235 @cindex environment variables
237 °Ê²¼¤Ë tm-view ¤Îɸ½à method ¤¬»²¾È¤¹¤ë´Ä¶ÊÑ¿ô¤ò¼¨¤·¤Þ¤¹¡£
241 °ì»þŪ¤ËºîÀ®¤µ¤ì¤ë file ¤ä file ½ÐÎϤ¹¤ë¾ì¹ç¤Î default ¤Î½ÐÎÏÀè¤È¤·¤Æ
242 ÍѤ¤¤é¤ì¤ë directory ¤ò»ØÄꤹ¤ë¡£¾Êά¤µ¤ì¤¿¾ì¹ç¡¢/tmp/ ¤¬ÍѤ¤¤é¤ì¤ë¡£
245 mpeg_play ¤Ç¤Î dither ¤Î¤«¤±Êý¤ò»ØÄꤹ¤ë¡£´ûÄêÃÍ¤Ï `gray'.
248 WWW browser ¤ò»ØÄꤹ¤ë¡£´ûÄêÃÍ¤Ï `netscape'.