Contents 
 Index 
 "Perl Program Reference" 
 < Previous 
 Next > 

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 _f_cnt   1
 

#define _file_4_links   $_[0]
 

#define _filename   $_[0]
 

#define _href   $potential_link
 

#define _href   ""
 

#define _in_file   $_[0]
 

#define _lev
 

#define _level   $_[1]
 

#define _rel   "../"
 

#define _rel   "\.\/"
 

#define a_href   ""
 

#define after   ""
 

#define b_href   ""
 

#define base_level   $_[1]
 

#define before   ""
 

#define begin_file   $_[0]
 

#define begin_file   $_[0]
 

#define begin_file   $_[0]
 

#define begin_file   $_[0]
 

#define child
 

#define child
 

#define child
 

#define child
 

#define d
 

#define f
 

#define f
 

#define f
 

#define f
 

#define file_incoming   $_[0]
 

#define globe   ::_last_level 1
 

#define globe_path_purge   $_[2]
 

#define href   0
 

#define htree_file   $_[0]
 

#define htree_file   $_[0]
 

#define keep_href   ""
 

#define loc_title
 

#define new_file_entry
 

#define new_level   0
 

#define owning_file   $_[1]
 

#define part2rm   $_[1]
 

#define path   $globe::org{$owning_file}{path}
 

#define path   $globe::org{$_file_4_links}{path}
 

#define piece   0
 

#define potential_link   $_[0]
 

#define s_path   ""
 

#define start_file   $_[0]
 

#define strip_p   ""
 

#define to_do
 

#define trace   0
 

#define trace_start_file   $_[1]
 

#define which_purge_path   $_[2]
 

#define which_script   $_[1]
 


Function Documentation

int BEGIN  
 

Definition at line 107 of file html_look_integrate.pl.

foreach _in_file @xscope::top_files   
 

Definition at line 1604 of file html_look_integrate.pl.

if !(exists($globe_found_files{$child}))   
 

Definition at line 1697 of file html_look_integrate.pl.

if !(exists($globe_all_files{$child}))   
 

Definition at line 1423 of file html_look_integrate.pl.

if  
 

Definition at line 1400 of file html_look_integrate.pl.

if $b_anc_end!~//   [\S+]
 

Definition at line 932 of file html_look_integrate.pl.

if   debug_btxs = ~ /master/
 

Definition at line 730 of file html_look_integrate.pl.

if  
 

Definition at line 410 of file html_look_integrate.pl.

if  
 

Definition at line 363 of file html_look_integrate.pl.

foreach new_file_entry keys%    to_do
 

Definition at line 1321 of file html_look_integrate.pl.

return  
 

unless open(OUT_SCRIPT,">$htree_file")   
 

Definition at line 1586 of file html_look_integrate.pl.

while  
 

Definition at line 787 of file html_look_integrate.pl.


Variable Documentation

POTENTIAL_L __pad1__
 

Definition at line 721 of file html_look_integrate.pl.

_l_cnt
 

Definition at line 977 of file html_look_integrate.pl.

b_anc_end = ~ s/\&nbsp\
 

Definition at line 950 of file html_look_integrate.pl.

case_in
 

Definition at line 728 of file html_look_integrate.pl.

g
 

Definition at line 949 of file html_look_integrate.pl.

globe_file_cnt = 0
 

Definition at line 460 of file html_look_integrate.pl.

not_critical
 

Definition at line 728 of file html_look_integrate.pl.



 "Perl Program Reference" 
 < Previous 
 Next > 



Open-Source tools compliments of Voyant Technologies, Inc. and Glenn C. Maxey.
01/13/2003

TP Tools v2-00-0a

# tpt-perl-hcr-02