229 KB
/srv/reproducible-results/rbuild-debian/r-b-build.iBBitfo5/b1/htp_1.19-8_arm64.changes vs.
/srv/reproducible-results/rbuild-debian/r-b-build.iBBitfo5/b2/htp_1.19-8_arm64.changes
264 B
Files
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
  
1 ·775750816c4512e0e2cf0d189b33beed·69840·debug·optional·htp-dbgsym_1.19-8_arm64.deb1 ·775750816c4512e0e2cf0d189b33beed·69840·debug·optional·htp-dbgsym_1.19-8_arm64.deb
2 ·df6c0e5bddbae0a741cf661d3051a96f·116092·web·optional·htp_1.19-8_arm64.deb2 ·2786079731b24af44602aff38b653a7e·116524·web·optional·htp_1.19-8_arm64.deb
229 KB
htp_1.19-8_arm64.deb
452 B
file list
    
Offset 1, 3 lines modifiedOffset 1, 3 lines modified
1 -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary1 -rw-r--r--···0········0········0········4·2020-06-14·23:21:19.000000·debian-binary
2 -rw-r--r--···0········0········0·····3608·2020-06-14·23:21:19.000000·control.tar.xz2 -rw-r--r--···0········0········0·····3616·2020-06-14·23:21:19.000000·control.tar.xz
3 -rw-r--r--···0········0········0···112292·2020-06-14·23:21:19.000000·data.tar.xz3 -rw-r--r--···0········0········0···112716·2020-06-14·23:21:19.000000·data.tar.xz
563 B
control.tar.xz
535 B
control.tar
465 B
./control
    
Offset 1, 12 lines modifiedOffset 1, 12 lines modified
1 Package:·htp1 Package:·htp
2 Version:·1.19-82 Version:·1.19-8
3 Architecture:·arm643 Architecture:·arm64
4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>4 Maintainer:·Marcelo·Soares·Mota·<motasmarcelo@gmail.com>
5 Installed-Size:·6475 Installed-Size:·662
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
228 KB
data.tar.xz
228 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)····67816·2020-06-14·23:21:19.000000·./usr/bin/htp4 -rwxr-xr-x···0·root·········(0)·root·········(0)····67816·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)····12414·2020-06-14·23:21:19.000000·./usr/share/doc/htp/alttext.html8 -rw-r--r--···0·root·········(0)·root·········(0)·····9201·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)····11050·2020-06-14·23:21:19.000000·./usr/share/doc/htp/block.html10 -rw-r--r--···0·root·········(0)·root·········(0)·····9256·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)····11867·2020-06-14·23:21:19.000000·./usr/share/doc/htp/blockdef.html12 -rw-r--r--···0·root·········(0)·root·········(0)····15071·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)·····9160·2020-06-14·23:21:19.000000·./usr/share/doc/htp/comment.html17 -rw-r--r--···0·root·········(0)·root·········(0)····13195·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)····11994·2020-06-14·23:21:19.000000·./usr/share/doc/htp/def.html20 -rw-r--r--···0·root·········(0)·root·········(0)····14165·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)····10816·2020-06-14·23:21:19.000000·./usr/share/doc/htp/expand.html39 -rw-r--r--···0·root·········(0)·root·········(0)····11752·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)····13465·2020-06-14·23:21:19.000000·./usr/share/doc/htp/file.html41 -rw-r--r--···0·root·········(0)·root·········(0)····17356·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)·····9313·2020-06-14·23:21:19.000000·./usr/share/doc/htp/if.html48 -rw-r--r--···0·root·········(0)·root·········(0)····12817·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)····10382·2020-06-14·23:21:19.000000·./usr/share/doc/htp/imageurl.html50 -rw-r--r--···0·root·········(0)·root·········(0)····11797·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)····11448·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)·····9504·2020-06-14·23:21:19.000000·./usr/share/doc/htp/inc.html54 -rw-r--r--···0·root·········(0)·root·········(0)·····9559·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)····16792·2020-06-14·23:21:19.000000·./usr/share/doc/htp/metatag.html67 -rw-r--r--···0·root·········(0)·root·········(0)····14776·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)·····7911·2020-06-14·23:21:19.000000·./usr/share/doc/htp/opt.html69 -rw-r--r--···0·root·········(0)·root·········(0)····11327·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)·····7777·2020-06-14·23:21:19.000000·./usr/share/doc/htp/output.html73 -rw-r--r--···0·root·········(0)·root·········(0)·····9337·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)·····7959·2020-06-14·23:21:19.000000·./usr/share/doc/htp/quote.html86 -rw-r--r--···0·root·········(0)·root·········(0)·····8008·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)·····8890·2020-06-14·23:21:19.000000·./usr/share/doc/htp/set.html88 -rw-r--r--···0·root·········(0)·root·········(0)·····8739·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)·····8633·2020-06-14·23:21:19.000000·./usr/share/doc/htp/undef.html109 -rw-r--r--···0·root·········(0)·root·········(0)·····7759·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)····10904·2020-06-14·23:21:19.000000·./usr/share/doc/htp/unset.html111 -rw-r--r--···0·root·········(0)·root·········(0)·····9337·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)····11448·2020-06-14·23:21:19.000000·./usr/share/doc/htp/use.html115 -rw-r--r--···0·root·········(0)·root·········(0)····12088·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)·····9257·2020-06-14·23:21:19.000000·./usr/share/doc/htp/while.html117 -rw-r--r--···0·root·········(0)·root·········(0)····10341·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/
10.1 KB
./usr/share/doc/htp/alttext.html
    
Offset 114, 45 lines modifiedOffset 114, 42 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 <span·class="htp-tag">&lt;<a·href="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">"imagename"</span>·<span·class="ebnf">[</span>·<span·class="htp-attrib">text</span>=<span·class="htp-string">"imagetext"</span>·<span·class="ebnf">]</span>&gt;</span><br>
121 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="ebnf">[</span><span·class="htp-attrib">parameters</span>·<span·class="htp-attrib">...</span><span·class="ebnf">]</span>&gt;</span><br> 
123 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>&gt;</span><br> 
124 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>&gt;</span><br> 
125 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
126 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
127 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>&gt;</span><br> 
128 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>&gt;</span><br> 
129 <br>122 <br>
130 </code></p>123 </code></p>
131 <h2>synopsis</h2>124 <h2>synopsis</h2>
132 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A125 <strong>ALTTEXT</strong>·declares·an·ALT·attribute·for·any·<A
133 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.126 HREF="img.html">IMG</A>·tag·with·a·SRC·matching·the·ALTTEXT·NAME.
134 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the127 Since·relative·paths·can·be·used·to·point·to·the·same·image,·only·the
135 filename·is·considered·in·all·comparisons.128 filename·is·considered·in·all·comparisons.
136 <p>129 <p>
137 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT130 When·an·IMG·tag·with·a·matching·source·is·encountered,·htp·will·add·an·ALT
138 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to131 attribute·only·if·one·is·not·already·present.··This·allows·for·ALT·text·to
139 be·overridden·on·specific·images·and·default·text·on·all·others.132 be·overridden·on·specific·images·and·default·text·on·all·others.
140 <p>133 <p>
141 For·example:134 For·example:
142 ··<p><code>135 ··<p><code>
143 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bigfont"</span>&gt;</span><br>136 <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>
 137 &nbsp;·&nbsp;·block·#1<br>
 138 [<br>
144 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;font·<span·class="htp-attrib">size</span>=<span·class="htp-string">"+4"</span>&gt;</span><br>139 <span·class="htp-tag">&lt;ELSEIF·<span·class="htp-attrib">[NOT]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br>
 140 &nbsp;·&nbsp;·block·#2<br>
 141 ...<br>
 142 ]<br>
 143 [<br>
 144 <span·class="htp-tag">&lt;ELSE&gt;</span><br>
 145 &nbsp;·&nbsp;·block·#3<br>
 146 ]<br>
145 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>147 <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>
146 <br>148 <br>
147 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"/bigfont"</span>&gt;</span><br> 
148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/font&gt;</span><br> 
149 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
150 <br> 
151 &nbsp;·<span·class="htp-tag">&lt;bigfont&gt;</span>Some·large·text<span·class="htp-tag">&lt;/bigfont&gt;</span><br> 
152 </code></p>149 </code></p>
153 <p>150 <p>
154 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT151 An·ALTTEXT·tag·with·a·name·but·no·text·attribute·removes·any·ALT
155 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not152 mapping·for·this·image.··Successing·IMG·tags·with·a·matching·SRC·name·are·not
156 changed.153 changed.
157 <p>154 <p>
158 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,155 Since·this·is·useful·for·an·image·used·throughout·a·set·of·documents,
3.95 KB
html2text {}
    
Offset 1, 46 lines modifiedOffset 1, 39 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·ALTTEXT·******2 ******·htp·on-line·reference·:·ALTTEXT·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]file·execute="command-line"4  Introduction···············<[[ref]]alttext·name="imagename"
 5  License····················[·text="imagetext"·]>
 6  Tutorial
5  License····················(output="filename"·|·redirect)·[noerror]> 
6  Tutorial···················<[[ref]]file·include="includefilename"·[parameters 
7  Usage······················...]> 
8  HTP·Tags···················<[[ref]]file·name> 
9  [>]·ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= 
10   ··BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> 
11   ··BLOCKDEF···············<[[ref]]file·[·name="filename"·]·time[·="format" 
12   ··DEF····················]> 
13   ··FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" 
14   ··IF·····················]> 
15   ··INC····················<[[ref]]file·search="searchpath"> 
16   ··IMG····················<[[ref]]file·template="templatefilename"> 
17   ··IMAGEURL 
18   ··OPT····················*****·synopsis·*****7  Usage······················*****·synopsis·*****
19   ··OUTPUT·················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag8  HTP·Tags···················ALTTEXT·declares·an·ALT·attribute·for·any·IMG·tag
20   ··QUOTE··················with·a·SRC·matching·the·ALTTEXT·NAME.·Since9  [>]·ALTTEXT················with·a·SRC·matching·the·ALTTEXT·NAME.·Since
21   ··SET····················relative·paths·can·be·used·to·point·to·the·same10   ··BLOCK··················relative·paths·can·be·used·to·point·to·the·same
22   ··UNDEF··················image,·only·the·filename·is·considered·in·all11   ··BLOCKDEF···············image,·only·the·filename·is·considered·in·all
23   ··UNSET··················comparisons.12   ··DEF····················comparisons.
24   ··USE,_$·················When·an·IMG·tag·with·a·matching·source·is13   ··FILE···················When·an·IMG·tag·with·a·matching·source·is
25   ··WHILE··················encountered,·htp·will·add·an·ALT·attribute·only·if14   ··IF·····················encountered,·htp·will·add·an·ALT·attribute·only·if
26   ··<!---··················one·is·not·already·present.·This·allows·for·ALT15   ··INC····················one·is·not·already·present.·This·allows·for·ALT
27  History····················text·to·be·overridden·on·specific·images·and16   ··IMG····················text·to·be·overridden·on·specific·images·and
28  Wish_list··················default·text·on·all·others.17   ··IMAGEURL···············default·text·on·all·others.
29  Bugs·······················For·example:18   ··OPT····················For·example:
30 ····························· ·<[[ref]]def·name="bigfont"> 
31 ····························· · ·<font·size="+4">19   ··OUTPUT·················<[[ref]]IF·[NOT]·conditional>
 20   ··QUOTE·················· · ·block·#1
 21   ··SET····················[
 22   ··UNDEF··················<ELSEIF·[NOT]·conditional>
 23   ··UNSET·················· · ·block·#2
 24   ··USE,_$·················...
 25   ··WHILE··················]
 26   ··<!---··················[
 27  History····················<ELSE>
 28  Wish_list·················· · ·block·#3
 29  Bugs·······················]
32 ····························· ·<[[ref]]/def>30 ·····························<[[ref]]/IF>
  
33 ····························· ·<[[ref]]def·name="/bigfont"> 
34 ····························· · ·</font> 
35 ····························· ·<[[ref]]/def> 
  
36 ····························· ·<bigfont>Some·large·text</bigfont> 
37 ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute31 ·····························An·ALTTEXT·tag·with·a·name·but·no·text·attribute
38 ·····························removes·any·ALT·mapping·for·this·image.·Successing32 ·····························removes·any·ALT·mapping·for·this·image.·Successing
39 ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed.33 ·····························IMG·tags·with·a·matching·SRC·name·are·not·changed.
40 ·····························Since·this·is·useful·for·an·image·used·throughout34 ·····························Since·this·is·useful·for·an·image·used·throughout
41 ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in35 ·····························a·set·of·documents,·ALTTEXT·is·most·appropriate·in
42 ·····························an·include_file·or·a·default_file.36 ·····························an·include_file·or·a·default_file.
43 ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically37 ·····························In·addition·to·ALTTEXT,·htp·can·also·automatically
8.09 KB
./usr/share/doc/htp/block.html
    
Offset 114, 23 lines modifiedOffset 114, 24 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">execute</span>=<span·class="htp-string">"command-line"</span>·<span·class="ebnf">(</span><span·class="htp-attrib">output</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">|</span>·<span·class="htp-attrib">redirect</span><span·class="ebnf">)</span>·<span·class="ebnf">[</span><span·class="htp-attrib">noerror</span><span·class="ebnf">]</span>&gt;</span><br> 
122 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">include</span>=<span·class="htp-string">"includefilename"</span>·<span·class="ebnf">[</span><span·class="[·...·truncated·by·diffoscope;·len:·85,·SHA:·66c7be3d1037f76940608360d9f760b093d17a96d956a23a21c2c94befb708c1·...·]</span>&gt;</span><br>121 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"section"</span>·<span·class="htp-attrib">option</spa[·...·truncated·by·diffoscope;·len:·35,·SHA:·522b4fc484266d5aa22f655093d608107c1674273b0445ff5995f98cfb04a20a·...·]</span>&gt;</span><br>
 122 &nbsp;·&nbsp;<span·class="htp-tag">&lt;h1&gt;</span><span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">title</span>&gt;</span><span·class="htp-tag">&lt;/h1&gt;</span><br>
 123 &nbsp;·&nbsp;<span·class="htp-tag">&lt;p·<span·class="htp-attrib">class</span>=<span·class="htp-string">"section"</span>&gt;</span><br>
123 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">name</span>&gt;</span><br>124 &nbsp;·&nbsp;·&nbsp;<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br>
 125 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/p&gt;</span><br>
 126 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
124 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">size</span><span·class="ebnf">[</span>·=<span·class="htp-value"></span>·<span·class="ebnf">(</span><span·class="htp-attrib">byte</span><span·class="ebnf">|</span><span·class="htp-attrib">kbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">mbyte</span><span·class="ebnf">|</span><span·class="htp-attrib">gbyte</span><span·class="ebnf">)</span>·<span·class="ebnf">]</span>·<span·class="ebnf">[</span><span·class="htp-attrib">precision</span>=<span·class="htp-value">n<span·class="ebnf">]</span></span>&gt;</span><br> 
125 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">time</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
126 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="ebnf">[</span>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"filename"</span>·<span·class="ebnf">]</span>·<span·class="htp-attrib">date</span><span·class="ebnf">[</span>·=<span·class="htp-string">"format"</span>·<span·class="ebnf">]</span>&gt;</span><br> 
127 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">search</span>=<span·class="htp-string">"searchpath"</span>&gt;</span><br> 
128 <span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">file</a>·<span·class="htp-attrib">template</span>=<span·class="htp-string">"templatefilename"</span>&gt;</span><br> 
129 <br>127 <br>
 128 &nbsp;·<span·class="htp-tag">&lt;section·<span·class="htp-attrib">title</span>=<span·class="htp-string">"My·Section"</span>&gt;</span><br>
 129 &nbsp;·&nbsp;·This·is·a·fancy·section.<br>
 130 &nbsp;·<span·class="htp-tag">&lt;/section&gt;</span><br>
130 </code></p>131 </code></p>
131 <h2>synopsis</h2>132 <h2>synopsis</h2>
132 <P>133 <P>
133 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which134 <STRONG>BLOCK·and·/BLOCK</STRONG>·are·used·to·create·block·macros,·which
134 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be135 are·similar·in·use·to·<A·HREF="set.html">SET</A>·macros,·but·can·be
135 multi-line·definitions.136 multi-line·definitions.
136 </P>137 </P>
3.19 KB
html2text {}
    
Offset 1, 41 lines modifiedOffset 1, 37 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******2 ******·htp·on-line·reference·:·BLOCK,·/BLOCK·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]file·execute="command-line" 
5  License····················(output="filename"·|·redirect)·[noerror]> 
6  Tutorial···················<[[ref]]file·include="includefilename"·[parameters 
7  Usage······················...]> 
8  HTP·Tags···················<[[ref]]file·name> 
9   ··ALTTEXT················<[[ref]]file·[·name="filename"·]·size[·= 
10  [>]·BLOCK··················(byte|kbyte|mbyte|gbyte)·]·[precision=n]> 
11   ··BLOCKDEF···············<[[ref]]file·[·name="filename"·]·time[·="format"4  Introduction··············· ·<[[ref]]blockdef·name="section"·option="title">
 5  License···················· · <h1><[[ref]]use·title></h1>
 6  Tutorial··················· · <p·class="section">
 7  Usage······················ · · <[[ref]]use·block>
 8  HTP·Tags··················· · </p>
 9   ··ALTTEXT················ ·<[[ref]]/blockdef>
 10  [>]·BLOCK
 11   ··BLOCKDEF··············· ·<section·title="My·Section">
 12   ··DEF···················· · ·This·is·a·fancy·section.
12   ··DEF····················]>13   ··FILE··················· ·</section>
13   ··FILE···················<[[ref]]file·[·name="filename"·]·date[·="format" 
14   ··IF·····················]> 
15   ··INC····················<[[ref]]file·search="searchpath"> 
16   ··IMG····················<[[ref]]file·template="templatefilename"> 
17   ··IMAGEURL 
18   ··OPT····················*****·synopsis·*****14   ··IF·····················*****·synopsis·*****
19   ··OUTPUT·················BLOCK·and·/BLOCK·are·used·to·create·block·macros,15   ··INC····················BLOCK·and·/BLOCK·are·used·to·create·block·macros,
20   ··QUOTE··················which·are·similar·in·use·to·SET·macros,·but·can·be16   ··IMG····················which·are·similar·in·use·to·SET·macros,·but·can·be
21   ··SET····················multi-line·definitions.17   ··IMAGEURL···············multi-line·definitions.
22   ··UNDEF··················Any·text·and·formatting·may·be·set·inside·the18   ··OPT····················Any·text·and·formatting·may·be·set·inside·the
23   ··UNSET··················block.·You·can·use·any·htp·or·user·defined·metatag19   ··OUTPUT·················block.·You·can·use·any·htp·or·user·defined·metatag
24   ··USE,_$·················including·FILE_INCLUDE.·The·metatags·won't·be20   ··QUOTE··················including·FILE_INCLUDE.·The·metatags·won't·be
25   ··WHILE··················expanded·before·the·block·is·USEd·except·if·you21   ··SET····················expanded·before·the·block·is·USEd·except·if·you
26   ··<!---··················give·the·EXPAND·parameter.22   ··UNDEF··················give·the·EXPAND·parameter.
27  History····················The·block·macro·is·dereferenced·(expanded)·with23   ··UNSET··················The·block·macro·is·dereferenced·(expanded)·with
28  Wish_list··················the·USE_tag_or_the_'$'_operator.·See·the·notes·on24   ··USE,_$·················the·USE_tag_or_the_'$'_operator.·See·the·notes·on
29  Bugs·······················the·USE·tag·on·how·to·pass·parameters·to·a·block25   ··WHILE··················the·USE·tag·on·how·to·pass·parameters·to·a·block
30 ·····························macro.26   ··<!---··················macro.
  
  
 27  History
 28  Wish_list
 29  Bugs
  
  
  
  
  
  
  
16.9 KB
./usr/share/doc/htp/blockdef.html
    
Offset 114, 59 lines modifiedOffset 114, 54 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·<span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">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>
121 <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="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br> 
122 &nbsp;·&nbsp;·block·#1<br> 
123 [<br> 
124 <span·class="htp-tag">&lt;ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br> 
125 &nbsp;·&nbsp;·block·#2<br> 
126 ...<br> 
127 ]<br> 
128 [<br> 
129 <span·class="htp-tag">&lt;ELSE&gt;</span><br> 
130 &nbsp;·&nbsp;·block·#3<br> 
131 ]<br> 
132 <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>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>
133 <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>
134 </code></p>149 </code></p>
135 <h2>synopsis</h2>150 <h2>synopsis</h2>
136 <strong>BLOCKDEF</strong>·creates·block·<A151 <strong>BLOCKDEF</strong>·creates·block·<A
137 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it152 HREF="metatag.html">metatags</A>,·which·is·a·fancy·way·of·saying·it
138 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block153 creates·new·block·tags.··A·block·tag·is·a·tag·that·takes·a·whole·block
139 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and154 as·additional·parameter.··This·block·is·surrounded·by·&lt;tagname&gt;·and
140 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored155 &lt;/tagname&gt;.··The·contents·of·this·block·are·automatically·stored
141 in·the·block·macro·named·BLOCK.156 in·the·block·macro·named·BLOCK.
142 <P>·For·example:</P>157 <P>·For·example:</P>
143 ··<p><code>158 ··<p><code>
 159 &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>
 160 &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>
144 &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> 
145 &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> 
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">"logo.gif"</span>&gt;</span><br> 
148 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br> 
149 &nbsp;·(no·URL·replacement).<br> 
150 <br> 
151 &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> 
152 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br> 
153 <br> 
154 &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> 
155 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br> 
156 &nbsp;·will·not·be·added.<br> 
157 <br> 
158 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br> 
159 &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> 
160 &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> 
161 <br> 
162 &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> 
163 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br> 
164 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br> 
165 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br> 
166 </code></p>161 </code></p>
167 <p>162 <p>
168 All·block·metatags·have·the·implicit·option·<a163 All·block·metatags·have·the·implicit·option·<a
169 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents164 href="expand.html">EXPAND</A>,·which·tells·htp·to·expand·the·contents
170 of·the·block·before·the·definition·is·expanded.165 of·the·block·before·the·definition·is·expanded.
171 </p>166 </p>
172 <p>167 <p>
5.17 KB
html2text {}
    
Offset 1, 57 lines modifiedOffset 1, 53 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]]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>
4 Contents·······<[[ref]]IF·[NOT]·conditional> 
5  Introduction· · ·block·#1 
6  License······[ 
7  Tutorial·····<ELSEIF·[NOT]·conditional> 
8  Usage········ · ·block·#2 
9  HTP·Tags·····... 
10   ··ALTTEXT··] 
11   ··BLOCK····[ 
12  [>]·BLOCKDEF·<ELSE> 
13   ··DEF······ · ·block·#3 
14   ··FILE·····] 
15   ··IF·······<[[ref]]/IF>13   ··DEF······ ·<[[ref]]use·b>
16   ··INC14   ··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>
17   ··IMG······*****·synopsis·*****32 ···············*****·synopsis·*****
18   ··IMAGEURL·BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it·creates33 ···············BLOCKDEF·creates·block·metatags,·which·is·a·fancy·way·of·saying·it
19   ··OPT······new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as·additional34 ···············creates·new·block·tags.·A·block·tag·is·a·tag·that·takes·a·whole·block·as
20   ··OUTPUT···parameter.·This·block·is·surrounded·by·<tagname>·and·</tagname>.·The·contents 
21   ··QUOTE····of·this·block·are·automatically·stored·in·the·block·macro·named·BLOCK.35 ···············additional·parameter.·This·block·is·surrounded·by·<tagname>·and·</
 36 ···············tagname>.·The·contents·of·this·block·are·automatically·stored·in·the
 37 ···············block·macro·named·BLOCK.
22   ··SET······For·example:38 ···············For·example:
 39 ··············· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes
 40 ··············· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE
 41 ···············NAME="image.gif"·DATE>
23   ··UNDEF···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/"> 
24   ··UNSET···· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/"> 
25   ··USE,_$ 
26   ··WHILE···· ·For·this·line:·<[[ref]]img·src="logo.gif"> 
27   ··<!---···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions 
28  History······ ·(no·URL·replacement). 
29  Wish_list 
30  Bugs········· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif"> 
31 ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used. 
  
32 ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif"> 
33 ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions 
34 ··············· ·will·not·be·added. 
  
35 ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence: 
36 ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/"> 
37 ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/"> 
  
38 ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are 
39 ···············mapped·to 
40 ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp. 
41 ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second 
42 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif. 
43 ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to·expand42 ···············All·block·metatags·have·the·implicit·option·EXPAND,·which·tells·htp·to
44 ···············the·contents·of·the·block·before·the·definition·is·expanded.43 ···············expand·the·contents·of·the·block·before·the·definition·is·expanded.
45 ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in·the44 ···············A·more·thorough·discussion·and·more·elaborate·examples·are·discussed·in
46 ···············metatag·section.45 ···············the·metatag·section.
  
  
  
  
  
  
  
Offset 77, 10 lines modifiedOffset 73, 10 lines modified
77 [Powered_by73 [Powered_by
78 htp]74 htp]
79 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/75 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
80 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.76 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
81 ·····Maintainers:·Jochen_Hoenicke.77 ·····Maintainers:·Jochen_Hoenicke.
82 Copyright·©·1995–96·Jim·Nelson.78 Copyright·©·1995–96·Jim·Nelson.
83 Copyright·©·2001–2014·Jochen_Hoenicke.79 Copyright·©·2001–2014·Jochen_Hoenicke.
84 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms80 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to
85 described·in·the·License_section.81 terms·described·in·the·License_section.
86 last·updated·Sat·May·16,·201582 last·updated·Sat·May·16,·2015
10.4 KB
./usr/share/doc/htp/comment.html
    
Offset 135, 23 lines modifiedOffset 135, 51 lines modified
135 <h2>synopsis</h2>135 <h2>synopsis</h2>
136 <p>136 <p>
137 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful137 This·is·a·simple·comment·that·is·not·included·in·the·output.··This·is·useful
138 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.138 when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.
139 Example:139 Example:
140 </p>140 </p>
141 ··<p><code>141 ··<p><code>
142 &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.h[·...·truncated·by·diffoscope;·len:·82,·SHA:·9dc467fc629d299fcc6398abad873deba90f37994b707d57b7eba620d21af0bd·...·]>&gt;</span><br>142 &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<[·...·truncated·by·diffoscope;·len:·59,·SHA:·61bf49035be43bb6347d47f65bc916833cf1c23a03f2d006d45b33ee69a68944·...·]>&gt;</span><br>
 143 &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>
 144 <br>
 145 &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>
 146 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br>
 147 &nbsp;·(no·URL·replacement).<br>
 148 <br>
 149 &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>
 150 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br>
 151 <br>
 152 &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>
 153 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br>
 154 &nbsp;·will·not·be·added.<br>
 155 <br>
 156 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br>
 157 &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>
 158 &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>
 159 <br>
 160 &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>
 161 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br>
 162 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br>
 163 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br>
143 </code></p>164 </code></p>
144 <p>165 <p>
145 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you166 Note·that·these·comments·should·not·include·&lt;·or·&gt;,·that·is·you
146 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something167 should·not·use·it·to·comment·out·htp·code.··For·that·purpose·use·something
147 like·this:168 like·this:
148 </p>169 </p>
149 ··<p><code>170 ··<p><code>
150 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<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>171 &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>
 172 <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>
 173 <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>
 174 <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>
 175 <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>
 176 <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>
 177 <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>
 178 <br>
151 </code></p>179 </code></p>
152 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the180 <p>Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the
153 reason·why·you·don't·want·to·include·this·block</p>181 reason·why·you·don't·want·to·include·this·block</p>
154 <p>182 <p>
155 </td>183 </td>
156 </tr>184 </tr>
157 <tr>185 <tr>
4.73 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 63 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·<!---·******2 ******·htp·on-line·reference·:·<!---·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
4  Introduction···············<[[ref]]IF·[NOT]·conditional>4 Contents·······<[[ref]]IF·[NOT]·conditional>
5  License···················· · ·block·#1 
6  Tutorial···················[ 
7  Usage······················<ELSEIF·[NOT]·conditional> 
8  HTP·Tags··················· · ·block·#2 
9   ··ALTTEXT················... 
10   ··BLOCK··················] 
11   ··BLOCKDEF···············[ 
12   ··DEF····················<ELSE> 
13   ··FILE··················· · ·block·#3 
14   ··IF·····················]5  Introduction· · ·block·#1
 6  License······[
 7  Tutorial·····<ELSEIF·[NOT]·conditional>
 8  Usage········ · ·block·#2
 9  HTP·Tags·····...
 10   ··ALTTEXT··]
 11   ··BLOCK····[
 12   ··BLOCKDEF·<ELSE>
 13   ··DEF······ · ·block·#3
 14   ··FILE·····]
15   ··INC····················<[[ref]]/IF>15   ··IF·······<[[ref]]/IF>
16   ··IMG16   ··INC
17   ··IMAGEURL···············*****·synopsis·*****17   ··IMG······*****·synopsis·*****
18   ··OPT····················This·is·a·simple·comment·that·is·not·included·in 
19   ··OUTPUT·················the·output.·This·is·useful·when·commenting 
20   ··QUOTE··················metatags,·since·the·metatags·do·not·appear·the 
21   ··SET····················output·either.·Example: 
22   ··UNDEF·················· · ·<[[ref]]IF·name="Jim">...<[[ref]]/IF>18   ··IMAGEURL·This·is·a·simple·comment·that·is·not·included·in·the·output.·This·is·useful
 19   ··OPT······when·commenting·metatags,·since·the·metatags·do·not·appear·the·output·either.
 20   ··OUTPUT···Example:
 21   ··QUOTE···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/">
 22   ··SET······ ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/">
 23   ··UNDEF
 24   ··UNSET···· ·For·this·line:·<[[ref]]img·src="logo.gif">
 25   ··USE,_$··· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions
 26   ··WHILE···· ·(no·URL·replacement).
 27  [>]·<!---
 28  History······ ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif">
 29  Wish_list···· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.
 30  Bugs
 31 ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif">
 32 ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions
 33 ··············· ·will·not·be·added.
  
 34 ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:
 35 ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/">
 36 ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/">
  
 37 ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are
 38 ···············mapped·to
 39 ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.
 40 ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second
 41 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.
23   ··UNSET··················Note·that·these·comments·should·not·include·<·or42 ···············Note·that·these·comments·should·not·include·<·or·>,·that·is·you·should·not
24   ··USE,_$·················>,·that·is·you·should·not·use·it·to·comment·out 
25   ··WHILE··················htp·code.·For·that·purpose·use·something·like43 ···············use·it·to·comment·out·htp·code.·For·that·purpose·use·something·like·this:
26  [>]·<!---··················this: 
27  History···················· · ·<[[ref]]IF·name>...<[[ref]]/IF>44 ··············· · ·<[[ref]]IF·name>...<[[ref]]/IF>
 45 ···············<[[ref]]OPT·(QUIET|VERBOSE)>
 46 ···············<[[ref]]OPT·(DEPEND|NODEPEND)>
 47 ···············<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)>
 48 ···············<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)>
 49 ···············<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)>
 50 ···············<[[ref]]OPT·(XML|XML=FALSE)>
  
28  Wish_list··················Make·sure·that·the·variable·is·never·defined·and51 ···············Make·sure·that·the·variable·is·never·defined·and·xyz·should·be·the·reason·why
29  Bugs·······················xyz·should·be·the·reason·why·you·don't·want·to 
30 ·····························include·this·block52 ···············you·don't·want·to·include·this·block
  
  
  
  
  
  
  
Offset 50, 17 lines modifiedOffset 75, 18 lines modified
  
  
50  page_source75  page_source
51  htp_project76  htp_project
52  htp_homepage77  htp_homepage
53 hosted·by78 hosted·by
54 Sourceforge79 Sourceforge
55 HTML·coding·[Powered_by80 HTML·coding
 81 [Powered_by
56 htp]82 htp]
57 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/83 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
58 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.84 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
59 ·····Maintainers:·Jochen_Hoenicke.85 ·····Maintainers:·Jochen_Hoenicke.
60 Copyright·©·1995–96·Jim·Nelson.86 Copyright·©·1995–96·Jim·Nelson.
61 Copyright·©·2001–2014·Jochen_Hoenicke.87 Copyright·©·2001–2014·Jochen_Hoenicke.
62 Permission·to·reproduce·and·distribute·this·hypertext·document·granted88 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms
63 according·to·terms·described·in·the·License_section.89 described·in·the·License_section.
64 last·updated·Sat·May·16,·201590 last·updated·Sat·May·16,·2015
15.6 KB
./usr/share/doc/htp/def.html
    
Offset 137, 44 lines modifiedOffset 137, 52 lines modified
137 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a137 <strong>DEF</strong>·creates·<a·href="metatag.html">metatags</a>,·which·is·a
138 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to138 fancy·way·of·saying·it·creates·new·tags.··The·mechanism·is·very·similar·to
139 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>139 <a·href="block.html">BLOCK</a>·macros,·except·that·the·<a·href="use.html">USE</a>
140 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.140 tag·is·not·used·to·expand·them.··Instead,·they·are·expanded·by·their·own·name.
141 For·example:141 For·example:
142 </p>142 </p>
143 ··<p><code>143 ··<p><code>
144 <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>144 &nbsp;<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"imghr"</span>&gt;</span><br>
145 &nbsp;·...<br>145 &nbsp;·&nbsp;<span·class="htp-tag">&lt;table·<span·class="htp-attrib">border</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellspacing</span>=<span·class="htp-string">"0"</span>·<span·class="htp-attrib">cellpadding</span>=<span·class="htp-st[·...·truncated·by·diffoscope;·len:·27,·SHA:·755dc8c3e2c2677838a5319fe0426859e4ef47c162b5ac1ddef2613a06bf90ff·...·]<br>
 146 &nbsp;·&nbsp;<span·class="htp-tag">&lt;tr&gt;</span><br>
 147 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>&gt;</span><span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"leftsep.png"</span>&gt;</span><span·class="htp-tag">&lt;/td&gt;</span><br>
 148 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;td·<span·class="htp-attrib">width</span>=<span·class="htp-string">"95%"</span>·<span·class="htp-attrib">background</span>=<span·class="htp-string">"midsep.png"</span>&gt;</span>&amp;nbsp;<span·class="htp-tag">&lt;/td&gt;</span><br>
 149 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;td·<span·class="htp-attrib">width</span>=<span·class="htp-value">10</span>&gt;</span><span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"rightsep.png"</span>&gt;</span><span·class="htp-tag">&lt;/td&gt;</span><br>
 150 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/tr&gt;</span><br>
 151 &nbsp;·&nbsp;<span·class="htp-tag">&lt;/table&gt;</span><br>
146 <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>152 &nbsp;<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
 153 <br>
 154 &nbsp;paragraph<br>
 155 &nbsp;<span·class="htp-tag">&lt;imghr&gt;</span><br>
 156 &nbsp;paragraph<br>
147 </code></p>157 </code></p>
148 <P>158 <P>
149 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to159 Some·metatags·will·require·an·opening·and·closing·tag·(comparable·to
150 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A160 <TITLE>·and·</TITLE>).··In·this·case,·you·should·use·the·<A
151 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster161 HREF="blockdef.html">BLOCKDEF</A>·macro.··Another·slightly·faster
152 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing162 alternative·is·to·use·two·metatags,·the·opening·tag·and·the·closing
153 tag·with·a·preceding·slash.·For·example:163 tag·with·a·preceding·slash.·For·example:
154 </P>164 </P>
155 ··<p><code>165 ··<p><code>
156 <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> 
157 text·block<br>166 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"sharedimg"</span>·<span·class="htp-attrib">option</span>=<span[·...·truncated·by·diffoscope;·len:·48,·SHA:·3e7efaf27a2329b94ed75f524bfc875f220b05b5dadb90d45a5162a51ed14e2b·...·]<br>
 167 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"/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>
158 <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>168 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
159 <br>169 <br>
 170 &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>
160 </code></p>171 </code></p>
161 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,172 <p>·You·should·really·use·<a·href="blockdef.html">BLOCKDEF</a>,·though,
162 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>173 as·it·will·check·for·matching·end·tag.·It·is·not·that·slower.··</p>
163 <P>174 <P>
164 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were175 Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if·it·were
165 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with176 a·<A·HREF="set.html">SET</A>·macro.··Option·names·are·parameterized·with
166 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their177 the·OPTION·attribute.··Multiple·options·can·be·listed·by·separating·their
167 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)178 name·with·a·space·(which·therefore·requires·they·be·surrounded·by·quotes.)
168 </P>179 </P>
169 ··<p><code>180 ··<p><code>
 181 <span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">SET</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"macrovalue1"</span>·<span·class="htp-attrib">[macroname2</span>=<span·class="htp-string">"macrovalue2"</span>·<span·class="htp-attrib">...]</span>·<span·class="htp-attrib">[GLOBAL]</span>&gt;</span><br>
170 <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> 
171 <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> 
172 <br> 
173 ..·><br> 
174 <br>182 <br>
175 </code></p>183 </code></p>
176 <P>184 <P>
177 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is185 htp·will·do·very·specific·checking·of·parameters·when·a·metatag·is
178 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are186 invoked.··htp·assumes·that·all·parameter·options·to·the·metatag·are
179 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the187 optional.··This·is·why·the·HEADERIMG·definition·uses·IF·to·verify·the
180 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a188 SIZE·option·is·defined·before·expanding·it·in·the·block.··If·a
9.42 KB
html2text {}
    
Offset 1, 87 lines modifiedOffset 1, 87 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·DEF,·/DEF·******2 ******·htp·on-line·reference·:·DEF,·/DEF·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
4  Introduction···············<[[ref]]IF·[NOT]·conditional>4 Contents·······<[[ref]]IF·[NOT]·conditional>
5  License···················· · ·block·#1 
6  Tutorial···················[ 
7  Usage······················<ELSEIF·[NOT]·conditional> 
8  HTP·Tags··················· · ·block·#2 
9   ··ALTTEXT················... 
10   ··BLOCK··················] 
11   ··BLOCKDEF···············[ 
12  [>]·DEF····················<ELSE> 
13   ··FILE··················· · ·block·#3 
14   ··IF·····················]5  Introduction· · ·block·#1
 6  License······[
 7  Tutorial·····<ELSEIF·[NOT]·conditional>
 8  Usage········ · ·block·#2
 9  HTP·Tags·····...
 10   ··ALTTEXT··]
 11   ··BLOCK····[
 12   ··BLOCKDEF·<ELSE>
 13  [>]·DEF······ · ·block·#3
 14   ··FILE·····]
15   ··INC····················<[[ref]]/IF>15   ··IF·······<[[ref]]/IF>
16   ··IMG16   ··INC
17   ··IMAGEURL···············*****·synopsis·*****17   ··IMG······*****·synopsis·*****
 18   ··IMAGEURL·DEF·creates·metatags,·which·is·a·fancy·way·of·saying·it·creates
 19   ··OPT······new·tags.·The·mechanism·is·very·similar·to·BLOCK·macros,·except
18   ··OPT····················DEF·creates·metatags,·which·is·a·fancy·way·of 
19   ··OUTPUT·················saying·it·creates·new·tags.·The·mechanism·is·very 
20   ··QUOTE··················similar·to·BLOCK·macros,·except·that·the·USE·tag 
21   ··SET····················is·not·used·to·expand·them.·Instead,·they·are20   ··OUTPUT···that·the·USE·tag·is·not·used·to·expand·them.·Instead,·they·are
22   ··UNDEF··················expanded·by·their·own·name.·For·example:21   ··QUOTE····expanded·by·their·own·name.·For·example:
 22   ··SET······ <[[ref]]def·name="imghr">
 23   ··UNDEF···· · <table·border="0"·cellspacing="0"·cellpadding="0">
 24   ··UNSET···· · <tr>
 25   ··USE,_$··· · ·<td·width=10><[[ref]]img·src="leftsep.png"></td>
 26   ··WHILE···· · ·<td·width="95%"·background="midsep.png">&nbsp;</td>
 27   ··<!---···· · ·<td·width=10><[[ref]]img·src="rightsep.png"></td>
 28  History······ · </tr>
 29  Wish_list···· · </table>
 30  Bugs········· <[[ref]]/def>
23   ··UNSET··················<[[ref]]if·disabled_because_xyz> 
24   ··USE,_$················· ·... 
25   ··WHILE··················<[[ref]]/if> 
26   ··<!---··················Some·metatags·will·require·an·opening·and·closing 
27  History····················tag·(comparable·to 
28  Wish_list··················and 
29  Bugs·······················).·In·this·case,·you·should·use·the·BLOCKDEF 
30 ·····························macro.·Another·slightly·faster·alternative·is·to 
31 ·····························use·two·metatags,·the·opening·tag·and·the·closing 
32 ·····························tag·with·a·preceding·slash.·For·example: 
33 ·····························<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] 
34 ·····························[EXPAND]> 
35 ·····························text·block 
36 ·····························<[[ref]]/OUTPUT> 
  
37 ·····························You·should·really·use·BLOCKDEF,·though,·as·it·will 
38 ·····························check·for·matching·end·tag.·It·is·not·that·slower. 
39 ·····························Options·can·be·passed·to·a·metatag,·which·can·then 
40 ·····························expand·as·if·it·were·a·SET·macro.·Option·names·are 
41 ·····························parameterized·with·the·OPTION·attribute.·Multiple 
42 ·····························options·can·be·listed·by·separating·their·name 
43 ·····························with·a·space·(which·therefore·requires·they·be 
44 ·····························surrounded·by·quotes.) 
45 ·····························<[[ref]]UNDEF·tagname> 
46 ·····························<[[ref]]UNDEF·tagname1·tagname2·...·>31 ··············· paragraph
 32 ··············· <imghr>
 33 ··············· paragraph
 34 ···············Some·metatags·will·require·an·opening·and·closing·tag·(comparable
 35 ···············to
 36 ···············and
 37 ···············).·In·this·case,·you·should·use·the·BLOCKDEF·macro.·Another
 38 ···············slightly·faster·alternative·is·to·use·two·metatags,·the·opening
 39 ···············tag·and·the·closing·tag·with·a·preceding·slash.·For·example:
 40 ··············· ·<[[ref]]def·name="sharedimg"·option="name·alt">
 41 ··············· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">;
 42 ··············· ·<[[ref]]/def>
  
47 ·····························..·>43 ··············· ·<sharedimg·name="bubble.gif"·alt="Bubble·image">
 44 ···············You·should·really·use·BLOCKDEF,·though,·as·it·will·check·for
 45 ···············matching·end·tag.·It·is·not·that·slower.
 46 ···············Options·can·be·passed·to·a·metatag,·which·can·then·expand·as·if
 47 ···············it·were·a·SET·macro.·Option·names·are·parameterized·with·the
 48 ···············OPTION·attribute.·Multiple·options·can·be·listed·by·separating
 49 ···············their·name·with·a·space·(which·therefore·requires·they·be
 50 ···············surrounded·by·quotes.)
 51 ···············<[[ref]]SET·macroname1="macrovalue1"·[macroname2="macrovalue2"
 52 ···············...]·[GLOBAL]>
  
48 ·····························htp·will·do·very·specific·checking·of·parameters53 ···············htp·will·do·very·specific·checking·of·parameters·when·a·metatag
 54 ···············is·invoked.·htp·assumes·that·all·parameter·options·to·the·metatag
49 ·····························when·a·metatag·is·invoked.·htp·assumes·that·all 
50 ·····························parameter·options·to·the·metatag·are·optional. 
51 ·····························This·is·why·the·HEADERIMG·definition·uses·IF·to55 ···············are·optional.·This·is·why·the·HEADERIMG·definition·uses·IF·to
52 ·····························verify·the·SIZE·option·is·defined·before·expanding56 ···············verify·the·SIZE·option·is·defined·before·expanding·it·in·the
 57 ···············block.·If·a·parameter·is·required,·simply·expand·it·without·first
53 ·····························it·in·the·block.·If·a·parameter·is·required, 
54 ·····························simply·expand·it·without·first·checking.·When·htp 
55 ·····························expands·the·metatag·and·the·macro·is·not·defined,58 ···············checking.·When·htp·expands·the·metatag·and·the·macro·is·not
56 ·····························it·will·halt·processing·and·complain·with·an·error59 ···············defined,·it·will·halt·processing·and·complain·with·an·error
57 ·····························message·and·the·required·macro·name.·Normally·htp60 ···············message·and·the·required·macro·name.·Normally·htp·will·not·allow
 61 ···············parameters·not·listed·in·the·OPTION·attribute·to·be·added·to·the
58 ·····························will·not·allow·parameters·not·listed·in·the·OPTION 
59 ·····························attribute·to·be·added·to·the·tag.·This·is·why·the 
60 ·····························third·invocation·of·HEADERIMG·will·fail.·There·is62 ···············tag.·This·is·why·the·third·invocation·of·HEADERIMG·will·fail.
61 ·····························no·ALT·parameter·specified·in·the·OPTION63 ···············There·is·no·ALT·parameter·specified·in·the·OPTION·attribute.
 64 ···············However,·there·is·the·special·option·*,·which·matches·every·other
62 ·····························attribute.·However,·there·is·the·special·option·*, 
63 ·····························which·matches·every·other·parameter.·It·should·be 
64 ·····························used·to·pass·all·other·options·to·another·tag.65 ···············parameter.·It·should·be·used·to·pass·all·other·options·to·another
 66 ···············tag.
65 ·····························Metatags·can·be·removed·by·using·the·UNDEF·tag.67 ···············Metatags·can·be·removed·by·using·the·UNDEF·tag.·Note·that·both
66 ·····························Note·that·both·open·and·close·tags·must·be·removed 
67 ·····························with·UNDEF.·Removing·one·will·not·remove·both.68 ···············open·and·close·tags·must·be·removed·with·UNDEF.·Removing·one·will
 69 ···············not·remove·both.
68 ·····························Warning:·Although·possible,·def·should·not·be·used70 ···············Warning:·Although·possible,·def·should·not·be·used·to·override
 71 ···············standard·HTML·and·htp·tag·names,·as·this·can·cause·much·confusion
69 ·····························to·override·standard·HTML·and·htp·tag·names,·as 
70 ·····························this·can·cause·much·confusion·and·unexpected 
71 ·····························results.·The·def·tag·can·even·be·used·to·override72 ···············and·unexpected·results.·The·def·tag·can·even·be·used·to·override
72 ·····························its·own·tag·name.·Because·of·the·problems·this·can73 ···············its·own·tag·name.·Because·of·the·problems·this·can·cause,·its
 74 ···············highly·recommended·to·not·override·known·tag·names.
 75 ···············You·can·find·some·other·examples·in·the·[[ref]]metatag·section·of
 76 ···············the·tutorial.
73 ·····························cause,·its·highly·recommended·to·not·override 
Max diff block lines reached; 674/9623 bytes (7.00%) of diff not shown.
15.1 KB
./usr/share/doc/htp/expand.html
    
Offset 98, 32 lines modifiedOffset 98, 40 lines modified
98 <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code>98 <p>However,·if·the·block·tag·is·marked·with·the·<code>expand</code>
99 modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to99 modifier·it·is·expanded·immediately.··This·is·useful·if·you·want·to
100 store·something·in·a·block·macro,·that·depends·on·the·current·value·of100 store·something·in·a·block·macro,·that·depends·on·the·current·value·of
101 another·macro.··This·other·macro·may·no·longer·have·the·correct·value101 another·macro.··This·other·macro·may·no·longer·have·the·correct·value
102 when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when102 when·the·macro·is·expanded.··Here·is·some·code·that·demonstrate·when
103 the·htp·tags·are·expanded:·</P>103 the·htp·tags·are·expanded:·</P>
104 ··<p><code>104 ··<p><code>
 105 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;EM&gt;</span>File·"<span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">NAME</span>&gt;</span>"·last·updated·<span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">TIME</span>&gt;</span>,·<span·class="htp-tag">&lt;<a·href="file.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">FILE</a>·<span·class="htp-attrib">DATE</span>&gt;</span><span·class="htp-tag">&lt;/EM&gt;</span><br>
105 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">def</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"centered"</span>&gt;</span><br> 
106 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;p·<span·class="htp-attrib">align</span>=<span·class="htp-value">center</span>&gt;</span><br> 
107 <font·size="-2">&nbsp;3.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br> 
108 <font·size="-2">&nbsp;4.·</font><br> 
109 <font·size="-2">&nbsp;5.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;centered&gt;</span><br> 
110 <font·size="-2">&nbsp;6.·</font>&nbsp;·&nbsp;·This·text·is·centered.<br> 
111 <font·size="-2">&nbsp;7.·</font>er·processing:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Company·logo"</span>&gt;</span><br> 
112 <font·size="-2">&nbsp;8.·</font><br> 
113 <font·size="-2">&nbsp;9.·</font>&nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"../image/logo.gif"</span>&gt;</span><br> 
114 <font·size="-2">10.·</font>&nbsp;·will·also·have·an·ALT·attribute·appended·to·it<br> 
115 <font·size="-2">11.·</font><br> 
116 <font·size="-2">12.·</font>&nbsp;·this·line:·<span·class="htp-tag">&lt;<a·href="img.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">img</a>·<span·class="htp-attrib">src</span>=<span·class="htp-string">"logo.gif"</span>·<span·class="htp-attrib">alt</span>=<span·class="htp-string">"Click·here·for·more·information!"</span>&gt;</span><br> 
117 <font·size="-2">13.·</font>&nbsp;·remains·unchanged.<br> 
118 </code></p>106 </code></p>
119 This·produces·the·following:107 This·produces·the·following:
120 ··<p><code>108 ··<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">TIM[·...·truncated·by·diffoscope;·len:·257,·SHA:·8629d68517a80b5599bf245f2a2c235935b2798471729945384089e697b75027·...·]</span>&gt;</span><br>109 &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<[·...·truncated·by·diffoscope;·len:·53,·SHA:·86c883bdee8402de4fb025e83a268d959894f39762ba8ab02b60f226172c9353·...·]</span>&gt;</span><br>
 110 &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>
 111 <br>
 112 &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>
 113 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br>
 114 &nbsp;·(no·URL·replacement).<br>
 115 <br>
 116 &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>
 117 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br>
 118 <br>
 119 &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>
 120 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br>
 121 &nbsp;·will·not·be·added.<br>
 122 <br>
 123 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br>
 124 &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>
 125 &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>
 126 <br>
 127 &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>
 128 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br>
 129 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br>
 130 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br>
123 </code></p>131 </code></p>
124 <P>132 <P>
125 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a133 When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a
126 are·taken·literally,·however,·the·contents·for·b·are·already·expanded134 are·taken·literally,·however,·the·contents·for·b·are·already·expanded
127 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it135 so·the·macro·<code>time</code>·is·evaluated.··So·a·is·expanded·when·it
128 is·used,·while·the·contents·of·b·are·already·expanded.136 is·used,·while·the·contents·of·b·are·already·expanded.
129 </P>137 </P>
7.63 KB
html2text {}
    
Offset 1, 62 lines modifiedOffset 1, 68 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·global·and·expand·******2 ******·htp·on-line·reference·:·global·and·expand·******
3 Table_of·········*****·The·global·attribute·*****3 Table_of·········*****·The·global·attribute·*****
4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope.4 Contents·········Normally·when·you·define·a·macro·it·is·only·defined·in·the·current·scope.·A
5  Introduction···A·scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition5  Introduction···scope·is·for·example·the·definition·of·a·metatag.·Once·the·definition·is
6  License········is·expanded·and·the·metatag·has·finished·the·macro·is·automatically6  License········expanded·and·the·metatag·has·finished·the·macro·is·automatically·removed.·In
7  Tutorial·······removed.·In·some·cases·you·want·to·define·a·macro·inside·a·metatag·and7  Tutorial·······some·cases·you·want·to·define·a·macro·inside·a·metatag·and·use·it·later.·You
8  Usage··········use·it·later.·You·can·do·this·with·the·global·attribute·that·you·can·add8  Usage··········can·do·this·with·the·global·attribute·that·you·can·add·to·[[ref]]set,·[
9   ··Command-···to·[[ref]]set,·[[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef9   ··Command-···[ref]]inc,·[[ref]]block,·[[ref]]def,·and·[[ref]]blockdef·tags.
10 ······line·······tags. 
11   ··Options····*****·The·expand·attribute·*****10 ······line·······*****·The·expand·attribute·*****
12   ··Predefined·The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all11   ··Options····The·expand·attribute·is·not·a·tag·of·its·own·but·is·an·attribute·of·all·block
13 ······macros·····block·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp12   ··Predefined·tags·even·metatags·defined·with·the·blockdef·macro.·Normally·htp·uses·a·lazy
14  [>]·global_and·uses·a·lazy·evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and 
15 ······expand·····macros·when·the·HTML·document·is·written·not·when·they're·stored·into 
16  HTP_Tags·······block·macros.·When·you·use·a·macro·defined·with·the·blockdef·tag·the·html 
17  History········code·between·the·tags·is·just·copied·literally·into·the·macro·named 
18  Wish_list······block,·without·any·expansion·going·on.13 ······macros·····evaluation·strategy,·i.e.·it·expands·htp·tags,·metatags·and·macros·when·the
 14  [>]·global_and·HTML·document·is·written·not·when·they're·stored·into·block·macros.·When·you
 15 ······expand·····use·a·macro·defined·with·the·blockdef·tag·the·html·code·between·the·tags·is
 16  HTP_Tags·······just·copied·literally·into·the·macro·named·block,·without·any·expansion·going
 17  History········on.
19  Bugs···········However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is18  Wish_list······However,·if·the·block·tag·is·marked·with·the·expand·modifier·it·is·expanded
20 ·················expanded·immediately.·This·is·useful·if·you·want·to·store·something·in·a19  Bugs···········immediately.·This·is·useful·if·you·want·to·store·something·in·a·block·macro,
21 ·················block·macro,·that·depends·on·the·current·value·of·another·macro.·This20 ·················that·depends·on·the·current·value·of·another·macro.·This·other·macro·may·no
 21 ·················longer·have·the·correct·value·when·the·macro·is·expanded.·Here·is·some·code
 22 ·················that·demonstrate·when·the·htp·tags·are·expanded:
 23 ················· 1. · ·<EM>File·"<[[ref]]FILE·NAME>"·last·updated·<[[ref]]FILE·TIME>,·<[
 24 ·················[ref]]FILE·DATE></EM>
22 ·················other·macro·may·no·longer·have·the·correct·value·when·the·macro·is 
23 ·················expanded.·Here·is·some·code·that·demonstrate·when·the·htp·tags·are 
24 ·················expanded: 
25 ················· 1. · ·<[[ref]]def·name="centered"> 
26 ················· 2. · ·<p·align=center> 
27 ················· 3. · ·<[[ref]]/def> 
28 ················· 4. 
29 ················· 5. · ·<centered> 
30 ················· 6. · ·This·text·is·centered. 
31 ················· 7.er·processing:·<[[ref]]img·src="logo.gif"·alt="Company·logo"> 
32 ················· 8. 
33 ················· 9. ·this·line:·<[[ref]]img·src="../image/logo.gif"> 
34 ·················10. ·will·also·have·an·ALT·attribute·appended·to·it 
35 ·················11. 
36 ·················12. ·this·line:·<[[ref]]img·src="logo.gif"·alt="Click·here·for·more 
37 ·················information!"> 
38 ·················13. ·remains·unchanged. 
39 ·················This·produces·the·following:25 ·················This·produces·the·following:
40 ················· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes 
41 ················· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE 
42 ·················NAME="image.gif"·DATE>26 ················· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/">
 27 ················· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/">
  
 28 ················· ·For·this·line:·<[[ref]]img·src="logo.gif">
 29 ················· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions
 30 ················· ·(no·URL·replacement).
  
 31 ················· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif">
 32 ················· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.
  
 33 ················· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif">
 34 ················· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions
 35 ················· ·will·not·be·added.
  
 36 ················· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:
 37 ················· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/">
 38 ················· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/">
  
 39 ················· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are
 40 ·················mapped·to
 41 ················· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.
 42 ················· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second
 43 ················· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.
43 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are44 ·················When·block·a·and·block·b·are·defined·in·lines·2-7·the·contents·of·a·are·taken
44 ·················taken·literally,·however,·the·contents·for·b·are·already·expanded·so·the45 ·················literally,·however,·the·contents·for·b·are·already·expanded·so·the·macro·time
45 ·················macro·time·is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the46 ·················is·evaluated.·So·a·is·expanded·when·it·is·used,·while·the·contents·of·b·are
46 ·················contents·of·b·are·already·expanded.47 ·················already·expanded.
47 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute48 ·················In·line·10·and·12·the·[[ref]]use·tag·is·used·with·the·noexpand·attribute
48 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show49 ·················which·prevents·the·expansion·of·the·macro·value.·Here·it·is·used·to·show·you
49 ·················you·what·the·value·of·the·block·macros·really·is.50 ·················what·the·value·of·the·block·macros·really·is.
50 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent51 ·················A·more·important·reason·to·use·the·noexpand·attribute·is·to·prevent·double
51 ·················double·expansion·and·to·restore·the·original·lazy·expansion·policy·when52 ·················expansion·and·to·restore·the·original·lazy·expansion·policy·when·you·have·to
52 ·················you·have·to·use·the·expand·attribute·as·for·block·d·in·the·example·above.53 ·················use·the·expand·attribute·as·for·block·d·in·the·example·above.·See·the·section
53 ·················See·the·section·example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:54 ·················example·in·the·[[ref]]metatag_tutorial.·Rule·of·thumb:·The·use·tags·in·an
54 ·················The·use·tags·in·an·expanded·block·should·be·tagged·with·noexpand.55 ·················expanded·block·should·be·tagged·with·noexpand.
  
  
  
  
  
  
  
24.9 KB
./usr/share/doc/htp/file.html
    
Offset 114, 37 lines modifiedOffset 114, 68 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="comment">&lt;!---··This·comment·doesn't·appear·in·the·HTML·file·---&gt;</span><br>121 <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="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br>
 122 &nbsp;·&nbsp;·block·#1<br>
 123 [<br>
 124 <span·class="htp-tag">&lt;ELSEIF·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</span>&gt;</span><br>
 125 &nbsp;·&nbsp;·block·#2<br>
 126 ...<br>
 127 ]<br>
 128 [<br>
 129 <span·class="htp-tag">&lt;ELSE&gt;</span><br>
 130 &nbsp;·&nbsp;·block·#3<br>
 131 ]<br>
 132 <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 <br>
122 </code></p>134 </code></p>
123 <h2>synopsis</h2>135 <h2>synopsis</h2>
124 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.136 <STRONG>FILE</STRONG>·has·several·optional·parameters·of·differing·purpose.
125 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of137 The·output·file's·name,·the·current·date·and·time,·and·the·contents·of
126 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be138 another·file·may·be·included.··Another·file's·time,·date,·or·size·may·be
127 added·to·the·output·file·as·well.139 added·to·the·output·file·as·well.
128 <P>140 <P>
129 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the141 As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
130 following·is·perfectly·acceptable:142 following·is·perfectly·acceptable:
131 ··<p><code>143 ··<p><code>
132 <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> 
133 &nbsp;·...<br> 
134 <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>144 &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[·...·truncated·by·diffoscope;·len:·66,·SHA:·037f5de2512682208f0ece10703bb1852ef2e9d88ff644bf5b71ffa30be2a711·...·]>&gt;</span><br>
 145 &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>
 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">"logo.gif"</span>&gt;</span><br>
 148 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br>
 149 &nbsp;·(no·URL·replacement).<br>
 150 <br>
 151 &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>
 152 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br>
 153 <br>
 154 &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>
 155 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br>
 156 &nbsp;·will·not·be·added.<br>
 157 <br>
 158 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br>
 159 &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>
 160 &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>
 161 <br>
 162 &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>
 163 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br>
 164 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br>
 165 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br>
135 </code></p>166 </code></p>
136 <P>167 <P>
137 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>168 <h3><a·name="name">NAME</a>,·TIME,·SIZE</h3>
138 <P>169 <P>
139 To·include·information·about·another·file,·such·as·an·archive·file·or170 To·include·information·about·another·file,·such·as·an·archive·file·or
140 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the171 graphic·image,·specify·its·name·with·the·NAME·attribute·followed·by·the
141 type·of·information·to·be·displayed:172 type·of·information·to·be·displayed:
142 ··<p><code>173 ··<p><code>
143 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">IF</a>·<span·class="htp-attrib">name</span>&gt;</span>...<span·class="htp-tag">&lt;<a·href="if.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/IF</[·...·truncated·by·diffoscope;·len:·1,·SHA:·ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb·...·]>&gt;</span><br>174 &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>
144 </code></p>175 </code></p>
145 <P>176 <P>
146 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the177 For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
147 information·is·displayed.··In·anything·other·than·byte·format,·the·information178 information·is·displayed.··In·anything·other·than·byte·format,·the·information
148 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number179 is·displayed·in·floating-point·notation.··The·amount·of·precision·(the·number
149 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional180 of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional
150 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no181 PRECISION·attribute.··The·default·precision·is·zero·(0),·which·means·no
Offset 173, 18 lines modifiedOffset 204, 21 lines modified
173 <P>204 <P>
174 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are205 Additional·parameters·can·be·set·in·the·FILE·INCLUDE·tag,·which·are
175 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros206 interpreted·as·macros·that·are·"passed"·to·the·included·file.··The·macros
176 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it207 are·available·only·to·the·include·file·(and·any·macros·or·included·files·it
177 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer208 holds).··After·the·file·is·completely·included,·the·macros·are·no·longer
178 available.··So:209 available.··So:
179 ··<p><code>210 ··<p><code>
180 <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> 
181 text·block<br>211 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>&gt;</span><br>
 212 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br>
 213 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br>
 214 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>
182 <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>215 &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>
183 <br>216 <br>
 217 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>
184 </code></p>218 </code></p>
185 <P>219 <P>
186 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included220 Macros·named·"name"·and·"email"·are·set,·and·available·inside·the·included
187 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the221 file.··They·are·not·available,·however,·past·the·tag·(which·is·why·the
188 second·statement·will·fail.)222 second·statement·will·fail.)
189 <P>223 <P>
190 <h3><a·name="template">TEMPLATE</a></h3>224 <h3><a·name="template">TEMPLATE</a></h3>
16.8 KB
html2text {}
    
Offset 1, 132 lines modifiedOffset 1, 131 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·FILE·******2 ******·htp·on-line·reference·:·FILE·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
4  Introduction···············<!---·This·comment·doesn't·appear·in·the·HTML·file 
5  License····················---> 
6  Tutorial···················*****·synopsis·***** 
7  Usage······················FILE·has·several·optional·parameters·of·differing 
8  HTP·Tags···················purpose.·The·output·file's·name,·the·current·date4 Contents·······<[[ref]]IF·[NOT]·conditional>
 5  Introduction· · ·block·#1
 6  License······[
 7  Tutorial·····<ELSEIF·[NOT]·conditional>
 8  Usage········ · ·block·#2
 9  HTP·Tags·····...
 10   ··ALTTEXT··]
 11   ··BLOCK····[
 12   ··BLOCKDEF·<ELSE>
 13   ··DEF······ · ·block·#3
 14  [>]·FILE·····]
 15   ··IF·······<[[ref]]/IF>
 16   ··INC
 17   ··IMG······*****·synopsis·*****
 18   ··IMAGEURL·FILE·has·several·optional·parameters·of·differing·purpose.·The·output·file's
9   ··ALTTEXT················and·time,·and·the·contents·of·another·file·may·be19   ··OPT······name,·the·current·date·and·time,·and·the·contents·of·another·file·may·be
 20   ··OUTPUT···included.·Another·file's·time,·date,·or·size·may·be·added·to·the·output·file
 21   ··QUOTE····as·well.
 22   ··SET······As·with·all·HTML,·these·tags·do·not·have·to·be·on·their·own·line,·so·the
 23   ··UNDEF····following·is·perfectly·acceptable:
 24   ··UNSET···· ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/">
 25   ··USE,_$··· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/">
 26   ··WHILE
 27   ··<!---···· ·For·this·line:·<[[ref]]img·src="logo.gif">
 28  History······ ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions
 29  Wish_list···· ·(no·URL·replacement).
 30  Bugs
 31 ··············· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif">
 32 ··············· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.
10   ··BLOCK··················included.·Another·file's·time,·date,·or·size·may 
11   ··BLOCKDEF···············be·added·to·the·output·file·as·well. 
12   ··DEF····················As·with·all·HTML,·these·tags·do·not·have·to·be·on 
13  [>]·FILE···················their·own·line,·so·the·following·is·perfectly 
14   ··IF·····················acceptable: 
15   ··INC····················<[[ref]]if·disabled_because_xyz> 
16   ··IMG···················· ·... 
17   ··IMAGEURL···············<[[ref]]/if> 
18   ··OPT····················****·NAME,·TIME,·SIZE·**** 
19   ··OUTPUT·················To·include·information·about·another·file,·such·as 
20   ··QUOTE··················an·archive·file·or·graphic·image,·specify·its·name 
21   ··SET····················with·the·NAME·attribute·followed·by·the·type·of 
22   ··UNDEF··················information·to·be·displayed: 
23   ··UNSET·················· · ·<[[ref]]IF·name>...<[[ref]]/IF> 
24   ··USE,_$·················For·file·size·information,·the·value·BYTE,·KBYTE, 
25   ··WHILE··················etc.·dictates·how·the·information·is·displayed.·In 
26   ··<!---··················anything·other·than·byte·format,·the·information 
27  History····················is·displayed·in·floating-point·notation.·The 
28  Wish_list··················amount·of·precision·(the·number·of·digits·to·the 
29  Bugs·······················right·of·the·decimal·point)·can·be·set·with·the 
30 ·····························optional·PRECISION·attribute.·The·default 
31 ·····························precision·is·zero·(0),·which·means·no·fractional 
32 ·····························portion·is·displayed. 
33 ·····························At·the·request·of·many·people,·the·TIME·and·DATE 
34 ·····························attributes·will·now·accept·formatting·characters 
35 ·····························that·are·passed·directly·into·the·ANSI·C·library 
36 ·····························function.·This·allows·for·the·time·and·date·to·be 
37 ·····························displayed·in·virtually·any·format.·Users·not 
38 ·····························wishing·to·mess·around·with·this·should·stick·to 
39 ·····························the·default·format,·which·is·used·if·no·formatting 
40 ·····························value·is·specified·(i.e.,·just·using·05:04:11·PM). 
41 ·····························Consult·any·C·programmer's·guide·discussing·the 
42 ·····························standard·C·library·function·strftime()·for 
43 ·····························information·on·how·to·build·a·format·string.·If 
44 ·····························unsure,·ask·an·experienced·C·programmer·for·help, 
45 ·····························or·consider·just·sticking·to·the·default 
46 ·····························formatting. 
47 ·····························****·INCLUDE·**** 
48 ·····························INCLUDE·files·are·pre-processed·as·any·other·file. 
49 ·····························The·resulting·text·is·incorporated·into·the·HTML 
50 ·····························output·as·if·the·file·had·been·copied·into·the 
51 ·····························source·at·the·same·location·as·the·FILE·markup 
52 ·····························tag. 
53 ·····························htp·will·automatically·convert·slashes·and 
54 ·····························backslashes·to·match·the·operating·system's 
55 ·····························directory·separator. 
56 ·····························Additional·parameters·can·be·set·in·the·FILE 
57 ·····························INCLUDE·tag,·which·are·interpreted·as·macros·that 
58 ·····························are·"passed"·to·the·included·file.·The·macros·are 
59 ·····························available·only·to·the·include·file·(and·any·macros 
60 ·····························or·included·files·it·holds).·After·the·file·is 
61 ·····························completely·included,·the·macros·are·no·longer 
62 ·····························available.·So: 
63 ·····························<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND] 
64 ·····························[EXPAND]> 
65 ·····························text·block 
66 ·····························<[[ref]]/OUTPUT> 
  
67 ·····························Macros·named·"name"·and·"email"·are·set,·and 
68 ·····························available·inside·the·included·file.·They·are·not33 ··············· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif">
 34 ··············· ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions
 35 ··············· ·will·not·be·added.
  
 36 ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:
 37 ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/">
 38 ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/">
  
 39 ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are
 40 ···············mapped·to
 41 ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.
 42 ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second
 43 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.
 44 ···············****·NAME,·TIME,·SIZE·****
 45 ···············To·include·information·about·another·file,·such·as·an·archive·file·or·graphic
 46 ···············image,·specify·its·name·with·the·NAME·attribute·followed·by·the·type·of
 47 ···············information·to·be·displayed:
 48 ··············· · ·<[[ref]]INC·i="1"·j="-1">
 49 ···············For·file·size·information,·the·value·BYTE,·KBYTE,·etc.·dictates·how·the
 50 ···············information·is·displayed.·In·anything·other·than·byte·format,·the·information
 51 ···············is·displayed·in·floating-point·notation.·The·amount·of·precision·(the·number
 52 ···············of·digits·to·the·right·of·the·decimal·point)·can·be·set·with·the·optional
 53 ···············PRECISION·attribute.·The·default·precision·is·zero·(0),·which·means·no
 54 ···············fractional·portion·is·displayed.
 55 ···············At·the·request·of·many·people,·the·TIME·and·DATE·attributes·will·now·accept
 56 ···············formatting·characters·that·are·passed·directly·into·the·ANSI·C·library
 57 ···············function.·This·allows·for·the·time·and·date·to·be·displayed·in·virtually·any
 58 ···············format.·Users·not·wishing·to·mess·around·with·this·should·stick·to·the
 59 ···············default·format,·which·is·used·if·no·formatting·value·is·specified·(i.e.,·just
 60 ···············using·05:04:11·PM).
 61 ···············Consult·any·C·programmer's·guide·discussing·the·standard·C·library·function
Max diff block lines reached; 676/17135 bytes (3.95%) of diff not shown.
11.5 KB
./usr/share/doc/htp/if.html
    
Offset 114, 33 lines modifiedOffset 114, 56 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &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>
121 </code></p>143 </code></p>
122 <h2>synopsis</h2>144 <h2>synopsis</h2>
123 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building145 <STRONG>IF,·NOT,·ELSEIF,·ELSE,·and·/IF</STRONG>·are·the·building
124 blocks·for·conditional·processing.··The·basic·form·is·shown·above.146 blocks·for·conditional·processing.··The·basic·form·is·shown·above.
125 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A147 <P>·"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.··A
126 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal148 compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal
127 string:149 string:
128 ··<p><code>150 ··<p><code>
129 &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> 
130 &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:·250,·SHA:·9c99246f232099fcd447201b765b2f87c6737a480cac01c0674dc79dab2bf97a·...·]</span>&gt;</span><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</span>=<span·c[·...·truncated·by·diffoscope;·len:·118,·SHA:·16ba93f214e6e8704c341061ee8325e69a152fbd459044a77249bc7ab28dd863·...·]</span>&gt;</span><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>
131 </code></p>153 </code></p>
132 <P>154 <P>
133 and·a·defined·operator·is·a·test·of·a·macro's·existance:155 and·a·defined·operator·is·a·test·of·a·macro's·existance:
134 <P>156 <P>
135 ··<p><code>157 ··<p><code>
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>·<span·class="htp-attrib">[EXPAND]</span>&gt;</span><br> 
137 text·block<br>158 &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:·48,·SHA:·3e7efaf27a2329b94ed75f524bfc875f220b05b5dadb90d45a5162a51ed14e2b·...·]<br>
 159 &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>
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>160 &nbsp;·<span·class="htp-tag">&lt;<a·href="def.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/def</a>&gt;</span><br>
139 <br>161 <br>
 162 &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>
140 </code></p>163 </code></p>
141 <P>164 <P>
142 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the165 If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the
143 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that166 conditional·is·reversed.··The·first·IF·or·ELSEIF·condition·that
144 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the167 evaluates·to·true·is·chosen.··If·none·of·the·conditions·is·true·the
145 ELSE·block·is·taken·if·it·is·present.··A·conditional·block168 ELSE·block·is·taken·if·it·is·present.··A·conditional·block
146 <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested.169 <EM>must</EM>·be·closed·with·the·/IF·tag.··IF·tags·can·be·nested.
4.44 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 62 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······· ·<[[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.
4 Contents·······*****·synopsis·*****27   ··<!---····*****·synopsis·*****
5  Introduction·IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional28  History······IF,·NOT,·ELSEIF,·ELSE,·and·/IF·are·the·building·blocks·for·conditional
6  License······processing.·The·basic·form·is·shown·above.29  Wish_list····processing.·The·basic·form·is·shown·above.
7  Tutorial·····"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare30  Bugs·········"Conditional"·is·either·a·"compare"·or·"is·defined"·operation.·A·compare
8  Usage········operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string:31 ···············operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string:
9  HTP·Tags····· · ·File·image.gif·<[[ref]]FILE·NAME="image.gif"·SIZE=KBYTE> kilobytes 
10   ··ALTTEXT·· · ·Last·modified·<[[ref]]FILE·NAME="image.gif"·TIME>,·<[[ref]]FILE 
11   ··BLOCK····NAME="image.gif"·DATE>32 ··············· · ·<[[ref]]FILE·INCLUDE="include.hti"·name="Jim·Nelson"
 33 ···············email="jnelson@crl.com">
 34 ··············· · ·This·tag·will·fail:·<[[ref]]USE·name>
12   ··BLOCKDEF·and·a·defined·operator·is·a·test·of·a·macro's·existance:35 ···············and·a·defined·operator·is·a·test·of·a·macro's·existance:
13   ··DEF······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> 
14   ··FILE·····text·block 
15  [>]·IF·······<[[ref]]/OUTPUT> 
16   ··INC36 ··············· ·<[[ref]]def·name="sharedimg"·option="name·alt">
 37 ··············· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">;
 38 ··············· ·<[[ref]]/def>
  
 39 ··············· ·<sharedimg·name="bubble.gif"·alt="Bubble·image">
17   ··IMG······If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the40 ···············If·the·NOT·tag·is·present·in·the·IF·markup,·the·evaluation·of·the·conditional
18   ··IMAGEURL·conditional·is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates41 ···············is·reversed.·The·first·IF·or·ELSEIF·condition·that·evaluates·to·true·is
19   ··OPT······to·true·is·chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is42 ···············chosen.·If·none·of·the·conditions·is·true·the·ELSE·block·is·taken·if·it·is
20   ··OUTPUT···taken·if·it·is·present.·A·conditional·block·must·be·closed·with·the·/IF 
21   ··QUOTE····tag.·IF·tags·can·be·nested. 
22   ··SET 
23   ··UNDEF 
24   ··UNSET 
25   ··USE,_$ 
26   ··WHILE 
27   ··<!--- 
28  History 
29  Wish_list 
30  Bugs43 ···············present.·A·conditional·block·must·be·closed·with·the·/IF·tag.·IF·tags·can·be
 44 ···············nested.
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
Offset 49, 10 lines modifiedOffset 73, 10 lines modified
49 [Powered_by73 [Powered_by
50 htp]74 htp]
51 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/75 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
52 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.76 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
53 ·····Maintainers:·Jochen_Hoenicke.77 ·····Maintainers:·Jochen_Hoenicke.
54 Copyright·©·1995–96·Jim·Nelson.78 Copyright·©·1995–96·Jim·Nelson.
55 Copyright·©·2001–2014·Jochen_Hoenicke.79 Copyright·©·2001–2014·Jochen_Hoenicke.
56 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to80 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms
57 terms·described·in·the·License_section.81 described·in·the·License_section.
58 last·updated·Sat·May·16,·201582 last·updated·Sat·May·16,·2015
12.1 KB
./usr/share/doc/htp/imageurl.html
    
Offset 114, 17 lines modifiedOffset 114, 14 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 <span·class="htp-tag">&lt;<a·href="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> 
122 &nbsp;·...<br> 
123 <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> 
124 </code></p>121 </code></p>
125 <h2>synopsis</h2>122 <h2>synopsis</h2>
126 <P>123 <P>
127 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local124 <STRONG>IMAGEURL</STRONG>·tells·htp,·where·to·find·images·on·the·local
128 file·system.··declares·an·URL·replacement·that·is·used·for125 file·system.··declares·an·URL·replacement·that·is·used·for
129 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions126 size·lookups·in·any·<A·HREF="img.html">IMG</A>·tag.·This·definitions
130 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is127 takes·effect·only·if·the·<A·HREF="opt.html">IMGXY</A>·option·is
Offset 138, 22 lines modifiedOffset 135, 36 lines modified
138 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC135 checks·(case-insensitive)·if·it·is·a·prefix·of·the·image's·SRC
139 attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.136 attribute.·If·it·matches·this·prefix·is·replaced·by·the·given·PATH.
140 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and137 If·no·IMAGEURL·matches·the·SRC·is·considered·as·relative·link·and
141 looked·up·in·the·current·directory.</P>138 looked·up·in·the·current·directory.</P>
142 <P>139 <P>
143 For·example:</P>140 For·example:</P>
144 ··<p><code>141 ··<p><code>
 142 &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>
 143 &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>
145 <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> 
146 <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> 
147 <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> 
148 <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> 
149 <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> 
150 <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> 
151 <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> 
152 <br>144 <br>
 145 &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>
 146 &nbsp;·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions<br>
 147 &nbsp;·(no·URL·replacement).<br>
 148 <br>
 149 &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>
 150 &nbsp;·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.<br>
 151 <br>
 152 &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>
 153 &nbsp;·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions<br>
 154 &nbsp;·will·not·be·added.<br>
 155 <br>
 156 &nbsp;·Order·is·important;·last·IMAGEURL·tag·takes·precedence:<br>
 157 &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>
 158 &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>
 159 <br>
 160 &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>
 161 &nbsp;·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.<br>
 162 &nbsp;·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second·<br>
 163 &nbsp;·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.<br>
153 </code></p>164 </code></p>
154 <P>165 <P>
155 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as166 If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as
156 an·undefine,·and·is·removed.</P>167 an·undefine,·and·is·removed.</P>
157 <P>168 <P>
158 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout169 Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout
159 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an170 a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an
6.17 KB
html2text {}
    
Offset 1, 51 lines modifiedOffset 1, 54 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·IMAGEURL·******2 ******·htp·on-line·reference·:·IMAGEURL·******
3 Table_of_Contents············*****·syntax·*****3 Table_of·······*****·syntax·*****
 4 Contents·······*****·synopsis·*****
 5  Introduction·IMAGEURL·tells·htp,·where·to·find·images·on·the·local·file·system.·declares
4  Introduction···············<[[ref]]if·disabled_because_xyz> 
5  License···················· ·... 
6  Tutorial···················<[[ref]]/if> 
7  Usage······················*****·synopsis·***** 
8  HTP·Tags···················IMAGEURL·tells·htp,·where·to·find·images·on·the 
9   ··ALTTEXT················local·file·system.·declares·an·URL·replacement 
10   ··BLOCK··················that·is·used·for·size·lookups·in·any·IMG·tag.·This6  License······an·URL·replacement·that·is·used·for·size·lookups·in·any·IMG·tag.·This
 7  Tutorial·····definitions·takes·effect·only·if·the·IMGXY·option·is·enabled.·Beacause·htp
11   ··BLOCKDEF···············definitions·takes·effect·only·if·the·IMGXY·option 
12   ··DEF····················is·enabled.·Beacause·htp·can't·lookup·files·in·the 
13   ··FILE···················world·wide·web·you·have·to·map·absolute·image·URLs8  Usage········can't·lookup·files·in·the·world·wide·web·you·have·to·map·absolute·image·URLs
14   ··IF·····················to·a·directory·in·the·local·file·system.9  HTP·Tags·····to·a·directory·in·the·local·file·system.
 10   ··ALTTEXT··When·an·IMG·tag·is·encountered·where·htp·has·to·insert·width·and·height·the
 11   ··BLOCK····defined·URL·replacements·will·be·taken·into·account·(later·definitions·take
 12   ··BLOCKDEF·precedence·to·earlier):·For·each·defined·imageurl·it·checks·(case-
15   ··INC····················When·an·IMG·tag·is·encountered·where·htp·has·to 
16   ··IMG····················insert·width·and·height·the·defined·URL 
17  [>]·IMAGEURL···············replacements·will·be·taken·into·account·(later 
18   ··OPT····················definitions·take·precedence·to·earlier):·For·each 
19   ··OUTPUT·················defined·imageurl·it·checks·(case-insensitive)·if 
20   ··QUOTE··················it·is·a·prefix·of·the·image's·SRC·attribute.·If·it13   ··DEF······insensitive)·if·it·is·a·prefix·of·the·image's·SRC·attribute.·If·it·matches
21   ··SET····················matches·this·prefix·is·replaced·by·the·given·PATH. 
22   ··UNDEF··················If·no·IMAGEURL·matches·the·SRC·is·considered·as 
23   ··UNSET··················relative·link·and·looked·up·in·the·current 
24   ··USE,_$·················directory. 
25   ··WHILE··················For·example: 
26   ··<!---··················<[[ref]]OPT·(IMGXY|NOIMGXY)> 
27  History····················<[[ref]]OPT·(QUIET|VERBOSE)> 
28  Wish_list··················<[[ref]]OPT·(DEPEND|NODEPEND)> 
29  Bugs·······················<[[ref]]OPT·(PRECIOUS|NOPRECIOUS)> 
30 ·····························<[[ref]]OPT·(CONDENSE|SEMICONDENSE|NOCONDENSE)> 
31 ·····························<[[ref]]OPT·DELIM=(HTML|SQUARE|CURLY)> 
32 ·····························<[[ref]]OPT·(XML|XML=FALSE)>14   ··FILE·····this·prefix·is·replaced·by·the·given·PATH.·If·no·IMAGEURL·matches·the·SRC·is
 15   ··IF·······considered·as·relative·link·and·looked·up·in·the·current·directory.
 16   ··INC······For·example:
 17   ··IMG······ ·<[[ref]]imageurl·url="http://my.domain.org/"·path="/var/www/my.domain/">
 18  [>]·IMAGEURL· ·<[[ref]]imageurl·url="other.domain.org/"·path="/var/www/other.domain/">
 19   ··OPT
 20   ··OUTPUT··· ·For·this·line:·<[[ref]]img·src="logo.gif">
 21   ··QUOTE···· ·the·local·filename·"logo.gif"·will·be·used·to·determine·image·dimensions
 22   ··SET······ ·(no·URL·replacement).
 23   ··UNDEF
 24   ··UNSET···· ·For·this·line:·<[[ref]]img·src="http://my.domain.org/logo.gif">
 25   ··USE,_$··· ·the·local·filename·"/var/www/my.domain/logo.gif"·will·be·used.
 26   ··WHILE
 27   ··<!---···· ·But·for·this·line:·<[[ref]]img·src="http://other.domain.org/logo.gif">
 28  History······ ·the·local·file·cannot·be·found·(no·prefix·match),·so·the·image·dimensions
 29  Wish_list···· ·will·not·be·added.
 30  Bugs
 31 ··············· ·Order·is·important;·last·IMAGEURL·tag·takes·precedence:
 32 ··············· ·<[[ref]]imageurl·url="/"·path="/var/www/htdocs/">
 33 ··············· ·<[[ref]]imageurl·url="/test/"·path="/var/www/test/">
  
33 ·····························If·IMAGEURL·is·specified·with·a·URL·but·no·PATH 
34 ·····························attribute,·it·is·treated·as·an·undefine,·and·is 
35 ·····························removed. 
36 ·····························Since·you·usually·need·the·url·mapping·for·a 
37 ·····························number·of·images·used·throughout·a·set·of34 ··············· ·<[[ref]]img·src="/image.gif"> and·<[[ref]]img·src="/test/image.gif"> are
 35 ···············mapped·to
 36 ··············· ·/var/www/htdocs/image.gif·and·/var/www/test/image.gif,·resp.
 37 ··············· ·If·the·order·of·the·imageurl·lines·would·be·swapped,·the·second
 38 ··············· ·image·would·be·mapped·to·/var/www/htdocs/test/image.gif.
 39 ···············If·IMAGEURL·is·specified·with·a·URL·but·no·PATH·attribute,·it·is·treated·as
 40 ···············an·undefine,·and·is·removed.
 41 ···············Since·you·usually·need·the·url·mapping·for·a·number·of·images·used·throughout
38 ·····························documents,·IMAGEURL·is·most·appropriately·put·into42 ···············a·set·of·documents,·IMAGEURL·is·most·appropriately·put·into·an·include_file
 43 ···············or·the·htp.def·file.
 44 ···············In·addition·to·WIDTH·and·HEIGHT,·htp·can·also·(semi-)automatically·add·an·ALT
 45 ···············text·attribute·to·IMG·tags.
39 ·····························an·include_file·or·the·htp.def·file. 
40 ·····························In·addition·to·WIDTH·and·HEIGHT,·htp·can·also 
41 ·····························(semi-)automatically·add·an·ALT_text·attribute·to 
42 ·····························IMG·tags. 
  
  
  
  
  
  
  
Offset 63, 17 lines modifiedOffset 66, 18 lines modified
  
  
63  page_source66  page_source
64  htp_project67  htp_project
65  htp_homepage68  htp_homepage
66 hosted·by69 hosted·by
67 Sourceforge70 Sourceforge
68 HTML·coding·[Powered_by71 HTML·coding
 72 [Powered_by
69 htp]73 htp]
70 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/74 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
71 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.75 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
72 ·····Maintainers:·Jochen_Hoenicke.76 ·····Maintainers:·Jochen_Hoenicke.
73 Copyright·©·1995–96·Jim·Nelson.77 Copyright·©·1995–96·Jim·Nelson.
74 Copyright·©·2001–2014·Jochen_Hoenicke.78 Copyright·©·2001–2014·Jochen_Hoenicke.
75 Permission·to·reproduce·and·distribute·this·hypertext·document·granted79 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to·terms
76 according·to·terms·described·in·the·License_section.80 described·in·the·License_section.
77 last·updated·Sat·May·16,·201581 last·updated·Sat·May·16,·2015
7.99 KB
./usr/share/doc/htp/inc.html
    
Offset 114, 34 lines modifiedOffset 114, 37 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
121 &nbsp;·&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-attr[·...·truncated·by·diffoscope;·len:·264,·SHA:·0f48064ad5e66c601138b685832d2369e4f68b45834527e8f112f476e8e30e4a·...·]</span>&gt;</span><br>121 <span·class="htp-tag">&lt;<a·href="inc.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">INC</a>·<span·class="htp-attrib">macroname1</span>=<span·class="htp-string">"increment1"</span>·<span·class="ebnf">[</span><span·class="htp-[·...·truncated·by·diffoscope;·len:·220,·SHA:·e5a7c322d181671814f71219bc400fbb8062367de1eb28c68790a00a59fb83ef·...·]</span>&gt;</span><br>
 122 <br>
123 </code></p>123 </code></p>
124 <h2>synopsis</h2>124 <h2>synopsis</h2>
125 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a125 The·<STRONG>INC</STRONG>·can·be·used·for·incrementing/decrementing·a
126 variable·or·for·variable·addition.··The·basic·form·is·shown·above.126 variable·or·for·variable·addition.··The·basic·form·is·shown·above.
127 <P>127 <P>
128 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a128 The·"increment"·is·anything·that·evaluates·to·a·integer.··It·can·be·a
129 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The129 literal·string·or·a·macro·preceeded·by·the·'$'-operator.··The
130 macroname·must·be·the·name·of·a·defined·macro·that·contains·an130 macroname·must·be·the·name·of·a·defined·macro·that·contains·an
131 integer.··If·the·increment·is·ommitted·it·defaults·to·1.131 integer.··If·the·increment·is·ommitted·it·defaults·to·1.
132 The·effect·of·this·operation·is·that·the·macro·is·redefined132 The·effect·of·this·operation·is·that·the·macro·is·redefined
133 to·contain·the·sum·of·its·previous·value·and·its·increment.133 to·contain·the·sum·of·its·previous·value·and·its·increment.
134 <P>134 <P>
135 To·increment·or·decrement·a·variable·you·can·use·this·form:135 To·increment·or·decrement·a·variable·you·can·use·this·form:
136 ··<p><code>136 ··<p><code>
137 <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> 
138 text·block<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">"bolditalic"</span>&gt;</span><br>
 138 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br>
 139 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">block</span>&gt;</span><br>
 140 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>
139 <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>141 &nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/blockdef</a>&gt;</span><br>
140 <br>142 <br>
 143 &nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>
141 </code></p>144 </code></p>
142 <p>145 <p>
143 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It146 Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.··It
144 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer147 may·give·weired·results·when·used·on·arbitrary·strings.··The·integer
145 values·are·limited·to·the·range·-2^31..2^31.148 values·are·limited·to·the·range·-2^31..2^31.
146 <P>149 <P>
147 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.150 Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.
4.14 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 47 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 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  Introduction··········<[[ref]]INC·macroname1="increment1"
 5  License···············[macroname2="increment2"·...·]·[GLOBAL]>
 6  Tutorial
 7  Usage·················*****·synopsis·*****
8  Usage········The·INC·can·be·used·for·incrementing/decrementing·a·variable·or·for8  HTP·Tags··············The·INC·can·be·used·for·incrementing/decrementing·a
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···········variable·or·for·variable·addition.·The·basic·form
 10   ··BLOCK·············is·shown·above.
 11   ··BLOCKDEF··········The·"increment"·is·anything·that·evaluates·to·a
 12   ··DEF···············integer.·It·can·be·a·literal·string·or·a·macro
11   ··BLOCK····literal·string·or·a·macro·preceeded·by·the·'$'-operator.·The·macroname13   ··FILE··············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·is14   ··IF················be·the·name·of·a·defined·macro·that·contains·an
 15  [>]·INC···············integer.·If·the·increment·is·ommitted·it·defaults
 16   ··IMG···············to·1.·The·effect·of·this·operation·is·that·the
14   ··FILE·····that·the·macro·is·redefined·to·contain·the·sum·of·its·previous·value·and17   ··IMAGEURL··········macro·is·redefined·to·contain·the·sum·of·its
15   ··IF·······its·increment.18   ··OPT···············previous·value·and·its·increment.
16  [>]·INC······To·increment·or·decrement·a·variable·you·can·use·this·form:19   ··OUTPUT············To·increment·or·decrement·a·variable·you·can·use
 20   ··QUOTE·············this·form:
 21   ··SET··············· ·<[[ref]]blockdef·name="bolditalic">
 22   ··UNDEF············· · ·<b><i>
 23   ··UNSET············· · ·<[[ref]]use·block>
 24   ··USE,_$············ · ·</i></b>
 25   ··WHILE············· ·<[[ref]]/blockdef>
17   ··IMG······<[[ref]]OUTPUT·FILE="outputfilename"·[APPEND]·[EXPAND]> 
18   ··IMAGEURL·text·block 
19   ··OPT······<[[ref]]/OUTPUT> 
20   ··OUTPUT 
21   ··QUOTE····Note·that·INC·doesn't·check·if·the·strings·really·denote·integers.·It·may 
22   ··SET······give·weired·results·when·used·on·arbitrary·strings.·The·integer·values 
23   ··UNDEF····are·limited·to·the·range·-2^31..2^31. 
24   ··UNSET····Note·further·that·htp·wasn't·designed·to·do·extensive·calculations.·The 
25   ··USE,_$···INC·tag·is·useful·in·conjunction·with·WHILE·to·iterate·over·the·defined 
26   ··WHILE····blocks. 
27   ··<!---26   ··<!---
28  History 
29  Wish_list 
30  Bugs27  History··············· ·This·is·<bolditalic>bold·and·italic</bolditalic>
 28  Wish_list·············Note·that·INC·doesn't·check·if·the·strings·really
 29  Bugs··················denote·integers.·It·may·give·weired·results·when
 30 ························used·on·arbitrary·strings.·The·integer·values·are
 31 ························limited·to·the·range·-2^31..2^31.
 32 ························Note·further·that·htp·wasn't·designed·to·do
 33 ························extensive·calculations.·The·INC·tag·is·useful·in
 34 ························conjunction·with·WHILE·to·iterate·over·the·defined
 35 ························blocks.
  
  
  
  
  
  
  
  
  
  
  
Offset 46, 18 lines modifiedOffset 55, 17 lines modified
  
  
46  page_source55  page_source
47  htp_project56  htp_project
48  htp_homepage57  htp_homepage
49 hosted·by58 hosted·by
50 Sourceforge59 Sourceforge
 60 HTML·coding·[Powered
 61 by_htp]
51 HTML·coding 
52 [Powered_by 
53 htp] 
54 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/62 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
55 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.63 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
56 ·····Maintainers:·Jochen_Hoenicke.64 ·····Maintainers:·Jochen_Hoenicke.
57 Copyright·©·1995–96·Jim·Nelson.65 Copyright·©·1995–96·Jim·Nelson.
58 Copyright·©·2001–2014·Jochen_Hoenicke.66 Copyright·©·2001–2014·Jochen_Hoenicke.
59 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according·to67 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
60 terms·described·in·the·License_section.68 according·to·terms·described·in·the·License_section.
61 last·updated·Sat·May·16,·201569 last·updated·Sat·May·16,·2015
26.7 KB
./usr/share/doc/htp/metatag.html
    
Offset 88, 40 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 <font·size="-2">&nbsp;5.·</font><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> 
100 <font·size="-2">&nbsp;6.·</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> 
101 <font·size="-2">&nbsp;7.·</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> 
102 <font·size="-2">&nbsp;8.·</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> 
103 <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>·<span·class="htp-attrib">size</span>&gt;</span><br> 
104 <font·size="-2">10.·</font>&nbsp;·&nbsp;·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/FONT&gt;</span><br> 
105 <font·size="-2">11.·</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> 
106 <font·size="-2">12.·</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> 
107 <font·size="-2">13.·</font><br> 
108 <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">SIZE</span>=<span·class="htp-string">"+2"</span>·<span·class="htp-attrib">TITLE</span>=<span·class="htp-string">"A·title"</span>&gt;</span><br> 
109 <font·size="-2">15.·</font><br> 
110 <font·size="-2">16.·</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> 
111 <font·size="-2">17.·</font><br> 
112 <font·size="-2">18.·</font>&nbsp;·This·will·fail:<br> 
113 <font·size="-2">19.·</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> 
114 <font·size="-2">20.·</font><br> 
115 <font·size="-2">21.·</font>&nbsp;·Instead,·use·*·like·this:<br> 
116 <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>·<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> 
117 <font·size="-2">23.·</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> 
118 <font·size="-2">24.·</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> 
119 <font·size="-2">25.·</font>&nbsp;·&nbsp;·<br> 
120 <font·size="-2">26.·</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> 
121 </code></p>96 </code></p>
122 <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.
123 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.
124 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
125 <code>/def</code></a>·tags.··You·don't·have·to·understand·this100 <code>/def</code></a>·tags.··You·don't·have·to·understand·this
126 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
127 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 131, 35 lines modifiedOffset 106, 42 lines modified
131 file</a>.··</p>106 file</a>.··</p>
132 <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
133 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
134 encounters·a·blockdef·tag·it·will·automatically·search·for·the109 encounters·a·blockdef·tag·it·will·automatically·search·for·the
135 matching·closing·tag·and·put·everything·between·these·tags·in·a·block110 matching·closing·tag·and·put·everything·between·these·tags·in·a·block
136 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>
137 ··<p><code>112 ··<p><code>
 113 <font·size="-2">&nbsp;1.·</font>&nbsp;·<span·class="htp-tag">&lt;<a·href="blockdef.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">blockdef</a>·<span·class="htp-attrib">name</span>=<span·class="htp-string">"bolditalic"</span>&gt;</span><br>
 114 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;b&gt;</span><span·class="htp-tag">&lt;i&gt;</span><br>
 115 <font·size="-2">&nbsp;3.·</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">block</span>&gt;</span><br>
 116 <font·size="-2">&nbsp;4.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;/i&gt;</span><span·class="htp-tag">&lt;/b&gt;</span><br>
138 <font·size="-2">&nbsp;1.·</font><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>117 <font·size="-2">&nbsp;5.·</font>&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>
139 <font·size="-2">&nbsp;2.·</font><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> 
140 <font·size="-2">&nbsp;3.·</font><br>118 <font·size="-2">&nbsp;6.·</font><br>
 119 <font·size="-2">&nbsp;7.·</font>&nbsp;·This·is·<span·class="htp-tag">&lt;bolditalic&gt;</span>bold·and·italic<span·class="htp-tag">&lt;/bolditalic&gt;</span><br>
141 </code></p>120 </code></p>
142 <h2>Using·parameters</h2>121 <h2>Using·parameters</h2>
143 <p>·More·sophisticated·tags·accept·parameters.··The122 <p>·More·sophisticated·tags·accept·parameters.··The
144 <code>option</code>·parameter·lets·multiple·metatag·parameters·be123 <code>option</code>·parameter·lets·multiple·metatag·parameters·be
145 named·and·expanded·inside·the·<code>def</code>·or124 named·and·expanded·inside·the·<code>def</code>·or
146 <code>blockdef</code>·block:·</p>125 <code>blockdef</code>·block:·</p>
147 ··<p><code>126 ··<p><code>
148 <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>127 <font·size="-2">&nbsp;1.·</font><span·class="htp-tag">&lt;<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="htp-attrib">[ATTRIBUTE</span>=<span·class="htp-value">VALUE</span>·<span·class=[·...·truncated·by·diffoscope;·len:·17,·SHA:·caad84c8bc3777dc8199258e880f877b9b82b192a94413c7375c9beda919cf50·...·]</span>&gt;</span><br>
 128 <font·size="-2">&nbsp;2.·</font><br>
149 </code></p>129 </code></p>
150 <h2>Saving·blocks·for·later</h2>130 <h2>Saving·blocks·for·later</h2>
151 <p>When·you·are·using·templates,·the·html·should·only·be·written·by131 <p>When·you·are·using·templates,·the·html·should·only·be·written·by
152 the·template·file.··The·normal·htp·files·should·just·define·macros132 the·template·file.··The·normal·htp·files·should·just·define·macros
153 that·are·used·later·in·the·template.··So·you·may·want·to·write·block133 that·are·used·later·in·the·template.··So·you·may·want·to·write·block
154 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this134 tags·that·just·save·the·block·in·a·macro·for·later·use.··Although·this
155 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to135 is·possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to
156 do·this:</p>136 do·this:</p>
157 ··<p><code>137 ··<p><code>
158 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login[·...·truncated·by·diffoscope;·len:·1,·SHA:·d2e2adf7177b7a8afddbc12d1634cf23ea1a71020f6a1308070a16400fb68fde·...·]name</span>&gt;</span><br>138 <font·size="-2">&nbsp;1.·</font><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>
 139 <font·size="-2">&nbsp;2.·</font><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>
 140 <font·size="-2">&nbsp;3.·</font><br>
159 </code></p>141 </code></p>
160 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a142 <p>·This·defines·a·block·macro·named·section.··This·macro·uses·a
161 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is143 counter·<code>sect-ctr</code>·that·enumerates·the·sections.··It·is
162 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is144 increased·for·every·section·(line·3)·and·then·the·block·macro·name·is
163 build·from·this·counter.··So·the·first·section·is·stored·in·block145 build·from·this·counter.··So·the·first·section·is·stored·in·block
164 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>·flag146 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
165 in·line·4·tells·htp·that·these·macros·should·be·defined·globally147 in·line·4·tells·htp·that·these·macros·should·be·defined·globally
Offset 178, 18 lines modifiedOffset 160, 23 lines modified
178 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be160 contents·of·block·to·be·expanded·twice.··If·you·omit·it,·it·would·be
179 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the161 expanded·when·defining·the·sect-1·macro·and·when·using·it·later·in·the
180 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you162 template.··Generally·it·is·a·good·idea·to·use·noexpand·whenever·you
181 use·expand·in·a·block·around·it.</p>163 use·expand·in·a·block·around·it.</p>
182 <p>To·close·this·example·we·show·how·to·expand·the164 <p>To·close·this·example·we·show·how·to·expand·the
183 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>165 <code>sect-${sect-ctr}</code>·blocks·in·the·template:</p>
184 ··<p><code>166 ··<p><code>
185 <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> 
186 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br> 
187 <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>167 <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>
 168 <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>
188 <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>169 <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>
 170 <font·size="-2">&nbsp;4.·</font><br>
 171 <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>
 172 <font·size="-2">&nbsp;6.·</font><br>
 173 <font·size="-2">&nbsp;7.·</font>This·works:·&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="use.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">use</a>·<span·class="htp-attrib">stuff</span>·<span·class="htp-attrib">email</span>=<span·class="htp-string">"jnelson@crl.com"</span>&gt;</span><br>
 174 <font·size="-2">&nbsp;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>
 175 <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>
189 </code></p>176 </code></p>
190 <p>177 <p>
191 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·whether178 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
192 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is179 the·macro·sect-${sect-ctr}·is·defined.··If·it·is·defined·the·body·is
193 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards180 evaluated,·which·expands·the·macro·and·increases·sect-ctr.··Afterwards
194 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This181 the·while·condition·is·checked·again·to·check·for·sect-2·macro.··This
195 repeats·until·sect-${sect-ctr}·is·not·defined.182 repeats·until·sect-${sect-ctr}·is·not·defined.
12.8 KB
html2text {}
    
Offset 1, 114 lines modifiedOffset 1, 104 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·define4 Contents········Metatags·allow·for·defining·your·own·HTML-like·tags.·When·you
5  Introduction··a·metatag·you·have·to·provide·the·HTML·code·which·it·abbreviates.·In5  Introduction··define·a·metatag·you·have·to·provide·the·HTML·code·which·it
6  License·······fact·metatags·are·just·like·block·macros,·but·they·have·a·nicer6  License·······abbreviates.·In·fact·metatags·are·just·like·block·macros,·but·they
7  Tutorial······syntax.·With·metatags·you·can·expand·htp's·functionality.7  Tutorial······have·a·nicer·syntax.·With·metatags·you·can·expand·htp's
 8   ··Macros····functionality.
8   ··Macros····Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags·and9   ··Including·Metatags·are·defined·with·the·[[ref]]def·and·[[ref]]blockdef·tags
9   ··Including·undefined·with·the·[[ref]]undef·tag.10   ··Templates·and·undefined·with·the·[[ref]]undef·tag.
10   ··Templates·As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy11   ··Files·····As·an·example·we·show·how·to·define·a·tag·that·builds·a·fancy
11   ··Files·····horizontal·rule·out·of·several·images.12  [>]·Metatags··horizontal·rule·out·of·several·images.
 13  Usage········· 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····· 5.<FONT·SIZE=${size}> 
17  Bugs·········· 6. · ·<[[ref]]/IF> 
18 ················ 7. · ·<[[ref]]IMG·SRC=pics/${src}> 
19 ················ 8. · ·<[[ref]]USE·title> 
20 ················ 9. · ·<[[ref]]IF·size> 
21 ················10. · · · ·</FONT> 
22 ················11. · ·<[[ref]]/IF> 
23 ················12. ·<[[ref]]/DEF> 
24 ················13. 
25 ················14. ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title"> 
26 ················15. 
27 ················16. ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title"> 
28 ················17. 
29 ················18. ·This·will·fail: 
30 ················19. ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title"> 
31 ················20. 
32 ················21. ·Instead,·use·*·like·this: 
33 ················22. ·<[[ref]]DEF·NAME="MYIMG"·OPTION="SRC·*"> 
34 ················23. · ·<[[ref]]IMG·SRC="pics/${src}"·$*> 
35 ················24. ·<[[ref]]/DEF> 
36 ················25. ·  
37 ················26. ·<MYIMG·SRC="logo.gif"·ALT="Our·logo"> 
38 ················In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.·The14  HTP_Tags······In·line·1·of·the·above·example·a·new·tag·named·imghr·is·defined.
39 ················html·code·which·implements·this·rule·is·following·in·lines·2-8.15  History·······The·html·code·which·implements·this·rule·is·following·in·lines·2-
40 ················between·the·[[ref]]def_and_/def·tags.·You·don't·have·to·understand16  Wish_list·····8.·between·the·[[ref]]def_and_/def·tags.·You·don't·have·to
41 ················this·html·code,·but·you·should·understand·that·this·is·just·pure·html17  Bugs··········understand·this·html·code,·but·you·should·understand·that·this·is
42 ················to·draw·the·fancy·rule.·Every·time·you·write·<imghr>·as·in·line·1218 ················just·pure·html·to·draw·the·fancy·rule.·Every·time·you·write
43 ················htp·will·replace·this·tag·with·the·corresponding·html·code.·To·make 
44 ················metatags·available·to·all·htp·documents·in·your·project,·place·them 
45 ················in·a·common·[[ref]]include_file.19 ················<imghr>·as·in·line·12·htp·will·replace·this·tag·with·the
 20 ················corresponding·html·code.·To·make·metatags·available·to·all·htp
 21 ················documents·in·your·project,·place·them·in·a·common·[[ref]]include
 22 ················file.
46 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing23 ················Often·you·want·to·define·tags·that·have·an·opening·and·a·closing
47 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.24 ················variant.·For·this·purpose·you·should·use·the·[[ref]]blockdef·tag.
48 ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search·for25 ················When·htp·encounters·a·blockdef·tag·it·will·automatically·search
49 ················the·matching·closing·tag·and·put·everything·between·these·tags·in·a26 ················for·the·matching·closing·tag·and·put·everything·between·these·tags
50 ················block·macro·named·block.·Here·is·an·example·for·this.27 ················in·a·block·macro·named·block.·Here·is·an·example·for·this.
 28 ················ 1. ·<[[ref]]blockdef·name="bolditalic">
 29 ················ 2. · ·<b><i>
 30 ················ 3. · ·<[[ref]]use·block>
 31 ················ 4. · ·</i></b>
 32 ················ 5. ·<[[ref]]/blockdef>
 33 ················ 6.
 34 ················ 7. ·This·is·<bolditalic>bold·and·italic</bolditalic>
 35 ················*****·Using·parameters·*****
 36 ················More·sophisticated·tags·accept·parameters.·The·option·parameter
 37 ················lets·multiple·metatag·parameters·be·named·and·expanded·inside·the
 38 ················def·or·blockdef·block:
 39 ················ 1.<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]>
 40 ················ 2.
 41 ················*****·Saving·blocks·for·later·*****
 42 ················When·you·are·using·templates,·the·html·should·only·be·written·by
 43 ················the·template·file.·The·normal·htp·files·should·just·define·macros
 44 ················that·are·used·later·in·the·template.·So·you·may·want·to·write
 45 ················block·tags·that·just·save·the·block·in·a·macro·for·later·use.
 46 ················Although·this·is·possible·with·htp·it·is·quite·tricky,·so·here·we
 47 ················present·the·way·to·do·this:
51 ················ 1.<[[ref]]unset·macroname>48 ················ 1.<[[ref]]unset·macroname>
52 ················ 2.<[[ref]]unset·macroname1·macroname2·...·>49 ················ 2.<[[ref]]unset·macroname1·macroname2·...·>
53 ················ 3.50 ················ 3.
54 ················*****·Using·parameters·***** 
55 ················More·sophisticated·tags·accept·parameters.·The·option·parameter·lets 
56 ················multiple·metatag·parameters·be·named·and·expanded·inside·the·def·or 
57 ················blockdef·block: 
58 ················ 1. · ·<[[ref]]unset·email_addr> 
59 ················*****·Saving·blocks·for·later·***** 
60 ················When·you·are·using·templates,·the·html·should·only·be·written·by·the 
61 ················template·file.·The·normal·htp·files·should·just·define·macros·that 
62 ················are·used·later·in·the·template.·So·you·may·want·to·write·block·tags 
63 ················that·just·save·the·block·in·a·macro·for·later·use.·Although·this·is 
64 ················possible·with·htp·it·is·quite·tricky,·so·here·we·present·the·way·to 
65 ················do·this: 
66 ················ 1. · ·<[[ref]]unset·email_addr·home_url·login_name> 
67 ················This·defines·a·block·macro·named·section.·This·macro·uses·a·counter51 ················This·defines·a·block·macro·named·section.·This·macro·uses·a
68 ················sect-ctr·that·enumerates·the·sections.·It·is·increased·for·every52 ················counter·sect-ctr·that·enumerates·the·sections.·It·is·increased·for
69 ················section·(line·3)·and·then·the·block·macro·name·is·build·from·this53 ················every·section·(line·3)·and·then·the·block·macro·name·is·build·from
70 ················counter.·So·the·first·section·is·stored·in·block·sect-1,·the·second54 ················this·counter.·So·the·first·section·is·stored·in·block·sect-1,·the
71 ················in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells·htp·that55 ················second·in·sect-2·and·so·on.·The·[[ref]]global·flag·in·line·4·tells
72 ················these·macros·should·be·defined·globally·for·the·remaining·run.56 ················htp·that·these·macros·should·be·defined·globally·for·the·remaining
73 ················Otherwise·they·would·be·forgotten·at·the·end·of·the·section·macro.57 ················run.·Otherwise·they·would·be·forgotten·at·the·end·of·the·section
 58 ················macro.
74 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4·and59 ················The·tricky·part·is·the·[[ref]]expand·and·noexpand·flags·in·line·4
75 ················5.·Normally·when·you·define·a·block·macro·the·code·between·the·start60 ················and·5.·Normally·when·you·define·a·block·macro·the·code·between·the
76 ················and·end·tag·is·literally·copied·into·the·macro·value.·The·expansion61 ················start·and·end·tag·is·literally·copied·into·the·macro·value.·The
77 ················takes·place·when·the·macro·is·used.·In·this·case·that·doesn't·make62 ················expansion·takes·place·when·the·macro·is·used.·In·this·case·that
78 ················sense;·all·macros·sect-1,·sect-2·and·so·on·would·just·contain·the63 ················doesn't·make·sense;·all·macros·sect-1,·sect-2·and·so·on·would·just
79 ················same·value,·namely·<use·block>·and·block·wouldn't·be·defined·anymore64 ················contain·the·same·value,·namely·<use·block>·and·block·wouldn't·be
80 ················when·the·macros·are·finally·expanded.·Therefore·we·use·expand·to65 ················defined·anymore·when·the·macros·are·finally·expanded.·Therefore·we
81 ················expand·the·use·tag·already·when·sect-1·is·defined.66 ················use·expand·to·expand·the·use·tag·already·when·sect-1·is·defined.
82 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite·and67 ················The·noexpand·attribute·of·the·[[ref]]use·tag·is·just·the·opposite
83 ················prevents·the·contents·of·block·to·be·expanded·twice.·If·you·omit·it,68 ················and·prevents·the·contents·of·block·to·be·expanded·twice.·If·you
84 ················it·would·be·expanded·when·defining·the·sect-1·macro·and·when·using·it69 ················omit·it,·it·would·be·expanded·when·defining·the·sect-1·macro·and
85 ················later·in·the·template.·Generally·it·is·a·good·idea·to·use·noexpand70 ················when·using·it·later·in·the·template.·Generally·it·is·a·good·idea
86 ················whenever·you·use·expand·in·a·block·around·it.71 ················to·use·noexpand·whenever·you·use·expand·in·a·block·around·it.
87 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}72 ················To·close·this·example·we·show·how·to·expand·the·sect-${sect-ctr}
88 ················blocks·in·the·template:73 ················blocks·in·the·template:
89 ················ 1. ·<[[ref]]WHILE·sect-$i>74 ················ 1.<[[ref]]block·stuff>
 75 ················ 2. ·<a·href=$email>send·email</a>
90 ················ 2. · ·... 
91 ················ 3. · ·<[[ref]]INC·i> 
92 ················ 4. ·<[[ref]]/WHILE>76 ················ 3.<[[ref]]/block>
 77 ················ 4.
 78 ················ 5.<[[ref]]set·morestuff=$email>
 79 ················ 6.
 80 ················ 7.This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
 81 ················ 8.But·this·fails:·<[[ref]]use·email>
 82 ················ 9.And·this·fails:·<[[ref]]use·morestuff·email="jnelson@crl.com">
93 ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-${sect-83 ················The·[[ref]]while·tag·in·line·3·checks·whether·the·macro·sect-$
Max diff block lines reached; 1677/13124 bytes (12.78%) of diff not shown.
6.76 KB
./usr/share/doc/htp/opt.html
    
Offset 114, 16 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 <span·class="htp-tag">&lt;<a·href="quote.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">QUOTE</a>·<span·class="htp-attrib">TAG</span>·<span·class="ebnf">[</span><span·class="htp-attrib">ATTRIBUTE</span>=<span·class="htp-value"[·...·truncated·by·diffoscope;·len:·69,·SHA:·ea634dbab5ac4ccf4b06c709a9fcaf6deb645033f0530f94544de5e99f89a6df·...·]</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[·...·truncated·by·diffoscope;·len:·36,·SHA:·a48e3b5043fdef3852f24d4ca2018699e1810cae7d53ba3772ebebc1f092846f·...·]</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>
122 <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>
123 </code></p>145 </code></p>
124 <h2>synopsis</h2>146 <h2>synopsis</h2>
125 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing147 <STRONG>OPT</STRONG>·is·an·htp·tag·that·can·be·used·to·specify·processing
126 options·inside·the·actual·document·being·processed.··The·options·are148 options·inside·the·actual·document·being·processed.··The·options·are
127 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not149 used·exactly·as·they·would·be·on·the·command-line,·although·they·are·not
128 preceded·by·a·&lsquo;-&rsquo;·character.150 preceded·by·a·&lsquo;-&rsquo;·character.
129 <P>151 <P>
2.19 KB
html2text {}
    
Offset 1, 38 lines modifiedOffset 1, 60 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·OPT·******2 ******·htp·on-line·reference·:·OPT·******
3 Table_of·······*****·syntax·*****3 Table_of·······*****·syntax·*****
4 Contents·······<[[ref]]QUOTE·TAG·[ATTRIBUTE=VALUE·...]> 
5  Introduction 
6  License······*****·synopsis·***** 
7  Tutorial·····OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the 
8  Usage········actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be 
9  HTP·Tags·····on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character. 
10   ··ALTTEXT··Click·here·for·more_information_on_using_customization_options_with_htp. 
11   ··BLOCK 
12   ··BLOCKDEF 
13   ··DEF4 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   ··FILE14   ··FILE
15   ··IF15   ··IF······· ·<HEADERIMG·SRC="logo.gif"·SIZE="+2"·TITLE="A·title">
16   ··INC16   ··INC
17   ··IMG17   ··IMG······ ·<HEADERIMG·SRC="logo.gif"·TITLE="Normal·sized·title">
18   ··IMAGEURL18   ··IMAGEURL
19  [>]·OPT 
20   ··OUTPUT19  [>]·OPT······ ·This·will·fail:
 20   ··OUTPUT··· ·<HEADERIMG·SRC="logo.gif"·ALT="Our·logo"·TITLE="Another·title">
21   ··QUOTE21   ··QUOTE
22   ··SET 
23   ··UNDEF 
24   ··UNSET 
25   ··USE,_$ 
26   ··WHILE 
27   ··<!--- 
28  History 
29  Wish_list 
30  Bugs22   ··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····OPT·is·an·htp·tag·that·can·be·used·to·specify·processing·options·inside·the
 30  Bugs·········actual·document·being·processed.·The·options·are·used·exactly·as·they·would·be
 31 ···············on·the·command-line,·although·they·are·not·preceded·by·a·‘-’·character.
 32 ···············Click·here·for·more_information_on_using_customization_options_with_htp.
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
31  page_source33  page_source
32  htp_project34  htp_project
33  htp_homepage35  htp_homepage
34 hosted·by36 hosted·by
35 Sourceforge37 Sourceforge
36 HTML·coding38 HTML·coding
37 [Powered_by39 [Powered_by
4.89 KB
./usr/share/doc/htp/output.html
    
Offset 114, 14 lines modifiedOffset 114, 21 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 &nbsp;·<span·class="htp-tag">&lt;<a·href="set.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">set</a>·<span·class="htp-attrib">sect-ctr</span>=<span·class="htp-string">"0"</span>&gt;</span><br>
 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>
121 </code></p>128 </code></p>
122 <h2>synopsis</h2>129 <h2>synopsis</h2>
123 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary130 <P>·The·<STRONG>OUTPUT</STRONG>·tag·can·be·used·to·create·auxillary
124 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the131 files·besides·the·main·HTML·file.··The·text·between·this·tag·and·the
125 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>132 corresponding·&lt;/OUTPUT&gt;·tag·is·written·to·output·file.·</P>
126 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you133 <P>·Normally·the·outputfile·is·cleared·before·writing·to·it,·but·you
127 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text134 can·use·the·APPEND·attribute·to·extend·an·existing·file.··The·text
2.74 KB
html2text {}
    
Offset 1, 28 lines modifiedOffset 1, 28 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·OUTPUT·******2 ******·htp·on-line·reference·:·OUTPUT·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents····*****·syntax·*****
4  Introduction···············*****·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·*****
5  License····················The·OUTPUT·tag·can·be·used·to·create·auxillary12   ··DEF············The·OUTPUT·tag·can·be·used·to·create·auxillary·files
 13   ··FILE···········besides·the·main·HTML·file.·The·text·between·this·tag·and
 14   ··IF·············the·corresponding·</OUTPUT>·tag·is·written·to·output·file.
6  Tutorial···················files·besides·the·main·HTML·file.·The·text·between 
7  Usage······················this·tag·and·the·corresponding·</OUTPUT>·tag·is 
8  HTP·Tags···················written·to·output·file. 
9   ··ALTTEXT················Normally·the·outputfile·is·cleared·before·writing15   ··INC············Normally·the·outputfile·is·cleared·before·writing·to·it,
 16   ··IMG············but·you·can·use·the·APPEND·attribute·to·extend·an·existing
 17   ··IMAGEURL·······file.·The·text·written·to·the·file·is·normally·not
 18   ··OPT············expanded,·i.e.·all·tags·inside·this·block·are·not·executed
10   ··BLOCK··················to·it,·but·you·can·use·the·APPEND·attribute·to 
11   ··BLOCKDEF···············extend·an·existing·file.·The·text·written·to·the 
12   ··DEF····················file·is·normally·not·expanded,·i.e.·all·tags 
13   ··FILE···················inside·this·block·are·not·executed·but·written 
14   ··IF·····················unmodified·to·the·file.·However,·you·can·use·the19  [>]·OUTPUT·········but·written·unmodified·to·the·file.·However,·you·can·use
15   ··INC····················EXPAND·attribute·to·override·this·behaviour.20   ··QUOTE··········the·EXPAND·attribute·to·override·this·behaviour.
16   ··IMG 
17   ··IMAGEURL 
18   ··OPT 
19  [>]·OUTPUT 
20   ··QUOTE 
21   ··SET21   ··SET
22   ··UNDEF22   ··UNDEF
23   ··UNSET23   ··UNSET
24   ··USE,_$24   ··USE,_$
25   ··WHILE25   ··WHILE
26   ··<!---26   ··<!---
27  History27  History
Offset 30, 21 lines modifiedOffset 30, 26 lines modified
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·[Powered_by 
37 htp]36 HTML·coding
 37 [Powered_by_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.
2.31 KB
./usr/share/doc/htp/quote.html
    
Offset 114, 16 lines modifiedOffset 114, 15 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 <span·class="htp-tag">&lt;<a·href="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="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"macrovalue2"</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="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> 
123 <br>122 <br>
124 </code></p>123 </code></p>
125 <h2>synopsis</h2>124 <h2>synopsis</h2>
126 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise125 <STRONG>QUOTE</STRONG>·is·used·to·quote·a·macro·that·would·otherwise
127 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a126 be·interpreted·by·HTP.··It·may·be·useful·in·conjunction·with·a
128 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early127 surrounding·<a·href="expand.html">EXPAND</a>ed·block·to·prevent·early
129 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still128 expansion·of·some·contained·blocks.··Note·that·'$'·evaluation·is·still
841 B
html2text {}
    
Offset 1, 13 lines modifiedOffset 1, 13 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·QUOTE·******2 ******·htp·on-line·reference·:·QUOTE·******
3 Table_of_Contents············*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
4  Introduction···············<[[ref]]unset·macroname>4  Introduction···············<[[ref]]SET·macroname1="macrovalue1"
5  License····················<[[ref]]unset·macroname1·macroname2·...·>5  License····················[macroname2="macrovalue2"·...]·[GLOBAL]>
6  Tutorial6  Tutorial
7  Usage······················*****·synopsis·*****7  Usage······················*****·synopsis·*****
8  HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would8  HTP·Tags···················QUOTE·is·used·to·quote·a·macro·that·would
9   ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful9   ··ALTTEXT················otherwise·be·interpreted·by·HTP.·It·may·be·useful
10   ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block10   ··BLOCK··················in·conjunction·with·a·surrounding·EXPANDed·block
11   ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained11   ··BLOCKDEF···············to·prevent·early·expansion·of·some·contained
12   ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done12   ··DEF····················blocks.·Note·that·'$'·evaluation·is·still·done
4.99 KB
./usr/share/doc/htp/set.html
    
Offset 114, 23 lines modifiedOffset 114, 21 lines modified
114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>114 ······<a·class="noline"·href="bugs.html">Bugs</a></td></tr>
115 ··</table>115 ··</table>
116 ··</div>116 ··</div>
117 </td>117 </td>
118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">118 <td·bgcolor="#f0f0d0"·rowspan="2"·valign="top">
119 <h2>syntax</h2>119 <h2>syntax</h2>
120 ··<p><code>120 ··<p><code>
 121 <span·class="htp-tag">&lt;<a·href="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="ebnf">[</span><span·class="htp-attrib">macroname2</span>=<span·class="htp-string">"macrovalue2"</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="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> 
123 <br>122 <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;·&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> 
130 </code></p>128 </code></p>
131 <P>129 <P>
132 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">130 The·macro·"emailaddr"·can·then·be·expanded·later.··The·<A·HREF="use.html">
133 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular131 USE</A>·tag·is·used·to·expand·the·macro·outside·a·tag·(i.e.,·into·the·regular
134 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the132 text).··If·the·macro·needs·to·be·expanded·inside·a·markup·tag,·use·the
135 <A·HREF="use.html">'$'</A>·operator.133 <A·HREF="use.html">'$'</A>·operator.
136 <P>134 <P>
3.16 KB
html2text {}
    
Offset 1, 38 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]]unset·macroname>4  Introduction···············<[[ref]]SET·macroname1="macrovalue1"
5  License····················<[[ref]]unset·macroname1·macroname2·...·>5  License····················[macroname2="macrovalue2"·...]·[GLOBAL]>
6  Tutorial6  Tutorial
7  Usage······················*****·synopsis·*****7  Usage······················*****·synopsis·*****
8  HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be8  HTP·Tags···················SET·creates·a·macro·definition·that·can·later·be
9   ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create9   ··ALTTEXT················expanded·anywhere·in·the·HTML·document.·To·create
10   ··BLOCK··················a·macro:10   ··BLOCK··················a·macro:
11   ··BLOCKDEF··············· · ·<[[ref]]unset·email_addr> 
12   ··DEF····················The·macro·"emailaddr"·can·then·be·expanded·later.11   ··BLOCKDEF···············The·macro·"emailaddr"·can·then·be·expanded·later.
13   ··FILE···················The·USE·tag·is·used·to·expand·the·macro·outside·a12   ··DEF····················The·USE·tag·is·used·to·expand·the·macro·outside·a
14   ··IF·····················tag·(i.e.,·into·the·regular·text).·If·the·macro13   ··FILE···················tag·(i.e.,·into·the·regular·text).·If·the·macro
15   ··INC····················needs·to·be·expanded·inside·a·markup·tag,·use·the14   ··IF·····················needs·to·be·expanded·inside·a·markup·tag,·use·the
16   ··IMG····················'$'·operator.15   ··INC····················'$'·operator.
17   ··IMAGEURL···············Multiple·macros·can·be·declared·in·a·single·markup16   ··IMG····················Multiple·macros·can·be·declared·in·a·single·markup
18   ··OPT····················tag,·as·the·second·syntax·line·shows.17   ··IMAGEURL···············tag,·as·the·second·syntax·line·shows.
19   ··OUTPUT·················SET·should·only·be·used·for·a·single·line's·worth18   ··OPT····················SET·should·only·be·used·for·a·single·line's·worth
20   ··QUOTE··················of·text.·Multi-line·macros·can·be·defined·with·the19   ··OUTPUT·················of·text.·Multi-line·macros·can·be·defined·with·the
21  [>]·SET····················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the20   ··QUOTE··················BLOCK·tag.·The·BLOCK·tag·is·also·useful·if·the
22   ··UNDEF··················macro·contains·a·quotation·character·and·you·don't21  [>]·SET····················macro·contains·a·quotation·character·and·you·don't
23   ··UNSET··················want·to·fool·around·with·special·escape22   ··UNDEF··················want·to·fool·around·with·special·escape
24   ··USE,_$·················characters.23   ··UNSET··················characters.
25   ··WHILE··················Macros·can·be·redefined·by·using·another·SET24   ··USE,_$·················Macros·can·be·redefined·by·using·another·SET
26   ··<!---··················command·with·the·same·macro·name.·The·prior25   ··WHILE··················command·with·the·same·macro·name.·The·prior
27  History····················definition·will·be·destroyed,·however.·Also,·the26   ··<!---··················definition·will·be·destroyed,·however.·Also,·the
28  Wish_list··················macro·can·be·removed·(destroyed)·with·the·UNSET27  History····················macro·can·be·removed·(destroyed)·with·the·UNSET
29  Bugs·······················tag.28  Wish_list··················tag.
 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·Feb·08,·202523 ··last·updated·Sun·Jan·07,·2024
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·Feb·08,·20258 last·updated·Sun·Jan·07,·2024
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·Feb·08,·202512 last·updated·Sun·Jan·07,·2024
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·Feb·08,·20253 Copyright·by·Joe·Doe,·webmaster@domain.com,·last·updated·Sun·Jan·07,·2024
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·Feb·08,·202520 ··last·updated·Sun·Jan·07,·2024
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·Feb·08,·20256 last·updated·Sun·Jan·07,·2024
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·Feb·08,·202520 ··last·updated·Sun·Jan·07,·2024
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·Feb·08,·20256 last·updated·Sun·Jan·07,·2024
3.95 KB
./usr/share/doc/htp/undef.html
    
Offset 114, 19 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;·<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 &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>
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> 
126 </code></p>122 </code></p>
127 <h2>synopsis</h2>123 <h2>synopsis</h2>
128 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags124 <P><STRONG>UNDEF</STRONG>·removes·a·metatag·definition.··Metatags
129 created·by·<A·HREF="def.html">DEF</A>·and·<A125 created·by·<A·HREF="def.html">DEF</A>·and·<A
130 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF126 HREF="blockdef.html">BLOCKDEF</A>·can·be·removed·with·the·UNDEF
131 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by127 command.··Once·removed,·the·metatag·will·no·longer·be·recognized·by
132 htp·until·it·is·reassigned.··</P>128 htp·until·it·is·reassigned.··</P>
2.15 KB
html2text {}
    
Offset 1, 23 lines modifiedOffset 1, 22 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·UNDEF·******2 ******·htp·on-line·reference·:·UNDEF·******
3 Table_of·······*****·syntax·*****3 Table_of_Contents············*****·syntax·*****
 4  Introduction··············· · ·<[[ref]]unset·email_addr>
 5  License····················*****·synopsis·*****
 6  Tutorial···················UNDEF·removes·a·metatag·definition.·Metatags
 7  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
 10   ··BLOCK··················reassigned.
4 Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> 
5  Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; 
6  License······ ·<[[ref]]/def> 
7  Tutorial 
8  Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> 
9  HTP·Tags·····*****·synopsis·***** 
10   ··ALTTEXT··UNDEF·removes·a·metatag·definition.·Metatags·created·by·DEF·and 
11   ··BLOCK····BLOCKDEF·can·be·removed·with·the·UNDEF·command.·Once·removed,·the 
12   ··BLOCKDEF·metatag·will·no·longer·be·recognized·by·htp·until·it·is 
13   ··DEF······reassigned. 
14   ··FILE·····Multiple·metatags·can·be·removed·by·placing·each·name·as·an11   ··BLOCKDEF···············Multiple·metatags·can·be·removed·by·placing·each
15   ··IF·······attribute.12   ··DEF····················name·as·an·attribute.
 13   ··FILE
 14   ··IF
16   ··INC15   ··INC
17   ··IMG16   ··IMG
18   ··IMAGEURL17   ··IMAGEURL
19   ··OPT18   ··OPT
20   ··OUTPUT19   ··OUTPUT
21   ··QUOTE20   ··QUOTE
22   ··SET21   ··SET
Offset 28, 25 lines modifiedOffset 27, 22 lines modified
28   ··<!---27   ··<!---
29  History28  History
30  Wish_list29  Wish_list
31  Bugs30  Bugs
  
  
  
  
  
32  page_source31  page_source
33  htp_project32  htp_project
34  htp_homepage33  htp_homepage
35 hosted·by34 hosted·by
36 Sourceforge35 Sourceforge
 36 HTML·coding·[Powered_by
37 HTML·coding 
38 [Powered_by 
39 htp]37 htp]
40 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/38 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
41 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.39 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
42 ·····Maintainers:·Jochen_Hoenicke.40 ·····Maintainers:·Jochen_Hoenicke.
43 Copyright·©·1995–96·Jim·Nelson.41 Copyright·©·1995–96·Jim·Nelson.
44 Copyright·©·2001–2014·Jochen_Hoenicke.42 Copyright·©·2001–2014·Jochen_Hoenicke.
45 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according43 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
46 to·terms·described·in·the·License_section.44 according·to·terms·described·in·the·License_section.
47 last·updated·Sat·May·16,·201545 last·updated·Sat·May·16,·2015
8.02 KB
./usr/share/doc/htp/unset.html
    
Offset 114, 36 lines modifiedOffset 114, 32 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[·...·truncated·by·diffoscope;·len:·129,·SHA:·509518698059ac1a59ac68f08b3412aac9b298ca2ef2e450662bfc2a996e561a·...·]<br>121 <span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="ebnf">[</span><span·class="htp-attrib">NOT</span><span·class="ebnf">]</span>·<span·class="htp-attrib">conditional</[·...·truncated·by·diffoscope;·len:·16,·SHA:·55527ebee7f400ca76d1800643752c5b3d2641009c366c91fa6984e1bc63a7db·...·]<br>
 122 &nbsp;·&nbsp;·block<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>123 <span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">/WHILE</a>&gt;</span><br>
124 <br>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> 
126 </code></p>125 </code></p>
127 <h2>synopsis</h2>126 <h2>synopsis</h2>
128 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.127 <STRONG>UNSET</STRONG>·removes·(or·deletes)·a·macro·and·it's·definition.
129 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.128 The·macro·is·subsequently·not·available·for·use·in·the·pre-processed·files.
130 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or129 (Note·that·simply·redefining·the·macro·with·another·<A·HREF="set.html">SET</A>·or
131 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The130 <A·HREF="block.html">BLOCK</A>·definition·with·the·same·name·is·acceptable.··The
132 old·macro·definition·will·be·removed·automatically.)131 old·macro·definition·will·be·removed·automatically.)
133 <P>132 <P>
134 For·example:133 For·example:
135 ··<p><code>134 ··<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 &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>
 136 &nbsp;·&nbsp;·...<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>137 &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>
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·class="htp-attrib">expand</span>·<span·class="htp-attrib">global</span>&gt;</span><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> 
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 &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>139 </code></p>
144 <P>140 <P>
145 More·than·one·macro·may·be·removed·in·the·same·tag:141 More·than·one·macro·may·be·removed·in·the·same·tag:
146 ··<p><code>142 ··<p><code>
147 &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>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>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>&gt;</span><br>
148 &nbsp;·&nbsp;·...<br>144 &nbsp;·&nbsp;·...<br>
149 &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>145 &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>
3.21 KB
html2text {}
    
Offset 1, 35 lines modifiedOffset 1, 34 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_Contents············*****·syntax·*****
 4  Introduction···············<[[ref]]WHILE·[NOT]·conditional>
 5  License···················· · ·block
 6  Tutorial···················<[[ref]]/WHILE>
 7  Usage
4 Contents······· ·<[[ref]]def·name="sharedimg"·option="name·alt"> 
5  Introduction· · ·<[[ref]]img·src="/home/sharedimages/${name}"·alt="${alt}">; 
6  License······ ·<[[ref]]/def> 
7  Tutorial 
8  Usage········ ·<sharedimg·name="bubble.gif"·alt="Bubble·image"> 
9  HTP·Tags·····*****·synopsis·*****8  HTP·Tags···················*****·synopsis·*****
10   ··ALTTEXT··UNSET·removes·(or·deletes)·a·macro·and·it's·definition.·The·macro9   ··ALTTEXT················UNSET·removes·(or·deletes)·a·macro·and·it's
 10   ··BLOCK··················definition.·The·macro·is·subsequently·not
11   ··BLOCK····is·subsequently·not·available·for·use·in·the·pre-processed·files.11   ··BLOCKDEF···············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.)12   ··DEF····················(Note·that·simply·redefining·the·macro·with
 13   ··FILE···················another·SET·or·BLOCK·definition·with·the·same·name
 14   ··IF·····················is·acceptable.·The·old·macro·definition·will·be
 15   ··INC····················removed·automatically.)
15   ··IF·······For·example:16   ··IMG····················For·example:
 17   ··IMAGEURL··············· ·<[[ref]]WHILE·NOT·i="10">
 18   ··OPT···················· · ·...
 19   ··OUTPUT················· · ·<[[ref]]INC·i>
 20   ··QUOTE·················· ·<[[ref]]/WHILE>
16   ··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> 
23   ··UNDEF····More·than·one·macro·may·be·removed·in·the·same·tag:21   ··SET····················More·than·one·macro·may·be·removed·in·the·same
 22   ··UNDEF··················tag:
24  [>]·UNSET···· ·<[[ref]]WHILE·sect-$i>23  [>]·UNSET·················· ·<[[ref]]WHILE·sect-$i>
25   ··USE,_$··· · ·...24   ··USE,_$················· · ·...
26   ··WHILE···· · ·<[[ref]]INC·i>25   ··WHILE·················· · ·<[[ref]]INC·i>
27   ··<!---···· ·<[[ref]]/WHILE>26   ··<!---·················· ·<[[ref]]/WHILE>
28  History27  History
29  Wish_list28  Wish_list
30  Bugs29  Bugs
  
  
  
  
Offset 47, 18 lines modifiedOffset 46, 17 lines modified
  
  
47  page_source46  page_source
48  htp_project47  htp_project
49  htp_homepage48  htp_homepage
50 hosted·by49 hosted·by
51 Sourceforge50 Sourceforge
 51 HTML·coding·[Powered_by
52 HTML·coding 
53 [Powered_by 
54 htp]52 htp]
55 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/53 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
56 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.54 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
57 ·····Maintainers:·Jochen_Hoenicke.55 ·····Maintainers:·Jochen_Hoenicke.
58 Copyright·©·1995–96·Jim·Nelson.56 Copyright·©·1995–96·Jim·Nelson.
59 Copyright·©·2001–2014·Jochen_Hoenicke.57 Copyright·©·2001–2014·Jochen_Hoenicke.
60 Permission·to·reproduce·and·distribute·this·hypertext·document·granted·according58 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
61 to·terms·described·in·the·License_section.59 according·to·terms·described·in·the·License_section.
62 last·updated·Sat·May·16,·201560 last·updated·Sat·May·16,·2015
13.2 KB
./usr/share/doc/htp/use.html
    
Offset 114, 15 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="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>
 122 &nbsp;·&nbsp;·...<br>
121 &nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>&gt;</span><br>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">i</span>&gt;</span><br>
 124 &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>
122 </code></p>125 </code></p>
123 <h2>synopsis</h2>126 <h2>synopsis</h2>
124 <strong>USE</strong>·will·expand·macros·that·have·been·previously127 <strong>USE</strong>·will·expand·macros·that·have·been·previously
125 declared·with·either·<A·HREF="set.html">SET</A>·or·<A128 declared·with·either·<A·HREF="set.html">SET</A>·or·<A
126 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other129 HREF="block.html">BLOCK</A>.··USE·can·only·be·used·outside·of·other
127 markup·tags.130 markup·tags.
128 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will131 <p>·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
Offset 132, 15 lines modifiedOffset 135, 18 lines modified
132 attribute·to·prevent·further·expansion.··</p>135 attribute·to·prevent·further·expansion.··</p>
133 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros136 <p>·USE·will·accept·additional·parameters,·which·are·"local"·macros
134 for·the·expanded·macro.··This·is·only·valid·for·<A137 for·the·expanded·macro.··This·is·only·valid·for·<A
135 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A138 HREF="block.html">BLOCK</A>·macros.··Macros·created·using·<A
136 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For139 HREF="set.html">SET</A>·cannot·have·parameters·passed.··For
137 example:</p>140 example:</p>
138 ··<p><code>141 ··<p><code>
139 <font·size="-2">&nbsp;1.·</font>&nbsp;·&nbsp;·<span·class="htp-tag">&lt;<a·href="unset.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">unset</a>·<span·class="htp-attrib">email_addr</span>·<span·class="htp-attrib">home_url</span>·<span·class="htp-attrib">login_name</span>&gt;</span><br>142 <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>
 143 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br>
 144 <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>
 145 <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>
140 </code></p>146 </code></p>
141 <P>147 <P>
142 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on148 (See·below·for·a·description·of·the·'$'·operator.)··The·example·on
143 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and149 line·7·works·because·"stuff"·has·been·declared·as·a·block·macro,·and
144 the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8150 the·tag·is·passing·the·"email"·macro·to·the·"stuff"·macro.··Line·8
145 fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is151 fails·because·the·"email"·macro·is·unavailable·once·the·block·macro·is
146 completely·expanded,·and·cannot·be·passed·to·a·SET·macro.152 completely·expanded,·and·cannot·be·passed·to·a·SET·macro.
Offset 151, 18 lines modifiedOffset 157, 16 lines modified
151 Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or157 Inside·a·markup·tag,·like·<a·href="img.html">IMG</a>,·A·(anchor),·or
152 any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.158 any·other·standard·HTML·or·htp·tag,·the·'$'·operator·must·be·used.
153 The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or159 The·'$'·should·be·immediately·followed·by·the·macro·name,·which·may·or
154 may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it160 may·not·be·surrounded·by·curly·braces.··When·htp·encounters·this·it
155 replaces·the·macro·name·by·the·contents·of·the·macro·without·further161 replaces·the·macro·name·by·the·contents·of·the·macro·without·further
156 processing·the·contents.162 processing·the·contents.
157 ··<p><code>163 ··<p><code>
 164 <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>
 165 <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>
158 <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> 
159 <font·size="-2">&nbsp;2.·</font>&nbsp;·&nbsp;·...<br> 
160 <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> 
161 <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> 
162 </code></p>166 </code></p>
163 <P>167 <P>
164 The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and168 The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust·and
165 should·never·cause·confusion·with·surrounding·text.··If·no·curly169 should·never·cause·confusion·with·surrounding·text.··If·no·curly
166 braces·are·used·the·macro·name·consists·either·of·a·single·punctuation170 braces·are·used·the·macro·name·consists·either·of·a·single·punctuation
167 character·or·the·maximum·sequence·of·letters,·digits,·&quot;-&quot;171 character·or·the·maximum·sequence·of·letters,·digits,·&quot;-&quot;
168 and·&quot;_&quot;·that·follows·it.172 and·&quot;_&quot;·that·follows·it.
8.27 KB
html2text {}
    
Offset 1, 71 lines modifiedOffset 1, 68 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>4 Contents······· ·<[[ref]]WHILE·NOT·i="10">
 5  Introduction· · ·...
 6  License······ · ·<[[ref]]INC·i>
 7  Tutorial····· ·<[[ref]]/WHILE>
5  License···············*****·synopsis·*****8  Usage········*****·synopsis·*****
6  Tutorial··············USE·will·expand·macros·that·have·been·previously9  HTP·Tags·····USE·will·expand·macros·that·have·been·previously·declared·with
7  Usage·················declared·with·either·SET·or·BLOCK.·USE·can·only·be·used 
8  HTP·Tags··············outside·of·other·markup·tags.10   ··ALTTEXT··either·SET·or·BLOCK.·USE·can·only·be·used·outside·of·other
 11   ··BLOCK····markup·tags.
9   ··ALTTEXT···········If·you·USE·a·block·macro·the·value·of·expanded·block12   ··BLOCKDEF·If·you·USE·a·block·macro·the·value·of·expanded·block·macros·will
 13   ··DEF······be·further·parsed·by·htp.·This·is·maybe·not·what·you·want,·for
 14   ··FILE·····example,·if·the·use·is·inside·a·block·which·expands·itself.·You
10   ··BLOCK·············macros·will·be·further·parsed·by·htp.·This·is·maybe·not 
11   ··BLOCKDEF··········what·you·want,·for·example,·if·the·use·is·inside·a 
12   ··DEF···············block·which·expands·itself.·You·can·use·the·noexpand 
13   ··FILE··············attribute·to·prevent·further·expansion.15   ··IF·······can·use·the·noexpand·attribute·to·prevent·further·expansion.
14   ··IF················USE·will·accept·additional·parameters,·which·are16   ··INC······USE·will·accept·additional·parameters,·which·are·"local"·macros
15   ··INC···············"local"·macros·for·the·expanded·macro.·This·is·only 
16   ··IMG···············valid·for·BLOCK·macros.·Macros·created·using·SET·cannot 
17   ··IMAGEURL··········have·parameters·passed.·For·example: 
18   ··OPT··············· 1. · ·<[[ref]]unset·email_addr·home_url·login_name>17   ··IMG······for·the·expanded·macro.·This·is·only·valid·for·BLOCK·macros.
 18   ··IMAGEURL·Macros·created·using·SET·cannot·have·parameters·passed.·For
 19   ··OPT······example:
 20   ··OUTPUT··· 1. ·<[[ref]]WHILE·sect-$i>
 21   ··QUOTE···· 2. · ·...
 22   ··SET······ 3. · ·<[[ref]]INC·i>
 23   ··UNDEF···· 4. ·<[[ref]]/WHILE>
19   ··OUTPUT············(See·below·for·a·description·of·the·'$'·operator.)·The24   ··UNSET····(See·below·for·a·description·of·the·'$'·operator.)·The·example
 25  [>]·USE,_$···on·line·7·works·because·"stuff"·has·been·declared·as·a·block
 26   ··WHILE····macro,·and·the·tag·is·passing·the·"email"·macro·to·the·"stuff"
 27   ··<!---····macro.·Line·8·fails·because·the·"email"·macro·is·unavailable
 28  History······once·the·block·macro·is·completely·expanded,·and·cannot·be
 29  Wish_list····passed·to·a·SET·macro.
20   ··QUOTE·············example·on·line·7·works·because·"stuff"·has·been 
21   ··SET···············declared·as·a·block·macro,·and·the·tag·is·passing·the 
22   ··UNDEF·············"email"·macro·to·the·"stuff"·macro.·Line·8·fails 
23   ··UNSET·············because·the·"email"·macro·is·unavailable·once·the·block 
24  [>]·USE,_$············macro·is·completely·expanded,·and·cannot·be·passed·to·a 
25   ··WHILE·············SET·macro. 
26   ··<!---·············Note·that·the·"email"·macro·is·available·to·other30  Bugs·········Note·that·the·"email"·macro·is·available·to·other·macros·or
27  History···············macros·or·included·files·called·within·the·"stuff"31 ···············included·files·called·within·the·"stuff"·block.
28  Wish_list·············block. 
29  Bugs··················Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other32 ···············Inside·a·markup·tag,·like·IMG,·A·(anchor),·or·any·other·standard
 33 ···············HTML·or·htp·tag,·the·'$'·operator·must·be·used.·The·'$'·should
 34 ···············be·immediately·followed·by·the·macro·name,·which·may·or·may·not
 35 ···············be·surrounded·by·curly·braces.·When·htp·encounters·this·it
30 ························standard·HTML·or·htp·tag,·the·'$'·operator·must·be 
31 ························used.·The·'$'·should·be·immediately·followed·by·the 
32 ························macro·name,·which·may·or·may·not·be·surrounded·by·curly 
33 ························braces.·When·htp·encounters·this·it·replaces·the·macro 
34 ························name·by·the·contents·of·the·macro·without·further36 ···············replaces·the·macro·name·by·the·contents·of·the·macro·without
35 ························processing·the·contents.37 ···············further·processing·the·contents.
 38 ··············· 1.<a·href="mailto:$email">mailto·hyperlink</a>
 39 ··············· 2.<a·href="http://$domain/~${username}/">another·hyperlink</a>
36 ························ 1. ·<[[ref]]WHILE·sect-$i> 
37 ························ 2. · ·... 
38 ························ 3. · ·<[[ref]]INC·i> 
39 ························ 4. ·<[[ref]]/WHILE> 
40 ························The·use·of·curly·braces·is·encouraged,·since·it·is·more40 ···············The·use·of·curly·braces·is·encouraged,·since·it·is·more·robust
 41 ···············and·should·never·cause·confusion·with·surrounding·text.·If·no
 42 ···············curly·braces·are·used·the·macro·name·consists·either·of·a·single
 43 ···············punctuation·character·or·the·maximum·sequence·of·letters,
41 ························robust·and·should·never·cause·confusion·with 
42 ························surrounding·text.·If·no·curly·braces·are·used·the·macro 
43 ························name·consists·either·of·a·single·punctuation·character 
44 ························or·the·maximum·sequence·of·letters,·digits,·"-"·and·"_" 
45 ························that·follows·it.44 ···············digits,·"-"·and·"_"·that·follows·it.
46 ························If·a·'$'·character·needs·to·be·kept·in·the·final45 ···············If·a·'$'·character·needs·to·be·kept·in·the·final·output,·and·not
 46 ···············interpreted·as·a·macro·name,·it·must·be·escaped·by·another·'$'
 47 ···············character.·This·is·especially·true·for·PHP·code.
47 ························output,·and·not·interpreted·as·a·macro·name,·it·must·be 
48 ························escaped·by·another·'$'·character.·This·is·especially 
49 ························true·for·PHP·code. 
50 ························If·the·'$'·macro·is·the·only·text·in·the·attribute's48 ···············If·the·'$'·macro·is·the·only·text·in·the·attribute's·value,·htp
 49 ···············will·automatically·surround·it·with·quotation·marks·to·prevent
 50 ···············spaces·from·delimiting·the·text·as·if·it·were·additional·markup
51 ························value,·htp·will·automatically·surround·it·with 
52 ························quotation·marks·to·prevent·spaces·from·delimiting·the 
53 ························text·as·if·it·were·additional·markup·attributes.·If·the 
54 ························'$'·macro·is·surrounded·by·other·text·(as·in·the·two51 ···············attributes.·If·the·'$'·macro·is·surrounded·by·other·text·(as·in
55 ························examples·above),·quotation·marks·are·not·automatically52 ···············the·two·examples·above),·quotation·marks·are·not·automatically
56 ························supplied.53 ···············supplied.
57 ························Note·that·a·'$'·macro·can·be·placed·anywhere·in·a54 ···············Note·that·a·'$'·macro·can·be·placed·anywhere·in·a·markup·tag·and
58 ························markup·tag·and·can·be·nested.·This·is·valid:55 ···············can·be·nested.·This·is·valid:
59 ························ · ·<${tagName}·${attrName}=${value$ctr}>56 ··············· · ·<${tagName}·${attrName}=${value$ctr}>
60 ························The·tagName·macro·can·contain·any·tag·name,·even·a57 ···············The·tagName·macro·can·contain·any·tag·name,·even·a·self-defined
61 ························self-defined·metatag.·Note·that·$ctr·is·expanded·before 
62 ························the·valueX·macro·is·expanded,·so·assuming·that·ctr·was 
63 ························set·to·1·it·will·expand·value1.58 ···············metatag.·Note·that·$ctr·is·expanded·before·the·valueX·macro·is
 59 ···············expanded,·so·assuming·that·ctr·was·set·to·1·it·will·expand
 60 ···············value1.
  
  
  
  
  
  
  
Offset 83, 16 lines modifiedOffset 80, 17 lines modified
  
  
83  page_source80  page_source
84  htp_project81  htp_project
85  htp_homepage82  htp_homepage
86 hosted·by83 hosted·by
87 Sourceforge84 Sourceforge
88 HTML·coding·[Powered 
89 by_htp]85 HTML·coding
 86 [Powered_by
 87 htp]
90 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/88 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
91 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.89 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
92 ·····Maintainers:·Jochen_Hoenicke.90 ·····Maintainers:·Jochen_Hoenicke.
93 Copyright·©·1995–96·Jim·Nelson.91 Copyright·©·1995–96·Jim·Nelson.
94 Copyright·©·2001–2014·Jochen_Hoenicke.92 Copyright·©·2001–2014·Jochen_Hoenicke.
95 Permission·to·reproduce·and·distribute·this·hypertext·document·granted93 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
96 according·to·terms·described·in·the·License_section.94 according·to·terms·described·in·the·License_section.
6.45 KB
./usr/share/doc/htp/while.html
    
Offset 125, 16 lines modifiedOffset 125, 23 lines modified
125 The·basic·form·is·shown·above.125 The·basic·form·is·shown·above.
126 <P>126 <P>
127 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.127 "Conditional"·is·either·a·"compare"·or·"is·defined"·operation.
128 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.128 A·compare·operator·is·a·test·of·the·value·of·a·macro·against·a·literal·string.
129 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the129 If·the·NOT·tag·is·present·in·the·WHILE·markup,·the·evaluation·of·the
130 conditional·is·reversed:130 conditional·is·reversed:
131 ··<p><code>131 ··<p><code>
132 <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> 
133 <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>132 <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>
 133 &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>
 134 <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 <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">morestuff</span>=<span·class="htp-value"><span·class="htp-macro">$email</span></span>&gt;</span><br>
 137 <br>
 138 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>
 139 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>
 140 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>
134 </code></p>141 </code></p>
135 <P>142 <P>
136 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·a143 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
137 macro's·existance:144 macro's·existance:
138 ··<p><code>145 ··<p><code>
139 &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>146 &nbsp;·<span·class="htp-tag">&lt;<a·href="while.html"·><img·src="pic/manual.png"·border=0·alt="[ref]"·width="10"·height="10">WHILE</a>·<span·class="htp-attrib">sect-<span·class="htp-macro">$i</span></span>&gt;</span><br>
140 &nbsp;·&nbsp;·...<br>147 &nbsp;·&nbsp;·...<br>
3.67 KB
html2text {}
    
Offset 1, 37 lines modifiedOffset 1, 45 lines modified
  
1 [HTP]1 [HTP]
2 ******·htp·on-line·reference·:·WHILE·******2 ******·htp·on-line·reference·:·WHILE·******
3 Table_of_Contents············*****·syntax·*****3 Table_of··········*****·syntax·*****
4  Introduction··············· · ·<[[ref]]unset·email_addr>4 Contents·········· · ·<[[ref]]unset·email_addr>
5  License····················*****·synopsis·***** 
6  Tutorial···················WHILE·is·the·building·block·for·repeated 
7  Usage······················processing.·The·basic·form·is·shown·above.5  Introduction····*****·synopsis·*****
 6  License·········WHILE·is·the·building·block·for·repeated·processing.·The
 7  Tutorial········basic·form·is·shown·above.
8  HTP·Tags···················"Conditional"·is·either·a·"compare"·or·"is8  Usage···········"Conditional"·is·either·a·"compare"·or·"is·defined"
9   ··ALTTEXT················defined"·operation.·A·compare·operator·is·a·test 
10   ··BLOCK··················of·the·value·of·a·macro·against·a·literal·string. 
11   ··BLOCKDEF···············If·the·NOT·tag·is·present·in·the·WHILE·markup,·the 
12   ··DEF····················evaluation·of·the·conditional·is·reversed: 
13   ··FILE···················<a·href="mailto:$email">mailto·hyperlink</a> 
14   ··IF·····················<a·href="http://$domain/~${username}/">another 
15   ··INC····················hyperlink</a>9  HTP·Tags········operation.·A·compare·operator·is·a·test·of·the·value·of·a
 10   ··ALTTEXT·····macro·against·a·literal·string.·If·the·NOT·tag·is·present·in
 11   ··BLOCK·······the·WHILE·markup,·the·evaluation·of·the·conditional·is
 12   ··BLOCKDEF····reversed:
 13   ··DEF·········<[[ref]]block·stuff>
 14   ··FILE········ ·<a·href=$email>send·email</a>
 15   ··IF··········<[[ref]]/block>
 16   ··INC
 17   ··IMG·········<[[ref]]set·morestuff=$email>
 18   ··IMAGEURL
 19   ··OPT·········This·works:· · ·<[[ref]]use·stuff·email="jnelson@crl.com">
 20   ··OUTPUT······But·this·fails:·<[[ref]]use·email>
 21   ··QUOTE·······And·this·fails:·<[[ref]]use·morestuff
 22   ··SET·········email="jnelson@crl.com">
16   ··IMG····················Just·as·with·[[ref]]IF·you·can·also·check·for·a23   ··UNDEF·······Just·as·with·[[ref]]IF·you·can·also·check·for·a·macro's
17   ··IMAGEURL···············macro's·existance: 
18   ··OPT···················· ·<[[ref]]WHILE·sect-$i> 
19   ··OUTPUT················· · ·... 
20   ··QUOTE·················· · ·<[[ref]]INC·i> 
21   ··SET···················· ·<[[ref]]/WHILE>24   ··UNSET·······existance:
 25   ··USE,_$······ ·<[[ref]]WHILE·sect-$i>
 26  [>]·WHILE······· · ·...
 27   ··<!---······· · ·<[[ref]]INC·i>
 28  History········· ·<[[ref]]/WHILE>
22   ··UNDEF··················If·the·condition·is·true,·the·block·is·evaluated29  Wish_list·······If·the·condition·is·true,·the·block·is·evaluated·and
23   ··UNSET··················and·afterwards·the·WHILE·tag·is·evaluated·again.30  Bugs············afterwards·the·WHILE·tag·is·evaluated·again.·If·the·'$'-
24   ··USE,_$·················If·the·'$'-operator·is·used·in·the·WHILE·tag·it·is 
25  [>]·WHILE··················also·reevaluated·on·each·iteration.31 ··················operator·is·used·in·the·WHILE·tag·it·is·also·reevaluated·on
 32 ··················each·iteration.
26   ··<!---··················A·loop·block·must·be·closed·with·the·/WHILE·tag.33 ··················A·loop·block·must·be·closed·with·the·/WHILE·tag.
27  History 
28  Wish_list 
29  Bugs 
  
  
  
  
  
  
  
  
  
  
Offset 46, 16 lines modifiedOffset 54, 16 lines modified
  
  
46  page_source54  page_source
47  htp_project55  htp_project
48  htp_homepage56  htp_homepage
49 hosted·by57 hosted·by
50 Sourceforge58 Sourceforge
51 HTML·coding·[Powered_by 
52 htp]59 HTML·coding
 60 [Powered_by_htp]
53 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/61 ·····htp·on-line·reference·/·http://htp.sourceforge.net/ref/
54 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.62 ·····Authors:·Jim·Nelson,·Jochen_Hoenicke,·Michael_Möller.
55 ·····Maintainers:·Jochen_Hoenicke.63 ·····Maintainers:·Jochen_Hoenicke.
56 Copyright·©·1995–96·Jim·Nelson.64 Copyright·©·1995–96·Jim·Nelson.
57 Copyright·©·2001–2014·Jochen_Hoenicke.65 Copyright·©·2001–2014·Jochen_Hoenicke.
58 Permission·to·reproduce·and·distribute·this·hypertext·document·granted66 Permission·to·reproduce·and·distribute·this·hypertext·document·granted
59 according·to·terms·described·in·the·License_section.67 according·to·terms·described·in·the·License_section.