Escape &<> when they appear in href text.
[sgt/halibut] / inputs / test.but
CommitLineData
4105faca 1\define{eur} \u20AC{EUR }
2
3\title Halibut: A Test Document With A Stupidly Long Title (worth \eur\.1000)
4Just To See If Wrapping Titles Works OK. In Fact This Title Will Span Three
5Lines, Not Just Two. How's That For Ludicrous? More than that, though,
6we'd like to make it more than 255 characters long so that the PostScript
7backend has to treat it specially in order to pass it to pdfmark.
d7482997 8
9\cfg{xhtml-leaf-smallest-contents}{2}
056ab80e 10\cfg{xhtml-leaf-contains-contents}
11{true}
13561057 12\cfg{info-dir-entry}{Sillinesses}{test.but}{Halibut test document}
13\cfg{info-dir-entry}{Florbles}{test.but}{Subsection of Halibut test
14document}{sub-sub}
e32df3e7 15\cfg{info-section-underline}{2}{~}
e997256c 16\cfg{info-charset}{utf-8}
4b3c5afb 17\cfg{man-headnumbers}{true}
d7482997 18
f02bbc4b 19\cfg{contents}{Contents - edited title}
20\cfg{index}{Index - also edited title}
f6220253 21
8902e0ed 22This paragraph is not labelled \q{preamble}, but should still appear
23as it.
24
d7482997 25\preamble This manual is a small joke effort, designed to use every
26feature \#{ comment } that Halibut's input format supports. Creation
27date \date{%Y.%m.%d} (default format is \date).
28
8902e0ed 29\c Here is a code paragraph in the preamble, just to stress that all
30\c things are possible. Ooh!
31
d7482997 32\copyright Copyright 1999 Simon \#{second comment}Tatham. All rights
33reserved.
34
56a99eb6 35Here's another \i{preamble paragraph}, which goes after the copyright.
9057a0a8 36
d7482997 37\define{metacoopt} [this is a nested,
38multi-line macro, talking about \coopt
39a bit]
40
41\define{coopt} co\u00F6{-o}pt
42
a1677855 43\versionid $Id$
d7482997 44
45\C{ch\\ap} First chapter title; for similar wrapping reasons this
46chapter title will be ludicrously long. I wonder how much more
47chapter title I can write before feeling silly.
48
49This is a para\#{another{} comment}graph of text. It
50has line\#{yet another one} breaks in between words, multiple
51 spaces (ignored), and \e{emphasised text} as well as \c{code
52fragments}.
53
c9b4e60f 54\#{This is an inline comment alone in a paragraph.}
55
b7747050 56\cw{This} is weak code; \cq{this} is quoted code. And \k{head}
57contains some other stuff. \K{subhead} does too.
d7482997 58
7136a6c7 59To test the man page back end:
60
61.Directive
62
63'Directive
64
a1677855 65\cw{.Directive}
66
67\cw{'Directive}
68
7136a6c7 69\\Sping\\Spong\\Spoing
70
d7482997 71\H{head} First section title (very long again, no prizes for
72guessing the reason why this time, and here's yet more text to pad
73it out to three lines of output)
74
75\cfg{winhelp-topic}{M359HPEHGW}
76
77Here's a code paragraph:
78
79\c No leading spaces
80\c One leading space
81\c Two blank lines follow this one.
82\c
83\c
84\c Two blank lines precede this one.
85\c Two leading spaces
86\c We can use \ { and } with impunity here.
4b3c5afb 87\c We can use discretionary bold and italic in code paragraphs!
88\e bbbb iiiiii
89\c Isn't that ludicrous?
23993882 90\c
91\c man page tricky characters: command -o 'quoted' -o `backticks`
d7482997 92
93This is a list:
94
95\b Ooh.
96
97\b Aah.
98
7136a6c7 99\lcont{
100
101This bulletted list contains a list continuation. This is an
102additional paragraph, or more than one, indented at the same level
103as the list items, and able to contain nested sublists and other
104features. For example, here's a code paragraph:
105
106\c spingle:~$ whoami
107\c spoggler
108
109And here's a sublist. Numbered, just for variety.
110
111\n One.
112
113\lcont{
114
115\n 1a.
116
117\n 1b.
118
780f45d4 119\lcont{
120\c Code
121\c Paragraph
122}
123
7136a6c7 124\n 1c.
125
126\lcont{This is an even sillier one: a continuation of a list item in
127a continuation of a list item in a continuation of a list item!}
128
129}
130
131\n Two.
132
133\n Threeeee!
134
135}
136
d7482997 137\b Eek.
138
139This is a horizontal rule:
140
141\rule
142
143This is a numbered list:
144
145\n Ooh.
146
147\n{keyword} Aah.
148
149\n Eek. \q{Aah} is point \k{keyword}.
150
7136a6c7 151This is a description list:
152
153\dt FISH
154
155\dd A piscine creature, often to be found swimming aimlessly around
156in the sea eating things and not contributing to the global economy.
157
158\lcont{
159
160Here's another of those funky list continuation things, just to keep
161Halibut on its toes.
162
163}
164
165\dt BADGER
166
167\dd A non-piscine creature, often to be found snuffling around on
168land, not contributing to the global economy, and not even swimming
169to make up for it. I don't know. These mammals. Pa-thetic.
170
171\dt "SAUSAGE SALESMAN"
172
173\dd An exemplary contributor to the global economy. Unless he's CMOT
174Dibbler.
175
02478c4f 176This is a much more interesting description list, testing
177consecutive \c{\\dt}s and consecutive \c{\\dd}s:
178
179\dt One
180
181\dt Two
182
183\dt Three
184
185\dd Ay
186
187\dt Four
188
189\dd Bee
190
191\dd Cee
192
193\dd Dee
194
d7482997 195A-paragraph-full-of-hyphens-to-test-the-idea-that-word-wrapping-can-happen-somewhere-in-all-this-hyphenatory-nonsense.
196
197A\-paragraph\-full\-of\-nonbreaking\-hyphens\-to\-test\-the\-idea\-that\-word\-wrapping\-misses\-them.
198
199A\_paragraph\_full\_of\_nonbreaking\_spaces\_to\_test\_the\_idea\_that\_word\_wrapping\_misses\_them\_too.
200
201Use of macros: let's talk about \coopt. And about \coopt some more.
202And a nested macro: \metacoopt.
203
672e4626 204A slightly more difficult macro: \eur\.2500.
205
e34ba5c3 206Test of input character set switching.
207
ff0ee988 208