This commit was generated by cvs2svn to compensate for changes in r542,
[elisp/tm.git] / doc / tm-view-m=ja.texi
1 @c $Id: tm-view-m=ja.texi,v 2.0 1995/12/17 22:59:35 morioka Exp $
2
3 @node method, Mechanism of tm-view, mime/viewer-mode, tm-view
4 @comment  node-name,  next,  previous,  up
5 @section method
6 @cindex method
7
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} ¤È¸Æ¤Ö¤³¤È¤Ë¤·¤Þ¤¹¡£
13
14 decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢¤½¤Î content ¤Î content-type ¤Ê¤É¤Î¾ò·ï¤ä¤½
15 ¤Î¾ì¤Î´Ä¶­¤Ë±þ¤¸¤Æ¼ÂºÝ¤Ë¤½¤ÎÁàºî¤ò¼Â¹Ô¤¹¤ë¼ê³¤­¤¬¸Æ¤Ð¤ì¤Þ¤¹¡£¤³¤Î¼ê³
16 ¤­¤Î¤³¤È¤ò @strong{method} ¤È¸Æ¤Ó¤Þ¤¹¡£
17
18 method ¤Ë¤Ï¡¢Emacs Lisp ¤Ç½ñ¤«¤ì¤¿ @strong{ÆâÉô method} ¤È¡¢³°Éô 
19 program ¤Ç¼Â¸½¤µ¤ì¤¿ @strong{³°Éô method} ¤¬¤¢¤ê¤Þ¤¹¡£ÆâÉô method ¤Ï 
20 Emacs ¤Îµ¡Ç½¤ò»È¤Ã¤Æ¤­¤áºÙ¤«¤¤½èÍý¤ò¹Ô¤Ê¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£³°Éô method 
21 ¤ÏÈóƱ´ü¥×¥í¥»¥¹¸Æ¤Ó½Ð¤·¤ò»È¤Ã¤Æ¼Â¸½¤µ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢¼Â¹ÔÃæÂÔ¤¿¤µ¤ì¤º¤Ë
22 ¤¹¤ß¤Þ¤¹¡£¤³¤Î¤¿¤á¡¢ÀŻ߲è¤äÆ°²è¤Ê¤É¤ÎµðÂç¤Ê data ¤òºÆÀ¸¤¹¤ë¤Î¤ËÎɤ¤¤Ç
23 ¤·¤ç¤¦¡£
24
25 @menu
26 * decoding-condition::            content ¤Î decode ¾ò·ï¤ÎÀßÄê
27 * Format of method value::        method ¤ÎÃÍÉô¤Î½ñ¼°
28 * Example of decoding-condition:: ÀßÄêÎã
29 * environment variables::         ´Ä¶­ÊÑ¿ô
30 @end menu
31
32
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
37
38 tm-view ¤Ï decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤ë¤È¡¢ÊÑ¿ô 
39 @code{mime/content-decoding-condition} ¤«¤é¤½¤Î»þ¤Î¾ò·ï¤Ë¹çÃפ·¤¿ 
40 method ¤òÁܤ·½Ð¤·¤Æ¡¢¤½¤ì¤ò¸Æ¤Ó½Ð¤·¤Þ¤¹¡£
41
42 ÊÑ¿ô @code{mime/content-decoding-condition} ¤Ï
43
44 @lisp
45         (¾ò·ï1 ¾ò·ï2 ...)
46 @end lisp
47
48 ¤È¤¤¤¦·Á¤ò¤·¤¿ list ¤Ç¡¢³Æ¾ò·ï¤Ï
49
50 @lisp
51         ((field-type_1 . value_1)
52          (field-type_2 . value_2)
53          ...)
54 @end lisp
55
56 ¤È¤¤¤¦·Á¤ÎÏ¢ÁÛ list ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
57
58 Î㤨¤Ð¡¢text/plain ¤Î»þ¡¢tm-plain ¤òµ¯Æ°¤¹¤ë»þ¡¢
59
60 @lisp
61         ((type . "text/plain")
62          (method "tm-plain" nil 'file 'type 'encoding 'mode 'name))
63 @end lisp
64
65 ¤È¤¤¤¦¾ò·ï¤ò½ñ¤­¤Þ¤¹¡£¤³¤Î method ¤Î value Éô¤Î½ñ¼°¤Ë¤Ä¤¤¤Æ¤Ï¸å¤Ç¾Ü¤·
66 ¤¯½Ò¤Ù¤Þ¤¹¡£
67
68 ¤³¤Î¾ò·ï¤Ï content-type ¤¬ text/plain ¤Ç¤¢¤ë content ¤Ê¤éÁ´¤Æ¤Î 
69 decoding-mode ¤ÇÍ­¸ú¤Ç¤¹¡£¤·¤«¤·¡¢
70
71 @lisp
72         ((type . "text/plain")
73          (method "tm-plain" nil 'file 'type 'encoding 'mode 'name)
74          (mode . "play"))
75 @end lisp
76
77 ¤Ê¤é¡¢play mode ¤Î»þ¤·¤«Í­¸ú¤Ë¤Ê¤ê¤Þ¤»¤ó¡£
78
79 µÕ¤Ë¡¢
80
81 @lisp
82         ((method "metamail" t "-m" "tm" "-x" "-d" "-z" "-e" 'file)
83          (mode . "play"))
84 @end lisp
85
86 ¤Ê¤é¡¢Á´¤Æ¤Î content-type ¤Î play mode ¤ÇÍ­¸ú¤Ë¤Ê¤ê¤Þ¤¹¡£
87
88 ¤³¤¦¤·¤Æ³Æ¾ò·ï¤òÁ°¤«¤é¸«¤Æ¹Ô¤­¡¢ºÇ½é¤ËÍ­¸ú¤Ë¤Ê¤Ã¤¿¾ò·ï¤¬¼Â¹Ô¤µ¤ì¤Þ¤¹¡£
89
90
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 ¤ÎÃÍÉô¤Î½ñ¼°
95
96 decode-condition ¤Î method field ¤Ï
97
98 @lisp
99         (method . SYMBOL)
100 @end lisp
101
102 ¤«
103
104 @lisp
105         (method  Ê¸»úÎó  FLAG  °ú¿ô1  °ú¿ô2  ...)
106 @end lisp
107
108 ¤È¤¤¤¦·Á¤ò¤·¤Æ¤¤¤Þ¤¹¡£
109
110 Á°¼Ô¤ÏÆâÉô method ¤ò»ØÄꤹ¤ë¤¿¤á¤Î·Á¼°¤Ç¡¢decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢
111 SYMBOL ¤È¤¤¤¦´Ø¿ô¤¬´Ø¿ô¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤ÆÆâÉô method ¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ
112 ¤¹¡£
113
114 ¸å¼Ô¤Ï³°Éô method ¤ò»ØÄꤹ¤ë¤¿¤á¤Î·Á¼°¤Ç¡¢decode Áàºî¤¬¹Ô¤Ê¤ï¤ì¤¿»þ¡¢
115 ʸ»úÎó¤Ç»ØÄꤵ¤ì¤¿³°Éô program ¤¬ÈóƱ´ü¥×¥í¥»¥¹¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ³°Éô 
116 method ¤È¤·¤Æ¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£
117
118
119 ³°Éô method ¤ò»ØÄꤹ¤ë¾ì¹ç¤Î method field ¤Î½ñ¼°¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡£
120
121 @table @samp
122 @item Ê¸»úÎó
123         ³°Éô method ¤Î̾Á°
124 @item FLAG
125         @code{t} ¤Ê¤é content-header ¤â³°Éô method ¤ËÅϤ¹¡£@code{nil} 
126         ¤Ê¤é content-body ¤Î¤ß¤òÅϤ¹¡£
127 @item °ú¿ôÎó
128         ³°Éô method ¤Î°ú¿ô
129 @end table
130
131 ¤Þ¤¿¡¢³°Éô method ¤Î°ú¿ô¤Ï¼¡¤Î¤è¤¦¤Ê·Á¼°¤Ç½ñ¤­¤Þ¤¹¡£
132
133 @table @samp
134 @item Ê¸»úÎó
135         ¤½¤Îʸ»úÎó¤òÅϤ¹
136 @item 'SYMBOL
137         SYMBOL ¤ò key ¤È¤·¤¿ decoding-condition ¤ÎÃͤòÅϤ¹
138 @item 'ʸ»úÎó
139         Ê¸»úÎó¤ò key ¤È¤·¤¿ decoding-condition ¤ÎÃͤòÅϤ¹
140 @end table
141
142 'SYMBOL ¤Ç»ØÄê¤Ç¤­¤ë¤â¤Î¤Ë¤Ï¡¢
143
144 @table @samp
145 @item 'file
146         content ¤òÅϤ¹¤¿¤á¤Î file Ì¾
147 @item 'type
148         Content-Type field ¤Î content-type/subtype
149 @item 'encoding
150         Content-Transfer-Encoding field ¤Î field body
151 @item 'mode
152         decoding-mode
153 @item 'name
154         file ¤ËÍ¾ì¹ç¤Î file Ì¾
155 @end table
156
157 ¤Ê¤É¤¬¤¢¤ê¡¢'ʸ»úÎó ¤Ç¤Ï Content-Type field ¤Î parameter ¤ÎÃͤ¬»ØÄê¤Ç
158 ¤­¤Þ¤¹¡£
159
160
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 ¤ÎÎã
165
166 °Ê²¼¤Ë decoding-condition ¤ÎÀßÄêÎã¤ò¼¨¤·¤Þ¤¹¡£
167
168 @lisp
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"))
196     ))
197 @end lisp
198
199 Î㤨¤Ð¡¢¡ÖÁ´Éô metamail »È¤¦¤ó¤ä¡×¤È¤¤¤¦¾ì¹ç¡¢
200
201 @lisp
202 (setq mime/content-decoding-condition
203       '(
204         ((method "metamail" t "-m" "tm" "-x" "-d" "-z" "-e" 'file))
205        ))
206 @end lisp
207
208 ¤È¤¹¤ì¤Ð OK ¤Ç¤¹¡£
209
210 ¹©Éפ¹¤ì¤Ð¡¢¤«¤Ê¤êÊ£»¨¤Ê¾ò·ï¤¬½ñ¤±¤ë¤Ç¤·¤ç¤¦¡£
211
212
213 °Ê²¼¤Ë¡¢decoding-condition ¤òÀßÄꤹ¤ë¤¿¤á¤ÎÍ­ÍѤʴؿô¤ò¾Ò²ð¤·¤Þ¤¹¡£
214
215
216 @deffn{Function} set-atype symbol alist
217
218 @var{symbol} ¤Ë¾ò·ï @var{alist} ¤òÄɲä·¤Þ¤¹¡£
219
220 Î㡧
221
222 @lisp
223 (set-atype 'mime/content-decoding-condition
224            '((type . "message/external-body")
225              ("access-type" . "anon-ftp")
226              (method . mime/decode-message/external-ftp)
227              ))
228 @end lisp
229 @end deffn
230
231
232 @node environment variables,  , Example of decoding-condition, method
233 @comment  node-name,  next,  previous,  up
234 @subsection ´Ä¶­ÊÑ¿ô
235 @cindex environment variables
236
237 °Ê²¼¤Ë tm-view ¤Îɸ½à method ¤¬»²¾È¤¹¤ë´Ä¶­ÊÑ¿ô¤ò¼¨¤·¤Þ¤¹¡£
238
239 @table @var
240 @item TM_TMP_DIR
241 °ì»þŪ¤ËºîÀ®¤µ¤ì¤ë file ¤ä file ½ÐÎϤ¹¤ë¾ì¹ç¤Î default ¤Î½ÐÎÏÀè¤È¤·¤Æ
242 ÍѤ¤¤é¤ì¤ë directory ¤ò»ØÄꤹ¤ë¡£¾Êά¤µ¤ì¤¿¾ì¹ç¡¢/tmp/ ¤¬ÍѤ¤¤é¤ì¤ë¡£
243
244 @item VIDEO_DITHER
245 mpeg_play ¤Ç¤Î dither ¤Î¤«¤±Êý¤ò»ØÄꤹ¤ë¡£´ûÄêÃͤϠ`gray'.
246
247 @item TM_WWW_BROWSER
248 WWW browser ¤ò»ØÄꤹ¤ë¡£´ûÄêÃͤϠ`netscape'.
249 @end table