| 1 |
/* |
| 2 |
* @progname 4gen1.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Wetmore, Manis |
| 5 |
* @category |
| 6 |
* @output Text, 80 cols |
| 7 |
* @description |
| 8 |
* |
| 9 |
* select and produce a ancestor report for the person selected. |
| 10 |
* Output is an ASCII file, and will probably need to be printed |
| 11 |
* using 10 or 12 pitch. |
| 12 |
* |
| 13 |
* 4gen1 |
| 14 |
* |
| 15 |
* Code by Tom Wetmore, [email protected] |
| 16 |
* With modifications by: Cliff Manis |
| 17 |
* |
| 18 |
* This report works only with the LifeLines Genealogy program |
| 19 |
* |
| 20 |
* version one of this report was written by Tom Wetmore, in 1990, |
| 21 |
* |
| 22 |
* select and produce a ancestor report for the person selected. |
| 23 |
* |
| 24 |
* Output is an ASCII file, and will probably need to be printed |
| 25 |
* using 10 or 12 pitch. |
| 26 |
* |
| 27 |
* An example of the output may be seen at end of this report. |
| 28 |
*/ |
| 29 |
|
| 30 |
|
| 31 |
proc main () |
| 32 |
{ |
| 33 |
getindi(indi) |
| 34 |
pagemode(64,80) |
| 35 |
call pedout(indi,1,4,1,64) |
| 36 |
pageout() |
| 37 |
print(nl()) |
| 38 |
} |
| 39 |
|
| 40 |
proc pedout (indi, gen, max, top, bot) |
| 41 |
{ |
| 42 |
if (and(indi,le(gen,max))) { |
| 43 |
set(gen,add(1,gen)) |
| 44 |
set(fath,father(indi)) |
| 45 |
set(moth,mother(indi)) |
| 46 |
set(height,add(1,sub(bot,top))) |
| 47 |
set(offset,div(sub(height,8),2)) |
| 48 |
call block(indi,add(top,offset),mul(10,sub(gen,2))) |
| 49 |
set(half,div(height,2)) |
| 50 |
call pedout(fath,gen,max,top,sub(add(top,half),1)) |
| 51 |
call pedout(moth,gen,max,add(top,half),bot) |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
proc block (indi, row, col) |
| 56 |
{ |
| 57 |
print(".") |
| 58 |
set(row,add(3,row)) |
| 59 |
set(col,add(3,col)) |
| 60 |
pos(row,col) |
| 61 |
name(indi) |
| 62 |
set(row,add(row,1)) |
| 63 |
pos(row,col) |
| 64 |
set(e,birth(indi)) |
| 65 |
" b. " |
| 66 |
if (and(e,date(e))) { date(e) } |
| 67 |
set(row,add(row,1)) |
| 68 |
pos(row,col) |
| 69 |
" bp. " |
| 70 |
if (and(e,place(e))) { place(e) } |
| 71 |
} |
| 72 |
|
| 73 |
/* Sample output of the 4gen1 report: |
| 74 |
Person requested was: a c /manis |
| 75 |
|
| 76 |
|
| 77 |
William Thomas MANES |
| 78 |
b. 26 Nov 1828 |
| 79 |
bp. Hamblen, Tennessee |
| 80 |
|
| 81 |
William Bowers MANES |
| 82 |
b. 6 Jan 1868 |
| 83 |
bp. Hamblen Co, TN ? |
| 84 |
|
| 85 |
Martha A. BOWERS |
| 86 |
b. 14 APR 1829 |
| 87 |
bp. TN |
| 88 |
|
| 89 |
Fuller Ruben MANES |
| 90 |
b. 19 Nov 1902 |
| 91 |
bp. Union Valley, Sevier Co, TN |
| 92 |
|
| 93 |
James H. CANTER |
| 94 |
b. ca 1847 |
| 95 |
bp. Claiborne Co, TN |
| 96 |
|
| 97 |
Cordelia "Corda" F. CANTER |
| 98 |
b. 7 Dec 1869 |
| 99 |
bp. Jonesboro, Washington Co, TN |
| 100 |
|
| 101 |
Martha Marie WHITEHORN |
| 102 |
b. 22 DEC 1846 |
| 103 |
bp. Washington Co, TN ? |
| 104 |
|
| 105 |
Alda Clifford MANIS |
| 106 |
b. 11 MAR 1939 |
| 107 |
bp. Knoxville, Knox Co, TN |
| 108 |
|
| 109 |
Thomas D.A.F.S. MANIS |
| 110 |
b. 1 Feb 1839 |
| 111 |
bp. Fair Garden, TN or Cocke Co, TN ? |
| 112 |
|
| 113 |
William Loyd MANIS |
| 114 |
b. 5 Sep 1872 |
| 115 |
bp. Sevier Co, TN |
| 116 |
|
| 117 |
Frances Amanda BIRD |
| 118 |
b. 8 FEB 1845 |
| 119 |
bp. Sevier Co, TN |
| 120 |
|
| 121 |
Edith Alberta MANIS |
| 122 |
b. 8 APR 1914 |
| 123 |
bp. Dandridge, Jefferson Co, TN |
| 124 |
|
| 125 |
John Franklin NEWMAN |
| 126 |
b. 4 MAY 1830 |
| 127 |
bp. Jefferson Co, TN |
| 128 |
|
| 129 |
Lillie Caroline "Carolyn" NEWMAN |
| 130 |
b. 13 JUN 1881 |
| 131 |
bp. Jefferson Co, TN |
| 132 |
|
| 133 |
Mary Jean CORBETT |
| 134 |
b. 9 OCT 1843 |
| 135 |
bp. Jefferson Co, TN |
| 136 |
|
| 137 |
*/ |
| 138 |
|
| 139 |
/* End of Report */ |