192 KB
/srv/reproducible-results/rbuild-debian/r-b-build.wIhAG2r8/b1/htp_1.19-8_armhf.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.wIhAG2r8/b2/htp_1.19-8_armhf.changes
264 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·ed67a0e94085fc733397c7354a726286·69240·debug·optional·htp-dbgsym_1.19-8_armhf.deb1 ·ed67a0e94085fc733397c7354a726286·69240·debug·optional·htp-dbgsym_1.19-8_armhf.deb
2 ·4f48562eea33ed7f8b4a0380836a27a8·112856·web·optional·htp_1.19-8_armhf.deb2 ·05d5ffcf7f7cfe75a579b8403c88a4a6·111408·web·optional·htp_1.19-8_armhf.deb
192 KB
htp_1.19-8_armhf.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary
2 -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3620·2020-06-14·23:21:19.000000·control.tar.xz
3 -rw-r--r--···0········0········0···109048·2020-06-14·23:21:19.000000·data.tar.xz3 -rw-r--r--···0········0········0···107596·2020-06-14·23:21:19.000000·data.tar.xz
563 B
control.tar.xz
535 B
control.tar
465 B
./control
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 Package:·htp1 Package:·htp
2 Version:·1.19-82 Version:·1.19-8
3 Architecture:·armhf3 Architecture:·armhf
4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>
5 Installed-Size:·6285 Installed-Size:·599
6 Depends:·libc6·(>=·2.34)6 Depends:·libc6·(>=·2.34)
7 Section:·web7 Section:·web
8 Priority:·optional8 Priority:·optional
9 Homepage:·http://htp.sourceforge.net9 Homepage:·http://htp.sourceforge.net
10 Description:·nice·HTML·pre-processor10 Description:·nice·HTML·pre-processor
11 ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool11 ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool
12 ·that·can·easily·be·integrated·into·the·HTML·design·process.12 ·that·can·easily·be·integrated·into·the·HTML·design·process.
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
191 KB
data.tar.xz
191 KB
data.tar
15.4 KB
file list
    
Offset 1, 27 lines modifiedOffset 1, 27 lines modified
1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./1 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./
2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/2 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/
3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/3 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/bin/
4 -rwxr-xr-x···0·root·········(0)·root·········(0)····42560·2020-06-14·23:21:19.000000·./usr/bin/htp4 -rwxr-xr-x···0·root·········(0)·root·········(0)····42560·2020-06-14·23:21:19.000000·./usr/bin/htp
5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/5 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/
6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/6 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/
7 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/7 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/
8 -rw-r--r--···0·root·········(0)·root·········(0)····10522·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html8 -rw-r--r--···0·root·········(0)·root·········(0)·····9546·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html
9 -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp9 -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp
10 -rw-r--r--···0·root·········(0)·root·········(0)·····9462·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html10 -rw-r--r--···0·root·········(0)·root·········(0)·····7882·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html
11 -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp11 -rw-r--r--···0·root·········(0)·root·········(0)······781·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.htp
12 -rw-r--r--···0·root·········(0)·root·········(0)·····9322·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html12 -rw-r--r--···0·root·········(0)·root·········(0)·····8571·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html
13 -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp13 -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp
14 -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html14 -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html
15 -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp15 -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp
16 -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz16 -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz
17 -rw-r--r--···0·root·········(0)·root·········(0)····11816·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html17 -rw-r--r--···0·root·········(0)·root·········(0)·····9560·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html
18 -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp18 -rw-r--r--···0·root·········(0)·root·········(0)······676·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.htp
19 -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright19 -rw-r--r--···0·root·········(0)·root·········(0)····13083·2020-06-14·23:16:46.000000·./usr/share/doc/htp/copyright
20 -rw-r--r--···0·root·········(0)·root·········(0)····15161·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html20 -rw-r--r--···0·root·········(0)·root·········(0)····11794·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html
21 -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp21 -rw-r--r--···0·root·········(0)·root·········(0)·····3601·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.htp
22 -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html22 -rw-r--r--···0·root·········(0)·root·········(0)·····8030·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.html
23 -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp23 -rw-r--r--···0·root·········(0)·root·········(0)·····3149·2020-06-14·23:21:19.000000·./usr/share/doc/htp/default.htp
24 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/24 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/
25 -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub25 -rw-r--r--···0·root·········(0)·root·········(0)······536·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/Makefile.sub
26 -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti26 -rw-r--r--···0·root·········(0)·root·········(0)·····2404·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.hti
27 -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt27 -rw-r--r--···0·root·········(0)·root·········(0)·····1087·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/album.htt
8.48 KB
./usr/share/doc/htp/alttext.html
    
Offset 114, 41 lines modifiedOffset 114, 35 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br> 
122 &nbsp;·...·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span>&nbsp;...<br>121 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">BLOCK</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"blockname"</span>·<span·class="ebnf">[</span><span·class="htp-att[·...·truncated·by·diffoscope;·len:·149,·SHA:·49dfd84ac7aca5220a5f1bed63f440279d146be0ec423b34a57498d1917cf24e·...·]<br>
 122 text·block<br>
123 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>123 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/BLOCK</a>&gt;</span><br>
124 <br>124 <br>
125 </code></p>125 </code></p>
126 <h2>synopsis</h2>126 <h2>synopsis</h2>
127 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A127 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A
128 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.128 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.
129 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the129 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the
130 filename·is·considered·in·all·comparisons.130 filename·is·considered·in·all·comparisons.
131 <p>131 <p>
132 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT132 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT
133 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to133 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to
134 be·overridden·on·specific·images·and·default·text·on·all·others.134 be·overridden·on·specific·images·and·default·text·on·all·others.
135 <p>135 <p>
136 For·example:136 For·example:
137 ··<p><code>137 ··<p><code>
 138 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="htp-attrib">[option</span>=<span·class="htp-string">"option1·[option2·...]"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[global]</span>·<span·class="htp-attrib">[expand]</span>&gt;</span><br>
138 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>&gt;</span><br> 
139 &nbsp;·&nbsp;<span·class="htp-tag">&lt;h1&gt;</span><span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>&gt;</span><span·class="htp-tag">&lt;/h1&gt;</span><br> 
140 &nbsp;·&nbsp;<span·class="htp-tag">&lt;p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
141 &nbsp;·&nbsp;·&nbsp;<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br>139 &nbsp;·...·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span>&nbsp;...<br>
142 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/p&gt;</span><br> 
143 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>140 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
144 <br>141 <br>
145 &nbsp;·<span·class="htp-tag">&lt;section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>&gt;</span><br> 
146 &nbsp;·&nbsp;·This·is·a·fancy·section.<br> 
147 &nbsp;·<span·class="htp-tag">&lt;/section&gt;</span><br> 
148 </code></p>142 </code></p>
149 <p>143 <p>
150 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT144 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT
151 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not145 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not
152 changed.146 changed.
153 <p>147 <p>
154 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,148 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,
3.84 KB
html2text {}
    
Offset 1, 43 lines modifiedOffset 1, 37 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·ALTTEXT·******2 ******·htp·on-line·reference·:·ALTTEXT·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]>
 5  License····················text·block
 6  Tutorial···················<[[ref]]/BLOCK>
 7  Usage
4  Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1 
5  License····················[option2·...]"·]·[global]·[expand]> 
6  Tutorial··················· ·...·<[[ref]]use·block> ... 
7  Usage······················<[[ref]]/blockdef> 
8  HTP·Tags 
9  [>]·ALTTEXT················*****·synopsis·*****8  HTP·Tags···················*****·synopsis·*****
10   ··BLOCK··················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag9  [>]·ALTTEXT················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag
11   ··BLOCKDEF···············with·a·SRC·matching·the·ALTTEXT·NAME.·Since10   ··BLOCK··················with·a·SRC·matching·the·ALTTEXT·NAME.·Since
12   ··DEF····················relative·paths·can·be·used·to·point·to·the·same11   ··BLOCKDEF···············relative·paths·can·be·used·to·point·to·the·same
13   ··FILE···················image,·only·the·filename·is·considered·in·all12   ··DEF····················image,·only·the·filename·is·considered·in·all
14   ··IF·····················comparisons.13   ··FILE···················comparisons.
15   ··INC····················When·an·IMG·tag·with·a·matching·source·is14   ··IF·····················When·an·IMG·tag·with·a·matching·source·is
16   ··IMG····················encountered,·htp·will·add·an·ALT·attribute·only·if15   ··INC····················encountered,·htp·will·add·an·ALT·attribute·only·if
17   ··IMAGEURL···············one·is·not·already·present.·This·allows·for·ALT16   ··IMG····················one·is·not·already·present.·This·allows·for·ALT
18   ··OPT····················text·to·be·overridden·on·specific·images·and17   ··IMAGEURL···············text·to·be·overridden·on·specific·images·and
19   ··OUTPUT·················default·text·on·all·others.18   ··OPT····················default·text·on·all·others.
20   ··QUOTE··················For·example:19   ··OUTPUT·················For·example:
21   ··SET···················· ·<[[ref]]blockdef·name="section"·option="title">20   ··QUOTE··················<[[ref]]blockdef·name="tagname"·[option="option1
 21   ··SET····················[option2·...]"·]·[global]·[expand]>
22   ··UNDEF·················· · <h1><[[ref]]use·title></h1> 
23   ··UNSET·················· · <p·class="section"> 
24   ··USE,_$················· · · <[[ref]]use·block>22   ··UNDEF·················· ·...·<[[ref]]use·block> ...
25   ··WHILE·················· · </p> 
26   ··<!---·················· ·<[[ref]]/blockdef>23   ··UNSET··················<[[ref]]/blockdef>
 24   ··USE,_$
27  History 
28  Wish_list·················· ·<section·title="My·Section"> 
29  Bugs······················· · ·This·is·a·fancy·section. 
30 ····························· ·</section> 
31 ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute25   ··WHILE··················An·ALTTEXT·tag·with·a·name·but·no·text·attribute
32 ·····························removes·any·ALT·mapping·for·this·image.·Successing26   ··<!---··················removes·any·ALT·mapping·for·this·image.·Successing
33 ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed.27  History····················IMG·tags·with·a·matching·SRC·name·are·not·changed.
34 ·····························Since·this·is·useful·for·an·image·used·throughout28  Wish_list··················Since·this·is·useful·for·an·image·used·throughout
35 ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in29  Bugs·······················a·set·of·documents,·ALTTEXT·is·most·appropriate·in
36 ·····························an·include_file·or·a·default_file.30 ·····························an·include_file·or·a·default_file.
37 ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically31 ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically
38 ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags.32 ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags.
  
  
  
  
5.02 KB
./usr/share/doc/htp/block.html
    
Offset 114, 24 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="alttext.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">alttext</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">text</span>=<span·class="htp-string">"Company·logo"</span>&gt;</span><br> 
122 <br> 
123 &nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>&gt;</span><br> 
124 &nbsp;·becomes·this·after·processing:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>&gt;</span><br> 
125 <br> 
126 &nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>&gt;</span><br> 
127 &nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br> 
128 <br> 
129 &nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>&gt;</span><br> 
130 &nbsp;·remains·unchanged.<br> 
131 </code></p>121 </code></p>
132 <h2>synopsis</h2>122 <h2>synopsis</h2>
133 <P>123 <P>
134 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which124 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which
135 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be125 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be
136 multi-line·definitions.126 multi-line·definitions.
137 </P>127 </P>
3.02 KB
html2text {}
    
Offset 1, 62 lines modifiedOffset 1, 52 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············*****·synopsis·*****
 5  License····················BLOCK·and·/BLOCK·are·used·to·create·block·macros,
 6  Tutorial···················which·are·similar·in·use·to·SET·macros,·but·can·be
 7  Usage······················multi-line·definitions.
 8  HTP·Tags···················Any·text·and·formatting·may·be·set·inside·the
 9   ··ALTTEXT················block.·You·can·use·any·htp·or·user·defined·metatag
 10  [>]·BLOCK··················including·FILE_INCLUDE.·The·metatags·won't·be
4 Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> 
5  Introduction 
6  License······ ·this·line:·<[[ref]]img·src="logo.gif"> 
7  Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company 
8  Usage········logo"> 
9  HTP·Tags 
10   ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> 
11  [>]·BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it 
12   ··BLOCKDEF 
13   ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more 
14   ··FILE·····information!"> 
15   ··IF······· ·remains·unchanged. 
16   ··INC······*****·synopsis·***** 
17   ··IMG······BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in 
18   ··IMAGEURL·use·to·SET·macros,·but·can·be·multi-line·definitions. 
19   ··OPT······Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any·htp 
20   ··OUTPUT···or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't·be 
21   ··QUOTE····expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND11   ··BLOCKDEF···············expanded·before·the·block·is·USEd·except·if·you
22   ··SET······parameter. 
23   ··UNDEF····The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$' 
24   ··UNSET····operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a 
25   ··USE,_$···block·macro.12   ··DEF····················give·the·EXPAND·parameter.
 13   ··FILE···················The·block·macro·is·dereferenced·(expanded)·with
 14   ··IF·····················the·USE_tag_or_the_'$'_operator.·See·the·notes·on
 15   ··INC····················the·USE·tag·on·how·to·pass·parameters·to·a·block
 16   ··IMG····················macro.
 17   ··IMAGEURL
 18   ··OPT
 19   ··OUTPUT
 20   ··QUOTE
 21   ··SET
 22   ··UNDEF
 23   ··UNSET
 24   ··USE,_$
26   ··WHILE25   ··WHILE
27   ··<!---26   ··<!---
28  History27  History
29  Wish_list28  Wish_list
30  Bugs29  Bugs
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
31  page_source30  page_source
32  htp_project31  htp_project
33  htp_homepage32  htp_homepage
34 hosted·by33 hosted·by
35 Sourceforge34 Sourceforge
 35 HTML·coding·[Powered_by
36 HTML·coding 
37 [Powered_by 
38 htp]36 htp]
39 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/37 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
40 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.38 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
41 ·····Maintainers:·Jochen_Hoenicke.39 ·····Maintainers:·Jochen_Hoenicke.
42 Copyright·©·1995–96·Jim·Nelson.40 Copyright·©·1995–96·Jim·Nelson.
43 Copyright·©·2001–2014·Jochen_Hoenicke.41 Copyright·©·2001–2014·Jochen_Hoenicke.
44 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to42 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
45 terms·described·in·the·License_section.43 according·to·terms·described·in·the·License_section.
46 last·updated·Sat·May·16,·201544 last·updated·Sat·May·16,·2015
4.17 KB
./usr/share/doc/htp/blockdef.html
    
Offset 114, 17 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
123 <br> 
124 </code></p>121 </code></p>
125 <h2>synopsis</h2>122 <h2>synopsis</h2>
126 <strong>BLOCKDEF</strong>·creates·block·<A123 <strong>BLOCKDEF</strong>·creates·block·<A
127 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it124 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it
128 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block125 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block
129 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and126 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and
130 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored127 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored
2.83 KB
html2text {}
    
Offset 1, 48 lines modifiedOffset 1, 44 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·******2 ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]def·name="tagname"·[option="option1 
5  License····················[option2·...]"·]·[global]·[expand]> 
6  Tutorial···················<[[ref]]/def> 
7  Usage 
8  HTP·Tags···················*****·synopsis·*****4  Introduction···············*****·synopsis·*****
9   ··ALTTEXT················BLOCKDEF·creates·block·metatags,·which·is·a·fancy5  License····················BLOCKDEF·creates·block·metatags,·which·is·a·fancy
10   ··BLOCK··················way·of·saying·it·creates·new·block·tags.·A·block6  Tutorial···················way·of·saying·it·creates·new·block·tags.·A·block
11  [>]·BLOCKDEF···············tag·is·a·tag·that·takes·a·whole·block·as7  Usage······················tag·is·a·tag·that·takes·a·whole·block·as
12   ··DEF····················additional·parameter.·This·block·is·surrounded·by8  HTP·Tags···················additional·parameter.·This·block·is·surrounded·by
13   ··FILE···················<tagname>·and·</tagname>.·The·contents·of·this9   ··ALTTEXT················<tagname>·and·</tagname>.·The·contents·of·this
14   ··IF·····················block·are·automatically·stored·in·the·block·macro10   ··BLOCK··················block·are·automatically·stored·in·the·block·macro
15   ··INC····················named·BLOCK.11  [>]·BLOCKDEF···············named·BLOCK.
16   ··IMG····················For·example:12   ··DEF····················For·example:
17   ··IMAGEURL··············· · ·<[[ref]]def·name="centered">13   ··FILE··················· · ·<[[ref]]def·name="centered">
18   ··OPT···················· · ·<p·align=center>14   ··IF····················· · ·<p·align=center>
19   ··OUTPUT················· · ·<[[ref]]/def>15   ··INC···················· · ·<[[ref]]/def>
20   ··QUOTE16   ··IMG
21   ··SET···················· · ·<centered>17   ··IMAGEURL··············· · ·<centered>
22   ··UNDEF·················· · ·This·text·is·centered.18   ··OPT···················· · ·This·text·is·centered.
23   ··UNSET··················All·block·metatags·have·the·implicit·option19   ··OUTPUT·················All·block·metatags·have·the·implicit·option
24   ··USE,_$·················EXPAND,·which·tells·htp·to·expand·the·contents·of20   ··QUOTE··················EXPAND,·which·tells·htp·to·expand·the·contents·of
25   ··WHILE··················the·block·before·the·definition·is·expanded.21   ··SET····················the·block·before·the·definition·is·expanded.
26   ··<!---··················A·more·thorough·discussion·and·more·elaborate22   ··UNDEF··················A·more·thorough·discussion·and·more·elaborate
27  History····················examples·are·discussed·in·the·metatag·section.23   ··UNSET··················examples·are·discussed·in·the·metatag·section.
 24   ··USE,_$
 25   ··WHILE
 26   ··<!---
 27  History
28  Wish_list28  Wish_list
29  Bugs29  Bugs
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
10.8 KB
./usr/share/doc/htp/comment.html
    
Offset 114, 47 lines modifiedOffset 114, 45 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
123 <br> 
124 </code></p>121 </code></p>
125 <h2>synopsis</h2>122 <h2>synopsis</h2>
126 <p>123 <p>
127 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful124 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful
128 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.125 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.
129 Example:126 Example:
130 </p>127 </p>
131 ··<p><code>128 ··<p><code>
132 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"centered"</span>&gt;</span><br> 
133 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>&gt;</span><br> 
134 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
135 <br> 
136 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;centered&gt;</span><br> 
137 &nbsp;·&nbsp;·This·text·is·centered.<br>129 &nbsp;·&nbsp;·a·is·expanded·at·time·1.<br>
 130 &nbsp;·&nbsp;·b·is·expanded·at·time·0.<br>
 131 &nbsp;·contents·of·a:·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>&gt;</span>.<br>
 132 &nbsp;·contents·of·b:·&nbsp;·b·is·expanded·at·time·0.<br>
 133 &nbsp;·&nbsp;·c·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·1.<br>
 134 &nbsp;·&nbsp;·d·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·2.<br>
 135 &nbsp;·&nbsp;·e·is·expanded·at·time·2;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>&gt;</span>.<br>
138 </code></p>136 </code></p>
139 <p>137 <p>
140 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you138 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you
141 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something139 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something
142 like·this:140 like·this:
143 </p>141 </p>
144 ··<p><code>142 ··<p><code>
145 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>&gt;</span><br> 
146 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>&gt;</span><br> 
147 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>&gt;</span><br> 
148 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>&gt;</span><br> 
149 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>&gt;</span><br> 
150 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>&gt;</span><br> 
151 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>&gt;</span><br>143 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>&gt;</span><br>
 144 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>&gt;</span><br>
 145 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
 146 <br>
152 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>&gt;</span><br>147 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>&gt;</span><br>
 148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&gt;</span><br>
 149 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
153 <br>150 <br>
 151 &nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br>
154 </code></p>152 </code></p>
155 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the153 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the
156 reason·why·you·don't·want·to·include·this·block</p>154 reason·why·you·don't·want·to·include·this·block</p>
157 <p>155 <p>
158 </td>156 </td>
159 </tr>157 </tr>
160 <tr>158 <tr>
4.14 KB
html2text {}
    
Offset 1, 49 lines modifiedOffset 1, 38 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·<!---·******2 ******·htp·on-line·reference·:·<!---·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
 4 Contents·······*****·synopsis·*****
 5  Introduction·This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is·useful
 6  License······when·commenting·metatags,·since·the·metatags·do·not·appear·the·output
 7  Tutorial·····either.·Example:
 8  Usage········ · ·a·is·expanded·at·time·1.
 9  HTP·Tags····· · ·b·is·expanded·at·time·0.
 10   ··ALTTEXT·· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>.
 11   ··BLOCK···· ·contents·of·b:· ·b·is·expanded·at·time·0.
 12   ··BLOCKDEF· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.
 13   ··DEF······ · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.
 14   ··FILE····· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use
 15   ··IF·······time>.
 16   ··INC······Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should·not
4  Introduction···············<[[ref]]def·name="tagname"·[option="option1 
5  License····················[option2·...]"·]·[global]·[expand]> 
6  Tutorial···················<[[ref]]/def> 
7  Usage 
8  HTP·Tags···················*****·synopsis·***** 
9   ··ALTTEXT················This·is·a·simple·comment·that·is·not·included·in 
10   ··BLOCK··················the·output.·This·is·useful·when·commenting 
11   ··BLOCKDEF···············metatags,·since·the·metatags·do·not·appear·the 
12   ··DEF····················output·either.·Example: 
13   ··FILE··················· · ·<[[ref]]def·name="centered"> 
14   ··IF····················· · ·<p·align=center> 
15   ··INC···················· · ·<[[ref]]/def> 
16   ··IMG 
17   ··IMAGEURL··············· · ·<centered> 
18   ··OPT···················· · ·This·text·is·centered. 
19   ··OUTPUT·················Note·that·these·comments·should·not·include·<·or 
20   ··QUOTE··················>,·that·is·you·should·not·use·it·to·comment·out 
21   ··SET····················htp·code.·For·that·purpose·use·something·like17   ··IMG······use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like·this:
 18   ··IMAGEURL· ·<[[ref]]def·name="bigfont">
 19   ··OPT······ · ·<font·size="+4">
 20   ··OUTPUT··· ·<[[ref]]/def>
 21   ··QUOTE
 22   ··SET······ ·<[[ref]]def·name="/bigfont">
 23   ··UNDEF···· · ·</font>
 24   ··UNSET···· ·<[[ref]]/def>
 25   ··USE,_$
 26   ··WHILE···· ·<bigfont>Some·large·text</bigfont>
 27  [>]·<!---····Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason
 28  History······why·you·don't·want·to·include·this·block
 29  Wish_list
 30  Bugs
22   ··UNDEF··················this: 
23   ··UNSET··················<[[ref]]file·execute="command-line" 
24   ··USE,_$·················(output="filename"·|·redirect)·[noerror]> 
25   ··WHILE··················<[[ref]]file·include="includefilename"·[parameters 
26  [>]·<!---··················...]> 
27  History····················<[[ref]]file·name> 
28  Wish_list··················<[[ref]]file·[·name="filename"·]·size[·= 
29  Bugs·······················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> 
30 ·····························<[[ref]]file·[·name="filename"·]·time[·="format" 
31 ·····························]> 
32 ·····························<[[ref]]file·[·name="filename"·]·date[·="format" 
33 ·····························]> 
34 ·····························<[[ref]]file·search="searchpath"> 
35 ·····························<[[ref]]file·template="templatefilename"> 
  
36 ·····························Make·sure·that·the·variable·is·never·defined·and 
37 ·····························xyz·should·be·the·reason·why·you·don't·want·to 
38 ·····························include·this·block 
  
  
  
  
  
  
  
  
  
13.4 KB
./usr/share/doc/htp/def.html
    
Offset 114, 72 lines modifiedOffset 114, 59 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"title"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;<span·class="htp-tag">&lt;h1&gt;</span><span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>&gt;</span><span·class="htp-tag">&lt;/h1&gt;</span><br> 
123 &nbsp;·&nbsp;<span·class="htp-tag">&lt;p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
124 &nbsp;·&nbsp;·&nbsp;<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br> 
125 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/p&gt;</span><br> 
126 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br> 
127 <br> 
128 &nbsp;·<span·class="htp-tag">&lt;section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>&gt;</span><br> 
129 &nbsp;·&nbsp;·This·is·a·fancy·section.<br> 
130 &nbsp;·<span·class="htp-tag">&lt;/section&gt;</span><br> 
131 </code></p>121 </code></p>
132 <h2>synopsis</h2>122 <h2>synopsis</h2>
133 <p>123 <p>
134 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a124 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a
135 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to125 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to
136 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>126 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>
137 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.127 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.
138 For·example:128 For·example:
139 </p>129 </p>
140 ··<p><code>130 ··<p><code>
141 <span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>&gt;</span><br> 
142 &nbsp;·...<br> 
143 <span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/if</a>&gt;</span><br>131 &nbsp;·&nbsp;·a·is·expanded·at·time·1.<br>
 132 &nbsp;·&nbsp;·b·is·expanded·at·time·0.<br>
 133 &nbsp;·contents·of·a:·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>&gt;</span>.<br>
 134 &nbsp;·contents·of·b:·&nbsp;·b·is·expanded·at·time·0.<br>
 135 &nbsp;·&nbsp;·c·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·1.<br>
 136 &nbsp;·&nbsp;·d·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·2.<br>
 137 &nbsp;·&nbsp;·e·is·expanded·at·time·2;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>&gt;</span>.<br>
144 </code></p>138 </code></p>
145 <P>139 <P>
146 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to140 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
147 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A141 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A
148 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster142 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster
149 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing143 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing
150 tag·with·a·preceding·slash.·For·example:144 tag·with·a·preceding·slash.·For·example:
151 </P>145 </P>
152 ··<p><code>146 ··<p><code>
153 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>&gt;</span><br> 
154 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>&gt;</span><br> 
155 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>&gt;</span><br> 
156 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">size[</span>·=<span·class="htp-value"></span>·<span·class="htp-attrib">(byte|kbyte|mbyte|gbyte)</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[precision</span>=<span·class="htp-value">n]</span>&gt;</span><br> 
157 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">time[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>&gt;</span><br> 
158 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">date[</span>·=<span·class="htp-string">"format"</span>·<span·class="htp-attrib">]</span>&gt;</span><br> 
159 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>&gt;</span><br>147 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>&gt;</span><br>
160 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>&gt;</span><br>148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>&gt;</span><br>
 149 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
161 <br>150 <br>
 151 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>&gt;</span><br>
 152 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&gt;</span><br>
 153 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
 154 <br>
 155 &nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br>
162 </code></p>156 </code></p>
163 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,157 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,
164 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>158 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>
165 <P>159 <P>
166 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were160 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were
167 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with161 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with
168 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their162 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their
169 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)163 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)
170 </P>164 </P>
171 ··<p><code>165 ··<p><code>
172 &nbsp;·&nbsp;·a·is·expanded·at·time·1.<br> 
173 &nbsp;·&nbsp;·b·is·expanded·at·time·0.<br> 
174 &nbsp;·contents·of·a:·&nbsp;·a·is·expanded·at·time·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>&gt;</span>.<br> 
175 &nbsp;·contents·of·b:·&nbsp;·b·is·expanded·at·time·0.<br> 
176 &nbsp;·&nbsp;·c·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·1.<br> 
177 &nbsp;·&nbsp;·d·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·2.<br> 
178 &nbsp;·&nbsp;·e·is·expanded·at·time·2;·&nbsp;·a·is·defined·for·the·2nd·time·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">time</span>&gt;</span>.<br> 
179 </code></p>166 </code></p>
180 <P>167 <P>
181 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is168 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is
182 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are169 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are
183 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the170 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the
184 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a171 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a
185 parameter·is·required,·simply·expand·it·without·first·checking.··When172 parameter·is·required,·simply·expand·it·without·first·checking.··When
4.72 KB
html2text {}
    
Offset 1, 59 lines modifiedOffset 1, 44 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·DEF,·/DEF·******2 ******·htp·on-line·reference·:·DEF,·/DEF·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4 Contents······· ·<[[ref]]blockdef·name="section"·option="title"> 
5  Introduction· · <h1><[[ref]]use·title></h1> 
6  License······ · <p·class="section"> 
7  Tutorial····· · · <[[ref]]use·block> 
8  Usage········ · </p> 
9  HTP·Tags····· ·<[[ref]]/blockdef> 
10   ··ALTTEXT 
11   ··BLOCK···· ·<section·title="My·Section"> 
12   ··BLOCKDEF· · ·This·is·a·fancy·section. 
13  [>]·DEF······ ·</section> 
14   ··FILE·····*****·synopsis·*****4 Contents·······*****·synopsis·*****
15   ··IF·······DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags.5  Introduction·DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags.
16   ··INC······The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is6  License······The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is
17   ··IMG······not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name.·For7  Tutorial·····not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name.·For
18   ··IMAGEURL·example: 
19   ··OPT······<[[ref]]if·disabled_because_xyz> 
20   ··OUTPUT··· ·... 
21   ··QUOTE····<[[ref]]/if>8  Usage········example:
 9  HTP·Tags····· · ·a·is·expanded·at·time·1.
 10   ··ALTTEXT·· · ·b·is·expanded·at·time·0.
 11   ··BLOCK···· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>.
 12   ··BLOCKDEF· ·contents·of·b:· ·b·is·expanded·at·time·0.
 13  [>]·DEF······ · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.
 14   ··FILE····· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.
 15   ··IF······· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use
 16   ··INC······time>.
22   ··SET······Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to17   ··IMG······Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
23   ··UNDEF····and18   ··IMAGEURL·and
24   ··UNSET····).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly·faster19   ··OPT······).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly·faster
25   ··USE,_$···alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing·tag20   ··OUTPUT···alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing·tag
26   ··WHILE····with·a·preceding·slash.·For·example:21   ··QUOTE····with·a·preceding·slash.·For·example:
 22   ··SET······ ·<[[ref]]def·name="bigfont">
 23   ··UNDEF···· · ·<font·size="+4">
 24   ··UNSET···· ·<[[ref]]/def>
 25   ··USE,_$
 26   ··WHILE···· ·<[[ref]]def·name="/bigfont">
 27   ··<!---···· · ·</font>
 28  History······ ·<[[ref]]/def>
 29  Wish_list
 30  Bugs········· ·<bigfont>Some·large·text</bigfont>
27   ··<!---····<[[ref]]file·execute="command-line"·(output="filename"·|·redirect) 
28  History······[noerror]> 
29  Wish_list····<[[ref]]file·include="includefilename"·[parameters·...]> 
30  Bugs·········<[[ref]]file·name> 
31 ···············<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·] 
32 ···············[precision=n]> 
33 ···············<[[ref]]file·[·name="filename"·]·time[·="format"·]> 
34 ···············<[[ref]]file·[·name="filename"·]·date[·="format"·]> 
35 ···············<[[ref]]file·search="searchpath"> 
36 ···············<[[ref]]file·template="templatefilename"> 
  
37 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end31 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end
38 ···············tag.·It·is·not·that·slower.32 ···············tag.·It·is·not·that·slower.
39 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a33 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a
40 ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute.34 ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute.
41 ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space·(which35 ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space·(which
42 ···············therefore·requires·they·be·surrounded·by·quotes.)36 ···············therefore·requires·they·be·surrounded·by·quotes.)
43 ··············· · ·a·is·expanded·at·time·1. 
44 ··············· · ·b·is·expanded·at·time·0. 
45 ··············· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>. 
46 ··············· ·contents·of·b:· ·b·is·expanded·at·time·0. 
47 ··············· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1. 
48 ··············· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2. 
49 ··············· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use 
50 ···············time>. 
51 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is·invoked.37 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is·invoked.
52 ···············htp·assumes·that·all·parameter·options·to·the·metatag·are·optional.·This·is38 ···············htp·assumes·that·all·parameter·options·to·the·metatag·are·optional.·This·is
53 ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE·option·is·defined39 ···············why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE·option·is·defined
54 ···············before·expanding·it·in·the·block.·If·a·parameter·is·required,·simply·expand40 ···············before·expanding·it·in·the·block.·If·a·parameter·is·required,·simply·expand
55 ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is41 ···············it·without·first·checking.·When·htp·expands·the·metatag·and·the·macro·is
56 ···············not·defined,·it·will·halt·processing·and·complain·with·an·error·message·and42 ···············not·defined,·it·will·halt·processing·and·complain·with·an·error·message·and
57 ···············the·required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed43 ···············the·required·macro·name.·Normally·htp·will·not·allow·parameters·not·listed
14.7 KB
./usr/share/doc/htp/expand.html
    
Offset 98, 43 lines modifiedOffset 98, 23 lines modified
98 <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code>98 <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code>
99 modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to99 modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to
100 store·something·in·a·block·macro,·that·depends·on·the·current·value·of100 store·something·in·a·block·macro,·that·depends·on·the·current·value·of
101 another·macro.··This·other·macro·may·no·longer·have·the·correct·value101 another·macro.··This·other·macro·may·no·longer·have·the·correct·value
102 when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when102 when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when
103 the·htp·tags·are·expanded:·</P>103 the·htp·tags·are·expanded:·</P>
104 ··<p><code>104 ··<p><code>
 105 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"centered"</span>&gt;</span><br>
105 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>&gt;</span><br> 
106 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br> 
107 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>106 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>&gt;</span><br>
108 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>107 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
109 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>&gt;</span><br> 
110 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>&gt;</span><br> 
111 <font·size="-2">&nbsp;7.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br> 
112 <font·size="-2">&nbsp;8.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
113 <font·size="-2">&nbsp;9.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
114 <font·size="-2">10.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
115 <font·size="-2">11.·</font><br>108 <font·size="-2">&nbsp;4.·</font><br>
 109 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;centered&gt;</span><br>
 110 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·This·text·is·centered.<br>
116 <font·size="-2">12.·</font>&nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>&gt;</span><br> 
117 <font·size="-2">13.·</font><br> 
118 <font·size="-2">14.·</font>&nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>&gt;</span><br> 
119 <font·size="-2">15.·</font><br> 
120 <font·size="-2">16.·</font>&nbsp;·This·will·fail:<br> 
121 <font·size="-2">17.·</font>&nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>&gt;</span><br> 
122 <font·size="-2">18.·</font><br> 
123 <font·size="-2">19.·</font>&nbsp;·Instead,·use·*·like·this:<br> 
124 <font·size="-2">20.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>&gt;</span><br> 
125 <font·size="-2">21.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>&gt;</span><br> 
126 <font·size="-2">22.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
127 <font·size="-2">23.·</font>&nbsp;·&nbsp;·<br> 
128 <font·size="-2">24.·</font>&nbsp;·<span·class="htp-tag">&lt;MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>&gt;</span><br> 
129 </code></p>111 </code></p>
130 This·produces·the·following:112 This·produces·the·following:
131 ··<p><code>113 ··<p><code>
132 <span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>&gt;</span><br> 
133 <br> 
134 </code></p>114 </code></p>
135 <P>115 <P>
136 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a116 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a
137 are·taken·literally,·however,·the·contents·for·b·are·already·expanded117 are·taken·literally,·however,·the·contents·for·b·are·already·expanded
138 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it118 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it
139 is·used,·while·the·contents·of·b·are·already·expanded.119 is·used,·while·the·contents·of·b·are·already·expanded.
140 </P>120 </P>
8.47 KB
html2text {}
    
Offset 1, 90 lines modifiedOffset 1, 80 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·global·and·expand·******2 ******·htp·on-line·reference·:·global·and·expand·******
3 Table_of·········*****·The·global·attribute·*****3 Table_of_Contents············*****·The·global·attribute·*****
4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current 
5  Introduction···scope.·A·scope·is·for·example·the·definition·of·a·metatag.·Once·the 
6  License········definition·is·expanded·and·the·metatag·has·finished·the·macro·is 
7  Tutorial·······automatically·removed.·In·some·cases·you·want·to·define·a·macro 
8  Usage··········inside·a·metatag·and·use·it·later.·You·can·do·this·with·the·global 
9   ··Command-···attribute·that·you·can·add·to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[ 
10 ······line·······[ref]]def,·and·[[ref]]blockdef·tags. 
11   ··Options····*****·The·expand·attribute·***** 
12   ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of 
13 ······macros·····all·block·tags·even·metatags·defined·with·the·blockdef·macro. 
14  [>]·global_and·Normally·htp·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp 
15 ······expand·····tags,·metatags·and·macros·when·the·HTML·document·is·written·not·when 
16  HTP_Tags·······they're·stored·into·block·macros.·When·you·use·a·macro·defined·with 
17  History········the·blockdef·tag·the·html·code·between·the·tags·is·just·copied 
18  Wish_list······literally·into·the·macro·named·block,·without·any·expansion·going·on. 
19  Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is4  Introduction···············Normally·when·you·define·a·macro·it·is·only
 5  License····················defined·in·the·current·scope.·A·scope·is·for
 6  Tutorial···················example·the·definition·of·a·metatag.·Once·the
 7  Usage······················definition·is·expanded·and·the·metatag·has
 8   ··Command-line···········finished·the·macro·is·automatically·removed.·In
 9   ··Options················some·cases·you·want·to·define·a·macro·inside·a
 10   ··Predefined_macros······metatag·and·use·it·later.·You·can·do·this·with·the
 11  [>]·global_and_expand······global·attribute·that·you·can·add·to·[[ref]]set,·[
 12  HTP_Tags···················[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[
 13  History····················[ref]]blockdef·tags.
 14  Wish_list··················*****·The·expand·attribute·*****
 15  Bugs·······················The·expand·attribute·is·not·a·tag·of·its·own·but
 16 ·····························is·an·attribute·of·all·block·tags·even·metatags
 17 ·····························defined·with·the·blockdef·macro.·Normally·htp·uses
 18 ·····························a·lazy·evaluation·strategy,·i.e.·it·expands·htp
 19 ·····························tags,·metatags·and·macros·when·the·HTML·document
 20 ·····························is·written·not·when·they're·stored·into·block
 21 ·····························macros.·When·you·use·a·macro·defined·with·the
 22 ·····························blockdef·tag·the·html·code·between·the·tags·is
 23 ·····························just·copied·literally·into·the·macro·named·block,
 24 ·····························without·any·expansion·going·on.
 25 ·····························However,·if·the·block·tag·is·marked·with·the
 26 ·····························expand·modifier·it·is·expanded·immediately.·This
20 ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something27 ·····························is·useful·if·you·want·to·store·something·in·a
21 ·················in·a·block·macro,·that·depends·on·the·current·value·of·another·macro.28 ·····························block·macro,·that·depends·on·the·current·value·of
22 ·················This·other·macro·may·no·longer·have·the·correct·value·when·the·macro29 ·····························another·macro.·This·other·macro·may·no·longer·have
 30 ·····························the·correct·value·when·the·macro·is·expanded.·Here
23 ·················is·expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are31 ·····························is·some·code·that·demonstrate·when·the·htp·tags
24 ·················expanded:32 ·····························are·expanded:
 33 ····························· 1. · ·<[[ref]]def·name="centered">
 34 ····························· 2. · ·<p·align=center>
25 ················· 1. ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> 
26 ················· 2. · ·<[[ref]]IF·size> 
27 ················· 3. · · · ·<FONT·SIZE=${size}> 
28 ················· 4· ·<[[ref]]/IF>35 ····························· 3· ·<[[ref]]/def>
 36 ····························· 4.
 37 ····························· 5. · ·<centered>
 38 ····························· 6. · ·This·text·is·centered.
29 ················· 5. · ·<[[ref]]IMG·SRC=pics/${src}> 
30 ················· 6. · ·<[[ref]]USE·title> 
31 ················· 7. · ·<[[ref]]IF·size> 
32 ················· 8. · · · ·</FONT> 
33 ················· 9. · ·<[[ref]]/IF> 
34 ·················10. ·<[[ref]]/DEF> 
35 ·················11. 
36 ·················12. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> 
37 ·················13. 
38 ·················14. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> 
39 ·················15. 
40 ·················16. ·This·will·fail: 
41 ·················17. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> 
42 ·················18. 
43 ·················19. ·Instead,·use·*·like·this: 
44 ·················20. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> 
45 ·················21. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> 
46 ·················22. ·<[[ref]]/DEF> 
47 ·················23. ·  
48 ·················24. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> 
49 ·················This·produces·the·following:39 ·····························This·produces·the·following:
50 ·················<[[ref]]img·src="filename"·...> 
  
51 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a40 ·····························When·block·a·and·block·b·are·defined·in·lines·2-
52 ·················are·taken·literally,·however,·the·contents·for·b·are·already·expanded41 ·····························7·the·contents·of·a·are·taken·literally,·however,
 42 ·····························the·contents·for·b·are·already·expanded·so·the
53 ·················so·the·macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,43 ·····························macro·time·is·evaluated.·So·a·is·expanded·when·it
54 ·················while·the·contents·of·b·are·already·expanded.44 ·····························is·used,·while·the·contents·of·b·are·already
 45 ·····························expanded.
55 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand46 ·····························In·line·10·and·12·the·[[ref]]use·tag·is·used·with
56 ·················attribute·which·prevents·the·expansion·of·the·macro·value.·Here·it·is47 ·····························the·noexpand·attribute·which·prevents·the
 48 ·····························expansion·of·the·macro·value.·Here·it·is·used·to
57 ·················used·to·show·you·what·the·value·of·the·block·macros·really·is.49 ·····························show·you·what·the·value·of·the·block·macros·really
 50 ·····························is.
58 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent51 ·····························A·more·important·reason·to·use·the·noexpand
 52 ·····························attribute·is·to·prevent·double·expansion·and·to
59 ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy53 ·····························restore·the·original·lazy·expansion·policy·when
60 ·················when·you·have·to·use·the·expand·attribute·as·for·block·d·in·the54 ·····························you·have·to·use·the·expand·attribute·as·for·block
61 ·················example·above.·See·the·section·example·in·the·[[ref]]metatag55 ·····························d·in·the·example·above.·See·the·section·example·in
 56 ·····························the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The
62 ·················tutorial.·Rule·of·thumb:·The·use·tags·in·an·expanded·block·should·be57 ·····························use·tags·in·an·expanded·block·should·be·tagged
63 ·················tagged·with·noexpand.58 ·····························with·noexpand.
  
  
  
  
  
  
  
  
  
64  page_source59  page_source
65  htp_project60  htp_project
66  htp_homepage61  htp_homepage
67 hosted·by62 hosted·by
68 Sourceforge63 Sourceforge
 64 HTML·coding·[Powered_by
69 HTML·coding 
70 [Powered_by 
71 htp]65 htp]
72 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/66 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
73 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.67 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
74 ·····Maintainers:·Jochen_Hoenicke.68 ·····Maintainers:·Jochen_Hoenicke.
75 Copyright·©·1995–96·Jim·Nelson.69 Copyright·©·1995–96·Jim·Nelson.
76 Copyright·©·2001–2014·Jochen_Hoenicke.70 Copyright·©·2001–2014·Jochen_Hoenicke.
77 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to71 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
78 terms·described·in·the·License_section.72 according·to·terms·described·in·the·License_section.
79 last·updated·Sat·May·16,·201573 last·updated·Sat·May·16,·2015
21.7 KB
./usr/share/doc/htp/file.html
    
Offset 114, 60 lines modifiedOffset 114, 34 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 <span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>&gt;</span><br>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br> 
123 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>&gt;</span><br> 
127 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br> 
128 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
129 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
131 <br> 
132 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>&gt;</span><br> 
133 <br> 
134 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>&gt;</span><br> 
135 <br> 
136 &nbsp;·This·will·fail:<br> 
137 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>&gt;</span><br> 
138 <br>122 <br>
139 &nbsp;·Instead,·use·*·like·this:<br> 
140 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>&gt;</span><br> 
141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>&gt;</span><br> 
142 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
143 &nbsp;·&nbsp;·<br> 
144 &nbsp;·<span·class="htp-tag">&lt;MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>&gt;</span><br> 
145 </code></p>123 </code></p>
146 <h2>synopsis</h2>124 <h2>synopsis</h2>
147 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.125 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.
148 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of126 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of
149 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be127 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be
150 added·to·the·output·file·as·well.128 added·to·the·output·file·as·well.
151 <P>129 <P>
152 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the130 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
153 following·is·perfectly·acceptable:131 following·is·perfectly·acceptable:
154 ··<p><code>132 ··<p><code>
155 <span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>&gt;</span><br> 
156 <br> 
157 </code></p>133 </code></p>
158 <P>134 <P>
159 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>135 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>
160 <P>136 <P>
161 To·include·information·about·another·file,·such·as·an·archive·file·or137 To·include·information·about·another·file,·such·as·an·archive·file·or
162 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the138 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
163 type·of·information·to·be·displayed:139 type·of·information·to·be·displayed:
164 ··<p><code>140 ··<p><code>
165 <span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="htp-attrib">]</span>·<span·class="htp-attrib">[GLOBAL]</span>&gt;</span><br> 
166 <br> 
167 </code></p>141 </code></p>
168 <P>142 <P>
169 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the143 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
170 information·is·displayed.··In·anything·other·than·byte·format,·the·information144 information·is·displayed.··In·anything·other·than·byte·format,·the·information
171 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number145 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number
172 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional146 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional
173 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no147 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no
15.8 KB
html2text {}
    
Offset 1, 127 lines modifiedOffset 1, 124 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·FILE·******2 ******·htp·on-line·reference·:·FILE·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4 Contents······· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE"> 
5  Introduction· · ·<[[ref]]IF·size> 
6  License······ · · · ·<FONT·SIZE=${size}> 
7  Tutorial····· · ·<[[ref]]/IF> 
8  Usage········ · ·<[[ref]]IMG·SRC=pics/${src}> 
9  HTP·Tags····· · ·<[[ref]]USE·title> 
10   ··ALTTEXT·· · ·<[[ref]]IF·size> 
11   ··BLOCK···· · · · ·</FONT> 
12   ··BLOCKDEF· · ·<[[ref]]/IF> 
13   ··DEF······ ·<[[ref]]/DEF> 
14  [>]·FILE 
15   ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> 
16   ··INC 
17   ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> 
18   ··IMAGEURL 
19   ··OPT······ ·This·will·fail: 
20   ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> 
21   ··QUOTE 
22   ··SET······ ·Instead,·use·*·like·this: 
23   ··UNDEF···· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> 
24   ··UNSET···· · ·<[[ref]]IMG·SRC="pics/${src}"·$*> 
25   ··USE,_$··· ·<[[ref]]/DEF> 
26   ··WHILE···· ·  
27   ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> 
28  History······*****·synopsis·***** 
29  Wish_list····FILE·has·several·optional·parameters·of·differing·purpose.·The 
30  Bugs·········output·file's·name,·the·current·date·and·time,·and·the·contents·of 
31 ···············another·file·may·be·included.·Another·file's·time,·date,·or·size 
32 ···············may·be·added·to·the·output·file·as·well. 
33 ···············As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line, 
34 ···············so·the·following·is·perfectly·acceptable: 
35 ···············<[[ref]]img·src="filename"·...>4  Introduction···············<[[ref]]img·src="filename"·...>
 5  License
 6  Tutorial···················*****·synopsis·*****
 7  Usage······················FILE·has·several·optional·parameters·of·differing
 8  HTP·Tags···················purpose.·The·output·file's·name,·the·current·date
 9   ··ALTTEXT················and·time,·and·the·contents·of·another·file·may·be
 10   ··BLOCK··················included.·Another·file's·time,·date,·or·size·may
 11   ··BLOCKDEF···············be·added·to·the·output·file·as·well.
 12   ··DEF····················As·with·all·HTML,·these·tags·do·not·have·to·be·on
 13  [>]·FILE···················their·own·line,·so·the·following·is·perfectly
 14   ··IF·····················acceptable:
36 ···············****·NAME,·TIME,·SIZE·****15   ··INC····················****·NAME,·TIME,·SIZE·****
37 ···············To·include·information·about·another·file,·such·as·an·archive·file16   ··IMG····················To·include·information·about·another·file,·such·as
 17   ··IMAGEURL···············an·archive·file·or·graphic·image,·specify·its·name
 18   ··OPT····················with·the·NAME·attribute·followed·by·the·type·of
 19   ··OUTPUT·················information·to·be·displayed:
38 ···············or·graphic·image,·specify·its·name·with·the·NAME·attribute 
39 ···············followed·by·the·type·of·information·to·be·displayed: 
40 ···············<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] 
41 ···············[GLOBAL]> 
  
42 ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates20   ··QUOTE··················For·file·size·information,·the·value·BYTE,·KBYTE,
43 ···············how·the·information·is·displayed.·In·anything·other·than·byte21   ··SET····················etc.·dictates·how·the·information·is·displayed.·In
 22   ··UNDEF··················anything·other·than·byte·format,·the·information
44 ···············format,·the·information·is·displayed·in·floating-point·notation.23   ··UNSET··················is·displayed·in·floating-point·notation.·The
45 ···············The·amount·of·precision·(the·number·of·digits·to·the·right·of·the24   ··USE,_$·················amount·of·precision·(the·number·of·digits·to·the
46 ···············decimal·point)·can·be·set·with·the·optional·PRECISION·attribute.25   ··WHILE··················right·of·the·decimal·point)·can·be·set·with·the
 26   ··<!---··················optional·PRECISION·attribute.·The·default
47 ···············The·default·precision·is·zero·(0),·which·means·no·fractional27  History····················precision·is·zero·(0),·which·means·no·fractional
48 ···············portion·is·displayed.28  Wish_list··················portion·is·displayed.
49 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will29  Bugs·······················At·the·request·of·many·people,·the·TIME·and·DATE
50 ···············now·accept·formatting·characters·that·are·passed·directly·into·the30 ·····························attributes·will·now·accept·formatting·characters
 31 ·····························that·are·passed·directly·into·the·ANSI·C·library
51 ···············ANSI·C·library·function.·This·allows·for·the·time·and·date·to·be32 ·····························function.·This·allows·for·the·time·and·date·to·be
52 ···············displayed·in·virtually·any·format.·Users·not·wishing·to·mess33 ·····························displayed·in·virtually·any·format.·Users·not
53 ···············around·with·this·should·stick·to·the·default·format,·which·is·used34 ·····························wishing·to·mess·around·with·this·should·stick·to
 35 ·····························the·default·format,·which·is·used·if·no·formatting
54 ···············if·no·formatting·value·is·specified·(i.e.,·just·using·05:04:1136 ·····························value·is·specified·(i.e.,·just·using·05:04:11·PM).
55 ···············PM). 
56 ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library37 ·····························Consult·any·C·programmer's·guide·discussing·the
57 ···············function·strftime()·for·information·on·how·to·build·a·format38 ·····························standard·C·library·function·strftime()·for
 39 ·····························information·on·how·to·build·a·format·string.·If
58 ···············string.·If·unsure,·ask·an·experienced·C·programmer·for·help,·or40 ·····························unsure,·ask·an·experienced·C·programmer·for·help,
59 ···············consider·just·sticking·to·the·default·formatting.41 ·····························or·consider·just·sticking·to·the·default
 42 ·····························formatting.
60 ···············****·INCLUDE·****43 ·····························****·INCLUDE·****
61 ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting44 ·····························INCLUDE·files·are·pre-processed·as·any·other·file.
62 ···············text·is·incorporated·into·the·HTML·output·as·if·the·file·had·been45 ·····························The·resulting·text·is·incorporated·into·the·HTML
 46 ·····························output·as·if·the·file·had·been·copied·into·the
63 ···············copied·into·the·source·at·the·same·location·as·the·FILE·markup47 ·····························source·at·the·same·location·as·the·FILE·markup
64 ···············tag.48 ·····························tag.
65 ···············htp·will·automatically·convert·slashes·and·backslashes·to·match49 ·····························htp·will·automatically·convert·slashes·and
66 ···············the·operating·system's·directory·separator.50 ·····························backslashes·to·match·the·operating·system's
 51 ·····························directory·separator.
67 ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which52 ·····························Additional·parameters·can·be·set·in·the·FILE
68 ···············are·interpreted·as·macros·that·are·"passed"·to·the·included·file.53 ·····························INCLUDE·tag,·which·are·interpreted·as·macros·that
 54 ·····························are·"passed"·to·the·included·file.·The·macros·are
69 ···············The·macros·are·available·only·to·the·include·file·(and·any·macros55 ·····························available·only·to·the·include·file·(and·any·macros
70 ···············or·included·files·it·holds).·After·the·file·is·completely56 ·····························or·included·files·it·holds).·After·the·file·is
71 ···············included,·the·macros·are·no·longer·available.·So:57 ·····························completely·included,·the·macros·are·no·longer
 58 ·····························available.·So:
72 ··············· · ·<[[ref]]INC·i="1"·j="-1">59 ····························· · ·<[[ref]]INC·i="1"·j="-1">
73 ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the60 ·····························Macros·named·"name"·and·"email"·are·set,·and
74 ···············included·file.·They·are·not·available,·however,·past·the·tag61 ·····························available·inside·the·included·file.·They·are·not
 62 ·····························available,·however,·past·the·tag·(which·is·why·the
75 ···············(which·is·why·the·second·statement·will·fail.)63 ·····························second·statement·will·fail.)
76 ···············****·TEMPLATE·****64 ·····························****·TEMPLATE·****
77 ···············A·template·file·is·nothing·more·than·a·default·include·file,·one65 ·····························A·template·file·is·nothing·more·than·a·default
78 ···············that·is·included·once·the·input·text·has·been·completely 
79 ···············processed.·So,·an·input·file·can·define·many·"standard"·macros,66 ·····························include·file,·one·that·is·included·once·the·input
 67 ·····························text·has·been·completely·processed.·So,·an·input
 68 ·····························file·can·define·many·"standard"·macros,·which·are
80 ···············which·are·then·expanded·by·a·template·file·to·form·a·consistent69 ·····························then·expanded·by·a·template·file·to·form·a
81 ···············page·layout.70 ·····························consistent·page·layout.
82 ···············The·template·file·can·be·set·many·times,·but·only·the·last71 ·····························The·template·file·can·be·set·many·times,·but·only
83 ···············filename·specified·will·be·processed·by·htp.·If·multiple·template72 ·····························the·last·filename·specified·will·be·processed·by
 73 ·····························htp.·If·multiple·template·files·need·to·be
84 ···············files·need·to·be·included,·specify·one·template·file,·and·from74 ·····························included,·specify·one·template·file,·and·from·that
85 ···············that·file·use·FILE·INCLUDE·to·branch·off.75 ·····························file·use·FILE·INCLUDE·to·branch·off.
86 ···············Template·files·are·most·useful·when·placed·inside·an·htp·default76 ·····························Template·files·are·most·useful·when·placed·inside
87 ···············file.77 ·····························an·htp·default_file.
88 ···············****·SEARCH·****78 ·····························****·SEARCH·****
89 ···············A·search·path·can·be·specified,·which·is·searched·if·an·include79 ·····························A·search·path·can·be·specified,·which·is·searched
90 ···············file·cannot·be·found.·This·is·handy·to·keep·a·set·of·"common"80 ·····························if·an·include·file·cannot·be·found.·This·is·handy
 81 ·····························to·keep·a·set·of·"common"·include·files·that·many
91 ···············include·files·that·many·documents·in·many·directories·may·need·to82 ·····························documents·in·many·directories·may·need·to·access.
92 ···············access.·More·than·one·directory·can·be·specified·in·the·search83 ·····························More·than·one·directory·can·be·specified·in·the
93 ···············path,·if·they·are·separated·by·a·semi-colon.·Spaces·should·not 
94 ···············precede·or·trail·the·search·path·string.84 ·····························search·path,·if·they·are·separated·by·a·semi-
 85 ·····························colon.·Spaces·should·not·precede·or·trail·the
 86 ·····························search·path·string.
95 ···············When·htp·starts,·the·search·path·is·clear.·FILE·SEARCH·would·be·a87 ·····························When·htp·starts,·the·search·path·is·clear.·FILE
Max diff block lines reached; 676/16110 bytes (4.20%) of diff not shown.
4.38 KB
./usr/share/doc/htp/if.html
    
Offset 114, 26 lines modifiedOffset 114, 22 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">...</span>&gt;</span><br> 
122 <br> 
123 </code></p>121 </code></p>
124 <h2>synopsis</h2>122 <h2>synopsis</h2>
125 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building123 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building
126 blocks·for·conditional·processing.··The·basic·form·is·shown·above.124 blocks·for·conditional·processing.··The·basic·form·is·shown·above.
127 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A125 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A
128 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal126 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal
129 string:127 string:
130 ··<p><code>128 ··<p><code>
131 <span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"imageurl"</span>·<span·class="htp-attrib">[</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"path/in/local/filesystem"</span>·<span·class="htp-attrib">]</span>&gt;</span><br> 
132 <br> 
133 </code></p>129 </code></p>
134 <P>130 <P>
135 and·a·defined·operator·is·a·test·of·a·macro's·existance:131 and·a·defined·operator·is·a·test·of·a·macro's·existance:
136 <P>132 <P>
137 ··<p><code>133 ··<p><code>
138 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>&gt;</span><br>134 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>&gt;</span><br>
139 </code></p>135 </code></p>
2.78 KB
html2text {}
    
Offset 1, 49 lines modifiedOffset 1, 44 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·******2 ******·htp·on-line·reference·:·IF,·ELSEIF,·ELSE,·/IF·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]img·src="filename"·...> 
5  License 
6  Tutorial···················*****·synopsis·*****4  Introduction···············*****·synopsis·*****
7  Usage······················IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building5  License····················IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building
8  HTP·Tags···················blocks·for·conditional·processing.·The·basic·form6  Tutorial···················blocks·for·conditional·processing.·The·basic·form
9   ··ALTTEXT················is·shown·above.7  Usage······················is·shown·above.
10   ··BLOCK··················"Conditional"·is·either·a·"compare"·or·"is8  HTP·Tags···················"Conditional"·is·either·a·"compare"·or·"is
11   ··BLOCKDEF···············defined"·operation.·A·compare·operator·is·a·test9   ··ALTTEXT················defined"·operation.·A·compare·operator·is·a·test
12   ··DEF····················of·the·value·of·a·macro·against·a·literal·string:10   ··BLOCK··················of·the·value·of·a·macro·against·a·literal·string:
13   ··FILE···················<[[ref]]imageurl·url="imageurl"·[·path="path/in/ 
14  [>]·IF·····················local/filesystem"·]> 
15   ··INC 
16   ··IMG····················and·a·defined·operator·is·a·test·of·a·macro's11   ··BLOCKDEF···············and·a·defined·operator·is·a·test·of·a·macro's
17   ··IMAGEURL···············existance:12   ··DEF····················existance:
18   ··OPT···················· · ·<[[ref]]INC·i="1"·j="-1">13   ··FILE··················· · ·<[[ref]]INC·i="1"·j="-1">
19   ··OUTPUT·················If·the·NOT·tag·is·present·in·the·IF·markup,·the14  [>]·IF·····················If·the·NOT·tag·is·present·in·the·IF·markup,·the
20   ··QUOTE··················evaluation·of·the·conditional·is·reversed.·The15   ··INC····················evaluation·of·the·conditional·is·reversed.·The
21   ··SET····················first·IF·or·ELSEIF·condition·that·evaluates·to16   ··IMG····················first·IF·or·ELSEIF·condition·that·evaluates·to
22   ··UNDEF··················true·is·chosen.·If·none·of·the·conditions·is·true17   ··IMAGEURL···············true·is·chosen.·If·none·of·the·conditions·is·true
23   ··UNSET··················the·ELSE·block·is·taken·if·it·is·present.·A18   ··OPT····················the·ELSE·block·is·taken·if·it·is·present.·A
24   ··USE,_$·················conditional·block·must·be·closed·with·the·/IF·tag.19   ··OUTPUT·················conditional·block·must·be·closed·with·the·/IF·tag.
25   ··WHILE··················IF·tags·can·be·nested.20   ··QUOTE··················IF·tags·can·be·nested.
 21   ··SET
 22   ··UNDEF
 23   ··UNSET
 24   ··USE,_$
 25   ··WHILE
26   ··<!---26   ··<!---
27  History27  History
28  Wish_list28  Wish_list
29  Bugs29  Bugs
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
30  page_source30  page_source
31  htp_project31  htp_project
32  htp_homepage32  htp_homepage
6.94 KB
./usr/share/doc/htp/imageurl.html
    
Offset 114, 16 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·This·tag·will·fail:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>&gt;</span><br> 
123 </code></p>121 </code></p>
124 <h2>synopsis</h2>122 <h2>synopsis</h2>
125 <P>123 <P>
126 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local124 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local
127 file·system.··declares·an·URL·replacement·that·is·used·for125 file·system.··declares·an·URL·replacement·that·is·used·for
128 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions126 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions
129 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is127 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is
4.62 KB
html2text {}
    
Offset 1, 39 lines modifiedOffset 1, 41 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMAGEURL·******2 ******·htp·on-line·reference·:·IMAGEURL·******
3 Table_of_Contents····*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" 
5  License············email="jnelson@crl.com"> 
6  Tutorial··········· · ·This·tag·will·fail:·<[[ref]]USE·name> 
7  Usage··············*****·synopsis·*****4  Introduction···············*****·synopsis·*****
8  HTP·Tags···········IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file5  License····················IMAGEURL·tells·htp,·where·to·find·images·on·the
9   ··ALTTEXT········system.·declares·an·URL·replacement·that·is·used·for·size 
10   ··BLOCK··········lookups·in·any·IMG·tag.·This·definitions·takes·effect·only 
11   ··BLOCKDEF·······if·the·IMGXY·option·is·enabled.·Beacause·htp·can't·lookup6  Tutorial···················local·file·system.·declares·an·URL·replacement
 7  Usage······················that·is·used·for·size·lookups·in·any·IMG·tag.·This
 8  HTP·Tags···················definitions·takes·effect·only·if·the·IMGXY·option
 9   ··ALTTEXT················is·enabled.·Beacause·htp·can't·lookup·files·in·the
12   ··DEF············files·in·the·world·wide·web·you·have·to·map·absolute·image10   ··BLOCK··················world·wide·web·you·have·to·map·absolute·image·URLs
13   ··FILE···········URLs·to·a·directory·in·the·local·file·system.11   ··BLOCKDEF···············to·a·directory·in·the·local·file·system.
14   ··IF·············When·an·IMG·tag·is·encountered·where·htp·has·to·insert12   ··DEF····················When·an·IMG·tag·is·encountered·where·htp·has·to
15   ··INC············width·and·height·the·defined·URL·replacements·will·be 
16   ··IMG············taken·into·account·(later·definitions·take·precedence·to 
17  [>]·IMAGEURL·······earlier):·For·each·defined·imageurl·it·checks·(case- 
18   ··OPT············insensitive)·if·it·is·a·prefix·of·the·image's·SRC13   ··FILE···················insert·width·and·height·the·defined·URL
 14   ··IF·····················replacements·will·be·taken·into·account·(later
 15   ··INC····················definitions·take·precedence·to·earlier):·For·each
 16   ··IMG····················defined·imageurl·it·checks·(case-insensitive)·if
 17  [>]·IMAGEURL···············it·is·a·prefix·of·the·image's·SRC·attribute.·If·it
19   ··OUTPUT·········attribute.·If·it·matches·this·prefix·is·replaced·by·the18   ··OPT····················matches·this·prefix·is·replaced·by·the·given·PATH.
20   ··QUOTE··········given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered19   ··OUTPUT·················If·no·IMAGEURL·matches·the·SRC·is·considered·as
21   ··SET············as·relative·link·and·looked·up·in·the·current·directory.20   ··QUOTE··················relative·link·and·looked·up·in·the·current
 21   ··SET····················directory.
22   ··UNDEF··········For·example:22   ··UNDEF··················For·example:
23   ··UNSET·········· · ·<[[ref]]INC·i="1"·j="-1">23   ··UNSET·················· · ·<[[ref]]IF·name>...<[[ref]]/IF>
24   ··USE,_$·········If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,24   ··USE,_$·················If·IMAGEURL·is·specified·with·a·URL·but·no·PATH
25   ··WHILE··········it·is·treated·as·an·undefine,·and·is·removed.25   ··WHILE··················attribute,·it·is·treated·as·an·undefine,·and·is
 26   ··<!---··················removed.
26   ··<!---··········Since·you·usually·need·the·url·mapping·for·a·number·of27  History····················Since·you·usually·need·the·url·mapping·for·a
27  History············images·used·throughout·a·set·of·documents,·IMAGEURL·is 
28  Wish_list··········most·appropriately·put·into·an·include_file·or·the·htp.def 
29  Bugs···············file.28  Wish_list··················number·of·images·used·throughout·a·set·of
 29  Bugs·······················documents,·IMAGEURL·is·most·appropriately·put·into
 30 ·····························an·include_file·or·the·htp.def·file.
30 ·····················In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-31 ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also
31 ·····················)automatically·add·an·ALT_text·attribute·to·IMG·tags.32 ·····························(semi-)automatically·add·an·ALT_text·attribute·to
 33 ·····························IMG·tags.
  
  
  
  
  
  
  
4.38 KB
./usr/share/doc/htp/img.html
    
Offset 114, 15 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
122 </code></p>121 </code></p>
123 <h2>synopsis</h2>122 <h2>synopsis</h2>
124 <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified123 <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified
125 image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage124 image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage
126 of·not·having·to·determine·each·image's·size·manually,·which·is·especially125 of·not·having·to·determine·each·image's·size·manually,·which·is·especially
127 useful·if·the·image·may·change·frequently.·</P>126 useful·if·the·image·may·change·frequently.·</P>
128 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup127 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup
3.42 KB
html2text {}
    
Offset 1, 45 lines modifiedOffset 1, 44 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMG·******2 ******·htp·on-line·reference·:·IMG·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF> 
5  License····················*****·synopsis·*****4  Introduction···············*****·synopsis·*****
6  Tutorial···················img·is·a·standard·HTML·tag.·htp·can·add·the5  License····················img·is·a·standard·HTML·tag.·htp·can·add·the
7  Usage······················specified·image's·width·and·height·to·the·tag6  Tutorial···················specified·image's·width·and·height·to·the·tag
8  HTP·Tags···················automatically.·This·has·the·advantage·of·not7  Usage······················automatically.·This·has·the·advantage·of·not
9   ··ALTTEXT················having·to·determine·each·image's·size·manually,8  HTP·Tags···················having·to·determine·each·image's·size·manually,
10   ··BLOCK··················which·is·especially·useful·if·the·image·may·change9   ··ALTTEXT················which·is·especially·useful·if·the·image·may·change
11   ··BLOCKDEF···············frequently.10   ··BLOCK··················frequently.
12   ··DEF····················htp·adds·this·information·with·the·WIDTH·and11   ··BLOCKDEF···············htp·adds·this·information·with·the·WIDTH·and
13   ··FILE···················HEIGHT·markup·attributes.·If·htp·detects·these12   ··DEF····················HEIGHT·markup·attributes.·If·htp·detects·these
14   ··IF·····················attributes·are·already·present·in·the·tag,·it·will13   ··FILE···················attributes·are·already·present·in·the·tag,·it·will
15   ··INC····················not·modify·the·values.·If·htp·cannot·find·the14   ··IF·····················not·modify·the·values.·If·htp·cannot·find·the
16  [>]·IMG····················image·file,·it·will·issue·a·warning·but·not·halt15   ··INC····················image·file,·it·will·issue·a·warning·but·not·halt
17   ··IMAGEURL···············processing.16  [>]·IMG····················processing.
18   ··OPT····················At·this·time,·GIF·(Graphic·Interchange·Format),17   ··IMAGEURL···············At·this·time,·GIF·(Graphic·Interchange·Format),
19   ··OUTPUT·················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG18   ··OPT····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG
20   ··QUOTE··················File·Interchange·Format)·are·supported.19   ··OUTPUT·················File·Interchange·Format)·are·supported.
21   ··SET····················The·IMGXY_and_NOIMGXY·options·control·whether·or20   ··QUOTE··················The·IMGXY_and_NOIMGXY·options·control·whether·or
22   ··UNDEF··················not·htp·actually·adds·this·information·as·it21   ··SET····················not·htp·actually·adds·this·information·as·it
23   ··UNSET··················executes.22   ··UNDEF··················executes.
24   ··USE,_$·················Since·htp·is·able·to·lookup·files·only·in·the23   ··UNSET··················Since·htp·is·able·to·lookup·files·only·in·the
25   ··WHILE··················local·filesystem,·the·IMAGEURL·tag·may·be·used·to24   ··USE,_$·················local·filesystem,·the·IMAGEURL·tag·may·be·used·to
26   ··<!---··················map·URLs·to·local·files.25   ··WHILE··················map·URLs·to·local·files.
27  History····················htp·can·also·add·default·ALT·text·to·IMG·tags26   ··<!---··················htp·can·also·add·default·ALT·text·to·IMG·tags
28  Wish_list··················using·ALTTEXT.27  History····················using·ALTTEXT.
 28  Wish_list
29  Bugs29  Bugs
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
8.53 KB
./usr/share/doc/htp/inc.html
    
Offset 114, 37 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·This·tag·will·fail:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>&gt;</span><br> 
123 /var/www/other.domain/"><br> 
124 <br> 
125 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>&gt;</span><br> 
126 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
127 &nbsp;·(no·URL·replacement).<br> 
128 <br> 
129 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
130 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
131 <br> 
132 &nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
133 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
134 &nbsp;·will·not·be·added.<br> 
135 <br> 
136 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
137 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
138 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
139 <br> 
140 &nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
141 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
142 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
143 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
144 </code></p>121 </code></p>
145 <h2>synopsis</h2>122 <h2>synopsis</h2>
146 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a123 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a
147 variable·or·for·variable·addition.··The·basic·form·is·shown·above.124 variable·or·for·variable·addition.··The·basic·form·is·shown·above.
148 <P>125 <P>
149 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a126 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a
150 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The127 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The
4.9 KB
html2text {}
    
Offset 1, 54 lines modifiedOffset 1, 37 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·INC·******2 ******·htp·on-line·reference·:·INC·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············*****·synopsis·*****
 5  License····················The·INC·can·be·used·for·incrementing/decrementing
 6  Tutorial···················a·variable·or·for·variable·addition.·The·basic
 7  Usage······················form·is·shown·above.
 8  HTP·Tags···················The·"increment"·is·anything·that·evaluates·to·a
 9   ··ALTTEXT················integer.·It·can·be·a·literal·string·or·a·macro
4 Contents······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" 
5  Introduction·email="jnelson@crl.com"> 
6  License······ · ·This·tag·will·fail:·<[[ref]]USE·name> 
7  Tutorial·····/var/www/other.domain/"> 
8  Usage 
9  HTP·Tags····· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
10   ··ALTTEXT·· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
11   ··BLOCK···· ·(no·URL·replacement). 
12   ··BLOCKDEF 
13   ··DEF······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
14   ··FILE····· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
15   ··IF 
16  [>]·INC······ ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
17   ··IMG······ ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
18   ··IMAGEURL· ·will·not·be·added. 
19   ··OPT 
20   ··OUTPUT··· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
21   ··QUOTE···· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
22   ··SET······ ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
23   ··UNDEF 
24   ··UNSET···· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
25   ··USE,_$···mapped·to 
26   ··WHILE···· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
27   ··<!---···· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
28  History······ ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
29  Wish_list····*****·synopsis·***** 
30  Bugs·········The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for·variable 
31 ···············addition.·The·basic·form·is·shown·above. 
32 ···············The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be·a·literal 
33 ···············string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname·must·be·the10   ··BLOCK··················preceeded·by·the·'$'-operator.·The·macroname·must
34 ···············name·of·a·defined·macro·that·contains·an·integer.·If·the·increment·is11   ··BLOCKDEF···············be·the·name·of·a·defined·macro·that·contains·an
 12   ··DEF····················integer.·If·the·increment·is·ommitted·it·defaults
35 ···············ommitted·it·defaults·to·1.·The·effect·of·this·operation·is·that·the·macro·is13   ··FILE···················to·1.·The·effect·of·this·operation·is·that·the
36 ···············redefined·to·contain·the·sum·of·its·previous·value·and·its·increment.14   ··IF·····················macro·is·redefined·to·contain·the·sum·of·its
 15  [>]·INC····················previous·value·and·its·increment.
37 ···············To·increment·or·decrement·a·variable·you·can·use·this·form:16   ··IMG····················To·increment·or·decrement·a·variable·you·can·use
 17   ··IMAGEURL···············this·form:
38 ··············· · ·<[[ref]]INC·i="1"·j="-1">18   ··OPT···················· · ·<[[ref]]INC·i="1"·j="-1">
39 ···············Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It·may19   ··OUTPUT·················Note·that·INC·doesn't·check·if·the·strings·really
 20   ··QUOTE··················denote·integers.·It·may·give·weired·results·when
40 ···············give·weired·results·when·used·on·arbitrary·strings.·The·integer·values·are21   ··SET····················used·on·arbitrary·strings.·The·integer·values·are
41 ···············limited·to·the·range·-2^31..2^31.22   ··UNDEF··················limited·to·the·range·-2^31..2^31.
42 ···············Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The·INC23   ··UNSET··················Note·further·that·htp·wasn't·designed·to·do
 24   ··USE,_$·················extensive·calculations.·The·INC·tag·is·useful·in
43 ···············tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined·blocks.25   ··WHILE··················conjunction·with·WHILE·to·iterate·over·the·defined
  
  
 26   ··<!---··················blocks.
 27  History
 28  Wish_list
 29  Bugs
  
  
  
  
  
  
  
17.7 KB
./usr/share/doc/htp/metatag.html
    
Offset 88, 16 lines modifiedOffset 88, 14 lines modified
88 <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and88 <P>·Metatags·are·defined·with·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code></a>·and·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tags·and
89 undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P>89 undefined·with·the·<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>undef</code></a>·tag.··</P>
90 <P>90 <P>
91 As·an·example·we·show·how·to·define·a·tag·that·builds·a91 As·an·example·we·show·how·to·define·a·tag·that·builds·a
92 fancy·horizontal·rule·out·of·several·images.92 fancy·horizontal·rule·out·of·several·images.
93 </P>93 </P>
94 ··<p><code>94 ··<p><code>
95 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[GLOBAL]</span>&gt;</span><br> 
96 <font·size="-2">&nbsp;2.·</font><br> 
97 </code></p>95 </code></p>
98 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.96 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.
99 The·html·code·which·implements·this·rule·is·following·in·lines·2-8.97 The·html·code·which·implements·this·rule·is·following·in·lines·2-8.
100 between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and98 between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and
101 <code>/def</code></a>·tags.··You·don't·have·to·understand·this99 <code>/def</code></a>·tags.··You·don't·have·to·understand·this
102 html·code,·but·you·should·understand·that·this·is·just·pure·html·to100 html·code,·but·you·should·understand·that·this·is·just·pure·html·to
103 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>101 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>
10.6 KB
html2text {}
    
Offset 1, 98 lines modifiedOffset 1, 87 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·Metatags·******2 ******·htp·on-line·reference·:·Metatags·******
3 Table_of········*****·Programming·your·own·tags·*****3 Table_of········*****·Programming·your·own·tags·*****
4 Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define·a4 Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define
5  Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact5  Introduction··a·metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In
6  License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With6  License·······fact·metatags·are·just·like·block·macros,·but·they·have·a·nicer
7  Tutorial······metatags·you·can·expand·htp's·functionality.7  Tutorial······syntax.·With·metatags·you·can·expand·htp's·functionality.
8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and
9   ··Including·undefined·with·the·[[ref]]undef·tag.9   ··Including·undefined·with·the·[[ref]]undef·tag.
10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy
11   ··Files·····rule·out·of·several·images.11   ··Files·····horizontal·rule·out·of·several·images.
12  [>]·Metatags·· 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] 
13  Usage·········[GLOBAL]> 
14  HTP_Tags······ 2. 
15  History·······In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The12  [>]·Metatags··In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The
16  Wish_list·····html·code·which·implements·this·rule·is·following·in·lines·2-8.·between13  Usage·········html·code·which·implements·this·rule·is·following·in·lines·2-8.
17  Bugs··········the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html14  HTP_Tags······between·the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand
18 ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the15  History·······this·html·code,·but·you·should·understand·that·this·is·just·pure·html
19 ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace 
20 ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to 
21 ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include 
22 ················file.16  Wish_list·····to·draw·the·fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12
 17  Bugs··········htp·will·replace·this·tag·with·the·corresponding·html·code.·To·make
 18 ················metatags·available·to·all·htp·documents·in·your·project,·place·them
 19 ················in·a·common·[[ref]]include_file.
23 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing20 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing
24 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When21 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.
25 ················htp·encounters·a·blockdef·tag·it·will·automatically·search·for·the22 ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search·for
26 ················matching·closing·tag·and·put·everything·between·these·tags·in·a·block23 ················the·matching·closing·tag·and·put·everything·between·these·tags·in·a
27 ················macro·named·block.·Here·is·an·example·for·this.24 ················block·macro·named·block.·Here·is·an·example·for·this.
28 ················ 1. · ·<[[ref]]SET·emailaddr="jnelson@crl.com"> 
29 ················*****·Using·parameters·*****25 ················*****·Using·parameters·*****
30 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets26 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets
31 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or27 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or
32 ················blockdef·block:28 ················blockdef·block:
33 ················ 1. ·<[[ref]]def·name="sharedimg"·option="name·alt">29 ················ 1. ·<[[ref]]def·name="sharedimg"·option="name·alt">
34 ················ 2. · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">;30 ················ 2. · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">;
35 ················ 3. ·<[[ref]]/def>31 ················ 3. ·<[[ref]]/def>
36 ················ 4.32 ················ 4.
37 ················ 5. ·<sharedimg·name="bubble.gif"·alt="Bubble·image">33 ················ 5. ·<sharedimg·name="bubble.gif"·alt="Bubble·image">
38 ················*****·Saving·blocks·for·later·*****34 ················*****·Saving·blocks·for·later·*****
39 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the35 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the
40 ················template·file.·The·normal·htp·files·should·just·define·macros·that·are36 ················template·file.·The·normal·htp·files·should·just·define·macros·that
41 ················used·later·in·the·template.·So·you·may·want·to·write·block·tags·that37 ················are·used·later·in·the·template.·So·you·may·want·to·write·block·tags
42 ················just·save·the·block·in·a·macro·for·later·use.·Although·this·is·possible38 ················that·just·save·the·block·in·a·macro·for·later·use.·Although·this·is
43 ················with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to·do·this:39 ················possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to
 40 ················do·this:
44 ················ 1. ·<[[ref]]set·sect-ctr="0"> 
45 ················ 2. ·<[[ref]]blockdef·name="section"> 
46 ················ 3. · ·<[[ref]]inc·sect-ctr> 
47 ················ 4. · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> 
48 ················ 5. · · ·<[[ref]]use·block·noexpand> 
49 ················ 6. · ·<[[ref]]/block> 
50 ················ 7. ·<[[ref]]/blockdef> 
51 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter41 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter
52 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every·section42 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every
53 ················(line·3)·and·then·the·block·macro·name·is·build·from·this·counter.·So43 ················section·(line·3)·and·then·the·block·macro·name·is·build·from·this
54 ················the·first·section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so44 ················counter.·So·the·first·section·is·stored·in·block·sect-1,·the·second
55 ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should45 ················in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells·htp·that
56 ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be46 ················these·macros·should·be·defined·globally·for·the·remaining·run.
57 ················forgotten·at·the·end·of·the·section·macro.47 ················Otherwise·they·would·be·forgotten·at·the·end·of·the·section·macro.
58 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5.48 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and
59 ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and49 ················5.·Normally·when·you·define·a·block·macro·the·code·between·the·start
60 ················end·tag·is·literally·copied·into·the·macro·value.·The·expansion·takes50 ················and·end·tag·is·literally·copied·into·the·macro·value.·The·expansion
61 ················place·when·the·macro·is·used.·In·this·case·that·doesn't·make·sense;·all51 ················takes·place·when·the·macro·is·used.·In·this·case·that·doesn't·make
62 ················macros·sect-1,·sect-2·and·so·on·would·just·contain·the·same·value,52 ················sense;·all·macros·sect-1,·sect-2·and·so·on·would·just·contain·the
63 ················namely·<use·block>·and·block·wouldn't·be·defined·anymore·when·the·macros53 ················same·value,·namely·<use·block>·and·block·wouldn't·be·defined·anymore
64 ················are·finally·expanded.·Therefore·we·use·expand·to·expand·the·use·tag54 ················when·the·macros·are·finally·expanded.·Therefore·we·use·expand·to
65 ················already·when·sect-1·is·defined.55 ················expand·the·use·tag·already·when·sect-1·is·defined.
66 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and56 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and
67 ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,·it57 ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,
68 ················would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it·later58 ················it·would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it
69 ················in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand·whenever59 ················later·in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand
70 ················you·use·expand·in·a·block·around·it.60 ················whenever·you·use·expand·in·a·block·around·it.
71 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}·blocks61 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}
72 ················in·the·template:62 ················blocks·in·the·template:
 63 ················ 1.<[[ref]]UNDEF·tagname>
 64 ················ 2.<[[ref]]UNDEF·tagname1·tagname2·...·>
73 ················ 1.<[[ref]]WHILE·[NOT]·conditional> 
74 ················ 2. · ·block 
75 ················ 3.<[[ref]]/WHILE> 
76 ················ 4.65 ················ 3.
77 ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-${sect-ctr}66 ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-${sect-
78 ················is·defined.·If·it·is·defined·the·body·is·evaluated,·which·expands·the67 ················ctr}·is·defined.·If·it·is·defined·the·body·is·evaluated,·which
79 ················macro·and·increases·sect-ctr.·Afterwards·the·while·condition·is·checked68 ················expands·the·macro·and·increases·sect-ctr.·Afterwards·the·while
80 ················again·to·check·for·sect-2·macro.·This·repeats·until·sect-${sect-ctr}·is 
81 ················not·defined.69 ················condition·is·checked·again·to·check·for·sect-2·macro.·This·repeats
 70 ················until·sect-${sect-ctr}·is·not·defined.
82 ················*****·Conclusions·*****71 ················*****·Conclusions·*****
83 ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and·see·the72 ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and·see
84 ················advantages·of·using·htp·for·your·own·projects.·Please·give·us·some73 ················the·advantages·of·using·htp·for·your·own·projects.·Please·give·us
85 ················feedback·about·this·tutorial.·What·can·be·improved?74 ················some·feedback·about·this·tutorial.·What·can·be·improved?
86 ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage·chapter75 ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage
87 ················or·browse·the·documentations·for·the·htp·tags.·If·you're·looking·for76 ················chapter·or·browse·the·documentations·for·the·htp·tags.·If·you're
88 ················examples,·in·case·you·haven't·already·noticed·yourself,·there·is·a·link77 ················looking·for·examples,·in·case·you·haven't·already·noticed·yourself,
89 ················to·the·source·code·on·the·left,·where·you·can·get·the·source·code·for78 ················there·is·a·link·to·the·source·code·on·the·left,·where·you·can·get·the
90 ················every·page·on·this·site.79 ················source·code·for·every·page·on·this·site.
  
  
  
  
  
  
  
4.2 KB
./usr/share/doc/htp/opt.html
    
Offset 114, 27 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"imghr"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;<span·class="htp-tag">&lt;table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-string">"0"</span>&gt;</span><br> 
123 &nbsp;·&nbsp;<span·class="htp-tag">&lt;tr&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>&gt;</span><span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"leftsep.png"</span>&gt;</span><span·class="htp-tag">&lt;/td&gt;</span><br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>&gt;</span>&amp;nbsp;<span·class="htp-tag">&lt;/td&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>&gt;</span><span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"rightsep.png"</span>&gt;</span><span·class="htp-tag">&lt;/td&gt;</span><br> 
127 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br> 
128 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br> 
129 &nbsp;<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
130 <br> 
131 &nbsp;paragraph<br> 
132 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br> 
133 &nbsp;paragraph<br> 
134 </code></p>121 </code></p>
135 <h2>synopsis</h2>122 <h2>synopsis</h2>
136 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing123 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing
137 options·inside·the·actual·document·being·processed.··The·options·are124 options·inside·the·actual·document·being·processed.··The·options·are
138 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not125 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not
139 preceded·by·a·&lsquo;-&rsquo;·character.126 preceded·by·a·&lsquo;-&rsquo;·character.
140 <P>127 <P>
1.72 KB
html2text {}
    
Offset 1, 49 lines modifiedOffset 1, 38 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·OPT·******2 ******·htp·on-line·reference·:·OPT·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4 Contents······· <[[ref]]def·name="imghr"> 
5  Introduction· · <table·border="0"·cellspacing="0"·cellpadding="0"> 
6  License······ · <tr> 
7  Tutorial····· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> 
8  Usage········ · ·<td·width="95%"·background="midsep.png">&nbsp;</td> 
9  HTP·Tags····· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> 
10   ··ALTTEXT·· · </tr> 
11   ··BLOCK···· · </table> 
12   ··BLOCKDEF· <[[ref]]/def>4 Contents·······*****·synopsis·*****
 5  Introduction·OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the
 6  License······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be
 7  Tutorial·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character.
 8  Usage········Click·here·for·more_information_on_using_customization_options_with_htp.
 9  HTP·Tags
 10   ··ALTTEXT
 11   ··BLOCK
 12   ··BLOCKDEF
13   ··DEF13   ··DEF
14   ··FILE····· paragraph 
15   ··IF······· <imghr> 
16   ··INC······ paragraph 
17   ··IMG······*****·synopsis·***** 
18   ··IMAGEURL·OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the 
19  [>]·OPT······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be 
20   ··OUTPUT···on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. 
21   ··QUOTE····Click·here·for·more_information_on_using_customization_options_with_htp.14   ··FILE
 15   ··IF
 16   ··INC
 17   ··IMG
 18   ··IMAGEURL
 19  [>]·OPT
 20   ··OUTPUT
 21   ··QUOTE
22   ··SET22   ··SET
23   ··UNDEF23   ··UNDEF
24   ··UNSET24   ··UNSET
25   ··USE,_$25   ··USE,_$
26   ··WHILE26   ··WHILE
27   ··<!---27   ··<!---
28  History28  History
29  Wish_list29  Wish_list
30  Bugs30  Bugs
  
  
  
  
  
  
  
  
  
  
  
31  page_source31  page_source
32  htp_project32  htp_project
33  htp_homepage33  htp_homepage
34 hosted·by34 hosted·by
35 Sourceforge35 Sourceforge
36 HTML·coding36 HTML·coding
37 [Powered_by37 [Powered_by
3.1 KB
./usr/share/doc/htp/output.html
    
Offset 114, 16 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="ebnf">[</span><span·class="htp-attrib">ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <br> 
123 </code></p>121 </code></p>
124 <h2>synopsis</h2>122 <h2>synopsis</h2>
125 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary123 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary
126 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the124 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the
127 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>125 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>
128 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you126 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you
129 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text127 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text
2.14 KB
html2text {}
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·OUTPUT·******2 ******·htp·on-line·reference·:·OUTPUT·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> 
5  License 
6  Tutorial···················*****·synopsis·*****4  Introduction···············*****·synopsis·*****
7  Usage······················The·OUTPUT·tag·can·be·used·to·create·auxillary5  License····················The·OUTPUT·tag·can·be·used·to·create·auxillary
8  HTP·Tags···················files·besides·the·main·HTML·file.·The·text·between6  Tutorial···················files·besides·the·main·HTML·file.·The·text·between
9   ··ALTTEXT················this·tag·and·the·corresponding·</OUTPUT>·tag·is7  Usage······················this·tag·and·the·corresponding·</OUTPUT>·tag·is
10   ··BLOCK··················written·to·output·file.8  HTP·Tags···················written·to·output·file.
11   ··BLOCKDEF···············Normally·the·outputfile·is·cleared·before·writing9   ··ALTTEXT················Normally·the·outputfile·is·cleared·before·writing
12   ··DEF····················to·it,·but·you·can·use·the·APPEND·attribute·to10   ··BLOCK··················to·it,·but·you·can·use·the·APPEND·attribute·to
13   ··FILE···················extend·an·existing·file.·The·text·written·to·the11   ··BLOCKDEF···············extend·an·existing·file.·The·text·written·to·the
14   ··IF·····················file·is·normally·not·expanded,·i.e.·all·tags12   ··DEF····················file·is·normally·not·expanded,·i.e.·all·tags
15   ··INC····················inside·this·block·are·not·executed·but·written13   ··FILE···················inside·this·block·are·not·executed·but·written
16   ··IMG····················unmodified·to·the·file.·However,·you·can·use·the14   ··IF·····················unmodified·to·the·file.·However,·you·can·use·the
17   ··IMAGEURL···············EXPAND·attribute·to·override·this·behaviour.15   ··INC····················EXPAND·attribute·to·override·this·behaviour.
 16   ··IMG
 17   ··IMAGEURL
18   ··OPT18   ··OPT
19  [>]·OUTPUT19  [>]·OUTPUT
20   ··QUOTE20   ··QUOTE
21   ··SET21   ··SET
22   ··UNDEF22   ··UNDEF
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
5.1 KB
./usr/share/doc/htp/quote.html
    
Offset 114, 21 lines modifiedOffset 114, 21 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·<span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>&gt;</span><br>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>&gt;</span><br>122 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>&gt;</span><br>
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br> 
123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br>123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>&gt;</span><br>
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</sp[·...·truncated·by·diffoscope;·len:·42,·SHA:·37eb4a8d46f3410fb1f4c4bb9945bd70d3a80e30d58d0607eb4d16840f9bb68e·...·]&gt;</span><br>
 125 &nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
125 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>127 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
126 <br> 
127 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br> 
128 </code></p>128 </code></p>
129 <h2>synopsis</h2>129 <h2>synopsis</h2>
130 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise130 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise
131 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a131 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a
132 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early132 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early
133 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still133 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still
134 done·inside·a·quote·block.134 done·inside·a·quote·block.
2.25 KB
html2text {}
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·QUOTE·******2 ******·htp·on-line·reference·:·QUOTE·******
3 Table_of_Contents·······*****·syntax·*****3 Table_of_Contents····*****·syntax·*****
4  Introduction·········· ·<[[ref]]blockdef·name="bolditalic"> 
5  License··············· · ·<b><i>4  Introduction······· ·<[[ref]]set·sect-ctr="0">
 5  License············ ·<[[ref]]blockdef·name="section">
6  Tutorial·············· · ·<[[ref]]use·block>6  Tutorial··········· · ·<[[ref]]inc·sect-ctr>
7  Usage················· · ·</i></b>7  Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global>
8  HTP·Tags·············· ·<[[ref]]/blockdef>8  HTP·Tags··········· · · ·<[[ref]]use·block·noexpand>
9   ··ALTTEXT 
10   ··BLOCK············· ·This·is·<bolditalic>bold·and·italic</bolditalic>9   ··ALTTEXT········ · ·<[[ref]]/block>
 10   ··BLOCK·········· ·<[[ref]]/blockdef>
11   ··BLOCKDEF··········*****·synopsis·*****11   ··BLOCKDEF·······*****·synopsis·*****
12   ··DEF···············QUOTE·is·used·to·quote·a·macro·that·would·otherwise12   ··DEF············QUOTE·is·used·to·quote·a·macro·that·would·otherwise·be
13   ··FILE··············be·interpreted·by·HTP.·It·may·be·useful·in13   ··FILE···········interpreted·by·HTP.·It·may·be·useful·in·conjunction·with·a
14   ··IF················conjunction·with·a·surrounding·EXPANDed·block·to 
15   ··INC···············prevent·early·expansion·of·some·contained·blocks. 
16   ··IMG···············Note·that·'$'·evaluation·is·still·done·inside·a 
17   ··IMAGEURL··········quote·block.14   ··IF·············surrounding·EXPANDed·block·to·prevent·early·expansion·of
 15   ··INC············some·contained·blocks.·Note·that·'$'·evaluation·is·still
 16   ··IMG············done·inside·a·quote·block.
 17   ··IMAGEURL
18   ··OPT18   ··OPT
19   ··OUTPUT19   ··OUTPUT
20  [>]·QUOTE20  [>]·QUOTE
21   ··SET21   ··SET
22   ··UNDEF22   ··UNDEF
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
8.51 KB
./usr/share/doc/htp/set.html
    
Offset 114, 31 lines modifiedOffset 114, 29 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·<span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>&gt;</span><br>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>&gt;</span><br>122 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>&gt;</span><br>
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br> 
123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br>123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>&gt;</span><br>
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</sp[·...·truncated·by·diffoscope;·len:·42,·SHA:·37eb4a8d46f3410fb1f4c4bb9945bd70d3a80e30d58d0607eb4d16840f9bb68e·...·]&gt;</span><br>
 125 &nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
125 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>127 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
126 <br> 
127 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br> 
128 </code></p>128 </code></p>
129 <h2>synopsis</h2>129 <h2>synopsis</h2>
130 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded130 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded
131 anywhere·in·the·HTML·document.··To·create·a·macro:131 anywhere·in·the·HTML·document.··To·create·a·macro:
132 ··<p><code>132 ··<p><code>
133 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>&gt;</span><br> 
134 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>&gt;</span>;<br> 
135 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>133 <span·class="htp-tag">&lt;<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>&gt;</span><br>
 134 <span·class="htp-tag">&lt;<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br>
136 <br>135 <br>
137 &nbsp;·<span·class="htp-tag">&lt;sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>&gt;</span><br> 
138 </code></p>136 </code></p>
139 <P>137 <P>
140 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">138 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">
141 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular139 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular
142 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the140 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the
143 <A·HREF="use.html">'$'</A>·operator.141 <A·HREF="use.html">'$'</A>·operator.
144 <P>142 <P>
4.05 KB
html2text {}
    
Offset 1, 39 lines modifiedOffset 1, 39 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·SET·******2 ******·htp·on-line·reference·:·SET·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents····*****·syntax·*****
4 Contents······· ·<[[ref]]blockdef·name="bolditalic"> 
5  Introduction· · ·<b><i> 
6  License······ · ·<[[ref]]use·block> 
7  Tutorial····· · ·</i></b>4  Introduction······· ·<[[ref]]set·sect-ctr="0">
 5  License············ ·<[[ref]]blockdef·name="section">
 6  Tutorial··········· · ·<[[ref]]inc·sect-ctr>
 7  Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global>
 8  HTP·Tags··········· · · ·<[[ref]]use·block·noexpand>
 9   ··ALTTEXT········ · ·<[[ref]]/block>
8  Usage········ ·<[[ref]]/blockdef>10   ··BLOCK·········· ·<[[ref]]/blockdef>
9  HTP·Tags 
10   ··ALTTEXT·· ·This·is·<bolditalic>bold·and·italic</bolditalic> 
11   ··BLOCK····*****·synopsis·*****11   ··BLOCKDEF·······*****·synopsis·*****
12   ··BLOCKDEF·SET·creates·a·macro·definition·that·can·later·be·expanded12   ··DEF············SET·creates·a·macro·definition·that·can·later·be·expanded
13   ··DEF······anywhere·in·the·HTML·document.·To·create·a·macro:13   ··FILE···········anywhere·in·the·HTML·document.·To·create·a·macro:
 14   ··IF·············<[[ref]]UNDEF·tagname>
 15   ··INC············<[[ref]]UNDEF·tagname1·tagname2·...·>
14   ··FILE····· ·<[[ref]]def·name="sharedimg"·option="name·alt"> 
15   ··IF······· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; 
16   ··INC······ ·<[[ref]]/def> 
17   ··IMG16   ··IMG
18   ··IMAGEURL· ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> 
19   ··OPT······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE·tag·is17   ··IMAGEURL·······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE
20   ··OUTPUT···used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular18   ··OPT············tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into
21   ··QUOTE····text).·If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use 
22  [>]·SET······the·'$'·operator.19   ··OUTPUT·········the·regular·text).·If·the·macro·needs·to·be·expanded
 20   ··QUOTE··········inside·a·markup·tag,·use·the·'$'·operator.
23   ··UNDEF····Multiple·macros·can·be·declared·in·a·single·markup·tag,·as·the21  [>]·SET············Multiple·macros·can·be·declared·in·a·single·markup·tag,·as
24   ··UNSET····second·syntax·line·shows.22   ··UNDEF··········the·second·syntax·line·shows.
25   ··USE,_$···SET·should·only·be·used·for·a·single·line's·worth·of·text.·Multi-23   ··UNSET··········SET·should·only·be·used·for·a·single·line's·worth·of·text.
26   ··WHILE····line·macros·can·be·defined·with·the·BLOCK·tag.·The·BLOCK·tag·is24   ··USE,_$·········Multi-line·macros·can·be·defined·with·the·BLOCK·tag.·The
27   ··<!---····also·useful·if·the·macro·contains·a·quotation·character·and·you 
28  History······don't·want·to·fool·around·with·special·escape·characters.25   ··WHILE··········BLOCK·tag·is·also·useful·if·the·macro·contains·a·quotation
 26   ··<!---··········character·and·you·don't·want·to·fool·around·with·special
 27  History············escape·characters.
29  Wish_list····Macros·can·be·redefined·by·using·another·SET·command·with·the28  Wish_list··········Macros·can·be·redefined·by·using·another·SET·command·with
30  Bugs·········same·macro·name.·The·prior·definition·will·be·destroyed,·however.29  Bugs···············the·same·macro·name.·The·prior·definition·will·be
 30 ·····················destroyed,·however.·Also,·the·macro·can·be·removed
31 ···············Also,·the·macro·can·be·removed·(destroyed)·with·the·UNSET·tag.31 ·····················(destroyed)·with·the·UNSET·tag.
  
  
  
  
  
  
  
4.75 KB
./usr/share/doc/htp/undef.html
    
Offset 114, 21 lines modifiedOffset 114, 17 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>&gt;</span><br> 
122 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>&gt;</span><br>121 <span·class="htp-tag">&lt;<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>&gt;</span><br>
 122 <span·class="htp-tag">&lt;<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br>
 123 <br>
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>&gt;</span><br> 
125 &nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
127 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br> 
128 </code></p>124 </code></p>
129 <h2>synopsis</h2>125 <h2>synopsis</h2>
130 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags126 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags
131 created·by·<A·HREF="def.html">DEF</A>·and·<A127 created·by·<A·HREF="def.html">DEF</A>·and·<A
132 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF128 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF
133 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by129 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by
134 htp·until·it·is·reassigned.··</P>130 htp·until·it·is·reassigned.··</P>
2.22 KB
html2text {}
    
Offset 1, 25 lines modifiedOffset 1, 25 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·UNDEF·******2 ******·htp·on-line·reference·:·UNDEF·******
3 Table_of_Contents····*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]UNDEF·tagname>
 5  License····················<[[ref]]UNDEF·tagname1·tagname2·...·>
 6  Tutorial
 7  Usage······················*****·synopsis·*****
4  Introduction······· ·<[[ref]]set·sect-ctr="0"> 
5  License············ ·<[[ref]]blockdef·name="section"> 
6  Tutorial··········· · ·<[[ref]]inc·sect-ctr> 
7  Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> 
8  HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> 
9   ··ALTTEXT········ · ·<[[ref]]/block> 
10   ··BLOCK·········· ·<[[ref]]/blockdef> 
11   ··BLOCKDEF·······*****·synopsis·***** 
12   ··DEF············UNDEF·removes·a·metatag·definition.·Metatags·created·by8  HTP·Tags···················UNDEF·removes·a·metatag·definition.·Metatags
13   ··FILE···········DEF·and·BLOCKDEF·can·be·removed·with·the·UNDEF·command. 
14   ··IF·············Once·removed,·the·metatag·will·no·longer·be·recognized·by 
15   ··INC············htp·until·it·is·reassigned.9   ··ALTTEXT················created·by·DEF·and·BLOCKDEF·can·be·removed·with
 10   ··BLOCK··················the·UNDEF·command.·Once·removed,·the·metatag·will
 11   ··BLOCKDEF···············no·longer·be·recognized·by·htp·until·it·is
 12   ··DEF····················reassigned.
16   ··IMG············Multiple·metatags·can·be·removed·by·placing·each·name·as13   ··FILE···················Multiple·metatags·can·be·removed·by·placing·each
17   ··IMAGEURL·······an·attribute.14   ··IF·····················name·as·an·attribute.
 15   ··INC
 16   ··IMG
 17   ··IMAGEURL
18   ··OPT18   ··OPT
19   ··OUTPUT19   ··OUTPUT
20   ··QUOTE20   ··QUOTE
21   ··SET21   ··SET
22  [>]·UNDEF22  [>]·UNDEF
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
7.62 KB
./usr/share/doc/htp/unset.html
    
Offset 114, 43 lines modifiedOffset 114, 37 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·<span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>&gt;</span><br> 
122 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
123 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sect-<span·class="htp-macro">${sect-ctr}</span>"</span>·<span·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>&gt;</span><br> 
125 &nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
127 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br> 
128 </code></p>121 </code></p>
129 <h2>synopsis</h2>122 <h2>synopsis</h2>
130 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.123 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.
131 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.124 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.
132 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or125 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or
133 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The126 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The
134 old·macro·definition·will·be·removed·automatically.)127 old·macro·definition·will·be·removed·automatically.)
135 <P>128 <P>
136 For·example:129 For·example:
137 ··<p><code>130 ··<p><code>
138 <span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">macroname</span>·<span·class="htp-attrib">[parameters</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[noexpand]</span>&gt;</span><br> 
139 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br> 
140 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>131 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>&gt;</span><br>
 132 &nbsp;·<span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span>send·email<span·class="htp-tag">&lt;/a&gt;</span><br>
 133 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
141 <br>134 <br>
 135 <span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span><br>
 136 <br>
 137 This·works:·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br>
 138 But·this·fails:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>&gt;</span><br>
 139 And·this·fails:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br>
142 </code></p>140 </code></p>
143 <P>141 <P>
144 More·than·one·macro·may·be·removed·in·the·same·tag:142 More·than·one·macro·may·be·removed·in·the·same·tag:
145 ··<p><code>143 ··<p><code>
146 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br> 
147 &nbsp;·&nbsp;·...<br> 
148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>&gt;</span><br> 
149 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br> 
150 </code></p>144 </code></p>
151 <p>145 <p>
152 </td>146 </td>
153 </tr>147 </tr>
154 <tr>148 <tr>
155 <td·width="20%"·bgcolor="white"·valign="bottom">149 <td·width="20%"·bgcolor="white"·valign="bottom">
156 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">150 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">
2.45 KB
html2text {}
    
Offset 1, 49 lines modifiedOffset 1, 45 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·UNSET·******2 ******·htp·on-line·reference·:·UNSET·******
3 Table_of_Contents····*****·syntax·*****3 Table_of··········*****·syntax·*****
4  Introduction······· ·<[[ref]]set·sect-ctr="0"> 
5  License············ ·<[[ref]]blockdef·name="section"> 
6  Tutorial··········· · ·<[[ref]]inc·sect-ctr> 
7  Usage·············· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> 
8  HTP·Tags··········· · · ·<[[ref]]use·block·noexpand> 
9   ··ALTTEXT········ · ·<[[ref]]/block> 
10   ··BLOCK·········· ·<[[ref]]/blockdef> 
11   ··BLOCKDEF·······*****·synopsis·*****4 Contents··········*****·synopsis·*****
12   ··DEF············UNSET·removes·(or·deletes)·a·macro·and·it's·definition.5  Introduction····UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The
13   ··FILE···········The·macro·is·subsequently·not·available·for·use·in·the6  License·········macro·is·subsequently·not·available·for·use·in·the·pre-
14   ··IF·············pre-processed·files.·(Note·that·simply·redefining·the7  Tutorial········processed·files.·(Note·that·simply·redefining·the·macro·with
15   ··INC············macro·with·another·SET·or·BLOCK·definition·with·the·same8  Usage···········another·SET·or·BLOCK·definition·with·the·same·name·is
16   ··IMG············name·is·acceptable.·The·old·macro·definition·will·be9  HTP·Tags········acceptable.·The·old·macro·definition·will·be·removed
17   ··IMAGEURL·······removed·automatically.)10   ··ALTTEXT·····automatically.)
18   ··OPT············For·example:11   ··BLOCK·······For·example:
19   ··OUTPUT·········<[[ref]]use·macroname·[parameters·...]·[noexpand]> 
20   ··QUOTE··········<...·$macroname·...> 
21   ··SET············<...·${macroname}·...>12   ··BLOCKDEF····<[[ref]]block·stuff>
 13   ··DEF········· ·<a·href=$email>send·email</a>
 14   ··FILE········<[[ref]]/block>
 15   ··IF
 16   ··INC·········<[[ref]]set·morestuff=$email>
 17   ··IMG
 18   ··IMAGEURL····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
 19   ··OPT·········But·this·fails:·<[[ref]]use·email>
 20   ··OUTPUT······And·this·fails:·<[[ref]]use·morestuff
 21   ··QUOTE·······email="jnelson@crl.com">
 22   ··SET·········More·than·one·macro·may·be·removed·in·the·same·tag:
22   ··UNDEF23   ··UNDEF
23  [>]·UNSET··········More·than·one·macro·may·be·removed·in·the·same·tag: 
24   ··USE,_$········· ·<[[ref]]WHILE·NOT·i="10"> 
25   ··WHILE·········· · ·... 
26   ··<!---·········· · ·<[[ref]]INC·i> 
27  History············ ·<[[ref]]/WHILE>24  [>]·UNSET
 25   ··USE,_$
 26   ··WHILE
 27   ··<!---
 28  History
28  Wish_list29  Wish_list
29  Bugs30  Bugs
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
30  page_source31  page_source
14.3 KB
./usr/share/doc/htp/use.html
    
Offset 114, 18 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·block<br> 
123 <span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br> 
124 <br> 
125 </code></p>121 </code></p>
126 <h2>synopsis</h2>122 <h2>synopsis</h2>
127 <strong>USE</strong>·will·expand·macros·that·have·been·previously123 <strong>USE</strong>·will·expand·macros·that·have·been·previously
128 declared·with·either·<A·HREF="set.html">SET</A>·or·<A124 declared·with·either·<A·HREF="set.html">SET</A>·or·<A
129 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other125 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other
130 markup·tags.126 markup·tags.
131 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will127 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
8.56 KB
html2text {}
    
Offset 1, 78 lines modifiedOffset 1, 63 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·USE,·$·******2 ******·htp·on-line·reference·:·USE,·$·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
 4 Contents·······*****·synopsis·*****
 5  Introduction·USE·will·expand·macros·that·have·been·previously·declared·with
 6  License······either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other
 7  Tutorial·····markup·tags.
 8  Usage········If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
 9  HTP·Tags·····be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for
 10   ··ALTTEXT··example,·if·the·use·is·inside·a·block·which·expands·itself.·You
4  Introduction···············<[[ref]]WHILE·[NOT]·conditional> 
5  License···················· · ·block 
6  Tutorial···················<[[ref]]/WHILE> 
7  Usage 
8  HTP·Tags···················*****·synopsis·***** 
9   ··ALTTEXT················USE·will·expand·macros·that·have·been·previously 
10   ··BLOCK··················declared·with·either·SET·or·BLOCK.·USE·can·only·be 
11   ··BLOCKDEF···············used·outside·of·other·markup·tags. 
12   ··DEF····················If·you·USE·a·block·macro·the·value·of·expanded 
13   ··FILE···················block·macros·will·be·further·parsed·by·htp.·This 
14   ··IF·····················is·maybe·not·what·you·want,·for·example,·if·the 
15   ··INC····················use·is·inside·a·block·which·expands·itself.·You 
16   ··IMG····················can·use·the·noexpand·attribute·to·prevent·further11   ··BLOCK····can·use·the·noexpand·attribute·to·prevent·further·expansion.
 12   ··BLOCKDEF·USE·will·accept·additional·parameters,·which·are·"local"·macros
 13   ··DEF······for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros.
 14   ··FILE·····Macros·created·using·SET·cannot·have·parameters·passed.·For
 15   ··IF·······example:
17   ··IMAGEURL···············expansion. 
18   ··OPT····················USE·will·accept·additional·parameters,·which·are 
19   ··OUTPUT·················"local"·macros·for·the·expanded·macro.·This·is 
20   ··QUOTE··················only·valid·for·BLOCK·macros.·Macros·created·using 
21   ··SET····················SET·cannot·have·parameters·passed.·For·example: 
22   ··UNDEF·················· 1. ·<[[ref]]WHILE·NOT·i="10"> 
23   ··UNSET·················· 2. · ·... 
24  [>]·USE,_$················· 3. · ·<[[ref]]INC·i> 
25   ··WHILE·················· 4. ·<[[ref]]/WHILE> 
26   ··<!---··················(See·below·for·a·description·of·the·'$'·operator.)16   ··INC······(See·below·for·a·description·of·the·'$'·operator.)·The·example
 17   ··IMG······on·line·7·works·because·"stuff"·has·been·declared·as·a·block
 18   ··IMAGEURL·macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"
 19   ··OPT······macro.·Line·8·fails·because·the·"email"·macro·is·unavailable
 20   ··OUTPUT···once·the·block·macro·is·completely·expanded,·and·cannot·be
 21   ··QUOTE····passed·to·a·SET·macro.
27  History····················The·example·on·line·7·works·because·"stuff"·has 
28  Wish_list··················been·declared·as·a·block·macro,·and·the·tag·is 
29  Bugs·······················passing·the·"email"·macro·to·the·"stuff"·macro. 
30 ·····························Line·8·fails·because·the·"email"·macro·is 
31 ·····························unavailable·once·the·block·macro·is·completely 
32 ·····························expanded,·and·cannot·be·passed·to·a·SET·macro. 
33 ·····························Note·that·the·"email"·macro·is·available·to·other22   ··SET······Note·that·the·"email"·macro·is·available·to·other·macros·or
 23   ··UNDEF····included·files·called·within·the·"stuff"·block.
 24   ··UNSET····Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard
 25  [>]·USE,_$···HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should
 26   ··WHILE····be·immediately·followed·by·the·macro·name,·which·may·or·may·not
 27   ··<!---····be·surrounded·by·curly·braces.·When·htp·encounters·this·it
 28  History······replaces·the·macro·name·by·the·contents·of·the·macro·without
 29  Wish_list····further·processing·the·contents.
 30  Bugs········· 1.<a·href="mailto:$email">mailto·hyperlink</a>
 31 ··············· 2.<a·href="http://$domain/~${username}/">another·hyperlink</a>
34 ·····························macros·or·included·files·called·within·the·"stuff" 
35 ·····························block. 
36 ·····························Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any 
37 ·····························other·standard·HTML·or·htp·tag,·the·'$'·operator 
38 ·····························must·be·used.·The·'$'·should·be·immediately 
39 ·····························followed·by·the·macro·name,·which·may·or·may·not 
40 ·····························be·surrounded·by·curly·braces.·When·htp·encounters 
41 ·····························this·it·replaces·the·macro·name·by·the·contents·of 
42 ·····························the·macro·without·further·processing·the·contents. 
43 ····························· 1. ·<[[ref]]WHILE·sect-$i> 
44 ····························· 2. · ·... 
45 ····························· 3. · ·<[[ref]]INC·i> 
46 ····························· 4. ·<[[ref]]/WHILE> 
47 ·····························The·use·of·curly·braces·is·encouraged,·since·it·is32 ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust
 33 ···············and·should·never·cause·confusion·with·surrounding·text.·If·no
 34 ···············curly·braces·are·used·the·macro·name·consists·either·of·a·single
48 ·····························more·robust·and·should·never·cause·confusion·with 
49 ·····························surrounding·text.·If·no·curly·braces·are·used·the 
50 ·····························macro·name·consists·either·of·a·single·punctuation 
51 ·····························character·or·the·maximum·sequence·of·letters,35 ···············punctuation·character·or·the·maximum·sequence·of·letters,
52 ·····························digits,·"-"·and·"_"·that·follows·it.36 ···············digits,·"-"·and·"_"·that·follows·it.
53 ·····························If·a·'$'·character·needs·to·be·kept·in·the·final37 ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and·not
 38 ···············interpreted·as·a·macro·name,·it·must·be·escaped·by·another·'$'
54 ·····························output,·and·not·interpreted·as·a·macro·name,·it 
55 ·····························must·be·escaped·by·another·'$'·character.·This·is 
56 ·····························especially·true·for·PHP·code.39 ···············character.·This·is·especially·true·for·PHP·code.
 40 ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp
 41 ···············will·automatically·surround·it·with·quotation·marks·to·prevent
57 ·····························If·the·'$'·macro·is·the·only·text·in·the 
58 ·····························attribute's·value,·htp·will·automatically·surround 
59 ·····························it·with·quotation·marks·to·prevent·spaces·from 
60 ·····························delimiting·the·text·as·if·it·were·additional42 ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup
61 ·····························markup·attributes.·If·the·'$'·macro·is·surrounded 
62 ·····························by·other·text·(as·in·the·two·examples·above), 
63 ·····························quotation·marks·are·not·automatically·supplied.43 ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in
 44 ···············the·two·examples·above),·quotation·marks·are·not·automatically
 45 ···············supplied.
64 ·····························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a46 ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and
65 ·····························markup·tag·and·can·be·nested.·This·is·valid:47 ···············can·be·nested.·This·is·valid:
66 ····························· · ·<${tagName}·${attrName}=${value$ctr}>48 ··············· ·<[[ref]]WHILE·sect-$i>
 49 ··············· · ·...
 50 ··············· · ·<[[ref]]INC·i>
 51 ··············· ·<[[ref]]/WHILE>
67 ·····························The·tagName·macro·can·contain·any·tag·name,·even·a52 ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined
68 ·····························self-defined·metatag.·Note·that·$ctr·is·expanded 
69 ·····························before·the·valueX·macro·is·expanded,·so·assuming 
70 ·····························that·ctr·was·set·to·1·it·will·expand·value1.53 ···············metatag.·Note·that·$ctr·is·expanded·before·the·valueX·macro·is
 54 ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand
 55 ···············value1.
  
  
  
  
  
  
  
7.43 KB
./usr/share/doc/htp/while.html
    
Offset 114, 23 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">block</a>·<span·class="htp-attrib">stuff</span>&gt;</span><br> 
122 &nbsp;·<span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span>send·email<span·class="htp-tag">&lt;/a&gt;</span><br> 
123 <span·class="htp-tag">&lt;<a·href="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br> 
124 <br> 
125 <span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span><br> 
126 <br> 
127 This·works:·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br> 
128 But·this·fails:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>&gt;</span><br> 
129 And·this·fails:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br> 
130 </code></p>121 </code></p>
131 <h2>synopsis</h2>122 <h2>synopsis</h2>
132 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.123 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.
133 The·basic·form·is·shown·above.124 The·basic·form·is·shown·above.
134 <P>125 <P>
135 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.126 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.
136 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.127 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.
3.63 KB
html2text {}
    
Offset 1, 44 lines modifiedOffset 1, 37 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·WHILE·******2 ******·htp·on-line·reference·:·WHILE·******
3 Table_of··········*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············*****·synopsis·*****
4 Contents··········<[[ref]]block·stuff> 
5  Introduction···· ·<a·href=$email>send·email</a> 
6  License·········<[[ref]]/block> 
7  Tutorial 
8  Usage···········<[[ref]]set·morestuff=$email> 
9  HTP·Tags 
10   ··ALTTEXT·····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> 
11   ··BLOCK·······But·this·fails:·<[[ref]]use·email> 
12   ··BLOCKDEF····And·this·fails:·<[[ref]]use·morestuff 
13   ··DEF·········email="jnelson@crl.com"> 
14   ··FILE········*****·synopsis·***** 
15   ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The5  License····················WHILE·is·the·building·block·for·repeated
16   ··INC·········basic·form·is·shown·above.6  Tutorial···················processing.·The·basic·form·is·shown·above.
17   ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined"7  Usage······················"Conditional"·is·either·a·"compare"·or·"is
18   ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a 
19   ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in 
20   ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is 
21   ··QUOTE·······reversed:8  HTP·Tags···················defined"·operation.·A·compare·operator·is·a·test
 9   ··ALTTEXT················of·the·value·of·a·macro·against·a·literal·string.
 10   ··BLOCK··················If·the·NOT·tag·is·present·in·the·WHILE·markup,·the
 11   ··BLOCKDEF···············evaluation·of·the·conditional·is·reversed:
22   ··SET·········<a·href="mailto:$email">mailto·hyperlink</a>12   ··DEF····················<a·href="mailto:$email">mailto·hyperlink</a>
23   ··UNDEF·······<a·href="http://$domain/~${username}/">another·hyperlink</a>13   ··FILE···················<a·href="http://$domain/~${username}/">another
 14   ··IF·····················hyperlink</a>
24   ··UNSET·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's15   ··INC····················Just·as·with·[[ref]]IF·you·can·also·check·for·a
25   ··USE,_$······existance: 
26  [>]·WHILE······· · ·<${tagName}·${attrName}=${value$ctr}>16   ··IMG····················macro's·existance:
 17   ··IMAGEURL··············· ·<[[ref]]WHILE·sect-$i>
 18   ··OPT···················· · ·...
 19   ··OUTPUT················· · ·<[[ref]]INC·i>
 20   ··QUOTE·················· ·<[[ref]]/WHILE>
27   ··<!---·······If·the·condition·is·true,·the·block·is·evaluated·and21   ··SET····················If·the·condition·is·true,·the·block·is·evaluated
28  History·········afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- 
29  Wish_list·······operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on 
30  Bugs············each·iteration.22   ··UNDEF··················and·afterwards·the·WHILE·tag·is·evaluated·again.
 23   ··UNSET··················If·the·'$'-operator·is·used·in·the·WHILE·tag·it·is
 24   ··USE,_$·················also·reevaluated·on·each·iteration.
31 ··················A·loop·block·must·be·closed·with·the·/WHILE·tag.25  [>]·WHILE··················A·loop·block·must·be·closed·with·the·/WHILE·tag.
 26   ··<!---
 27  History
 28  Wish_list
 29  Bugs