summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex4ht/base/unix/tex4ht.env
blob: fe925e59e05f8934eb7b1b65369d1833fe8786d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
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
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
% tex4ht.env (private) (2024-06-23-13:56), generated from tex4ht-env.tex
% (can be used as ~/.tex4ht)
% Copyright 2009-2023 TeX Users Group
% Copyright 1997-2009 Eitan M. Gurari
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3c of this license or (at your option) any
% later version. The latest version of this license is in
%   https://www.latex-project.org/lppl.txt
% and version 1.3c or later is part of all distributions
% of LaTeX version 2005/12/01 or later.
%
% This work has the LPPL maintenance status "maintained".
%
% The Current Maintainer of this work
% is the TeX4ht Project <https://tug.org/tex4ht>.
%
% If you modify this program, changing the
% version identification would be appreciated.%
%
% Notes:
% 1. Empty lines might be harmful.
%
% 2. Tagged script segments <tag>...</tag> are scanned only if
%    their names are specified within -ctag switches of tex4ht.c
%    and t4ht.c. When -c switches are not supplied, a -cdefault
%    is implicitly assumed.
%       The tags <tag> and </tag>, but not their bodies, are
%    ignored if they are not located at the start of their lines.
%
% 3. Place this file in your work directory and/or root directory
%    and/or in directory `xxx' of your choice. In the latest case,
%    compile tex4ht.c and t4ht.c with `#define ENVFILE xxx', or
%    provide the location of the file to tex4ht and t4ht with
%    the -e switch.
%
% 4. Under kpathsea, the substring `%%~' may be employed in
%    commands to obtain the value of ${TEXMFDIST}.
%
%
% * Replace `path', and possibly what follows, with appropriate     %
%   content                                                         %
% * A path may start with:                                          %
%   ~ for environment variable HOME                                 %
%   ~~ for environment variable TEX4HTTFM                           %
%   %%~ for ${TEXMFDIST} of KPATHSEA                                %
% * A ! requests recursive search into subdirectories               %
% * Multiple t and i entries are allowed                            %
% * When supported by kpathsea                                      %
%   + t entries are ignored                                         %
%   + the path before /ht-fonts/ is ignored in i records that don't %
%     represent real addresses                                      %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
t/usr/local/teTeX/share/texmf/fonts/tfm/!
t/var/tmp/texfonts/tfm/!
 t/usr/local/teTeX/texmf/fonts/vf/!
%
<default>
i%%~/tex4ht/ht-fonts/iso8859/1/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/mozilla/!
i%%~/tex4ht/ht-fonts/unicode/!
</default>

<mozhtf>
i%%~/tex4ht/ht-fonts/mozilla/!
i%%~/tex4ht/ht-fonts/unicode/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
</mozhtf>

<iso2htf>
i%%~/tex4ht/ht-fonts/iso8859/2/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/unicode/!
</iso2htf>

<iso5htf>
i%%~/tex4ht/ht-fonts/iso8859/5/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/unicode/!
</iso5htf>

<iso7htf>
i%%~/tex4ht/ht-fonts/iso8859/7/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/unicode/!
</iso7htf>

<iso8htf>
i%%~/tex4ht/ht-fonts/iso8859/8/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/unicode/!
</iso8htf>

<iso15htf>
i%%~/tex4ht/ht-fonts/iso8859/15/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/unicode/!
</iso15htf>

<koi8rhtf>
i%%~/tex4ht/ht-fonts/koi/8r/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/unicode/!
</koi8rhtf>

<symhtf>
i%%~/tex4ht/ht-fonts/symbol/!
i%%~/tex4ht/ht-fonts/unicode/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
</symhtf>

<win1251htf>
i%%~/tex4ht/ht-fonts/win/1251/!
i%%~/tex4ht/ht-fonts/unicode/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
</win1251htf>

<unihtf>
i%%~/tex4ht/ht-fonts/unicode/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
</unihtf>

<emspkhtf>
i%%~/tex4ht/ht-fonts/html-speech/!
i%%~/tex4ht/ht-fonts/unicode/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
i%%~/tex4ht/ht-fonts/css/emacspeak/!
</emspkhtf>

<jsmlhtf>
i%%~/tex4ht/ht-fonts/jsml/!
i%%~/tex4ht/ht-fonts/unicode/!
i%%~/tex4ht/ht-fonts/ascii/!
i%%~/tex4ht/ht-fonts/alias/!
</jsmlhtf>

%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Select one of the G scripts                                       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% dvips options                                                     %
%   magnification: -x mag  (e.g., -x 1200)                          %
%   page size:     -T x,y  (e.g., -T 14in,14in)                     %
%   gs fonts:      -Pfont  (e.g., -Pcmz -Pamz)                      %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<convert-old>
 G.png
 Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
 Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
 Grm zz%%4.ps    
G.svg
Gdvisvgm -n -p %%2 --exact -c 1.4,1.4 -o %%3 %%1  
G.
Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
Ggs -sDEVICE=ppm -sOutputFile=zz%%4.ppm -r110x110 -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
Gconvert zz%%4.ppm -crop 0x0 +page -density 110x110 -transparent '#FFFFFF' %%3
Grm zz%%4.ps
Grm zz%%4.ppm    
</convert-old>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
<netpbm>
Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2  > zz%%4.ps
Ggs -sDEVICE=ppm -r110 -sOutputFile=zz%%4.ppm -q -dbatch -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dNOPAUSE zz%%4.ps -c quit
Gmv zz%%4.ppm temp.ppm
Gpnmcrop  temp.ppm > zz%%4.ppm
Gpnmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
 Gppmtopng -interlace -transparent 1,1,1 zz%%4.ppm > %%3
Grm zz%%4.ps
Grm zz%%4.ppm
Grm temp.ppm
% Gppmtogif -interlace -transparent 1,1,1 zz%%4.ppm > %%3 
</netpbm>
 <dvipng>
G.png
%echo "dbg: got to dvi to png via (dvipng)"
Gdvipng -T tight -D 144 -bg Transparent -pp %%2:%%2 %%1 -o %%3
G.gif
Gdvipng -T tight -D 144 -bg Transparent -gif -pp %%2:%%2 %%1 -o %%3
G.svg
Gdvisvgm -n -p %%2 --exact -c 1.4,1.4 -o %%3 %%1  
G.
Gdvipng -T tight -D 144 -bg Transparent -pp %%2:%%2 %%1 -o %%3
% avoiding convert for mactex.
% Gdvips -Ppdf -mode ibmvga -D 110 -f %%1 -pp %%2 > zz%%4.ps
% Gconvert -crop 0x0 -density 110x110 -transparent '#FFFFFF' zz%%4.ps %%3
%Grm zz%%4.ps
  </dvipng>

 <convert>
Gdvips -E -q -Ppdf -f %%1 -pp %%2 > zz%%4.ps
Ggs -sDEVICE=pngalpha -sOutputFile=%%3 -r110x110 -dEPSCrop -dBackgroundColor=16#ffffff -dTextAlphaBits=2 -dGraphicsAlphaBits=2 -q -dbatch -dNOPAUSE zz%%4.ps -c quit
Grm zz%%4.ps 
 </convert>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Default scripts, shifted rightward 1 pos
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 s--- needs --- %%1.idv[%%2] ==> %%3 ---
 b--- characters ---
 g.png
% empty bitmaps                                                     %
 Ecopy  empty.png %%1%%2
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 %
%
%
% t4ht -d%%2                                                        %
Mmv %%1 %%2%%3
Ccp %%1 %%2%%3
% t4ht -e%%1 -d%%2                                                  %
Ecp empty.png %%1%%2
% t4ht -d%%2 -m%%1                                                  %
Achmod %%1 %%2%%3
% removed protection                                                %
S*
%
% * Address for an automatically created bookkeeping file           %
% * The work directory is assumed for a default                     %
l~/tex4ht.dir/tex4ht.fls
%
<javahelp>
.html mv %%1.html %%1.tmp
.html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s javahelp.4xt -o %%1.html %%1.tmp
.jhm echo "java -jar ${HOME}/javahelp.dir/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html"
.jhm echo "--- Warning --- Beware of leftover %%1*.html files from other compilations"
.jhm java -jar ${HOME}/javahelp.dir/jh2.0/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
</javahelp>
<javahelp-prog>
.java rm -r -f %%0-java.dir
.java mkdir %%0-java.dir
.java cp *.java %%0-java.dir/.
.java javac -classpath ${HOME}/javahelp.dir/jh2.0/javahelp/lib/jh.jar %%0-java.dir/%%1.java
.java chdir %%0-java.dir; jar -cf %%1.jar *.class ;  chdir  ..
.java mv %%0-java.dir/%%1.jar .
.java rm -r -f %%0-java.dir
.java zip -r %%1 %%0-doc %%1.jar
</javahelp-prog>
<javahelp1>
.jhm java -jar ${HOME}/javahelp.dir/jh1.1.3/javahelp/bin/jhindexer.jar -db %%0-doc/%%1-jhs %%1*.html
</javahelp1>
<javahelp1-prog>
.java rm -r -f %%0-java.dir
.java mkdir %%0-java.dir
.java cp *.java %%0-java.dir/.
.java javac -classpath ${HOME}/javahelp.dir/jh1.1.3/javahelp/lib/jh.jar %%0-java.dir/%%1.java
.java chdir %%0-java.dir; jar -cf %%1.jar *.class ;  chdir  ..
.java mv %%0-java.dir/%%1.jar .
.java rm -r -f %%0-java.dir
.java zip -r %%1 %%0-doc %%1.jar
</javahelp1-prog>

<emspk>
.html mv %%1.html %%1.tmp
.html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.html %%1.tmp
.html xmllint --noout %%1.html
</emspk>

<jsml>
.jsml mv %%1.jsml %%1.tmp
.jsml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.jsml %%1.tmp
.jsml xmllint --noout %%1.jsml
</jsml>

<docbk>
.xml cp %%1.xml %%1.tmp
.xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.xml %%1.tmp
.xml xmllint --relaxng /home/4/gurari/dtd.dir/docbook.dir/docbook-5.0/rng/docbook.rng -noout -dropdtd -nonet %%0.xml
</docbk>

<xhtml>
.html mv %%1.html %%1.tmp
.html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.html %%1.tmp
.html xmllint --noout %%1.html
.xht mv %%1.xht %%1.tmp
.xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xht %%1.tmp
.xht xmllint --noout %%1.xht
.xml mv %%1.xml %%1.tmp
.xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtml.4xt -o %%1.xml %%1.tmp
.xml xmllint --noout %%1.xml
</xhtml>

<xhtmml>
.html mv %%1.html %%1.tmp
.html java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.html %%1.tmp
.html xmllint --noout %%1.html
.xht mv %%1.xht %%1.tmp
.xht java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xht %%1.tmp
.xht xmllint --noout %%1.xht
.xml mv %%1.xml %%1.tmp
.xml java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -s xhtmml.4xt -o %%1.xml %%1.tmp
.xml xmllint --noout %%1.xml
</xhtmml>
  
<ooxtpipes>
.4oo mv %%0.4oo %%0.tmp
.4oo java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%0.4oo %%0.tmp
.4om mv %%1.4om %%1.tmp
.4om java -classpath %%~/tex4ht/bin/tex4ht.jar xtpipes -i %%~/tex4ht/xtpipes/ -o %%1.4om %%1.tmp
</ooxtpipes>

<validatehtml>
.html xmllint --noout --valid --html %%1.html
.xml xmllint --noout --valid %%1.xml
 .hs java -cp ./tex4ht.dir/texmf/tex4ht/bin/xv4ht.jar xv4ht %%1.hs ./tex4ht.dir/texmf/tex4ht/base/solaris/xv4ht.cat
 .jhm java -cp ./tex4ht.dir/texmf/tex4ht/bin/xv4ht.jar xv4ht %%1.jhm ./tex4ht.dir/texmf/tex4ht/base/solaris/xv4ht.cat
.css vcss %%1.css
</validatehtml>
<validate>
.xml xmllint --noout --valid %%1.xml
.html xmllint --noout --valid %%1.html
.css vcss %%1.css
 .4om echo "rxp -V -s -e %%1.4om"
 .4om rxp -V -s -e %%1.4om
 .4oo xmllint --relaxng ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.0-os.rng -noout %%0.4oo
.4oo xmllint --relaxng  ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.1.rng -noout %%0.4oo
 .4oy xmllint --relaxng ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.0-os.rng -noout %%0-styles.4oy
.4oy xmllint --relaxng  ~/dtd.dir/openoffice/relaxng.dir/OpenDocument-schema-v1.1.rng -noout %%0-styles.4oy
.4om perl -pe 's/math://g' %%1.4om | perl -pe 's/xmlns:[^=]*="[^"]*"//g' | perl -pe 's/xlink:[^=]*="[^"]*"//g' > tmp.tmp ; xmllint --valid --noout --catalogs tmp.tmp
</validate>
 Xmake -f \HOME texmf/base/NSGMLS name=%%1  ext=%%2 %%3
 %
<oo>
%%% openoffice                                                      %
.4oo mkdir sxw-%%0.dir
.4os mkdir sxw-%%0.dir/Pictures
.4os mv    %%1.4os         sxw-%%0.dir/settings.xml
.4oo mv    %%0.4oo         sxw-%%0.dir/content.xml
%                                                                   %
.4om mkdir sxw-%%0.dir/%%1
.4om mv    %%1.4om         sxw-%%0.dir/%%1/content.xml
.4om cp    sxw-%%0.dir/settings.xml  sxw-%%0.dir/%%1/settings.xml
%                                                                   %
.4of mkdir sxw-%%0.dir/META-INF
.4of mv    %%1.4of         sxw-%%0.dir/META-INF/manifest.xml
%                                                                   %
.4ot mv    %%1.4ot         sxw-%%0.dir/meta.xml
.4oy mv    %%1.4oy         sxw-%%0.dir/styles.xml
% .4og cp  --parents %%1   Pictures
% .4og mkdir -p              sxw-%%0.dir/Pictures/%%1
% .4og rmdir                 sxw-%%0.dir/Pictures/%%1
.4og cp    %%1             sxw-%%0.dir/Pictures/
%-- sxw --                                                          %
.4ox cd sxw-%%0.dir; zip -r %%0.sxw * ; cd ..
%                                                                   %
.4ox mv    sxw-%%0.dir/%%0.sxw .
%                                                                   %
.4ox rm    %%1.4ox
.4ox rm -r -f sxw-%%0.dir
%-- odt --                                                          %
.4od cd sxw-%%0.dir; zip -r %%0.odt * ; cd ..
%                                                                   %
.4od mv    sxw-%%0.dir/%%0.odt .
%                                                                   %
.4od rm    %%1.4od
.4od rm -r -f sxw-%%0.dir
%%% end openoffice                                                  %
</oo>
%
% end of file