First instalment of a manual for Halibut. This lot covers the
[sgt/halibut] / inputs / test.but
CommitLineData
d7482997 1\title Halibut: A Test Document With A Stupidly Long Title Just To
2See If Wrapping Titles Works OK. In Fact This Title Will Span Three
3Lines, Not Just Two. How's That For Ludicrous?
4
5\cfg{xhtml-leaf-smallest-contents}{2}
d7482997 6\cfg{xhtml-leaf-contains-contents}{true}
4b3c5afb 7\cfg{man-headnumbers}{true}
d7482997 8
9\preamble This manual is a small joke effort, designed to use every
10feature \#{ comment } that Halibut's input format supports. Creation
11date \date{%Y.%m.%d} (default format is \date).
12
13\copyright Copyright 1999 Simon \#{second comment}Tatham. All rights
14reserved.
15
16\define{metacoopt} [this is a nested,
17multi-line macro, talking about \coopt
18a bit]
19
20\define{coopt} co\u00F6{-o}pt
21
4b3c5afb 22\versionid $Id: test.but,v 1.21 2004/03/24 19:23:21 simon Exp $
d7482997 23
24\C{ch\\ap} First chapter title; for similar wrapping reasons this
25chapter title will be ludicrously long. I wonder how much more
26chapter title I can write before feeling silly.
27
28This is a para\#{another{} comment}graph of text. It
29has line\#{yet another one} breaks in between words, multiple
30 spaces (ignored), and \e{emphasised text} as well as \c{code
31fragments}.
32
33\cw{This} is weak code. And \k{head} contains some other stuff.
34\K{subhead} does too.
35
7136a6c7 36To test the man page back end:
37
38.Directive
39
40'Directive
41
42\\Sping\\Spong\\Spoing
43
d7482997 44\H{head} First section title (very long again, no prizes for
45guessing the reason why this time, and here's yet more text to pad
46it out to three lines of output)
47
48\cfg{winhelp-topic}{M359HPEHGW}
49
50Here's a code paragraph:
51
52\c No leading spaces
53\c One leading space
54\c Two blank lines follow this one.
55\c
56\c
57\c Two blank lines precede this one.
58\c Two leading spaces
59\c We can use \ { and } with impunity here.
4b3c5afb 60\c We can use discretionary bold and italic in code paragraphs!
61\e bbbb iiiiii
62\c Isn't that ludicrous?
d7482997 63
64This is a list:
65
66\b Ooh.
67
68\b Aah.
69
7136a6c7 70\lcont{
71
72This bulletted list contains a list continuation. This is an
73additional paragraph, or more than one, indented at the same level
74as the list items, and able to contain nested sublists and other
75features. For example, here's a code paragraph:
76
77\c spingle:~$ whoami
78\c spoggler
79
80And here's a sublist. Numbered, just for variety.
81
82\n One.
83
84\lcont{
85
86\n 1a.
87
88\n 1b.
89
90\n 1c.
91
92\lcont{This is an even sillier one: a continuation of a list item in
93a continuation of a list item in a continuation of a list item!}
94
95}
96
97\n Two.
98
99\n Threeeee!
100
101}
102
d7482997 103\b Eek.
104
105This is a horizontal rule:
106
107\rule
108
109This is a numbered list:
110
111\n Ooh.
112
113\n{keyword} Aah.
114
115\n Eek. \q{Aah} is point \k{keyword}.
116
7136a6c7 117This is a description list:
118
119\dt FISH
120
121\dd A piscine creature, often to be found swimming aimlessly around
122in the sea eating things and not contributing to the global economy.
123
124\lcont{
125
126Here's another of those funky list continuation things, just to keep
127Halibut on its toes.
128
129}
130
131\dt BADGER
132
133\dd A non-piscine creature, often to be found snuffling around on
134land, not contributing to the global economy, and not even swimming
135to make up for it. I don't know. These mammals. Pa-thetic.
136
137\dt "SAUSAGE SALESMAN"
138
139\dd An exemplary contributor to the global economy. Unless he's CMOT
140Dibbler.
141
d7482997 142A-paragraph-full-of-hyphens-to-test-the-idea-that-word-wrapping-can-happen-somewhere-in-all-this-hyphenatory-nonsense.
143
144A\-paragraph\-full\-of\-nonbreaking\-hyphens\-to\-test\-the\-idea\-that\-word\-wrapping\-misses\-them.
145
146A\_paragraph\_full\_of\_nonbreaking\_spaces\_to\_test\_the\_idea\_that\_word\_wrapping\_misses\_them\_too.
147
148Use of macros: let's talk about \coopt. And about \coopt some more.
149And a nested macro: \metacoopt.
150
151Oh, while I'm here: some special characters. The \\, \{ and \}
152characters, to be precise. And their code equivalents, \c{\\},
153\i\c{\{}, \c{\}}.
154
155\S{subhead} First subheading
156
157So here's a \I{subheading}\I{subsection}subsection. Just
158incidentally, \q{this} is in quotes. \ii{Those} quotes had better work
159in all formats.
160
161We'll try for some Unicode here: \i{Schr\u00F6{oe}dinger}.
162
163An index tag containing non-alternatived Unicode: \i{\u00BFChe?}
164
165An invisible index tag: \I{she seems to have an invisible tag}yeah.
166
167\S2{sub-sub}{Florble} Smaller heading still
168
169A tiny section. Awww. How cute. Actually, this one's a \e{florble},
170and here's a reference to it: \k{sub-sub}.
171
172\A{app} Needless appendix
173
174\# \cfg{winhelp-topic}{Y5VQEXZQVJ} (uncomment this and it clashes)
175
176Here's an \i{appendix}, for no terribly good reason at all. See
b3c80b25 177__\k{book}__ (please excuse those underscores, I'm testing
178whitespace).
d7482997 179
180It also contains a \W{http://www.tartarus.org/}{hyperlink}.
181
182\U Bibliography
183
184\B{book} Some text describing a book.
185
186\B{nocite} Some text describing a book. This text should appear in
187the document even though there is no \cw{\\k} citing it.
188
189\BR{book} [SillyCitation]
b3c80b25 190\BR{uncited} Badger.
d7482997 191
192\nocite{nocite}
193
194\B{uncited} If this text appears, there's an actual error.
195
196\# This is a comment.
197
198\# Now for the index section.
199
200\IM{she seems to have an invisible tag}{appendix} Invisible tags
201and/or appendices