Sprichwoerter 1.6 → 1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Sprichwoerter.gemspec +5 -2
- data/bin/proverbs +4 -15
- data/bin/sprichwoerter +3 -15
- data/doc/html/proverbs.html +273 -456
- data/doc/html/sprichwoerter.html +278 -462
- data/doc/man/proverbs.6.gz +0 -0
- data/doc/man/sprichwoerter.6.gz +0 -0
- data/doc/pdf/proverbs.pdf +0 -0
- data/doc/pdf/sprichwoerter.pdf +0 -0
- data/doc/rst/proverbs.rst +10 -3
- data/doc/rst/sprichwoerter.rst +8 -3
- data/lib/adder.rb +3 -15
- data/lib/argparser.rb +4 -16
- data/lib/color_output.rb +10 -1
- data/lib/liste_de.rb +5 -16
- data/lib/liste_en.rb +4 -15
- data/lib/logging.rb +5 -15
- data/lib/rearranging.rb +3 -15
- data/lib/sprichw/303/266rter.rb +4 -15
- data/lib/translating.rb +4 -15
- data/lib/user_input.rb +3 -15
- data/lib/version.rb +6 -17
- metadata +9 -13
data/doc/html/proverbs.html
CHANGED
|
@@ -1,472 +1,289 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"
|
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
3
2
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
3
|
<head>
|
|
5
|
-
<meta
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
color
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
div.abstract p.topic-title {
|
|
71
|
-
font-weight: bold ;
|
|
72
|
-
text-align: center }
|
|
73
|
-
|
|
74
|
-
div.admonition, div.attention, div.caution, div.danger, div.error,
|
|
75
|
-
div.hint, div.important, div.note, div.tip, div.warning {
|
|
76
|
-
margin: 2em ;
|
|
77
|
-
border: medium outset ;
|
|
78
|
-
padding: 1em }
|
|
79
|
-
|
|
80
|
-
div.admonition p.admonition-title, div.hint p.admonition-title,
|
|
81
|
-
div.important p.admonition-title, div.note p.admonition-title,
|
|
82
|
-
div.tip p.admonition-title {
|
|
83
|
-
font-weight: bold ;
|
|
84
|
-
font-family: sans-serif }
|
|
85
|
-
|
|
86
|
-
div.attention p.admonition-title, div.caution p.admonition-title,
|
|
87
|
-
div.danger p.admonition-title, div.error p.admonition-title,
|
|
88
|
-
div.warning p.admonition-title, .code .error {
|
|
89
|
-
color: red ;
|
|
90
|
-
font-weight: bold ;
|
|
91
|
-
font-family: sans-serif }
|
|
92
|
-
|
|
93
|
-
/* Uncomment (and remove this text!) to get reduced vertical space in
|
|
94
|
-
compound paragraphs.
|
|
95
|
-
div.compound .compound-first, div.compound .compound-middle {
|
|
96
|
-
margin-bottom: 0.5em }
|
|
97
|
-
|
|
98
|
-
div.compound .compound-last, div.compound .compound-middle {
|
|
99
|
-
margin-top: 0.5em }
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
div.dedication {
|
|
103
|
-
margin: 2em 5em ;
|
|
104
|
-
text-align: center ;
|
|
105
|
-
font-style: italic }
|
|
106
|
-
|
|
107
|
-
div.dedication p.topic-title {
|
|
108
|
-
font-weight: bold ;
|
|
109
|
-
font-style: normal }
|
|
110
|
-
|
|
111
|
-
div.figure {
|
|
112
|
-
margin-left: 2em ;
|
|
113
|
-
margin-right: 2em }
|
|
114
|
-
|
|
115
|
-
div.footer, div.header {
|
|
116
|
-
clear: both;
|
|
117
|
-
font-size: smaller }
|
|
118
|
-
|
|
119
|
-
div.line-block {
|
|
120
|
-
display: block ;
|
|
121
|
-
margin-top: 1em ;
|
|
122
|
-
margin-bottom: 1em }
|
|
123
|
-
|
|
124
|
-
div.line-block div.line-block {
|
|
125
|
-
margin-top: 0 ;
|
|
126
|
-
margin-bottom: 0 ;
|
|
127
|
-
margin-left: 1.5em }
|
|
128
|
-
|
|
129
|
-
div.sidebar {
|
|
130
|
-
margin: 0 0 0.5em 1em ;
|
|
131
|
-
border: medium outset ;
|
|
132
|
-
padding: 1em ;
|
|
133
|
-
background-color: #ffffee ;
|
|
134
|
-
width: 40% ;
|
|
135
|
-
float: right ;
|
|
136
|
-
clear: right }
|
|
137
|
-
|
|
138
|
-
div.sidebar p.rubric {
|
|
139
|
-
font-family: sans-serif ;
|
|
140
|
-
font-size: medium }
|
|
141
|
-
|
|
142
|
-
div.system-messages {
|
|
143
|
-
margin: 5em }
|
|
144
|
-
|
|
145
|
-
div.system-messages h1 {
|
|
146
|
-
color: red }
|
|
147
|
-
|
|
148
|
-
div.system-message {
|
|
149
|
-
border: medium outset ;
|
|
150
|
-
padding: 1em }
|
|
151
|
-
|
|
152
|
-
div.system-message p.system-message-title {
|
|
153
|
-
color: red ;
|
|
154
|
-
font-weight: bold }
|
|
155
|
-
|
|
156
|
-
div.topic {
|
|
157
|
-
margin: 2em }
|
|
158
|
-
|
|
159
|
-
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
|
|
160
|
-
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
|
|
161
|
-
margin-top: 0.4em }
|
|
162
|
-
|
|
163
|
-
h1.title {
|
|
164
|
-
text-align: center }
|
|
165
|
-
|
|
166
|
-
h2.subtitle {
|
|
167
|
-
text-align: center }
|
|
168
|
-
|
|
169
|
-
hr.docutils {
|
|
170
|
-
width: 75% }
|
|
171
|
-
|
|
172
|
-
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
|
173
|
-
clear: left ;
|
|
174
|
-
float: left ;
|
|
175
|
-
margin-right: 1em }
|
|
176
|
-
|
|
177
|
-
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
|
178
|
-
clear: right ;
|
|
179
|
-
float: right ;
|
|
180
|
-
margin-left: 1em }
|
|
181
|
-
|
|
182
|
-
img.align-center, .figure.align-center, object.align-center {
|
|
183
|
-
display: block;
|
|
184
|
-
margin-left: auto;
|
|
185
|
-
margin-right: auto;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
table.align-center {
|
|
189
|
-
margin-left: auto;
|
|
190
|
-
margin-right: auto;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.align-left {
|
|
194
|
-
text-align: left }
|
|
195
|
-
|
|
196
|
-
.align-center {
|
|
197
|
-
clear: both ;
|
|
198
|
-
text-align: center }
|
|
199
|
-
|
|
200
|
-
.align-right {
|
|
201
|
-
text-align: right }
|
|
202
|
-
|
|
203
|
-
/* reset inner alignment in figures */
|
|
204
|
-
div.align-right {
|
|
205
|
-
text-align: inherit }
|
|
206
|
-
|
|
207
|
-
/* div.align-center * { */
|
|
208
|
-
/* text-align: left } */
|
|
209
|
-
|
|
210
|
-
.align-top {
|
|
211
|
-
vertical-align: top }
|
|
212
|
-
|
|
213
|
-
.align-middle {
|
|
214
|
-
vertical-align: middle }
|
|
215
|
-
|
|
216
|
-
.align-bottom {
|
|
217
|
-
vertical-align: bottom }
|
|
218
|
-
|
|
219
|
-
ol.simple, ul.simple {
|
|
220
|
-
margin-bottom: 1em }
|
|
221
|
-
|
|
222
|
-
ol.arabic {
|
|
223
|
-
list-style: decimal }
|
|
4
|
+
<meta name="generator" content="vim - Vi Improved, a programmer's editor; HTML Tidy for Linux version 5.8.0
|
|
5
|
+
"/>
|
|
6
|
+
<meta charset="utf-8" />
|
|
7
|
+
<meta name="viewport" content=
|
|
8
|
+
"width=device-width, initial-scale=1" />
|
|
9
|
+
<title>Proverbs</title>
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
/*<![CDATA[*/
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
:Author: Michael Uplawski
|
|
15
|
+
:Contact: michael.uplawski@uplawski.eu
|
|
16
|
+
:License: WTFPL 2.0, see http://www.wtfpl.net/about/
|
|
17
|
+
|
|
18
|
+
Stylesheet for use with Docutils.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
background-color:#e0f0c0;
|
|
23
|
+
font-family: Verdana,Helvetica,Univers;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
p {width: 80%;}
|
|
27
|
+
|
|
28
|
+
h1.title {color:#800080;font-size:2em;}
|
|
29
|
+
h2 {color:darkblue;font-size:1.5em;}
|
|
30
|
+
h3 {color:#3030f0;font-size:1em;}
|
|
31
|
+
|
|
32
|
+
nav:before {
|
|
33
|
+
content:'Contents';
|
|
34
|
+
font-weight:bold;
|
|
35
|
+
color:darkblue;
|
|
36
|
+
font-size:1.5em;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
p, ul.simple, ol.simple, dt {margin-left:2em;}
|
|
40
|
+
dd {margin-left:4em;}
|
|
41
|
+
|
|
42
|
+
/* correct left margin of nested block tags*/
|
|
43
|
+
dd p, li p {margin-left:0;}
|
|
44
|
+
dd * ul {margin-left:0 ! important; }
|
|
45
|
+
dd ul {margin-left:0 ! important; }
|
|
46
|
+
dd dl dt, dd dl dd {margin-left:0 ! important;}
|
|
47
|
+
|
|
48
|
+
em {color:#000080;
|
|
49
|
+
background-color:#ffffa0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
pre.literal-block {
|
|
53
|
+
margin-left:2em;
|
|
54
|
+
font-family:Verdana,Helvetica,Univers;
|
|
55
|
+
}8
|
|
56
|
+
blockquote {background-color:#ffc090;
|
|
57
|
+
padding:0.5em;
|
|
58
|
+
width:80%;
|
|
59
|
+
border-radius:0.5em;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/*]]>*/
|
|
64
|
+
</style>
|
|
65
|
+
</head>
|
|
66
|
+
<body>
|
|
67
|
+
<main id="proverbs">
|
|
68
|
+
<h1 class="title">PROVERBS</h1>
|
|
224
69
|
|
|
225
|
-
|
|
226
|
-
|
|
70
|
+
<p class="subtitle" id=
|
|
71
|
+
"rearrange-proverbs-into-new-mostly-senseless-proverbs">
|
|
72
|
+
Rearrange proverbs into new, mostly senseless, proverbs.</p>
|
|
227
73
|
|
|
228
|
-
|
|
229
|
-
|
|
74
|
+
<p><em>Sprichwörter</em> is the German name for the same
|
|
75
|
+
program.</p>
|
|
230
76
|
|
|
231
|
-
|
|
232
|
-
|
|
77
|
+
<section id="synopsis">
|
|
78
|
+
<h2>Synopsis</h2>
|
|
233
79
|
|
|
234
|
-
|
|
235
|
-
|
|
80
|
+
<blockquote>
|
|
81
|
+
<p><strong>proverbs</strong>
|
|
82
|
+
</p>
|
|
236
83
|
|
|
237
|
-
p
|
|
238
|
-
|
|
239
|
-
|
|
84
|
+
<p><strong>proverbs -[qc <COLOR>] (--qualify --color
|
|
85
|
+
<COLOR>)</strong>
|
|
86
|
+
</p>
|
|
240
87
|
|
|
241
|
-
p
|
|
242
|
-
|
|
88
|
+
<p><strong>proverbs -f (--favorites)</strong>
|
|
89
|
+
</p>
|
|
243
90
|
|
|
244
|
-
p
|
|
245
|
-
|
|
246
|
-
font-size: smaller }
|
|
91
|
+
<p><strong>proverbs -a (--add)</strong>
|
|
92
|
+
</p>
|
|
247
93
|
|
|
248
|
-
p
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
p.rubric {
|
|
252
|
-
font-weight: bold ;
|
|
253
|
-
font-size: larger ;
|
|
254
|
-
color: maroon ;
|
|
255
|
-
text-align: center }
|
|
256
|
-
|
|
257
|
-
p.sidebar-title {
|
|
258
|
-
font-family: sans-serif ;
|
|
259
|
-
font-weight: bold ;
|
|
260
|
-
font-size: larger }
|
|
261
|
-
|
|
262
|
-
p.sidebar-subtitle {
|
|
263
|
-
font-family: sans-serif ;
|
|
264
|
-
font-weight: bold }
|
|
265
|
-
|
|
266
|
-
p.topic-title {
|
|
267
|
-
font-weight: bold }
|
|
268
|
-
|
|
269
|
-
pre.address {
|
|
270
|
-
margin-bottom: 0 ;
|
|
271
|
-
margin-top: 0 ;
|
|
272
|
-
font: inherit }
|
|
273
|
-
|
|
274
|
-
pre.literal-block, pre.doctest-block, pre.math, pre.code {
|
|
275
|
-
margin-left: 2em ;
|
|
276
|
-
margin-right: 2em }
|
|
277
|
-
|
|
278
|
-
pre.code .ln { color: grey; } /* line numbers */
|
|
279
|
-
pre.code, code { background-color: #eeeeee }
|
|
280
|
-
pre.code .comment, code .comment { color: #5C6576 }
|
|
281
|
-
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
|
|
282
|
-
pre.code .literal.string, code .literal.string { color: #0C5404 }
|
|
283
|
-
pre.code .name.builtin, code .name.builtin { color: #352B84 }
|
|
284
|
-
pre.code .deleted, code .deleted { background-color: #DEB0A1}
|
|
285
|
-
pre.code .inserted, code .inserted { background-color: #A3D289}
|
|
94
|
+
<p><strong>proverbs -h (--help)</strong>
|
|
95
|
+
</p>
|
|
286
96
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
97
|
+
<p><strong>proverbs -v (--version)</strong>
|
|
98
|
+
</p>
|
|
99
|
+
</blockquote>
|
|
100
|
+
</section>
|
|
290
101
|
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
font-weight: bold }
|
|
102
|
+
<section id="description">
|
|
103
|
+
<h2>DESCRIPTION</h2>
|
|
294
104
|
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
105
|
+
<p>The program combines the beginnings and the endings of
|
|
106
|
+
proverbs randomly picked from a list. The result is a phrase
|
|
107
|
+
which is still recognizable as "kind of a proverb" but
|
|
108
|
+
without claiming to convey any real message, let alone
|
|
109
|
+
"wisdom".</p>
|
|
110
|
+
|
|
111
|
+
<p>Yes. It is intended as a humorous waste of time. You can,
|
|
112
|
+
for example, call proverbs from your <em>.bashrc</em>
|
|
113
|
+
file.</p>
|
|
114
|
+
|
|
115
|
+
<p>When called on the command-prompt as
|
|
116
|
+
<strong>proverbs</strong> without any options, a newly
|
|
117
|
+
generated proverb will be printed out on screen.</p>
|
|
118
|
+
</section>
|
|
119
|
+
|
|
120
|
+
<section id="options">
|
|
121
|
+
<h2>OPTIONS</h2>
|
|
122
|
+
|
|
123
|
+
<dl class="simple">
|
|
124
|
+
<dt><strong>-a</strong> or <strong>--add</strong></dt>
|
|
306
125
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
</
|
|
362
|
-
|
|
363
|
-
<
|
|
364
|
-
<
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
<
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
</
|
|
379
|
-
|
|
380
|
-
<
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
<
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
<
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
<
|
|
398
|
-
<
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
<dd>
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
<
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
</
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
<
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
<
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
</
|
|
425
|
-
<
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
<
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
<
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
<
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
<
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
<
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
<
|
|
457
|
-
|
|
458
|
-
</
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
</
|
|
467
|
-
</
|
|
468
|
-
|
|
469
|
-
</div>
|
|
470
|
-
</div>
|
|
126
|
+
<dd>
|
|
127
|
+
<p>Allows you to add a new, real proverb to the list of
|
|
128
|
+
original proverbs. You are prompted for each of the
|
|
129
|
+
details: language (one of <em>en</em> or <em>de</em> at
|
|
130
|
+
the time of this writing), singular or plural
|
|
131
|
+
(<em>s</em>, <em>p</em>), beginning and ending of the
|
|
132
|
+
proverb.</p>
|
|
133
|
+
</dd>
|
|
134
|
+
|
|
135
|
+
<dt><strong>-f</strong> or
|
|
136
|
+
<strong>--favorites</strong></dt>
|
|
137
|
+
|
|
138
|
+
<dd>
|
|
139
|
+
<p>Will dump the list of "qualified", random proverbs,
|
|
140
|
+
i.e. those that had been found worth saving after a
|
|
141
|
+
previous call to proverbs.</p>
|
|
142
|
+
</dd>
|
|
143
|
+
|
|
144
|
+
<dt><strong>-q</strong> or <strong>--qualify</strong></dt>
|
|
145
|
+
|
|
146
|
+
<dd>
|
|
147
|
+
<p>After a newly created proverb has been presented, you
|
|
148
|
+
have a few seconds to eventually qualify a proverb, i.e.
|
|
149
|
+
add it to the list of favorites, by pushing '+'.</p>
|
|
150
|
+
</dd>
|
|
151
|
+
|
|
152
|
+
<dt><strong>-c</strong> or
|
|
153
|
+
<strong>--color=COLOR</strong></dt>
|
|
154
|
+
|
|
155
|
+
<dd>
|
|
156
|
+
<p>Sets the color the border which sourrounds a generated
|
|
157
|
+
proverb. Must be one of red, green, yellow, purple, cyan,
|
|
158
|
+
blue, white or black.</p>
|
|
159
|
+
</dd>
|
|
160
|
+
|
|
161
|
+
<dt><strong>-h</strong> or <strong>--help</strong></dt>
|
|
162
|
+
|
|
163
|
+
<dd>
|
|
164
|
+
<p>Shows the short help-text for the program.</p>
|
|
165
|
+
</dd>
|
|
166
|
+
|
|
167
|
+
<dt><strong>-v</strong> or <strong>--version</strong></dt>
|
|
168
|
+
|
|
169
|
+
<dd>
|
|
170
|
+
<p>Shows version-information</p>
|
|
171
|
+
</dd>
|
|
172
|
+
</dl>
|
|
173
|
+
|
|
174
|
+
<section id=
|
|
175
|
+
"adding-proverbs-to-the-default-list-option-a-or-add">
|
|
176
|
+
<h3>ADDING PROVERBS to the default list (option -a or
|
|
177
|
+
--add)</h3>
|
|
178
|
+
|
|
179
|
+
<p>At the time of this writing (october 2019), original
|
|
180
|
+
('real') proverbs must conform to the pattern</p>
|
|
181
|
+
|
|
182
|
+
<p>"<em>someone or something</em>" | "<strong>does or
|
|
183
|
+
is</strong> <em>something</em>"</p>
|
|
184
|
+
|
|
185
|
+
<p>Just execute the program a few times on the
|
|
186
|
+
command-line, without arguments, to get the idea.</p>
|
|
187
|
+
|
|
188
|
+
<p>For the time, original proverbs are grouped with respect
|
|
189
|
+
to their subject (someone or something), which is
|
|
190
|
+
uncountable or in singular for the first group (like in
|
|
191
|
+
“Fortune | favors the bold”), in plural for the second
|
|
192
|
+
group (like in “All Roads | lead to Rome”).</p>
|
|
193
|
+
</section>
|
|
194
|
+
</section>
|
|
195
|
+
|
|
196
|
+
<section id="files">
|
|
197
|
+
<h2>FILES</h2>
|
|
198
|
+
|
|
199
|
+
<p>The hidden directory <em>.proverbs</em> in the user's
|
|
200
|
+
home-directory can contain three types of file. For the
|
|
201
|
+
English version, these are:</p>
|
|
202
|
+
|
|
203
|
+
<dl class="simple">
|
|
204
|
+
<dt><em>liste_en.rb</em>
|
|
205
|
+
</dt>
|
|
206
|
+
|
|
207
|
+
<dd>
|
|
208
|
+
<p>This file contains all the currently available,
|
|
209
|
+
original proverbs. It exists only, if you have already
|
|
210
|
+
added new original proverbs.</p>
|
|
211
|
+
</dd>
|
|
212
|
+
|
|
213
|
+
<dt><em>liste_en_bak.rb</em>
|
|
214
|
+
</dt>
|
|
215
|
+
|
|
216
|
+
<dd>
|
|
217
|
+
<p>A backup-copy of the previous version of the list of
|
|
218
|
+
proverbs.</p>
|
|
219
|
+
</dd>
|
|
220
|
+
|
|
221
|
+
<dt><em>qualifile_en</em>
|
|
222
|
+
</dt>
|
|
223
|
+
|
|
224
|
+
<dd>
|
|
225
|
+
<p>This file contains the list of previously qualified,
|
|
226
|
+
randomly generated proverbs, i.e. the list of
|
|
227
|
+
<em>favorites</em>. It is created when you qualify a
|
|
228
|
+
proverb for the very first time, and dumped to screen,
|
|
229
|
+
when you use the option -f or --favorites.</p>
|
|
230
|
+
</dd>
|
|
231
|
+
</dl>
|
|
232
|
+
</section>
|
|
233
|
+
|
|
234
|
+
<section id="other-information">
|
|
235
|
+
<h2>OTHER INFORMATION</h2>
|
|
236
|
+
|
|
237
|
+
<dl class="field-list simple">
|
|
238
|
+
<dt>Source-code<span class="colon">:</span></dt>
|
|
239
|
+
|
|
240
|
+
<dd>
|
|
241
|
+
<p>"Proverbs" had been developed in <a class=
|
|
242
|
+
"reference external" href=
|
|
243
|
+
"https://www.ruby-lang.org">Ruby</a> and is distributed
|
|
244
|
+
as a <a class="reference external" href=
|
|
245
|
+
"https://rubygems.org/gems/Sprichwoerter">ruby-gem</a>.
|
|
246
|
+
If you installed the program from the gem-file (with
|
|
247
|
+
<em>gem install</em>), then you find all the source-files
|
|
248
|
+
in the gem-folder for your Ruby-version. Otherwise, you
|
|
249
|
+
can also unpack the gem-file (with <em>tar</em>), then
|
|
250
|
+
uncompress the data-archive and take a look at the files
|
|
251
|
+
in the resulting, new folders <em>bin</em> and
|
|
252
|
+
<em>lib</em>.</p>
|
|
253
|
+
</dd>
|
|
254
|
+
</dl>
|
|
255
|
+
|
|
256
|
+
<dl class="field-list simple">
|
|
257
|
+
<dt>License<span class="colon">:</span></dt>
|
|
258
|
+
|
|
259
|
+
<dd>
|
|
260
|
+
<p>"Proverbs" is released under the conditions of the
|
|
261
|
+
<a class="reference external" href=
|
|
262
|
+
"https://www.wtfpl.net/about/">WTFPL</a>, version
|
|
263
|
+
2.0.</p>
|
|
264
|
+
</dd>
|
|
265
|
+
|
|
266
|
+
<dt>Version<span class="colon">:</span></dt>
|
|
267
|
+
|
|
268
|
+
<dd>
|
|
269
|
+
<p>1.6 of 2019/10/15</p>
|
|
270
|
+
</dd>
|
|
271
|
+
|
|
272
|
+
<dt>Author<span class="colon">:</span></dt>
|
|
273
|
+
|
|
274
|
+
<dd>
|
|
275
|
+
<p>"Proverbs" has been programmed by Michael Uplawski
|
|
276
|
+
<<a class="reference external" href=
|
|
277
|
+
"mailto:michael.uplawski@uplawski.eu">michael.uplawski@uplawski.eu</a>>.
|
|
278
|
+
The German parlor game <em>"Verrückte Sprichwörter"</em>
|
|
279
|
+
("Crazy Proverbs") was the principal inspiration for the
|
|
280
|
+
project.</p>
|
|
281
|
+
</dd>
|
|
282
|
+
</dl>
|
|
283
|
+
|
|
284
|
+
<p><strong>Ω</strong>
|
|
285
|
+
</p>
|
|
286
|
+
</section>
|
|
287
|
+
</main>
|
|
471
288
|
</body>
|
|
472
289
|
</html>
|