237 KB
/srv/reproducible-results/rbuild-debian/r-b-build.zIloBLM0/b1/htp_1.19-8_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.zIloBLM0/b2/htp_1.19-8_arm64.changes
264 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·0ad6ccd2293d393baa985aa3d824693a·69956·debug·optional·htp-dbgsym_1.19-8_arm64.deb1 ·0ad6ccd2293d393baa985aa3d824693a·69956·debug·optional·htp-dbgsym_1.19-8_arm64.deb
2 ·de976658137562546fad52a065a94a62·118496·web·optional·htp_1.19-8_arm64.deb2 ·3580d1b9668d3b67c172ca871757f08b·119132·web·optional·htp_1.19-8_arm64.deb
237 KB
htp_1.19-8_arm64.deb
367 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·····3616·2020-06-14·23:21:19.000000·control.tar.xz
3 -rw-r--r--···0········0········0···114688·2020-06-14·23:21:19.000000·data.tar.xz3 -rw-r--r--···0········0········0···115324·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:·arm643 Architecture:·arm64
4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>
5 Installed-Size:·6535 Installed-Size:·674
6 Depends:·libc6·(>=·2.17)6 Depends:·libc6·(>=·2.17)
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
236 KB
data.tar.xz
236 KB
data.tar
15.3 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)····67800·2020-06-14·23:21:19.000000·./usr/bin/htp4 -rwxr-xr-x···0·root·········(0)·root·········(0)····67800·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)·····8673·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html8 -rw-r--r--···0·root·········(0)·root·········(0)····14523·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)·····8512·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html10 -rw-r--r--···0·root·········(0)·root·········(0)····14129·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)·····9521·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html12 -rw-r--r--···0·root·········(0)·root·········(0)····10143·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)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz16 -rw-r--r--···0·root·········(0)·root·········(0)·····3273·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz
17 -rw-r--r--···0·root·········(0)·root·········(0)····11608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html17 -rw-r--r--···0·root·········(0)·root·········(0)····10397·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)····14725·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html20 -rw-r--r--···0·root·········(0)·root·········(0)····17542·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
Offset 32, 64 lines modifiedOffset 32, 64 lines modified
32 -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp32 -rw-r--r--···0·root·········(0)·root·········(0)······818·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/prime.htp
33 -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html33 -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/quine.html
34 -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp34 -rw-r--r--···0·root·········(0)·root·········(0)·····1576·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/quine.htp
35 -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def35 -rw-r--r--···0·root·········(0)·root·········(0)······604·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.def
36 -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html36 -rw-r--r--···0·root·········(0)·root·········(0)·····1189·2020-06-14·23:21:19.000000·./usr/share/doc/htp/examples/section.html
37 -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp37 -rw-r--r--···0·root·········(0)·root·········(0)······918·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htp
38 -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt38 -rw-r--r--···0·root·········(0)·root·········(0)······375·2015-05-16·17:04:11.000000·./usr/share/doc/htp/examples/section.htt
39 -rw-r--r--···0·root·········(0)·root·········(0)····10166·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html39 -rw-r--r--···0·root·········(0)·root·········(0)····11658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html
40 -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp40 -rw-r--r--···0·root·········(0)·root·········(0)·····3702·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.htp
41 -rw-r--r--···0·root·········(0)·root·········(0)····16924·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html41 -rw-r--r--···0·root·········(0)·root·········(0)····18829·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html
42 -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz42 -rw-r--r--···0·root·········(0)·root·········(0)·····2490·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.htp.gz
43 -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html43 -rw-r--r--···0·root·········(0)·root·········(0)····14293·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.html
44 -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz44 -rw-r--r--···0·root·········(0)·root·········(0)·····3946·2020-06-14·23:21:19.000000·./usr/share/doc/htp/history.htp.gz
45 -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl45 -rw-r--r--···0·root·········(0)·root·········(0)·····3911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/hlhtp.pl
46 -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def46 -rw-r--r--···0·root·········(0)·root·········(0)······165·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.def
47 -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt47 -rw-r--r--···0·root·········(0)·root·········(0)·····4049·2020-06-14·23:21:19.000000·./usr/share/doc/htp/htp.htt
48 -rw-r--r--···0·root·········(0)·root·········(0)····11231·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html48 -rw-r--r--···0·root·········(0)·root·········(0)····13218·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html
49 -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp49 -rw-r--r--···0·root·········(0)·root·········(0)······932·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.htp
50 -rw-r--r--···0·root·········(0)·root·········(0)····10993·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html50 -rw-r--r--···0·root·········(0)·root·········(0)·····9751·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html
51 -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp51 -rw-r--r--···0·root·········(0)·root·········(0)·····2507·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.htp
52 -rw-r--r--···0·root·········(0)·root·········(0)·····9160·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html52 -rw-r--r--···0·root·········(0)·root·········(0)·····8277·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html
53 -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp53 -rw-r--r--···0·root·········(0)·root·········(0)·····1168·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.htp
54 -rw-r--r--···0·root·········(0)·root·········(0)·····9638·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html54 -rw-r--r--···0·root·········(0)·root·········(0)····13893·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html
55 -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp55 -rw-r--r--···0·root·········(0)·root·········(0)·····1092·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.htp
56 -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html56 -rw-r--r--···0·root·········(0)·root·········(0)·····9881·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.html
57 -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp57 -rw-r--r--···0·root·········(0)·root·········(0)·····1894·2020-06-14·23:21:19.000000·./usr/share/doc/htp/include.htp
58 -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html58 -rw-r--r--···0·root·········(0)·root·········(0)·····4874·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.html
59 -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp59 -rw-r--r--···0·root·········(0)·root·········(0)·······78·2020-06-14·23:21:19.000000·./usr/share/doc/htp/index.htp
60 -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html60 -rw-r--r--···0·root·········(0)·root·········(0)·····7733·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.html
61 -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp61 -rw-r--r--···0·root·········(0)·root·········(0)·····3489·2020-06-14·23:21:19.000000·./usr/share/doc/htp/intro.htp
62 -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html62 -rw-r--r--···0·root·········(0)·root·········(0)····10774·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.html
63 -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp63 -rw-r--r--···0·root·········(0)·root·········(0)······454·2020-06-14·23:21:19.000000·./usr/share/doc/htp/license.htp
64 -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def64 -rw-r--r--···0·root·········(0)·root·········(0)·····3782·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.def
65 -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html65 -rw-r--r--···0·root·········(0)·root·········(0)·····5088·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.html
66 -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp66 -rw-r--r--···0·root·········(0)·root·········(0)······388·2020-06-14·23:21:19.000000·./usr/share/doc/htp/macros.htp
67 -rw-r--r--···0·root·········(0)·root·········(0)····14670·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html67 -rw-r--r--···0·root·········(0)·root·········(0)····15681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html
68 -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz68 -rw-r--r--···0·root·········(0)·root·········(0)·····2439·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.htp.gz
69 -rw-r--r--···0·root·········(0)·root·········(0)·····7882·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html69 -rw-r--r--···0·root·········(0)·root·········(0)·····8471·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html
70 -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp70 -rw-r--r--···0·root·········(0)·root·········(0)······608·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.htp
71 -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html71 -rw-r--r--···0·root·········(0)·root·········(0)·····7809·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.html
72 -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp72 -rw-r--r--···0·root·········(0)·root·········(0)·····3100·2020-06-14·23:21:19.000000·./usr/share/doc/htp/options.htp
73 -rw-r--r--···0·root·········(0)·root·········(0)·····8101·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html73 -rw-r--r--···0·root·········(0)·root·········(0)·····8690·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html
74 -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp74 -rw-r--r--···0·root·········(0)·root·········(0)······695·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.htp
75 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/75 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/
76 -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png76 -rw-r--r--···0·root·········(0)·root·········(0)······171·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/arrow.png
77 -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png77 -rw-r--r--···0·root·········(0)·root·········(0)······262·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/download.png
78 -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png78 -rw-r--r--···0·root·········(0)·root·········(0)······708·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/htpicon.png
79 -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png79 -rw-r--r--···0·root·········(0)·root·········(0)····25563·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/logo.png
80 -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png80 -rw-r--r--···0·root·········(0)·root·········(0)······455·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manbig.png
81 -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png81 -rw-r--r--···0·root·········(0)·root·········(0)······491·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/manual.png
82 -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png82 -rw-r--r--···0·root·········(0)·root·········(0)·····1313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/poweredbyhtp.png
83 -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png83 -rw-r--r--···0·root·········(0)·root·········(0)······679·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/sficon.png
84 -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png84 -rw-r--r--···0·root·········(0)·root·········(0)······492·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pic/source.png
85 -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl85 -rw-r--r--···0·root·········(0)·root·········(0)······523·2020-06-14·23:21:19.000000·./usr/share/doc/htp/pphtp.pl
86 -rw-r--r--···0·root·········(0)·root·········(0)·····8416·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html86 -rw-r--r--···0·root·········(0)·root·········(0)·····8416·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html
87 -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp87 -rw-r--r--···0·root·········(0)·root·········(0)······390·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.htp
88 -rw-r--r--···0·root·········(0)·root·········(0)·····9769·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html88 -rw-r--r--···0·root·········(0)·root·········(0)·····9306·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html
89 -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp89 -rw-r--r--···0·root·········(0)·root·········(0)·····1200·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.htp
90 -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css90 -rw-r--r--···0·root·········(0)·root·········(0)······500·2020-06-14·23:21:19.000000·./usr/share/doc/htp/styles.css
91 -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html91 -rw-r--r--···0·root·········(0)·root·········(0)····27219·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.html
92 -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz92 -rw-r--r--···0·root·········(0)·root·········(0)·····2235·2020-06-14·23:21:19.000000·./usr/share/doc/htp/template.htp.gz
93 -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def93 -rw-r--r--···0·root·········(0)·root·········(0)·····1914·2020-06-14·23:21:19.000000·./usr/share/doc/htp/toc.def
94 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/94 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/
95 -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti95 -rw-r--r--···0·root·········(0)·root·········(0)······146·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/footer.hti
Offset 102, 23 lines modifiedOffset 102, 23 lines modified
102 -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp102 -rw-r--r--···0·root·········(0)·root·········(0)······192·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut2.htp
103 -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html103 -rw-r--r--···0·root·········(0)·root·········(0)······501·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.html
104 -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp104 -rw-r--r--···0·root·········(0)·root·········(0)······191·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htp
105 -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt105 -rw-r--r--···0·root·········(0)·root·········(0)······356·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut3.htt
106 -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt106 -rw-r--r--···0·root·········(0)·root·········(0)······297·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tut/tut4.htt
107 -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html107 -rw-r--r--···0·root·········(0)·root·········(0)····10517·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.html
108 -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp108 -rw-r--r--···0·root·········(0)·root·········(0)·····3393·2020-06-14·23:21:19.000000·./usr/share/doc/htp/tutorial.htp
109 -rw-r--r--···0·root·········(0)·root·········(0)·····9119·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html109 -rw-r--r--···0·root·········(0)·root·········(0)·····7804·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html
110 -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp110 -rw-r--r--···0·root·········(0)·root·········(0)······460·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.htp
111 -rw-r--r--···0·root·········(0)·root·········(0)····12290·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html111 -rw-r--r--···0·root·········(0)·root·········(0)····10449·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html
112 -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp112 -rw-r--r--···0·root·········(0)·root·········(0)······658·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.htp
113 -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html113 -rw-r--r--···0·root·········(0)·root·········(0)·····7681·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.html
114 -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp114 -rw-r--r--···0·root·········(0)·root·········(0)·····2959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/usage.htp
115 -rw-r--r--···0·root·········(0)·root·········(0)····12669·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html115 -rw-r--r--···0·root·········(0)·root·········(0)····12954·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html
116 -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp116 -rw-r--r--···0·root·········(0)·root·········(0)·····3300·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.htp
117 -rw-r--r--···0·root·········(0)·root·········(0)····11338·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html117 -rw-r--r--···0·root·········(0)·root·········(0)····10243·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html
118 -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp118 -rw-r--r--···0·root·········(0)·root·········(0)······938·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.htp
119 -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html119 -rw-r--r--···0·root·········(0)·root·········(0)·····5288·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.html
120 -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp120 -rw-r--r--···0·root·········(0)·root·········(0)·····1311·2020-06-14·23:21:19.000000·./usr/share/doc/htp/wishlist.htp
121 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/121 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/doc-base/
122 -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp122 -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp
123 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/123 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/
124 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/124 drwxr-xr-x···0·root·········(0)·root·········(0)········0·2020-06-14·23:21:19.000000·./usr/share/lintian/overrides/
12.5 KB
./usr/share/doc/htp/alttext.html
    
Offset 114, 30 lines modifiedOffset 114, 56 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="comment">&lt;!---··This·comment·doesn't·appear·in·the·HTML·file·---&gt;</span><br>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">time</span>=<span·class="htp-string">"0"</span>&gt;</span><br>
 122 &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-value">a</span>&gt;</span><br>
 123 &nbsp;·&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>
 124 &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="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-value">b</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 126 &nbsp;·&nbsp;·b·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>
 127 &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>
 128 &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">time</span>=<span·class="htp-string">"1"</span>&gt;</span><br>
 129 &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">a</span>&gt;</span><br>
 130 &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">b</span>&gt;</span><br>
 131 &nbsp;·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 132 &nbsp;·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 133 &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-value">c</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 134 &nbsp;·&nbsp;·c·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>;·<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">a</span>&gt;</span><br>
 135 &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>
 136 &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-value">d</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 137 &nbsp;·&nbsp;·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 138 &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>
 139 &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-value">e</span>&gt;</span><br>
 140 &nbsp;·&nbsp;·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 141 &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>
 142 &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">time</span>=<span·class="htp-string">"2"</span>&gt;</span><br>
 143 &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-value">a</span>&gt;</span><br>
 144 &nbsp;·&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>
 145 &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>
 146 &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">c</span>&gt;</span><br>
 147 &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">d</span>&gt;</span><br>
 148 &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">e</span>&gt;</span><br>
122 </code></p>149 </code></p>
123 <h2>synopsis</h2>150 <h2>synopsis</h2>
124 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A151 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A
125 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.152 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.
126 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the153 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the
127 filename·is·considered·in·all·comparisons.154 filename·is·considered·in·all·comparisons.
128 <p>155 <p>
129 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT156 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT
130 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to157 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to
131 be·overridden·on·specific·images·and·default·text·on·all·others.158 be·overridden·on·specific·images·and·default·text·on·all·others.
132 <p>159 <p>
133 For·example:160 For·example:
134 ··<p><code>161 ··<p><code>
 162 <span·class="comment">&lt;!---··This·comment·doesn't·appear·in·the·HTML·file·---&gt;</span><br>
135 <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> 
136 <br> 
137 </code></p>163 </code></p>
138 <p>164 <p>
139 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT165 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT
140 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not166 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not
141 changed.167 changed.
142 <p>168 <p>
143 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,169 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,
4.82 KB
html2text {}
    
Offset 1, 37 lines modifiedOffset 1, 57 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·······*****·syntax·*****
 4 Contents······· ·<[[ref]]set·time="0">
 5  Introduction· ·<[[ref]]block·name=a>
 6  License······ · ·a·is·expanded·at·time·<[[ref]]use·time>.
 7  Tutorial····· ·<[[ref]]/block>
 8  Usage········ ·<[[ref]]block·name=b·expand>
 9  HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>.
 10  [>]·ALTTEXT·· ·<[[ref]]/block>
 11   ··BLOCK···· ·<[[ref]]set·time="1">
 12   ··BLOCKDEF· ·<[[ref]]use·a>
 13   ··DEF······ ·<[[ref]]use·b>
 14   ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand>
 15   ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand>
 16   ··INC······ ·<[[ref]]block·name=c·expand>
 17   ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a>
 18   ··IMAGEURL· ·<[[ref]]/block>
 19   ··OPT······ ·<[[ref]]block·name=d·expand>
 20   ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 21   ··QUOTE···· ·<[[ref]]/block>
 22   ··SET······ ·<[[ref]]block·name=e>
 23   ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 24   ··UNSET···· ·<[[ref]]/block>
 25   ··USE,_$··· ·<[[ref]]set·time="2">
 26   ··WHILE···· ·<[[ref]]block·name=a>
 27   ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>.
 28  History······ ·<[[ref]]/block>
 29  Wish_list···· ·<[[ref]]use·c>
 30  Bugs········· ·<[[ref]]use·d>
 31 ··············· ·<[[ref]]use·e>
 32 ···············*****·synopsis·*****
 33 ···············ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag·with·a·SRC·matching
 34 ···············the·ALTTEXT·NAME.·Since·relative·paths·can·be·used·to·point·to·the
 35 ···············same·image,·only·the·filename·is·considered·in·all·comparisons.
 36 ···············When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an
 37 ···············ALT·attribute·only·if·one·is·not·already·present.·This·allows·for·ALT
 38 ···············text·to·be·overridden·on·specific·images·and·default·text·on·all
 39 ···············others.
 40 ···············For·example:
4  Introduction···············<!---·This·comment·doesn't·appear·in·the·HTML·file41 ···············<!---·This·comment·doesn't·appear·in·the·HTML·file·--->
5  License····················---> 
6  Tutorial···················*****·synopsis·***** 
7  Usage······················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag 
8  HTP·Tags···················with·a·SRC·matching·the·ALTTEXT·NAME.·Since 
9  [>]·ALTTEXT················relative·paths·can·be·used·to·point·to·the·same 
10   ··BLOCK··················image,·only·the·filename·is·considered·in·all 
11   ··BLOCKDEF···············comparisons. 
12   ··DEF····················When·an·IMG·tag·with·a·matching·source·is 
13   ··FILE···················encountered,·htp·will·add·an·ALT·attribute·only·if 
14   ··IF·····················one·is·not·already·present.·This·allows·for·ALT 
15   ··INC····················text·to·be·overridden·on·specific·images·and 
16   ··IMG····················default·text·on·all·others. 
17   ··IMAGEURL···············For·example: 
18   ··OPT····················<[[ref]]imageurl·url="imageurl"·[·path="path/in/ 
19   ··OUTPUT·················local/filesystem"·]> 
20   ··QUOTE 
21   ··SET····················An·ALTTEXT·tag·with·a·name·but·no·text·attribute42 ···············An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT
22   ··UNDEF··················removes·any·ALT·mapping·for·this·image.·Successing 
23   ··UNSET··················IMG·tags·with·a·matching·SRC·name·are·not·changed.43 ···············mapping·for·this·image.·Successing·IMG·tags·with·a·matching·SRC·name
 44 ···············are·not·changed.
24   ··USE,_$·················Since·this·is·useful·for·an·image·used·throughout45 ···············Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,
 46 ···············ALTTEXT·is·most·appropriate·in·an·include_file·or·a·default_file.
25   ··WHILE··················a·set·of·documents,·ALTTEXT·is·most·appropriate·in 
26   ··<!---··················an·include_file·or·a·default_file. 
27  History····················In·addition·to·ALTTEXT,·htp·can·also·automatically47 ···············In·addition·to·ALTTEXT,·htp·can·also·automatically·add·WIDTH·and
28  Wish_list··················add·WIDTH·and·HEIGHT·attributes·to·IMG·tags.48 ···············HEIGHT·attributes·to·IMG·tags.
29  Bugs 
  
  
  
  
  
  
  
Offset 48, 17 lines modifiedOffset 68, 18 lines modified
  
  
48  page_source68  page_source
49  htp_project69  htp_project
50  htp_homepage70  htp_homepage
51 hosted·by71 hosted·by
52 Sourceforge72 Sourceforge
53 HTML·coding·[Powered_by73 HTML·coding
 74 [Powered_by
54 htp]75 htp]
55 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/76 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
56 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.77 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
57 ·····Maintainers:·Jochen_Hoenicke.78 ·····Maintainers:·Jochen_Hoenicke.
58 Copyright·©·1995–96·Jim·Nelson.79 Copyright·©·1995–96·Jim·Nelson.
59 Copyright·©·2001–2014·Jochen_Hoenicke.80 Copyright·©·2001–2014·Jochen_Hoenicke.
60 Permission·to·reproduce·and·distribute·this·hypertext·document·granted81 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to
61 according·to·terms·described·in·the·License_section.82 terms·described·in·the·License_section.
62 last·updated·Sat·May·16,·201583 last·updated·Sat·May·16,·2015
11.1 KB
./usr/share/doc/htp/block.html
    
Offset 114, 20 lines modifiedOffset 114, 42 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="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>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">time</span>=<span·class="htp-string">"0"</span>&gt;</span><br>
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>&gt;</span><br>122 &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-value">a</span>&gt;</span><br>
 123 &nbsp;·&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>
123 &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>124 &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>
124 <br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;centered&gt;</span><br> 
126 &nbsp;·&nbsp;·This·text·is·centered.<br>125 &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-value">b</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 126 &nbsp;·&nbsp;·b·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>
 127 &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>
 128 &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">time</span>=<span·class="htp-string">"1"</span>&gt;</span><br>
 129 &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">a</span>&gt;</span><br>
 130 &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">b</span>&gt;</span><br>
 131 &nbsp;·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 132 &nbsp;·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 133 &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-value">c</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 134 &nbsp;·&nbsp;·c·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>;·<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">a</span>&gt;</span><br>
 135 &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>
 136 &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-value">d</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 137 &nbsp;·&nbsp;·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 138 &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>
 139 &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-value">e</span>&gt;</span><br>
 140 &nbsp;·&nbsp;·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 141 &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>
 142 &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">time</span>=<span·class="htp-string">"2"</span>&gt;</span><br>
 143 &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-value">a</span>&gt;</span><br>
 144 &nbsp;·&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>
 145 &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>
 146 &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">c</span>&gt;</span><br>
 147 &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">d</span>&gt;</span><br>
 148 &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">e</span>&gt;</span><br>
127 </code></p>149 </code></p>
128 <h2>synopsis</h2>150 <h2>synopsis</h2>
129 <P>151 <P>
130 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which152 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which
131 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be153 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be
132 multi-line·definitions.154 multi-line·definitions.
133 </P>155 </P>
3.94 KB
html2text {}
    
Offset 1, 37 lines modifiedOffset 1, 56 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
4  Introduction··············· · ·<[[ref]]def·name="centered"> 
5  License···················· · ·<p·align=center> 
6  Tutorial··················· · ·<[[ref]]/def> 
7  Usage 
8  HTP·Tags··················· · ·<centered> 
9   ··ALTTEXT················ · ·This·text·is·centered.4 Contents······· ·<[[ref]]set·time="0">
 5  Introduction· ·<[[ref]]block·name=a>
 6  License······ · ·a·is·expanded·at·time·<[[ref]]use·time>.
 7  Tutorial····· ·<[[ref]]/block>
 8  Usage········ ·<[[ref]]block·name=b·expand>
 9  HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>.
 10   ··ALTTEXT·· ·<[[ref]]/block>
 11  [>]·BLOCK···· ·<[[ref]]set·time="1">
 12   ··BLOCKDEF· ·<[[ref]]use·a>
 13   ··DEF······ ·<[[ref]]use·b>
 14   ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand>
 15   ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand>
 16   ··INC······ ·<[[ref]]block·name=c·expand>
 17   ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a>
 18   ··IMAGEURL· ·<[[ref]]/block>
 19   ··OPT······ ·<[[ref]]block·name=d·expand>
 20   ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 21   ··QUOTE···· ·<[[ref]]/block>
 22   ··SET······ ·<[[ref]]block·name=e>
 23   ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 24   ··UNSET···· ·<[[ref]]/block>
 25   ··USE,_$··· ·<[[ref]]set·time="2">
 26   ··WHILE···· ·<[[ref]]block·name=a>
 27   ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>.
 28  History······ ·<[[ref]]/block>
 29  Wish_list···· ·<[[ref]]use·c>
 30  Bugs········· ·<[[ref]]use·d>
 31 ··············· ·<[[ref]]use·e>
10  [>]·BLOCK··················*****·synopsis·*****32 ···············*****·synopsis·*****
11   ··BLOCKDEF···············BLOCK·and·/BLOCK·are·used·to·create·block·macros,33 ···············BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in
 34 ···············use·to·SET·macros,·but·can·be·multi-line·definitions.
12   ··DEF····················which·are·similar·in·use·to·SET·macros,·but·can·be 
13   ··FILE···················multi-line·definitions. 
14   ··IF·····················Any·text·and·formatting·may·be·set·inside·the35 ···············Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any
15   ··INC····················block.·You·can·use·any·htp·or·user·defined·metatag 
16   ··IMG····················including·FILE_INCLUDE.·The·metatags·won't·be36 ···············htp·or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't
17   ··IMAGEURL···············expanded·before·the·block·is·USEd·except·if·you37 ···············be·expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND
18   ··OPT····················give·the·EXPAND·parameter.38 ···············parameter.
19   ··OUTPUT·················The·block·macro·is·dereferenced·(expanded)·with39 ···············The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$'
20   ··QUOTE··················the·USE_tag_or_the_'$'_operator.·See·the·notes·on 
21   ··SET····················the·USE·tag·on·how·to·pass·parameters·to·a·block40 ···············operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a
22   ··UNDEF··················macro. 
23   ··UNSET 
24   ··USE,_$ 
25   ··WHILE 
26   ··<!--- 
27  History 
28  Wish_list 
29  Bugs41 ···············block·macro.
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Offset 42, 17 lines modifiedOffset 61, 18 lines modified
  
  
42  page_source61  page_source
43  htp_project62  htp_project
44  htp_homepage63  htp_homepage
45 hosted·by64 hosted·by
46 Sourceforge65 Sourceforge
47 HTML·coding·[Powered_by66 HTML·coding
 67 [Powered_by
48 htp]68 htp]
49 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/69 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
50 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.70 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
51 ·····Maintainers:·Jochen_Hoenicke.71 ·····Maintainers:·Jochen_Hoenicke.
52 Copyright·©·1995–96·Jim·Nelson.72 Copyright·©·1995–96·Jim·Nelson.
53 Copyright·©·2001–2014·Jochen_Hoenicke.73 Copyright·©·2001–2014·Jochen_Hoenicke.
54 Permission·to·reproduce·and·distribute·this·hypertext·document·granted74 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to
55 according·to·terms·described·in·the·License_section.75 terms·described·in·the·License_section.
56 last·updated·Sat·May·16,·201576 last·updated·Sat·May·16,·2015
7.97 KB
./usr/share/doc/htp/blockdef.html
    
Offset 114, 34 lines modifiedOffset 114, 41 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>=[·...·truncated·by·diffoscope;·len:·39,·SHA:·138ba34b5292b3e7451f200f072f3b0027941410b118e78a3f2cd3ad3de9d343·...·]</span>&gt;</span><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:·131,·SHA:·dfa8e31a602e3b7fb0fc8f3762f98811de3345b03298106f8b86bbbcb87fe011·...·]</span>&gt;</span><br>
 122 text·block<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>
122 <br>124 <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>125 </code></p>
132 <h2>synopsis</h2>126 <h2>synopsis</h2>
133 <strong>BLOCKDEF</strong>·creates·block·<A127 <strong>BLOCKDEF</strong>·creates·block·<A
134 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it128 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it
135 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block129 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block
136 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and130 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and
137 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored131 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored
138 in·the·block·macro·named·BLOCK.132 in·the·block·macro·named·BLOCK.
139 <P>·For·example:</P>133 <P>·For·example:</P>
140 ··<p><code>134 ··<p><code>
 135 &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>
 136 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>&gt;</span><br>
 137 &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>
 138 <br>
 139 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;centered&gt;</span><br>
 140 &nbsp;·&nbsp;·This·text·is·centered.<br>
 141 er·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>
 142 <br>
 143 &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>
 144 &nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br>
 145 <br>
 146 &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>
 147 &nbsp;·remains·unchanged.<br>
141 </code></p>148 </code></p>
142 <p>149 <p>
143 All·block·metatags·have·the·implicit·option·<a150 All·block·metatags·have·the·implicit·option·<a
144 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents151 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents
145 of·the·block·before·the·definition·is·expanded.152 of·the·block·before·the·definition·is·expanded.
146 </p>153 </p>
147 <p>154 <p>
3.39 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 45 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·******2 ******·htp·on-line·reference·:·BLOCKDEF,·/BLOCKDEF·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4 Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> 
5  Introduction 
6  License······ ·this·line:·<[[ref]]img·src="logo.gif">4 Contents·······<[[ref]]BLOCK·NAME="blockname"·[GLOBAL]·[EXPAND]>
 5  Introduction·text·block
 6  License······<[[ref]]/BLOCK>
 7  Tutorial
 8  Usage········*****·synopsis·*****
 9  HTP·Tags·····BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying
 10   ··ALTTEXT··it·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a
 11   ··BLOCK····whole·block·as·additional·parameter.·This·block·is·surrounded·by
 12  [>]·BLOCKDEF·<tagname>·and·</tagname>.·The·contents·of·this·block·are
 13   ··DEF······automatically·stored·in·the·block·macro·named·BLOCK.
 14   ··FILE·····For·example:
 15   ··IF······· · ·<[[ref]]def·name="centered">
 16   ··INC······ · ·<p·align=center>
 17   ··IMG······ · ·<[[ref]]/def>
 18   ··IMAGEURL
 19   ··OPT······ · ·<centered>
 20   ··OUTPUT··· · ·This·text·is·centered.
7  Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company21   ··QUOTE····er·processing:·<[[ref]]img·src="logo.gif"·alt="Company·logo">
 22   ··SET
8  Usage········logo"> 
9  HTP·Tags 
10   ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif">23   ··UNDEF···· ·this·line:·<[[ref]]img·src="../image/logo.gif">
11   ··BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it24   ··UNSET···· ·will·also·have·an·ALT·attribute·appended·to·it
12  [>]·BLOCKDEF25   ··USE,_$
13   ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more26   ··WHILE···· ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more
14   ··FILE·····information!">27   ··<!---····information!">
15   ··IF······· ·remains·unchanged.28  History······ ·remains·unchanged.
16   ··INC······*****·synopsis·***** 
17   ··IMG······BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it 
18   ··IMAGEURL·creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as 
19   ··OPT······additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</ 
20   ··OUTPUT···tagname>.·The·contents·of·this·block·are·automatically·stored·in·the 
21   ··QUOTE····block·macro·named·BLOCK. 
22   ··SET······For·example: 
23   ··UNDEF····All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to29  Wish_list····All·block·metatags·have·the·implicit·option·EXPAND,·which·tells
24   ··UNSET····expand·the·contents·of·the·block·before·the·definition·is·expanded.30  Bugs·········htp·to·expand·the·contents·of·the·block·before·the·definition·is
 31 ···············expanded.
25   ··USE,_$···A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in32 ···············A·more·thorough·discussion·and·more·elaborate·examples·are
26   ··WHILE····the·metatag·section. 
27   ··<!--- 
28  History 
29  Wish_list 
30  Bugs33 ···············discussed·in·the·metatag·section.
  
  
  
  
  
  
  
  
  
  
  
Offset 54, 10 lines modifiedOffset 61, 10 lines modified
54 [Powered_by61 [Powered_by
55 htp]62 htp]
56 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/63 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
57 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.64 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
58 ·····Maintainers:·Jochen_Hoenicke.65 ·····Maintainers:·Jochen_Hoenicke.
59 Copyright·©·1995–96·Jim·Nelson.66 Copyright·©·1995–96·Jim·Nelson.
60 Copyright·©·2001–2014·Jochen_Hoenicke.67 Copyright·©·2001–2014·Jochen_Hoenicke.
61 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to68 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
62 terms·described·in·the·License_section.69 to·terms·described·in·the·License_section.
63 last·updated·Sat·May·16,·201570 last·updated·Sat·May·16,·2015
11.2 KB
./usr/share/doc/htp/comment.html
    
Offset 114, 41 lines modifiedOffset 114, 44 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="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="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <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="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>&gt;</span><br> 
123 <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> 
124 <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>&gt;</span><br> 
125 <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
126 <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
127 <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> 
128 <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>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>=[·...·truncated·by·diffoscope;·len:·38,·SHA:·c02bd40b3f291a31f78d4f483bcf6b5822c560c0d562499478b931d39d24fb85·...·]"</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 mplatefilename"><br>
129 <br>132 <br>
130 </code></p>133 </code></p>
131 <h2>synopsis</h2>134 <h2>synopsis</h2>
132 <p>135 <p>
133 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful136 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful
134 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.137 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.
135 Example:138 Example:
136 </p>139 </p>
137 ··<p><code>140 ··<p><code>
 141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;EM&gt;</span>File·"<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>"·last·updated·<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">TIME</span>&gt;</span>,·<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">DATE</span>&gt;</span><span·class="htp-tag">&lt;/EM&gt;</span><br>
138 <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> 
139 <br> 
140 </code></p>142 </code></p>
141 <p>143 <p>
142 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you144 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you
143 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something145 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something
144 like·this:146 like·this:
145 </p>147 </p>
146 ··<p><code>148 ··<p><code>
147 &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>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"[·...·truncated·by·diffoscope;·len:·51,·SHA:·a5f764d59ac71e6f72714d91ef1e8f278fb4fdd5bc9c1259e26ec69fa6416c15·...·]>&gt;</span><br>149 <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>=[·...·truncated·by·diffoscope;·len:·154,·SHA:·8dd6af61524486f20e2336702e9f9043e30ac32765ce4e8abd2c3b7829975cad·...·]>&gt;</span><br>
 150 <br>
148 </code></p>151 </code></p>
149 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the152 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the
150 reason·why·you·don't·want·to·include·this·block</p>153 reason·why·you·don't·want·to·include·this·block</p>
151 <p>154 <p>
152 </td>155 </td>
153 </tr>156 </tr>
154 <tr>157 <tr>
3.96 KB
html2text {}
    
Offset 1, 41 lines modifiedOffset 1, 39 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  Introduction···············<[[ref]]file·execute="command-line" 
5  License····················(output="filename"·|·redirect)·[noerror]> 
6  Tutorial···················<[[ref]]file·include="includefilename"·[parameters 
7  Usage······················...]> 
8  HTP·Tags···················<[[ref]]file·name> 
9   ··ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= 
10   ··BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> 
11   ··BLOCKDEF···············<[[ref]]file·[·name="filename"·]·time[·="format" 
12   ··DEF····················]> 
13   ··FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" 
14   ··IF·····················]> 
15   ··INC····················<[[ref]]file·search="searchpath"> 
16   ··IMG····················<[[ref]]file·template="templatefilename"> 
17   ··IMAGEURL 
18   ··OPT····················*****·synopsis·*****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······mplatefilename">
 17   ··IMG
 18   ··IMAGEURL·*****·synopsis·*****
19   ··OUTPUT·················This·is·a·simple·comment·that·is·not·included·in19   ··OPT······This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is
 20   ··OUTPUT···useful·when·commenting·metatags,·since·the·metatags·do·not·appear·the
20   ··QUOTE··················the·output.·This·is·useful·when·commenting 
21   ··SET····················metatags,·since·the·metatags·do·not·appear·the 
22   ··UNDEF··················output·either.·Example:21   ··QUOTE····output·either.·Example:
 22   ··SET······ · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[
 23   ··UNDEF····[ref]]FILE·DATE></EM>
 24   ··UNSET····Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should
 25   ··USE,_$···not·use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like
 26   ··WHILE····this:
 27  [>]·<!---····<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·]
 28  History······[GLOBAL]>
 29  Wish_list
 30  Bugs·········Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason
 31 ···············why·you·don't·want·to·include·this·block
23   ··UNSET··················<[[ref]]imageurl·url="imageurl"·[·path="path/in/ 
24   ··USE,_$·················local/filesystem"·]> 
25   ··WHILE 
26  [>]·<!---··················Note·that·these·comments·should·not·include·<·or 
27  History····················>,·that·is·you·should·not·use·it·to·comment·out 
28  Wish_list··················htp·code.·For·that·purpose·use·something·like 
29  Bugs·······················this: 
30 ····························· · ·<[[ref]]IF·name>...<[[ref]]/IF> 
31 ·····························Make·sure·that·the·variable·is·never·defined·and 
32 ·····························xyz·should·be·the·reason·why·you·don't·want·to 
33 ·····························include·this·block 
  
  
  
  
  
  
  
Offset 53, 17 lines modifiedOffset 51, 18 lines modified
  
  
53  page_source51  page_source
54  htp_project52  htp_project
55  htp_homepage53  htp_homepage
56 hosted·by54 hosted·by
57 Sourceforge55 Sourceforge
58 HTML·coding·[Powered_by56 HTML·coding
 57 [Powered_by
59 htp]58 htp]
60 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/59 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
61 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.60 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
62 ·····Maintainers:·Jochen_Hoenicke.61 ·····Maintainers:·Jochen_Hoenicke.
63 Copyright·©·1995–96·Jim·Nelson.62 Copyright·©·1995–96·Jim·Nelson.
64 Copyright·©·2001–2014·Jochen_Hoenicke.63 Copyright·©·2001–2014·Jochen_Hoenicke.
65 Permission·to·reproduce·and·distribute·this·hypertext·document·granted64 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to
66 according·to·terms·described·in·the·License_section.65 terms·described·in·the·License_section.
67 last·updated·Sat·May·16,·201566 last·updated·Sat·May·16,·2015
20.9 KB
./usr/share/doc/htp/def.html
    
Offset 114, 23 lines modifiedOffset 114, 42 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="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="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <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="ebnf">[</span><span·class="[·...·truncated·by·diffoscope;·len:·85,·SHA:·66c7be3d1037f76940608360d9f760b093d17a96d956a23a21c2c94befb708c1·...·]</span>&gt;</span><br>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">time</span>=<span·class="htp-string">"0"</span>&gt;</span><br>
 122 &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-value">a</span>&gt;</span><br>
 123 &nbsp;·&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>
 124 &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="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-value">b</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 126 &nbsp;·&nbsp;·b·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>
 127 &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>
 128 &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">time</span>=<span·class="htp-string">"1"</span>&gt;</span><br>
123 <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>129 &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">a</span>&gt;</span><br>
124 <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>&gt;</span><br> 
125 <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
126 <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="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</[·...·truncated·by·diffoscope;·len:·132,·SHA:·ea82e6cb05de11af2aba769b39d9c48b7db4e7501daecadd065136beacb54432·...·]</span>&gt;</span><br>130 &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">b</span>&gt;</span><br>
 131 &nbsp;·contents·of·a:·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 132 &nbsp;·contents·of·b:·<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">b</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 133 &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-value">c</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 134 &nbsp;·&nbsp;·c·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>;·<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">a</span>&gt;</span><br>
 135 &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>
 136 &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-value">d</span>·<span·class="htp-attrib">expand</span>&gt;</span><br>
 137 &nbsp;·&nbsp;·d·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 138 &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>
 139 &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-value">e</span>&gt;</span><br>
 140 &nbsp;·&nbsp;·e·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>;·<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">a</span>·<span·class="htp-attrib">noexpand</span>&gt;</span><br>
 141 &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 <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>142 &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">time</span>=<span·class="htp-string">"2"</span>&gt;</span><br>
128 <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>143 &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-value">a</span>&gt;</span><br>
129 <br>144 &nbsp;·&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>
 145 &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>
 146 &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">c</span>&gt;</span><br>
 147 &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">d</span>&gt;</span><br>
 148 &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">e</span>&gt;</span><br>
130 </code></p>149 </code></p>
131 <h2>synopsis</h2>150 <h2>synopsis</h2>
132 <p>151 <p>
133 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a152 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a
134 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to153 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to
135 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>154 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>
136 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.155 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.
Offset 144, 27 lines modifiedOffset 163, 27 lines modified
144 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to163 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
145 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A164 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A
146 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster165 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster
147 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing166 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing
148 tag·with·a·preceding·slash.·For·example:167 tag·with·a·preceding·slash.·For·example:
149 </P>168 </P>
150 ··<p><code>169 ··<p><code>
 170 &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>&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>
151 &nbsp;·&nbsp;·File·image.gif·<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>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>&gt;</span>&nbsp;kilobytes<br> 
152 &nbsp;·&nbsp;·Last·modified·<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>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>&gt;</span>,·<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>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>&gt;</span><br> 
153 </code></p>171 </code></p>
154 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,172 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,
155 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>173 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>
156 <P>174 <P>
157 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were175 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were
158 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with176 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with
159 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their177 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their
160 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)178 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)
161 </P>179 </P>
162 ··<p><code>180 ··<p><code>
163 &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>&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<[·...·truncated·by·diffoscope;·len:·2,·SHA:·6a50dc8584134c7de537c0052ff6d236bf874355e050c90523e0c5ff2a543a28·...·]>&gt;</span><br>181 &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"</spa[·...·truncated·by·diffoscope;·len:·89,·SHA:·6e9688a5d5e0aa6f5dc5e2257138cbb4a329e6cce13a529637101b9ed8114922·...·]>&gt;</span><br>
 182 &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>
164 </code></p>183 </code></p>
165 <P>184 <P>
166 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is185 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is
167 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are186 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are
168 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the187 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the
169 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a188 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a
170 parameter·is·required,·simply·expand·it·without·first·checking.··When189 parameter·is·required,·simply·expand·it·without·first·checking.··When
7.81 KB
html2text {}
    
Offset 1, 63 lines modifiedOffset 1, 82 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]]file·execute="command-line"·(output="filename"·|·redirect) 
5  Introduction·[noerror]> 
6  License······<[[ref]]file·include="includefilename"·[parameters·...]>4 Contents······· ·<[[ref]]set·time="0">
 5  Introduction· ·<[[ref]]block·name=a>
 6  License······ · ·a·is·expanded·at·time·<[[ref]]use·time>.
7  Tutorial·····<[[ref]]file·name>7  Tutorial····· ·<[[ref]]/block>
8  Usage········<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·] 
9  HTP·Tags·····[precision=n]> 
10   ··ALTTEXT··<[[ref]]file·[·name="filename"·]·time[·="format"·]> 
11   ··BLOCK····<[[ref]]file·[·name="filename"·]·date[·="format"·]> 
12   ··BLOCKDEF·<[[ref]]file·search="searchpath"> 
13  [>]·DEF······<[[ref]]file·template="templatefilename"> 
14   ··FILE8  Usage········ ·<[[ref]]block·name=b·expand>
 9  HTP·Tags····· · ·b·is·expanded·at·time·<[[ref]]use·time>.
 10   ··ALTTEXT·· ·<[[ref]]/block>
 11   ··BLOCK···· ·<[[ref]]set·time="1">
 12   ··BLOCKDEF· ·<[[ref]]use·a>
 13  [>]·DEF······ ·<[[ref]]use·b>
 14   ··FILE····· ·contents·of·a:·<[[ref]]use·a·noexpand>
 15   ··IF······· ·contents·of·b:·<[[ref]]use·b·noexpand>
 16   ··INC······ ·<[[ref]]block·name=c·expand>
 17   ··IMG······ · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a>
 18   ··IMAGEURL· ·<[[ref]]/block>
 19   ··OPT······ ·<[[ref]]block·name=d·expand>
 20   ··OUTPUT··· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 21   ··QUOTE···· ·<[[ref]]/block>
 22   ··SET······ ·<[[ref]]block·name=e>
 23   ··UNDEF···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 24   ··UNSET···· ·<[[ref]]/block>
 25   ··USE,_$··· ·<[[ref]]set·time="2">
 26   ··WHILE···· ·<[[ref]]block·name=a>
 27   ··<!---···· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>.
 28  History······ ·<[[ref]]/block>
 29  Wish_list···· ·<[[ref]]use·c>
 30  Bugs········· ·<[[ref]]use·d>
 31 ··············· ·<[[ref]]use·e>
15   ··IF·······*****·synopsis·*****32 ···············*****·synopsis·*****
16   ··INC······DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new·tags.33 ···············DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new
17   ··IMG······The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the·USE·tag·is34 ···············tags.·The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the
18   ··IMAGEURL·not·used·to·expand·them.·Instead,·they·are·expanded·by·their·own·name. 
19   ··OPT······For·example:35 ···············USE·tag·is·not·used·to·expand·them.·Instead,·they·are·expanded·by
 36 ···············their·own·name.·For·example:
20   ··OUTPUT···<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]>37 ···············<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]>
21   ··QUOTE 
22   ··SET······Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to38 ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
23   ··UNDEF····and39 ···············and
24   ··UNSET····).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly40 ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly
25   ··USE,_$···faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the41 ···············faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the
26   ··WHILE····closing·tag·with·a·preceding·slash.·For·example:42 ···············closing·tag·with·a·preceding·slash.·For·example:
27   ··<!---···· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes 
28  History······ · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE 
29  Wish_list····NAME="image.gif"·DATE> 
30  Bugs·········You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching·end 
31 ···············tag.·It·is·not·that·slower. 
32 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were·a 
33 ···············SET·macro.·Option·names·are·parameterized·with·the·OPTION·attribute. 
34 ···············Multiple·options·can·be·listed·by·separating·their·name·with·a·space 
35 ···············(which·therefore·requires·they·be·surrounded·by·quotes.) 
36 ··············· · ·<[[ref]]IF·name>...<[[ref]]/IF>43 ··············· · ·<[[ref]]IF·name>...<[[ref]]/IF>
 44 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching
 45 ···············end·tag.·It·is·not·that·slower.
 46 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it
 47 ···············were·a·SET·macro.·Option·names·are·parameterized·with·the·OPTION
 48 ···············attribute.·Multiple·options·can·be·listed·by·separating·their·name
 49 ···············with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)
 50 ··············· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 51 ···············email="jnelson@crl.com">
 52 ··············· · ·This·tag·will·fail:·<[[ref]]USE·name>
37 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is53 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is
38 ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are54 ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are
39 ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the·SIZE55 ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the
40 ···············option·is·defined·before·expanding·it·in·the·block.·If·a·parameter·is56 ···············SIZE·option·is·defined·before·expanding·it·in·the·block.·If·a
41 ···············required,·simply·expand·it·without·first·checking.·When·htp·expands·the57 ···············parameter·is·required,·simply·expand·it·without·first·checking.·When
42 ···············metatag·and·the·macro·is·not·defined,·it·will·halt·processing·and58 ···············htp·expands·the·metatag·and·the·macro·is·not·defined,·it·will·halt
43 ···············complain·with·an·error·message·and·the·required·macro·name.·Normally·htp59 ···············processing·and·complain·with·an·error·message·and·the·required·macro
44 ···············will·not·allow·parameters·not·listed·in·the·OPTION·attribute·to·be·added60 ···············name.·Normally·htp·will·not·allow·parameters·not·listed·in·the·OPTION
45 ···············to·the·tag.·This·is·why·the·third·invocation·of·HEADERIMG·will·fail.61 ···············attribute·to·be·added·to·the·tag.·This·is·why·the·third·invocation·of
46 ···············There·is·no·ALT·parameter·specified·in·the·OPTION·attribute.·However,62 ···············HEADERIMG·will·fail.·There·is·no·ALT·parameter·specified·in·the·OPTION
47 ···············there·is·the·special·option·*,·which·matches·every·other·parameter.·It63 ···············attribute.·However,·there·is·the·special·option·*,·which·matches·every
48 ···············should·be·used·to·pass·all·other·options·to·another·tag.64 ···············other·parameter.·It·should·be·used·to·pass·all·other·options·to
 65 ···············another·tag.
49 ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open·and66 ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open
50 ···············close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not·remove·both.67 ···············and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not
 68 ···············remove·both.
51 ···············Warning:·Although·possible,·def·should·not·be·used·to·override·standard69 ···············Warning:·Although·possible,·def·should·not·be·used·to·override
52 ···············HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and·unexpected70 ···············standard·HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and
53 ···············results.·The·def·tag·can·even·be·used·to·override·its·own·tag·name.71 ···············unexpected·results.·The·def·tag·can·even·be·used·to·override·its·own
54 ···············Because·of·the·problems·this·can·cause,·its·highly·recommended·to·not72 ···············tag·name.·Because·of·the·problems·this·can·cause,·its·highly
55 ···············override·known·tag·names.73 ···············recommended·to·not·override·known·tag·names.
56 ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the74 ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the
57 ···············tutorial.75 ···············tutorial.
  
  
  
  
  
13.5 KB
./usr/share/doc/htp/expand.html
    
Offset 98, 28 lines modifiedOffset 98, 33 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;·<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>=[·...·truncated·by·diffoscope;·len:·39,·SHA:·138ba34b5292b3e7451f200f072f3b0027941410b118e78a3f2cd3ad3de9d343·...·]</span>&gt;</span><br>105 <font·size="-2">&nbsp;1.·</font><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>=<sp[·...·truncated·by·diffoscope;·len:·150,·SHA:·5c1a64da34e196da682f00f9a1b875161254f608c4bc7c9dc14a3953ff4bf9b1·...·]</span>&gt;</span><br>
 106 <font·size="-2">&nbsp;2.·</font><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>
 107 <font·size="-2">&nbsp;3.·</font><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>
 108 <font·size="-2">&nbsp;4.·</font><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>
 109 <font·size="-2">&nbsp;5.·</font><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>
 110 <font·size="-2">&nbsp;6.·</font><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>
 111 <font·size="-2">&nbsp;7.·</font><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>
 112 <font·size="-2">&nbsp;8.·</font><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>
106 <font·size="-2">&nbsp;2.·</font><br>113 <font·size="-2">&nbsp;9.·</font><br>
107 <font·size="-2">&nbsp;3.·</font>&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> 
108 <font·size="-2">&nbsp;4.·</font>&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> 
109 <font·size="-2">&nbsp;5.·</font><br> 
110 <font·size="-2">&nbsp;6.·</font>&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> 
111 <font·size="-2">&nbsp;7.·</font>&nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br> 
112 <font·size="-2">&nbsp;8.·</font><br> 
113 <font·size="-2">&nbsp;9.·</font>&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> 
114 <font·size="-2">10.·</font>&nbsp;·remains·unchanged.<br> 
115 </code></p>114 </code></p>
116 This·produces·the·following:115 This·produces·the·following:
117 ··<p><code>116 ··<p><code>
118 &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·hre[·...·truncated·by·diffoscope;·len:·89,·SHA:·0d74d7323b637f4f6c0a6b357b2d292517463b143d7384d65d9199c97616d3df·...·]>&gt;</span><br>117 <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·cla[·...·truncated·by·diffoscope;·len:·119,·SHA:·c0332c96dce159bd1f406c85b5c323ebcaf46fc22a0e77bc85c2a9d392d1f8f7·...·]>&gt;</span><br>
 118 <br>
 119 me="/bigfont"><br>
 120 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&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>&gt;</span><br>
 122 <br>
 123 &nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br>
119 </code></p>124 </code></p>
120 <P>125 <P>
121 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a126 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a
122 are·taken·literally,·however,·the·contents·for·b·are·already·expanded127 are·taken·literally,·however,·the·contents·for·b·are·already·expanded
123 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it128 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it
124 is·used,·while·the·contents·of·b·are·already·expanded.129 is·used,·while·the·contents·of·b·are·already·expanded.
125 </P>130 </P>
6.83 KB
html2text {}
    
Offset 1, 56 lines modifiedOffset 1, 63 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·········*****·The·global·attribute·*****
4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope.·A4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current
5  Introduction···scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition·is5  Introduction···scope.·A·scope·is·for·example·the·definition·of·a·metatag.·Once·the
6  License········expanded·and·the·metatag·has·finished·the·macro·is·automatically·removed.·In6  License········definition·is·expanded·and·the·metatag·has·finished·the·macro·is
7  Tutorial·······some·cases·you·want·to·define·a·macro·inside·a·metatag·and·use·it·later.·You 
8  Usage··········can·do·this·with·the·global·attribute·that·you·can·add·to·[[ref]]set,·[ 
9   ··Command-···[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef·tags.7  Tutorial·······automatically·removed.·In·some·cases·you·want·to·define·a·macro·inside·a
 8  Usage··········metatag·and·use·it·later.·You·can·do·this·with·the·global·attribute·that
 9   ··Command-···you·can·add·to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[
 10 ······line·······[ref]]blockdef·tags.
10 ······line·······*****·The·expand·attribute·*****11   ··Options····*****·The·expand·attribute·*****
11   ··Options····The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all·block12   ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all
12   ··Predefined·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp·uses·a·lazy13 ······macros·····block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp
13 ······macros·····evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros·when·the 
14  [>]·global_and·HTML·document·is·written·not·when·they're·stored·into·block·macros.·When·you 
15 ······expand·····use·a·macro·defined·with·the·blockdef·tag·the·html·code·between·the·tags·is 
16  HTP_Tags·······just·copied·literally·into·the·macro·named·block,·without·any·expansion·going 
17  History········on.14  [>]·global_and·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and
 15 ······expand·····macros·when·the·HTML·document·is·written·not·when·they're·stored·into
 16  HTP_Tags·······block·macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the
 17  History········html·code·between·the·tags·is·just·copied·literally·into·the·macro·named
 18  Wish_list······block,·without·any·expansion·going·on.
18  Wish_list······However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is·expanded19  Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is
19  Bugs···········immediately.·This·is·useful·if·you·want·to·store·something·in·a·block·macro,20 ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something·in·a
20 ·················that·depends·on·the·current·value·of·another·macro.·This·other·macro·may·no21 ·················block·macro,·that·depends·on·the·current·value·of·another·macro.·This
21 ·················longer·have·the·correct·value·when·the·macro·is·expanded.·Here·is·some·code 
22 ·················that·demonstrate·when·the·htp·tags·are·expanded: 
23 ················· 1. ·<[[ref]]alttext·name="logo.gif"·text="Company·logo">22 ·················other·macro·may·no·longer·have·the·correct·value·when·the·macro·is
 23 ·················expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are
 24 ·················expanded:
 25 ················· 1.<[[ref]]file·execute="command-line"·(output="filename"·|·redirect)
 26 ·················[noerror]>
 27 ················· 2.<[[ref]]file·include="includefilename"·[parameters·...]>
 28 ················· 3.<[[ref]]file·name>
 29 ················· 4.<[[ref]]file·[·name="filename"·]·size[·=·(byte|kbyte|mbyte|gbyte)·]
 30 ·················[precision=n]>
 31 ················· 5.<[[ref]]file·[·name="filename"·]·time[·="format"·]>
 32 ················· 6.<[[ref]]file·[·name="filename"·]·date[·="format"·]>
 33 ················· 7.<[[ref]]file·search="searchpath">
 34 ················· 8.<[[ref]]file·template="templatefilename">
24 ················· 2.35 ················· 9.
25 ················· 3. ·this·line:·<[[ref]]img·src="logo.gif"> 
26 ················· 4. ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company 
27 ·················logo"> 
28 ················· 5. 
29 ················· 6. ·this·line:·<[[ref]]img·src="../image/logo.gif"> 
30 ················· 7. ·will·also·have·an·ALT·attribute·appended·to·it 
31 ················· 8. 
32 ················· 9. ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more 
33 ·················information!"> 
34 ·················10. ·remains·unchanged. 
35 ·················This·produces·the·following:36 ·················This·produces·the·following:
36 ················· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>37 ·················<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/filesystem"·]>
  
 38 ·················me="/bigfont">
 39 ················· · ·</font>
 40 ················· ·<[[ref]]/def>
  
 41 ················· ·<bigfont>Some·large·text</bigfont>
37 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are·taken42 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are
38 ·················literally,·however,·the·contents·for·b·are·already·expanded·so·the·macro·time43 ·················taken·literally,·however,·the·contents·for·b·are·already·expanded·so·the
39 ·················is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the·contents·of·b·are44 ·················macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the
40 ·················already·expanded.45 ·················contents·of·b·are·already·expanded.
41 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute46 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute
42 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show·you47 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show
43 ·················what·the·value·of·the·block·macros·really·is.48 ·················you·what·the·value·of·the·block·macros·really·is.
44 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent·double49 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent
45 ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when·you·have·to50 ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy·when
46 ·················use·the·expand·attribute·as·for·block·d·in·the·example·above.·See·the·section51 ·················you·have·to·use·the·expand·attribute·as·for·block·d·in·the·example
47 ·················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The·use·tags·in·an52 ·················above.·See·the·section·example·in·the·[[ref]]metatag_tutorial.·Rule·of
48 ·················expanded·block·should·be·tagged·with·noexpand.53 ·················thumb:·The·use·tags·in·an·expanded·block·should·be·tagged·with·noexpand.
  
  
  
  
  
  
  
28.7 KB
./usr/share/doc/htp/file.html
    
Offset 114, 26 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;·&nbsp;·a·is·expanded·at·time·1.<br>
 122 &nbsp;·&nbsp;·b·is·expanded·at·time·0.<br>
 123 &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>
 124 &nbsp;·contents·of·b:·&nbsp;·b·is·expanded·at·time·0.<br>
 125 &nbsp;·&nbsp;·c·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·1.<br>
 126 &nbsp;·&nbsp;·d·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·2.<br>
 127 &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>
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 &nbsp;option="title"><br> 
124 &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> 
125 &nbsp;·&nbsp;<span·class="htp-tag">&lt;p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
126 &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> 
127 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/p&gt;</span><br> 
128 &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> 
129 <br> 
130 &nbsp;·<span·class="htp-tag">&lt;section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>&gt;</span><br> 
131 &nbsp;·&nbsp;·This·is·a·fancy·section.<br> 
132 &nbsp;·<span·class="htp-tag">&lt;/section&gt;</span><br> 
133 </code></p>128 </code></p>
134 <h2>synopsis</h2>129 <h2>synopsis</h2>
135 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.130 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.
136 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of131 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of
137 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be132 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be
138 added·to·the·output·file·as·well.133 added·to·the·output·file·as·well.
139 <P>134 <P>
Offset 145, 27 lines modifiedOffset 140, 38 lines modified
145 <P>140 <P>
146 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>141 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>
147 <P>142 <P>
148 To·include·information·about·another·file,·such·as·an·archive·file·or143 To·include·information·about·another·file,·such·as·an·archive·file·or
149 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the144 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
150 type·of·information·to·be·displayed:145 type·of·information·to·be·displayed:
151 ··<p><code>146 ··<p><code>
 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">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>&gt;</span><br>
152 &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>148 &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>
153 &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> 
154 &nbsp;·&nbsp;<span·class="htp-tag">&lt;tr&gt;</span><br> 
155 &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> 
156 &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> 
157 &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-attr[·...·truncated·by·diffoscope;·len:·101,·SHA:·5f133e1dfdf74e5a0d8e79d1d65fbdb7fe91a21b03428becffd3282348ae9354·...·]&gt;</span><br>149 &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>
 150 &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>
 151 &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>
 152 &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>
 153 &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>
158 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br>154 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
159 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br>155 &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>
160 &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>156 &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>157 <br>
162 &nbsp;paragraph<br> 
163 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br> 
164 &nbsp;paragraph<br>158 &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·[·...·truncated·by·diffoscope;·len:·24,·SHA:·aaa53532e2980e395c0c2528b77cd5835aa19805cd5a4d6344801a670cad77b6·...·]<br>
 159 <br>
 160 &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>
 161 <br>
 162 &nbsp;·This·will·fail:<br>
 163 &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>
 164 <br>
 165 &nbsp;·Instead,·use·*·like·this:<br>
 166 &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>
 167 &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>
 168 &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>
 169 &nbsp;·&nbsp;·<br>
 170 &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>
165 </code></p>171 </code></p>
166 <P>172 <P>
167 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the173 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
168 information·is·displayed.··In·anything·other·than·byte·format,·the·information174 information·is·displayed.··In·anything·other·than·byte·format,·the·information
169 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number175 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number
170 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional176 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional
171 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no177 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no
Offset 194, 22 lines modifiedOffset 200, 26 lines modified
194 <P>200 <P>
195 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are201 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are
196 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros202 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros
197 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it203 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it
198 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer204 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer
199 available.··So:205 available.··So:
200 ··<p><code>206 ··<p><code>
 207 &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>
201 &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>&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> 
202 italic"><br> 
203 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br> 
204 &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>208 &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>
205 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>209 eftsep.png"><span·class="htp-tag">&lt;/td&gt;</span><br>
 210 &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>
 211 &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>
 212 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br>
 213 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br>
206 &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>214 &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>
207 <br>215 <br>
208 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>216 &nbsp;paragraph<br>
 217 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br>
 218 &nbsp;paragraph<br>
209 </code></p>219 </code></p>
210 <P>220 <P>
211 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included221 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included
212 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the222 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the
213 second·statement·will·fail.)223 second·statement·will·fail.)
214 <P>224 <P>
215 <h3><a·name="template">TEMPLATE</a></h3>225 <h3><a·name="template">TEMPLATE</a></h3>
16.6 KB
html2text {}
    
Offset 1, 143 lines modifiedOffset 1, 135 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·FILE·******2 ******·htp·on-line·reference·:·FILE·******
3 Table_of_Contents····*****·syntax·*****3 Table_of·······*****·syntax·*****
 4 Contents······· · ·a·is·expanded·at·time·1.
 5  Introduction· · ·b·is·expanded·at·time·0.
 6  License······ ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>.
 7  Tutorial····· ·contents·of·b:· ·b·is·expanded·at·time·0.
 8  Usage········ · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.
 9  HTP·Tags····· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.
 10   ··ALTTEXT·· · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use
 11   ··BLOCK····time>.
 12   ··BLOCKDEF·*****·synopsis·*****
4  Introduction·······<[[ref]]img·src="filename"·...> 
5  License 
6  Tutorial··········· option="title"> 
7  Usage·············· · <h1><[[ref]]use·title></h1> 
8  HTP·Tags··········· · <p·class="section"> 
9   ··ALTTEXT········ · · <[[ref]]use·block> 
10   ··BLOCK·········· · </p> 
11   ··BLOCKDEF······· ·<[[ref]]/blockdef> 
12   ··DEF 
13  [>]·FILE··········· ·<section·title="My·Section"> 
14   ··IF············· · ·This·is·a·fancy·section. 
15   ··INC············ ·</section> 
16   ··IMG············*****·synopsis·***** 
17   ··IMAGEURL·······FILE·has·several·optional·parameters·of·differing13   ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output
 14  [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file
18   ··OPT············purpose.·The·output·file's·name,·the·current·date·and 
19   ··OUTPUT·········time,·and·the·contents·of·another·file·may·be·included. 
20   ··QUOTE··········Another·file's·time,·date,·or·size·may·be·added·to·the15   ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the
21   ··SET············output·file·as·well.16   ··INC······output·file·as·well.
22   ··UNDEF··········As·with·all·HTML,·these·tags·do·not·have·to·be·on·their17   ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
23   ··UNSET··········own·line,·so·the·following·is·perfectly·acceptable:18   ··IMAGEURL·following·is·perfectly·acceptable:
24   ··USE,_$········· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>19   ··OPT······ · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>
25   ··WHILE··········****·NAME,·TIME,·SIZE·****20   ··OUTPUT···****·NAME,·TIME,·SIZE·****
26   ··<!---··········To·include·information·about·another·file,·such·as·an21   ··QUOTE····To·include·information·about·another·file,·such·as·an·archive·file·or
27  History············archive·file·or·graphic·image,·specify·its·name·with·the 
28  Wish_list··········NAME·attribute·followed·by·the·type·of·information·to·be 
29  Bugs···············displayed: 
30 ····················· <[[ref]]def·name="imghr"> 
31 ····················· · <table·border="0"·cellspacing="0"·cellpadding="0"> 
32 ····················· · <tr> 
33 ····················· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> 
34 ····················· · ·<td·width="95%"·background="midsep.png">&nbsp;</td> 
35 ····················· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> 
36 ····················· · </tr> 
37 ····················· · </table>22   ··SET······graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
 23   ··UNDEF····type·of·information·to·be·displayed:
 24   ··UNSET···· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
 25   ··USE,_$··· · ·<[[ref]]IF·size>
 26   ··WHILE···· · · · ·<FONT·SIZE=${size}>
 27   ··<!---···· · ·<[[ref]]/IF>
 28  History······ · ·<[[ref]]IMG·SRC=pics/${src}>
 29  Wish_list···· · ·<[[ref]]USE·title>
 30  Bugs········· · ·<[[ref]]IF·size>
 31 ··············· · · · ·</FONT>
 32 ··············· · ·<[[ref]]/IF>
38 ····················· <[[ref]]/def>33 ··············· ·<[[ref]]/DEF>
  
 34 ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
39 ····················· paragraph 
40 ····················· <imghr> 
41 ····················· paragraph 
42 ·····················For·file·size·information,·the·value·BYTE,·KBYTE,·etc. 
43 ·····················dictates·how·the·information·is·displayed.·In·anything 
44 ·····················other·than·byte·format,·the·information·is·displayed·in 
45 ·····················floating-point·notation.·The·amount·of·precision·(the 
46 ·····················number·of·digits·to·the·right·of·the·decimal·point)·can 
47 ·····················be·set·with·the·optional·PRECISION·attribute.·The·default 
48 ·····················precision·is·zero·(0),·which·means·no·fractional·portion 
49 ·····················is·displayed. 
50 ·····················At·the·request·of·many·people,·the·TIME·and·DATE 
51 ·····················attributes·will·now·accept·formatting·characters·that·are 
52 ·····················passed·directly·into·the·ANSI·C·library·function.·This 
53 ·····················allows·for·the·time·and·date·to·be·displayed·in·virtually 
54 ·····················any·format.·Users·not·wishing·to·mess·around·with·this 
55 ·····················should·stick·to·the·default·format,·which·is·used·if·no 
56 ·····················formatting·value·is·specified·(i.e.,·just·using·05:04:11 
57 ·····················PM). 
58 ·····················Consult·any·C·programmer's·guide·discussing·the·standard 
59 ·····················C·library·function·strftime()·for·information·on·how·to 
60 ·····················build·a·format·string.·If·unsure,·ask·an·experienced·C 
61 ·····················programmer·for·help,·or·consider·just·sticking·to·the 
62 ·····················default·formatting. 
63 ·····················****·INCLUDE·**** 
64 ·····················INCLUDE·files·are·pre-processed·as·any·other·file.·The 
65 ·····················resulting·text·is·incorporated·into·the·HTML·output·as·if 
66 ·····················the·file·had·been·copied·into·the·source·at·the·same 
67 ·····················location·as·the·FILE·markup·tag. 
68 ·····················htp·will·automatically·convert·slashes·and·backslashes·to 
69 ·····················match·the·operating·system's·directory·separator. 
70 ·····················Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag, 
71 ·····················which·are·interpreted·as·macros·that·are·"passed"·to·the 
72 ·····················included·file.·The·macros·are·available·only·to·the 
73 ·····················include·file·(and·any·macros·or·included·files·it·holds). 
74 ·····················After·the·file·is·completely·included,·the·macros·are·no 
75 ·····················longer·available.·So: 
76 ····················· · ·<[[ref]]IF·name>...<[[ref]]/IF> 
77 ·····················italic"> 
78 ····················· · ·<b><i> 
79 ····················· · ·<[[ref]]use·block> 
80 ····················· · ·</i></b> 
81 ····················· ·<[[ref]]/blockdef> 
  
82 ····················· ·This·is·<bolditalic>bold·and·italic</bolditalic>35 ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
  
 36 ··············· ·This·will·fail:
 37 ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
  
 38 ··············· ·Instead,·use·*·like·this:
 39 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
 40 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
 41 ··············· ·<[[ref]]/DEF>
 42 ··············· · 
 43 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
 44 ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
 45 ···············information·is·displayed.·In·anything·other·than·byte·format,·the
 46 ···············information·is·displayed·in·floating-point·notation.·The·amount·of
 47 ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be
 48 ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero
 49 ···············(0),·which·means·no·fractional·portion·is·displayed.
 50 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept
 51 ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library
 52 ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually
 53 ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the
 54 ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,
Max diff block lines reached; 667/16929 bytes (3.94%) of diff not shown.
14.2 KB
./usr/share/doc/htp/if.html
    
Offset 114, 49 lines modifiedOffset 114, 62 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="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="ebnf">[</span>·<span·class="ht[·...·truncated·by·diffoscope;·len:·101,·SHA:·81a8210952243a1b74d3e50a9954c5fbe4510401b508765113442da17abc1c90·...·]</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">"bigfont"</span>&gt;</span><br>
 122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>&gt;</span><br>
 123 &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>
122 <br>124 <br>
 125 &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>
 126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&gt;</span><br>
 127 &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>
 128 <br>
 129 &nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br>
123 </code></p>130 </code></p>
124 <h2>synopsis</h2>131 <h2>synopsis</h2>
125 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building132 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building
126 blocks·for·conditional·processing.··The·basic·form·is·shown·above.133 blocks·for·conditional·processing.··The·basic·form·is·shown·above.
127 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A134 <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·literal135 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal
129 string:136 string:
130 ··<p><code>137 ··<p><code>
 138 <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>
131 &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> 
132 &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> 
133 &nbsp;·&nbsp;<span·class="htp-tag">&lt;tr&gt;</span><br> 
134 &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> 
135 &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> 
136 &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> 
137 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br> 
138 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br> 
139 &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> 
140 <br>139 <br>
141 &nbsp;paragraph<br> 
142 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br> 
143 &nbsp;paragraph<br> 
144 </code></p>140 </code></p>
145 <P>141 <P>
146 and·a·defined·operator·is·a·test·of·a·macro's·existance:142 and·a·defined·operator·is·a·test·of·a·macro's·existance:
147 <P>143 <P>
148 ··<p><code>144 ··<p><code>
 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>·<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>
149 &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>146 &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>
150 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br>147 &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>
 148 &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>
 149 &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>
151 &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>150 &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>
152 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>151 &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>
 152 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 153 &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>
153 &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>154 &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>
 155 <br>
 156 &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>
 157 <br>
 158 &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>
 159 <br>
 160 &nbsp;·This·will·fail:<br>
 161 &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>
154 <br>162 <br>
155 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>163 &nbsp;·Instead,·use·*·like·this:<br>
 164 &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>
 165 &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>
 166 &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>
 167 &nbsp;·&nbsp;·<br>
 168 &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>
156 </code></p>169 </code></p>
157 <P>170 <P>
158 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the171 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
159 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that172 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that
160 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the173 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the
161 ELSE·block·is·taken·if·it·is·present.··A·conditional·block174 ELSE·block·is·taken·if·it·is·present.··A·conditional·block
162 <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested.175 <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested.
4.81 KB
html2text {}
    
Offset 1, 48 lines modifiedOffset 1, 59 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·······*****·syntax·*****
4  Introduction·······<[[ref]]imageurl·url="imageurl"·[·path="path/in/local/ 
5  License············filesystem"·]>4 Contents······· ·<[[ref]]def·name="bigfont">
 5  Introduction· · ·<font·size="+4">
 6  License······ ·<[[ref]]/def>
6  Tutorial7  Tutorial
 8  Usage········ ·<[[ref]]def·name="/bigfont">
 9  HTP·Tags····· · ·</font>
 10   ··ALTTEXT·· ·<[[ref]]/def>
 11   ··BLOCK
 12   ··BLOCKDEF· ·<bigfont>Some·large·text</bigfont>
7  Usage··············*****·synopsis·*****13   ··DEF······*****·synopsis·*****
8  HTP·Tags···········IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks14   ··FILE·····IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for
9   ··ALTTEXT········for·conditional·processing.·The·basic·form·is·shown15  [>]·IF·······conditional·processing.·The·basic·form·is·shown·above.
10   ··BLOCK··········above. 
11   ··BLOCKDEF·······"Conditional"·is·either·a·"compare"·or·"is·defined"16   ··INC······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A
 17   ··IMG······compare·operator·is·a·test·of·the·value·of·a·macro·against·a
 18   ··IMAGEURL·literal·string:
 19   ··OPT······<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·]
 20   ··OUTPUT···[GLOBAL]>
 21   ··QUOTE
12   ··DEF············operation.·A·compare·operator·is·a·test·of·the·value·of·a 
13   ··FILE···········macro·against·a·literal·string: 
14  [>]·IF············· <[[ref]]def·name="imghr"> 
15   ··INC············ · <table·border="0"·cellspacing="0"·cellpadding="0"> 
16   ··IMG············ · <tr> 
17   ··IMAGEURL······· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> 
18   ··OPT············ · ·<td·width="95%"·background="midsep.png">&nbsp;</td> 
19   ··OUTPUT········· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> 
20   ··QUOTE·········· · </tr> 
21   ··SET············ · </table> 
22   ··UNDEF·········· <[[ref]]/def> 
23   ··UNSET 
24   ··USE,_$········· paragraph 
25   ··WHILE·········· <imghr> 
26   ··<!---·········· paragraph 
27  History············and·a·defined·operator·is·a·test·of·a·macro's·existance:22   ··SET······and·a·defined·operator·is·a·test·of·a·macro's·existance:
28  Wish_list·········· ·<[[ref]]blockdef·name="bolditalic"> 
29  Bugs··············· · ·<b><i>23   ··UNDEF···· ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
 24   ··UNSET···· · ·<[[ref]]IF·size>
 25   ··USE,_$··· · · · ·<FONT·SIZE=${size}>
 26   ··WHILE···· · ·<[[ref]]/IF>
 27   ··<!---···· · ·<[[ref]]IMG·SRC=pics/${src}>
 28  History······ · ·<[[ref]]USE·title>
 29  Wish_list···· · ·<[[ref]]IF·size>
 30  Bugs········· · · · ·</FONT>
30 ····················· · ·<[[ref]]use·block>31 ··············· · ·<[[ref]]/IF>
31 ····················· · ·</i></b> 
32 ····················· ·<[[ref]]/blockdef>32 ··············· ·<[[ref]]/DEF>
  
33 ····················· ·This·is·<bolditalic>bold·and·italic</bolditalic>33 ··············· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
  
 34 ··············· ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
  
 35 ··············· ·This·will·fail:
 36 ··············· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
  
 37 ··············· ·Instead,·use·*·like·this:
 38 ··············· ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
 39 ··············· · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
 40 ··············· ·<[[ref]]/DEF>
 41 ··············· · 
 42 ··············· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
34 ·····················If·the·NOT·tag·is·present·in·the·IF·markup,·the43 ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
 44 ···············conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that
 45 ···············evaluates·to·true·is·chosen.·If·none·of·the·conditions·is·true·the
35 ·····················evaluation·of·the·conditional·is·reversed.·The·first·IF 
36 ·····················or·ELSEIF·condition·that·evaluates·to·true·is·chosen.·If 
37 ·····················none·of·the·conditions·is·true·the·ELSE·block·is·taken·if 
38 ·····················it·is·present.·A·conditional·block·must·be·closed·with46 ···············ELSE·block·is·taken·if·it·is·present.·A·conditional·block·must·be
39 ·····················the·/IF·tag.·IF·tags·can·be·nested.47 ···············closed·with·the·/IF·tag.·IF·tags·can·be·nested.
  
  
  
  
  
  
  
Offset 61, 16 lines modifiedOffset 72, 17 lines modified
  
61  page_source72  page_source
62  htp_project73  htp_project
63  htp_homepage74  htp_homepage
64 hosted·by75 hosted·by
65 Sourceforge76 Sourceforge
66 HTML·coding77 HTML·coding
67 [Powered_by_htp]78 [Powered_by
 79 htp]
68 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/80 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
69 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.81 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
70 ·····Maintainers:·Jochen_Hoenicke.82 ·····Maintainers:·Jochen_Hoenicke.
71 Copyright·©·1995–96·Jim·Nelson.83 Copyright·©·1995–96·Jim·Nelson.
72 Copyright·©·2001–2014·Jochen_Hoenicke.84 Copyright·©·2001–2014·Jochen_Hoenicke.
73 Permission·to·reproduce·and·distribute·this·hypertext·document·granted85 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
74 according·to·terms·described·in·the·License_section.86 to·terms·described·in·the·License_section.
75 last·updated·Sat·May·16,·201587 last·updated·Sat·May·16,·2015
8.74 KB
./usr/share/doc/htp/imageurl.html
    
Offset 114, 15 lines modifiedOffset 114, 15 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="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="ebnf">[</span>·<span·class="htp-attrib">path</span>=<span·class="h[·...·truncated·by·diffoscope;·len:·45,·SHA:·498d0b1b49fab3aaa82ce4e5058178838ceebe5f133c09d49e055a5382e050d8·...·]<span·class="ebnf">]</span>&gt;</span><br>121 <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="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·clas[·...·truncated·by·diffoscope;·len:·164,·SHA:·770fc4be2492784ea0668edb391cff926c09d86cd3f422e839f9b20dc96b3ec2·...·]<span·class="ebnf">]</span>&gt;</span><br>
122 <br>122 <br>
123 </code></p>123 </code></p>
124 <h2>synopsis</h2>124 <h2>synopsis</h2>
125 <P>125 <P>
126 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local126 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local
127 file·system.··declares·an·URL·replacement·that·is·used·for127 file·system.··declares·an·URL·replacement·that·is·used·for
128 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions128 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions
Offset 137, 27 lines modifiedOffset 137, 16 lines modified
137 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC137 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC
138 attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.138 attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.
139 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and139 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and
140 looked·up·in·the·current·directory.</P>140 looked·up·in·the·current·directory.</P>
141 <P>141 <P>
142 For·example:</P>142 For·example:</P>
143 ··<p><code>143 ··<p><code>
 144 &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>
 145 &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>
144 &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> 
145 &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> 
146 &nbsp;·&nbsp;<span·class="htp-tag">&lt;tr&gt;</span><br> 
147 &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> 
148 &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> 
149 &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> 
150 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br> 
151 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br> 
152 &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> 
154 &nbsp;paragraph<br> 
155 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br> 
156 &nbsp;paragraph<br> 
157 </code></p>146 </code></p>
158 <P>147 <P>
159 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as148 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as
160 an·undefine,·and·is·removed.</P>149 an·undefine,·and·is·removed.</P>
161 <P>150 <P>
162 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout151 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout
163 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an152 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an
4.27 KB
html2text {}
    
Offset 1, 50 lines modifiedOffset 1, 39 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]]imageurl·url="imageurl"·[·path="path/in/local/ 
5  License············filesystem"·]>4  Introduction·······<[[ref]]INC·macroname1="increment1"
 5  License············[macroname2="increment2"·...·]·[GLOBAL]>
6  Tutorial6  Tutorial
7  Usage··············*****·synopsis·*****7  Usage··············*****·synopsis·*****
8  HTP·Tags···········IMAGEURL·tells·htp,·where·to·find·images·on·the·local8  HTP·Tags···········IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file
9   ··ALTTEXT········file·system.·declares·an·URL·replacement·that·is·used·for9   ··ALTTEXT········system.·declares·an·URL·replacement·that·is·used·for·size
10   ··BLOCK··········size·lookups·in·any·IMG·tag.·This·definitions·takes10   ··BLOCK··········lookups·in·any·IMG·tag.·This·definitions·takes·effect·only
11   ··BLOCKDEF·······effect·only·if·the·IMGXY·option·is·enabled.·Beacause·htp11   ··BLOCKDEF·······if·the·IMGXY·option·is·enabled.·Beacause·htp·can't·lookup
12   ··DEF············can't·lookup·files·in·the·world·wide·web·you·have·to·map12   ··DEF············files·in·the·world·wide·web·you·have·to·map·absolute·image
13   ··FILE···········absolute·image·URLs·to·a·directory·in·the·local·file13   ··FILE···········URLs·to·a·directory·in·the·local·file·system.
14   ··IF·············system. 
15   ··INC············When·an·IMG·tag·is·encountered·where·htp·has·to·insert14   ··IF·············When·an·IMG·tag·is·encountered·where·htp·has·to·insert
16   ··IMG············width·and·height·the·defined·URL·replacements·will·be15   ··INC············width·and·height·the·defined·URL·replacements·will·be
17  [>]·IMAGEURL·······taken·into·account·(later·definitions·take·precedence·to16   ··IMG············taken·into·account·(later·definitions·take·precedence·to
18   ··OPT············earlier):·For·each·defined·imageurl·it·checks·(case-17  [>]·IMAGEURL·······earlier):·For·each·defined·imageurl·it·checks·(case-
19   ··OUTPUT·········insensitive)·if·it·is·a·prefix·of·the·image's·SRC18   ··OPT············insensitive)·if·it·is·a·prefix·of·the·image's·SRC
20   ··QUOTE··········attribute.·If·it·matches·this·prefix·is·replaced·by·the19   ··OUTPUT·········attribute.·If·it·matches·this·prefix·is·replaced·by·the
21   ··SET············given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered20   ··QUOTE··········given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered
22   ··UNDEF··········as·relative·link·and·looked·up·in·the·current·directory.21   ··SET············as·relative·link·and·looked·up·in·the·current·directory.
23   ··UNSET··········For·example:22   ··UNDEF··········For·example:
 23   ··UNSET·········· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 24   ··USE,_$·········email="jnelson@crl.com">
 25   ··WHILE·········· · ·This·tag·will·fail:·<[[ref]]USE·name>
24   ··USE,_$········· <[[ref]]def·name="imghr"> 
25   ··WHILE·········· · <table·border="0"·cellspacing="0"·cellpadding="0"> 
26   ··<!---·········· · <tr> 
27  History············ · ·<td·width=10><[[ref]]img·src="leftsep.png"></td> 
28  Wish_list·········· · ·<td·width="95%"·background="midsep.png">&nbsp;</td> 
29  Bugs··············· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td> 
30 ····················· · </tr> 
31 ····················· · </table> 
32 ····················· <[[ref]]/def> 
  
33 ····················· paragraph 
34 ····················· <imghr> 
35 ····················· paragraph 
36 ·····················If·IMAGEURL·is·specified·with·a·URL·but·no·PATH26   ··<!---··········If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,
37 ·····················attribute,·it·is·treated·as·an·undefine,·and·is·removed.27  History············it·is·treated·as·an·undefine,·and·is·removed.
38 ·····················Since·you·usually·need·the·url·mapping·for·a·number·of28  Wish_list··········Since·you·usually·need·the·url·mapping·for·a·number·of
39 ·····················images·used·throughout·a·set·of·documents,·IMAGEURL·is29  Bugs···············images·used·throughout·a·set·of·documents,·IMAGEURL·is
40 ·····················most·appropriately·put·into·an·include_file·or·the30 ·····················most·appropriately·put·into·an·include_file·or·the·htp.def
41 ·····················htp.def·file.31 ·····················file.
42 ·····················In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-32 ·····················In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-
43 ·····················)automatically·add·an·ALT_text·attribute·to·IMG·tags.33 ·····················)automatically·add·an·ALT_text·attribute·to·IMG·tags.
  
  
  
  
  
5.31 KB
./usr/share/doc/htp/img.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;·File·image.gif·<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>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value">KBYTE</span>&gt;</span>&nbsp;kilobytes<br> 
122 &nbsp;·&nbsp;·Last·modified·<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>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">TIME</span>&gt;</span>,·<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>=<span·class="htp-string">"image.gif"</span>·<span·class="htp-attrib">DATE</span>&gt;</span><br> 
123 </code></p>121 </code></p>
124 <h2>synopsis</h2>122 <h2>synopsis</h2>
125 <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
126 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
127 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
128 useful·if·the·image·may·change·frequently.·</P>126 useful·if·the·image·may·change·frequently.·</P>
129 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup127 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup
3.84 KB
html2text {}
    
Offset 1, 59 lines modifiedOffset 1, 63 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMG·******2 ******·htp·on-line·reference·:·IMG·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4 Contents······· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes 
5  Introduction· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE 
6  License······NAME="image.gif"·DATE> 
7  Tutorial·····*****·synopsis·***** 
8  Usage········img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and 
9  HTP·Tags·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to 
10   ··ALTTEXT··determine·each·image's·size·manually,·which·is·especially·useful·if·the 
11   ··BLOCK····image·may·change·frequently. 
12   ··BLOCKDEF·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If4  Introduction···············*****·synopsis·*****
 5  License····················img·is·a·standard·HTML·tag.·htp·can·add·the
 6  Tutorial···················specified·image's·width·and·height·to·the·tag
 7  Usage······················automatically.·This·has·the·advantage·of·not
 8  HTP·Tags···················having·to·determine·each·image's·size·manually,
 9   ··ALTTEXT················which·is·especially·useful·if·the·image·may·change
 10   ··BLOCK··················frequently.
 11   ··BLOCKDEF···············htp·adds·this·information·with·the·WIDTH·and
 12   ··DEF····················HEIGHT·markup·attributes.·If·htp·detects·these
13   ··DEF······htp·detects·these·attributes·are·already·present·in·the·tag,·it·will·not13   ··FILE···················attributes·are·already·present·in·the·tag,·it·will
14   ··FILE·····modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a 
15   ··IF·······warning·but·not·halt·processing. 
16   ··INC······At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network 
17  [>]·IMG······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported. 
18   ··IMAGEURL·The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds 
19   ··OPT······this·information·as·it·executes. 
20   ··OUTPUT···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the 
21   ··QUOTE····IMAGEURL·tag·may·be·used·to·map·URLs·to·local·files.14   ··IF·····················not·modify·the·values.·If·htp·cannot·find·the
 15   ··INC····················image·file,·it·will·issue·a·warning·but·not·halt
 16  [>]·IMG····················processing.
 17   ··IMAGEURL···············At·this·time,·GIF·(Graphic·Interchange·Format),
 18   ··OPT····················PNG·(Portable·Network·Graphics),·and·JFIF·(JPEG
 19   ··OUTPUT·················File·Interchange·Format)·are·supported.
 20   ··QUOTE··················The·IMGXY_and_NOIMGXY·options·control·whether·or
 21   ··SET····················not·htp·actually·adds·this·information·as·it
 22   ··UNDEF··················executes.
 23   ··UNSET··················Since·htp·is·able·to·lookup·files·only·in·the
 24   ··USE,_$·················local·filesystem,·the·IMAGEURL·tag·may·be·used·to
 25   ··WHILE··················map·URLs·to·local·files.
22   ··SET······htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT.26   ··<!---··················htp·can·also·add·default·ALT·text·to·IMG·tags
 27  History····················using·ALTTEXT.
23   ··UNDEF 
24   ··UNSET 
25   ··USE,_$ 
26   ··WHILE 
27   ··<!--- 
28  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
13.5 KB
./usr/share/doc/htp/inc.html
    
Offset 114, 39 lines modifiedOffset 114, 65 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="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OUTPUT</a>·<span·class="htp-attrib">FILE</span>=<span·class="htp-string">"outputfilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">APPEND</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">EXPAND</span><span·class="ebnf">]</span>&gt;</span><br> 
122 text·block<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[·...·truncated·by·diffoscope;·len:·54,·SHA:·ea3729541b3039acc2241609cd9d52acd13c077cc78183d728c23d4b0fbdc5a7·...·]<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>
123 <span·class="htp-tag">&lt;<a·href="output.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/OUTPUT</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>
124 <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>
 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>
125 </code></p>145 </code></p>
126 <h2>synopsis</h2>146 <h2>synopsis</h2>
127 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a147 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a
128 variable·or·for·variable·addition.··The·basic·form·is·shown·above.148 variable·or·for·variable·addition.··The·basic·form·is·shown·above.
129 <P>149 <P>
130 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a150 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a
131 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The151 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The
132 macroname·must·be·the·name·of·a·defined·macro·that·contains·an152 macroname·must·be·the·name·of·a·defined·macro·that·contains·an
133 integer.··If·the·increment·is·ommitted·it·defaults·to·1.153 integer.··If·the·increment·is·ommitted·it·defaults·to·1.
134 The·effect·of·this·operation·is·that·the·macro·is·redefined154 The·effect·of·this·operation·is·that·the·macro·is·redefined
135 to·contain·the·sum·of·its·previous·value·and·its·increment.155 to·contain·the·sum·of·its·previous·value·and·its·increment.
136 <P>156 <P>
137 To·increment·or·decrement·a·variable·you·can·use·this·form:157 To·increment·or·decrement·a·variable·you·can·use·this·form:
138 ··<p><code>158 ··<p><code>
139 &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>159 &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>
 160 &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>
 161 &nbsp;·&nbsp;<span·class="htp-tag">&lt;tr&gt;</span><br>
 162 &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>
 163 &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>
 164 &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>
 165 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br>
140 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br>166 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br>
141 &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> 
142 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&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>167 &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>
144 <br>168 <br>
145 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>169 &nbsp;paragraph<br>
 170 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br>
 171 &nbsp;paragraph<br>
146 </code></p>172 </code></p>
147 <p>173 <p>
148 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It174 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It
149 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer175 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer
150 values·are·limited·to·the·range·-2^31..2^31.176 values·are·limited·to·the·range·-2^31..2^31.
151 <P>177 <P>
152 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.178 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.
5.27 KB
html2text {}
    
Offset 1, 45 lines modifiedOffset 1, 64 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·INC·******2 ******·htp·on-line·reference·:·INC·******
3 Table_of_Contents·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4  Introduction··········<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] 
5  License···············[EXPAND]> 
6  Tutorial··············text·block 
7  Usage·················<[[ref]]/OUTPUT> 
8  HTP·Tags 
9   ··ALTTEXT···········*****·synopsis·***** 
10   ··BLOCK·············The·INC·can·be·used·for·incrementing/decrementing·a 
11   ··BLOCKDEF··········variable·or·for·variable·addition.·The·basic·form 
12   ··DEF···············is·shown·above.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····The·INC·can·be·used·for·incrementing/decrementing·a·variable·or
 30  Bugs·········for·variable·addition.·The·basic·form·is·shown·above.
13   ··FILE··············The·"increment"·is·anything·that·evaluates·to·a31 ···············The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be
 32 ···············a·literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The
14   ··IF················integer.·It·can·be·a·literal·string·or·a·macro 
15  [>]·INC···············preceeded·by·the·'$'-operator.·The·macroname·must 
16   ··IMG···············be·the·name·of·a·defined·macro·that·contains·an33 ···············macroname·must·be·the·name·of·a·defined·macro·that·contains·an
17   ··IMAGEURL··········integer.·If·the·increment·is·ommitted·it·defaults34 ···············integer.·If·the·increment·is·ommitted·it·defaults·to·1.·The·effect
 35 ···············of·this·operation·is·that·the·macro·is·redefined·to·contain·the
18   ··OPT···············to·1.·The·effect·of·this·operation·is·that·the 
19   ··OUTPUT············macro·is·redefined·to·contain·the·sum·of·its 
20   ··QUOTE·············previous·value·and·its·increment.36 ···············sum·of·its·previous·value·and·its·increment.
21   ··SET···············To·increment·or·decrement·a·variable·you·can·use37 ···············To·increment·or·decrement·a·variable·you·can·use·this·form:
22   ··UNDEF·············this·form: 
23   ··UNSET············· ·<[[ref]]blockdef·name="bolditalic"> 
24   ··USE,_$············ · ·<b><i> 
25   ··WHILE············· · ·<[[ref]]use·block> 
26   ··<!---············· · ·</i></b>38 ··············· <[[ref]]def·name="imghr">
 39 ··············· · <table·border="0"·cellspacing="0"·cellpadding="0">
 40 ··············· · <tr>
 41 ··············· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td>
 42 ··············· · ·<td·width="95%"·background="midsep.png">&nbsp;</td>
 43 ··············· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td>
 44 ··············· · </tr>
 45 ··············· · </table>
27  History··············· ·<[[ref]]/blockdef>46 ··············· <[[ref]]/def>
28  Wish_list 
29  Bugs·················· ·This·is·<bolditalic>bold·and·italic</bolditalic> 
 47 ··············· paragraph
 48 ··············· <imghr>
 49 ··············· paragraph
30 ························Note·that·INC·doesn't·check·if·the·strings·really50 ···············Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.
 51 ···············It·may·give·weired·results·when·used·on·arbitrary·strings.·The
31 ························denote·integers.·It·may·give·weired·results·when 
32 ························used·on·arbitrary·strings.·The·integer·values·are 
33 ························limited·to·the·range·-2^31..2^31.52 ···············integer·values·are·limited·to·the·range·-2^31..2^31.
34 ························Note·further·that·htp·wasn't·designed·to·do53 ···············Note·further·that·htp·wasn't·designed·to·do·extensive
 54 ···············calculations.·The·INC·tag·is·useful·in·conjunction·with·WHILE·to
 55 ···············iterate·over·the·defined·blocks.
35 ························extensive·calculations.·The·INC·tag·is·useful·in 
36 ························conjunction·with·WHILE·to·iterate·over·the·defined 
37 ························blocks. 
  
  
  
  
  
  
  
Offset 57, 17 lines modifiedOffset 76, 18 lines modified
  
  
57  page_source76  page_source
58  htp_project77  htp_project
59  htp_homepage78  htp_homepage
60 hosted·by79 hosted·by
61 Sourceforge80 Sourceforge
62 HTML·coding·[Powered 
63 by_htp]81 HTML·coding
 82 [Powered_by
 83 htp]
64 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/84 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
65 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.85 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
66 ·····Maintainers:·Jochen_Hoenicke.86 ·····Maintainers:·Jochen_Hoenicke.
67 Copyright·©·1995–96·Jim·Nelson.87 Copyright·©·1995–96·Jim·Nelson.
68 Copyright·©·2001–2014·Jochen_Hoenicke.88 Copyright·©·2001–2014·Jochen_Hoenicke.
69 Permission·to·reproduce·and·distribute·this·hypertext·document·granted89 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
70 according·to·terms·described·in·the·License_section.90 to·terms·described·in·the·License_section.
71 last·updated·Sat·May·16,·201591 last·updated·Sat·May·16,·2015
22.6 KB
./usr/share/doc/htp/metatag.html
    
Offset 88, 16 lines modifiedOffset 88, 22 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">"macroval[·...·truncated·by·diffoscope;·len:·82,·SHA:·1b0de2f0af3ff6dcb00160502803f9fbb9631406e3429d962274c013d3930638·...·]</span>&gt;</span><br>95 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(IMGXY|NOIMGXY)</span>&gt;</span><br>
 96 <font·size="-2">&nbsp;2.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(QUIET|VERBOSE)</span>&gt;</span><br>
 97 <font·size="-2">&nbsp;3.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(DEPEND|NODEPEND)</span>&gt;</span><br>
 98 <font·size="-2">&nbsp;4.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(PRECIOUS|NOPRECIOUS)</span>&gt;</span><br>
 99 <font·size="-2">&nbsp;5.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(CONDENSE|SEMICONDENSE|NOCONDENSE)</span>&gt;</span><br>
 100 <font·size="-2">&nbsp;6.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">DELIM</span>=<span·class="htp-value">(HTML|SQUARE|CURLY)</span>&gt;</span><br>
 101 <font·size="-2">&nbsp;7.·</font><span·class="htp-tag">&lt;<a·href="opt.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">OPT</a>·<span·class="htp-attrib">(XML|XML</span>=<span·class="htp-value">FALSE)</span>&gt;</span><br>
96 <font·size="-2">&nbsp;2.·</font><br>102 <font·size="-2">&nbsp;8.·</font><br>
97 </code></p>103 </code></p>
98 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.104 <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.105 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>·and106 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·this107 <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·to108 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>109 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>
Offset 121, 28 lines modifiedOffset 127, 25 lines modified
121 </code></p>127 </code></p>
122 <h2>Using·parameters</h2>128 <h2>Using·parameters</h2>
123 <p>·More·sophisticated·tags·accept·parameters.··The129 <p>·More·sophisticated·tags·accept·parameters.··The
124 <code>option</code>·parameter·lets·multiple·metatag·parameters·be130 <code>option</code>·parameter·lets·multiple·metatag·parameters·be
125 named·and·expanded·inside·the·<code>def</code>·or131 named·and·expanded·inside·the·<code>def</code>·or
126 <code>blockdef</code>·block:·</p>132 <code>blockdef</code>·block:·</p>
127 ··<p><code>133 ··<p><code>
 134 <font·size="-2">&nbsp;1.·</font>&nbsp;·&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">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br>
128 <font·size="-2">&nbsp;1.·</font><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">conditional</span>&gt;</span><br> 
129 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·block<br> 
130 <font·size="-2">&nbsp;3.·</font><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> 
131 <font·size="-2">&nbsp;4.·</font><br> 
132 </code></p>135 </code></p>
133 <h2>Saving·blocks·for·later</h2>136 <h2>Saving·blocks·for·later</h2>
134 <p>When·you·are·using·templates,·the·html·should·only·be·written·by137 <p>When·you·are·using·templates,·the·html·should·only·be·written·by
135 the·template·file.··The·normal·htp·files·should·just·define·macros138 the·template·file.··The·normal·htp·files·should·just·define·macros
136 that·are·used·later·in·the·template.··So·you·may·want·to·write·block139 that·are·used·later·in·the·template.··So·you·may·want·to·write·block
137 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this140 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this
138 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to141 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to
139 do·this:</p>142 do·this:</p>
140 ··<p><code>143 ··<p><code>
141 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>&gt;</span><br>144 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>&gt;</span><br>
142 </code></p>145 </code></p>
143 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a146 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a
144 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is147 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is
145 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is148 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is
146 build·from·this·counter.··So·the·first·section·is·stored·in·block149 build·from·this·counter.··So·the·first·section·is·stored·in·block
147 sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag150 sect-1,·the·second·in·sect-2·and·so·on.··The·<a·href="expand.html#global"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>global</code></a>·flag
148 in·line·4·tells·htp·that·these·macros·should·be·defined·globally151 in·line·4·tells·htp·that·these·macros·should·be·defined·globally
Offset 161, 21 lines modifiedOffset 164, 23 lines modified
161 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be164 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be
162 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the165 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the
163 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you166 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you
164 use·expand·in·a·block·around·it.</p>167 use·expand·in·a·block·around·it.</p>
165 <p>To·close·this·example·we·show·how·to·expand·the168 <p>To·close·this·example·we·show·how·to·expand·the
166 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>169 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>
167 ··<p><code>170 ··<p><code>
168 <font·size="-2">&nbsp;1.·</font><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">"header.hti"</span>&gt;</span><br>171 <font·size="-2">&nbsp;1.·</font><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>
 172 <font·size="-2">&nbsp;2.·</font>&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>
169 <font·size="-2">&nbsp;2.·</font>&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">"1"</span>&gt;</span><br> 
170 <font·size="-2">&nbsp;3.·</font>&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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br> 
171 <font·size="-2">&nbsp;4.·</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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br> 
172 <font·size="-2">&nbsp;5.·</font>&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> 
173 <font·size="-2">&nbsp;6.·</font>&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>173 <font·size="-2">&nbsp;3.·</font><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>
 174 <font·size="-2">&nbsp;4.·</font><br>
 175 <font·size="-2">&nbsp;5.·</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">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span><br>
 176 <font·size="-2">&nbsp;6.·</font><br>
 177 <font·size="-2">&nbsp;7.·</font>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>
174 <font·size="-2">&nbsp;7.·</font><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">"footer.hti"</span>&gt;</span><br>178 <font·size="-2">&nbsp;8.·</font>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>
 179 <font·size="-2">&nbsp;9.·</font>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>
175 </code></p>180 </code></p>
176 <p>181 <p>
177 The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether182 The·<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·tag·in·line·3·checks·whether
178 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is183 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is
179 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards184 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards
180 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This185 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This
181 repeats·until·sect-${sect-ctr}·is·not·defined.186 repeats·until·sect-${sect-ctr}·is·not·defined.
12.6 KB
html2text {}
    
Offset 1, 100 lines modifiedOffset 1, 108 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
5  Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact5  Introduction··define·a·metatag·you·have·to·provide·the·HTML·code·which·it
6  License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With 
7  Tutorial······metatags·you·can·expand·htp's·functionality.6  License·······abbreviates.·In·fact·metatags·are·just·like·block·macros,·but·they
 7  Tutorial······have·a·nicer·syntax.·With·metatags·you·can·expand·htp's
 8   ··Macros····functionality.
8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and9   ··Including·Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags
9   ··Including·undefined·with·the·[[ref]]undef·tag.10   ··Templates·and·undefined·with·the·[[ref]]undef·tag.
10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal11   ··Files·····As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy
11   ··Files·····rule·out·of·several·images. 
12  [>]·Metatags·· 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] 
13  Usage·········[GLOBAL]> 
14  HTP_Tags······ 2.12  [>]·Metatags··horizontal·rule·out·of·several·images.
 13  Usage········· 1.<[[ref]]OPT·(IMGXY|NOIMGXY)>
 14  HTP_Tags······ 2.<[[ref]]OPT·(QUIET|VERBOSE)>
 15  History······· 3.<[[ref]]OPT·(DEPEND|NODEPEND)>
 16  Wish_list····· 4.<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)>
 17  Bugs·········· 5.<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)>
 18 ················ 6.<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)>
 19 ················ 7.<[[ref]]OPT·(XML|XML=FALSE)>
 20 ················ 8.
15  History·······In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The21 ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.
16  Wish_list·····html·code·which·implements·this·rule·is·following·in·lines·2-8.·between22 ················The·html·code·which·implements·this·rule·is·following·in·lines·2-
17  Bugs··········the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html 
18 ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the 
19 ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace23 ················8.·between·the·[[ref]]def_and_/def·tags.·You·don't·have·to
 24 ················understand·this·html·code,·but·you·should·understand·that·this·is
 25 ················just·pure·html·to·draw·the·fancy·rule.·Every·time·you·write
 26 ················<imghr>·as·in·line·12·htp·will·replace·this·tag·with·the
20 ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to27 ················corresponding·html·code.·To·make·metatags·available·to·all·htp
21 ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include28 ················documents·in·your·project,·place·them·in·a·common·[[ref]]include
22 ················file.29 ················file.
23 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing30 ················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.·When31 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.
25 ················htp·encounters·a·blockdef·tag·it·will·automatically·search·for·the32 ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search
26 ················matching·closing·tag·and·put·everything·between·these·tags·in·a·block33 ················for·the·matching·closing·tag·and·put·everything·between·these·tags
27 ················macro·named·block.·Here·is·an·example·for·this.34 ················in·a·block·macro·named·block.·Here·is·an·example·for·this.
28 ················ 1. ·<[[ref]]blockdef·name="bolditalic">35 ················ 1. ·<[[ref]]blockdef·name="bolditalic">
29 ················ 2. · ·<b><i>36 ················ 2. · ·<b><i>
30 ················ 3. · ·<[[ref]]use·block>37 ················ 3. · ·<[[ref]]use·block>
31 ················ 4. · ·</i></b>38 ················ 4. · ·</i></b>
32 ················ 5. ·<[[ref]]/blockdef>39 ················ 5. ·<[[ref]]/blockdef>
33 ················ 6.40 ················ 6.
34 ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic>41 ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic>
35 ················*****·Using·parameters·*****42 ················*****·Using·parameters·*****
36 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets43 ················More·sophisticated·tags·accept·parameters.·The·option·parameter
37 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or44 ················lets·multiple·metatag·parameters·be·named·and·expanded·inside·the
38 ················blockdef·block:45 ················def·or·blockdef·block:
 46 ················ 1. · ·<[[ref]]SET·emailaddr="jnelson@crl.com">
39 ················ 1.<[[ref]]WHILE·[NOT]·conditional> 
40 ················ 2. · ·block 
41 ················ 3.<[[ref]]/WHILE> 
42 ················ 4. 
43 ················*****·Saving·blocks·for·later·*****47 ················*****·Saving·blocks·for·later·*****
44 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the48 ················When·you·are·using·templates,·the·html·should·only·be·written·by
45 ················template·file.·The·normal·htp·files·should·just·define·macros·that·are49 ················the·template·file.·The·normal·htp·files·should·just·define·macros
46 ················used·later·in·the·template.·So·you·may·want·to·write·block·tags·that50 ················that·are·used·later·in·the·template.·So·you·may·want·to·write
47 ················just·save·the·block·in·a·macro·for·later·use.·Although·this·is·possible 
48 ················with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to·do·this:51 ················block·tags·that·just·save·the·block·in·a·macro·for·later·use.
 52 ················Although·this·is·possible·with·htp·it·is·quite·tricky,·so·here·we
 53 ················present·the·way·to·do·this:
49 ················ 1. · ·<[[ref]]unset·email_addr·home_url·login_name>54 ················ 1. · ·<[[ref]]unset·email_addr>
50 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter55 ················This·defines·a·block·macro·named·section.·This·macro·uses·a
51 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every·section56 ················counter·sect-ctr·that·enumerates·the·sections.·It·is·increased·for
52 ················(line·3)·and·then·the·block·macro·name·is·build·from·this·counter.·So57 ················every·section·(line·3)·and·then·the·block·macro·name·is·build·from
53 ················the·first·section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so58 ················this·counter.·So·the·first·section·is·stored·in·block·sect-1,·the
54 ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should 
55 ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be 
56 ················forgotten·at·the·end·of·the·section·macro.59 ················second·in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells
 60 ················htp·that·these·macros·should·be·defined·globally·for·the·remaining
 61 ················run.·Otherwise·they·would·be·forgotten·at·the·end·of·the·section
 62 ················macro.
57 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5.63 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4
58 ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and64 ················and·5.·Normally·when·you·define·a·block·macro·the·code·between·the
59 ················end·tag·is·literally·copied·into·the·macro·value.·The·expansion·takes65 ················start·and·end·tag·is·literally·copied·into·the·macro·value.·The
60 ················place·when·the·macro·is·used.·In·this·case·that·doesn't·make·sense;·all66 ················expansion·takes·place·when·the·macro·is·used.·In·this·case·that
61 ················macros·sect-1,·sect-2·and·so·on·would·just·contain·the·same·value, 
62 ················namely·<use·block>·and·block·wouldn't·be·defined·anymore·when·the·macros 
63 ················are·finally·expanded.·Therefore·we·use·expand·to·expand·the·use·tag 
64 ················already·when·sect-1·is·defined.67 ················doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so·on·would·just
 68 ················contain·the·same·value,·namely·<use·block>·and·block·wouldn't·be
 69 ················defined·anymore·when·the·macros·are·finally·expanded.·Therefore·we
 70 ················use·expand·to·expand·the·use·tag·already·when·sect-1·is·defined.
65 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and71 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite
66 ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,·it72 ················and·prevents·the·contents·of·block·to·be·expanded·twice.·If·you
67 ················would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it·later73 ················omit·it,·it·would·be·expanded·when·defining·the·sect-1·macro·and
68 ················in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand·whenever74 ················when·using·it·later·in·the·template.·Generally·it·is·a·good·idea
69 ················you·use·expand·in·a·block·around·it.75 ················to·use·noexpand·whenever·you·use·expand·in·a·block·around·it.
70 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}·blocks76 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}
71 ················in·the·template:77 ················blocks·in·the·template:
 78 ················ 1.<[[ref]]block·stuff>
 79 ················ 2. ·<a·href=$email>send·email</a>
72 ················ 1.<[[ref]]file·include="header.hti"> 
73 ················ 2. ·<[[ref]]set·sect-ctr="1"> 
74 ················ 3. ·<[[ref]]while·sect-${sect-ctr}> 
75 ················ 4. · ·<[[ref]]use·sect-${sect-ctr}> 
76 ················ 5. · ·<[[ref]]inc·sect-ctr> 
77 ················ 6. ·<[[ref]]/while>80 ················ 3.<[[ref]]/block>
78 ················ 7.<[[ref]]file·include="footer.hti">81 ················ 4.
 82 ················ 5.<[[ref]]set·morestuff=$email>
 83 ················ 6.
 84 ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
 85 ················ 8.But·this·fails:·<[[ref]]use·email>
 86 ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com">
79 ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-${sect-ctr}87 ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$
80 ················is·defined.·If·it·is·defined·the·body·is·evaluated,·which·expands·the88 ················{sect-ctr}·is·defined.·If·it·is·defined·the·body·is·evaluated,
81 ················macro·and·increases·sect-ctr.·Afterwards·the·while·condition·is·checked 
82 ················again·to·check·for·sect-2·macro.·This·repeats·until·sect-${sect-ctr}·is 
83 ················not·defined.89 ················which·expands·the·macro·and·increases·sect-ctr.·Afterwards·the
 90 ················while·condition·is·checked·again·to·check·for·sect-2·macro.·This
 91 ················repeats·until·sect-${sect-ctr}·is·not·defined.
84 ················*****·Conclusions·*****92 ················*****·Conclusions·*****
85 ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and·see·the93 ················This·closes·our·short·htp·tutorial.·I·hope·you·did·enjoy·it·and
86 ················advantages·of·using·htp·for·your·own·projects.·Please·give·us·some94 ················see·the·advantages·of·using·htp·for·your·own·projects.·Please·give
87 ················feedback·about·this·tutorial.·What·can·be·improved?95 ················us·some·feedback·about·this·tutorial.·What·can·be·improved?
88 ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage·chapter96 ················There·is·more·documentation·in·this·manual,·see·the·[[ref]]Usage
89 ················or·browse·the·documentations·for·the·htp·tags.·If·you're·looking·for97 ················chapter·or·browse·the·documentations·for·the·htp·tags.·If·you're
90 ················examples,·in·case·you·haven't·already·noticed·yourself,·there·is·a·link98 ················looking·for·examples,·in·case·you·haven't·already·noticed
91 ················to·the·source·code·on·the·left,·where·you·can·get·the·source·code·for 
92 ················every·page·on·this·site.99 ················yourself,·there·is·a·link·to·the·source·code·on·the·left,·where
 100 ················you·can·get·the·source·code·for·every·page·on·this·site.
  
  
Max diff block lines reached; 563/12894 bytes (4.37%) of diff not shown.
3.27 KB
./usr/share/doc/htp/opt.html
    
Offset 114, 15 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;·&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>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border[·...·truncated·by·diffoscope;·len:·44,·SHA:·062d7c6b0f7893e5b4f6fe36e602f6ddb37d5425a5c2feea5b522f84b1eb21fa·...·]>&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;·&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>
 124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&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>
 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>
122 </code></p>128 </code></p>
123 <h2>synopsis</h2>129 <h2>synopsis</h2>
124 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing130 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing
125 options·inside·the·actual·document·being·processed.··The·options·are131 options·inside·the·actual·document·being·processed.··The·options·are
126 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not132 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not
127 preceded·by·a·&lsquo;-&rsquo;·character.133 preceded·by·a·&lsquo;-&rsquo;·character.
128 <P>134 <P>
1.53 KB
html2text {}
    
Offset 1, 23 lines modifiedOffset 1, 23 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]]IF·name>...<[[ref]]/IF> 
5  Introduction·*****·synopsis·*****4 Contents······· ·<[[ref]]blockdef·name="bolditalic">
 5  Introduction· · ·<b><i>
 6  License······ · ·<[[ref]]use·block>
 7  Tutorial····· · ·</i></b>
 8  Usage········ ·<[[ref]]/blockdef>
 9  HTP·Tags
 10   ··ALTTEXT·· ·This·is·<bolditalic>bold·and·italic</bolditalic>
 11   ··BLOCK····*****·synopsis·*****
6  License······OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the12   ··BLOCKDEF·OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the
7  Tutorial·····actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be13   ··DEF······actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be
8  Usage········on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character.14   ··FILE·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character.
9  HTP·Tags·····Click·here·for·more_information_on_using_customization_options_with_htp.15   ··IF·······Click·here·for·more_information_on_using_customization_options_with_htp.
10   ··ALTTEXT 
11   ··BLOCK 
12   ··BLOCKDEF 
13   ··DEF 
14   ··FILE 
15   ··IF 
16   ··INC16   ··INC
17   ··IMG17   ··IMG
18   ··IMAGEURL18   ··IMAGEURL
19  [>]·OPT19  [>]·OPT
20   ··OUTPUT20   ··OUTPUT
21   ··QUOTE21   ··QUOTE
22   ··SET22   ··SET
Offset 25, 14 lines modifiedOffset 25, 19 lines modified
25   ··UNSET25   ··UNSET
26   ··USE,_$26   ··USE,_$
27   ··WHILE27   ··WHILE
28   ··<!---28   ··<!---
29  History29  History
30  Wish_list30  Wish_list
31  Bugs31  Bugs
  
  
  
  
  
32  page_source32  page_source
33  htp_project33  htp_project
34  htp_homepage34  htp_homepage
35 hosted·by35 hosted·by
36 Sourceforge36 Sourceforge
37 HTML·coding37 HTML·coding
38 [Powered_by38 [Powered_by
4.65 KB
./usr/share/doc/htp/output.html
    
Offset 114, 15 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;·&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>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border[·...·truncated·by·diffoscope;·len:·44,·SHA:·062d7c6b0f7893e5b4f6fe36e602f6ddb37d5425a5c2feea5b522f84b1eb21fa·...·]>&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;·&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>
 124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&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>
 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>
122 </code></p>128 </code></p>
123 <h2>synopsis</h2>129 <h2>synopsis</h2>
124 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary130 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary
125 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the131 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the
126 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>132 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>
127 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you133 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you
128 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text134 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text
2.82 KB
html2text {}
    
Offset 1, 51 lines modifiedOffset 1, 57 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]]IF·name>...<[[ref]]/IF> 
5  License····················*****·synopsis·*****4  Introduction·········· ·<[[ref]]blockdef·name="bolditalic">
 5  License··············· · ·<b><i>
 6  Tutorial·············· · ·<[[ref]]use·block>
 7  Usage················· · ·</i></b>
 8  HTP·Tags·············· ·<[[ref]]/blockdef>
 9   ··ALTTEXT
 10   ··BLOCK············· ·This·is·<bolditalic>bold·and·italic</bolditalic>
 11   ··BLOCKDEF··········*****·synopsis·*****
6  Tutorial···················The·OUTPUT·tag·can·be·used·to·create·auxillary12   ··DEF···············The·OUTPUT·tag·can·be·used·to·create·auxillary
7  Usage······················files·besides·the·main·HTML·file.·The·text·between13   ··FILE··············files·besides·the·main·HTML·file.·The·text·between
8  HTP·Tags···················this·tag·and·the·corresponding·</OUTPUT>·tag·is14   ··IF················this·tag·and·the·corresponding·</OUTPUT>·tag·is
9   ··ALTTEXT················written·to·output·file.15   ··INC···············written·to·output·file.
10   ··BLOCK··················Normally·the·outputfile·is·cleared·before·writing16   ··IMG···············Normally·the·outputfile·is·cleared·before·writing
11   ··BLOCKDEF···············to·it,·but·you·can·use·the·APPEND·attribute·to17   ··IMAGEURL··········to·it,·but·you·can·use·the·APPEND·attribute·to
12   ··DEF····················extend·an·existing·file.·The·text·written·to·the18   ··OPT···············extend·an·existing·file.·The·text·written·to·the
13   ··FILE···················file·is·normally·not·expanded,·i.e.·all·tags19  [>]·OUTPUT············file·is·normally·not·expanded,·i.e.·all·tags·inside
14   ··IF·····················inside·this·block·are·not·executed·but·written20   ··QUOTE·············this·block·are·not·executed·but·written·unmodified
15   ··INC····················unmodified·to·the·file.·However,·you·can·use·the21   ··SET···············to·the·file.·However,·you·can·use·the·EXPAND
16   ··IMG····················EXPAND·attribute·to·override·this·behaviour.22   ··UNDEF·············attribute·to·override·this·behaviour.
17   ··IMAGEURL 
18   ··OPT 
19  [>]·OUTPUT 
20   ··QUOTE 
21   ··SET 
22   ··UNDEF 
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
25   ··WHILE25   ··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
33 hosted·by33 hosted·by
34 Sourceforge34 Sourceforge
35 HTML·coding·[Powered_by35 HTML·coding·[Powered
36 htp]36 by_htp]
37 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/37 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
38 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.38 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
39 ·····Maintainers:·Jochen_Hoenicke.39 ·····Maintainers:·Jochen_Hoenicke.
40 Copyright·©·1995–96·Jim·Nelson.40 Copyright·©·1995–96·Jim·Nelson.
41 Copyright·©·2001–2014·Jochen_Hoenicke.41 Copyright·©·2001–2014·Jochen_Hoenicke.
42 Permission·to·reproduce·and·distribute·this·hypertext·document·granted42 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
43 according·to·terms·described·in·the·License_section.43 according·to·terms·described·in·the·License_section.
6.48 KB
./usr/share/doc/htp/set.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="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;·&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>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>
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&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> 
126 <br>123 <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>124 </code></p>
129 <h2>synopsis</h2>125 <h2>synopsis</h2>
130 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded126 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded
131 anywhere·in·the·HTML·document.··To·create·a·macro:127 anywhere·in·the·HTML·document.··To·create·a·macro:
132 ··<p><code>128 ··<p><code>
133 <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>129 <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>
134 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>130 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
4.28 KB
html2text {}
    
Offset 1, 43 lines modifiedOffset 1, 40 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·SET·******2 ******·htp·on-line·reference·:·SET·******
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]]blockdef·name="bolditalic"> 
5  License··············· · ·<b><i> 
6  Tutorial·············· · ·<[[ref]]use·block> 
7  Usage················· · ·</i></b> 
8  HTP·Tags·············· ·<[[ref]]/blockdef> 
9   ··ALTTEXT 
10   ··BLOCK············· ·This·is·<bolditalic>bold·and·italic</bolditalic> 
11   ··BLOCKDEF··········*****·synopsis·***** 
12   ··DEF···············SET·creates·a·macro·definition·that·can·later·be8  HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be
13   ··FILE··············expanded·anywhere·in·the·HTML·document.·To·create·a9   ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create
14   ··IF················macro:10   ··BLOCK··················a·macro:
15   ··INC···············<[[ref]]use·macroname·[parameters·...]·[noexpand]>11   ··BLOCKDEF···············<[[ref]]use·macroname·[parameters·...]·[noexpand]>
 12   ··DEF····················<...·$macroname·...>
16   ··IMG···············<...·$macroname·...>13   ··FILE···················<...·${macroname}·...>
 14   ··IF
17   ··IMAGEURL··········<...·${macroname}·...> 
18   ··OPT 
19   ··OUTPUT············The·macro·"emailaddr"·can·then·be·expanded·later.15   ··INC····················The·macro·"emailaddr"·can·then·be·expanded·later.
20   ··QUOTE·············The·USE·tag·is·used·to·expand·the·macro·outside·a16   ··IMG····················The·USE·tag·is·used·to·expand·the·macro·outside·a
21  [>]·SET···············tag·(i.e.,·into·the·regular·text).·If·the·macro17   ··IMAGEURL···············tag·(i.e.,·into·the·regular·text).·If·the·macro
22   ··UNDEF·············needs·to·be·expanded·inside·a·markup·tag,·use·the18   ··OPT····················needs·to·be·expanded·inside·a·markup·tag,·use·the
23   ··UNSET·············'$'·operator.19   ··OUTPUT·················'$'·operator.
24   ··USE,_$············Multiple·macros·can·be·declared·in·a·single·markup20   ··QUOTE··················Multiple·macros·can·be·declared·in·a·single·markup
25   ··WHILE·············tag,·as·the·second·syntax·line·shows.21  [>]·SET····················tag,·as·the·second·syntax·line·shows.
26   ··<!---·············SET·should·only·be·used·for·a·single·line's·worth22   ··UNDEF··················SET·should·only·be·used·for·a·single·line's·worth
27  History···············of·text.·Multi-line·macros·can·be·defined·with·the23   ··UNSET··················of·text.·Multi-line·macros·can·be·defined·with·the
28  Wish_list·············BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the24   ··USE,_$·················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the
29  Bugs··················macro·contains·a·quotation·character·and·you·don't25   ··WHILE··················macro·contains·a·quotation·character·and·you·don't
30 ························want·to·fool·around·with·special·escape·characters.26   ··<!---··················want·to·fool·around·with·special·escape
 27  History····················characters.
31 ························Macros·can·be·redefined·by·using·another·SET28  Wish_list··················Macros·can·be·redefined·by·using·another·SET
32 ························command·with·the·same·macro·name.·The·prior29  Bugs·······················command·with·the·same·macro·name.·The·prior
33 ························definition·will·be·destroyed,·however.·Also,·the30 ·····························definition·will·be·destroyed,·however.·Also,·the
34 ························macro·can·be·removed·(destroyed)·with·the·UNSET31 ·····························macro·can·be·removed·(destroyed)·with·the·UNSET
35 ························tag.32 ·····························tag.
  
  
  
  
  
  
  
Offset 55, 16 lines modifiedOffset 52, 16 lines modified
  
  
55  page_source52  page_source
56  htp_project53  htp_project
57  htp_homepage54  htp_homepage
58 hosted·by55 hosted·by
59 Sourceforge56 Sourceforge
60 HTML·coding·[Powered57 HTML·coding·[Powered_by
61 by_htp]58 htp]
62 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/59 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
63 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.60 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
64 ·····Maintainers:·Jochen_Hoenicke.61 ·····Maintainers:·Jochen_Hoenicke.
65 Copyright·©·1995–96·Jim·Nelson.62 Copyright·©·1995–96·Jim·Nelson.
66 Copyright·©·2001–2014·Jochen_Hoenicke.63 Copyright·©·2001–2014·Jochen_Hoenicke.
67 Permission·to·reproduce·and·distribute·this·hypertext·document·granted64 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
68 according·to·terms·described·in·the·License_section.65 according·to·terms·described·in·the·License_section.
790 B
./usr/share/doc/htp/tut/jh.html
    
Offset 16, 10 lines modifiedOffset 16, 10 lines modified
16 <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr>16 <tr><td><b>Phone:</b></td><td>+49·761·203-8243</td></tr>
17 <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr>17 <tr><td><b>Fax:</b></td><td>+49·761·203-8242</td></tr>
18 </table>18 </table>
19 ···</td></tr>19 ···</td></tr>
20 ··</table>20 ··</table>
21 ··<hr>21 ··<hr>
22 ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br>22 ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br>
23 ··last·updated·Sat·Jan·06,·202423 ··last·updated·Sat·Feb·08,·2025
24 ·</body>24 ·</body>
25 </html>25 </html>
393 B
html2text {}
    
Offset 1, 8 lines modifiedOffset 1, 8 lines modified
1 ···············******·Jochen·Hoenicke·******1 ···············******·Jochen·Hoenicke·******
2 Navigation·bar·[Photo]2 Navigation·bar·[Photo]
3 Main···········Room:··Bld.52·00-0203 Main···········Room:··Bld.52·00-020
4 Example········Phone:·+49·761·203-82434 Example········Phone:·+49·761·203-8243
5 ···············Fax:···+49·761·203-82425 ···············Fax:···+49·761·203-8242
6 ===============================================================================6 ===============================================================================
7 Copyright·by·Joe_Doe.7 Copyright·by·Joe_Doe.
8 last·updated·Sat·Jan·06,·20248 last·updated·Sat·Feb·08,·2025
643 B
./usr/share/doc/htp/tut/tut1.html
    
Offset 5, 9 lines modifiedOffset 5, 9 lines modified
5 <meta·name="Generator"·content="htp·1.19">5 <meta·name="Generator"·content="htp·1.19">
6 </head>6 </head>
7 <body>7 <body>
8 This·page·was·produced·by·htp.8 This·page·was·produced·by·htp.
9 <hr>9 <hr>
10 Copyright·by·Joe·Doe,10 Copyright·by·Joe·Doe,
11 <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>,11 <a·href="mailto:webmaster@domain.com">webmaster@domain.com</a>,
12 last·updated·Sat·Jan·06,·202412 last·updated·Sat·Feb·08,·2025
13 </body>13 </body>
303 B
html2text {}
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 This·page·was·produced·by·htp.1 This·page·was·produced·by·htp.
2 ===============================================================================2 ===============================================================================
3 Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Sat·Jan·06,·20243 Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Sat·Feb·08,·2025
686 B
./usr/share/doc/htp/tut/tut2.html
    
Offset 13, 10 lines modifiedOffset 13, 10 lines modified
13 <p>13 <p>
14 As·you·can·see·the·file·contains·almost·only·the·contents.14 As·you·can·see·the·file·contains·almost·only·the·contents.
15 </p>15 </p>
16 ···</td></tr>16 ···</td></tr>
17 ··</table>17 ··</table>
18 ··<hr>18 ··<hr>
19 ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br>19 ··Copyright·by·<a·href="mailto:webmaster@domain.com">Joe·Doe</a>.<br>
20 ··last·updated·Sat·Jan·06,·202420 ··last·updated·Sat·Feb·08,·2025
21 ·</body>21 ·</body>
22 </html>22 </html>
338 B
html2text {}
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
1 Navigation·bar·*****·Here·is·the·content·*****1 Navigation·bar·*****·Here·is·the·content·*****
2 Main···········As·you·can·see·the·file·contains·almost·only·the·contents.2 Main···········As·you·can·see·the·file·contains·almost·only·the·contents.
3 Example3 Example
4 ===============================================================================4 ===============================================================================
5 Copyright·by·Joe_Doe.5 Copyright·by·Joe_Doe.
6 last·updated·Sat·Jan·06,·20246 last·updated·Sat·Feb·08,·2025
684 B
./usr/share/doc/htp/tut/tut3.html
    
Offset 13, 10 lines modifiedOffset 13, 10 lines modified
13 ·<p>13 ·<p>
14 ·As·you·can·see·the·file·contains·almost·only·the·contents.14 ·As·you·can·see·the·file·contains·almost·only·the·contents.
15 ·</p>15 ·</p>
16 ···</td></tr>16 ···</td></tr>
17 ··</table>17 ··</table>
18 ··<hr>18 ··<hr>
19 ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br>19 ··Copyright·by·<a·href="webmaster@domain.com">Joe·Doe</a>.<br>
20 ··last·updated·Sat·Jan·06,·202420 ··last·updated·Sat·Feb·08,·2025
21 ·</body>21 ·</body>
22 </html>22 </html>
340 B
html2text {}
    
Offset 1, 6 lines modifiedOffset 1, 6 lines modified
1 Navigation·bar·*****·Here·are·the·contents·*****1 Navigation·bar·*****·Here·are·the·contents·*****
2 Main···········As·you·can·see·the·file·contains·almost·only·the·contents.2 Main···········As·you·can·see·the·file·contains·almost·only·the·contents.
3 Example3 Example
4 ===============================================================================4 ===============================================================================
5 Copyright·by·Joe_Doe.5 Copyright·by·Joe_Doe.
6 last·updated·Sat·Jan·06,·20246 last·updated·Sat·Feb·08,·2025
4.53 KB
./usr/share/doc/htp/undef.html
    
Offset 114, 21 lines modifiedOffset 114, 15 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="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">emailaddr</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br>
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>122 </code></p>
129 <h2>synopsis</h2>123 <h2>synopsis</h2>
130 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags124 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags
131 created·by·<A·HREF="def.html">DEF</A>·and·<A125 created·by·<A·HREF="def.html">DEF</A>·and·<A
132 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF126 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF
133 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by127 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by
134 htp·until·it·is·reassigned.··</P>128 htp·until·it·is·reassigned.··</P>
2.21 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]]SET·emailaddr="jnelson@crl.com">
 5  License····················*****·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·by6  Tutorial···················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·by7  Usage······················created·by·DEF·and·BLOCKDEF·can·be·removed·with
 8  HTP·Tags···················the·UNDEF·command.·Once·removed,·the·metatag·will
 9   ··ALTTEXT················no·longer·be·recognized·by·htp·until·it·is
15   ··INC············htp·until·it·is·reassigned.10   ··BLOCK··················reassigned.
16   ··IMG············Multiple·metatags·can·be·removed·by·placing·each·name·as11   ··BLOCKDEF···············Multiple·metatags·can·be·removed·by·placing·each
17   ··IMAGEURL·······an·attribute.12   ··DEF····················name·as·an·attribute.
 13   ··FILE
 14   ··IF
 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,_$
Offset 27, 26 lines modifiedOffset 27, 21 lines modified
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·coding 
37 [Powered_by_htp]36 HTML·coding·[Powered_by
 37 htp]
38 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/38 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
39 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.39 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
40 ·····Maintainers:·Jochen_Hoenicke.40 ·····Maintainers:·Jochen_Hoenicke.
41 Copyright·©·1995–96·Jim·Nelson.41 Copyright·©·1995–96·Jim·Nelson.
42 Copyright·©·2001–2014·Jochen_Hoenicke.42 Copyright·©·2001–2014·Jochen_Hoenicke.
43 Permission·to·reproduce·and·distribute·this·hypertext·document·granted43 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
44 according·to·terms·described·in·the·License_section.44 according·to·terms·described·in·the·License_section.
8.84 KB
./usr/share/doc/htp/unset.html
    
Offset 114, 24 lines modifiedOffset 114, 18 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>121 <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="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">][·...·truncated·by·diffoscope;·len:·101,·SHA:·902ed330c7bb28d683f1041df479321af5b8c2d9f1a54b32efac5fc90bf0c836·...·]>&gt;</span><br>
 122 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">$macroname</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
 123 <span·class="htp-tag">&lt;...·<span·class="htp-attrib"><span·class="htp-macro">${macroname}</span></span>·<span·class="htp-attrib">...</span>&gt;</span><br>
124 <br>124 <br>
125 "><br> 
126 &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> 
127 &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> 
128 &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> 
129 &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> 
130 &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> 
131 </code></p>125 </code></p>
132 <h2>synopsis</h2>126 <h2>synopsis</h2>
133 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.127 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.
134 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.128 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.
135 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or129 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or
136 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The130 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The
137 old·macro·definition·will·be·removed·automatically.)131 old·macro·definition·will·be·removed·automatically.)
Offset 147, 21 lines modifiedOffset 141, 16 lines modified
147 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>141 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>
148 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>142 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>
149 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>143 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>
150 </code></p>144 </code></p>
151 <P>145 <P>
152 More·than·one·macro·may·be·removed·in·the·same·tag:146 More·than·one·macro·may·be·removed·in·the·same·tag:
153 ··<p><code>147 ··<p><code>
 148 <span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>&gt;</span>mailto·hyperlink<span·class="htp-tag">&lt;/a&gt;</span><br>
 149 <span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>&gt;</span>another·hyperlink<span·class="htp-tag">&lt;/a&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">"header.hti"</span>&gt;</span><br> 
155 &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">"1"</span>&gt;</span><br> 
156 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br> 
157 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br> 
158 &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> 
159 &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> 
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">include</span>=<span·class="htp-string">"footer.hti"</span>&gt;</span><br> 
161 </code></p>150 </code></p>
162 <p>151 <p>
163 </td>152 </td>
164 </tr>153 </tr>
165 <tr>154 <tr>
166 <td·width="20%"·bgcolor="white"·valign="bottom">155 <td·width="20%"·bgcolor="white"·valign="bottom">
167 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">156 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">
3.04 KB
html2text {}
    
Offset 1, 49 lines modifiedOffset 1, 38 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·UNSET·******2 ******·htp·on-line·reference·:·UNSET·******
3 Table_of··········*****·syntax·*****3 Table_of··········*****·syntax·*****
4 Contents··········<[[ref]]WHILE·[NOT]·conditional> 
5  Introduction···· · ·block 
6  License·········<[[ref]]/WHILE>4 Contents··········<[[ref]]use·macroname·[parameters·...]·[noexpand]>
 5  Introduction····<...·$macroname·...>
 6  License·········<...·${macroname}·...>
7  Tutorial7  Tutorial
8  Usage···········"> 
9  HTP·Tags········ · ·<[[ref]]inc·sect-ctr> 
10   ··ALTTEXT····· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> 
11   ··BLOCK······· · · ·<[[ref]]use·block·noexpand> 
12   ··BLOCKDEF···· · ·<[[ref]]/block> 
13   ··DEF········· ·<[[ref]]/blockdef> 
14   ··FILE········*****·synopsis·*****8  Usage···········*****·synopsis·*****
15   ··IF··········UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The9  HTP·Tags········UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The
16   ··INC·········macro·is·subsequently·not·available·for·use·in·the·pre-10   ··ALTTEXT·····macro·is·subsequently·not·available·for·use·in·the·pre-
17   ··IMG·········processed·files.·(Note·that·simply·redefining·the·macro·with11   ··BLOCK·······processed·files.·(Note·that·simply·redefining·the·macro·with
18   ··IMAGEURL····another·SET·or·BLOCK·definition·with·the·same·name·is12   ··BLOCKDEF····another·SET·or·BLOCK·definition·with·the·same·name·is
19   ··OPT·········acceptable.·The·old·macro·definition·will·be·removed13   ··DEF·········acceptable.·The·old·macro·definition·will·be·removed
20   ··OUTPUT······automatically.)14   ··FILE········automatically.)
21   ··QUOTE·······For·example:15   ··IF··········For·example:
22   ··SET·········<[[ref]]block·stuff>16   ··INC·········<[[ref]]block·stuff>
23   ··UNDEF······· ·<a·href=$email>send·email</a>17   ··IMG········· ·<a·href=$email>send·email</a>
24  [>]·UNSET·······<[[ref]]/block> 
25   ··USE,_$18   ··IMAGEURL····<[[ref]]/block>
 19   ··OPT
26   ··WHILE·······<[[ref]]set·morestuff=$email>20   ··OUTPUT······<[[ref]]set·morestuff=$email>
27   ··<!---21   ··QUOTE
28  History·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">22   ··SET·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
29  Wish_list·······But·this·fails:·<[[ref]]use·email>23   ··UNDEF·······But·this·fails:·<[[ref]]use·email>
30  Bugs············And·this·fails:·<[[ref]]use·morestuff24  [>]·UNSET·······And·this·fails:·<[[ref]]use·morestuff
31 ··················email="jnelson@crl.com">25   ··USE,_$······email="jnelson@crl.com">
32 ··················More·than·one·macro·may·be·removed·in·the·same·tag:26   ··WHILE·······More·than·one·macro·may·be·removed·in·the·same·tag:
 27   ··<!---·······<a·href="mailto:$email">mailto·hyperlink</a>
 28  History·········<a·href="http://$domain/~${username}/">another·hyperlink</a>
 29  Wish_list
 30  Bugs
33 ··················<[[ref]]file·include="header.hti"> 
34 ·················· ·<[[ref]]set·sect-ctr="1"> 
35 ·················· ·<[[ref]]while·sect-${sect-ctr}> 
36 ·················· · ·<[[ref]]use·sect-${sect-ctr}> 
37 ·················· · ·<[[ref]]inc·sect-ctr> 
38 ·················· ·<[[ref]]/while> 
39 ··················<[[ref]]file·include="footer.hti"> 
  
  
  
  
  
  
  
  
  
9.15 KB
./usr/share/doc/htp/use.html
    
Offset 114, 15 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 <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">"header.hti"</span>&gt;</span><br>
 122 &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">"1"</span>&gt;</span><br>
 123 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>
 124 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>&gt;</span><br>125 &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>
 126 &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>
 127 <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">"footer.hti"</span>&gt;</span><br>
122 </code></p>128 </code></p>
123 <h2>synopsis</h2>129 <h2>synopsis</h2>
124 <strong>USE</strong>·will·expand·macros·that·have·been·previously130 <strong>USE</strong>·will·expand·macros·that·have·been·previously
125 declared·with·either·<A·HREF="set.html">SET</A>·or·<A131 declared·with·either·<A·HREF="set.html">SET</A>·or·<A
126 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other132 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other
127 markup·tags.133 markup·tags.
128 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will134 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
Offset 132, 21 lines modifiedOffset 138, 18 lines modified
132 attribute·to·prevent·further·expansion.··</p>138 attribute·to·prevent·further·expansion.··</p>
133 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros139 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros
134 for·the·expanded·macro.··This·is·only·valid·for·<A140 for·the·expanded·macro.··This·is·only·valid·for·<A
135 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A141 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A
136 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For142 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For
137 example:</p>143 example:</p>
138 ··<p><code>144 ··<p><code>
139 <font·size="-2">&nbsp;1.·</font><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">"header.hti"</span>&gt;</span><br> 
140 <font·size="-2">&nbsp;2.·</font>&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">"1"</span>&gt;</span><br> 
141 <font·size="-2">&nbsp;3.·</font>&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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>145 <font·size="-2">&nbsp;1.·</font>&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">sect-<span·class="htp-macro">$i</span></span>&gt;</span><br>
142 <font·size="-2">&nbsp;4.·</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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>146 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>
143 <font·size="-2">&nbsp;5.·</font>&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>147 <font·size="-2">&nbsp;3.·</font>&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>
144 <font·size="-2">&nbsp;6.·</font>&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>148 <font·size="-2">&nbsp;4.·</font>&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>
145 <font·size="-2">&nbsp;7.·</font><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">"footer.hti"</span>&gt;</span><br> 
146 </code></p>149 </code></p>
147 <P>150 <P>
148 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on151 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on
149 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and152 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and
150 the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8153 the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8
151 fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is154 fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is
152 completely·expanded,·and·cannot·be·passed·to·a·SET·macro.155 completely·expanded,·and·cannot·be·passed·to·a·SET·macro.
3.91 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 41 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·USE,·$·******2 ******·htp·on-line·reference·:·USE,·$·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4 Contents······· · ·<[[ref]]unset·email_addr> 
5  Introduction·*****·synopsis·*****4 Contents·······<[[ref]]file·include="header.hti">
 5  Introduction· ·<[[ref]]set·sect-ctr="1">
 6  License······ ·<[[ref]]while·sect-${sect-ctr}>
 7  Tutorial····· · ·<[[ref]]use·sect-${sect-ctr}>
 8  Usage········ · ·<[[ref]]inc·sect-ctr>
 9  HTP·Tags····· ·<[[ref]]/while>
 10   ··ALTTEXT··<[[ref]]file·include="footer.hti">
 11   ··BLOCK····*****·synopsis·*****
6  License······USE·will·expand·macros·that·have·been·previously·declared·with12   ··BLOCKDEF·USE·will·expand·macros·that·have·been·previously·declared·with
7  Tutorial·····either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other13   ··DEF······either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other
8  Usage········markup·tags.14   ··FILE·····markup·tags.
9  HTP·Tags·····If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will15   ··IF·······If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
10   ··ALTTEXT··be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for16   ··INC······be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for
11   ··BLOCK····example,·if·the·use·is·inside·a·block·which·expands·itself.·You17   ··IMG······example,·if·the·use·is·inside·a·block·which·expands·itself.·You
12   ··BLOCKDEF·can·use·the·noexpand·attribute·to·prevent·further·expansion.18   ··IMAGEURL·can·use·the·noexpand·attribute·to·prevent·further·expansion.
13   ··DEF······USE·will·accept·additional·parameters,·which·are·"local"·macros19   ··OPT······USE·will·accept·additional·parameters,·which·are·"local"·macros
14   ··FILE·····for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros.20   ··OUTPUT···for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros.
15   ··IF·······Macros·created·using·SET·cannot·have·parameters·passed.·For21   ··QUOTE····Macros·created·using·SET·cannot·have·parameters·passed.·For
16   ··INC······example:22   ··SET······example:
 23   ··UNDEF···· 1. ·<[[ref]]WHILE·sect-$i>
 24   ··UNSET···· 2. · ·...
 25  [>]·USE,_$··· 3. · ·<[[ref]]INC·i>
 26   ··WHILE···· 4. ·<[[ref]]/WHILE>
17   ··IMG······ 1.<[[ref]]file·include="header.hti"> 
18   ··IMAGEURL· 2. ·<[[ref]]set·sect-ctr="1"> 
19   ··OPT······ 3. ·<[[ref]]while·sect-${sect-ctr}> 
20   ··OUTPUT··· 4. · ·<[[ref]]use·sect-${sect-ctr}> 
21   ··QUOTE···· 5. · ·<[[ref]]inc·sect-ctr> 
22   ··SET······ 6. ·<[[ref]]/while> 
23   ··UNDEF···· 7.<[[ref]]file·include="footer.hti"> 
24   ··UNSET····(See·below·for·a·description·of·the·'$'·operator.)·The·example27   ··<!---····(See·below·for·a·description·of·the·'$'·operator.)·The·example
25  [>]·USE,_$···on·line·7·works·because·"stuff"·has·been·declared·as·a·block28  History······on·line·7·works·because·"stuff"·has·been·declared·as·a·block
26   ··WHILE····macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"29  Wish_list····macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"
27   ··<!---····macro.·Line·8·fails·because·the·"email"·macro·is·unavailable30  Bugs·········macro.·Line·8·fails·because·the·"email"·macro·is·unavailable
28  History······once·the·block·macro·is·completely·expanded,·and·cannot·be31 ···············once·the·block·macro·is·completely·expanded,·and·cannot·be
29  Wish_list····passed·to·a·SET·macro.32 ···············passed·to·a·SET·macro.
30  Bugs·········Note·that·the·"email"·macro·is·available·to·other·macros·or33 ···············Note·that·the·"email"·macro·is·available·to·other·macros·or
31 ···············included·files·called·within·the·"stuff"·block.34 ···············included·files·called·within·the·"stuff"·block.
32 ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard35 ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard
33 ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should36 ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should
34 ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not37 ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not
35 ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it38 ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it
36 ···············replaces·the·macro·name·by·the·contents·of·the·macro·without39 ···············replaces·the·macro·name·by·the·contents·of·the·macro·without
37 ···············further·processing·the·contents.40 ···············further·processing·the·contents.
10.6 KB
./usr/share/doc/htp/while.html
    
Offset 114, 49 lines modifiedOffset 114, 39 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>121 <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">"header.hti"</span>&gt;</span><br>
 122 &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">"1"</span>&gt;</span><br>
 123 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>
 124 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>
 125 &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>
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>126 &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>
124 <br>127 <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">"footer.hti"</span>&gt;</span><br>
125 </code></p>128 </code></p>
126 <h2>synopsis</h2>129 <h2>synopsis</h2>
127 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.130 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.
128 The·basic·form·is·shown·above.131 The·basic·form·is·shown·above.
129 <P>132 <P>
130 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.133 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.
131 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.134 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.
132 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the135 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the
133 conditional·is·reversed:136 conditional·is·reversed:
134 ··<p><code>137 ··<p><code>
 138 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>&gt;</span><br>
135 <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> 
136 &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> 
137 <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> 
138 <br> 
139 <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> 
140 <br> 
141 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> 
142 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> 
143 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> 
144 </code></p>139 </code></p>
145 <P>140 <P>
146 Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a141 Just·as·with·<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·you·can·also·check·for·a
147 macro's·existance:142 macro's·existance:
148 ··<p><code>143 ··<p><code>
 144 <span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"mailto:<span·class="htp-macro">$email</span>"</span>&gt;</span>mailto·hyperlink<span·class="htp-tag">&lt;/a&gt;</span><br>
 145 <span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-string">"http://<span·class="htp-macro">$domain</span>/~<span·class="htp-macro">${username}</span>/"</span>&gt;</span>another·hyperlink<span·class="htp-tag">&lt;/a&gt;</span><br>
149 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>&gt;</span><br> 
150 ="1"><br> 
151 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br> 
152 &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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br> 
153 &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> 
154 &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> 
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">include</span>=<span·class="htp-string">"footer.hti"</span>&gt;</span><br> 
156 </code></p>146 </code></p>
157 <P>147 <P>
158 If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the148 If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the
159 WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the149 WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the
160 WHILE·tag·it·is·also·reevaluated·on·each·iteration.150 WHILE·tag·it·is·also·reevaluated·on·each·iteration.
161 <P>151 <P>
162 A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag.152 A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag.
4.0 KB
html2text {}
    
Offset 1, 48 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··········<[[ref]]file·include="header.hti">
 5  License··············· ·<[[ref]]set·sect-ctr="1">
4 Contents··········<[[ref]]WHILE·[NOT]·conditional> 
5  Introduction···· · ·block 
6  License·········<[[ref]]/WHILE> 
7  Tutorial 
8  Usage···········*****·synopsis·***** 
9  HTP·Tags········WHILE·is·the·building·block·for·repeated·processing.·The 
10   ··ALTTEXT·····basic·form·is·shown·above. 
11   ··BLOCK·······"Conditional"·is·either·a·"compare"·or·"is·defined" 
12   ··BLOCKDEF····operation.·A·compare·operator·is·a·test·of·the·value·of·a 
13   ··DEF·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in 
14   ··FILE········the·WHILE·markup,·the·evaluation·of·the·conditional·is 
15   ··IF··········reversed: 
16   ··INC·········<[[ref]]block·stuff> 
17   ··IMG········· ·<a·href=$email>send·email</a> 
18   ··IMAGEURL····<[[ref]]/block> 
19   ··OPT 
20   ··OUTPUT······<[[ref]]set·morestuff=$email> 
21   ··QUOTE 
22   ··SET·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> 
23   ··UNDEF·······But·this·fails:·<[[ref]]use·email> 
24   ··UNSET·······And·this·fails:·<[[ref]]use·morestuff 
25   ··USE,_$······email="jnelson@crl.com"> 
26  [>]·WHILE·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's 
27   ··<!---·······existance: 
28  History········· · ·<[[ref]]unset·email_addr·home_url·login_name> 
29  Wish_list·······="1"> 
30  Bugs············ ·<[[ref]]while·sect-${sect-ctr}>6  Tutorial·············· ·<[[ref]]while·sect-${sect-ctr}>
31 ·················· · ·<[[ref]]use·sect-${sect-ctr}>7  Usage················· · ·<[[ref]]use·sect-${sect-ctr}>
32 ·················· · ·<[[ref]]inc·sect-ctr>8  HTP·Tags·············· · ·<[[ref]]inc·sect-ctr>
33 ·················· ·<[[ref]]/while>9   ··ALTTEXT··········· ·<[[ref]]/while>
34 ··················<[[ref]]file·include="footer.hti">10   ··BLOCK·············<[[ref]]file·include="footer.hti">
 11   ··BLOCKDEF··········*****·synopsis·*****
 12   ··DEF···············WHILE·is·the·building·block·for·repeated
 13   ··FILE··············processing.·The·basic·form·is·shown·above.
 14   ··IF················"Conditional"·is·either·a·"compare"·or·"is·defined"
 15   ··INC···············operation.·A·compare·operator·is·a·test·of·the
 16   ··IMG···············value·of·a·macro·against·a·literal·string.·If·the
 17   ··IMAGEURL··········NOT·tag·is·present·in·the·WHILE·markup,·the
 18   ··OPT···············evaluation·of·the·conditional·is·reversed:
 19   ··OUTPUT············ · ·<[[ref]]unset·email_addr·home_url·login_name>
 20   ··QUOTE·············Just·as·with·[[ref]]IF·you·can·also·check·for·a
 21   ··SET···············macro's·existance:
 22   ··UNDEF·············<a·href="mailto:$email">mailto·hyperlink</a>
 23   ··UNSET·············<a·href="http://$domain/~${username}/">another
 24   ··USE,_$············hyperlink</a>
35 ··················If·the·condition·is·true,·the·block·is·evaluated·and25  [>]·WHILE·············If·the·condition·is·true,·the·block·is·evaluated
36 ··················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'-26   ··<!---·············and·afterwards·the·WHILE·tag·is·evaluated·again.·If
37 ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on 
38 ··················each·iteration.27  History···············the·'$'-operator·is·used·in·the·WHILE·tag·it·is
 28  Wish_list·············also·reevaluated·on·each·iteration.
39 ··················A·loop·block·must·be·closed·with·the·/WHILE·tag.29  Bugs··················A·loop·block·must·be·closed·with·the·/WHILE·tag.
  
  
  
  
  
  
  
  
Offset 60, 16 lines modifiedOffset 49, 16 lines modified
  
  
60  page_source49  page_source
61  htp_project50  htp_project
62  htp_homepage51  htp_homepage
63 hosted·by52 hosted·by
64 Sourceforge53 Sourceforge
65 HTML·coding 
66 [Powered_by_htp]54 HTML·coding·[Powered
 55 by_htp]
67 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/56 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
68 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.57 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
69 ·····Maintainers:·Jochen_Hoenicke.58 ·····Maintainers:·Jochen_Hoenicke.
70 Copyright·©·1995–96·Jim·Nelson.59 Copyright·©·1995–96·Jim·Nelson.
71 Copyright·©·2001–2014·Jochen_Hoenicke.60 Copyright·©·2001–2014·Jochen_Hoenicke.
72 Permission·to·reproduce·and·distribute·this·hypertext·document·granted61 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
73 according·to·terms·described·in·the·License_section.62 according·to·terms·described·in·the·License_section.