+.\" $NetBSD: quiz.6,v 1.11 2009/03/11 13:05:46 joerg Exp $
+.\"
.\" Copyright (c) 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. All advertising materials mentioning features or use of this software
-.\" must display the following acknowledgement:
-.\" This product includes software developed by the University of
-.\" California, Berkeley and its contributors.
-.\" 4. Neither the name of the University nor the names of its contributors
+.\" 3. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.Nm quiz
.Nd random knowledge tests
.Sh SYNOPSIS
-.Nm quiz
+.Nm
.Op Fl t
.Op Fl i Ar file
.Op Ar question answer
.Sh DESCRIPTION
The
-.Nm quiz
+.Nm
utility tests your knowledge of random facts.
It has a database of subjects from which you can choose.
With no arguments,
-.Nm quiz
+.Nm
displays the list of available subjects.
.Pp
The options are as follows:
them right the first time, and new questions are presented less frequently
to help you learn the older ones.
.It Fl i
-Specify an alternate index file.
+Specify an alternative index file.
.El
.Pp
Subjects are divided into categories.
You can pick any two categories from the same subject.
-.Nm Quiz
+.Nm
will ask questions from the first category and it expects answers from
the second category.
-For example, the command ``quiz victim killer'' asks questions which are
-the names of victims, and expects you to answer with the cause of their
-untimely demise, whereas the command ``quiz killer victim'' works the
-other way around.
+For example, the command
+.Dq quiz victim killer
+asks questions which are the names of victims, and expects you to answer
+with the cause of their untimely demise, whereas the command
+.Dq quiz killer victim
+works the other way around.
.Pp
If you get the answer wrong,
-.Nm quiz
+.Nm
lets you try again.
To see the right answer, enter a blank line.
-.Sh "Index and Data File Syntax"
+.Ss Index and Data File Syntax
The index and data files have a similar syntax.
Lines in them consist of several categories separated by colons.
The categories are regular expressions formed using the following
meta-characters:
-.sp
+.Pp
.Bl -tag -width "pat|pat" -compact -offset indent
.It pat|pat
-alternate patterns
+alternative patterns
.It {pat}
optional pattern
.It [pat]
follows.
.Pp
If either a question or its answer is empty,
-.Nm quiz
+.Nm
will refrain from asking it.
.Sh FILES
.Bl -tag -width /usr/share/games/quiz.db -compact
The default index and data files.
.El
.Sh BUGS
-.Nm Quiz
+.Nm
is pretty cynical about certain subjects.