Debian Codegraph @

texmf-dist/tex/generic/tex4ht/mkht-scripts.4ht

raw
1 % mkht-scripts.4ht (2023-09-10-08:49), generated from tex4ht-mkht.tex
2 % Copyright 2009-2023 TeX Users Group
3 % Copyright 2000-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 <https://tug.org/tex4ht>.
17 %
18 % If you modify this program, changing the
19 % version identification would be appreciated.
20 %
21 \immediate\write-1{version \ifx \JOBNAME\UnDefined 2023-09-10-08:49\else |version\fi}
22
23
24 \ifx \JOBNAME\UnDef
25 \def\JOBNAME{mkht-scripts.4ht}
26 \def\next{\input ./mkht.4ht \endinput}
27 \expandafter\next
28 \fi
29
30 \Options{unix,bat} % {unix,bat}, {unix}, {bat}
31 \Latex{} % {}, {2e}, {209}
32
33 %%%%%%%%%%%%%%%%%%
34 \section{Unix Scripts}
35 %%%%%%%%%%%%%%%%%%
36 %%%%%%%%%%
37 \Ext{unix}
38 %%%%%%%%%%
39 \Base{}
40 \Quote{'}
41 \Argchar{$}
42 \Dirchar{-f/}
43 \Echooff{}
44 \Remark{#}
45
46 \ifOption{Needs}{%
47 \Script{% #1 -- file #2 -- extension
48 \Needs{"sed -e 's/\#\# -d/ -d/g' < #1.#2 > /opt/cvr/gurari/tex4ht.dir/bin/solaris/#1"}%
49 \Needs{"chmod 700 /opt/cvr/gurari/tex4ht.dir/bin/solaris/#1"}%
50 \Needs{"mkdir -p mn.dir/ht-unix"}%
51 \Needs{"cp #1.#2 mn.dir/ht-unix/#1"}%
52 }}{}
53 \Script{% #1 -- file #2 -- extension
54 \Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht"}%
55 \Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht/unix"}%
56 \Needs{"mv #1.#2 /opt/cvr/gurari/tex4ht.dir/bin/ht/unix/#1"}%
57 \Needs{"chmod 744 /opt/cvr/gurari/tex4ht.dir/bin/ht/unix/#1"}%
58 }
59
60 \Ii{,html}
61 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1}
62 \Iv{#1 ## -d~/WWW/temp/ -m644 }
63
64 \make{ht}
65 \<ht.unix\><<<
66 |<unix line|>|<windows line|>$1 $2
67 $1 $2
68 $1 $2
69 tex4ht $2
70 t4ht $2 $3
71 >>>
72 \OutputCodE\<ht.unix\> \script{ht}{unix} %
73 \Ii{,xhtml}
74 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1}
75 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
76 \make{xh}
77 \Ii{,xhtml,uni-html4}
78 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
79 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
80 \make{uxh}
81 \Ii{,xhtml,mathml}
82 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
83 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
84 \make{xhm}
85 \Ii{,xhtml,mozilla}
86 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf}
87 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
88 \make{mz}
89 \Ii{,xhtml,ooffice}
90 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf}
91 \Iv{#1 -cooxtpipes -coo }
92 \make{oo}
93 \Ii{,xhtml,emspk}
94 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cemspkhtf -s4es}
95 \Iv{#1 -cemspk ## -d~/WWW/temp/ -m644 }
96 \make{es}
97 \Ii{,xhtml,jsml}
98 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cjsmlhtf }
99 \Iv{#1 -cjsml ## -d~/WWW/temp/ -m644 }
100 \make{js}
101 \Ii{,xhtml,jsmath}
102 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf }
103 \Iv{#1 ## -d~/WWW/temp/ -m644 }
104 \make{jm}
105 \Ii{,xhtml,tei}
106 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
107 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
108 \make{tei}
109
110 \Ii{,xhtml,tei-mml}
111 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
112 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
113 \make{teim}
114 \Ii{,xhtml,docbook}
115 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
116 \Iv{#1 -cvalidate -cdocbk ## -d~/WWW/temp/ -m644 }
117 \make{db}
118
119 \Ii{,xhtml,docbook-mml}
120 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cunihtf}
121 \Iv{#1 -cdocbk ## -d~/WWW/temp/ -m644 }
122 \make{dbm}
123 \Ii{,xhtml,word}
124 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -csymhtf}
125 \Iv{#1 -cvalidate ## -d~/WWW/temp/ -m644 }
126 \make{w}
127 \Ii{,html,javahelp,xml,3.2,unicode}
128 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf -u10}
129 \Iv{#1 -d$1-doc/ -cjavahelp -cvalidatehtml -m644}
130 \make{jh}
131 \Ii{,html,javahelp,xml,3.2,unicode,jh1.0}
132 \Iii{-i~/tex4ht.dir/texmf/tex4ht/ht-fonts/#1 -cmozhtf -u10}
133 \Iv{#1 -d$texFile-doc/ -cjavahelp1 -m644 }
134 \make{jh1}
135
136
137 %%%%%%%%%%%%%%%%%%
138 \section{MS Window Scripts}
139 %%%%%%%%%%%%%%%%%%
140 %%%%%%%%%%%%%%%%%%
141 \Options{bat}
142 %%%%%%%%%%%%%%%%%%
143 %%%%%%%%%
144 \Ext{bat}
145 %%%%%%%%%
146 \Base{}
147 \Quote{}
148 \Argchar{%}
149 \Dirchar{}
150 \Echooff{@echo off}
151 \Remark{Rem }
152
153 \ifOption{Needs}{\Script{%
154 \Needs{"mkdir -p mn.dir/ht-win32"}%
155 \Needs{"cp #1.#2 mn.dir/ht-win32/."}%
156 }}{}
157 \Script{% #1 -- file #2 -- extension
158 \Needs{"mkdir -p /opt/cvr/gurari/tex4ht.dir/bin/ht/win32"}%
159 \Needs{"mv #1.#2 /opt/cvr/gurari/tex4ht.dir/bin/ht/win32/#1.#2"}%
160 \Needs{"chmod 744 /opt/cvr/gurari/tex4ht.dir/bin/ht/win32/#1.#2"}%
161 }
162
163 \Ii{,html}
164 \Iii{-i/tex4ht/ht-fonts/#1
165 -ewin32/tex4ht.env}
166 \Iv{#1 -ewin32/tex4ht.env }
167
168 \make{ht}
169 \<ht.bat\><<<
170 |<windows line|>
171 %1 %2
172 %1 %2
173 %1 %2
174 tex4ht %2
175 t4ht %2 %3
176 >>>
177 \OutputCodE\<ht.bat\> \script{ht}{bat} %
178 \Ii{,xhtml}
179 \Iii{-i/tex4ht/ht-fonts/#1
180 -ewin32/tex4ht.env}
181 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
182 \make{xh}
183 \Ii{,xhtml,uni-html4}
184 \Iii{-i/tex4ht/ht-fonts/#1
185 -ewin32/tex4ht.env
186 -cunihtf}
187 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
188 \make{uxh}
189 \Ii{,xhtml,mathml}
190 \Iii{-i/tex4ht/ht-fonts/#1
191 -ewin32/tex4ht.env -cunihtf}
192 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
193 \make{xhm}
194 \Ii{,xhtml,mozilla}
195 \Iii{-i/tex4ht/ht-fonts/#1
196 -ewin32/tex4ht.env -cmozhtf}
197 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
198 \make{mz}
199 \Ii{,xhtml,ooffice}
200 \Iii{-i/tex4ht/ht-fonts/#1
201 -ewin32/tex4ht.env -cmozhtf}
202 \Iv{#1 -cooxtpipes -coo -ewin32/tex4ht.env -cvalidate }
203 \make{oo}
204 \Ii{,xhtml,emspk}
205 \Iii{-itex4ht/ht-fonts/#1
206 -ewin32/tex4ht.env -cemspkhtf -s4es}
207 \Iv{#1 -ewin32/tex4ht.env -cemspk }
208 \make{es}
209 \Ii{,xhtml,jsml}
210 \Iii{-i/tex4ht/ht-fonts/#1
211 -ewin32/tex4ht.env -cjsmlhtf }
212 \Iv{#1 -ewin32/tex4ht.env -cjsml }
213 \make{js}
214 \Ii{,xhtml,jsmath}
215 \Iii{-i/tex4ht/ht-fonts/#1
216 -ewin32/tex4ht.env -cmozhtf }
217 \Iv{#1 -ewin32/tex4ht.env }
218 \make{jm}
219 \Ii{,xhtml,tei}
220 \Iii{-i/tex4ht/ht-fonts/#1
221 -ewin32/tex4ht.env -cunihtf}
222 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
223 \make{tei}
224
225 \Ii{,xhtml,tei-mml}
226 \Iii{-i/tex4ht/ht-fonts/#1
227 -ewin32/tex4ht.env -cunihtf}
228 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
229 \make{teim}
230 \Ii{,xhtml,docbook}
231 \Iii{-i/tex4ht/ht-fonts/#1
232 -ewin32/tex4ht.env -cunihtf}
233 \Iv{#1 -ewin32/tex4ht.env -cvalidate -cdocbk }
234 \make{db}
235
236 \Ii{,xhtml,docbook-mml}
237 \Iii{-i/tex4ht/ht-fonts/#1
238 -ewin32/tex4ht.env -cunihtf}
239 \Iv{#1 -ewin32/tex4ht.env -cvalidate -cdocbk }
240 \make{dbm}
241 \Ii{,xhtml,word}
242 \Iii{-i/tex4ht/ht-fonts/#1
243 -ewin32/tex4ht.env -csymhtf}
244 \Iv{#1 -ewin32/tex4ht.env -cvalidate }
245 \make{w}
246 \Ii{,html,javahelp,xml,3.2,unicode}
247 \Iii{-i/tex4ht/ht-fonts/#1
248 -ewin32/tex4ht.env
249 -cmozhtf -u10}
250 \Iv{#1 -ewin32/tex4ht.env -d%1-doc\ -cjavahelp }
251 \make{jh}
252 \Ii{,html,javahelp,xml,3.2,unicode,jh1.0}
253 \Iii{-i/tex4ht/ht-fonts/#1
254 -ewin32/tex4ht.env
255 -cmozhtf -u10}
256 \Iv{#1 -ewin32/tex4ht.env -d%1-doc\ -cjavahelp1 }
257 \make{jh1}
258
259 \immediate\write16{--------------------------------------------------------}
260 \immediate\write16{* Compile mkht-scripts.4ht with latex to get the
261 full scripts.}
262 \immediate\write16{* For shorter latex2e scripts, compile a file whose
263 content is:}
264 \immediate\write16{\space\space\space\space\def\string\latex{2e}
265 \string\input\space mkht-scripts.4ht }
266 \immediate\write16{* For shorter latex209 scripts, compile a file whose
267 content is:}
268 \immediate\write16{\space\space\space\space\def\string\latex{209}
269 \string\input\space mkht-scripts.4ht }
270 \immediate\write16{* Remove the extension .unix from the file names }
271 \immediate\write16{--------------------------------------------------------}
272
273
274 \end{document}
275