X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=mime-ja.sgml;h=50d67d3ac43701405a9322cdfd746c296b9dc4f8;hb=6769bf5954ca2bf221dfa9a41e2d47b24a135d79;hp=28ec3fad00e6a8fb37455baa3885be9f66841cbe;hpb=10ff2e1848eb50cac6b493616325236a512be07a;p=elisp%2Fflim.git diff --git a/mime-ja.sgml b/mime-ja.sgml index 28ec3fa..50d67d3 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
-$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
+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 +
+$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
@@ -246,55 +188,45 @@ If message is not specified,
-
-
-entity $B$,B8:_$9$k(B buffer $B$rJV$9!#(B
-
-entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bentity $B$,@j$a$k(B
-$BNN0h$N@hF,0LCV$rJV$9!#(B
+entity $B$N(B content-type $B$rJV$9!#(B
-entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bentity $B$,@j$a$k(B
-$BNN0h$NKvHx0LCV$rJV$9!#(B
+entity $B$N(B content-disposition $B$rJV$9!#(B
-entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bheader $B$,@j$a$kNN0h$N@hF,(B
-$B0LCV$rJV$9!#(B
+entity $B$N(B file $BL>$rJV$9!#(B
-entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bheader $B$,@j$a$kNN0h$NKvHx(B
-$B0LCV$rJV$9!#(B
-
-entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bbody $B$,@j$a$kNN0h$N@hF,0L(B
-$BCV$rJV$9!#(B
+$B$b$7!"(Bentity $B$K(B Content-Transfer-Encoding $BMs$,B8:_$7$J$$>l(B
+$B9g$O!"(Bdefault-encoding $B$rJV$9!#$3$l$,;XDj$5$l$J$$>l9g$O!"(B
+
-entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bbody $B$,@j$a$kNN0h$NKvHx0L(B
-$BCV$rJV$9!#(B
+Return non-nil if contents of entity has been already
+code-converted.
-field-name $BMs$,B8:_$7$J$$>l9g$O(B nil $B$rJV$9!#(B
+field-name $BMs$,B8:_$7$J$$>l9g$O(B
-
-entity $B$N(B content-type $B$rJV$9!#(B
-entity $B$N(B content-disposition $B$rJV$9!#(B
-Entity $B$N(B file $BL>$rJV$9!#(B
+Write representation of entity into filename.
+Write body of entity into filename.
+
+
-entity $B$N(B content-transfer-encoding $B$rJV$9!#(B
-Return non-nil if contents of entity has been already
-code-converted.
+entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bentity $B$,@j$a$k(B
+$BNN0h$N@hF,0LCV$rJV$9!#(B
+entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bentity $B$,@j$a$k(B
+$BNN0h$NKvHx0LCV$rJV$9!#(B
+
-
-entity $B$NFbMF$N(B byte $BNs$rJV$9!#(B
+entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bheader $B$,@j$a$kNN0h$NKvHx(B
+$B0LCV$rJV$9!#(B
-Write content of entity into filename.
+entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bbody $B$,@j$a$kNN0h$N@hF,0L(B
+$BCV$rJV$9!#(B
-Write representation of entity into filename.
+entity $B$,B8:_$9$k(B buffer $B$K$*$1$k!"(Bbody $B$,@j$a$kNN0h$NKvHx0L(B
+$BCV$rJV$9!#(B
-Write body of entity into filename.
+Entity $B$OCj>]2=$5$l$?%G!<%?I=8=$G!"
+$BA0@a$^$G$K=R$Y$FMh$?(B entity $B$KBP$9$k=hM}$O!"(Bentity $B$KBP$7$F$=$N=hM}$r0M(B
+$BMj$9$k$3$H$K$h$C$F
+mm-backend $B$O(B representation-type $B$NL>A0$N@hF,$K(B
+
+entity $B$K(B message $B$rAw$k!#(B
+
+args $B$O(B message $B$N0z?t$G$"$k!#(B
+
+Define type as a mm-backend.
+
+If PARENTS is specified, type inherits parents.
+Each parent must be representation-type.
+
+Example:
+
+
+Define name as a method function of (nth 1 (car
+args)) backend.
+
+args is like an argument list of lambda, but (car
+args) must be specialized parameter. (car (car
+args)) is name of variable and (nth 1 (car
+args)) is name of backend (representation-type).
+
+Example:
+
+
@@ -642,8 +662,8 @@ Content-Transfer-Encoding $BMs$,B8:_$7$J$$>l9g$O(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
-Alist of encoding vs. corresponding method to decode string.
-
-Each element looks like
@@ -717,24 +702,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:
+
+
-
-$B!X(B64 $B?J?t!Y$H$$$&0UL#$G!"(B3 byte $B$N(B data $B$r(B 0 $B$+$i(B 63 $B$N?t$rI=$9(B
-
-$B$3$N(B 65 $B
@@ -906,10 +954,19 @@ A-Z, a-z $B$N(B Latin $BJ8;z$H?t;z!"4v$D$+$N5-9f$+$i$J$k!#(BISO 646 $B$N0l$
number="ANSI X3.4" year="1986">
-
-$BJ8;z$H(B byte $BNs$H#1BP#1$KBP1~IU$1$k[#Kf$G$J$$5,B'$N=89g!#(B
+
+$B!X(B64 $B?J?t!Y$H$$$&0UL#$G!"(B3 byte $B$N(B data $B$r(B 0 $B$+$i(B 63 $B$N?t$rI=$9(B
+
+$B$3$N(B 65 $B
+$BJ8;z$H(B byte $BNs$H#1BP#1$KBP1~IU$1$k[#Kf$G$J$$5,B'$N=89g!#(B
+
+
@@ -934,7 +997,7 @@ data $B$r;X$9$3$H$,$"$k!#(B
-type $B$OI8=`$G$O(B
+primary-type $B$OI8=`$G$O(B
mime-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$N(B buffer $B$K$h$kI=8=(B
-
Entity $B$NB0@-(B
+
"7bit"
$B$rMQ$$$k!#(B
mime-message-structure
$B$NCM$rMQ$$$k!#(B
nil
$B$rJV$9!#(B
Entity $B$NB0@-(B
-
Entity $B$NFbMF(B
+
Entity $B$N(B buffer $B$K$h$kI=8=(B
+
Entity $B$NFbMF(B
-
Entity $B$NI=8=$H
mm
$B$H$$$&(B
+$B@\F,<-$rIU$1$?4X?tL>$+$i$J$k(B module $B$G!"$=$N(B module $BL>$OF1MM$K(B
+representation-type $B$NL>A0$N@hF,$K(B mm
$B$rIU$1$?$b$N$K$J$C$F(B
+$B$$$^$9!#$3$N(B module $B$O(B representation-type $B$N(B entity $B$,:G=i$K@8@.$5$l$k(B
+$B;~$K<+F0E*$K(B require $B$5$l$^$9!#(B
+
+
+ Entity $B$X$NJX$j(B
+
mm-backend $B$N:n$jJ}(B
+
Content-Type $BMs$N>pJs(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
@@ -879,21 +942,6 @@ data $B$O(B
Base64
-
ASCII
Coded character set$B!JId9f2=J8;z=89g!K(B, Character code$B!JJ8;zId9f!K(B
-
Base64
+
binary
@@ -927,6 +984,12 @@ A-Z, a-z $B$N(B Latin $BJ8;z$H?t;z!"4v$D$+$N5-9f$+$i$J$k!#(BISO 646 $B$N0l$
data $B$r;X$9$3$H$,$"$k!#(B
+
Coded character set$B!JId9f2=J8;z=89g!K(B, Character code$B!JJ8;zId9f!K(B
+
media-type