| 1 |
/* |
| 2 |
* @progname 8gen1.ll |
| 3 |
* @version 1.0 |
| 4 |
* @author Wetmore, Manis |
| 5 |
* @category |
| 6 |
* @output Text, 132 cols |
| 7 |
* @description |
| 8 |
* |
| 9 |
* Produce an 8 generation descendant report for the person selected. |
| 10 |
* Output is an ASCII file, and will probably need to be printed |
| 11 |
* using 132 column format. |
| 12 |
* |
| 13 |
* 8gen1 |
| 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 |
* Produce an 8 generation descendant report for the person selected. |
| 23 |
* |
| 24 |
* Output is an ASCII file, and will probably need to be printed |
| 25 |
* using 132 column format. |
| 26 |
* |
| 27 |
* An example of the output, is not included because it would add |
| 28 |
* 20k to this report. |
| 29 |
*/ |
| 30 |
|
| 31 |
proc main () |
| 32 |
{ |
| 33 |
getindi(indi) |
| 34 |
set (nl, nl()) |
| 35 |
pagemode(260,132) |
| 36 |
call pedout(indi,1,8,1,256) |
| 37 |
pageout() |
| 38 |
print(nl()) |
| 39 |
} |
| 40 |
|
| 41 |
proc pedout (indi, gen, max, top, bot) |
| 42 |
{ |
| 43 |
if (le(gen,max)) { |
| 44 |
set(gen,add(1,gen)) |
| 45 |
set(fath,father(indi)) |
| 46 |
set(moth,mother(indi)) |
| 47 |
set(height,add(1,sub(bot,top))) |
| 48 |
set(offset,div(sub(height,1),2)) |
| 49 |
call block(indi,add(top,offset),mul(10,sub(gen,2))) |
| 50 |
set(half,div(height,2)) |
| 51 |
call pedout(fath,gen,max,top,sub(add(top,half),1)) |
| 52 |
call pedout(moth,gen,max,add(top,half),bot) |
| 53 |
} |
| 54 |
} |
| 55 |
|
| 56 |
proc block (indi, row, col) |
| 57 |
{ |
| 58 |
print(".") |
| 59 |
set(row,add(3,row)) |
| 60 |
set(col,add(3,col)) |
| 61 |
set(e,birth(indi)) |
| 62 |
pos(row,col) |
| 63 |
if (indi) { name(indi) |
| 64 |
", " |
| 65 |
if (and(e,date(e))) { date(e) } |
| 66 |
", " |
| 67 |
if (and(e,place(e))) { place(e) } |
| 68 |
} |
| 69 |
|
| 70 |
else { " |--------" } |
| 71 |
} |
| 72 |
|
| 73 |
/* End of Report */ |
| 74 |
|