diff --git a/Doc/perl/python.perl b/Doc/perl/python.perl
index 07ba65e926b..00ae37f3d71 100644
--- a/Doc/perl/python.perl
+++ b/Doc/perl/python.perl
@@ -81,9 +81,29 @@ sub do_cmd_cfunction{ &do_cmd_code(@_); }
sub do_cmd_cdata{ &do_cmd_code(@_); }
sub do_cmd_ctype{ &do_cmd_code(@_); }
+sub do_cmd_character{ &do_cmd_samp(@_); }
+
+sub do_cmd_regexp{
+ local($_) = @_;
+ s|$next_pair_pr_rx|\2|;
+ $_;
+}
+
+sub do_cmd_envvar{
+ local($_) = @_;
+ s/$next_pair_pr_rx/\$\2/;
+ $_;
+}
+
+sub do_cmd_mimetype{
+ local($_) = @_;
+ s|$next_pair_pr_rx|\2|;
+ $_;
+}
+
sub do_cmd_email{
local($_) = @_;
- s/$any_next_pair_pr_rx/\2<\/font><\/tt>/;
+ s|$any_next_pair_pr_rx|\2|;
$_;
}
@@ -99,7 +119,7 @@ sub do_cmd_url{
sub do_cmd_manpage{
# two parameters: \manpage{name}{section}
local($_) = @_;
-# local($any_next_pair_pr_rx3) = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
+ local($any_next_pair_pr_rx3) = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
s/$next_pair_pr_rx$any_next_pair_pr_rx3/\2<\/i>(\4)/;
$_;
}
@@ -154,7 +174,7 @@ sub do_cmd_strong{
sub do_cmd_deprecated{
# two parameters: \deprecated{version}{whattodo}
local($_) = @_;
-# local($any_next_pair_pr_rx3) = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
+ local($any_next_pair_pr_rx3) = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
local($release,$action) = ($2, $4);
s/$next_pair_pr_rx$any_next_pair_pr_rx3//;
"Deprecated since release $release."
@@ -169,7 +189,8 @@ sub do_cmd_deprecated{
$INDEX_SUBITEM = "";
sub get_indexsubitem{
- $INDEX_SUBITEM ? " $INDEX_SUBITEM" : '';
+ #$INDEX_SUBITEM ? " $INDEX_SUBITEM" : '';
+ '';
}
sub do_cmd_setindexsubitem{
@@ -179,6 +200,18 @@ sub do_cmd_setindexsubitem{
$_;
}
+sub do_cmd_withsubitem{
+ # We can't really do the right right thing, because LaTeX2HTML doesn't
+ # do things in the right order, but we need to at least strip this stuff
+ # out, and leave anything that the second argument expanded out to.
+ #
+ local($_) = @_;
+ s/$next_pair_pr_rx$any_next_pair_pr_rx3/\4/;
+ $_;
+}
+
+sub do_cmd_makemodindex{ @_[0]; }
+
sub do_cmd_indexii{
local($_) = @_;
s/$next_pair_pr_rx//o;
@@ -313,10 +346,10 @@ sub init_myformat{
$any_next_pair_rx7 = "$O(\\d+)$C([\\s\\S]*)$O\\7$C";
$any_next_pair_rx9 = "$O(\\d+)$C([\\s\\S]*)$O\\9$C";
# <#2#>...<#2#>
- $any_next_pair_pr_rx_3 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
- $any_next_pair_pr_rx_5 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\5$CP";
- $any_next_pair_pr_rx_7 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\7$CP";
- $any_next_pair_pr_rx_9 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\9$CP";
+ $any_next_pair_pr_rx3 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\3$CP";
+ $any_next_pair_pr_rx5 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\5$CP";
+ $any_next_pair_pr_rx7 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\7$CP";
+ $any_next_pair_pr_rx9 = "$OP(\\d+)$CP([\\s\\S]*)$OP\\9$CP";
# if (defined &process_commands_wrap_deferred) {
# &process_commands_wrap_deferred(<