Debian Codegraph @

reports/html.dn.ll

raw
1 /*
2 * @progname html.dn.ll
3 * @version 3.0
4 * @author Dennis Nicklaus [email protected]
5 * @category
6 * @output HTML
7 * @description
8 *
9 * Selects a person and writes html pages for that person
10 * and all their descendents through a specified number of generations.
11 * Actually, you get to specify a set of individuals. It probably
12 * works nicest if you select people of the same generation, e.g.
13 * all your ggg-grandparents.
14 * (I also recommend that you start with the "top of the line" ancestor
15 * or else you'll have unresolved links in the pedigree chart.)
16 *
17 * Output is a set of ASCII HTML files, one for each person in the set.
18 * In addition, it writes a surname index file named <db>index.html,
19 * and one named <db>-gendex, which is a GENDEX format index text file.
20 * <db> is the database name.
21 *
22 * Note that I APPEND to the index files! This is necessary if you're building
23 * up a set of pages by multiple runs of html.dn. But you want to remove
24 * the old ones, or go to a different directory, if you're starting a whole
25 * new set of pages.
26 *
27 * Why would you want to run it multiple times? Suppose I wanted all my
28 * relatives through my generation. On my dad's side I know all my great-grandparents
29 * but on mom's side, only my grandparents. To create my set of pages,
30 * I'd first run this program, specifying all of my g-gparents (on dad's side)
31 * and number of generations =4. Then run it a second time, specifying
32 * only my 2 grandparents on mom's side and # generations=3.
33
34 * The individual's HTML files are named <db>I<nnn>.html where
35 * <nnn> is replaced with the individual's key ID number.
36 * Since it can re-write the same individual html files multiple times,
37 * I usually sort the two index files with something like this (suppose db=dad):
38 * sort -u -t \> -k 2 dadindex.html > dadindex.sort; mv dadindex.sort dadindex.html
39 * (the individual html files expect the index to be named dadindex.html.)
40 * For the GENDEX index:
41 * sort -t \| -k 2 -u dad-gendex >gendex.txt
42 * (note that I use the -u flag to take out duplicate entries)
43 *
44 * Actually, before sorting, I usually run the indexes and (all the indi html files)
45 * through some big "sed" scripts to take things from the LaTex notation
46 * I use to either HTML notation or plain text.
47 * e.g. for the gendex file, which doesn't want html special chars:
48 * (and you may have to use csh for this quoting convention here to work.)
49 * sed -e 's/\\"u/ue/g' <gendex.in > gendex.out
50 *
51 * For the html files, it looks like
52 * sed -e 's/\\"u/\&uuml;/g' <input > output
53 * I also use -e 's/\\begin{enumerate}/\<OL\>/g' -e 's/\\end{enumerate}/\<\/OL\>/g'
54 * and similar things to go from LaTex to HTML.
55 *
56 * The bibliography: The html generator looks for SOUR xrefs used on each indi
57 * and prints a list of them at the bottom of each HTML file, and references a file
58 * <db>bib.html which is the expected bibliography.
59 * But this program doesn't generate the bibliography.
60 * I personally use book-latex to generate the bibliography then munge
61 * it around into a nicer HTML format. (I have a C program for this.)
62 * You can use whatever you want.
63 *
64 * SHORTCOMINGS:
65 * 1. Takes time to do two pretty much identical pages for direct ancestors
66 * (or anyone else who is descended from more than one of the same starting people.
67 * (That's OK, the most recent one written will just overwrite the first.)
68 *
69 * A previous verion had lots of wasted white space.
70 * I don't like the way pagemode works at all.
71 * I had to fill in lots of extra whitespace, e.g. at the top of the pedigree
72 * chart to make it not overwrite some of the text which was already output.
73 * It may still fail somewhere along the way.
74 * I completely changed around the way the pedigree chart is drawn to get
75 * rid of this problem. The result is a more compact html page, but with
76 * a few less details on the pedigree chart.
77 * I left all the old code in there (commented out), so it is confusing to read.
78 *
79 * If you look closely, you will notice a few things like: concat(dbname,"")
80 * These are in there so I can fill in a numeral or something between the
81 * empty quote marks so that I can have a dad2index.html, e.g.
82 *
83 * DETAILS:
84 * 1. I have a special "1 NOTE FILE:" construct that I use to refer to external files.
85 * 2. I also use the "1 OBJE" to link to external images (e.g. .GIF)
86 * relevant to the person.
87 * 3. change the info in init() before you use this!!
88 *
89 * EXAMPLE:
90 * See http://www.geocities.com/dnicklaus/dadindex.html
91 * and just pick a name from that index to see what it looks like.
92 * dadI3.html might be a good one to start at.
93 *
94 * Version 3.0 July 1998
95 * What's different from Version 2?
96 * Don't make a page and a link for the child if we know nothing
97 * about the child except his name and one simple fact.
98 * Version 2.0 July 1998 (Version 1.0 was Feb. 1998)
99 * What's different from Version 1? Simpler, more compact pedigree chart.
100 *
101 * This report works only with the LifeLines Genealogy program
102 *
103 */
104 global(dbname)
105 global(extension)
106 global(email)
107 global(personalname)
108 global(homepage)
109 global (gotValue)
110 global (gottenNode)
111 global (gottenValue)
112 global (global_gp_var)
113 proc init ()
114 {
115 set(dbname,save(database()))
116 set(extension,".html")
117 set(personalname,getproperty("user.fullname"))
118 set(email,getproperty("user.email"))
119 set(homepage,"http://www.yourplace.here")
120 /*e.g.: set(homepage,"http://www.geocities.com/dnicklaus/index.html")*/
121 }
122 proc main ()
123 {
124 call init()
125 getindimsg(person,"Enter person to output HTML for Descendents")
126 indiset(thisgen)
127 indiset(allgen)
128 indiset(newgen)
129 while (person){
130 addtoset(thisgen, person, 0)
131 addtoset(allgen, person, 0)
132
133 set(person,0)
134 getindimsg(person,"Enter next person to output HTML for Descendents")
135 }
136
137 getintmsg (ngen,
138 "Enter number of generations for complete info")
139
140 /* collect descendents */
141
142 set(gen,2) /* this code has to do at least 2 generations */
143 while(lt(gen,ngen)){
144 set(thisgen,childset(thisgen))
145 set(allgen,union(allgen,thisgen))
146 set(gen,add(gen,1))
147 }
148 set(newgen,childset(thisgen))
149
150 /* print out individual html files */
151
152 forindiset(allgen,person,val,thisgensize) {
153 if (gt(worth_doing(person),1)) {
154 newfile(save(concat (concat(dbname,key(person)),extension)),0)
155 call do_it_all(person,1 )
156 }
157 }
158 /* list last newgen will not have any hyperlinks from the children
159 in this set */
160 forindiset(newgen,person,val,thisgensize) {
161 if (gt(worth_doing(person),1)) {
162 newfile(save(concat (concat(dbname,key(person)),extension)),0)
163 call do_it_all(person,0)
164 }
165 }
166
167 /* write out a GENDEX format index */
168 newfile(save(concat(concat(dbname,""),"-gendex")),1)
169 forindiset(allgen,person,val,thisgensize) {
170 if (gt(worth_doing(person),1)) {
171 call write_gendex_line(person)
172 }
173 }
174 forindiset(newgen,person,val,thisgensize) {
175 if (gt(worth_doing(person),1)) {
176 call write_gendex_line(person)
177 }
178 }
179 /* write out a normal index for HTML use */
180 newfile(save(concat(concat(dbname,""),"index.html")),1)
181 forindiset(allgen,person,val,thisgensize) {
182 if (gt(worth_doing(person),1)) {
183 call write_regular_index_line(person)
184 }
185 }
186 forindiset(newgen,person,val,thisgensize) {
187 if (gt(worth_doing(person),1)) {
188 call write_regular_index_line(person)
189 }
190 }
191 }
192 proc do_it_all(indi,linkit)
193
194 {
195 print(key(indi)) print(" ")
196 call do_chart_head(indi)
197 "<Center> <H2>" name(indi,0) "</H2></Center>\n"
198 "<HR>\n"
199 call getGif(inode(indi))
200 "<HR>\n"
201 "<DL>\n"
202 if (e,birth(indi)) { "<DT> born: " long(e) call doAddr(e) "\n" }
203 if (e,baptism(indi)) { "<DT> bapt: " long(e) call doAddr(e) "\n" }
204 if (e,death(indi)) { "<DT> died: " long(e) call doAddr(e) "\n" }
205 if (e,burial(indi)) { "<DT> bur.: " long(e) call doAddr(e) "\n" }
206 call getValueCont(inode(indi),"OCCU")
207 if (gotValue){ "<DT> occu: " gottenValue "\n"}
208 call getValueCont(inode(indi),"WILL")
209 if (gotValue){ "<DT> Will: " long(gottenNode) call doAddr(gottenNode)"\n"}
210 call getValueCont(inode(indi),"PROB")
211 if (gotValue){ "<DT> Probated: " long(gottenNode) call doAddr(gottenNode)"\n"}
212
213 families(indi,fam,sp,spi) {
214 if(sp){ "<DT> spouse: <A HREF=\"" dbname key(sp) extension "\">" name(sp) "</a>\n"
215 if (e,marriage(fam)){ "<DD> marr: " long(e) call doAddr(e) "\n" }
216 if (e,birth(sp)) { "<DD> born: " long(e) call doAddr(e) "\n" }
217 if (e,baptism(sp)) { "<DD> bapt: " long(e) call doAddr(e) "\n" }
218 if (e,death(sp)) { "<DD> died: " long(e) call doAddr(e) "\n" }
219 if (e,burial(sp)) { "<DD> bur.: " long(e) call doAddr(e) "\n" }
220 call getValueCont(inode(sp),"OCCU")
221 if (gotValue){ "<DD> occu: " gottenValue "\n"}
222
223 }
224 if (gt(nchildren(fam),0)){ "<DT> Children:\n"}
225 children (fam,ch,famchi) { " "
226
227 if (linkit){
228 if (gt(worth_doing(ch),1)) {
229 "<DD> <A HREF=\"" dbname key(ch) extension "\">" name(ch) "</a>\n"
230 }
231 else {
232 /* here worth_doing must = exactly 0 or 1
233 print out the name and the one thing we know,
234 but no link */
235 "<DD>" name(ch,0)
236 if (e,birth(ch)) { " -- born: " long(e) call doAddr(e) "." }
237 if (e,baptism(ch)) { " -- bapt: " long(e) call doAddr(e) "." }
238 if (e,death(ch)) { " -- died: " long(e) call doAddr(e) "." }
239 if (e,burial(ch)) { " -- bur.: " long(e) call doAddr(e) "." }
240 "\n"
241 }
242 }
243 else { "<dd>" name(ch,0) "<br>\n" }
244 }
245 }
246 "</DL>\n"
247 if (parents(indi)){
248 call has_grandparents(indi)
249 if (eq(0,global_gp_var)){
250 set(fath,father(indi))
251 if (fath){
252 "Father: "
253 "<A HREF=\"" dbname key(fath) extension"\">"
254 name(fath) "</a>"
255 " ("
256 if (e,birth(fath)) { year(e)}
257 "-"
258 if (e,death(fath)) { year(e)}
259 ")"
260 "<BR>\n"
261
262 }
263 set(moth,mother(indi))
264 if (moth){
265 "Mother: "
266 "<A HREF=\"" dbname key(moth) extension"\">"
267 name(moth) "</a>"
268 " ("
269 if (e,birth(moth)) { year(e)}
270 "-"
271 if (e,death(moth)) { year(e)}
272 ")"
273 "<BR>\n"
274
275 }
276 }
277 else{
278
279 "<CENTER><H3> Pedigree Chart</H3></CENTER>"
280 /* " "
281 " \n"
282 " "
283 " \n"
284 " "
285 " \n"
286 " "
287 " \n"
288 " "
289 " \n"
290 " "
291 " \n"
292 " "
293 " \n"
294 " "
295 " \n"
296 " "
297 " \n"
298 */
299 /* all this extra crappy space is apparently necessary because
300 of the way the pagemode feature gobbles up the output buffer for
301 lines which haven't been written out yet. It gets gobbled as whitespace*/
302 /* pagemode(64,120)
303 pos(1,1)*/
304 "<PRE>"
305 /* call pedout(indi,1,4,1,64)
306 print(nl())
307 pos(64,1)
308 pageout()
309 linemode()
310 */
311 call pedout2(indi)
312 "</PRE>\n"
313 }
314 }
315 "<HR>\n"
316 call getText(inode(indi),1)
317 "<HR>\n"
318 call getCensus(inode(indi))
319 "<HR>\n"
320 call do_file_notes(indi)
321
322
323 "<p>\nSources for this individual: <a href=\"" dbname "bib.html\">"
324 call sour_addind(indi) "</a> <br>\n"
325 "<HR>\n"
326 "<center>\n"
327 "<a href=\"" homepage "\"> Homepage </a> | \n"
328 "<a href=\"genealogy.html\"> Genealogy Home </a> | \n"
329 "<a href=\"" dbname "index.html\"> Index </a> | \n"
330 "<a href=\"" dbname "about.html\"> Explanations </a><br>\n"
331 "</center>\n"
332 "<a href=\"mailto:" email "\">" personalname " " email "</a><br>"
333
334 }
335
336 proc pedout (indi, gen, max, top, bot)
337 {
338 if (and(indi,le(gen,max))) {
339 set(gen,add(1,gen))
340 set(fath,father(indi))
341 set(moth,mother(indi))
342 set(height,add(1,sub(bot,top)))
343 set(offset,div(sub(height,8),2))
344 call block(indi,add(top,offset),mul(10,sub(gen,2)))
345 set(half,div(height,2))
346 call pedout(fath,gen,max,top,sub(add(top,half),1))
347 call pedout(moth,gen,max,add(top,half),bot)
348 }
349 }
350
351 proc do_chart_head(indi){
352 "<HTML><HEAD>"
353 "<TITLE>"
354 name(indi,0)
355 " Family"
356 "</TITLE>"
357 "</HEAD>\n"
358 }
359 proc block (indi, row, col)
360 {
361 print(".")
362 set(row,add(3,row))
363
364
365 set(col,add(3,col))
366 pos(row,col)
367 "<A HREF=\"" dbname key(indi) extension"\">"
368 name(indi)
369 "</a>"
370 set(row,add(row,1))
371 pos(row,col)
372 set (e,birth(indi))
373 if (e){ " b. " long(e)}
374 set(row,add(row,1))
375 pos(row,col)
376 set (e,death(indi))
377 if (e){ " d. " long(e)}
378 set(row,add(row,1))
379 pos(row,col)
380
381 }
382 proc doname (indi)
383 {
384 if(indi){
385 "<A HREF=\"" dbname key(indi) extension"\">"
386 name(indi)
387 "</a> ("
388 set (e,birth(indi))
389 if (e){short(e)}
390 " - "
391 set (e,death(indi))
392 if (e){short(e)}
393 ")"
394 }
395 }
396
397 proc getText (root, paragraph) {
398 if (root) {
399 fornodes (root, node) {
400 if (not (strcmp ("TEXT", tag (node)))) {
401 if (paragraph) { "\n\n" set (paragraph, 0) }
402 call values (node)
403 "\n\n<p>"
404 }
405 }
406 }
407 }
408 proc getGif (root) {
409
410 if (root) {
411 fornodes (root, node) {
412 if (not (strcmp ("OBJE", tag (node)))) {
413 "<center>\n"
414 call getValueCont (node,"TITL")
415 if (gotValue){ set (title,save(gottenValue)) }
416 call getValueCont (node,"FILE")
417 if (gotValue){ set (file,save(gottenValue)) }
418 "<IMG src=" file " alt=\"" title "\"> <br>"
419 title "<br>"
420 "</center>\n"
421
422 }
423 }
424 }
425 }
426 proc getCensus (root) {
427 if (root) {
428 fornodes (root, node) {
429 if (not (strcmp ("CENS", tag (node)))) {
430 "Census: " long(node)
431 "<br>\n"
432 }
433 }
434 }
435 }
436
437 proc values (root) {
438 if (root) {
439 if (strlen (value (root))) { "\n" value (root) }
440 fornodes (root, node) {
441 if (not (strcmp ("CONT", tag (node)))) {
442 if (strlen (value (node))) { "\n" value (node) }
443 }
444 }
445 }
446 }
447 proc doAddr(event)
448 {
449 fornodes(event, subnode) {
450 if (eq(0,strcmp("PLAC", tag(subnode)))) {
451 fornodes(subnode, subnode2) {
452 if (eq(0,strcmp("ADDR", tag(subnode2)))) {
453 ", at " value(subnode2)
454 }}}}
455 }
456
457 proc getValueCont (root, t) {
458 set (gotValue, 0)
459 if (root) {
460 fornodes (root, node) {
461 if (and (not (gotValue), not (strcmp (tag (node), t)))) {
462 set (gotValue, 1)
463 set (gottenNode, node)
464 set (gottenValue, save (value (node)))
465 fornodes (node, subnode) {
466 if (not (strcmp ("CONT", tag (subnode)))) {
467 if (strlen (value (subnode))) {
468 set (gottenValue,
469 save (concat (gottenValue, concat ("\n", value (subnode)))))
470 }
471 }
472 }
473 }
474 }
475 }
476 }
477
478 /* sour_addind() adds the sources referenced for this individual */
479 proc sour_addind(i)
480 {
481 table(sour_table)
482 list(sour_list)
483
484 /* first get all the sources in the INDI record */
485 traverse(root(i), m, l) {
486 if (nestr("SOUR", tag(m))) { continue() }
487 set(v, value(m))
488 if (eqstr("", v)) { continue() }
489 if(reference(v)) {
490 if (ne(0, lookup(sour_table, v))) { continue() }
491 set(v, save(v))
492 insert(sour_table, v, 1)
493 v " "
494 }
495 }
496 /* now get all the sources in the FAM records where this person is a spouse */
497 families(i,fam,sp,spi) {
498 traverse(root(fam), m, l) {
499 if (nestr("SOUR", tag(m))) { continue() }
500 set(v, value(m))
501 if (eqstr("", v)) { continue() }
502 if(reference(v)) {
503 if (ne(0, lookup(sour_table, v))) { continue() }
504 set(v, save(v))
505 insert(sour_table, v, 1)
506 v " "
507 }
508 }
509 }
510 }
511
512 proc write_gendex_line(person)
513 {
514 set(separator,"|")
515 dbname key(person) extension
516 separator
517 surname(person)
518 separator
519 givens(person) " /" surname(person) "/" /* fullname(person,0,1,110)*/
520 separator
521 if (e,birth(person)) { date(e)}
522 separator
523 if (e,birth(person)) { place(e)}
524 separator
525 if (e,death(person)) { date(e)}
526 separator
527 if (e,death(person)) { place(e)}
528 separator
529 "\n"
530 }
531 proc write_regular_index_line(person)
532 {
533 "<A HREF=\"" dbname key(person) extension "\">"
534 fullname(person,0,0,110) "</A>"
535 " ("
536 if (e,birth(person)) { year(e)}
537 "-"
538 if (e,death(person)) { year(e)}
539 ")"
540 "<BR>\n"
541 }
542 proc has_grandparents(indi)
543 {
544 set(global_gp_var,0)
545 set(fath,father(indi))
546 if (parents(fath)){
547 set(global_gp_var,1)
548 }
549 set(moth,mother(indi))
550 if (parents(moth)){
551 set(global_gp_var,1)
552 }
553 }
554 proc do_file_notes(person)
555 {
556 set (done_once,0)
557 fornotes(inode(person),note){
558 set (i, index(note,"FILE:",1))
559 if (gt(i,0)){
560 set(what,save(substring(note,add(i,6),strlen(note))))
561 set (i, index(what," ",1))
562 set(descrip,save(substring(what,1,i)))
563
564 /* now get and flatten the file name */
565 set (i, index(what,"FAMHIST/",1))
566 set (fname,save(substring(what,add(i,strlen("FAMHIST/")),strlen(what))))o
567 set (slash, index(fname,"/",1))
568 while (gt(slash,0)){
569 set(fnameb,save(concat(concat(substring(fname,1,sub(slash,1)),"_"),
570 substring(fname,add(slash,1),strlen(fname)))))
571 set(fname,fnameb)
572 set (slash, index(fname,"/",1))
573 }
574 set (slash, index(fname,".",1))
575 while (gt(slash,0)){
576 set(fnameb,save(concat(concat(substring(fname,1,sub(slash,1)),"_"),
577 substring(fname,add(slash,1),strlen(fname)))))
578 set(fname,fnameb)
579 set (slash, index(fname,".",1))
580 }
581 if (done_once) { /* this isn't the first time */
582 " | " /* simple separator */
583 }
584 else { "More information: " set(done_once,1)}
585 "<a href=\"" fname ".txt\">"
586 descrip
587 "</a>\n"
588 }
589
590 }
591 }
592
593
594 /* this function helps us to not print out a whole www page for someone
595 that I don't know anything about except for maybe the name.
596 return a 1 if I know one simple fact, and a 0 if I don't know anything,
597 and a bigger number if I know something more complicated about them.*/
598
599 func worth_doing(child) {
600
601 set (worth, 0)
602 if (birth(child)) { set (worth,add(worth,1)) }
603 if (baptism(child)) { set (worth,add(worth,1)) }
604 if (death(child)) { set (worth,add(worth,1)) }
605 if (burial(child)) {set (worth,add(worth,1)) }
606 if (gt(nfamilies(child),0)) { return(10) }
607 call getValueCont(inode(child),"OCCU")
608 if (gotValue){ return(10) }
609 call getValueCont(inode(child),"TEXT")
610 if (gotValue){ return(10) }
611 call getValueCont(inode(child),"WILL")
612 if (gotValue){ return(10) }
613 call getValueCont(inode(child),"PROB")
614 if (gotValue){ return(10) }
615 call getValueCont(inode(child),"OBJE")
616 if (gotValue){ return(10) }
617 call getValueCont(inode(child),"FILE")
618 if (gotValue){ return(10) }
619 call getValueCont(inode(child),"CENS")
620 if (gotValue){ return(10) }
621
622 return(worth)
623 }
624
625
626
627 proc pedout2 (indi)
628 {
629 /* I actually collect enough names here to do a 5generation pedigree chart,
630 but I only print out 4 generations. */
631 set(fath,father(indi))
632 set(moth,mother(indi))
633 if (fath) {
634 set(ffath,father(fath))
635 set(mfath,mother(fath))
636 if (ffath) {
637 set(fffath,father(ffath))
638 set(mffath,mother(ffath))
639 if (fffath) {
640 set(ffffath,father(fffath))
641 set(mfffath,mother(fffath))
642 }
643 if (mffath) {
644 set(fmffath,father(mffath))
645 set(mmffath,mother(mffath))
646 }
647 }
648 if (mfath) {
649 set(fmfath,father(mfath))
650 set(mmfath,mother(mfath))
651 if (fmfath) {
652 set(ffmfath,father(fmfath))
653 set(mfmfath,mother(fmfath))
654 }
655 if (mmfath) {
656 set(fmmfath,father(mmfath))
657 set(mmmfath,mother(mmfath))
658 }
659 }
660 }
661 if (moth) {
662 set(fmoth,father(moth))
663 set(mmoth,mother(moth))
664 if (fmoth) {
665 set(ffmoth,father(fmoth))
666 set(mfmoth,mother(fmoth))
667 if (ffmoth) {
668 set(fffmoth,father(ffmoth))
669 set(mffmoth,mother(ffmoth))
670 }
671 if (mfmoth) {
672 set(fmfmoth,father(mfmoth))
673 set(mmfmoth,mother(mfmoth))
674 }
675 }
676 if (mmoth) {
677 set(fmmoth,father(mmoth))
678 set(mmmoth,mother(mmoth))
679 if (fmmoth) {
680 set(ffmmoth,father(fmmoth))
681 set(mfmmoth,mother(fmmoth))
682 }
683 if (mmmoth) {
684 set(fmmmoth,father(mmmoth))
685 set(mmmmoth,mother(mmmoth))
686 }
687 }
688 }
689
690 " |--------" call doname(fffath) "\n"
691 " |\n"
692 " |---------" call doname(ffath) "\n"
693 " | |\n"
694 " | |--------" call doname(mffath) "\n"
695 " |\n"
696 " |------" call doname(fath) "\n"
697 " | |\n"
698 " | | |--------" call doname(fmfath) "\n"
699 " | | |\n"
700 " | |---------" call doname(mfath) "\n"
701 " | |\n"
702 " | |--------" call doname(mmfath) "\n"
703 " |\n"
704 call doname(indi) "\n"
705 " |\n"
706 " | |--------" call doname(ffmoth) "\n"
707 " | |\n"
708 " | |---------" call doname(fmoth) "\n"
709 " | | |\n"
710 " | | |--------" call doname(mfmoth) "\n"
711 " | |\n"
712 " |------" call doname(moth) "\n"
713 " |\n"
714 " | |--------" call doname(fmmoth) "\n"
715 " | |\n"
716 " |---------" call doname(mmoth) "\n"
717 " |\n"
718 " |--------" call doname(mmmoth) "\n"
719 }
720
721 /*
722 |--------bill
723 |
724 |---------joe
725 | |
726 | |--------mary
727 |
728 |------sam
729 | |
730 | | |--------fred
731 | | |
732 | |---------sue
733 | |
734 | |--------sally
735 bill
736 | |--------john
737 | |
738 | |---------jack
739 | | |
740 | | |--------mary
741 | |
742 |------jane
743 |
744 | |--------fred
745 | |
746 |---------sue
747 |
748 |--------sally
749
750
751 */
752 /* End of Report */