X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-ja.sgml;h=fe6794bd7d61c7c0975d71688cec8de53ffc0235;hb=af368f85cde63eccff0aa29a7cd7ea51e633aa72;hp=2a726d5e046df9b6d0b898add26f5e1a099bd308;hpb=b6377f4fd418f38718c6cdfea81159cda67e289c;p=elisp%2Fflim.git diff --git a/mime-ja.sgml b/mime-ja.sgml index 2a726d5..fe6794b 100644 --- a/mime-ja.sgml +++ b/mime-ja.sgml @@ -1,6 +1,6 @@
--RFC 2045 $B$NDj5A$O!"(BMIME message $B$,(B entity $B$rC10L$H$9$kLZ9=B$$G$"$k$3$H$r(B -$B<($7$F$$$^$9!#(Bmessage $B$O2^$G<($9$h$&$JLZ$H$J$j!"(Bentity $B$O$3$NLZ$K$*$1(B -$B$k@a$H$J$j$^$9!#$D$^$j!"(BMIME $B$O(B message $B$rLZ9=B$$K3HD%$7$?Lu$G$9!#(B +RFC 2045 $B$NDj5A$O!"(BMIME message $B$,(B entity $B$r@a$H$9$kLZ9=B$$G$"$k$3$H$r(B +$B<($7$F$$$^$9!#$D$^$j!"(BMIME $B$O(B message $B$rLZ9=B$$K3HD%$7$?Lu$G$9!#(B
FLIM $B$O(B entity $B$N>pJs$rI=8=$9$k$?$a$K(B
+
+Open an entity and return it.
+
+type is representation-type.
+location is location of entity. Specification of it is
+depended on representation-type.
+
+buffer $B$r(B message $B$H$7$F9=J82r@O$7!"$=$N7k2L$N(B mime-entity
+$B$r(B buffer $B$N(B
+buffer $B$,>JN,$5$l$?>l9g!"8=:_$N(B buffer $B$r9=J82r@O$9$k!#(B
+
+type $B$,;XDj$5$l$?>l9g!"$=$NCM$r@8@.$5$l$k(B mime-entity $B$NI=(B
+$B>]7?$H$7$FMQ$$$k!#>JN,$5$l$?>l9g$O(B buffer $B$H$J$k!#(Bmime-message-structure
$B$K3JG<$9$k!#(B
+
+MIME message $B$O(B entity $B$rC10L$H$9$kLZ9=B$$K$J$C$F$$$^$9!#(B
-$BA0=R$N$h$&$K!"(Bmessage $BCf$N3F(B entity $B$OLZ$N@a$KEv$?$j$^$9$,!"$3$NLZ$K$O(B
-$B?<$5$HF1$8?<$5$NCf$N=gHV$K=>$C$FHV9f$,IU$1$k$3$H$,$G$-$^$9!#B($A!"(B
+$B$3$NLZ$K$*$$$F:,$H$J$k@a$O(B message $BA4BN$rI=$9(B entity $B$G$9!#$3$3$G$O!"(B
+$B$3$l$r(B
+root-entity $B0J30$N(B entity $B$O?F$r;}$A$^$9!#$^$?!"(Bentity $B$O;R6!$r;}$D$+(B +$B$bCN$l$^$;$s!#$3$N?F;R4X78$r9M$($k$3$H$G(B entity $B$NAjBP4X78$r07$&$3$H$,(B +$B$G$-$^$9!#(B +
+$B0lJ}!"(Bentity $B$N(B message $B$K$*$1$k0LCV$r9M$($k$3$H$b$G$-$^$9!#(B +
+entity $B$O$3$NLZ$K$*$1$k@a$H$J$j$^$9$,!"$3$NLZ$K$O?<$5$HF1$8?<$5$NCf$N(B
+$B=gHV$K=>$C$FHV9f$,IU$1$k$3$H$,$G$-$^$9!#B($A!"(B
-
-Open an entity and return it.
-
-type is representation-type.
-location is location of entity. Specification of it is
-depended on representation-type.
-
-$B8=:_$N(B buffer $B$r(B message $B$H$7$F9=J82r@O$7!"$=$N7k2L$N(B mime-entity $B$rJV(B
-$B$9!#(B
-
-buffer $B$r(B message $B$H$7$F9=J82r@O$7!"$=$N7k2L$N(B mime-entity
-$B$r(B buffer $B$N(B
-buffer $B$,>JN,$5$l$?>l9g!"8=:_$N(B buffer $B$r9=J82r@O$9$k!#(B
-
$B8=:_$N(B buffer $B$K$*$1$k(B message $BA4BN$N(B mime-entity $B9=B$BN$r3JG<$9$k(B
@@ -255,7 +263,11 @@ code-converted.
field-name $BMs$,B8:_$7$J$$>l9g$O(B nil $B$rJV$9!#(B
-
+
$B8=:_0LCV$K(B entity $B$NI|9f$7$?(B header $B$rA^F~$9$k!#(B
@@ -265,9 +277,32 @@ list $B$G!"$=$l$>$l!"I=<($7$?$/$J$$(B field $BL>$HI=<($7$?$$MsL>$rI=8=$7$?$b$
$B$G$"$k!#(B
invisible-fields $B$NMWAG$N$I$l$+$K(B match $B$7!"$+$D!"(B
-visible-fields $B$NMWAG$N$I$l$K$b(B match $B$7$J$$Ms$OI=<($5$l$J$$!#(B
+visible-fields $B$NMWAG$N$I$l$K$b(B match $B$7$J$$Ms$OI=<($5$l$J(B
+$B$$!#(B
+
-Alist of encoding vs. corresponding method to encode region.
-
-Each element looks like
-Alist of encoding vs. corresponding method to decode region.
-
-Each element looks like
-string $B$r(B encoding $B$H$7$FI|9f$7$?7k2L$rJV$7$^$9!#(B
+string $B$r(B encoding $B$H$7$FI|9f$7$?7k2L$rJV$9!#(B
-Alist of encoding vs. corresponding method to decode string.
-
-Each element looks like
@@ -699,24 +729,102 @@ Decode and write current region encoded by encoding into
start and end are buffer positions.
-Alist of encoding vs. corresponding method to insert encoded file.
+
-Each element looks like
+If service is specified, it returns available list of
+Content-Transfer-Encoding for it.
+
-Alist of encoding vs. corresponding method to write decoded region to
-file.
+Return table of Content-Transfer-Encoding for completion.
-Each element looks like
+
+Define name as a method function of (nth 1 (car (last
+args))) backend.
+
+args is like an argument list of lambda, but (car (last
+args)) must be specialized parameter. (car (car (last
+args))) is name of variable and (nth 1 (car (last
+args))) is name of backend (encoding).
+
+Example:
+
+
+Set spec's function definition to function.
+
+First element of spec is service.
+
+Rest of args is like an argument list of lambda, but (car
+(last args)) must be specialized parameter. (car (car
+(last args))) is name of variable and (nth 1 (car (last
+args))) is name of backend (encoding).
+
+Example:
+
+
+
+Define name as a service for Content-Transfer-Encodings.
+
+If args is specified, name is defined as a
+generic function for the service.
+
+Example:
+
+
-
-Decode MIME encoded-words in header fields.
+Header $BCf$N(B encoded-word $B$rI|9f$9$k!#(B
-If code-conversion is
-If separator is not nil, it is used as header separator.
+$B$b$7(B separator $B$,(B
-Encode header fields to network representation, such as MIME
-encoded-word.
+Header $B$r(B network $BI=8=$KId9f2=$9$k!#(B
-It refer variable
+Association list to specify field encoding method. Each element looks
+like (FIELD . METHOD).
+
+If METHOD is
+If METHOD is
+If METHOD is a MIME charset, the FIELD will be encoded as the charset
+when it must be convert into network-code.
+
+Otherwise the FIELD will be encoded as variable
+
-$BE,@Z$J(B
-$BK\Mh$O(B APEL $B$NJQ?t$G$"$k!#(B
-
MIME $B5!G=$K4X$9$kmime-message-structure
$B$K3JG<$9$k$3$H$K$7$^$9!#(B
-$B$=$7$F!"(Bentity-number $B$d(B node-id $B$rMQ$$$k$3$H$G(B
-mime-message-structure
$B$K$*$1$k(B entity $B$NAjBPE*$J0LCV4X78$r(B
-$B07$&$3$H$,$G$-$^$9!#(B
-
-
- Entity $B$N@8@.(B
-
mime-message-structure
$B$K3JG<$9$k!#(B
-mime-message-structure
$B$r5/E@$K(B entity-number $B$d(B node-id
+$B$G<($5$l$k(B entity $B$r Entity $B$NJ8;zI=8=(B
+
$BNN0h$NId9f2=!&I|9f2=(B
-
$BId9f2=!&I|9f2=(B
+
(STRING . FUNCTION)
or
-(STRING . nil)
. string is
-content-transfer-encoding. function
is region encoder
-and nil
means not to encode.
-(STRING . FUNCTION)
or
-(STRING . nil)
. string is
-content-transfer-encoding. function
is region decoder
-and nil
means not to decode.
- $BJ8;zNs$NId9f2=!&I|9f2=(B
-
(STRING . FUNCTION)
.
-STRING is content-transfer-encoding.
-FUNCTION is string decoder.
- File $B$NId9f2=!&I|9f2=(B
-
Other utilities
+
(STRING . FUNCTION)
. STRING is
-content-transfer-encoding. FUNCTION is function to insert encoded
-file.
-(STRING . FUNCTION)
. STRING is
-content-transfer-encoding. FUNCTION is function to write decoded
-region to file.
- How to write encoder/decoder module
+
How to add encoding/decoding service
+
Header $B$N(B network $BI=8=(B
@@ -739,28 +847,49 @@ FLIM $B$O$3$l$i$rId9f2=!&I|9f2=$9$k5!G=$rDs6!$7$^$9!#(B
Header $B$NId9f2=!&I|9f2=(B
nil
, it decodes only
-encoded-words. If it is mime-charset, it decodes non-ASCII bit
-patterns as the mime-charset. Otherwise it decodes non-ASCII bit
-patterns as the default-mime-charset.
+$B$b$7(B code-conversion $B$,(B nil
$B$J$i!"(Bencoded-word
+$B$@$1$,I|9f$5$l$k!#$b$7!"(Bcode-conversion $B$,(B default-mime-charset
. $B$H$7$FI|9f$5$l$k!#(Bnil
$B$G$J$1$l$P!"$=$NCM$,(B
+header separator $B$H$7$FMQ$$$i$l$k!#(B
eword-field-encoding-method-alist
.
+$B3F(B field $B$O(B eword-field-encoding-method-alist
$B$G;XDj$5$l(B
+$B$?J}<0$GId9f2=$5$l$k!#(B
mime
, the FIELD will be encoded into MIME
+format (encoded-word).
+nil
, the FIELD will not be encoded.
+default-mime-charset
when it must be convert into
+network-code.
+ $B0lHL@_Dj(B
mail
$B$H(B news
$B$KB0$9$k!#(B
-