xref: /openbsd-src/games/fortune/Notes (revision 18d14a277fe5c6afad03194e4e523c61e0db81c6)
1*18d14a27Sjmc#	$OpenBSD: Notes,v 1.6 2024/08/26 20:10:53 jmc Exp $
2df930be7Sderaadt#	$NetBSD: Notes,v 1.2 1995/03/23 08:28:26 cgd Exp $
3df930be7Sderaadt#	@(#)Notes	8.1 (Berkeley) 5/31/93
4df930be7Sderaadt
5df930be7SderaadtWarning:
6df930be7Sderaadt	The fortunes contained in the fortune database have been collected
7df930be7Sderaadt	haphazardly from a cacophony of sources, in number so huge it
8df930be7Sderaadt	boggles the mind.  It is impossible to do any meaningful quality
9df930be7Sderaadt	control on attributions, or lack thereof, or exactness of the quote.
10df930be7Sderaadt	Since this database is not used for profit, and since entire works
11df930be7Sderaadt	are not published, it falls under fair use, as we understand it.
12df930be7Sderaadt	However, if any half-assed idiot decides to make a profit off of
13df930be7Sderaadt	this, they will need to double check it all, and nobody not involved
14df930be7Sderaadt	of such an effort makes any warranty that anything in the database
15df930be7Sderaadt	bears any relation to the real world of literature, law, or other
16df930be7Sderaadt	bizzarrity.
17df930be7Sderaadt
18df930be7Sderaadt==> GENERAL INFORMATION
19df930be7Sderaadt	By default, fortune retrieves its fortune files from the directory
20df930be7Sderaadt/usr/share/games/fortune.  A fortune file has two parts: the source file
21df930be7Sderaadt(which contains the fortunes themselves) and the data file which describes
220a66082bSjmcthe fortunes.  The data file always has the same name as the fortune file
23df930be7Sderaadtwith the string ".dat" concatenated, i.e. "fort" is the standard fortune
24df930be7Sderaadtdatabase, and "fort.dat" is the data file which describes it.  See
25df930be7Sderaadtstrfile(8) for more information on creating the data files.
26df930be7Sderaadt	Fortunes are split into potentially offensive and not potentially
27df930be7Sderaadtoffensive parts.  The offensive version of a file has the same name as the
28*18d14a27Sjmcnon-offensive version with "-o" concatenated, i.e. "fortune" is the standard
29*18d14a27Sjmcfortune database, and "fortune-o" is the standard offensive database.  The
30df930be7Sderaadtfortune program automatically assumes that any file with a name ending in
31df930be7Sderaadt"-o" is potentially offensive, and should therefore only be displayed if
32df930be7Sderaadtexplicitly requested, either with the -o option or by specifying a file name
33df930be7Sderaadton the command line.
34*18d14a27Sjmc        Potentially offensive fortune files are maintained in
35*18d14a27Sjmcclear text on the system.  If this is a concern, they can be rotated
36*18d14a27Sjmc13 positions: to create a new, rotated database, use a utility such
37*18d14a27Sjmcas rot13(6) or tr(1) to rotate it, and then create its data file
38*18d14a27Sjmcwith the -x option to strfile(8).  The fortune program automatically
39*18d14a27Sjmcdecrypts the text when it prints entries from such databases.
40df930be7Sderaadt	Anything which would not make it onto network prime time programming
41df930be7Sderaadt(or which would only be broadcast if some discredited kind of guy said it)
42df930be7SderaadtMUST be in the potentially offensive database.  Fortunes containing any
43df930be7Sderaadtexplicit language (see George Carlin's recent updated list) MUST be in the
44df930be7Sderaadtpotentially offensive database.  Political and religious opinions are often
45df930be7Sderaadtsequestered in the potentially offensive section as well.  Anything which
46df930be7Sderaadtassumes as a world view blatantly racist, mysogynist (sexist), or homophobic
47df930be7Sderaadtideas should not be in either, since they are not really funny unless *you*
48df930be7Sderaadtare racist, mysogynist, or homophobic.
49df930be7Sderaadt	The point of this is that people have should have a reasonable
50df930be7Sderaadtexpectation that, should they just run "fortune", they will not be offended.
51df930be7SderaadtWe know that some people take offense at anything, but normal people do have
52df930be7Sderaadtopinions, too, and have a right not to have their sensibilities offended by
53df930be7Sderaadta program which is supposed to be entertaining.  People who run "fortune
54df930be7Sderaadt-o" or "fortune -a" are saying, in effect, that they are willing to have
55df930be7Sderaadttheir sensibilities tweaked.  However, they should not have their personal
56df930be7Sderaadtworth seriously (i.e., not in jest) assaulted.  Jokes which depend for their
57df930be7Sderaadthumor on racist, mysogynist, or homophobic stereotypes *do* seriously
58df930be7Sderaadtassault individual personal worth, and in an general entertainment medium
59df930be7Sderaadtwe should be able to get by without it.
60df930be7Sderaadt
61df930be7Sderaadt==> FORMATTING
62df930be7Sderaadt	This file describes the format for fortunes in the database.  This
63df930be7Sderaadtis done in detail to make it easier to keep track of things.  Any rule given
64df930be7Sderaadthere may be broken to make a better joke.
65df930be7Sderaadt
66df930be7Sderaadt[All examples are indented by one tab stop -- KCRCA]
67df930be7Sderaadt
68df930be7SderaadtNumbers should be given in parentheses, e.g.,
69df930be7Sderaadt
70df930be7Sderaadt	(1)	Everything depends.
71df930be7Sderaadt	(2)	Nothing is always.
72df930be7Sderaadt	(3)	Everything is sometimes.
73df930be7Sderaadt
74df930be7SderaadtAttributions are two tab stops, followed by two hyphens, followed by a
75df930be7Sderaadtspace, followed by the attribution, and are *not* preceded by blank
76df930be7Sderaadtlines.  Book, journal, movie, and all other titles are in quotes, e.g.,
77df930be7Sderaadt
78df930be7Sderaadt	$100 invested at 7% interest for 100 years will become $100,000, at
79df930be7Sderaadt	which time it will be worth absolutely nothing.
80df930be7Sderaadt			-- Lazarus Long, "Time Enough for Love"
81df930be7Sderaadt
82df930be7SderaadtAttributions which do not fit on one (72 char) line should be continued
83df930be7Sderaadton a line which lines up below the first text of the attribution, e.g.,
84df930be7Sderaadt
85df930be7Sderaadt			-- A very long attribution which might not fit on one
86df930be7Sderaadt			   line, "Ken Arnold's Stupid Sayings"
87df930be7Sderaadt
88df930be7SderaadtSingle paragraph fortunes are in left justified (non-indented) paragraphs
89df930be7Sderaadtunless they fall into another category listed below (see example above).
90df930be7SderaadtLonger fortunes should also be in left justified paragraphs, but if this
91df930be7Sderaadtmakes it too long, try indented paragraphs, with indentations of either one
92df930be7Sderaadttab stop or 5 chars.  Indentations of less than 5 are too hard to read.
93df930be7Sderaadt
94df930be7SderaadtLaws have the title left justified and capitalized, followed by a colon,
95df930be7Sderaadtwith all the text of the law itself indented one tab stop, initially
96df930be7Sderaadtcapitalized, e.g.,
97df930be7Sderaadt
98df930be7Sderaadt	A Law of Computer Programming:
99df930be7Sderaadt		Make it possible for programmers to write in English and
100df930be7Sderaadt		you will find the programmers cannot write in English.
101df930be7Sderaadt
102df930be7SderaadtLimericks are indented as follows, all lines capitalized:
103df930be7Sderaadt
104df930be7Sderaadt	A computer, to print out a fact,
105df930be7Sderaadt	Will divide, multiply, and subtract.
106df930be7Sderaadt		But this output can be
107df930be7Sderaadt		No more than debris,
108df930be7Sderaadt	If the input was short of exact.
109df930be7Sderaadt
1101fa925aaSbentleyUnderlining is done on a word-by-word basis, with the underlines
111378bc3c4Sbentleypreceding the word, e.g., "__^H^Hhi _____^H^H^H^H^Hthere".
112df930be7Sderaadt
113df930be7SderaadtNo fortune should run beyond 72 characters on a single line without good
114df930be7Sderaadtjustification (er, no pun intended).  And no right margin justification,
115df930be7Sderaadteither.  Sorry.  For BSD people, there is a program called "fmt" which can
116df930be7Sderaadtmake this kind of formatting easier.
117df930be7Sderaadt
118df930be7SderaadtDefinitions are given with the word or phrase left justified, followed by
119df930be7Sderaadtthe part of speech (if appropriate) and a colon.  The definition starts
120df930be7Sderaadtindented by one tab stop, with subsequent lines left justified, e.g.,
121df930be7Sderaadt
122df930be7Sderaadt	Afternoon, n.:
123df930be7Sderaadt		That part of the day we spend worrying about how we wasted
124df930be7Sderaadt	the morning.
125df930be7Sderaadt
126df930be7SderaadtQuotes are sometimes put around statements which are funnier or make more
127df930be7Sderaadtsense if they are understood as being spoken, rather than written,
128df930be7Sderaadtcommunication, e.g.,
129df930be7Sderaadt
130df930be7Sderaadt	"All my friends and I are crazy.  That's the only thing that
131df930be7Sderaadt	keeps us sane."
132df930be7Sderaadt
133df930be7SderaadtEllipses are always surrounded by spaces, except when next to punctuation,
134df930be7Sderaadtand are three dots long.
135df930be7Sderaadt
136df930be7Sderaadt	"... all the modern inconveniences ..."
137df930be7Sderaadt			-- Mark Twain
138df930be7Sderaadt
139df930be7SderaadtHuman initials always have spaces after the periods, e.g, "P. T.  Barnum",
140df930be7Sderaadtnot "P.T. Barnum".  However, "P.T.A.", not "P. T. A.".
141df930be7Sderaadt
142df930be7SderaadtAll fortunes should be attributed, but if and only if they are original with
143df930be7Sderaadtsomebody.  Many people have said things that are folk sayings (i.e., are
144df930be7Sderaadtcommon among the folk (i.e., us common slobs)).  There is nothing wrong with
145df930be7Sderaadtthis, of course, but such statements should not be attributed to individuals
146df930be7Sderaadtwho did not invent them.
147df930be7Sderaadt
148df930be7SderaadtHoroscopes should have the sign indented by one tab stop, followed by the
149df930be7Sderaadtdates of the sign, with the text left justified below it, e.g.,
150df930be7Sderaadt
151df930be7Sderaadt		AQUARIUS (Jan 20 - Feb 18)
152df930be7Sderaadt	You have an inventive mind and are inclined to be progressive.  You
153df930be7Sderaadt	lie a great deal.  On the other hand, you are inclined to be
154df930be7Sderaadt	careless and impractical, causing you to make the same mistakes over
155df930be7Sderaadt	and over again.  People think you are stupid.
156df930be7Sderaadt
157df930be7SderaadtSingle quotes should not be used except as quotes within quotes.  Not even
158df930be7Sderaadtsingle quotes masquerading as double quotes are to be used, e.g., don't say
159df930be7Sderaadt``hi there'' or `hi there' or 'hi there', but "hi there".  However, you
160df930be7Sderaadt*can* say "I said, `hi there'".
161df930be7Sderaadt
162df930be7SderaadtA long poem or song can be ordered as follows in order to make it fit on a
163df930be7Sderaadtscreen (fortunes should be 19 lines or less if at all possible) (numbers
164df930be7Sderaadthere are stanza numbers):
165df930be7Sderaadt
166df930be7Sderaadt	11111111111111111111
167df930be7Sderaadt	11111111111111111111
168df930be7Sderaadt	11111111111111111111			22222222222222222222
169df930be7Sderaadt	11111111111111111111			22222222222222222222
170df930be7Sderaadt						22222222222222222222
171df930be7Sderaadt	33333333333333333333			22222222222222222222
172df930be7Sderaadt	33333333333333333333
173df930be7Sderaadt	33333333333333333333			44444444444444444444
174df930be7Sderaadt	33333333333333333333			44444444444444444444
175df930be7Sderaadt						44444444444444444444
176df930be7Sderaadt						44444444444444444444
177df930be7Sderaadt
178df930be7Sderaadt
179