Debian Codegraph @

texmf-dist/tex/generic/tex4ht/html-mltx.4ht

raw
1 % html-mltx.4ht (2016-07-04-10:35), generated from tex4ht-mathltx.tex
2 % Copyright 2009-2016 TeX Users Group
3 % Copyright 2005-2009 Eitan M. Gurari
4 %
5 % This work may be distributed and/or modified under the
6 % conditions of the LaTeX Project Public License, either
7 % version 1.3c of this license or (at your option) any
8 % later version. The latest version of this license is in
9 % http://www.latex-project.org/lppl.txt
10 % and version 1.3c or later is part of all distributions
11 % of LaTeX version 2005/12/01 or later.
12 %
13 % This work has the LPPL maintenance status "maintained".
14 %
15 % The Current Maintainer of this work
16 % is the TeX4ht Project <http://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 \immediate\write-1{version 2016-07-04-10:35}
21
22 \exit:ifnot{amsmath,%
23 array,%
24 frenchb,%
25 latex,%
26 plain,%
27 rlbabel,%
28 tex4ht}
29
30
31 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
32 \ConfigureHinput{tex4ht}
33 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
34 \Configure{halignTD} {}{}
35 {<}{\ifmathltx \HCode{ columnalign="left-0"}\else
36 \HCode{ style="text-align:left; white-space:nowrap;"}\fi}
37 {-}{\ifmathltx \HCode{ columnalign="center"}\else
38 \HCode{ style="text-align:center; white-space:nowrap;"}\fi}
39 {>}{\ifmathltx \HCode{ columnalign="right"}\else
40 \HCode{ style="text-align:right; white-space:nowrap;"}\fi}
41 {^}{\ifmathltx \HCode{ rowalign="top"}\else
42 \HCode{ style="vertical-align:top; white-space:nowrap;"}\fi}
43 {=}{\ifmathltx \HCode{ rowalign="baseline"}\else
44 \HCode{ style="vertical-align:baseline; white-space:nowrap;"}\fi}
45 {|}{\ifmathltx \HCode{ rowalign="center"}\else
46 \HCode{ style="vertical-align:middle; white-space:nowrap;"}\fi}
47 {_}{\ifmathltx \HCode{ rowalign="bottom"}\else
48 \HCode{ style="vertical-align:bottom; white-space:nowrap;"}\fi}
49 {p}{\ifmathltx \HCode{ columnalign="left-1"}\else
50 \HCode{ style="text-align:left;"}\fi}
51 {}
52
53 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
54
55 \endinput\empty\empty\empty\empty\empty\empty
56 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
57
58
59
60
61
62 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
63 \ConfigureHinput{latex}
64 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
65 \Configure{equation}
66 {\IgnorePar\ifvmode\else \HCode{<!--tex4ht:inline-->}\fi
67 \EndP
68 \HCode{<table class="equation"><tr><td>}\IgnorePar
69 \csname a:equation\string$\string$\endcsname
70 }
71 {\ifvmode \IgnorePar\fi\EndP\HCode{</td><td class="eq-no">}}
72 {\HCode{</td></tr></table>}\ShowPar\par{\HCondtrue\noindent}%
73 }
74 \Css{.equation td{text-align:center; vertical-align:middle; }}
75 \Css{td.eq-no{ width:5\%; }}
76 \Css{table.equation { width:100\%; } }
77 \Configure{romannumeral}
78 {\ifmtext\else
79 \HCode{<\ifmathltx mrow \else span \fi \mml:class="romannumeral">}\fi
80 }
81 {\ifmtext\else \HCode{</\ifmathltx mrow\else span\fi>}\fi }
82 \Configure{hspace}
83 {\ifmathltx \ifmtext \else
84 \HCode{\string\l:brace\the\tmp:dim\r:brace}\fi\fi}
85 {}{\ifmathltx \else \:nbsp\fi}
86 \:CheckOption{new-accents} \if:Option \else
87 \ifx \mathltx:on\:UnDef
88 \Configure{accents}
89 {\ifmmode \expandafter\mathord\fi
90 {\leavevmode
91 \if !#1!\ht:special{t4ht@+&{35}x#2;}%
92 \else \expandafter \ifx\csname U#2#1\endcsname\relax
93 \ht:special{t4ht@+&{35}x#2;}%
94 \else
95 \ht:special{t4ht@+&{35}x\csname U#2#1\endcsname;}%
96 \fi \fi x%
97 %
98 \ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
99 {\ifmmode
100 \Tg<mrow
101 \mml:class="accent#1">\mathord{#3}\Tg</mrow>%
102 \else \HCode{<span class="accent#1">}#3\HCode{</span>}%
103 \fi
104 }%
105 \fi
106 \fi
107
108 \Configure{newline}
109 {\ifmtext \ht:special{t4ht@,}%
110 \HCode{</mtext><mtext\Hnewline
111 \mml:class="newline">}%
112 \ht:special{t4ht@,&\#x00A0;}%
113 \ht:special{t4ht@, }%
114 %
115 \else \Tg<br\Hnewline class="newline" />\fi}
116 \Configure{mathltx[]}
117 {\edef\MathPar{\ifvmode par-\fi}\IgnorePar\endgraf\EndP
118 \HCode{<div class="\MathPar math-display">}}
119 {\HCode{</div>}\ShowPar\par{\HCondtrue\noindent}%
120 }
121 \Css{div.math-display, div.par-math-display{text-align:center;}}
122 \ConfigureEnv{array}
123 {\PushStack\Col:Marg\AllColMargins
124 \bgroup\Configure{$}{}{}{}}
125 {\egroup \PopStack\Col:Marg\AllColMargins}
126 {}{}
127 \def\:MM{\ifmathltx m\fi}
128 \Configure{HBorder}
129 {<\:MM tr\Hnewline
130 \ifmathltx \expandafter\mml:class\else class\fi="hline">}
131 {\ifmathltx<mtd><mo> \string&\#x0332; </mo></mtd>
132 \else
133 <td><hr\xml:empty></td>\fi}
134 {</\:MM tr>}
135 {<\:MM tr\Hnewline
136 \ifmathltx \expandafter\mml:class\else class\fi ="cline">}
137 {<\:MM td></\:MM td>}
138 {\ifmathltx<mtd><mo> \string&\#x0332; </mo></mtd>
139 \else
140 <td><hr\xml:empty></td>\fi}
141 {</\:MM tr>}
142 {<\:MM tr\Hnewline
143 \ifmathltx \expandafter\mml:class\else class\fi="vspace"
144 style="font-size:\HBorderspace">}
145 {<\:MM td\Hnewline>\ifmathltx\else\string&\#x00A0;\fi
146 </\:MM td>}
147 {</\:MM tr>}
148 \Configure{halign}
149 {\EndP\halignTB{halign}} \t:HA
150 \R:HA\r:HA\D:HA\d:HA
151 \:CheckOption{fonts} \if:Option
152 \Configure{texttt}
153 {\ifmathltx \Configure{@mtext}{\mml:class="texttt" mathvariant="monospace" }%
154 \else \HCode{<span class="texttt">}\fi}
155 {\ifmathltx \else \HCode{</span>}\fi}
156 \Configure{textit}
157 {\ifmathltx \Configure{@mtext}{\mml:class="textit" mathvariant="italic" }%
158 \else \HCode{<span class="textit">}\fi}
159 {\ifmathltx\else \HCode{</span>}\fi}
160 \Configure{textrm}
161 {\ifmathltx \Configure{@mtext}{ \mml:class="textrm" mathvariant="normal" }%
162 \else \HCode{<span class="textrm">}\fi}
163 {\ifmathltx\else \HCode{</span>}\fi}
164 \Configure{textup}
165 {\ifmathltx \Configure{@mtext}{ \mml:class="textup" mathvariant="normal" }%
166 \else \HCode{<span class="textup">}\fi}
167 {\ifmathltx\else \HCode{</span>}\fi}
168 \Configure{textsl}
169 {\ifmathltx \Configure{@mtext}{ \mml:class="textst" mathvariant="italic" }%
170 \else \HCode{<span class="textsl">}\fi}
171 {\ifmathltx\else \HCode{</span>}\fi}
172 \Configure{textsf}
173 {\ifmathltx \Configure{@mtext}{ \mml:class="textsf" mathvariant="sans-serif" }%
174 \else \HCode{<span class="textsf">}\fi}
175 {\ifmathltx\else \HCode{</span>}\fi}
176 \Configure{textbf}
177 {\ifmathltx \Configure{@mtext}{ \mml:class="textbf" mathvariant="bold" }%
178 \else \HCode{<span class="textbf">}\fi}
179 {\ifmathltx\else \HCode{</span>}\fi}
180 \Configure{textsc}
181 {\ifmathltx \Configure{@mtext}{ \mml:class="textsc" mathvariant="normal" }%
182 \else \HCode{<span class="textsc">}\fi}
183 {\ifmathltx\else \HCode{</span>}\fi}
184 \Configure{emph}
185 {\ifmathltx \Configure{@mtext}{ \mml:class="emph" mathvariant="italic" }%
186 \else \HCode{<span class="emph">}\fi}
187 {\ifmathltx\else \HCode{</span>}\fi}
188 \fi
189 \Css{math .texttt { font-family: monospace; }}
190 \Css{math .textit { font-style: italic; }}
191 \Css{math .textsl { font-style: oblique; }}
192 \Css{math .textsf { font-family: sans-serif; }}
193 \Css{math .textbf { font-weight: bold; }}
194 \Configure{multicolumn}
195 {\let\sv:VBorder\VBorder
196 \let\VBorder\empty
197 \Configure{VBorder}{}{}{}{}%
198 }
199 {\let\VBorder\sv:VBorder}
200 {\ifmmode \HCode{\l:brace}%
201 {\Configure{halignTD} {}{}
202 {<}{\HCode{l}}
203 {-}{\HCode{c}}
204 {>}{\HCode{r}}
205 {p}{\HCode{l}}
206 {}%
207 \HColAlign}%
208 \HCode{\r:brace\l:brace}\else
209 \ifvmode\IgnorePar\fi
210 \HCode{<div class="multicolumn" }\HColAlign\HCode{>}\fi }
211 {\ifmmode \HCode{\r:brace}\else
212 \ifvmode\IgnorePar\fi \EndP\HCode{</div>}\fi }
213 \def\gob:sp#1{#1}
214
215 \Configure{overline}
216 {\bgroup\ifmathltx \HCode{\string\overline\l:brace}%
217 \else
218 \HCode{<span class="overline">}\fi}
219 {\ifmathltx \HCode{\r:brace}%
220 \else \HCode{</span>}\fi\egroup}
221 \Configure{underline}
222 {\bgroup
223 \ifmathltx \HCode{\string\underline\l:brace}%
224 %
225 \else \expandafter\everymath
226 \expandafter{\expandafter\everymath
227 \expandafter{\the\everymath}}%
228 \let\o::@underline:\o:@@underline:
229 \def\o:@@underline:{\let\o:@@underline:\o::@underline:}%
230 \HCode{<span class="underline">}\fi}
231 {\ifmathltx \HCode{\r:brace}%
232 \else \HCode{</span>}\fi \egroup}
233 \Configure{footnote-mark}
234 {\ifmathltx \ifmtext \else
235 \HCode{<mrow \mml:class="footnote-mark">}\fi
236 \else \HCode{<span class="footnote-mark">}\fi }
237 {\ifmathltx \ifmtext \else \HCode{</mrow>}\fi
238 \else \HCode{</span>}\fi }
239 \Configure{thank-mark}
240 {\HCode{<\ifmathltx mrow \expandafter\mml:class\else span class\fi
241 ="thank-mark">}}
242 {\HCode{</\ifmathltx mrow\else span\fi>}}
243 \:CheckOption{fn-in}\if:Option \else
244 \expandafter\let\csname A:footnote-text\expandafter\endcsname
245 \csname a:footnote-text\endcsname
246 \expandafter\let\csname B:footnote-text\expandafter\endcsname
247 \csname b:footnote-text\endcsname
248 \NewConfigure{footnote-text}[2]{%
249 \expandafter\def\csname a:footnote-text\endcsname{%
250 #1%
251 \ifmathltx
252 \HCode{<\a:@math\Hnewline
253 \csname a:math-xmlns\endcsname \Hnewline >%
254 \ifmtext <mtext>\fi}
255 \fi
256 \ifmathltx \fi
257 }%
258 \expandafter\def\csname b:footnote-text\endcsname{%
259 \ifmathltx
260 \HCode{\ifmtext</mtext>\fi </\a:@math>}%
261 \fi
262 #2%
263 }%
264 }
265 \Configure{footnote-text}
266 {\csname A:footnote-text\endcsname}
267 {\csname B:footnote-text\endcsname}
268 \fi
269 \let\A:footnotetext=\a:footnotetext
270 \let\B:footnotetext=\b:footnotetext
271 \let\C:footnotetext=\c:footnotetext
272 \NewConfigure{footnotetext}[3]{%
273 \def\a:footnotetext{%
274 \ifmathltx \ifmtext \ht:special{t4ht@,}%
275 \fi\fi
276 #1%
277 \ifmathltx \ifmtext \ht:special{t4ht@,}%
278 \fi\fi
279 }%
280 \def\b:footnotetext{%
281 \ifmathltx \ifmtext \ht:special{t4ht@,}%
282 \fi\fi
283 #2%
284 \ifmathltx \ifmtext \ht:special{t4ht@,}%
285 \fi\fi
286 }%
287 \def\c:footnotetext{%
288 \ifmathltx \ifmtext \ht:special{t4ht@,}%
289 \fi\fi
290 #3%
291 \ifmathltx \ifmtext \ht:special{t4ht@,&\#x00A0;}%
292 \ht:special{t4ht@, }%
293 \fi\fi
294 }%
295 }
296 \Configure{footnotetext}
297 {\A:footnotetext}
298 {\B:footnotetext}
299 {\C:footnotetext}
300 \Configure{footnotebody}
301 {\tmp:toks=}
302 {\ifmathltx \ifmmode $\mbox{$\the\tmp:toks$}$
303 \else $\mbox{\the\tmp:toks}$\fi
304 \else \the\tmp:toks\fi}
305 \:CheckOption{mouseover} \if:Option
306 \pend:def\js:on{\ifmathltx \ifmtext \ht:special{t4ht@,}%
307 \fi\fi}
308 \append:def\js:on{\ifmathltx \ifmtext \ht:special{t4ht@,&\#x00A0;}%
309 \ht:special{t4ht@, }%
310 \fi\fi}
311 \fi
312
313 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
314
315 \endinput\empty\empty\empty\empty\empty\empty
316 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
344 \ConfigureHinput{amsmath}
345 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
346 \Configure{equation$$}
347 {\Configure{$$}
348 {\IgnorePar \Configure{@math}{div}\EndP\DviMath
349 \HCode{\string\begin{equation}}}
350 {\HCode{\string\end{equation}}\EndDviMath\EndP}
351 {\DisplayMathtrue}%
352 }
353 \ifx \mathdisplay@@pop\:UnDef
354 \ifx \emdf@La\:UnDef
355 \Configure{equation}
356 {\ifvmode \IgnorePar\fi \EndP
357 \HCode{<table class="equation"><tr><td>}%
358 \Configure{$$}{}{}{}%
359 \Configure{gather}
360 {\Configure{$$}
361 {\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
362 {\EndDviMath\EndP}%
363 {}%
364 \IgnorePar
365 }{}{}{}{}{}
366 %
367 \IgnorePar
368 }
369 {\ifvmode \IgnorePar\fi\EndP \HCode{</td><td class="eq-no">}}
370 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
371 \IgnoreIndent\par}
372 \Configure{equation*}
373 {\ifvmode \IgnorePar\fi \EndP
374 \HCode{<table class="equation-star"><tr><td>}%
375 \Configure{$$}{}{}{}%
376 \Configure{gather}
377 {\Configure{$$}
378 {\Configure{@math}{\mml:class="equation"}\IgnorePar\EndP\DviMath}
379 {\EndDviMath\EndP}%
380 {}%
381 \IgnorePar
382 }{}{}{}{}{}
383 %
384 \IgnorePar
385 }
386 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
387 \IgnoreIndent\par}
388
389 \else
390 \Configure{equation}
391 {\ifvmode \IgnorePar\fi \EndP
392 \HCode{<table class="EQUATION"><tr><td>}%
393 \Configure{gather}
394 {}
395 {}
396 {}
397 {}
398 {}
399 {}%
400 %
401 %
402 \IgnorePar
403 }
404 {\ifvmode \IgnorePar\fi\EndP
405 \HCode{</td><td class="eq-no">}%
406 }
407 {\ifvmode \IgnorePar\fi\EndP
408 \HCode{</td></tr></table>}%
409 \IgnoreIndent\par}
410 \Configure{equation*}
411 {\ifvmode \IgnorePar\fi \EndP
412 \HCode{<table class="EQUATION"><tr><td>}%
413 \Configure{gather}
414 {}
415 {}
416 {}
417 {}
418 {}
419 {}%
420 %
421 %
422 \IgnorePar
423 }
424 {\ifvmode \IgnorePar\fi\EndP
425 \HCode{</td></tr></table>}%
426 \IgnoreIndent\par}
427
428 \fi
429 \else
430 \Configure{equation}
431 {\ifvmode \IgnorePar\fi\EndP
432 \HCode{<table class="equation"><tr><td>}%
433 \Configure{gather}
434 {}
435 {}
436 {}
437 {}
438 {}
439 {}%
440 %
441 \csname a:equation\string$\string$\endcsname
442 %
443 }
444 {\ifvmode \IgnorePar\fi\EndP
445 \HCode{</td><td class="eq-no">}%
446 }
447 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
448 \ShowPar\IgnoreIndent\par}
449 \Configure{equation*}
450 {\ifvmode \IgnorePar\fi\EndP
451 \HCode{<table class="equation-star"><tr><td>}%
452 \Configure{gather}
453 {}
454 {}
455 {}
456 {}
457 {}
458 {}%
459 %
460 \csname a:equation\string$\string$\endcsname
461 %
462 }
463 {\ifvmode \IgnorePar\fi\EndP \HCode{</td></tr></table>}%
464 \ShowPar\IgnoreIndent\par}
465
466 \fi
467 \Configure{@begin}
468 {split}
469 {\let\tagform@=\:gobble }
470 \Css{mtd.align-odd{margin-left:2em; text-align:right;}}
471 \Css{mtd.align-even{margin-right:2em; text-align:left;}}
472 \Configure{boxed}
473 {\ifmathltx \HCode{\string\boxed\l:brace}%
474 \else \HCode{<span class="boxed">}\IgnorePar\fi}
475 {\ifmathltx \HCode{\r:brace}%
476 \else \HCode{</span>}\fi}
477 \Css{.boxed{border: 1px solid black; padding-left:2px;
478 padding-right:2px;}}
479
480 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
481
482 \endinput\empty\empty\empty\empty\empty\empty
483 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
484
485
486
487
488
489
490
491
492
493
494 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
495 \ConfigureHinput{plain}
496 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
497 \:CheckOption{new-accents} \if:Option \else
498 \ifx \mathltx:on\:UnDef
499 \Configure{accents}
500 {\ifmmode \expandafter\mathord\fi
501 {\leavevmode
502 \if !#1!\ht:special{t4ht@+&{35}x#2;}%
503 \else \expandafter \ifx\csname U#2#1\endcsname\relax
504 \ht:special{t4ht@+&{35}x#2;}%
505 \else
506 \ht:special{t4ht@+&{35}x\csname U#2#1\endcsname;}%
507 \fi \fi x%
508 %
509 \ht:special{t4ht@[}\if!#1!x\else#2\fi\ht:special{t4ht@]}}}
510 {\ifmmode
511 \Tg<mrow
512 \mml:class="accent#1">\mathord{#3}\Tg</mrow>%
513 \else \HCode{<span class="accent#1">}#3\HCode{</span>}%
514 \fi
515 }%
516 \fi
517 \fi
518
519
520 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
521
522 \endinput\empty\empty\empty\empty\empty\empty
523 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
549 \ConfigureHinput{array}
550 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
551 \ConfigureEnv{array}
552 {\PushStack\Col:Marg\AllColMargins
553 \bgroup\Configure{$}{}{}{}}
554 {\egroup \PopStack\Col:Marg\AllColMargins}
555 {}{}
556 \Configure{multicolumn}
557 {\let\sv:VBorder\VBorder
558 \let\VBorder\empty
559 \Configure{VBorder}{}{}{}{}%
560 }
561 {\let\VBorder\sv:VBorder}
562 {\ifmmode \HCode{\l:brace}%
563 {\Configure{halignTD} {}{}
564 {<}{\HCode{l}}
565 {-}{\HCode{c}}
566 {>}{\HCode{r}}
567 {p}{\HCode{l}}
568 {}%
569 \HColAlign}%
570 \HCode{\r:brace\l:brace}\else
571 \ifvmode\IgnorePar\fi
572 \HCode{<div class="multicolumn" }\HColAlign\HCode{>}\fi }
573 {\ifmmode \HCode{\r:brace}\else
574 \ifvmode\IgnorePar\fi \EndP\HCode{</div>}\fi }
575 \def\gob:sp#1{#1}
576
577
578 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
579
580 \endinput\empty\empty\empty\empty\empty\empty
581 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
649 \ConfigureHinput{rlbabel}
650 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
651 \Configure{moreL}
652 {\ifmathltx \ifmtext
653 \leavevmode\special{t4ht@+</mtext><mtext{32}\mml:class="ltr">}x%
654 \def\end:moreRL{\HCode{</mtext><mtext>}}%
655 \else
656 \let\end:moreRL=\empty
657 \fi
658 %
659 \else
660 \ifvmode \let\end:moreRL=\empty
661 \else\HCode{<span dir="ltr" >}%
662 \def\end:moreRL{\HCode{</span>}}%
663 \fi
664 \fi
665 }
666 {\end:moreRL}
667 \Configure{moreR}
668 {\ifmathltx \ifmtext
669 \leavevmode\special{t4ht@+</mtext><mtext{32}\mml:class="rtl">}x%
670 \def\end:moreRL{\HCode{</mtext><mtext>}}%
671 \else
672 \let\end:moreRL=\empty
673 \fi
674 %
675 \else
676 \ifvmode \let\end:moreRL=\empty
677 \else\HCode{<span dir="rtl" >}\def\end:moreRL{\HCode{</span>}}\fi
678 \fi
679 }
680 {\end:moreRL}
681 \Css{.rtl {direction: rtl}
682 .ltr {direction: ltr} }
683
684 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
685
686 \endinput\empty\empty\empty\empty\empty\empty
687 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
688
689
690
691
692
693
694
695 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
696 \ConfigureHinput{frenchb}
697 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
698 \Configure{frenchb-nbsp}
699 {\ifmtext \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
700 \else\ifmathltx
701 \Tg<mspace class="frenchb-nbsp" />%
702 \else
703 \ht:special{t4ht@?unhskip}\HCode{<span class="frenchb-thinspace">}%
704 \leavevmode\special{t4ht@+\string&{35}x00A0{59}}x%
705 \HCode{</span>}%
706 \fi\fi
707 \setbox\tmp:bx=\hbox\bgroup}
708 {\egroup}
709
710 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
711
712 \endinput\empty\empty\empty\empty\empty\empty
713 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979 \endinput
980