Init.
[www/elisp/semi.git] / paper / mui-asian97.tex
1 \documentstyle{article}
2 \title{Structure of User Interface Module for Practical Internet
3 Messages}
4 \author{MORIOKA Tomohiko\\
5 \small JAIST, Hokuriku; 1-1 Asahidai, Tatsunokuchi, Nomi, Ishikawa,
6 923-12, Japan\\
7 \tt E-mail: morioka@jaist.ac.jp}
8 \date{}
9
10 \begin{document}
11 \pagestyle{empty}
12 %\maketitle
13 %\vspace*{-2em}
14
15 \begin{center}
16   \LARGE\bf Structure of User Interface Module for Practical Internet
17   Messages
18 \end{center}
19 \vspace*{-1.2em}
20 \begin{center}
21   \Large Morioka Tomohiko 
22 \end{center}
23 \vspace*{-1.2em}
24 \begin{center}
25   {\small
26   JAIST, Hokuriku; 1-1 Asahidai, Tatsunokuchi, Nomi, Ishikawa,
27   923-12, Japan}\\
28   \tt E-mail: morioka@jaist.ac.jp
29 \end{center}
30
31
32 %\vspace*{-1.5em}
33 %\section{Introduction}
34 %\vspace*{-0.8em}
35
36 MIME offers structures like ``multipart''\cite{RFC2046} for messages.
37 Structured messages may form a tree and in that case the node of the
38 tree is called ``entity''\cite{RFC2045}.  Each entity has a type known
39 as ``media-types''\cite{RFC2045} for representing the data type.
40 Conventional MUAs (Message User Agent; mail reader, news reader, etc.)
41 provide the features necessary for message navigation.  However, they
42 do not provide any feature for navigating the entities and therefore,
43 some kind of mapping between the message and the entity hierarchy is
44 required.  Moreover, as the conventional MUAs can not process the
45 entities itself, the MIME module has to be employed for processing the
46 entities.  The processing is normally defined by a mapping between
47 media-type and program.  However, entity processing is not depended on
48 media-type alone.  Hence, a simple mapping between media type and
49 program is not adequate.
50 %
51 In the present study, the notion of ``acting situation model'' is
52 proposed to overcome the above mentioned problems of the conventional
53 MUAs.  Instead of the simple mapping between media-type and program; a
54 generlaized MIME processing module is designed based on the ``acting
55 situation model''.  The proposed system is implemented on GNU Emacs
56 and its variants, namely ``tm''\cite{tm} and ``SEMI''\cite{SEMI}.  
57
58
59 \vspace*{-1.4em}
60 \section{Mapping between a message and its entities}
61 \vspace*{-0.8em}
62
63 Traditional Internet messages are limited to plain text.  Hence,
64 conventional MUAs do not require complex message processing.  They
65 ignore the internal structure and simply manage messages.  Therefore,
66 the proposed MIME processing module must provide the adequate features
67 to process and manage the hierarchy of entities, and at the same time
68 it has to offer an interface between a message and its structure.  In
69 the present approach, SEMI and tm employ the \textit{``preview''}
70 function for supporting these functions.  Entity related information
71 are embedded for allowing the user to navigate entities in
72 \textit{preview}.  Tm and SEMI manage the mapping between a message
73 and its \textit{preview}.  The interface modules between MIME
74 processing module and MUAs replace the display for a message of
75 original MUAs by its \textit{preview}.  \textit{Preview} functions as
76 a message display for MUAs and therefore, MIME processing features are
77 added to the message features of the original MUAs.
78
79
80 \vspace*{-1.4em}
81 \section{Acting situation model}
82 \vspace*{-0.8em}
83
84 An ``Acting situation'' consists of (1) information of entities
85 specified by the header (ex. {\tt Content-Type}\cite{RFC2045}), (2)
86 conditions related to program execution, (3) operation type and (4)
87 information related to MUA type.  ``Acting situation'' is generated by
88 the operation on entity.  In case of tm and SEMI, an acting situation
89 is represented by the association list: $((t_1 .  v_1)(t_2 . v_2)
90 ... (t_n . v_n))$.  An acting situation consists attributes with type
91 $t_i$ and value $v_i$.  During an operation on entity, tm or SEMI
92 generates the draft for acting situation with the help of (1), (3) and
93 (4) (They are unique and therefore they are simply appended).  Finally
94 the appropriate condition is retrieved from (2) and it is compared
95 with the draft of acting situation.  For example, if the draft for
96 action situation is:
97 \vspace*{-0.6em}
98 {\small
99 \begin{verbatim}
100         ((media-type . message)(media-subtype . partial)("number" . "2")
101          ("total" . "3")("id" . "foo@tsukuyomi.jaist.ac.jp")
102          (mode . play)(major-mode . gnus-original-article-mode))
103 \end{verbatim}}
104 \vspace*{-0.6em}
105 \noindent and
106 \vspace*{-0.6em}
107 {\small
108 \begin{verbatim}
109         ((media-type . message)(media-subtype . partial)
110          (method . mime-combine-message/partials-automatically)
111          (major-mode . gnus-original-article-mode)
112          (summary-buffer-exp . gnus-summary-buffer))
113 \end{verbatim}}
114 \vspace*{-0.6em}
115 \noindent is matched with the list of conditions (2), then
116 \vspace*{-0.6em}
117 {\small
118 \begin{verbatim}
119         ((media-type . message)(media-subtype . partial)
120          ("number" . "2")("total" . "3")
121          ("id" . "foo@tsukuyomi.jaist.ac.jp")
122          (mode . play)(major-mode . gnus-original-article-mode)
123          (method . mime-combine-message/partials-automatically)
124          (summary-buffer-exp . gnus-summary-buffer))
125 \end{verbatim}}
126 \vspace*{-0.6em}
127 %
128 \noindent will be generated as the acting situation.  Next, the program
129 specified by the `method' attribute is executed.  The remaining
130 attributes are to be referenced by the program.
131
132
133 \vspace*{-1.4em}
134 \section{Conclusion}
135 \vspace*{-0.8em}
136
137 The proposed MIME processing module employs \textit{preview} for
138 providing an adequate mapping mechanism between a message and its
139 hierarchy of entities.  The functions of the proposed MIME processing
140 module should be consistent with the original functions of MUAs.  The
141 acting situation model allows the user to specify conditions along
142 with various factors.  In the proposed method the acting situation is
143 generated dynamically, hence it is flexible.  However present
144 implementation of the model might generate wrong acting situation.
145 Therefore, the subject is to be farther investigated.
146
147
148 \vspace*{-1.4em}
149 \begin{thebibliography}{[1]}
150 \vspace*{-0.8em}
151 \small
152 %\bibitem{ASCII} ``Coded Character Set -- 7-Bit American Standard Code
153 %for Information Interchange'', ANSI X3.4, 1986.
154
155 %\bibitem{RFC822} Crocker, D., ``Standard for the format of ARPA
156 %Internet text messages'', RFC 822, 1982-08-13.
157
158 \bibitem{RFC2045} Freed, N. and Borenstein, N., ``Multipurpose
159 Internet Mail Extensions (MIME) Part One: Format of Internet Message
160 Bodies'', RFC 2045, 1996-02-12.
161
162 \vspace*{-0.555em}
163 \bibitem{RFC2046} Freed, N. and Borenstein, N., ``Multipurpose
164 Internet Mail Extensions (MIME) Part Two: Media Types'', RFC 2046,
165 1996-12-02.
166
167 \vspace*{-0.555em}
168 \bibitem{tm} ftp://ftp.jaist.ac.jp/pub/GNU/elisp/mime/
169
170 \vspace*{-0.555em}
171 \bibitem{SEMI} ftp://ftp.jaist.ac.jp/pub/GNU/elisp/mime/alpha/
172
173 \vspace*{-0.555em}
174 \bibitem{mailcap} Borenstein, N., ``A User Agent Configuration
175   Mechanism For Multimedia Mail Format Information'', RFC 1524,
176   1993-09-23.
177
178 %\vspace*{-0.555em}
179 %\bibitem{RFC2183} Troost, R., Dorner, S. and Moore, K.,
180 %    ``Communicating Presentation Information in Internet Messages: The
181 %    Content-Disposition Header Field'', RFC 2183,
182 %    1997-8.
183
184
185 %\bibitem{RFC2047} Moore, K., ``Multipurpose Internet Mail Extensions
186 %(MIME) Part Three: Message Header Extensions for Non-ASCII Text'', RFC
187 %2047, 1996-12-02.
188
189 %\bibitem{RFC2048} Freed, N., Klensin, J. and Postel, J.,
190 %``Multipurpose Internet Mail Extensions (MIME) Part Four: Registration
191 %Procedures'', RFC 2048, 1996-12-02.
192
193 %\bibitem{RFC2049} Freed, N. and Borenstein, N., ``Multipurpose
194 %Internet Mail Extensions (MIME) Part Five: Conformance Criteria and
195 %Examples'', RFC 2049, 1996-12-02.
196
197 %\bibitem{Mule} Nishikimi, M., Handa, K., and Tomura, S., ``Mule:
198 %  MULtilingual Enhancement to GNU Emacs'', Proc. INET '93,
199 %  pp.~GAB-1-GAB-9 (1993).
200
201 %\bibitem{Mew} Yamamoto, K., ``An Integration of Internet Messages'',
202 %Transactions of Information Processing Society of Japan, Vol.~37,
203 %No.~5 (1996), p.~809--821.
204 \end{thebibliography}
205
206 \end{document}