1 [README for MEL (English Version)]
2 by MORIOKA Tomohiko <morioka@jaist.ac.jp>
3 $Id: README.en,v 1.10 1998-03-08 22:44:00 shuhei-k Exp $
8 MEL stands for "MIME Encoding Library". It consists of following
11 mel.el --- main module
12 mel-dl.el --- base64 (b-encoding) encoder/decoder
13 (for Emacs 20 with dynamic loading support)
14 mel-b.el --- base64 (b-encoding) encoder/decoder
16 mel-q.el --- quoted-printable and q-encoding encoder/decoder
17 mel-u.el --- unofficial module for uuencode
18 mel-g.el --- unofficial module for gzip64
24 (0) before installing it, please install APEL package. APEL package
27 ftp://ftp.jaist.ac.jp/pub/GNU/elisp/apel/
29 (1-a) run in expanded place
31 If you don't want to install other directories, please do only
36 You can specify the emacs command name, for example
38 % make install EMACS=xemacs
40 If `EMACS=...' is omitted, EMACS=emacs is used.
44 If you want to install other directories, please do following:
48 You can specify the emacs command name, for example
50 % make install EMACS=xemacs
52 If `EMACS=...' is omitted, EMACS=emacs is used.
54 You can specify the prefix of the directory tree for Emacs Lisp
55 programs and shell scripts, for example:
57 % make install PREFIX=~/
59 If `PREFIX=...' is omitted, the prefix of the directory tree of the
60 specified emacs command is used (perhaps /usr/local).
62 For example, if PREFIX=/usr/local and EMACS 19.34 is specified, it
63 will create the following directory tree:
65 /usr/local/share/emacs/site-lisp/mel/ --- MEL
67 You can specify site-lisp directory, for example
69 % make install LISPDIR=~/share/emacs/lisp
71 If `LISPDIR=...' is omitted, site-lisp directory of the specified
72 emacs command is used (perhaps /usr/local/share/emacs/site-lisp or
73 /usr/local/lib/xemacs/site-lisp).
75 You can specify other optional settings by editing the file
76 MEL-CFG. Please read comments in it.
79 load-path (for Emacs or MULE)
80 =============================
82 If you are using Emacs or Mule, please add directory of MEL to
83 load-path. If you install by default setting, you can write
84 subdirs.el for example:
86 --------------------------------------------------------------------
87 (normal-top-level-add-to-load-path '("apel" "mel"))
88 --------------------------------------------------------------------
90 If you are using XEmacs, there are no need of setting about
100 Command mime-encode-region (START END ENCODING)
102 Encode region START to END of current buffer using ENCODING.
104 Command mime-decode-region (start end encoding)
106 Decode region START to END of current buffer using ENCODING.
108 Command base64-encode-region (start end)
110 Encode current region by base64.
111 START and END are buffer positions.
113 This function calls internal base64 encoder if size of region is
114 smaller than `base64-internal-encoding-limit', otherwise it calls
115 external base64 encoder specified by `base64-external-encoder'. In
116 this case, you must install the program (maybe mmencode included in
117 metamail or XEmacs package).
119 Command base64-decode-region (start end)
121 Decode current region by base64.
122 START and END are buffer positions.
124 This function calls internal base64 decoder if size of region is
125 smaller than `base64-internal-decoding-limit', otherwise it calls
126 external base64 decoder specified by `base64-external-decoder'. In
127 this case, you must install the program (maybe mmencode included in
128 metamail or XEmacs package).
130 Command quoted-printable-encode-region (start end)
132 Encode current region by quoted-printable.
133 START and END are buffer positions.
135 This function calls internal quoted-printable encoder if size of
136 region is smaller than `quoted-printable-internal-encoding-limit',
137 otherwise it calls external quoted-printable encoder specified by
138 `quoted-printable-external-encoder'. In this case, you must install
139 the program (maybe mmencode included in metamail or XEmacs package).
141 Command quoted-printable-decode-region (start end)
143 Decode current region by quoted-printable.
144 START and END are buffer positions.
146 This function calls internal quoted-printable decoder if size of
147 region is smaller than `quoted-printable-internal-decoding-limit',
148 otherwise it calls external quoted-printable decoder specified by
149 `quoted-printable-external-decoder'. In this case, you must install
150 the program (maybe mmencode included in metamail or XEmacs package).
152 Command uuencode-encode-region (start end)
154 Encode region START to END of current buffer using uuencode.
156 Command uuencode-decode-region (start end)
158 Decode region START to END of current buffer using uuencode.
160 Command gzip64-encode-region (start end)
162 Encode region START to END of current buffer using x-gzip64.
164 Command gzip64-decode-region (start end)
166 Decode region START to END of current buffer using x-gzip64.
168 Variable mime-encoding-method-alist
170 Alist of encoding vs. corresponding method to encode region.
171 Each element looks like (STRING . FUNCTION) or (STRING . nil).
172 STRING is content-transfer-encoding.
173 FUNCTION is region encoder and nil means not to encode.
175 Variable mime-decoding-method-alist
177 Alist of encoding vs. corresponding method to decode region.
178 Each element looks like (STRING . FUNCTION).
179 STRING is content-transfer-encoding.
180 FUNCTION is region decoder.
185 Command mime-insert-encoded-file (FILENAME ENCODING)
187 Insert file FILENAME encoded by ENCODING format.
189 Command base64-insert-encoded-file (FILENAME)
191 Encode contents of file FILENAME to base64, and insert the result.
193 It calls external base64 encoder specified by
194 `base64-external-encoder'. So you must install the program (maybe
195 mmencode included in metamail or XEmacs package).
197 Command quoted-printable-insert-encoded-file (FILENAME)
199 Insert quoted-printable encoded file.
201 Command uuencode-insert-encoded-file (FILENAME)
203 Insert uuencode encoded file.
205 Command gzip64-insert-encoded-file (FILENAME)
207 Insert gzip64 encoded file.
209 Variable mime-file-encoding-method-alist
211 Alist of encoding vs. corresponding method to insert encoded file.
212 Each element looks like (STRING . FUNCTION).
213 STRING is content-transfer-encoding.
214 FUNCTION is function to insert encoded file.
219 Function base64-encode-string (STRING)
221 Encode STRING to base64, and return the result.
223 Function base64-decode-string (STRING)
225 Decode STRING which is encoded in base64, and return the result.
227 Function q-encoding-encode-string (STRING &optional MODE)
229 Encode STRING to Q-encoding of encoded-word, and return the result.
230 MODE allows `text', `comment', `phrase' or nil. Default value is
233 Function q-encoding-decode-string (STRING)
235 Decode STRING which is encoded in Q-encoding and return the result.
237 Function base64-encoded-length (STRING)
239 Return length of base64 encoded STRING.
241 Function q-encoded-length (STRING &optional MODE)
243 Return length of Q-encoding encoded STRING.
244 MODE allows `text', `comment', `phrase' or nil. Default value is
251 If you write bug-reports and/or suggestions for improvement, please
252 send them to the tm Mailing List:
254 bug-tm-en@chamonix.jaist.ac.jp (English)
255 bug-tm-ja@chamonix.jaist.ac.jp (Japanese)
257 Via the tm ML, you can report MEL bugs, obtain the latest release of
258 MEL, and discuss future enhancements to MEL. To join the tm ML, send
261 tm-en-help@chamonix.jaist.ac.jp (English)
262 tm-ja-help@chamonix.jaist.ac.jp (Japanese)