237 KB
/srv/reproducible-results/rbuild-debian/r-b-build.m2M1qCGa/b1/htp_1.19-8_amd64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.m2M1qCGa/b2/htp_1.19-8_amd64.changes
264 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·e4b70b64acc73676cc0d05d5d8894aa3·70480·debug·optional·htp-dbgsym_1.19-8_amd64.deb1 ·e4b70b64acc73676cc0d05d5d8894aa3·70480·debug·optional·htp-dbgsym_1.19-8_amd64.deb
2 ·6e395f61e6ea4c54ffa238fbeb151473·117844·web·optional·htp_1.19-8_amd64.deb2 ·a218775f529c0bffc52e82defd8d43f0·117620·web·optional·htp_1.19-8_amd64.deb
237 KB
htp_1.19-8_amd64.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·····3612·2020-06-14·23:21:19.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3612·2020-06-14·23:21:19.000000·control.tar.xz
3 -rw-r--r--···0········0········0···114040·2020-06-14·23:21:19.000000·data.tar.xz3 -rw-r--r--···0········0········0···113816·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:·amd643 Architecture:·amd64
4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>
5 Installed-Size:·6655 Installed-Size:·650
6 Depends:·libc6·(>=·2.34)6 Depends:·libc6·(>=·2.34)
7 Section:·web7 Section:·web
8 Priority:·optional8 Priority:·optional
9 Homepage:·http://htp.sourceforge.net9 Homepage:·http://htp.sourceforge.net
10 Description:·nice·HTML·pre-processor10 Description:·nice·HTML·pre-processor
11 ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool11 ·htp·is·an·HTML·pre-processor.·It·is·designed·to·be·a·flexible·authoring·tool
12 ·that·can·easily·be·integrated·into·the·HTML·design·process.12 ·that·can·easily·be·integrated·into·the·HTML·design·process.
48.0 B
./md5sums
30.0 B
./md5sums
Files differ
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)····68008·2020-06-14·23:21:19.000000·./usr/bin/htp4 -rwxr-xr-x···0·root·········(0)·root·········(0)····68008·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)·····9211·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html8 -rw-r--r--···0·root·········(0)·root·········(0)·····9721·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html
9 -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp9 -rw-r--r--···0·root·········(0)·root·········(0)·····1418·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.htp
10 -rw-r--r--···0·root·········(0)·root·········(0)·····9462·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html10 -rw-r--r--···0·root·········(0)·root·········(0)·····7945·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)····15768·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html12 -rw-r--r--···0·root·········(0)·root·········(0)····14772·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html
13 -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp13 -rw-r--r--···0·root·········(0)·root·········(0)·····1075·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.htp
14 -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html14 -rw-r--r--···0·root·········(0)·root·········(0)·····4763·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.html
15 -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp15 -rw-r--r--···0·root·········(0)·root·········(0)······737·2020-06-14·23:21:19.000000·./usr/share/doc/htp/bugs.htp
16 -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz16 -rw-r--r--···0·root·········(0)·root·········(0)······878·2020-06-14·23:21:19.000000·./usr/share/doc/htp/changelog.Debian.gz
17 -rw-r--r--···0·root·········(0)·root·········(0)····11445·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html17 -rw-r--r--···0·root·········(0)·root·········(0)····10826·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)····17577·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html20 -rw-r--r--···0·root·········(0)·root·········(0)····11730·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)····11172·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html39 -rw-r--r--···0·root·········(0)·root·········(0)·····8380·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)····18167·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html41 -rw-r--r--···0·root·········(0)·root·········(0)····14331·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)····10541·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html48 -rw-r--r--···0·root·········(0)·root·········(0)·····9661·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)····12689·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html50 -rw-r--r--···0·root·········(0)·root·········(0)····10093·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)····11448·2020-06-14·23:21:19.000000·./usr/share/doc/htp/img.html52 -rw-r--r--···0·root·········(0)·root·········(0)·····9052·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)·····9646·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html54 -rw-r--r--···0·root·········(0)·root·········(0)·····8905·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)····13947·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html67 -rw-r--r--···0·root·········(0)·root·········(0)····19077·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)·····8471·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)·····8851·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html73 -rw-r--r--···0·root·········(0)·root·········(0)·····8227·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)·····8577·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html86 -rw-r--r--···0·root·········(0)·root·········(0)·····7959·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)····10244·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html88 -rw-r--r--···0·root·········(0)·root·········(0)·····9055·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)····10372·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html111 -rw-r--r--···0·root·········(0)·root·········(0)····11806·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)····11961·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html115 -rw-r--r--···0·root·········(0)·root·········(0)····15240·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)····10758·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html117 -rw-r--r--···0·root·········(0)·root·········(0)····13804·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/htp.htp122 -rw-r--r--···0·root·········(0)·root·········(0)······235·2020-06-14·17:36:12.000000·./usr/share/doc-base/htp.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/
7.66 KB
./usr/share/doc/htp/alttext.html
    
Offset 114, 33 lines modifiedOffset 114, 37 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br>121 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br>
122 &nbsp;·...·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span>&nbsp;...<br> 
123 <span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
124 <br>123 <br>
125 </code></p>124 </code></p>
126 <h2>synopsis</h2>125 <h2>synopsis</h2>
127 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A126 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A
128 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.127 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.
129 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the128 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the
130 filename·is·considered·in·all·comparisons.129 filename·is·considered·in·all·comparisons.
131 <p>130 <p>
132 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT131 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT
133 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to132 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to
134 be·overridden·on·specific·images·and·default·text·on·all·others.133 be·overridden·on·specific·images·and·default·text·on·all·others.
135 <p>134 <p>
136 For·example:135 For·example:
137 ··<p><code>136 ··<p><code>
138 <span·class="comment">&lt;!---·comment·---&gt;</span><br>137 <span·class="comment">&lt;!---··This·comment·doesn't·appear·in·the·HTML·file·---&gt;</span><br>
139 <br>138 <br>
 139 &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>
 140 &nbsp;·contents·of·b:·&nbsp;·b·is·expanded·at·time·0.<br>
 141 &nbsp;·&nbsp;·c·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·1.<br>
 142 &nbsp;·&nbsp;·d·is·expanded·at·time·1;·&nbsp;·a·is·expanded·at·time·2.<br>
 143 &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>
140 </code></p>144 </code></p>
141 <p>145 <p>
142 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT146 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT
143 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not147 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not
144 changed.148 changed.
145 <p>149 <p>
146 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,150 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,
4.13 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 38 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]]def·name="tagname"·[option="option1·[option2·...]"·]·[global]
 5  Introduction·[expand]>
 6  License······<[[ref]]/def>
 7  Tutorial
 8  Usage········*****·synopsis·*****
 9  HTP·Tags·····ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag·with·a·SRC·matching·the
 10  [>]·ALTTEXT··ALTTEXT·NAME.·Since·relative·paths·can·be·used·to·point·to·the·same·image,
 11   ··BLOCK····only·the·filename·is·considered·in·all·comparisons.
 12   ··BLOCKDEF·When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT
4  Introduction···············<[[ref]]blockdef·name="tagname"·[option="option1 
5  License····················[option2·...]"·]·[global]·[expand]> 
6  Tutorial··················· ·...·<[[ref]]use·block> ... 
7  Usage······················<[[ref]]/blockdef> 
8  HTP·Tags 
9  [>]·ALTTEXT················*****·synopsis·***** 
10   ··BLOCK··················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag 
11   ··BLOCKDEF···············with·a·SRC·matching·the·ALTTEXT·NAME.·Since 
12   ··DEF····················relative·paths·can·be·used·to·point·to·the·same 
13   ··FILE···················image,·only·the·filename·is·considered·in·all 
14   ··IF·····················comparisons. 
15   ··INC····················When·an·IMG·tag·with·a·matching·source·is 
16   ··IMG····················encountered,·htp·will·add·an·ALT·attribute·only·if 
17   ··IMAGEURL···············one·is·not·already·present.·This·allows·for·ALT13   ··DEF······attribute·only·if·one·is·not·already·present.·This·allows·for·ALT·text·to
18   ··OPT····················text·to·be·overridden·on·specific·images·and 
19   ··OUTPUT·················default·text·on·all·others. 
20   ··QUOTE··················For·example: 
21   ··SET····················<!---·comment·---> 
22   ··UNDEF14   ··FILE·····be·overridden·on·specific·images·and·default·text·on·all·others.
 15   ··IF·······For·example:
 16   ··INC······<!---·This·comment·doesn't·appear·in·the·HTML·file·--->
 17   ··IMG
 18   ··IMAGEURL· ·contents·of·a:· ·a·is·expanded·at·time·<[[ref]]use·time>.
 19   ··OPT······ ·contents·of·b:· ·b·is·expanded·at·time·0.
 20   ··OUTPUT··· · ·c·is·expanded·at·time·1;· ·a·is·expanded·at·time·1.
 21   ··QUOTE···· · ·d·is·expanded·at·time·1;· ·a·is·expanded·at·time·2.
 22   ··SET······ · ·e·is·expanded·at·time·2;· ·a·is·defined·for·the·2nd·time·<[[ref]]use
 23   ··UNDEF····time>.
23   ··UNSET··················An·ALTTEXT·tag·with·a·name·but·no·text·attribute24   ··UNSET····An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT·mapping
24   ··USE,_$·················removes·any·ALT·mapping·for·this·image.·Successing 
25   ··WHILE··················IMG·tags·with·a·matching·SRC·name·are·not·changed.25   ··USE,_$···for·this·image.·Successing·IMG·tags·with·a·matching·SRC·name·are·not
 26   ··WHILE····changed.
26   ··<!---··················Since·this·is·useful·for·an·image·used·throughout27   ··<!---····Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,
 28  History······ALTTEXT·is·most·appropriate·in·an·include_file·or·a·default_file.
 29  Wish_list····In·addition·to·ALTTEXT,·htp·can·also·automatically·add·WIDTH·and·HEIGHT
 30  Bugs·········attributes·to·IMG·tags.
27  History····················a·set·of·documents,·ALTTEXT·is·most·appropriate·in 
28  Wish_list··················an·include_file·or·a·default_file. 
29  Bugs·······················In·addition·to·ALTTEXT,·htp·can·also·automatically 
30 ·····························add·WIDTH·and·HEIGHT·attributes·to·IMG·tags. 
  
  
  
  
  
  
  
Offset 50, 17 lines modifiedOffset 50, 18 lines modified
  
  
50  page_source50  page_source
51  htp_project51  htp_project
52  htp_homepage52  htp_homepage
53 hosted·by53 hosted·by
54 Sourceforge54 Sourceforge
55 HTML·coding·[Powered_by55 HTML·coding
 56 [Powered_by
56 htp]57 htp]
57 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/58 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
58 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.59 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
59 ·····Maintainers:·Jochen_Hoenicke.60 ·····Maintainers:·Jochen_Hoenicke.
60 Copyright·©·1995–96·Jim·Nelson.61 Copyright·©·1995–96·Jim·Nelson.
61 Copyright·©·2001–2014·Jochen_Hoenicke.62 Copyright·©·2001–2014·Jochen_Hoenicke.
62 Permission·to·reproduce·and·distribute·this·hypertext·document·granted63 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms
63 according·to·terms·described·in·the·License_section.64 described·in·the·License_section.
64 last·updated·Sat·May·16,·201565 last·updated·Sat·May·16,·2015
5.11 KB
./usr/share/doc/htp/block.html
    
Offset 114, 24 lines modifiedOffset 114, 16 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:·46,·SHA:·0ff5d8d8937dfac2ca9aeec80933f1b3b39e9404952ecfbc793e1ae0e2883768·...·]&gt;</span><br>121 <span·class="comment">&lt;!---·comment·---&gt;</span><br>
122 <br>122 <br>
123 &nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>&gt;</span><br> 
124 &nbsp;·becomes·this·after·processing:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>&gt;</span><br> 
125 <br> 
126 &nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>&gt;</span><br> 
127 &nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br> 
128 <br> 
129 &nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>&gt;</span><br> 
130 &nbsp;·remains·unchanged.<br> 
131 </code></p>123 </code></p>
132 <h2>synopsis</h2>124 <h2>synopsis</h2>
133 <P>125 <P>
134 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which126 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which
135 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be127 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be
136 multi-line·definitions.128 multi-line·definitions.
137 </P>129 </P>
3.05 KB
html2text {}
    
Offset 1, 62 lines modifiedOffset 1, 54 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<!---·comment·--->
 5  License
 6  Tutorial···················*****·synopsis·*****
 7  Usage······················BLOCK·and·/BLOCK·are·used·to·create·block·macros,
 8  HTP·Tags···················which·are·similar·in·use·to·SET·macros,·but·can·be
 9   ··ALTTEXT················multi-line·definitions.
 10  [>]·BLOCK··················Any·text·and·formatting·may·be·set·inside·the
 11   ··BLOCKDEF···············block.·You·can·use·any·htp·or·user·defined·metatag
 12   ··DEF····················including·FILE_INCLUDE.·The·metatags·won't·be
 13   ··FILE···················expanded·before·the·block·is·USEd·except·if·you
 14   ··IF·····················give·the·EXPAND·parameter.
 15   ··INC····················The·block·macro·is·dereferenced·(expanded)·with
 16   ··IMG····················the·USE_tag_or_the_'$'_operator.·See·the·notes·on
 17   ··IMAGEURL···············the·USE·tag·on·how·to·pass·parameters·to·a·block
 18   ··OPT····················macro.
 19   ··OUTPUT
 20   ··QUOTE
 21   ··SET
 22   ··UNDEF
 23   ··UNSET
 24   ··USE,_$
4 Contents······· ·<[[ref]]alttext·name="logo.gif"·text="Company·logo"> 
5  Introduction 
6  License······ ·this·line:·<[[ref]]img·src="logo.gif"> 
7  Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company 
8  Usage········logo"> 
9  HTP·Tags 
10   ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> 
11  [>]·BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it 
12   ··BLOCKDEF 
13   ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more 
14   ··FILE·····information!"> 
15   ··IF······· ·remains·unchanged. 
16   ··INC······*****·synopsis·***** 
17   ··IMG······BLOCK·and·/BLOCK·are·used·to·create·block·macros,·which·are·similar·in 
18   ··IMAGEURL·use·to·SET·macros,·but·can·be·multi-line·definitions. 
19   ··OPT······Any·text·and·formatting·may·be·set·inside·the·block.·You·can·use·any·htp 
20   ··OUTPUT···or·user·defined·metatag·including·FILE_INCLUDE.·The·metatags·won't·be 
21   ··QUOTE····expanded·before·the·block·is·USEd·except·if·you·give·the·EXPAND 
22   ··SET······parameter. 
23   ··UNDEF····The·block·macro·is·dereferenced·(expanded)·with·the·USE_tag_or_the_'$' 
24   ··UNSET····operator.·See·the·notes·on·the·USE·tag·on·how·to·pass·parameters·to·a 
25   ··USE,_$···block·macro. 
26   ··WHILE25   ··WHILE
27   ··<!---26   ··<!---
28  History27  History
29  Wish_list28  Wish_list
30  Bugs29  Bugs
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
31  page_source30  page_source
32  htp_project31  htp_project
33  htp_homepage32  htp_homepage
34 hosted·by33 hosted·by
35 Sourceforge34 Sourceforge
 35 HTML·coding·[Powered_by
36 HTML·coding 
37 [Powered_by 
38 htp]36 htp]
39 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/37 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
40 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.38 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
41 ·····Maintainers:·Jochen_Hoenicke.39 ·····Maintainers:·Jochen_Hoenicke.
42 Copyright·©·1995–96·Jim·Nelson.40 Copyright·©·1995–96·Jim·Nelson.
43 Copyright·©·2001–2014·Jochen_Hoenicke.41 Copyright·©·2001–2014·Jochen_Hoenicke.
44 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to42 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
45 terms·described·in·the·License_section.43 according·to·terms·described·in·the·License_section.
46 last·updated·Sat·May·16,·201544 last·updated·Sat·May·16,·2015
12.1 KB
./usr/share/doc/htp/blockdef.html
    
Offset 114, 38 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 &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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">o[·...·truncated·by·diffoscope;·len:·327,·SHA:·c9ae44561b45443565759ced58239fbbcc1ae14f57a2ed4c6e49618a8a9f9460·...·]</span>&gt;</span><br>
 122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
122 <br>123 <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>124 ><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> 
132 <h2>synopsis</h2> 
133 <strong>BLOCKDEF</strong>·creates·block·<A 
134 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·block 
136 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and 
137 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored 
138 in·the·block·macro·named·BLOCK. 
139 <P>·For·example:</P> 
140 ··<p><code> 
141 &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> 
142 &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> 
143 &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> 
144 &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> 
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>·<span·class="htp-attrib">name</span>=<span·class="htp-value">b</span>·<span·class="htp-attrib">expand</span>&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>
146 &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>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>
147 &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="block.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/block</a>&gt;</span><br>
148 &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>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>
149 &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>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>
150 &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>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>
151 &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>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>
Offset 163, 14 lines modifiedOffset 143, 30 lines modified
163 &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>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>
164 &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>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>
165 &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>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>
166 &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>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>
167 &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>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>
168 &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>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>
169 </code></p>149 </code></p>
 150 <h2>synopsis</h2>
 151 <strong>BLOCKDEF</strong>·creates·block·<A
 152 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it
 153 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block
 154 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and
 155 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored
 156 in·the·block·macro·named·BLOCK.
 157 <P>·For·example:</P>
 158 ··<p><code>
 159 &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>
 160 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>&gt;</span><br>
 161 &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>
 162 <br>
 163 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;centered&gt;</span><br>
 164 &nbsp;·&nbsp;·This·text·is·centered.<br>
 165 </code></p>
170 <p>166 <p>
171 All·block·metatags·have·the·implicit·option·<a167 All·block·metatags·have·the·implicit·option·<a
172 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents168 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents
173 of·the·block·before·the·definition·is·expanded.169 of·the·block·before·the·definition·is·expanded.
174 </p>170 </p>
175 <p>171 <p>
176 A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in·the172 A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in·the
4.54 KB
html2text {}
    
Offset 1, 62 lines modifiedOffset 1, 57 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"> 
7  Tutorial····· ·becomes·this·after·processing:·<[[ref]]img·src="logo.gif"·alt="Company4 Contents·······<[[ref]]def·name="tagname"·[option="option1·[option2·...]"·]·[global]
 5  Introduction·[expand]>
 6  License······<[[ref]]/def>
 7  Tutorial
8  Usage········logo">8  Usage········>
 9  HTP·Tags····· ·<[[ref]]block·name=b·expand>
 10   ··ALTTEXT·· · ·b·is·expanded·at·time·<[[ref]]use·time>.
 11   ··BLOCK···· ·<[[ref]]/block>
 12  [>]·BLOCKDEF· ·<[[ref]]set·time="1">
9  HTP·Tags 
10   ··ALTTEXT·· ·this·line:·<[[ref]]img·src="../image/logo.gif"> 
11   ··BLOCK···· ·will·also·have·an·ALT·attribute·appended·to·it 
12  [>]·BLOCKDEF 
13   ··DEF······ ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more 
14   ··FILE·····information!"> 
15   ··IF······· ·remains·unchanged. 
16   ··INC······*****·synopsis·***** 
17   ··IMG······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···· ·<[[ref]]set·time="0">13   ··DEF······ ·<[[ref]]use·a>
 14   ··FILE····· ·<[[ref]]use·b>
 15   ··IF······· ·contents·of·a:·<[[ref]]use·a·noexpand>
 16   ··INC······ ·contents·of·b:·<[[ref]]use·b·noexpand>
 17   ··IMG······ ·<[[ref]]block·name=c·expand>
 18   ··IMAGEURL· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a>
 19   ··OPT······ ·<[[ref]]/block>
 20   ··OUTPUT··· ·<[[ref]]block·name=d·expand>
 21   ··QUOTE···· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
 22   ··SET······ ·<[[ref]]/block>
24   ··UNSET···· ·<[[ref]]block·name=a>23   ··UNDEF···· ·<[[ref]]block·name=e>
25   ··USE,_$··· · ·a·is·expanded·at·time·<[[ref]]use·time>.24   ··UNSET···· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand>
26   ··WHILE···· ·<[[ref]]/block>25   ··USE,_$··· ·<[[ref]]/block>
 26   ··WHILE···· ·<[[ref]]set·time="2">
27   ··<!---···· ·<[[ref]]block·name=b·expand>27   ··<!---···· ·<[[ref]]block·name=a>
28  History······ · ·b·is·expanded·at·time·<[[ref]]use·time>.28  History······ · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>.
29  Wish_list···· ·<[[ref]]/block>29  Wish_list···· ·<[[ref]]/block>
30  Bugs········· ·<[[ref]]set·time="1">30  Bugs········· ·<[[ref]]use·c>
31 ··············· ·<[[ref]]use·a> 
32 ··············· ·<[[ref]]use·b> 
33 ··············· ·contents·of·a:·<[[ref]]use·a·noexpand> 
34 ··············· ·contents·of·b:·<[[ref]]use·b·noexpand> 
35 ··············· ·<[[ref]]block·name=c·expand> 
36 ··············· · ·c·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a> 
37 ··············· ·<[[ref]]/block> 
38 ··············· ·<[[ref]]block·name=d·expand> 
39 ··············· · ·d·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> 
40 ··············· ·<[[ref]]/block> 
41 ··············· ·<[[ref]]block·name=e> 
42 ··············· · ·e·is·expanded·at·time·<[[ref]]use·time>;·<[[ref]]use·a·noexpand> 
43 ··············· ·<[[ref]]/block> 
44 ··············· ·<[[ref]]set·time="2"> 
45 ··············· ·<[[ref]]block·name=a> 
46 ··············· · ·a·is·defined·for·the·2nd·time·<[[ref]]use·time>. 
47 ··············· ·<[[ref]]/block> 
48 ··············· ·<[[ref]]use·c> 
49 ··············· ·<[[ref]]use·d>31 ··············· ·<[[ref]]use·d>
50 ··············· ·<[[ref]]use·e>32 ··············· ·<[[ref]]use·e>
 33 ···············*****·synopsis·*****
 34 ···············BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it
 35 ···············creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block
 36 ···············as·additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</
 37 ···············tagname>.·The·contents·of·this·block·are·automatically·stored·in·the
 38 ···············block·macro·named·BLOCK.
 39 ···············For·example:
 40 ··············· · ·<[[ref]]def·name="centered">
 41 ··············· · ·<p·align=center>
 42 ··············· · ·<[[ref]]/def>
  
 43 ··············· · ·<centered>
 44 ··············· · ·This·text·is·centered.
51 ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to45 ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to
52 ···············expand·the·contents·of·the·block·before·the·definition·is·expanded.46 ···············expand·the·contents·of·the·block·before·the·definition·is·expanded.
53 ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in47 ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed
54 ···············the·metatag·section.48 ···············in·the·metatag·section.
  
  
  
  
  
  
  
11.5 KB
./usr/share/doc/htp/comment.html
    
Offset 114, 43 lines modifiedOffset 114, 46 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="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·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>&gt;</span><br>
121 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"tagname"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">option</span>=<span·class="htp-string">"option1·<span·class="ebnf">[</span>option2·...<span·class="ebnf">]</span>"</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">global</span><span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">expand</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
123 <br>122 <br>
124 </code></p>123 </code></p>
125 <h2>synopsis</h2>124 <h2>synopsis</h2>
126 <p>125 <p>
127 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful126 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful
128 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.127 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.
129 Example:128 Example:
130 </p>129 </p>
131 ··<p><code>130 ··<p><code>
132 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="htp-attrib">(output</span>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>&gt;</span><br> 
133 <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> 
134 <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> 
135 <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> 
136 <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> 
137 <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> 
138 <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>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>
139 <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>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=[·...·truncated·by·diffoscope;·len:·15,·SHA:·817684238dafe541b1bb738a3247088517fbf9cf0f34b63aa18b6bf96fcfc950·...·]"</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>140 <br>
 141 &nbsp;paragraph<br>
 142 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br>
 143 &nbsp;paragraph<br>
141 </code></p>144 </code></p>
142 <p>145 <p>
143 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you146 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you
144 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something147 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something
145 like·this:148 like·this:
146 </p>149 </p>
147 ··<p><code>150 ··<p><code>
148 <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> 
149 <br>151 &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<[·...·truncated·by·diffoscope;·len:·150,·SHA:·52a877f809b4eded8fe2ae68b732227341f3304b8f237ab59de52d7b3122af23·...·]<br>
 152 &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>
150 </code></p>153 </code></p>
151 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the154 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the
152 reason·why·you·don't·want·to·include·this·block</p>155 reason·why·you·don't·want·to·include·this·block</p>
153 <p>156 <p>
154 </td>157 </td>
155 </tr>158 </tr>
156 <tr>159 <tr>
4.0 KB
html2text {}
    
Offset 1, 43 lines modifiedOffset 1, 40 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·<!---·******2 ******·htp·on-line·reference·:·<!---·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents····*****·syntax·*****
 4  Introduction·······<[[ref]]INC·macroname1="increment1"
 5  License············[macroname2="increment2"·...·]·[GLOBAL]>
 6  Tutorial
4  Introduction···············<[[ref]]def·name="tagname"·[option="option1 
5  License····················[option2·...]"·]·[global]·[expand]> 
6  Tutorial···················<[[ref]]/def> 
7  Usage 
8  HTP·Tags···················*****·synopsis·*****7  Usage··············*****·synopsis·*****
9   ··ALTTEXT················This·is·a·simple·comment·that·is·not·included·in8  HTP·Tags···········This·is·a·simple·comment·that·is·not·included·in·the
 9   ··ALTTEXT········output.·This·is·useful·when·commenting·metatags,·since·the
 10   ··BLOCK··········metatags·do·not·appear·the·output·either.·Example:
 11   ··BLOCKDEF······· <[[ref]]def·name="imghr">
 12   ··DEF············ · <table·border="0"·cellspacing="0"·cellpadding="0">
 13   ··FILE··········· · <tr>
 14   ··IF············· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td>
 15   ··INC············ · ·<td·width="95%"·background="midsep.png">&nbsp;</td>
 16   ··IMG············ · ·<td·width=10><[[ref]]img·src="rightsep.png"></td>
 17   ··IMAGEURL······· · </tr>
 18   ··OPT············ · </table>
 19   ··OUTPUT········· <[[ref]]/def>
 20   ··QUOTE
 21   ··SET············ paragraph
 22   ··UNDEF·········· <imghr>
 23   ··UNSET·········· paragraph
10   ··BLOCK··················the·output.·This·is·useful·when·commenting 
11   ··BLOCKDEF···············metatags,·since·the·metatags·do·not·appear·the 
12   ··DEF····················output·either.·Example: 
13   ··FILE···················<[[ref]]file·execute="command-line" 
14   ··IF·····················(output="filename"·|·redirect)·[noerror]> 
15   ··INC····················<[[ref]]file·include="includefilename"·[parameters 
16   ··IMG····················...]> 
17   ··IMAGEURL···············<[[ref]]file·name> 
18   ··OPT····················<[[ref]]file·[·name="filename"·]·size[·= 
19   ··OUTPUT·················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> 
20   ··QUOTE··················<[[ref]]file·[·name="filename"·]·time[·="format" 
21   ··SET····················]> 
22   ··UNDEF··················<[[ref]]file·[·name="filename"·]·date[·="format" 
23   ··UNSET··················]> 
24   ··USE,_$·················<[[ref]]file·search="searchpath"> 
25   ··WHILE··················<[[ref]]file·template="templatefilename"> 
26  [>]·<!--- 
27  History····················Note·that·these·comments·should·not·include·<·or24   ··USE,_$·········Note·that·these·comments·should·not·include·<·or·>,·that
28  Wish_list··················>,·that·is·you·should·not·use·it·to·comment·out 
29  Bugs·······················htp·code.·For·that·purpose·use·something·like 
30 ·····························this: 
31 ·····························<[[ref]]img·src="filename"·...> 
 25   ··WHILE··········is·you·should·not·use·it·to·comment·out·htp·code.·For·that
 26  [>]·<!---··········purpose·use·something·like·this:
 27  History············ · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 28  Wish_list··········email="jnelson@crl.com">
 29  Bugs··············· · ·This·tag·will·fail:·<[[ref]]USE·name>
32 ·····························Make·sure·that·the·variable·is·never·defined·and30 ·····················Make·sure·that·the·variable·is·never·defined·and·xyz
33 ·····························xyz·should·be·the·reason·why·you·don't·want·to31 ·····················should·be·the·reason·why·you·don't·want·to·include·this
34 ·····························include·this·block32 ·····················block
  
  
  
  
  
  
  
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·[Powered_by 
61 htp]57 HTML·coding
 58 [Powered_by_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.
20.5 KB
./usr/share/doc/htp/def.html
    
Offset 114, 87 lines modifiedOffset 114, 53 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="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·class="htp-string">"increment2"</span>·<span·class="htp-attrib">...</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">GLOBAL</span><span·class="ebnf">]</span>&gt;</span><br>
 122 <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> 
149 </code></p>123 </code></p>
150 <h2>synopsis</h2>124 <h2>synopsis</h2>
151 <p>125 <p>
152 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a126 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a
153 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to127 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to
154 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>128 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>
155 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.129 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.
156 For·example:130 For·example:
157 </p>131 </p>
158 ··<p><code>132 ··<p><code>
159 <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">[NOT]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br>133 <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">macroname</span>&gt;</span><br>
 134 <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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br>
160 &nbsp;·&nbsp;·block·#1<br> 
161 [<br> 
162 <span·class="htp-tag">&lt;ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br> 
163 &nbsp;·&nbsp;·block·#2<br> 
164 ...<br> 
165 ]<br> 
166 [<br> 
167 <span·class="htp-tag">&lt;ELSE&gt;</span><br> 
168 &nbsp;·&nbsp;·block·#3<br> 
169 ]<br> 
170 <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> 
171 <br>135 <br>
172 </code></p>136 </code></p>
173 <P>137 <P>
174 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to138 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
175 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A139 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A
176 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster140 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster
177 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing141 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing
178 tag·with·a·preceding·slash.·For·example:142 tag·with·a·preceding·slash.·For·example:
179 </P>143 </P>
180 ··<p><code>144 ··<p><code>
 145 &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>
181 <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> 
182 <br> 
183 </code></p>146 </code></p>
184 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,147 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,
185 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>148 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>
186 <P>149 <P>
187 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were150 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were
188 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with151 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with
189 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their152 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their
190 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)153 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)
191 </P>154 </P>
192 ··<p><code>155 ··<p><code>
 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">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br>
 157 &nbsp;·&nbsp;·...<br>
193 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="htp-string">"-1"</span>&gt;</span><br>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">i</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>
194 </code></p>160 </code></p>
195 <P>161 <P>
196 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is162 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is
197 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are163 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are
198 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the164 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the
199 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a165 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a
200 parameter·is·required,·simply·expand·it·without·first·checking.··When166 parameter·is·required,·simply·expand·it·without·first·checking.··When
9.48 KB
html2text {}
    
Offset 1, 95 lines modifiedOffset 1, 72 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_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]INC·macroname1="increment1"
 5  License····················[macroname2="increment2"·...·]·[GLOBAL]>
 6  Tutorial
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·*****7  Usage······················*****·synopsis·*****
33 ···············DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates·new8  HTP·Tags···················DEF·creates·metatags,·which·is·a·fancy·way·of
34 ···············tags.·The·mechanism·is·very·similar·to·BLOCK·macros,·except·that·the9   ··ALTTEXT················saying·it·creates·new·tags.·The·mechanism·is·very
 10   ··BLOCK··················similar·to·BLOCK·macros,·except·that·the·USE·tag
35 ···············USE·tag·is·not·used·to·expand·them.·Instead,·they·are·expanded·by11   ··BLOCKDEF···············is·not·used·to·expand·them.·Instead,·they·are
36 ···············their·own·name.·For·example:12  [>]·DEF····················expanded·by·their·own·name.·For·example:
 13   ··FILE···················<[[ref]]unset·macroname>
 14   ··IF·····················<[[ref]]unset·macroname1·macroname2·...·>
 15   ··INC
37 ···············<[[ref]]IF·[NOT]·conditional> 
38 ··············· · ·block·#1 
39 ···············[ 
40 ···············<ELSEIF·[NOT]·conditional> 
41 ··············· · ·block·#2 
42 ···············... 
43 ···············] 
44 ···············[ 
45 ···············<ELSE> 
46 ··············· · ·block·#3 
47 ···············] 
48 ···············<[[ref]]/IF> 
  
49 ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to16   ··IMG····················Some·metatags·will·require·an·opening·and·closing
 17   ··IMAGEURL···············tag·(comparable·to
50 ···············and18   ··OPT····················and
51 ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another·slightly19   ··OUTPUT·················).·In·this·case,·you·should·use·the·BLOCKDEF
 20   ··QUOTE··················macro.·Another·slightly·faster·alternative·is·to
52 ···············faster·alternative·is·to·use·two·metatags,·the·opening·tag·and·the21   ··SET····················use·two·metatags,·the·opening·tag·and·the·closing
53 ···············closing·tag·with·a·preceding·slash.·For·example:22   ··UNDEF··················tag·with·a·preceding·slash.·For·example:
 23   ··UNSET·················· · ·<[[ref]]unset·email_addr>
54 ···············<[[ref]]INC·macroname1="increment1"·[macroname2="increment2"·...·] 
55 ···············[GLOBAL]> 
  
56 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for·matching24   ··USE,_$·················You·should·really·use·BLOCKDEF,·though,·as·it·will
57 ···············end·tag.·It·is·not·that·slower.25   ··WHILE··················check·for·matching·end·tag.·It·is·not·that·slower.
58 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it26   ··<!---··················Options·can·be·passed·to·a·metatag,·which·can·then
59 ···············were·a·SET·macro.·Option·names·are·parameterized·with·the·OPTION27  History····················expand·as·if·it·were·a·SET·macro.·Option·names·are
 28  Wish_list··················parameterized·with·the·OPTION·attribute.·Multiple
60 ···············attribute.·Multiple·options·can·be·listed·by·separating·their·name29  Bugs·······················options·can·be·listed·by·separating·their·name
61 ···············with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)30 ·····························with·a·space·(which·therefore·requires·they·be
62 ··············· · ·<[[ref]]INC·i="1"·j="-1">31 ·····························surrounded·by·quotes.)
 32 ····························· ·<[[ref]]WHILE·NOT·i="10">
 33 ····························· · ·...
 34 ····························· · ·<[[ref]]INC·i>
 35 ····························· ·<[[ref]]/WHILE>
63 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is36 ·····························htp·will·do·very·specific·checking·of·parameters
64 ···············invoked.·htp·assumes·that·all·parameter·options·to·the·metatag·are37 ·····························when·a·metatag·is·invoked.·htp·assumes·that·all
 38 ·····························parameter·options·to·the·metatag·are·optional.
65 ···············optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the39 ·····························This·is·why·the·HEADERIMG·definition·uses·IF·to
66 ···············SIZE·option·is·defined·before·expanding·it·in·the·block.·If·a40 ·····························verify·the·SIZE·option·is·defined·before·expanding
 41 ·····························it·in·the·block.·If·a·parameter·is·required,
67 ···············parameter·is·required,·simply·expand·it·without·first·checking.·When42 ·····························simply·expand·it·without·first·checking.·When·htp
68 ···············htp·expands·the·metatag·and·the·macro·is·not·defined,·it·will·halt43 ·····························expands·the·metatag·and·the·macro·is·not·defined,
69 ···············processing·and·complain·with·an·error·message·and·the·required·macro44 ·····························it·will·halt·processing·and·complain·with·an·error
 45 ·····························message·and·the·required·macro·name.·Normally·htp
70 ···············name.·Normally·htp·will·not·allow·parameters·not·listed·in·the·OPTION46 ·····························will·not·allow·parameters·not·listed·in·the·OPTION
71 ···············attribute·to·be·added·to·the·tag.·This·is·why·the·third·invocation·of47 ·····························attribute·to·be·added·to·the·tag.·This·is·why·the
 48 ·····························third·invocation·of·HEADERIMG·will·fail.·There·is
72 ···············HEADERIMG·will·fail.·There·is·no·ALT·parameter·specified·in·the·OPTION49 ·····························no·ALT·parameter·specified·in·the·OPTION
73 ···············attribute.·However,·there·is·the·special·option·*,·which·matches·every50 ·····························attribute.·However,·there·is·the·special·option·*,
74 ···············other·parameter.·It·should·be·used·to·pass·all·other·options·to 
75 ···············another·tag.51 ·····························which·matches·every·other·parameter.·It·should·be
 52 ·····························used·to·pass·all·other·options·to·another·tag.
76 ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both·open53 ·····························Metatags·can·be·removed·by·using·the·UNDEF·tag.
77 ···············and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will·not 
78 ···············remove·both.54 ·····························Note·that·both·open·and·close·tags·must·be·removed
 55 ·····························with·UNDEF.·Removing·one·will·not·remove·both.
79 ···············Warning:·Although·possible,·def·should·not·be·used·to·override56 ·····························Warning:·Although·possible,·def·should·not·be·used
80 ···············standard·HTML·and·htp·tag·names,·as·this·can·cause·much·confusion·and57 ·····························to·override·standard·HTML·and·htp·tag·names,·as
 58 ·····························this·can·cause·much·confusion·and·unexpected
81 ···············unexpected·results.·The·def·tag·can·even·be·used·to·override·its·own59 ·····························results.·The·def·tag·can·even·be·used·to·override
82 ···············tag·name.·Because·of·the·problems·this·can·cause,·its·highly 
83 ···············recommended·to·not·override·known·tag·names. 
84 ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of·the 
85 ···············tutorial.60 ·····························its·own·tag·name.·Because·of·the·problems·this·can
 61 ·····························cause,·its·highly·recommended·to·not·override
 62 ·····························known·tag·names.
 63 ·····························You·can·find·some·other·examples·in·the·[
 64 ·····························[ref]]metatag·section·of·the·tutorial.
  
  
  
  
  
  
  
Offset 107, 18 lines modifiedOffset 84, 17 lines modified
  
  
107  page_source84  page_source
108  htp_project85  htp_project
109  htp_homepage86  htp_homepage
Max diff block lines reached; 584/9686 bytes (6.03%) of diff not shown.
11.7 KB
./usr/share/doc/htp/expand.html
    
Offset 98, 28 lines modifiedOffset 98, 21 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><span·class="comment">&lt;!---··This·comment·doesn't·appear·in·the·HTML·file·---&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>=<span·class="htp-string">"filename"</span>·<span·class="htp-attrib">|</span>·<span·class="htp-attrib">redirect)</span>·<span·class="htp-attrib">[noerror]</span>&gt;</span><br> 
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> 
113 <font·size="-2">&nbsp;9.·</font><br> 
114 </code></p>106 </code></p>
115 This·produces·the·following:107 This·produces·the·following:
116 ··<p><code>108 ··<p><code>
117 <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>109 <span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">if</a>·<span·class="htp-attrib">disabled_because_xyz</span>&gt;</span><br>
118 <br>110 &nbsp;·...<br>
 111 <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>
119 </code></p>112 </code></p>
120 <P>113 <P>
121 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a114 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·expanded115 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·it116 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.117 is·used,·while·the·contents·of·b·are·already·expanded.
125 </P>118 </P>
7.23 KB
html2text {}
    
Offset 1, 76 lines modifiedOffset 1, 73 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·global·and·expand·******2 ******·htp·on-line·reference·:·global·and·expand·******
3 Table_of·········*****·The·global·attribute·*****3 Table_of_Contents··*****·The·global·attribute·*****
4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current4  Introduction·····Normally·when·you·define·a·macro·it·is·only·defined·in·the
5  Introduction···scope.·A·scope·is·for·example·the·definition·of·a·metatag.·Once·the 
6  License········definition·is·expanded·and·the·metatag·has·finished·the·macro·is 
7  Tutorial·······automatically·removed.·In·some·cases·you·want·to·define·a·macro·inside·a5  License··········current·scope.·A·scope·is·for·example·the·definition·of·a
 6  Tutorial·········metatag.·Once·the·definition·is·expanded·and·the·metatag
 7  Usage············has·finished·the·macro·is·automatically·removed.·In·some
 8   ··Command-line·cases·you·want·to·define·a·macro·inside·a·metatag·and·use
8  Usage··········metatag·and·use·it·later.·You·can·do·this·with·the·global·attribute·that9   ··Options······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   ··Predefined···you·can·add·to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[
10 ······line·······[ref]]blockdef·tags.11 ······macros·······[ref]]def,·and·[[ref]]blockdef·tags.
11   ··Options····*****·The·expand·attribute·*****12  [>]·global_and···*****·The·expand·attribute·*****
12   ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all 
13 ······macros·····block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp 
14  [>]·global_and·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and13 ······expand·······The·expand·attribute·is·not·a·tag·of·its·own·but·is·an
 14  HTP_Tags·········attribute·of·all·block·tags·even·metatags·defined·with·the
 15  History··········blockdef·macro.·Normally·htp·uses·a·lazy·evaluation
 16  Wish_list········strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros
15 ······expand·····macros·when·the·HTML·document·is·written·not·when·they're·stored·into17  Bugs·············when·the·HTML·document·is·written·not·when·they're·stored
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 ···················into·block·macros.·When·you·use·a·macro·defined·with·the
 19 ···················blockdef·tag·the·html·code·between·the·tags·is·just·copied
 20 ···················literally·into·the·macro·named·block,·without·any·expansion
 21 ···················going·on.
19  Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is22 ···················However,·if·the·block·tag·is·marked·with·the·expand
20 ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something·in·a 
21 ·················block·macro,·that·depends·on·the·current·value·of·another·macro.·This23 ···················modifier·it·is·expanded·immediately.·This·is·useful·if·you
 24 ···················want·to·store·something·in·a·block·macro,·that·depends·on
 25 ···················the·current·value·of·another·macro.·This·other·macro·may·no
22 ·················other·macro·may·no·longer·have·the·correct·value·when·the·macro·is26 ···················longer·have·the·correct·value·when·the·macro·is·expanded.
23 ·················expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are27 ···················Here·is·some·code·that·demonstrate·when·the·htp·tags·are
24 ·················expanded:28 ···················expanded:
 29 ··················· 1.<!---·This·comment·doesn't·appear·in·the·HTML·file·--->
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"> 
35 ················· 9. 
36 ·················This·produces·the·following:30 ···················This·produces·the·following:
37 ·················<[[ref]]img·src="filename"·...> 
 31 ···················<[[ref]]if·disabled_because_xyz>
 32 ··················· ·...
 33 ···················<[[ref]]/if>
38 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are34 ···················When·block·a·and·block·b·are·defined·in·lines·2-7·the
39 ·················taken·literally,·however,·the·contents·for·b·are·already·expanded·so·the35 ···················contents·of·a·are·taken·literally,·however,·the·contents
 36 ···················for·b·are·already·expanded·so·the·macro·time·is·evaluated.
40 ·················macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the37 ···················So·a·is·expanded·when·it·is·used,·while·the·contents·of·b
41 ·················contents·of·b·are·already·expanded.38 ···················are·already·expanded.
42 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute39 ···················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the
43 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show40 ···················noexpand·attribute·which·prevents·the·expansion·of·the
 41 ···················macro·value.·Here·it·is·used·to·show·you·what·the·value·of
44 ·················you·what·the·value·of·the·block·macros·really·is.42 ···················the·block·macros·really·is.
45 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent43 ···················A·more·important·reason·to·use·the·noexpand·attribute·is·to
46 ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy·when44 ···················prevent·double·expansion·and·to·restore·the·original·lazy
47 ·················you·have·to·use·the·expand·attribute·as·for·block·d·in·the·example45 ···················expansion·policy·when·you·have·to·use·the·expand·attribute
 46 ···················as·for·block·d·in·the·example·above.·See·the·section
48 ·················above.·See·the·section·example·in·the·[[ref]]metatag_tutorial.·Rule·of47 ···················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The
49 ·················thumb:·The·use·tags·in·an·expanded·block·should·be·tagged·with·noexpand.48 ···················use·tags·in·an·expanded·block·should·be·tagged·with
 49 ···················noexpand.
  
  
  
  
  
  
  
  
50  page_source50  page_source
51  htp_project51  htp_project
52  htp_homepage52  htp_homepage
53 hosted·by53 hosted·by
54 Sourceforge54 Sourceforge
55 HTML·coding55 HTML·coding
56 [Powered_by56 [Powered_by_htp]
57 htp] 
58 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/57 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
59 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.58 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
60 ·····Maintainers:·Jochen_Hoenicke.59 ·····Maintainers:·Jochen_Hoenicke.
61 Copyright·©·1995–96·Jim·Nelson.60 Copyright·©·1995–96·Jim·Nelson.
62 Copyright·©·2001–2014·Jochen_Hoenicke.61 Copyright·©·2001–2014·Jochen_Hoenicke.
63 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms62 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
64 described·in·the·License_section.63 according·to·terms·described·in·the·License_section.
65 last·updated·Sat·May·16,·201564 last·updated·Sat·May·16,·2015
22.3 KB
./usr/share/doc/htp/file.html
    
Offset 114, 64 lines modifiedOffset 114, 46 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 &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> 
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> 
130 </code></p>128 </code></p>
131 <h2>synopsis</h2>129 <h2>synopsis</h2>
132 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.130 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.
133 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
134 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
135 added·to·the·output·file·as·well.133 added·to·the·output·file·as·well.
136 <P>134 <P>
137 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the135 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
138 following·is·perfectly·acceptable:136 following·is·perfectly·acceptable:
139 ··<p><code>137 ··<p><code>
 138 <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="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>&gt;</span><br>
 139 text·block<br>
 140 <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>
140 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>&gt;</span><br> 
141 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>&gt;</span><br> 
142 <br> 
143 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>&gt;</span><br> 
144 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
145 &nbsp;·(no·URL·replacement).<br> 
146 <br> 
147 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
148 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
149 <br>141 <br>
150 &nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
151 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
152 &nbsp;·will·not·be·added.<br> 
153 <br> 
154 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
155 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
156 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
157 <br> 
158 &nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
159 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
160 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
161 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
162 </code></p>142 </code></p>
163 <P>143 <P>
164 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>144 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>
165 <P>145 <P>
166 To·include·information·about·another·file,·such·as·an·archive·file·or146 To·include·information·about·another·file,·such·as·an·archive·file·or
167 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the147 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
168 type·of·information·to·be·displayed:148 type·of·information·to·be·displayed:
169 ··<p><code>149 ··<p><code>
170 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="h[·...·truncated·by·diffoscope;·len:·15,·SHA:·9b11e2054279385dab0eb9eaa3f7e0c24e5f45d651372a188a49301d354669e6·...·]</span>&gt;</span><br>150 <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">macroname</span>&gt;</span><br>
 151 <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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br>
 152 <br>
171 </code></p>153 </code></p>
172 <P>154 <P>
173 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the155 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
174 information·is·displayed.··In·anything·other·than·byte·format,·the·information156 information·is·displayed.··In·anything·other·than·byte·format,·the·information
175 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number157 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number
176 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional158 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional
177 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no159 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no
Offset 200, 21 lines modifiedOffset 182, 17 lines modified
200 <P>182 <P>
201 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are183 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are
202 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros184 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros
203 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it185 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it
204 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer186 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer
205 available.··So:187 available.··So:
206 ··<p><code>188 ··<p><code>
207 <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>189 <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>
 190 &nbsp;·&nbsp;·block<br>
208 <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>191 <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>
209 <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> 
210 <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> 
211 <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> 
212 <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> 
213 <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> 
214 <br>192 <br>
215 </code></p>193 </code></p>
216 <P>194 <P>
217 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included195 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included
218 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the196 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the
219 second·statement·will·fail.)197 second·statement·will·fail.)
220 <P>198 <P>
12.5 KB
html2text {}
    
Offset 1, 127 lines modifiedOffset 1, 107 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·FILE·******2 ******·htp·on-line·reference·:·FILE·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·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>.
4 Contents······· ·<[[ref]]def·name="bigfont"> 
5  Introduction· · ·<font·size="+4"> 
6  License······ ·<[[ref]]/def> 
7  Tutorial 
8  Usage········ ·<[[ref]]def·name="/bigfont"> 
9  HTP·Tags····· · ·</font> 
10   ··ALTTEXT·· ·<[[ref]]/def> 
11   ··BLOCK 
12   ··BLOCKDEF· ·<bigfont>Some·large·text</bigfont> 
13   ··DEF······*****·synopsis·*****12   ··BLOCKDEF·*****·synopsis·*****
14  [>]·FILE·····FILE·has·several·optional·parameters·of·differing·purpose.·The·output·file's13   ··DEF······FILE·has·several·optional·parameters·of·differing·purpose.·The·output
15   ··IF·······name,·the·current·date·and·time,·and·the·contents·of·another·file·may·be14  [>]·FILE·····file's·name,·the·current·date·and·time,·and·the·contents·of·another·file
16   ··INC······included.·Another·file's·time,·date,·or·size·may·be·added·to·the·output·file15   ··IF·······may·be·included.·Another·file's·time,·date,·or·size·may·be·added·to·the
17   ··IMG······as·well.16   ··INC······output·file·as·well.
18   ··IMAGEURL·As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the17   ··IMG······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
19   ··OPT······following·is·perfectly·acceptable:18   ··IMAGEURL·following·is·perfectly·acceptable:
20   ··OUTPUT··· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
21   ··QUOTE···· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/">19   ··OPT······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]>
 20   ··OUTPUT···text·block
 21   ··QUOTE····<[[ref]]/OUTPUT>
22   ··SET22   ··SET
23   ··UNDEF···· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
24   ··UNSET···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
25   ··USE,_$··· ·(no·URL·replacement). 
26   ··WHILE 
27   ··<!---···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
28  History······ ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.23   ··UNDEF····****·NAME,·TIME,·SIZE·****
 24   ··UNSET····To·include·information·about·another·file,·such·as·an·archive·file·or
 25   ··USE,_$···graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
 26   ··WHILE····type·of·information·to·be·displayed:
 27   ··<!---····<[[ref]]unset·macroname>
 28  History······<[[ref]]unset·macroname1·macroname2·...·>
29  Wish_list29  Wish_list
30  Bugs········· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
31 ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
32 ··············· ·will·not·be·added. 
  
33 ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
34 ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
35 ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
  
36 ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
37 ···············mapped·to 
38 ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
39 ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
40 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
41 ···············****·NAME,·TIME,·SIZE·**** 
42 ···············To·include·information·about·another·file,·such·as·an·archive·file·or·graphic 
43 ···············image,·specify·its·name·with·the·NAME·attribute·followed·by·the·type·of 
44 ···············information·to·be·displayed: 
45 ··············· · ·<[[ref]]INC·i="1"·j="-1"> 
46 ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the30  Bugs·········For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
47 ···············information·is·displayed.·In·anything·other·than·byte·format,·the·information31 ···············information·is·displayed.·In·anything·other·than·byte·format,·the
48 ···············is·displayed·in·floating-point·notation.·The·amount·of·precision·(the·number32 ···············information·is·displayed·in·floating-point·notation.·The·amount·of
49 ···············of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional33 ···············precision·(the·number·of·digits·to·the·right·of·the·decimal·point)·can·be
50 ···············PRECISION·attribute.·The·default·precision·is·zero·(0),·which·means·no34 ···············set·with·the·optional·PRECISION·attribute.·The·default·precision·is·zero
51 ···············fractional·portion·is·displayed.35 ···············(0),·which·means·no·fractional·portion·is·displayed.
52 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept36 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept
53 ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library37 ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library
54 ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually·any38 ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually
55 ···············format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the39 ···············any·format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the
56 ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,·just40 ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,
57 ···············using·05:04:11·PM).41 ···············just·using·05:04:11·PM).
58 ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function42 ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function
59 ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask·an43 ···············strftime()·for·information·on·how·to·build·a·format·string.·If·unsure,·ask
60 ···············experienced·C·programmer·for·help,·or·consider·just·sticking·to·the·default44 ···············an·experienced·C·programmer·for·help,·or·consider·just·sticking·to·the
61 ···············formatting.45 ···············default·formatting.
62 ···············****·INCLUDE·****46 ···············****·INCLUDE·****
63 ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is47 ···············INCLUDE·files·are·pre-processed·as·any·other·file.·The·resulting·text·is
64 ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the48 ···············incorporated·into·the·HTML·output·as·if·the·file·had·been·copied·into·the
65 ···············source·at·the·same·location·as·the·FILE·markup·tag.49 ···············source·at·the·same·location·as·the·FILE·markup·tag.
66 ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the·operating50 ···············htp·will·automatically·convert·slashes·and·backslashes·to·match·the
67 ···············system's·directory·separator.51 ···············operating·system's·directory·separator.
68 ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are52 ···············Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are
69 ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros·are53 ···············interpreted·as·macros·that·are·"passed"·to·the·included·file.·The·macros
70 ···············available·only·to·the·include·file·(and·any·macros·or·included·files·it54 ···············are·available·only·to·the·include·file·(and·any·macros·or·included·files·it
71 ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer55 ···············holds).·After·the·file·is·completely·included,·the·macros·are·no·longer
72 ···············available.·So:56 ···············available.·So:
 57 ···············<[[ref]]WHILE·[NOT]·conditional>
 58 ··············· · ·block
 59 ···············<[[ref]]/WHILE>
73 ···············<[[ref]]OPT·(IMGXY|NOIMGXY)> 
74 ···············<[[ref]]OPT·(QUIET|VERBOSE)> 
75 ···············<[[ref]]OPT·(DEPEND|NODEPEND)> 
76 ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> 
77 ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
78 ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
79 ···············<[[ref]]OPT·(XML|XML=FALSE)> 
  
80 ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included60 ···············Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included
81 ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the·second61 ···············file.·They·are·not·available,·however,·past·the·tag·(which·is·why·the
82 ···············statement·will·fail.)62 ···············second·statement·will·fail.)
83 ···············****·TEMPLATE·****63 ···············****·TEMPLATE·****
84 ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is64 ···············A·template·file·is·nothing·more·than·a·default·include·file,·one·that·is
85 ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input·file65 ···············included·once·the·input·text·has·been·completely·processed.·So,·an·input
86 ···············can·define·many·"standard"·macros,·which·are·then·expanded·by·a·template·file66 ···············file·can·define·many·"standard"·macros,·which·are·then·expanded·by·a
87 ···············to·form·a·consistent·page·layout.67 ···············template·file·to·form·a·consistent·page·layout.
88 ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename·specified68 ···············The·template·file·can·be·set·many·times,·but·only·the·last·filename
89 ···············will·be·processed·by·htp.·If·multiple·template·files·need·to·be·included,69 ···············specified·will·be·processed·by·htp.·If·multiple·template·files·need·to·be
90 ···············specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to·branch·off.70 ···············included,·specify·one·template·file,·and·from·that·file·use·FILE·INCLUDE·to
 71 ···············branch·off.
91 ···············Template·files·are·most·useful·when·placed·inside·an·htp·default_file.72 ···············Template·files·are·most·useful·when·placed·inside·an·htp·default_file.
92 ···············****·SEARCH·****73 ···············****·SEARCH·****
93 ···············A·search·path·can·be·specified,·which·is·searched·if·an·include·file·cannot74 ···············A·search·path·can·be·specified,·which·is·searched·if·an·include·file·cannot
94 ···············be·found.·This·is·handy·to·keep·a·set·of·"common"·include·files·that·many75 ···············be·found.·This·is·handy·to·keep·a·set·of·"common"·include·files·that·many
95 ···············documents·in·many·directories·may·need·to·access.·More·than·one·directory·can76 ···············documents·in·many·directories·may·need·to·access.·More·than·one·directory
96 ···············be·specified·in·the·search·path,·if·they·are·separated·by·a·semi-colon.77 ···············can·be·specified·in·the·search·path,·if·they·are·separated·by·a·semi-colon.
97 ···············Spaces·should·not·precede·or·trail·the·search·path·string.78 ···············Spaces·should·not·precede·or·trail·the·search·path·string.
98 ···············When·htp·starts,·the·search·path·is·clear.·FILE·SEARCH·would·be·a·handy79 ···············When·htp·starts,·the·search·path·is·clear.·FILE·SEARCH·would·be·a·handy
99 ···············command·to·use·in·an·htp_defaults_file.80 ···············command·to·use·in·an·htp_defaults_file.
100 ···············****·EXECUTE·****81 ···············****·EXECUTE·****
101 ···············When·FILE·EXECUTE·is·used,·htp·will·launch·a·program·(as·specified·by·the82 ···············When·FILE·EXECUTE·is·used,·htp·will·launch·a·program·(as·specified·by·the
102 ···············EXECUTE·attribute)·and·include·its·output·as·if·a·FILE·INCLUDE·was·performed83 ···············EXECUTE·attribute)·and·include·its·output·as·if·a·FILE·INCLUDE·was
103 ···············on·the·file.·Either·the·OUTPUT·or·REDIRECT·attribute·must·also·be·included.84 ···············performed·on·the·file.·Either·the·OUTPUT·or·REDIRECT·attribute·must·also·be
 85 ···············included.
Max diff block lines reached; 1934/12789 bytes (15.12%) of diff not shown.
8.83 KB
./usr/share/doc/htp/if.html
    
Offset 114, 37 lines modifiedOffset 114, 40 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[·...·truncated·by·diffoscope;·len:·268,·SHA:·1781152bc89e842fc6811b9ac6a7ee094973f860981715a059619507fa829cae·...·]<br>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>
123 </code></p>128 </code></p>
124 <h2>synopsis</h2>129 <h2>synopsis</h2>
125 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building130 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building
126 blocks·for·conditional·processing.··The·basic·form·is·shown·above.131 blocks·for·conditional·processing.··The·basic·form·is·shown·above.
127 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A132 <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·literal133 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal
129 string:134 string:
130 ··<p><code>135 ··<p><code>
131 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="h[·...·truncated·by·diffoscope;·len:·15,·SHA:·9b11e2054279385dab0eb9eaa3f7e0c24e5f45d651372a188a49301d354669e6·...·]</span>&gt;</span><br>136 <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="htp-attrib">[APPEND]</span>[·...·truncated·by·diffoscope;·len:·34,·SHA:·942dc6450ba36b3de219bda3e2649629d933cd6a8e79b15f36b03a204db6439c·...·]</span>&gt;</span><br>
 137 text·block<br>
 138 <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>
 139 <br>
132 </code></p>140 </code></p>
133 <P>141 <P>
134 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:
135 <P>143 <P>
136 ··<p><code>144 ··<p><code>
137 <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>145 <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">macroname</span>&gt;</span><br>
 146 <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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br>
138 <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> 
139 <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> 
140 <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> 
141 <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> 
142 <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> 
143 <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> 
144 <br>147 <br>
145 </code></p>148 </code></p>
146 <P>149 <P>
147 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the150 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
148 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that151 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that
149 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the152 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the
150 ELSE·block·is·taken·if·it·is·present.··A·conditional·block153 ELSE·block·is·taken·if·it·is·present.··A·conditional·block
3.68 KB
html2text {}
    
Offset 1, 37 lines modifiedOffset 1, 37 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·······*****·syntax·*****3 Table_of·······*****·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·*****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·*****
8  Usage········IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional13   ··DEF······IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional
9  HTP·Tags·····processing.·The·basic·form·is·shown·above.14   ··FILE·····processing.·The·basic·form·is·shown·above.
10   ··ALTTEXT··"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare15  [>]·IF·······"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare
11   ··BLOCK····operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string:16   ··INC······operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string:
12   ··BLOCKDEF· · ·<[[ref]]INC·i="1"·j="-1">17   ··IMG······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]>
 18   ··IMAGEURL·text·block
 19   ··OPT······<[[ref]]/OUTPUT>
 20   ··OUTPUT
13   ··DEF······and·a·defined·operator·is·a·test·of·a·macro's·existance:21   ··QUOTE····and·a·defined·operator·is·a·test·of·a·macro's·existance:
 22   ··SET······<[[ref]]unset·macroname>
 23   ··UNDEF····<[[ref]]unset·macroname1·macroname2·...·>
 24   ··UNSET
14   ··FILE·····<[[ref]]OPT·(IMGXY|NOIMGXY)> 
15  [>]·IF·······<[[ref]]OPT·(QUIET|VERBOSE)> 
16   ··INC······<[[ref]]OPT·(DEPEND|NODEPEND)> 
17   ··IMG······<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> 
18   ··IMAGEURL·<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
19   ··OPT······<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
20   ··OUTPUT···<[[ref]]OPT·(XML|XML=FALSE)> 
21   ··QUOTE 
22   ··SET······If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the25   ··USE,_$···If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
23   ··UNDEF····conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates26   ··WHILE····conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to
24   ··UNSET····to·true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is27   ··<!---····true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken
25   ··USE,_$···taken·if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF28  History······if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF
 29  Wish_list····tags·can·be·nested.
26   ··WHILE····tag.·IF·tags·can·be·nested. 
27   ··<!--- 
28  History 
29  Wish_list 
30  Bugs30  Bugs
  
  
  
  
  
  
Offset 41, 23 lines modifiedOffset 41, 26 lines modified
  
  
  
  
  
  
  
  
  
  
41  page_source41  page_source
42  htp_project42  htp_project
43  htp_homepage43  htp_homepage
44 hosted·by44 hosted·by
45 Sourceforge45 Sourceforge
46 HTML·coding46 HTML·coding
47 [Powered_by47 [Powered_by
48 htp]48 htp]
49 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/49 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
50 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.50 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
51 ·····Maintainers:·Jochen_Hoenicke.51 ·····Maintainers:·Jochen_Hoenicke.
52 Copyright·©·1995–96·Jim·Nelson.52 Copyright·©·1995–96·Jim·Nelson.
53 Copyright·©·2001–2014·Jochen_Hoenicke.53 Copyright·©·2001–2014·Jochen_Hoenicke.
54 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to54 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms
55 terms·described·in·the·License_section.55 described·in·the·License_section.
56 last·updated·Sat·May·16,·201556 last·updated·Sat·May·16,·2015
11.8 KB
./usr/share/doc/htp/imageurl.html
    
Offset 114, 38 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 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br> 
123 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br> 
124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>&gt;</span><br> 
126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>&gt;</span><br> 
127 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br> 
128 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
129 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br> 
130 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
131 <br> 
132 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>&gt;</span><br> 
133 <br> 
134 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>&gt;</span><br> 
135 <br> 
136 &nbsp;·This·will·fail:<br> 
137 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>&gt;</span><br> 
138 <br> 
139 &nbsp;·Instead,·use·*·like·this:<br> 
140 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>&gt;</span><br> 
141 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>&gt;</span><br> 
142 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br> 
143 &nbsp;·&nbsp;·<br> 
144 &nbsp;·<span·class="htp-tag">&lt;MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>&gt;</span><br> 
145 </code></p>128 </code></p>
146 <h2>synopsis</h2>129 <h2>synopsis</h2>
147 <P>130 <P>
148 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local131 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local
149 file·system.··declares·an·URL·replacement·that·is·used·for132 file·system.··declares·an·URL·replacement·that·is·used·for
150 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions133 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions
151 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is134 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is
Offset 159, 15 lines modifiedOffset 142, 19 lines modified
159 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC142 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC
160 attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.143 attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.
161 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and144 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and
162 looked·up·in·the·current·directory.</P>145 looked·up·in·the·current·directory.</P>
163 <P>146 <P>
164 For·example:</P>147 For·example:</P>
165 ··<p><code>148 ··<p><code>
166 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"1"</span>·<span·class="htp-attrib">j</span>=<span·class="h[·...·truncated·by·diffoscope;·len:·15,·SHA:·9b11e2054279385dab0eb9eaa3f7e0c24e5f45d651372a188a49301d354669e6·...·]</span>&gt;</span><br>149 <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>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>&gt;</span><br>
 150 <br>
 151 &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>
 152 <br>
 153 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>
167 </code></p>154 </code></p>
168 <P>155 <P>
169 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as156 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as
170 an·undefine,·and·is·removed.</P>157 an·undefine,·and·is·removed.</P>
171 <P>158 <P>
172 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout159 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout
173 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an160 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an
5.22 KB
html2text {}
    
Offset 1, 58 lines modifiedOffset 1, 45 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMAGEURL·******2 ******·htp·on-line·reference·:·IMAGEURL·******
3 Table_of·······*****·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 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····IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.13   ··DEF······IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.·declares
30  Bugs·········declares·an·URL·replacement·that·is·used·for·size·lookups·in·any14   ··FILE·····an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG·tag.·This
 15   ··IF·······definitions·takes·effect·only·if·the·IMGXY·option·is·enabled.·Beacause·htp
 16   ··INC······can't·lookup·files·in·the·world·wide·web·you·have·to·map·absolute·image
 17   ··IMG······URLs·to·a·directory·in·the·local·file·system.
31 ···············IMG·tag.·This·definitions·takes·effect·only·if·the·IMGXY·option·is 
32 ···············enabled.·Beacause·htp·can't·lookup·files·in·the·world·wide·web·you 
33 ···············have·to·map·absolute·image·URLs·to·a·directory·in·the·local·file 
34 ···············system. 
35 ···············When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and18  [>]·IMAGEURL·When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height·the
 19   ··OPT······defined·URL·replacements·will·be·taken·into·account·(later·definitions·take
 20   ··OUTPUT···precedence·to·earlier):·For·each·defined·imageurl·it·checks·(case-
 21   ··QUOTE····insensitive)·if·it·is·a·prefix·of·the·image's·SRC·attribute.·If·it·matches
 22   ··SET······this·prefix·is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC
36 ···············height·the·defined·URL·replacements·will·be·taken·into·account 
37 ···············(later·definitions·take·precedence·to·earlier):·For·each·defined 
38 ···············imageurl·it·checks·(case-insensitive)·if·it·is·a·prefix·of·the 
39 ···············image's·SRC·attribute.·If·it·matches·this·prefix·is·replaced·by 
40 ···············the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is·considered·as 
41 ···············relative·link·and·looked·up·in·the·current·directory.23   ··UNDEF····is·considered·as·relative·link·and·looked·up·in·the·current·directory.
42 ···············For·example: 
43 ··············· · ·<[[ref]]INC·i="1"·j="-1">24   ··UNSET····For·example:
 25   ··USE,_$···<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...]
 26   ··WHILE····[GLOBAL]>
 27   ··<!---
 28  History······ <[[ref]]/blockdef>
 29  Wish_list
 30  Bugs········· ·This·is·<bolditalic>bold·and·italic</bolditalic>
44 ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is31 ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as
45 ···············treated·as·an·undefine,·and·is·removed.32 ···············an·undefine,·and·is·removed.
46 ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used33 ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used
47 ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put34 ···············throughout·a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an
48 ···············into·an·include_file·or·the·htp.def·file.35 ···············include_file·or·the·htp.def·file.
49 ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically36 ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add·an
50 ···············add·an·ALT_text·attribute·to·IMG·tags.37 ···············ALT_text·attribute·to·IMG·tags.
  
  
  
  
  
  
  
Offset 78, 10 lines modifiedOffset 65, 10 lines modified
78 [Powered_by65 [Powered_by
79 htp]66 htp]
80 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/67 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
81 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.68 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
82 ·····Maintainers:·Jochen_Hoenicke.69 ·····Maintainers:·Jochen_Hoenicke.
83 Copyright·©·1995–96·Jim·Nelson.70 Copyright·©·1995–96·Jim·Nelson.
84 Copyright·©·2001–2014·Jochen_Hoenicke.71 Copyright·©·2001–2014·Jochen_Hoenicke.
85 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according72 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms
86 to·terms·described·in·the·License_section.73 described·in·the·License_section.
87 last·updated·Sat·May·16,·201574 last·updated·Sat·May·16,·2015
8.73 KB
./usr/share/doc/htp/img.html
    
Offset 114, 36 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 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"http://my.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/my.domain/"</span>&gt;</span><br> 
122 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"other.domain.org/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/other.domain/"</span>&gt;</span><br> 
123 <br> 
124 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>&gt;</span><br> 
125 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
126 &nbsp;·(no·URL·replacement).<br> 
127 <br> 
128 &nbsp;·For·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://my.domain.org/logo.gif"</span>&gt;</span><br> 
129 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
130 <br> 
131 &nbsp;·But·for·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"http://other.domain.org/logo.gif"</span>&gt;</span><br> 
132 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
133 &nbsp;·will·not·be·added.<br> 
134 <br> 
135 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
136 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/htdocs/"</span>&gt;</span><br> 
137 &nbsp;·<span·class="htp-tag">&lt;<a·href="imageurl.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">imageurl</a>·<span·class="htp-attrib">url</span>=<span·class="htp-string">"/test/"</span>·<span·class="htp-attrib">path</span>=<span·class="htp-string">"/var/www/test/"</span>&gt;</span><br> 
138 <br> 
139 &nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/image.gif"</span>&gt;</span>&nbsp;and·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/test/image.gif"</span>&gt;</span>&nbsp;are·mapped·to<br> 
140 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
141 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
142 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
143 </code></p>128 </code></p>
144 <h2>synopsis</h2>129 <h2>synopsis</h2>
145 <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified130 <P>·<STRONG>img</STRONG>·is·a·standard·HTML·tag.··htp·can·add·the·specified
146 image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage131 image's·width·and·height·to·the·tag·automatically.··This·has·the·advantage
147 of·not·having·to·determine·each·image's·size·manually,·which·is·especially132 of·not·having·to·determine·each·image's·size·manually,·which·is·especially
148 useful·if·the·image·may·change·frequently.·</P>133 useful·if·the·image·may·change·frequently.·</P>
149 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup134 <P>·htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup
4.25 KB
html2text {}
    
Offset 1, 53 lines modifiedOffset 1, 38 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·······*****·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>.
4 Contents······· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
5  Introduction· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> 
6  License 
7  Tutorial····· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
8  Usage········ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
9  HTP·Tags····· ·(no·URL·replacement). 
10   ··ALTTEXT 
11   ··BLOCK···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
12   ··BLOCKDEF· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
13   ··DEF 
14   ··FILE····· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
15   ··IF······· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
16   ··INC······ ·will·not·be·added. 
17  [>]·IMG 
18   ··IMAGEURL· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
19   ··OPT······ ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
20   ··OUTPUT··· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
21   ··QUOTE 
22   ··SET······ ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
23   ··UNDEF····mapped·to 
24   ··UNSET···· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
25   ··USE,_$··· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
26   ··WHILE···· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
27   ··<!---····*****·synopsis·*****12   ··BLOCKDEF·*****·synopsis·*****
28  History······img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and13   ··DEF······img·is·a·standard·HTML·tag.·htp·can·add·the·specified·image's·width·and
29  Wish_list····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to14   ··FILE·····height·to·the·tag·automatically.·This·has·the·advantage·of·not·having·to
30  Bugs·········determine·each·image's·size·manually,·which·is·especially·useful·if·the·image15   ··IF·······determine·each·image's·size·manually,·which·is·especially·useful·if·the
31 ···············may·change·frequently.16   ··INC······image·may·change·frequently.
32 ···············htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If·htp17  [>]·IMG······htp·adds·this·information·with·the·WIDTH·and·HEIGHT·markup·attributes.·If
33 ···············detects·these·attributes·are·already·present·in·the·tag,·it·will·not·modify18   ··IMAGEURL·htp·detects·these·attributes·are·already·present·in·the·tag,·it·will·not
34 ···············the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a·warning·but19   ··OPT······modify·the·values.·If·htp·cannot·find·the·image·file,·it·will·issue·a
35 ···············not·halt·processing.20   ··OUTPUT···warning·but·not·halt·processing.
36 ···············At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network21   ··QUOTE····At·this·time,·GIF·(Graphic·Interchange·Format),·PNG·(Portable·Network
37 ···············Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported.22   ··SET······Graphics),·and·JFIF·(JPEG·File·Interchange·Format)·are·supported.
38 ···············The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds·this23   ··UNDEF····The·IMGXY_and_NOIMGXY·options·control·whether·or·not·htp·actually·adds·this
39 ···············information·as·it·executes.24   ··UNSET····information·as·it·executes.
40 ···············Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the·IMAGEURL25   ··USE,_$···Since·htp·is·able·to·lookup·files·only·in·the·local·filesystem,·the
41 ···············tag·may·be·used·to·map·URLs·to·local·files.26   ··WHILE····IMAGEURL·tag·may·be·used·to·map·URLs·to·local·files.
42 ···············htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT.27   ··<!---····htp·can·also·add·default·ALT·text·to·IMG·tags·using·ALTTEXT.
  
  
 28  History
 29  Wish_list
 30  Bugs
  
  
  
  
  
  
  
7.42 KB
./usr/share/doc/htp/inc.html
    
Offset 114, 32 lines modifiedOffset 114, 31 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim"</span>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
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>122 </code></p>
124 <h2>synopsis</h2>123 <h2>synopsis</h2>
125 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a124 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a
126 variable·or·for·variable·addition.··The·basic·form·is·shown·above.125 variable·or·for·variable·addition.··The·basic·form·is·shown·above.
127 <P>126 <P>
128 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a127 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a
129 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The128 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The
130 macroname·must·be·the·name·of·a·defined·macro·that·contains·an129 macroname·must·be·the·name·of·a·defined·macro·that·contains·an
131 integer.··If·the·increment·is·ommitted·it·defaults·to·1.130 integer.··If·the·increment·is·ommitted·it·defaults·to·1.
132 The·effect·of·this·operation·is·that·the·macro·is·redefined131 The·effect·of·this·operation·is·that·the·macro·is·redefined
133 to·contain·the·sum·of·its·previous·value·and·its·increment.132 to·contain·the·sum·of·its·previous·value·and·its·increment.
134 <P>133 <P>
135 To·increment·or·decrement·a·variable·you·can·use·this·form:134 To·increment·or·decrement·a·variable·you·can·use·this·form:
136 ··<p><code>135 ··<p><code>
137 &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> 
138 &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>136 <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>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>&gt;</span><br>
 137 <br>
139 </code></p>138 </code></p>
140 <p>139 <p>
141 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It140 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It
142 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer141 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer
143 values·are·limited·to·the·range·-2^31..2^31.142 values·are·limited·to·the·range·-2^31..2^31.
144 <P>143 <P>
145 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.144 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.
4.06 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 42 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·INC·******2 ******·htp·on-line·reference·:·INC·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction··············· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>
 5  License····················*****·synopsis·*****
 6  Tutorial···················The·INC·can·be·used·for·incrementing/decrementing
 7  Usage······················a·variable·or·for·variable·addition.·The·basic
 8  HTP·Tags···················form·is·shown·above.
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········The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for 
9  HTP·Tags·····variable·addition.·The·basic·form·is·shown·above. 
10   ··ALTTEXT··The·"increment"·is·anything·that·evaluates·to·a·integer.·It·can·be·a9   ··ALTTEXT················The·"increment"·is·anything·that·evaluates·to·a
 10   ··BLOCK··················integer.·It·can·be·a·literal·string·or·a·macro
11   ··BLOCK····literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname11   ··BLOCKDEF···············preceeded·by·the·'$'-operator.·The·macroname·must
12   ··BLOCKDEF·must·be·the·name·of·a·defined·macro·that·contains·an·integer.·If·the 
13   ··DEF······increment·is·ommitted·it·defaults·to·1.·The·effect·of·this·operation·is 
14   ··FILE·····that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value·and 
15   ··IF·······its·increment.12   ··DEF····················be·the·name·of·a·defined·macro·that·contains·an
 13   ··FILE···················integer.·If·the·increment·is·ommitted·it·defaults
 14   ··IF·····················to·1.·The·effect·of·this·operation·is·that·the
 15  [>]·INC····················macro·is·redefined·to·contain·the·sum·of·its
 16   ··IMG····················previous·value·and·its·increment.
16  [>]·INC······To·increment·or·decrement·a·variable·you·can·use·this·form:17   ··IMAGEURL···············To·increment·or·decrement·a·variable·you·can·use
17   ··IMG······ · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson" 
18   ··IMAGEURL·email="jnelson@crl.com"> 
19   ··OPT······ · ·This·tag·will·fail:·<[[ref]]USE·name> 
20   ··OUTPUT···Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It·may 
21   ··QUOTE····give·weired·results·when·used·on·arbitrary·strings.·The·integer·values18   ··OPT····················this·form:
 19   ··OUTPUT·················<[[ref]]SET·macroname1="macrovalue1"
 20   ··QUOTE··················[macroname2="macrovalue2"·...]·[GLOBAL]>
 21   ··SET
 22   ··UNDEF··················Note·that·INC·doesn't·check·if·the·strings·really
 23   ··UNSET··················denote·integers.·It·may·give·weired·results·when
 24   ··USE,_$·················used·on·arbitrary·strings.·The·integer·values·are
22   ··SET······are·limited·to·the·range·-2^31..2^31.25   ··WHILE··················limited·to·the·range·-2^31..2^31.
23   ··UNDEF····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The 
24   ··UNSET····INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined 
25   ··USE,_$···blocks. 
26   ··WHILE 
27   ··<!--- 
28  History 
29  Wish_list 
30  Bugs26   ··<!---··················Note·further·that·htp·wasn't·designed·to·do
 27  History····················extensive·calculations.·The·INC·tag·is·useful·in
 28  Wish_list··················conjunction·with·WHILE·to·iterate·over·the·defined
 29  Bugs·······················blocks.
  
  
  
  
  
  
  
  
  
  
  
  
Offset 45, 18 lines modifiedOffset 49, 17 lines modified
  
  
45  page_source49  page_source
46  htp_project50  htp_project
47  htp_homepage51  htp_homepage
48 hosted·by52 hosted·by
49 Sourceforge53 Sourceforge
 54 HTML·coding·[Powered_by
50 HTML·coding 
51 [Powered_by 
52 htp]55 htp]
53 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/56 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
54 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.57 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
55 ·····Maintainers:·Jochen_Hoenicke.58 ·····Maintainers:·Jochen_Hoenicke.
56 Copyright·©·1995–96·Jim·Nelson.59 Copyright·©·1995–96·Jim·Nelson.
57 Copyright·©·2001–2014·Jochen_Hoenicke.60 Copyright·©·2001–2014·Jochen_Hoenicke.
58 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to61 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
59 terms·described·in·the·License_section.62 according·to·terms·described·in·the·License_section.
60 last·updated·Sat·May·16,·201563 last·updated·Sat·May·16,·2015
27.5 KB
./usr/share/doc/htp/metatag.html
    
Offset 88, 18 lines modifiedOffset 88, 15 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>&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>
95 <font·size="-2">&nbsp;1.·</font><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="htp-attrib">[APPEND]</span>·<span·class="htp-attrib">[EXPAND]</span>&gt;</span><br> 
96 <font·size="-2">&nbsp;2.·</font>text·block<br> 
97 <font·size="-2">&nbsp;3.·</font><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> 
98 <font·size="-2">&nbsp;4.·</font><br> 
99 </code></p>96 </code></p>
100 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.97 <P>·In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.
101 The·html·code·which·implements·this·rule·is·following·in·lines·2-8.98 The·html·code·which·implements·this·rule·is·following·in·lines·2-8.
102 between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and99 between·the·<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>def</code>·and
103 <code>/def</code></a>·tags.··You·don't·have·to·understand·this100 <code>/def</code></a>·tags.··You·don't·have·to·understand·this
104 html·code,·but·you·should·understand·that·this·is·just·pure·html·to101 html·code,·but·you·should·understand·that·this·is·just·pure·html·to
105 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>102 draw·the·fancy·rule.·Every·time·you·write·<code>&lt;imghr&gt;</code>
Offset 109, 34 lines modifiedOffset 106, 72 lines modified
109 file</a>.··</p>106 file</a>.··</p>
110 <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing107 <P>·Often·you·want·to·define·tags·that·have·an·opening·and·a·closing
111 variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp108 variant.··For·this·purpose·you·should·use·the·<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10"><code>blockdef</code></a>·tag.··When·htp
112 encounters·a·blockdef·tag·it·will·automatically·search·for·the109 encounters·a·blockdef·tag·it·will·automatically·search·for·the
113 matching·closing·tag·and·put·everything·between·these·tags·in·a·block110 matching·closing·tag·and·put·everything·between·these·tags·in·a·block
114 macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P>111 macro·named·<code>block</code>.··Here·is·an·example·for·this.··</P>
115 ··<p><code>112 ··<p><code>
116 <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>[·...·truncated·by·diffoscope;·len:·117,·SHA:·27e4f3684e92be27f5222155df1a3c3432e8ef881a5250721d08d15f00db7845·...·]</span>&gt;</span><br>113 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>&gt;</span><br>
 114 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>&gt;</span><br>
 115 <font·size="-2">&nbsp;3.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
117 <font·size="-2">&nbsp;2.·</font><br>116 <font·size="-2">&nbsp;4.·</font><br>
 117 <font·size="-2">&nbsp;5.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>&gt;</span><br>
 118 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&gt;</span><br>
 119 <font·size="-2">&nbsp;7.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
 120 <font·size="-2">&nbsp;8.·</font><br>
 121 <font·size="-2">&nbsp;9.·</font>&nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br>
118 </code></p>122 </code></p>
119 <h2>Using·parameters</h2>123 <h2>Using·parameters</h2>
120 <p>·More·sophisticated·tags·accept·parameters.··The124 <p>·More·sophisticated·tags·accept·parameters.··The
121 <code>option</code>·parameter·lets·multiple·metatag·parameters·be125 <code>option</code>·parameter·lets·multiple·metatag·parameters·be
122 named·and·expanded·inside·the·<code>def</code>·or126 named·and·expanded·inside·the·<code>def</code>·or
123 <code>blockdef</code>·block:·</p>127 <code>blockdef</code>·block:·</p>
124 ··<p><code>128 ··<p><code>
 129 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>&gt;</span><br>
 130 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br>
 131 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>
125 <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>132 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 133 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>&gt;</span><br>
 134 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>&gt;</span><br>
 135 <font·size="-2">&nbsp;7.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br>
 136 <font·size="-2">&nbsp;8.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 137 <font·size="-2">&nbsp;9.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 138 <font·size="-2">10.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 139 <font·size="-2">11.·</font><br>
 140 <font·size="-2">12.·</font>&nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>&gt;</span><br>
 141 <font·size="-2">13.·</font><br>
 142 <font·size="-2">14.·</font>&nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>&gt;</span><br>
 143 <font·size="-2">15.·</font><br>
 144 <font·size="-2">16.·</font>&nbsp;·This·will·fail:<br>
 145 <font·size="-2">17.·</font>&nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>&gt;</span><br>
 146 <font·size="-2">18.·</font><br>
 147 <font·size="-2">19.·</font>&nbsp;·Instead,·use·*·like·this:<br>
 148 <font·size="-2">20.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"MYIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·*"</span>&gt;</span><br>
 149 <font·size="-2">21.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"pics/<span·class="htp-macro">${src}</span>"</span>·<span·class="htp-attrib"><span·class="htp-macro">$*</span></span>&gt;</span><br>
 150 <font·size="-2">22.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 151 <font·size="-2">23.·</font>&nbsp;·&nbsp;·<br>
 152 <font·size="-2">24.·</font>&nbsp;·<span·class="htp-tag">&lt;MYIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>&gt;</span><br>
126 </code></p>153 </code></p>
127 <h2>Saving·blocks·for·later</h2>154 <h2>Saving·blocks·for·later</h2>
128 <p>When·you·are·using·templates,·the·html·should·only·be·written·by155 <p>When·you·are·using·templates,·the·html·should·only·be·written·by
129 the·template·file.··The·normal·htp·files·should·just·define·macros156 the·template·file.··The·normal·htp·files·should·just·define·macros
130 that·are·used·later·in·the·template.··So·you·may·want·to·write·block157 that·are·used·later·in·the·template.··So·you·may·want·to·write·block
131 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this158 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this
132 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to159 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to
133 do·this:</p>160 do·this:</p>
134 ··<p><code>161 ··<p><code>
 162 <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>
 163 <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>
135 <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>164 <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>
 165 <font·size="-2">&nbsp;4.·</font><br>
 166 <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>
 167 <font·size="-2">&nbsp;6.·</font><br>
 168 <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>
 169 <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>
 170 <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>
136 </code></p>171 </code></p>
137 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a172 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a
138 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is173 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is
139 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is174 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is
140 build·from·this·counter.··So·the·first·section·is·stored·in·block175 build·from·this·counter.··So·the·first·section·is·stored·in·block
141 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>·flag176 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
142 in·line·4·tells·htp·that·these·macros·should·be·defined·globally177 in·line·4·tells·htp·that·these·macros·should·be·defined·globally
Offset 155, 23 lines modifiedOffset 190, 16 lines modified
155 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be190 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be
156 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the191 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the
157 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you192 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you
158 use·expand·in·a·block·around·it.</p>193 use·expand·in·a·block·around·it.</p>
159 <p>To·close·this·example·we·show·how·to·expand·the194 <p>To·close·this·example·we·show·how·to·expand·the
160 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>195 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>
161 ··<p><code>196 ··<p><code>
 197 <font·size="-2">&nbsp;1.·</font><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>
 198 <font·size="-2">&nbsp;2.·</font><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>
162 <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> 
163 <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> 
164 <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> 
165 <font·size="-2">&nbsp;4.·</font><br> 
166 <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> 
167 <font·size="-2">&nbsp;6.·</font><br> 
168 <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> 
169 <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> 
170 <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> 
171 </code></p>199 </code></p>
172 <p>200 <p>
173 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·whether201 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
174 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is202 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is
175 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards203 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards
176 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This204 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This
177 repeats·until·sect-${sect-ctr}·is·not·defined.205 repeats·until·sect-${sect-ctr}·is·not·defined.
12.2 KB
html2text {}
    
Offset 1, 96 lines modifiedOffset 1, 124 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·Metatags·******2 ******·htp·on-line·reference·:·Metatags·******
3 Table_of········*****·Programming·your·own·tags·*****3 Table_of········*****·Programming·your·own·tags·*****
4 Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define·a4 Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you·define
5  Introduction··metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In·fact5  Introduction··a·metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In
6  License·······metatags·are·just·like·block·macros,·but·they·have·a·nicer·syntax.·With6  License·······fact·metatags·are·just·like·block·macros,·but·they·have·a·nicer
7  Tutorial······metatags·you·can·expand·htp's·functionality.7  Tutorial······syntax.·With·metatags·you·can·expand·htp's·functionality.
8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and
9   ··Including·undefined·with·the·[[ref]]undef·tag.9   ··Including·undefined·with·the·[[ref]]undef·tag.
10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy·horizontal10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy
11   ··Files·····rule·out·of·several·images.11   ··Files·····horizontal·rule·out·of·several·images.
 12  [>]·Metatags·· 1. · ·<[[ref]]IF·name>...<[[ref]]/IF>
12  [>]·Metatags·· 1.<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> 
13  Usage········· 2.text·block 
14  HTP_Tags······ 3.<[[ref]]/OUTPUT> 
15  History······· 4. 
16  Wish_list·····In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The13  Usage·········In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The
17  Bugs··········html·code·which·implements·this·rule·is·following·in·lines·2-8.·between14  HTP_Tags······html·code·which·implements·this·rule·is·following·in·lines·2-8.
18 ················the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand·this·html15  History·······between·the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand
19 ················code,·but·you·should·understand·that·this·is·just·pure·html·to·draw·the16  Wish_list·····this·html·code,·but·you·should·understand·that·this·is·just·pure·html
20 ················fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12·htp·will·replace17  Bugs··········to·draw·the·fancy·rule.·Every·time·you·write·<imghr>·as·in·line·12
21 ················this·tag·with·the·corresponding·html·code.·To·make·metatags·available·to18 ················htp·will·replace·this·tag·with·the·corresponding·html·code.·To·make
22 ················all·htp·documents·in·your·project,·place·them·in·a·common·[[ref]]include 
23 ················file.19 ················metatags·available·to·all·htp·documents·in·your·project,·place·them
 20 ················in·a·common·[[ref]]include_file.
24 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing21 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing
25 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.·When22 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.
26 ················htp·encounters·a·blockdef·tag·it·will·automatically·search·for·the23 ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search·for
27 ················matching·closing·tag·and·put·everything·between·these·tags·in·a·block24 ················the·matching·closing·tag·and·put·everything·between·these·tags·in·a
28 ················macro·named·block.·Here·is·an·example·for·this.25 ················block·macro·named·block.·Here·is·an·example·for·this.
29 ················ 1.<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"·...] 
30 ················[GLOBAL]>26 ················ 1. ·<[[ref]]def·name="bigfont">
 27 ················ 2. · ·<font·size="+4">
 28 ················ 3. ·<[[ref]]/def>
31 ················ 2.29 ················ 4.
 30 ················ 5. ·<[[ref]]def·name="/bigfont">
 31 ················ 6. · ·</font>
 32 ················ 7. ·<[[ref]]/def>
 33 ················ 8.
 34 ················ 9. ·<bigfont>Some·large·text</bigfont>
32 ················*****·Using·parameters·*****35 ················*****·Using·parameters·*****
33 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets36 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets
34 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or37 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or
35 ················blockdef·block:38 ················blockdef·block:
36 ················ 1. · ·<[[ref]]SET·emailaddr="jnelson@crl.com">39 ················ 1. ·<[[ref]]DEF·NAME="HEADERIMG"·OPTION="SRC·TITLE·SIZE">
 40 ················ 2. · ·<[[ref]]IF·size>
 41 ················ 3. · · · ·<FONT·SIZE=${size}>
 42 ················ 4. · ·<[[ref]]/IF>
 43 ················ 5. · ·<[[ref]]IMG·SRC=pics/${src}>
 44 ················ 6. · ·<[[ref]]USE·title>
 45 ················ 7. · ·<[[ref]]IF·size>
 46 ················ 8. · · · ·</FONT>
 47 ················ 9. · ·<[[ref]]/IF>
 48 ················10. ·<[[ref]]/DEF>
 49 ················11.
 50 ················12. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
 51 ················13.
 52 ················14. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
 53 ················15.
 54 ················16. ·This·will·fail:
 55 ················17. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
 56 ················18.
 57 ················19. ·Instead,·use·*·like·this:
 58 ················20. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*">
 59 ················21. · ·<[[ref]]IMG·SRC="pics/${src}"·$*>
 60 ················22. ·<[[ref]]/DEF>
 61 ················23. · 
 62 ················24. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
37 ················*****·Saving·blocks·for·later·*****63 ················*****·Saving·blocks·for·later·*****
38 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the64 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the
39 ················template·file.·The·normal·htp·files·should·just·define·macros·that·are65 ················template·file.·The·normal·htp·files·should·just·define·macros·that
40 ················used·later·in·the·template.·So·you·may·want·to·write·block·tags·that66 ················are·used·later·in·the·template.·So·you·may·want·to·write·block·tags
41 ················just·save·the·block·in·a·macro·for·later·use.·Although·this·is·possible67 ················that·just·save·the·block·in·a·macro·for·later·use.·Although·this·is
42 ················with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to·do·this:68 ················possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to
 69 ················do·this:
43 ················ 1. · ·<[[ref]]unset·email_addr> 
44 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter 
45 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every·section 
46 ················(line·3)·and·then·the·block·macro·name·is·build·from·this·counter.·So 
47 ················the·first·section·is·stored·in·block·sect-1,·the·second·in·sect-2·and·so 
48 ················on.·The·[[ref]]global·flag·in·line·4·tells·htp·that·these·macros·should 
49 ················be·defined·globally·for·the·remaining·run.·Otherwise·they·would·be 
50 ················forgotten·at·the·end·of·the·section·macro. 
51 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and·5. 
52 ················Normally·when·you·define·a·block·macro·the·code·between·the·start·and 
53 ················end·tag·is·literally·copied·into·the·macro·value.·The·expansion·takes 
54 ················place·when·the·macro·is·used.·In·this·case·that·doesn't·make·sense;·all 
55 ················macros·sect-1,·sect-2·and·so·on·would·just·contain·the·same·value, 
56 ················namely·<use·block>·and·block·wouldn't·be·defined·anymore·when·the·macros 
57 ················are·finally·expanded.·Therefore·we·use·expand·to·expand·the·use·tag 
58 ················already·when·sect-1·is·defined. 
59 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and 
60 ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,·it 
61 ················would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it·later 
62 ················in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand·whenever 
63 ················you·use·expand·in·a·block·around·it. 
64 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}·blocks 
65 ················in·the·template: 
66 ················ 1.<[[ref]]block·stuff>70 ················ 1.<[[ref]]block·stuff>
67 ················ 2. ·<a·href=$email>send·email</a>71 ················ 2. ·<a·href=$email>send·email</a>
68 ················ 3.<[[ref]]/block>72 ················ 3.<[[ref]]/block>
69 ················ 4.73 ················ 4.
70 ················ 5.<[[ref]]set·morestuff=$email>74 ················ 5.<[[ref]]set·morestuff=$email>
71 ················ 6.75 ················ 6.
72 ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">76 ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
73 ················ 8.But·this·fails:·<[[ref]]use·email>77 ················ 8.But·this·fails:·<[[ref]]use·email>
74 ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com">78 ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com">
 79 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter
 80 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every
 81 ················section·(line·3)·and·then·the·block·macro·name·is·build·from·this
 82 ················counter.·So·the·first·section·is·stored·in·block·sect-1,·the·second
 83 ················in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells·htp·that
 84 ················these·macros·should·be·defined·globally·for·the·remaining·run.
 85 ················Otherwise·they·would·be·forgotten·at·the·end·of·the·section·macro.
 86 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and
 87 ················5.·Normally·when·you·define·a·block·macro·the·code·between·the·start
 88 ················and·end·tag·is·literally·copied·into·the·macro·value.·The·expansion
 89 ················takes·place·when·the·macro·is·used.·In·this·case·that·doesn't·make
 90 ················sense;·all·macros·sect-1,·sect-2·and·so·on·would·just·contain·the
 91 ················same·value,·namely·<use·block>·and·block·wouldn't·be·defined·anymore
 92 ················when·the·macros·are·finally·expanded.·Therefore·we·use·expand·to
 93 ················expand·the·use·tag·already·when·sect-1·is·defined.
 94 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and
 95 ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,
 96 ················it·would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it
 97 ················later·in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand
Max diff block lines reached; 1286/12431 bytes (10.35%) of diff not shown.
4.88 KB
./usr/share/doc/htp/output.html
    
Offset 114, 19 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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>&gt;</span>;<br> 
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>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 <br>123 <br>
125 &nbsp;·<span·class="htp-tag">&lt;sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>&gt;</span><br> 
126 </code></p>124 </code></p>
127 <h2>synopsis</h2>125 <h2>synopsis</h2>
128 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary126 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary
129 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the127 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the
130 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>128 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>
131 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you129 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you
132 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text130 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text
2.77 KB
html2text {}
    
Offset 1, 27 lines modifiedOffset 1, 26 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·OUTPUT·******2 ******·htp·on-line·reference·:·OUTPUT·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]UNDEF·tagname>
 5  License····················<[[ref]]UNDEF·tagname1·tagname2·...·>
4 Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> 
5  Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; 
6  License······ ·<[[ref]]/def> 
7  Tutorial6  Tutorial
8  Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> 
9  HTP·Tags·····*****·synopsis·***** 
10   ··ALTTEXT··The·OUTPUT·tag·can·be·used·to·create·auxillary·files·besides·the 
11   ··BLOCK····main·HTML·file.·The·text·between·this·tag·and·the·corresponding7  Usage······················*****·synopsis·*****
 8  HTP·Tags···················The·OUTPUT·tag·can·be·used·to·create·auxillary
 9   ··ALTTEXT················files·besides·the·main·HTML·file.·The·text·between
 10   ··BLOCK··················this·tag·and·the·corresponding·</OUTPUT>·tag·is
12   ··BLOCKDEF·</OUTPUT>·tag·is·written·to·output·file.11   ··BLOCKDEF···············written·to·output·file.
13   ··DEF······Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you12   ··DEF····················Normally·the·outputfile·is·cleared·before·writing
14   ··FILE·····can·use·the·APPEND·attribute·to·extend·an·existing·file.·The·text13   ··FILE···················to·it,·but·you·can·use·the·APPEND·attribute·to
 14   ··IF·····················extend·an·existing·file.·The·text·written·to·the
15   ··IF·······written·to·the·file·is·normally·not·expanded,·i.e.·all·tags15   ··INC····················file·is·normally·not·expanded,·i.e.·all·tags
16   ··INC······inside·this·block·are·not·executed·but·written·unmodified·to·the16   ··IMG····················inside·this·block·are·not·executed·but·written
 17   ··IMAGEURL···············unmodified·to·the·file.·However,·you·can·use·the
 18   ··OPT····················EXPAND·attribute·to·override·this·behaviour.
17   ··IMG······file.·However,·you·can·use·the·EXPAND·attribute·to·override·this 
18   ··IMAGEURL·behaviour. 
19   ··OPT 
20  [>]·OUTPUT19  [>]·OUTPUT
21   ··QUOTE20   ··QUOTE
22   ··SET21   ··SET
23   ··UNDEF22   ··UNDEF
24   ··UNSET23   ··UNSET
25   ··USE,_$24   ··USE,_$
26   ··WHILE25   ··WHILE
Offset 33, 23 lines modifiedOffset 32, 23 lines modified
  
  
  
  
  
  
  
  
33  page_source32  page_source
34  htp_project33  htp_project
35  htp_homepage34  htp_homepage
36 hosted·by35 hosted·by
37 Sourceforge36 Sourceforge
 37 HTML·coding·[Powered_by
38 HTML·coding 
39 [Powered_by 
40 htp]38 htp]
41 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/39 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
42 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.40 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
43 ·····Maintainers:·Jochen_Hoenicke.41 ·····Maintainers:·Jochen_Hoenicke.
44 Copyright·©·1995–96·Jim·Nelson.42 Copyright·©·1995–96·Jim·Nelson.
45 Copyright·©·2001–2014·Jochen_Hoenicke.43 Copyright·©·2001–2014·Jochen_Hoenicke.
46 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according44 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
47 to·terms·described·in·the·License_section.45 according·to·terms·described·in·the·License_section.
48 last·updated·Sat·May·16,·201546 last·updated·Sat·May·16,·2015
4.15 KB
./usr/share/doc/htp/quote.html
    
Offset 114, 19 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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span·class="htp-string">"name·alt"</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>&gt;</span>;<br> 
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>121 <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">macroname</span>&gt;</span><br>
 122 <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">macroname1</span>·<span·class="htp-attrib">macroname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br>
124 <br>123 <br>
125 &nbsp;·<span·class="htp-tag">&lt;sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>&gt;</span><br> 
126 </code></p>124 </code></p>
127 <h2>synopsis</h2>125 <h2>synopsis</h2>
128 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise126 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise
129 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a127 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a
130 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early128 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early
131 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still129 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still
132 done·inside·a·quote·block.130 done·inside·a·quote·block.
2.08 KB
html2text {}
    
Offset 1, 22 lines modifiedOffset 1, 21 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·QUOTE·******2 ******·htp·on-line·reference·:·QUOTE·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]unset·macroname>
 5  License····················<[[ref]]unset·macroname1·macroname2·...·>
4 Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> 
5  Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; 
6  License······ ·<[[ref]]/def> 
7  Tutorial6  Tutorial
8  Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> 
9  HTP·Tags·····*****·synopsis·***** 
10   ··ALTTEXT··QUOTE·is·used·to·quote·a·macro·that·would·otherwise·be 
11   ··BLOCK····interpreted·by·HTP.·It·may·be·useful·in·conjunction·with·a 
12   ··BLOCKDEF·surrounding·EXPANDed·block·to·prevent·early·expansion·of·some7  Usage······················*****·synopsis·*****
 8  HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would
 9   ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful
 10   ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block
 11   ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained
13   ··DEF······contained·blocks.·Note·that·'$'·evaluation·is·still·done·inside·a12   ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done
14   ··FILE·····quote·block.13   ··FILE···················inside·a·quote·block.
15   ··IF14   ··IF
16   ··INC15   ··INC
17   ··IMG16   ··IMG
18   ··IMAGEURL17   ··IMAGEURL
19   ··OPT18   ··OPT
20   ··OUTPUT19   ··OUTPUT
21  [>]·QUOTE20  [>]·QUOTE
Offset 34, 18 lines modifiedOffset 33, 17 lines modified
  
  
34  page_source33  page_source
35  htp_project34  htp_project
36  htp_homepage35  htp_homepage
37 hosted·by36 hosted·by
38 Sourceforge37 Sourceforge
 38 HTML·coding·[Powered_by
39 HTML·coding 
40 [Powered_by 
41 htp]39 htp]
42 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/40 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
43 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.41 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
44 ·····Maintainers:·Jochen_Hoenicke.42 ·····Maintainers:·Jochen_Hoenicke.
45 Copyright·©·1995–96·Jim·Nelson.43 Copyright·©·1995–96·Jim·Nelson.
46 Copyright·©·2001–2014·Jochen_Hoenicke.44 Copyright·©·2001–2014·Jochen_Hoenicke.
47 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according45 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
48 to·terms·described·in·the·License_section.46 according·to·terms·described·in·the·License_section.
49 last·updated·Sat·May·16,·201547 last·updated·Sat·May·16,·2015
6.59 KB
./usr/share/doc/htp/set.html
    
Offset 114, 29 lines modifiedOffset 114, 22 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">INCLUDE</span>=<span·class="htp-string">"include.hti"</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"Jim·Nelson"</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br>
 122 &nbsp;·&nbsp;·This·tag·will·fail:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">name</span>&gt;</span><br>
121 <span·class="htp-tag">&lt;<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="undef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">UNDEF</a>·<span·class="htp-attrib">tagname1</span>·<span·class="htp-attrib">tagname2</span>·<span·class="htp-attrib">...</span>·&gt;</span><br> 
123 <br> 
124 </code></p>123 </code></p>
125 <h2>synopsis</h2>124 <h2>synopsis</h2>
126 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded125 <STRONG>SET</STRONG>·creates·a·macro·definition·that·can·later·be·expanded
127 anywhere·in·the·HTML·document.··To·create·a·macro:126 anywhere·in·the·HTML·document.··To·create·a·macro:
128 ··<p><code>127 ··<p><code>
129 &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> 
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>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>&gt;</span><br> 
131 &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>128 &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>
132 &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> 
133 &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> 
134 &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> 
135 &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> 
136 </code></p>129 </code></p>
137 <P>130 <P>
138 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">131 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">
139 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular132 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular
140 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the133 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the
141 <A·HREF="use.html">'$'</A>·operator.134 <A·HREF="use.html">'$'</A>·operator.
142 <P>135 <P>
3.12 KB
html2text {}
    
Offset 1, 43 lines modifiedOffset 1, 37 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  Tutorial4  Introduction······· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 5  License············email="jnelson@crl.com">
 6  Tutorial··········· · ·This·tag·will·fail:·<[[ref]]USE·name>
7  Usage··············*****·synopsis·*****7  Usage··············*****·synopsis·*****
8  HTP·Tags···········SET·creates·a·macro·definition·that·can·later·be·expanded8  HTP·Tags···········SET·creates·a·macro·definition·that·can·later·be·expanded
9   ··ALTTEXT········anywhere·in·the·HTML·document.·To·create·a·macro:9   ··ALTTEXT········anywhere·in·the·HTML·document.·To·create·a·macro:
10   ··BLOCK·········· ·<[[ref]]set·sect-ctr="0">10   ··BLOCK·········· · ·<[[ref]]unset·email_addr>
11   ··BLOCKDEF······· ·<[[ref]]blockdef·name="section"> 
12   ··DEF············ · ·<[[ref]]inc·sect-ctr> 
13   ··FILE··········· · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global> 
14   ··IF············· · · ·<[[ref]]use·block·noexpand> 
15   ··INC············ · ·<[[ref]]/block> 
16   ··IMG············ ·<[[ref]]/blockdef> 
17   ··IMAGEURL·······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE11   ··BLOCKDEF·······The·macro·"emailaddr"·can·then·be·expanded·later.·The·USE
18   ··OPT············tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into12   ··DEF············tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into
19   ··OUTPUT·········the·regular·text).·If·the·macro·needs·to·be·expanded13   ··FILE···········the·regular·text).·If·the·macro·needs·to·be·expanded
20   ··QUOTE··········inside·a·markup·tag,·use·the·'$'·operator.14   ··IF·············inside·a·markup·tag,·use·the·'$'·operator.
21  [>]·SET············Multiple·macros·can·be·declared·in·a·single·markup·tag,·as15   ··INC············Multiple·macros·can·be·declared·in·a·single·markup·tag,·as
22   ··UNDEF··········the·second·syntax·line·shows.16   ··IMG············the·second·syntax·line·shows.
23   ··UNSET··········SET·should·only·be·used·for·a·single·line's·worth·of·text.17   ··IMAGEURL·······SET·should·only·be·used·for·a·single·line's·worth·of·text.
24   ··USE,_$·········Multi-line·macros·can·be·defined·with·the·BLOCK·tag.·The18   ··OPT············Multi-line·macros·can·be·defined·with·the·BLOCK·tag.·The
25   ··WHILE··········BLOCK·tag·is·also·useful·if·the·macro·contains·a·quotation19   ··OUTPUT·········BLOCK·tag·is·also·useful·if·the·macro·contains·a·quotation
26   ··<!---··········character·and·you·don't·want·to·fool·around·with·special20   ··QUOTE··········character·and·you·don't·want·to·fool·around·with·special
27  History············escape·characters.21  [>]·SET············escape·characters.
28  Wish_list··········Macros·can·be·redefined·by·using·another·SET·command·with22   ··UNDEF··········Macros·can·be·redefined·by·using·another·SET·command·with
29  Bugs···············the·same·macro·name.·The·prior·definition·will·be23   ··UNSET··········the·same·macro·name.·The·prior·definition·will·be
30 ·····················destroyed,·however.·Also,·the·macro·can·be·removed24   ··USE,_$·········destroyed,·however.·Also,·the·macro·can·be·removed
31 ·····················(destroyed)·with·the·UNSET·tag.25   ··WHILE··········(destroyed)·with·the·UNSET·tag.
  
  
  
 26   ··<!---
 27  History
 28  Wish_list
 29  Bugs
  
  
  
  
  
  
  
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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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·Fri·Feb·07,·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.
10.9 KB
./usr/share/doc/htp/unset.html
    
Offset 114, 45 lines modifiedOffset 114, 47 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="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">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noexpand</span><span·class="ebnf">]</span>&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>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">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span[·...·truncated·by·diffoscope;·len:·30,·SHA:·bf88f72162ceca1a5226a940941172852979163ed14c33dbc0e7b7890785fb95·...·]</span>&gt;</span><br>
 122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/home/sharedimages/<span·class="htp-macro">${name}</span>"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"<span·class="htp-macro">${alt}</span>"</span>&gt;</span>;<br>
 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>
124 <br>124 <br>
 125 &nbsp;·<span·class="htp-tag">&lt;sharedimg·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bubble.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Bubble·image"</span>&gt;</span><br>
125 </code></p>126 </code></p>
126 <h2>synopsis</h2>127 <h2>synopsis</h2>
127 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.128 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.
128 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.129 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.
129 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or130 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or
130 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The131 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The
131 old·macro·definition·will·be·removed·automatically.)132 old·macro·definition·will·be·removed·automatically.)
132 <P>133 <P>
133 For·example:134 For·example:
134 ··<p><code>135 ··<p><code>
 136 &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>
 137 &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>
135 <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>138 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">inc</a>·<span·class="htp-attrib">sect-ctr</span>&gt;</span><br>
136 &nbsp;·&nbsp;·block<br>139 &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·cla[·...·truncated·by·diffoscope;·len:·79,·SHA:·373f24bafd8973bcc60f90f25afca4b2e396f98374c046d1bba9a03a682ba31b·...·]<br>
 140 &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>
 141 &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>
137 <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>142 &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>
138 <br> 
139 </code></p>143 </code></p>
140 <P>144 <P>
141 More·than·one·macro·may·be·removed·in·the·same·tag:145 More·than·one·macro·may·be·removed·in·the·same·tag:
142 ··<p><code>146 ··<p><code>
 147 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"header.hti"</span>&gt;</span><br>
 148 &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>
 149 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">while</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">${sect-ctr}</span></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">sect-<span·class="htp-macro">${sect-ctr}</span></span>&gt;</span><br>
143 <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>151 &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>
144 &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> 
145 <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>152 &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>
 153 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"footer.hti"</span>&gt;</span><br>
146 <br> 
147 <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> 
148 <br> 
149 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> 
150 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> 
151 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> 
152 </code></p>154 </code></p>
153 <p>155 <p>
154 </td>156 </td>
155 </tr>157 </tr>
156 <tr>158 <tr>
157 <td·width="20%"·bgcolor="white"·valign="bottom">159 <td·width="20%"·bgcolor="white"·valign="bottom">
158 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">160 ·<table·border="0"·cellspacing="0"·cellpadding="0"·width="100%">
3.37 KB
html2text {}
    
Offset 1, 39 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]]use·macroname·[parameters·...]·[noexpand]> 
5  Introduction····<...·$macroname·...> 
6  License·········<...·${macroname}·...>4 Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt">
 5  Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">;
 6  License······ ·<[[ref]]/def>
7  Tutorial7  Tutorial
 8  Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image">
8  Usage···········*****·synopsis·*****9  HTP·Tags·····*****·synopsis·*****
9  HTP·Tags········UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The10   ··ALTTEXT··UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The·macro
10   ··ALTTEXT·····macro·is·subsequently·not·available·for·use·in·the·pre-11   ··BLOCK····is·subsequently·not·available·for·use·in·the·pre-processed·files.
 12   ··BLOCKDEF·(Note·that·simply·redefining·the·macro·with·another·SET·or·BLOCK
 13   ··DEF······definition·with·the·same·name·is·acceptable.·The·old·macro
 14   ··FILE·····definition·will·be·removed·automatically.)
11   ··BLOCK·······processed·files.·(Note·that·simply·redefining·the·macro·with 
12   ··BLOCKDEF····another·SET·or·BLOCK·definition·with·the·same·name·is 
13   ··DEF·········acceptable.·The·old·macro·definition·will·be·removed 
14   ··FILE········automatically.) 
15   ··IF··········For·example:15   ··IF·······For·example:
16   ··INC·········<[[ref]]WHILE·[NOT]·conditional> 
17   ··IMG········· · ·block 
18   ··IMAGEURL····<[[ref]]/WHILE> 
19   ··OPT16   ··INC······ ·<[[ref]]set·sect-ctr="0">
 17   ··IMG······ ·<[[ref]]blockdef·name="section">
 18   ··IMAGEURL· · ·<[[ref]]inc·sect-ctr>
 19   ··OPT······ · ·<[[ref]]block·name="sect-${sect-ctr}"·expand·global>
 20   ··OUTPUT··· · · ·<[[ref]]use·block·noexpand>
 21   ··QUOTE···· · ·<[[ref]]/block>
 22   ··SET······ ·<[[ref]]/blockdef>
20   ··OUTPUT······More·than·one·macro·may·be·removed·in·the·same·tag:23   ··UNDEF····More·than·one·macro·may·be·removed·in·the·same·tag:
 24  [>]·UNSET····<[[ref]]file·include="header.hti">
 25   ··USE,_$··· ·<[[ref]]set·sect-ctr="1">
 26   ··WHILE···· ·<[[ref]]while·sect-${sect-ctr}>
 27   ··<!---···· · ·<[[ref]]use·sect-${sect-ctr}>
 28  History······ · ·<[[ref]]inc·sect-ctr>
 29  Wish_list···· ·<[[ref]]/while>
 30  Bugs·········<[[ref]]file·include="footer.hti">
21   ··QUOTE·······<[[ref]]block·stuff> 
22   ··SET········· ·<a·href=$email>send·email</a> 
23   ··UNDEF·······<[[ref]]/block> 
24  [>]·UNSET 
25   ··USE,_$······<[[ref]]set·morestuff=$email> 
26   ··WHILE 
27   ··<!---·······This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> 
28  History·········But·this·fails:·<[[ref]]use·email> 
29  Wish_list·······And·this·fails:·<[[ref]]use·morestuff 
30  Bugs············email="jnelson@crl.com"> 
  
  
  
  
  
  
  
  
Offset 52, 16 lines modifiedOffset 51, 17 lines modified
  
52  page_source51  page_source
53  htp_project52  htp_project
54  htp_homepage53  htp_homepage
55 hosted·by54 hosted·by
56 Sourceforge55 Sourceforge
57 HTML·coding56 HTML·coding
58 [Powered_by_htp]57 [Powered_by
 58 htp]
59 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/59 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
60 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.60 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
61 ·····Maintainers:·Jochen_Hoenicke.61 ·····Maintainers:·Jochen_Hoenicke.
62 Copyright·©·1995–96·Jim·Nelson.62 Copyright·©·1995–96·Jim·Nelson.
63 Copyright·©·2001–2014·Jochen_Hoenicke.63 Copyright·©·2001–2014·Jochen_Hoenicke.
64 Permission·to·reproduce·and·distribute·this·hypertext·document·granted64 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
65 according·to·terms·described·in·the·License_section.65 to·terms·described·in·the·License_section.
66 last·updated·Sat·May·16,·201566 last·updated·Sat·May·16,·2015
17.3 KB
./usr/share/doc/htp/use.html
    
Offset 114, 15 lines modifiedOffset 114, 38 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</span>&gt;</span><br>
 122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br>
 123 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;FONT·<span·class="htp-attrib">SIZE</span>=<span·class="htp-value"><span·class="htp-macro">${size}</span></span>&gt;</span><br>
 124 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 125 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IMG</a>·<span·class="htp-attrib">SRC</span>=<span·class="htp-value">pics/<span·class="htp-macro">${src}</span></span>&gt;</span><br>
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>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>&gt;</span><br>126 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">USE</a>·<span·class="htp-attrib">title</span>&gt;</span><br>
 127 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br>
 128 &nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br>
 129 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</a>&gt;</span><br>
 130 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
 131 <br>
 132 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>&gt;</span><br>
 133 <br>
 134 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Normal·sized·title"</span>&gt;</span><br>
 135 <br>
 136 &nbsp;·This·will·fail:<br>
 137 &nbsp;·<span·class="htp-tag">&lt;HEADERIMG·<span·class="htp-attrib">SRC</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">ALT</span>=<span·class="htp-string">"Our·logo"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"Another·title"</span>&gt;</span><br>
 138 <br>
 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>
122 </code></p>145 </code></p>
123 <h2>synopsis</h2>146 <h2>synopsis</h2>
124 <strong>USE</strong>·will·expand·macros·that·have·been·previously147 <strong>USE</strong>·will·expand·macros·that·have·been·previously
125 declared·with·either·<A·HREF="set.html">SET</A>·or·<A148 declared·with·either·<A·HREF="set.html">SET</A>·or·<A
126 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other149 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other
127 markup·tags.150 markup·tags.
128 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will151 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
Offset 132, 15 lines modifiedOffset 155, 15 lines modified
132 attribute·to·prevent·further·expansion.··</p>155 attribute·to·prevent·further·expansion.··</p>
133 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros156 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros
134 for·the·expanded·macro.··This·is·only·valid·for·<A157 for·the·expanded·macro.··This·is·only·valid·for·<A
135 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A158 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A
136 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For159 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For
137 example:</p>160 example:</p>
138 ··<p><code>161 ··<p><code>
139 <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">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br>162 <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>
140 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>163 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>
141 <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>164 <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>
142 <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>165 <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>
143 </code></p>166 </code></p>
144 <P>167 <P>
145 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on168 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on
146 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and169 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and
Offset 154, 18 lines modifiedOffset 177, 16 lines modified
154 Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or177 Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or
155 any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.178 any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.
156 The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or179 The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or
157 may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it180 may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it
158 replaces·the·macro·name·by·the·contents·of·the·macro·without·further181 replaces·the·macro·name·by·the·contents·of·the·macro·without·further
159 processing·the·contents.182 processing·the·contents.
160 ··<p><code>183 ··<p><code>
 184 <font·size="-2">&nbsp;1.·</font><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>
 185 <font·size="-2">&nbsp;2.·</font><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>
161 <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> 
162 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br> 
163 <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> 
164 <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> 
165 </code></p>186 </code></p>
166 <P>187 <P>
167 The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and188 The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and
168 should·never·cause·confusion·with·surrounding·text.··If·no·curly189 should·never·cause·confusion·with·surrounding·text.··If·no·curly
169 braces·are·used·the·macro·name·consists·either·of·a·single·punctuation190 braces·are·used·the·macro·name·consists·either·of·a·single·punctuation
170 character·or·the·maximum·sequence·of·letters,·digits,·&quot;-&quot;191 character·or·the·maximum·sequence·of·letters,·digits,·&quot;-&quot;
171 and·&quot;_&quot;·that·follows·it.192 and·&quot;_&quot;·that·follows·it.
9.39 KB
html2text {}
    
Offset 1, 75 lines modifiedOffset 1, 87 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·USE,·$·******2 ******·htp·on-line·reference·:·USE,·$·******
3 Table_of_Contents·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4  Introduction·········· · ·<[[ref]]unset·email_addr·home_url·login_name>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">
5  License···············*****·synopsis·*****28  History······*****·synopsis·*****
6  Tutorial··············USE·will·expand·macros·that·have·been·previously 
7  Usage·················declared·with·either·SET·or·BLOCK.·USE·can·only·be 
8  HTP·Tags··············used·outside·of·other·markup·tags.29  Wish_list····USE·will·expand·macros·that·have·been·previously·declared·with
 30  Bugs·········either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other·markup
 31 ···············tags.
9   ··ALTTEXT···········If·you·USE·a·block·macro·the·value·of·expanded32 ···············If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
 33 ···············be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for
 34 ···············example,·if·the·use·is·inside·a·block·which·expands·itself.·You
10   ··BLOCK·············block·macros·will·be·further·parsed·by·htp.·This·is 
11   ··BLOCKDEF··········maybe·not·what·you·want,·for·example,·if·the·use·is 
12   ··DEF···············inside·a·block·which·expands·itself.·You·can·use 
13   ··FILE··············the·noexpand·attribute·to·prevent·further35 ···············can·use·the·noexpand·attribute·to·prevent·further·expansion.
14   ··IF················expansion. 
15   ··INC···············USE·will·accept·additional·parameters,·which·are36 ···············USE·will·accept·additional·parameters,·which·are·"local"·macros
16   ··IMG···············"local"·macros·for·the·expanded·macro.·This·is·only 
17   ··IMAGEURL··········valid·for·BLOCK·macros.·Macros·created·using·SET 
18   ··OPT···············cannot·have·parameters·passed.·For·example: 
19   ··OUTPUT············ 1. ·<[[ref]]WHILE·NOT·i="10">37 ···············for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros.
 38 ···············Macros·created·using·SET·cannot·have·parameters·passed.·For
 39 ···············example:
 40 ··············· 1. ·<[[ref]]WHILE·sect-$i>
20   ··QUOTE············· 2. · ·...41 ··············· 2. · ·...
21   ··SET··············· 3. · ·<[[ref]]INC·i>42 ··············· 3. · ·<[[ref]]INC·i>
22   ··UNDEF············· 4. ·<[[ref]]/WHILE>43 ··············· 4. ·<[[ref]]/WHILE>
23   ··UNSET·············(See·below·for·a·description·of·the·'$'·operator.)44 ···············(See·below·for·a·description·of·the·'$'·operator.)·The·example·on
 45 ···············line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,
24  [>]·USE,_$············The·example·on·line·7·works·because·"stuff"·has 
25   ··WHILE·············been·declared·as·a·block·macro,·and·the·tag·is 
26   ··<!---·············passing·the·"email"·macro·to·the·"stuff"·macro.46 ···············and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.
27  History···············Line·8·fails·because·the·"email"·macro·is47 ···············Line·8·fails·because·the·"email"·macro·is·unavailable·once·the
28  Wish_list·············unavailable·once·the·block·macro·is·completely 
29  Bugs··················expanded,·and·cannot·be·passed·to·a·SET·macro.48 ···············block·macro·is·completely·expanded,·and·cannot·be·passed·to·a·SET
 49 ···············macro.
30 ························Note·that·the·"email"·macro·is·available·to·other50 ···············Note·that·the·"email"·macro·is·available·to·other·macros·or
31 ························macros·or·included·files·called·within·the·"stuff"51 ···············included·files·called·within·the·"stuff"·block.
32 ························block. 
33 ························Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any52 ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard
 53 ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should·be
34 ························other·standard·HTML·or·htp·tag,·the·'$'·operator 
35 ························must·be·used.·The·'$'·should·be·immediately 
36 ························followed·by·the·macro·name,·which·may·or·may·not·be54 ···············immediately·followed·by·the·macro·name,·which·may·or·may·not·be
37 ························surrounded·by·curly·braces.·When·htp·encounters55 ···············surrounded·by·curly·braces.·When·htp·encounters·this·it·replaces
 56 ···············the·macro·name·by·the·contents·of·the·macro·without·further
 57 ···············processing·the·contents.
 58 ··············· 1.<a·href="mailto:$email">mailto·hyperlink</a>
 59 ··············· 2.<a·href="http://$domain/~${username}/">another·hyperlink</a>
38 ························this·it·replaces·the·macro·name·by·the·contents·of 
39 ························the·macro·without·further·processing·the·contents. 
40 ························ 1. ·<[[ref]]WHILE·sect-$i> 
41 ························ 2. · ·... 
42 ························ 3. · ·<[[ref]]INC·i> 
43 ························ 4. ·<[[ref]]/WHILE> 
44 ························The·use·of·curly·braces·is·encouraged,·since·it·is60 ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and
 61 ···············should·never·cause·confusion·with·surrounding·text.·If·no·curly
45 ························more·robust·and·should·never·cause·confusion·with 
46 ························surrounding·text.·If·no·curly·braces·are·used·the 
47 ························macro·name·consists·either·of·a·single·punctuation62 ···············braces·are·used·the·macro·name·consists·either·of·a·single
48 ························character·or·the·maximum·sequence·of·letters,63 ···············punctuation·character·or·the·maximum·sequence·of·letters,·digits,
49 ························digits,·"-"·and·"_"·that·follows·it.64 ···············"-"·and·"_"·that·follows·it.
50 ························If·a·'$'·character·needs·to·be·kept·in·the·final65 ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and·not
 66 ···············interpreted·as·a·macro·name,·it·must·be·escaped·by·another·'$'
51 ························output,·and·not·interpreted·as·a·macro·name,·it 
52 ························must·be·escaped·by·another·'$'·character.·This·is 
53 ························especially·true·for·PHP·code.67 ···············character.·This·is·especially·true·for·PHP·code.
54 ························If·the·'$'·macro·is·the·only·text·in·the68 ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp
 69 ···············will·automatically·surround·it·with·quotation·marks·to·prevent
55 ························attribute's·value,·htp·will·automatically·surround 
56 ························it·with·quotation·marks·to·prevent·spaces·from 
57 ························delimiting·the·text·as·if·it·were·additional·markup70 ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup
58 ························attributes.·If·the·'$'·macro·is·surrounded·by·other71 ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in
59 ························text·(as·in·the·two·examples·above),·quotation 
60 ························marks·are·not·automatically·supplied.72 ···············the·two·examples·above),·quotation·marks·are·not·automatically
 73 ···············supplied.
61 ························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a74 ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and
62 ························markup·tag·and·can·be·nested.·This·is·valid:75 ···············can·be·nested.·This·is·valid:
63 ························ · ·<${tagName}·${attrName}=${value$ctr}>76 ··············· · ·<${tagName}·${attrName}=${value$ctr}>
64 ························The·tagName·macro·can·contain·any·tag·name,·even·a77 ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined
 78 ···············metatag.·Note·that·$ctr·is·expanded·before·the·valueX·macro·is
65 ························self-defined·metatag.·Note·that·$ctr·is·expanded 
66 ························before·the·valueX·macro·is·expanded,·so·assuming 
67 ························that·ctr·was·set·to·1·it·will·expand·value1.79 ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand·value1.
  
  
  
  
  
  
  
Offset 87, 17 lines modifiedOffset 99, 18 lines modified
  
  
87  page_source99  page_source
88  htp_project100  htp_project
89  htp_homepage101  htp_homepage
90 hosted·by102 hosted·by
91 Sourceforge103 Sourceforge
92 HTML·coding·[Powered 
93 by_htp]104 HTML·coding
Max diff block lines reached; 452/9589 bytes (4.71%) of diff not shown.
14.1 KB
./usr/share/doc/htp/while.html
    
Offset 114, 46 lines modifiedOffset 114, 64 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">DEF</a>·<span·class="htp-attrib">NAME</span>=<span·class="htp-string">"HEADERIMG"</span>·<span·class="htp-attrib">OPTION</span>=<span·class="htp-string">"SRC·TITLE·SIZE"</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">stuff</span>&gt;</span><br>122 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">size</span>&gt;</span><br>
122 &nbsp;·<span·class="htp-tag">&lt;a·<span·class="htp-attrib">href</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span>send·email<span·class="htp-tag">&lt;/a&gt;</span><br>123 &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="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="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/DEF</a>&gt;</span><br>
124 <br>131 <br>
125 <span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span><br>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-strin[·...·truncated·by·diffoscope;·len:·12,·SHA:·714f1f9d2ec8610cbbe06f591403719fc78cc03fa46849b1190c8ee348829dba·...·]</span>&gt;</span><br>
126 <br>133 <br>
127 This·works:·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnel[·...·truncated·by·diffoscope;·len:·11,·SHA:·ef5c9be6721ea8f4ae5eb4739ec8c34dec41f76a3482026d4ab231c0db04a6ca·...·]"</span>&gt;</span><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>
128 But·this·fails:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">email</span>&gt;</span><br>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>
129 And·this·fails:·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">morestuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@cr[·...·truncated·by·diffoscope;·len:·24,·SHA:·4e131bcf89379a444b3c75f4d7039b06d7607d129745c418a029bf398ef5bc68·...·]<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>
130 </code></p>145 </code></p>
131 <h2>synopsis</h2>146 <h2>synopsis</h2>
132 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.147 <STRONG>WHILE</STRONG>·is·the·building·block·for·repeated·processing.
133 The·basic·form·is·shown·above.148 The·basic·form·is·shown·above.
134 <P>149 <P>
135 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.150 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.
136 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.151 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.
137 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the152 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the
138 conditional·is·reversed:153 conditional·is·reversed:
139 ··<p><code>154 ··<p><code>
140 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">NOT</span>·<span·class="htp-attrib">i</span>=<span·class="htp-string">"10"</span>&gt;</span><br> 
141 &nbsp;·&nbsp;·...<br> 
142 &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>155 <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>
 156 &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>
143 &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>157 <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>
 158 <br>
 159 <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>
 160 <br>
 161 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>
 162 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>
 163 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>164 </code></p>
145 <P>165 <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·a166 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:167 macro's·existance:
148 ··<p><code>168 ··<p><code>
 169 <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>
 170 <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;·<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> 
150 &nbsp;·&nbsp;·...<br> 
151 &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> 
152 &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> 
153 </code></p>171 </code></p>
154 <P>172 <P>
155 If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the173 If·the·condition·is·true,·the·block·is·evaluated·and·afterwards·the
156 WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the174 WHILE·tag·is·evaluated·again.··If·the·'$'-operator·is·used·in·the
157 WHILE·tag·it·is·also·reevaluated·on·each·iteration.175 WHILE·tag·it·is·also·reevaluated·on·each·iteration.
158 <P>176 <P>
159 A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag.177 A·loop·block·<EM>must</EM>·be·closed·with·the·/WHILE·tag.
4.62 KB
html2text {}
    
Offset 1, 45 lines modifiedOffset 1, 58 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·······*****·syntax·*****
4 Contents··········<[[ref]]block·stuff> 
5  Introduction···· ·<a·href=$email>send·email</a> 
6  License·········<[[ref]]/block> 
7  Tutorial 
8  Usage···········<[[ref]]set·morestuff=$email> 
9  HTP·Tags 
10   ··ALTTEXT·····This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com"> 
11   ··BLOCK·······But·this·fails:·<[[ref]]use·email> 
12   ··BLOCKDEF····And·this·fails:·<[[ref]]use·morestuff 
13   ··DEF·········email="jnelson@crl.com"> 
14   ··FILE········*****·synopsis·***** 
15   ··IF··········WHILE·is·the·building·block·for·repeated·processing.·The 
16   ··INC·········basic·form·is·shown·above. 
17   ··IMG·········"Conditional"·is·either·a·"compare"·or·"is·defined" 
18   ··IMAGEURL····operation.·A·compare·operator·is·a·test·of·the·value·of·a 
19   ··OPT·········macro·against·a·literal·string.·If·the·NOT·tag·is·present·in 
20   ··OUTPUT······the·WHILE·markup,·the·evaluation·of·the·conditional·is 
21   ··QUOTE·······reversed: 
22   ··SET········· ·<[[ref]]WHILE·NOT·i="10"> 
23   ··UNDEF······· · ·... 
24   ··UNSET······· · ·<[[ref]]INC·i>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]]/WHILE>25   ··USE,_$··· ·<[[ref]]/DEF>
26  [>]·WHILE·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's 
27   ··<!---·······existance: 
28  History········· ·<[[ref]]WHILE·sect-$i> 
29  Wish_list······· · ·... 
30  Bugs············ · ·<[[ref]]INC·i>26  [>]·WHILE···· · 
 27   ··<!---···· ·<MYIMG·SRC="logo.gif"·ALT="Our·logo">
 28  History······*****·synopsis·*****
 29  Wish_list····WHILE·is·the·building·block·for·repeated·processing.·The·basic
 30  Bugs·········form·is·shown·above.
 31 ···············"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A
 32 ···············compare·operator·is·a·test·of·the·value·of·a·macro·against·a
 33 ···············literal·string.·If·the·NOT·tag·is·present·in·the·WHILE·markup,·the
 34 ···············evaluation·of·the·conditional·is·reversed:
 35 ···············<[[ref]]block·stuff>
 36 ··············· ·<a·href=$email>send·email</a>
31 ·················· ·<[[ref]]/WHILE>37 ···············<[[ref]]/block>
32 ··················If·the·condition·is·true,·the·block·is·evaluated·and 
33 ··················afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'- 
34 ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on 
35 ··················each·iteration. 
36 ··················A·loop·block·must·be·closed·with·the·/WHILE·tag. 
  
 38 ···············<[[ref]]set·morestuff=$email>
  
 39 ···············This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
 40 ···············But·this·fails:·<[[ref]]use·email>
 41 ···············And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com">
 42 ···············Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's·existance:
 43 ···············<a·href="mailto:$email">mailto·hyperlink</a>
 44 ···············<a·href="http://$domain/~${username}/">another·hyperlink</a>
 45 ···············If·the·condition·is·true,·the·block·is·evaluated·and·afterwards
 46 ···············the·WHILE·tag·is·evaluated·again.·If·the·'$'-operator·is·used·in
 47 ···············the·WHILE·tag·it·is·also·reevaluated·on·each·iteration.
 48 ···············A·loop·block·must·be·closed·with·the·/WHILE·tag.
  
  
  
  
  
  
  
Offset 58, 16 lines modifiedOffset 71, 17 lines modified
  
58  page_source71  page_source
59  htp_project72  htp_project
60  htp_homepage73  htp_homepage
61 hosted·by74 hosted·by
62 Sourceforge75 Sourceforge
63 HTML·coding76 HTML·coding
64 [Powered_by_htp]77 [Powered_by
 78 htp]
65 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/79 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
66 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.80 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
67 ·····Maintainers:·Jochen_Hoenicke.81 ·····Maintainers:·Jochen_Hoenicke.
68 Copyright·©·1995–96·Jim·Nelson.82 Copyright·©·1995–96·Jim·Nelson.
69 Copyright·©·2001–2014·Jochen_Hoenicke.83 Copyright·©·2001–2014·Jochen_Hoenicke.
70 Permission·to·reproduce·and·distribute·this·hypertext·document·granted84 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according
71 according·to·terms·described·in·the·License_section.85 to·terms·described·in·the·License_section.
72 last·updated·Sat·May·16,·201586 last·updated·Sat·May·16,·2015