Debian Codegraph @

reports/register1.ll

raw
1 /*
2 * @progname register1.ll
3 * @version 1.0
4 * @author Wetmore
5 * @category
6 * @output nroff
7 * @description
8 *
9 * It will produce a report of all descendents of a person,
10 * and is presently designed for 12 pitch, HP laserjet III.
11 * All NOTE and CONT lines from data will be printed in the this report.
12 * This report will produce a paginated output. It is similiar
13 * to the report 'regvital1'.
14 *
15 * register1
16 *
17 * This report does NOT have a footer and header
18 *
19 * Code by Tom Wetmore, [email protected]
20 *
21 * This report works only with the LifeLines Genealogy program
22 *
23 * version one of this report was written by Tom Wetmore, in 1990,
24 * and it has been modified many times since.
25 *
26 * This report produces a nroff output, and to produce the
27 * output, use: nroff filename > filename.out
28 *
29 */
30
31
32 proc main ()
33 {
34 getindi(indi)
35 ".de hd" nl()
36 "'sp .8i" nl()
37 ".." nl()
38 ".de fo" nl()
39 "'bp" nl()
40 ".." nl()
41 ".wh 0 hd" nl()
42 ".wh -.8i fo" nl()
43 ".de CH" nl()
44 ".sp" nl()
45 ".in 16n" nl()
46 ".ti 0" nl()
47 "\h'5n'\h'-\w'\\$1'u'\\$1\h'8n'\h'-\w'\\$2'u'\\$2\h'2n'" nl()
48 ".." nl()
49 ".de IN" nl()
50 ".sp" nl()
51 ".in 0" nl()
52 ".." nl()
53 ".de GN" nl()
54 ".br" nl()
55 ".ne 2i" nl()
56 ".sp 2" nl()
57 ".in 0" nl()
58 ".ce" nl()
59 ".." nl()
60 ".de P" nl()
61 ".sp" nl()
62 ".in 0" nl()
63 ".ti 5" nl()
64 ".." nl()
65 ".po 3" nl()
66 ".ll 7i" nl()
67 ".ls 1" nl()
68 ".na" nl()
69 list(ilist) list(glist)
70 table(stab) indiset(idex)
71 enqueue(ilist,indi) enqueue(glist,1)
72 set(curgen,0) set(out,1) set(in,2)
73 while (indi,dequeue(ilist)) {
74 print("OUT: ") print(d(out))
75 print(" ") print(name(indi)) print(nl())
76 set(thisgen,dequeue(glist))
77 if (ne(curgen,thisgen)) {
78 ".GN" nl() "GENERATION " d(thisgen) nl() nl()
79 set(curgen,thisgen)
80 }
81 ".IN" nl() d(out) ". "
82 insert(stab,save(key(indi)),out)
83 call longvitals(indi)
84 addtoset(idex,indi,0)
85 set(out,add(out,1))
86 families(indi,fam,spouse,nfam) {
87 ".P" nl()
88 if (spouse) { set(sname, save(name(spouse))) }
89 else { set(sname, "_____") }
90 if (eq(0,nchildren(fam))) {
91 name(indi) " and " sname
92 " had no children." nl()
93 } elsif (and(spouse,lookup(stab,key(spouse)))) {
94 "Children of " name(indi) " and " sname " are shown "
95 "under " sname " (" d(lookup(stab,key(spouse))) ")." nl()
96 } else {
97 "Children of " name(indi) " and " sname":" nl()
98 children(fam,child,nchl) {
99 set(haschild,0)
100 families(child,cfam,cspou,ncf) {
101 if (ne(0,nchildren(cfam))) { set(haschild,1) }
102 }
103 if (haschild) {
104 print("IN: ") print(d(in))
105 print(" ") print(name(child)) print(nl())
106 enqueue(ilist,child)
107 enqueue(glist,add(1,curgen))
108 ".CH " d(in) " " roman(nchl) nl()
109 set (in, add (in, 1))
110 call shortvitals(child)
111 } else {
112 ".CH " qt() qt() " " roman(nchl) nl()
113 call longvitals(child)
114 addtoset(idex,child,0)
115 }
116 }
117 }
118 }
119 }
120 }
121 proc shortvitals(indi)
122 {
123 name(indi)
124 set(b,birth(indi)) set(d,death(indi))
125 if (and(b,short(b))) { ", b. " short(b) }
126 if (and(d,short(d))) { ", d. " short(d) } nl()
127 }
128 proc longvitals(i)
129 {
130 name(i) "." nl()
131 set(e,birth(i))
132 if(and(e,long(e))) { "Born " long(e) "." nl() }
133 if (eq(1,nspouses(i))) {
134 spouses(i,s,f,n) {
135 "Married"
136 set(nocomma,1)
137 call spousevitals(s,f)
138 }
139 } else {
140 spouses(i,s,f,n) {
141 "Married " ord(n) ","
142 call spousevitals(s,f)
143 }
144 }
145 set(e,death(i))
146 if(and(e,long(e))) { "Died " long(e) "." nl() }
147 fornotes(inode(i), note) {
148 note nl()
149 }
150 }
151
152 proc spousevitals (spouse,fam)
153 {
154 set(e,marriage(fam))
155 if (and(e,long(e))) { nl() long(e) "," }
156 nl() name(spouse)
157 set(e,birth(spouse))
158 if(and(e,long(e))) { "," nl() "born " long(e) }
159 set(e,death(spouse))
160 if(and(e,long(e))) { "," nl() "died " long(e) }
161 set(dad,father(spouse))
162 set(mom,mother(spouse))
163 if (or(dad,mom)) {
164 "," nl()
165 if (male(spouse)) { "son of " }
166 elsif (female(spouse)) { "daughter of " }
167 else { "child of " }
168 }
169 if (dad) { name(dad) }
170 if (and(dad,mom)) { nl() "and " }
171 if (mom) { name(mom) }
172 "." nl()
173 }
174
175
176 /* Sample output of this report, it is paginated but I have not shown
177 that in this example.
178
179
180 GENERATION 1
181
182 1. Fuller Ruben MANES. Born 19 Nov 1902, Union Valley, Sevier
183 Co, TN. Married 17 OCT 1936, Knoxville, TN, Edith Alberta MANIS,
184 born 8 APR 1914, Dandridge, Jefferson Co, TN, died 18 JUN 1992,
185 Knoxville, Knox Co, TN, daughter of William Loyd MANIS and Lillie
186 Caroline "Carolyn" NEWMAN. Died 20 Jun 1980, Knoxville, Knox Co,
187 TN. Fuller's first fifteen years were growing up on a farm. By
188 the time he was 10 years old, he had 9 other brothers and sisters
189 to help feed and care for, play with, and the many facets of work
190 which had to be done each day. "Clifford" and "Snowball" were
191 some of his nicknames. Pictures show him (many times) in a
192 three-piece suit and a man of many places. As most men, during
193 his youth, he was photographed in the presence with several
194 different females. He attended school at Harrison Chilhowee
195 Baptist Academy, which a walk of about 5 or 6 miles each way from
196 his home. He boarded at the school dormitory for an unknown
197 period of time.
198
199 Children of Fuller Ruben MANES and Edith Alberta MANIS:
200
201 i Ellsworth Howard MANIS. Born 11 MAR 1939,
202 Knoxville, Knox Co, TN. Died 13 MAR 1939,
203 Knoxville, TN,. Was the first born of twins,
204 birth two-forty PM, at Harrison-Henderson
205 Hospital. Ellsworth died at age 44 hours, was a
206 twin to Alda Clifford MANIS. Buried 13 Mar 1939
207 at Seven Islands Cem, NE Knox County, TN (near
208 Jefferson and Sevier County line).
209
210 2 ii Alda Clifford MANIS, b. 1939, TN
211
212
213 GENERATION 2
214
215
216 2. Alda Clifford MANIS. Born 11 MAR 1939, Knoxville, Knox Co,
217 TN. Married first, 8 SEP 1962, Knoxville, Knox Co, TN, Joyce
218 Fern OWENS, born 1 APR 1942, Knoxville, Knox Co, TN, daughter of
219 Guy Hixon OWENS and Bertha Mae TURNER. Married second, 13 FEB
220 1984, San Antonio, Texas, Marianne Florence KRAMER, born 19 MAY
221 1943, Los Angeles, CA, daughter of Anthony Leo KRAMER and
222 Florence Rita BOSSO. Born at two-forty five PM, Harrison-
223 Henderson Hospital. Twin of Elsworth Howard MANIS. Clifford was
224 born second.
225
226 Children of Alda Clifford MANIS and Joyce Fern OWENS:
227
228 3 i Gregory Scott MANIS, b. 1963, VA
229
230 ii Sheila Ann MANIS. Born 7 APR 1968, Mexico City,
231 Mexico DF.
232
233 Alda Clifford MANIS and Marianne Florence KRAMER had no
234 children.
235
236
237 */
238
239 /* end of report */