~ubuntu-branches/debian/sid/tex4ht/sid

« back to all changes in this revision

Viewing changes to share/all4ht/ebook-mml.4ht

  • Committer: Bazaar Package Importer
  • Author(s): Kapil Hari Paranjape
  • Date: 2005-04-05 14:14:41 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050405141441-x4dojdgz3frkfyet
Tags: 20050402.1817-1
* New upstream release (2005-04-02-18:17). Closes: #299934.
* See README.src, README.validate, README.Debian and copyright
  for information on minor changes.
* This upload fixes a some .htf files. Closes: #295109.
* Updated the description to reflect recent changes.
* Fixed some typos in src/tex4ht-mkht.tex and consequently
  in the mk4ht script.
* Updated the man page to include mk4ht. 
* Updated the description of options for the scripts in the man page.
  Put more information in the man page about the way the system works.
  Closes: #219348, #219347.
* Added debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2
 
% ebook-mml.4ht                        2001-09-05-00:34 %
3
 
%                                                       %
4
 
% This program can redistributed and/or modified under  %
5
 
% the terms of the LaTeX Project Public License         %
6
 
% Distributed from CTAN archives in directory           %
7
 
% macros/latex/base/lppl.txt; either version 1 of the   %
8
 
% License, or (at your option) any later version.       %
9
 
%                                                       %
10
 
% However, you are allowed to modify this program       %
11
 
% without changing its name, if you modify its          %
12
 
% signature. Changes to the signature can be introduced %
13
 
% with a directive of the form                          %
14
 
%            \message{signature}                        %
15
 
%                                                       %
16
 
%                             gurari@cis.ohio-state.edu %
17
 
%                 http://www.cis.ohio-state.edu/~gurari %
18
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
19
 
\immediate\write-1{version 2001-09-05-00:34}
20
 
 
21
 
\exit:ifnot{latex,% 
22
 
tex4ht}
23
 
 
24
 
 
25
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
26
 
                \ConfigureHinput{tex4ht}
27
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
28
 
    \Configure{DOCTYPE}
29
 
   {\HCode{<?xml version="1.0"?>\Hnewline
30
 
      <!DOCTYPE html [\Hnewline<!ENTITY \% BlockOrInlineElements "script | math">\Hnewline
31
 
<!ENTITY \% ebook.dtd  PUBLIC
32
 
       "+//ISBN 0-9673008-1-9//DTD OEB 1.0 Document//EN"
33
 
       "oebdoc1.dtd">\Hnewline
34
 
\%ebook.dtd;\Hnewline
35
 
%
36
 
<!ENTITY \% mathml.dtd PUBLIC
37
 
    "-//W3C//DTD MathML 2.0//EN"\Hnewline\space\space
38
 
    "mathml2.dtd">
39
 
\Hnewline \%mathml.dtd;\Hnewline
40
 
]>\Hnewline}}
41
 
\Configure{$$}
42
 
   {\:xhtml{\IgnorePar\EndP}%
43
 
    \HCode{<div class="displaymath">}\DviMath}
44
 
   {\EndDviMath\HCode{</div>}\ShowPar\par{\HCondtrue\noindent}%
45
 
} {}
46
 
\Configure{PicMath}{}{}{}{ class="math" }
47
 
\Css{div.displaymath{text-align:center;}}
48
 
\Configure{DviMath}
49
 
    {\mathmltrue \NoFonts\IgnoreRule\HCode{<!--l.
50
 
       \the\inputlineno--><math  class="mathml"\Hnewline
51
 
             \expandafter\:rend \a:@math==//>}\a:math
52
 
       \IgnorePar}
53
 
    {\HCode{</math>}\EndIgnoreRule\EndNoFonts
54
 
     \mathmlfalse}
55
 
\def\:rend#1=#2=#3//{\if !#1!\else mode=#2\fi}
56
 
 
57
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
58
 
  
59
 
\endinput\empty\empty\empty\empty\empty\empty
60
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
61
 
 
62
 
 
63
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
64
 
                \ConfigureHinput{latex}
65
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
66
 
    \def\:MM{\ifmathml \let \prOteCt \relax \Protect \csname acp:c\endcsname {9}m\fi}
67
 
\Configure{HBorder}
68
 
   {<\:MM tr\Hnewline class="hline">}
69
 
   {\ifmathml<\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd><!--hr\xml:empty--></\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd>\else
70
 
            <td><hr\xml:empty></td>\fi}
71
 
   {</\:MM tr>}
72
 
   {<\:MM tr\Hnewline class="cline">}
73
 
   {<\:MM td></\:MM td>}
74
 
   {\ifmathml<\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd><!--hr\xml:empty--></\let \prOteCt \relax \Protect \csname acp:c\endcsname {9}mtd>\else
75
 
            <td><hr\xml:empty></td>\fi}
76
 
   {</\:MM tr>}
77
 
   {<\:MM tr\Hnewline class="vspace"
78
 
         style="font-size:\HBorderspace">}
79
 
   {<\:MM td\Hnewline>\ifmathml\else\string&\#x00A0;\fi
80
 
      </\:MM td>}
81
 
   {</\:MM tr>}
82
 
\Configure{newline}
83
 
  {\ifmtext \HCode{</mtext><mtext class="newline">}%
84
 
   \else \Tg<br class="newline" />\fi}
85
 
 
86
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
87
 
  
88
 
\endinput\empty\empty\empty\empty\empty\empty
89
 
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90
 
 
91
 
 
92
 
 
93
 
 
94
 
 
95
 
 
96
 
 
97
 
 
98
 
 
99
 
 
100
 
 
101
 
 
102
 
 
103
 
 
104
 
 
105
 
 
106
 
 
107
 
 
108
 
 
109
 
 
110
 
 
111
 
 
112
 
 
113
 
 
114
 
 
115
 
 
116
 
 
117
 
 
118
 
 
119
 
 
120
 
 
121
 
 
122
 
 
123
 
 
124
 
 
125
 
 
126
 
 
127
 
 
128
 
 
129
 
 
130
 
 
131
 
 
132
 
 
133
 
 
134
 
 
135
 
 
136
 
 
137
 
 
138
 
 
139
 
 
140
 
 
141
 
 
142
 
 
143
 
 
144
 
 
145
 
 
146
 
 
147
 
 
148
 
 
149
 
 
150
 
 
151
 
 
152
 
 
153
 
 
154
 
 
155
 
 
156
 
 
157
 
 
158
 
 
159
 
 
160
 
 
161
 
 
162
 
 
163
 
 
164
 
 
165
 
 
166
 
 
167
 
 
168
 
 
169
 
 
170
 
 
171
 
 
172
 
 
173
 
 
174
 
 
175
 
 
176
 
 
177
 
 
178
 
 
179
 
 
180
 
 
181
 
 
182
 
 
183
 
 
184
 
 
185
 
 
186
 
 
187
 
 
188
 
 
189
 
 
190
 
 
191
 
 
192
 
 
193
 
 
194
 
 
195
 
 
196
 
 
197
 
 
198
 
 
199
 
 
200
 
 
201
 
 
202
 
 
203
 
 
204
 
 
205
 
 
206
 
 
207
 
 
208
 
 
209
 
 
210
 
 
211
 
 
212
 
 
213
 
 
214
 
 
215
 
 
216
 
 
217
 
 
218
 
 
219
 
 
220
 
 
221
 
 
222
 
 
223
 
 
224
 
 
225
 
 
226
 
 
227
 
 
228
 
 
229
 
 
230
 
 
231
 
 
232
 
 
233
 
 
234
 
 
235
 
 
236
 
 
237
 
 
238
 
 
239
 
 
240
 
 
241
 
 
242
 
 
243
 
 
244
 
 
245
 
 
246
 
 
247
 
 
248
 
 
249
 
 
250
 
 
251
 
 
252
 
 
253
 
 
254
 
 
255
 
 
256
 
 
257
 
 
258
 
 
259
 
 
260
 
 
261
 
 
262
 
 
263
 
 
264
 
 
265
 
 
266
 
 
267
 
 
268
 
 
269
 
 
270
 
 
271
 
 
272
 
 
273
 
 
274
 
 
275
 
 
276
 
 
277
 
 
278
 
 
279
 
 
280
 
 
281
 
 
282
 
 
283
 
 
284
 
\endinput
285