diff --git a/Doc/myformat.perl b/Doc/myformat.perl index 1a18e84860d..21434b31dd3 100644 --- a/Doc/myformat.perl +++ b/Doc/myformat.perl @@ -21,8 +21,8 @@ sub do_cmd_NULL{ join('', 'NULL', @_[0]); } sub do_cmd_e{ local($_) = @_; '\' . $_; } -$AUTHOR_ADDRESS = '(not specified)'; -$PYTHON_VERSION = '(not specified)'; +$AUTHOR_ADDRESS = ''; +$PYTHON_VERSION = ''; sub do_cmd_version{ $PYTHON_VERSION . @_[0]; } sub do_cmd_release{ @@ -277,8 +277,9 @@ sub my_module_index_helper{ s/$next_pair_pr_rx[\n]*//o; local($br_id, $str) = ($1, $2); local($section_tag) = join('', @curr_sec_id); + $word = "$word " if $word; &make_mod_index_entry("SECTION$section_tag", - "$str ($word module)", 'DEF'); + "$str (${word}module)", 'DEF'); $_; } @@ -286,15 +287,20 @@ sub ref_module_index_helper{ local($word, $_) = @_; s/$next_pair_pr_rx//o; local($br_id, $str) = ($1, $2); - &make_mod_index_entry($br_id, "$str ($word module)", 'REF') . $_; + $word = "$word " if $word; + &make_mod_index_entry($br_id, "$str (${word}module)", 'REF') . $_; } sub do_cmd_bifuncindex{ &my_parword_index_helper('built-in function', @_); } +sub do_cmd_modindex{ &my_module_index_helper('', @_); } sub do_cmd_bimodindex{ &my_module_index_helper('built-in', @_); } +sub do_cmd_exmodindex{ &my_module_index_helper('extension', @_); } sub do_cmd_stmodindex{ &my_module_index_helper('standard', @_); } # these should be adjusted a bit.... +sub do_cmd_refmodindex{ &ref_module_index_helper('', @_); } sub do_cmd_refbimodindex{ &ref_module_index_helper('built-in', @_); } +sub do_cmd_refexmodindex{ &ref_module_index_helper('extension', @_); } sub do_cmd_refstmodindex{ &ref_module_index_helper('standard', @_); } sub do_cmd_nodename{ &do_cmd_label(@_); } @@ -621,6 +627,45 @@ sub do_cmd_seetext{ "
" . @_[0]; } + +sub do_cmd_maketitle { + local($_) = @_; + local($the_title) = ''; + if ($t_title) { + $the_title .= "
$href
"; + } else { + $the_title .= "\n$t_author
"; + } + } else { &write_warnings("\nThere is no author for this document."); } + if ($t_institute) { + $the_title .= "\n$t_institute
";} + if ($AUTHOR_ADDRESS) { + $the_title .= "\n$AUTHOR_ADDRESS"; + $the_title .= "
";} + if ($t_affil) { + $the_title .= "\n$t_affil
";} + if ($t_date) { + $the_title .= "\n$t_date";
+ if ($PYTHON_VERSION) {
+ $the_title .= "
Release $PYTHON_VERSION";}
+ $the_title .= "
$t_address
"; + } else { $the_title .= "\n"} + if ($t_email) { + $the_title .= "\n
$t_email
"; + } else { $the_title .= "" } + $the_title . "