html_look_integrate.pl File Reference
Looks into HTML files that have been provided by other sources and parses them for useful information.
More...
Go to the source code of this file.
Defines
Functions
Variables
Detailed Description
Looks into HTML files that have been provided by other sources and parses them for useful information.
It extracts appropriate information needed for a entries in an index and table of contents.
It starts at the files listed in @xscope::top_files array. For every HTML file there, it finds their hyperlinks. It successively traces through the hyperlinks creating a data structure. This is the data structure used in the TOC. The hyperlinks that it traces are also used directly in the table of contents.
Certain files can be excluded from creating children or tracing further. All top files in particular are added to this list so that it does not loop continuously through things it already knows, or more realistically, so that it doesn't build a top-levels data structure under some other top-level data.
This has several routines (spider_trace, index_token_generation, script_generation etc.) that call themselves recursively. The key to stop the recursion is when the owning files for the children (hyperlinks) have already been visited.
-
Author:
-
Glenn C. Maxey
Definition in file html_look_integrate.pl.
Define Documentation
#define _file_4_links $_[0]
|
|
#define _href $potential_link
|
|
#define file_incoming $_[0]
|
|
#define globe ::_last_level 1
|
|
#define globe_path_purge $_[2]
|
|
#define owning_file $_[1]
|
|
#define path $globe::org{$owning_file}{path}
|
|
#define path $globe::org{$_file_4_links}{path}
|
|
#define potential_link $_[0]
|
|
#define trace_start_file $_[1]
|
|
#define which_purge_path $_[2]
|
|
#define which_script $_[1]
|
|
Function Documentation
foreach _in_file |
( |
@xscope::top_files |
|
) |
|
|
if |
( |
!(exists($globe_found_files{$child})) |
|
) |
|
|
if |
( |
!(exists($globe_all_files{$child})) |
|
) |
|
|
if |
( |
$ |
debug_btxs = ~ /master/ |
) |
|
|
foreach new_file_entry |
( |
keys% |
to_do |
) |
|
|
unless |
( |
open(OUT_SCRIPT,">$htree_file") |
|
) |
|
|
Variable Documentation
Open-Source tools compliments of Voyant Technologies, Inc. and Glenn C. Maxey.
01/13/2003
TP Tools v2-00-0a
# tpt-perl-hcr-02