Debian Codegraph @

reports/6gen1.ll

raw
1 /*
2 * @progname 6gen1.ll
3 * @version 1.0
4 * @author Wetmore, Manis
5 * @category
6 * @output Text, 80 cols
7 * @description
8 *
9 * select and produce a 6 generation ancestor report for
10 * the person selected.
11 * Output is an ASCII file, and will probably need to be printed
12 * using 10 or 12 pitch.
13 *
14 * 6gen1
15 *
16 * Code by Tom Wetmore, [email protected]
17 * With modifications by: Cliff Manis
18 *
19 * This report works only with the LifeLines Genealogy program
20 *
21 * version one of this report was written by Tom Wetmore, in 1990,
22 *
23 * select and produce a 6 generation ancestor report for
24 * the person selected.
25 *
26 * Output is an ASCII file, and will probably need to be printed
27 * using 10 or 12 pitch.
28 *
29 * An example of the output may be seen at end of this report.
30 */
31
32 proc main ()
33 {
34 getindi(indi)
35 set (nl,nl())
36 pagemode(70,80)
37 call pedout(indi,1,6,1,64)
38 pageout()
39 print(nl())
40 }
41
42 proc pedout (indi, gen, max, top, bot)
43 {
44 if (le(gen,max)) {
45 set(gen,add(1,gen))
46 set(fath,father(indi))
47 set(moth,mother(indi))
48 set(height,add(1,sub(bot,top)))
49 set(offset,div(sub(height,1),2))
50 call block(indi,add(top,offset),mul(8,sub(gen,2)))
51 set(half,div(height,2))
52 call pedout(fath,gen,max,top,sub(add(top,half),1))
53 call pedout(moth,gen,max,add(top,half),bot)
54 }
55 }
56
57 proc block (indi, row, col)
58 {
59 print(".")
60 set(row,add(3,row))
61 set(col,add(3,col))
62 pos(row,col)
63 if (indi) { name(indi) }
64 else { "_______________" }
65 }
66
67 /* Sample output of the 6gen1 report for: a c /manis
68
69
70 John MANESS
71 Samuel P. MANES
72 _______________
73 William Thomas MANES
74 _______________
75 Fanny (MANES)
76 _______________
77 William Bowers MANES
78 James BOWERS
79 Anderson BOWERS
80 Martha
81 Martha A. BOWERS
82 Christopher Columbus COWAN
83 Lurina Viney "Vina" COWAN
84 Mary BOYD
85 Fuller Ruben MANES
86 _______________
87 Henry B. CANTER
88 _______________
89 James H. CANTER
90 _______________
91 Polina (CANTER)
92 _______________
93 Cordelia "Corda" F. CANTER
94 _______________
95 James WHITEHORN
96 _______________
97 Martha Marie WHITEHORN
98 Kennedy "Kan" Powell FOSTER
99 Martha "Patsy" FOSTER
100 Rebecca KERSAWN
101 Alda Clifford MANIS
102 _______________
103 Amos MANIS
104 _______________
105 Thomas D.A.F.S. MANIS
106 David FRANCIS
107 Mary Elizabeth FRANCIS
108 Mary CROCKETT
109 William Loyd MANIS
110 Jacob BIRD
111 John BIRD
112 Mrs. (BIRD)
113 Frances Amanda BIRD
114 G. Christopher SHRADER
115 Elizabeth SHRADER
116 Mary WEBB
117 Edith Alberta MANIS
118 John NEWMAN
119 Aaron NEWMAN
120 Nancy FRANKLIN
121 John Franklin NEWMAN
122 Thomas B. RANKIN
123 Sinea RANKIN
124 Jennet BRADSHAW
125 Lillie Caroline "Carolyn" NEWMAN
126 James CORBETT
127 John Williams CORBETT
128 Polly GRESHAMS
129 Mary Jean CORBETT
130 _______________
131 Betsy EUDAILY
132 _______________
133
134 */
135
136 /* End of Report */
137
138
139
140
141
142