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
|
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/TR/xhtml1/transitional"
>
<head><title>driver</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="generator" content="TeX4ht (http://www.cis.ohio-state.edu/~gurari/TeX4ht/mn.html)" />
<!--xhtml,th4,index-->
<meta name="src" content="mn.tex" />
<meta name="date" content="2001-02-28 17:02:00" />
<link rel="stylesheet" type="text/css" href="mn.css" />
</head><body
>
<a
href="mn38.html#mn47.html" >exit driver</a>
<h3 class="SubSectionHead"><a
name="QQ1-47-42"></a>Driving the Translation of Pictures and Other Tasks</h3>
<!--l. 6350--><p class="noindent"><a
name="index47-42001"></a> <a
name="index47-42002"></a> <a
name="index47-42003"></a>Tex4ht outputs a script file (‘<span class="cmtt-10">.lg</span>’) describing how the dvi file (extension ‘<span class="cmtt-10">.idv</span>’) of pictures should
be processed, the CSS instructions to be included for the file, and user-initiated requests from the
operating system. In the default setting, the script file holds abstract commands similar to the following
ones.
</p><dl > <dt><span class="cmtt-10">--- needs --- source.idv[i] ==> target.gif ---</span></dt><dd>
<!--l. 6361--><p class="indent"> An abstract command of this form requests that the i’th page in the dvi file will be translated into a target file
whose name is provided.
</p>
</dd><dt><span class="cmtt-10">--- characters --- </span></dt><dd>
<!--l. 6369--><p class="indent"> This abstract command is a identifies where the requests for pictorial characters start.
</p>
</dd></dl>
<!--l. 6374--><p class="indent"> A manual brute-force execution of the abstract commands can be a tedious job for large number of pictures.
The <span class="cmtt-10">t4ht </span>is in essence an interpreter for these abstract commands.
</p><!--l. 6379--><p class="indent"> Another possible approach for automating the process is to request lg scripts in the form of shell scripts or
batch files.
</p><!--l. 6386--><p class="indent"> <big><span class="cmbx-10">Alternatives to ‘</span><span class="cmtt-10">--- needs --- source.idv[i] ==> target.gif ---</span><span class="cmbx-10">’</span></big>
</p><!--l. 6389--><p class="indent"> The default setting is made with a request of the form ‘<span class="cmtt-10">--- needs --- %%1.idv[%%2] ==> %%3.gif ---</span>’,
where the parameters <span class="cmtt-10">%%1</span>, <span class="cmtt-10">%%2</span>, and <span class="cmtt-10">%%3 </span>respectively represent the name of the source file without
its extension, a page number, and a name of the target file. Alternative patterns to these abstract
commands can be requested in the following locations, with the order reflecting on the priority given to the
requests.
</p><!--l. 6398--><p class="indent">
</p><ul type="disc" >
<li>In the <a
href="mn29.html" >command line</a> of <span class="cmtt-10">tex4ht</span>, where the pattern should be prefixed with ‘<span class="cmtt-10">-s</span>’.
<!--l. 6402--><p class="noindent"></p></li>
<li>In the environment file <span class="cmtt-10">tex4ht.env </span>within a block of consecutive lines, where the lines should be identified with the
character <a
href="mn41.html#sc-1" name="sc">‘<span class="cmtt-10">s</span>’</a>.
<!--l. 6406--><p class="noindent"></p></li>
<li>In <span class="cmtt-10">tex4ht </span>with the pattern provided through the variable <a
href="#-LGPIC" name="LGPIC">LGPIC</a> of <span class="cmtt-10">tex4ht.c</span>.
</li></ul>
The character ‘<span class="cmtt-10">%</span>’ can be introduced into a pattern through the entry ‘<span class="cmtt-10">%%%</span>’. On the other hand, the
parameters ‘<span class="cmtt-10">%%1</span>’, ‘<span class="cmtt-10">%%2</span>’, and <span class="cmtt-10">%%3 </span>can specify, between the first two percentage characters (i.e., ‘<span class="cmtt-10">%...%1</span>’,
‘<span class="cmtt-10">%...%2</span>’, and ‘<span class="cmtt-10">%...%3</span>’), any format for the outcome that is compatible with the print formats of
C.
<!--l. 6418--><p class="indent"> <big><span class="cmbx-10">Alternatives to ‘</span><span class="cmtt-10">--- characters ---</span><span class="cmbx-10">’</span></big>
</p><!--l. 6420--><p class="indent"> Substitutions for this abstract command can be requested in the following locations.
</p><!--l. 6427--><p class="indent">
</p><ul type="disc" >
<li>In the <a
href="mn29.html" >command line</a> of <span class="cmtt-10">tex4ht</span>, prefixed with ‘<span class="cmtt-10">-b</span>’.
<!--l. 6432--><p class="noindent"></p></li>
<li>In a line within the environment file ‘<span class="cmtt-10">tex4ht.file</span>’, where the line should be identified with the character
‘<a
href="mn41.html#bsc-1" name="bsc">b</a>’.
<!--l. 6436--><p class="noindent"></p></li>
<li>In <span class="cmtt-10">tex4ht </span>with the substitution provided during compilation time through the variable <a
href="#-LGSEP" name="LGSEP">LGSEP</a> of
<span class="cmtt-10">tex4ht.c</span>.
</li></ul>
</body></html>
|