/* * @progname ped.ll * @version 1996-08-09 * @author Bill.Alford@anu.edu.au * @category * @output HTML * @description html pedigree/ancestral chart part of an individuals report. This coding can be generalised to print many generations back but for html purposes we only need go back 2 generations because the width of the page becomes far too big otherwise. In this case I've hard coded out what the generalised coding would look like. I've used ideas from the output of the gedcom2html program. Typical output from this reports looks like:
_William Alford___
_William Alford____|
| |_Elizabeth Shore__
|
|--William Alford
|
| _Robert Goldsbrough__
|_Jane Goldsbrough__|
|_Hannah Browne_______
\n"
col(add(line2,6,dif2)) call ped_ahref(father(father(indi)),href_table)
"_" nstrngff "__"
while (gt(diff1,0)) { "_" decr(diff1) }
"" nl()
" " call ped_ahref(father(indi),href_table) "_" nstrngf "__"
while (gt(diff2,0)) { "_" decr(diff2) }
"|" nl()
"|" col(add(line2,5,dif2)) "|"
call ped_ahref(mother(father(indi)),href_table) "_" nstrngfm "__"
while (gt(diff3,0)) { "_" decr(diff3) }
"" nl()
"|" nl()
"|--" call ped_ahref(indi,href_table) nstrngi "" nl()
"|" nl()
"|" col(add(line6,6,dif6))
call ped_ahref(father(mother(indi)),href_table) "_" nstrngmf "__"
while (gt(diff5,0)) { "_" decr(diff5) }
"" nl()
"|" call ped_ahref(mother(indi),href_table) "_" nstrngm "__"
while (gt(diff6,0)) { "_" decr(diff6) }
"|" nl()
col(add(line6,5,dif6)) "|"
call ped_ahref(mother(mother(indi)),href_table) "_" nstrngmm "__"
while (gt(diff7,0)) { "_" decr(diff7) }
"" nl()
"\n"
"