1 \title Halibut: A Test Document With A Stupidly Long Title Just To
2 See If Wrapping Titles Works OK. In Fact This Title Will Span Three
3 Lines, Not Just Two. How's That For Ludicrous?
5 \cfg{xhtml-leaf-smallest-contents}{2}
6 \cfg{xhtml-leaf-contains-contents}
8 \cfg{info-dir-entry}{Sillinesses}{test.but}{Halibut test document}
9 \cfg{info-dir-entry}{Florbles}{test.but}{Subsection of Halibut test
11 \cfg{man-headnumbers}{true}
13 \cfg{contents}{Contents(edited)}
14 \cfg{index}{Index(alsoedited)}
16 This paragraph is not labelled \q{preamble}, but should still appear
19 \preamble This manual is a small joke effort, designed to use every
20 feature \#{ comment } that Halibut's input format supports. Creation
21 date \date{%Y.%m.%d} (default format is \date).
23 \c Here is a code paragraph in the preamble, just to stress that all
24 \c things are possible. Ooh!
26 \copyright Copyright 1999 Simon \#{second comment}Tatham. All rights
29 Here's another \i{preamble paragraph}, which goes after the copyright.
31 \define{metacoopt} [this is a nested,
32 multi-line macro, talking about \coopt
35 \define{coopt} co\u00F6{-o}pt
37 \define{eur} \u20AC{EUR }
41 \C{ch\\ap} First chapter title; for similar wrapping reasons this
42 chapter title will be ludicrously long. I wonder how much more
43 chapter title I can write before feeling silly.
45 This is a para\#{another{} comment}graph of text. It
46 has line\#{yet another one} breaks in between words, multiple
47 spaces (ignored), and \e{emphasised text} as well as \c{code
50 \#{This is an inline comment alone in a paragraph.}
52 \cw{This} is weak code; \cq{this} is quoted code. And \k{head}
53 contains some other stuff. \K{subhead} does too.
55 To test the man page back end:
65 \\Sping\\Spong\\Spoing
67 \H{head} First section title (very long again, no prizes for
68 guessing the reason why this time, and here's yet more text to pad
69 it out to three lines of output)
71 \cfg{winhelp-topic}{M359HPEHGW}
73 Here's a code paragraph:
77 \c Two blank lines follow this one.
80 \c Two blank lines precede this one.
82 \c We can use \ { and } with impunity here.
83 \c We can use discretionary bold and italic in code paragraphs!
85 \c Isn't that ludicrous?
95 This bulletted list contains a list continuation. This is an
96 additional paragraph, or more than one, indented at the same level
97 as the list items, and able to contain nested sublists and other
98 features. For example, here's a code paragraph:
103 And here's a sublist. Numbered, just for variety.
120 \lcont{This is an even sillier one: a continuation of a list item in
121 a continuation of a list item in a continuation of a list item!}
133 This is a horizontal rule:
137 This is a numbered list:
143 \n Eek. \q{Aah} is point \k{keyword}.
145 This is a description list:
149 \dd A piscine creature, often to be found swimming aimlessly around
150 in the sea eating things and not contributing to the global economy.
154 Here's another of those funky list continuation things, just to keep
161 \dd A non-piscine creature, often to be found snuffling around on
162 land, not contributing to the global economy, and not even swimming
163 to make up for it. I don't know. These mammals. Pa-thetic.
165 \dt "SAUSAGE SALESMAN"
167 \dd An exemplary contributor to the global economy. Unless he's CMOT
170 This is a much more interesting description list, testing
171 consecutive \c{\\dt}s and consecutive \c{\\dd}s:
189 A-paragraph-full-of-hyphens-to-test-the-idea-that-word-wrapping-can-happen-somewhere-in-all-this-hyphenatory-nonsense.
191 A\-paragraph\-full\-of\-nonbreaking\-hyphens\-to\-test\-the\-idea\-that\-word\-wrapping\-misses\-them.
193 A\_paragraph\_full\_of\_nonbreaking\_spaces\_to\_test\_the\_idea\_that\_word\_wrapping\_misses\_them\_too.
195 Use of macros: let's talk about \coopt. And about \coopt some more.
196 And a nested macro: \metacoopt.
198 A slightly more difficult macro: \eur\.2500.
200 Test of input character set switching.
202 \n 8859 character in ASCII mode: expect nothing useful. [coöpt]
204 \cfg{input-charset}{ISO-8859-1}
206 \n 8859 character in 8859 mode: expect the right thing. [coöpt]
208 \cfg{input-charset}{UTF-8}
210 \n 8859 character in UTF-8 mode: expect the wrong thing. [coöpt]
212 \cfg{silliness}{coöpt}
214 \n UTF-8 sequence in UTF-8 mode: expect the right thing again. [coöpt]
216 \cfg{input-charset}{ASCII}
220 Oh, while I'm here: some special characters. The \\, \{ and \}
221 characters, to be precise. And their code equivalents, \c{\\},
222 \i\c{\{}, \c{\}}. The ` and ' characters (grave and apostrophe)
223 are special in some output formats.
225 \S{subhead} First subheading
227 So here's a \I{subheading}\I{subsection}subsection. Just
228 incidentally, \q{this} is in quotes. \ii{Those} quotes had better work
231 We'll try for some Unicode here: \i{Schr\u00F6{oe}dinger}.
233 An index tag containing non-alternatived Unicode: \i{\u00BFChe?}
235 An invisible index tag: \I{she seems to have an invisible tag}yeah.
237 \S2{sub-sub}{Florble} Smaller heading still
239 A tiny section. Awww. How cute. Actually, this one's a \e{florble},
240 and here's a reference to it: \k{sub-sub}.
242 \A{app} Needless appendix
244 \# \cfg{winhelp-topic}{Y5VQEXZQVJ} (uncomment this and it clashes)
246 Here's an \i{appendix}, for no terribly good reason at all. See
247 __\k{book}__ (please excuse those underscores, I'm testing
250 It also contains a \W{http://www.tartarus.org/}{hyperlink}.
252 Also I'm going to index \i\c{-output} to ensure that its two
253 components are displayed as a joined-up code fragment in the index.
255 Here are \I{testone}some \I{testtwo}subsections \I{testthree}with
256 silly chapter titles and interesting use of Unicode. The Unicode
257 oddities are in the titles rather than the body text because that
258 way I get to test their handling in the PDF document outline.
260 \H{app-one} The 1024 \u00D7{x} 768 screen resolution
264 \H{app-two} How about Spongletech\u2122{(TM)}?
268 \# I'm going to label one of these with a carefully chosen fragment
269 \# name "i1", because I know this will also be generated as an index
270 \# fragment name and this allows me to test the fragment name clash
273 \# To actually run this test you need to configure html-leaf-level
274 \# to 0 and html-template-fragment to %k.
276 \H{i1} Or just Erd\u0151{\u00F6{o}}s?
282 \B{book} Some text describing a book.
284 \B{nocite} Some text describing a book. This text should appear in
285 the document even though there is no \cw{\\k} citing it.
287 \BR{book} [SillyCitation]
292 \B{uncited} If this text appears, there's an actual error.
294 \# This is a comment.
296 \# Now for the index section.
298 \IM{she seems to have an invisible tag}{appendix} Invisible tags
301 \# The display forms of these three index terms differ only in case.
302 \# This is a fiddly special case in the Windows Help backend,
303 \# because Windows Help's index mechanism is case-insensitive...