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