texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * doc/texinfo.texi (HTML Customization Variables)


From: Patrice Dumas
Subject: branch master updated: * doc/texinfo.texi (HTML Customization Variables), tp/Texinfo/Common.pm (@variable_string_settables) tp/Texinfo/Convert/HTML.pm (%defaults, _convert_footnote_command): set NO_NUMBER_FOOTNOTE_SYMBOL as a customization variable.
Date: Tue, 25 Jan 2022 06:41:10 -0500

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 88d7bb24a5 * doc/texinfo.texi (HTML Customization Variables), 
tp/Texinfo/Common.pm (@variable_string_settables) tp/Texinfo/Convert/HTML.pm 
(%defaults, _convert_footnote_command): set NO_NUMBER_FOOTNOTE_SYMBOL as a 
customization variable.
88d7bb24a5 is described below

commit 88d7bb24a5e2b647d7a009aeb0d36aa576d46b40
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jan 25 12:40:56 2022 +0100

    * doc/texinfo.texi (HTML Customization Variables),
    tp/Texinfo/Common.pm (@variable_string_settables)
    tp/Texinfo/Convert/HTML.pm (%defaults, _convert_footnote_command):
    set NO_NUMBER_FOOTNOTE_SYMBOL as a customization variable.
---
 ChangeLog                  | 7 +++++++
 doc/texinfo.texi           | 4 ++++
 tp/TODO                    | 2 +-
 tp/Texinfo/Common.pm       | 1 +
 tp/Texinfo/Convert/HTML.pm | 4 ++--
 5 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e5ab3e0a0a..a61162c04c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-01-25  Patrice Dumas  <pertusus@free.fr>
+
+       * doc/texinfo.texi (HTML Customization Variables),
+       tp/Texinfo/Common.pm (@variable_string_settables)
+       tp/Texinfo/Convert/HTML.pm (%defaults, _convert_footnote_command):
+       set NO_NUMBER_FOOTNOTE_SYMBOL as a customization variable.
+
 2022-01-25  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/HTML.pm (_convert_footnote_command)
diff --git a/doc/texinfo.texi b/doc/texinfo.texi
index 69f49a01fc..d8444a3436 100644
--- a/doc/texinfo.texi
+++ b/doc/texinfo.texi
@@ -16515,6 +16515,10 @@ Do not use CSS; default false.  @xref{HTML CSS}.
 @item NO_CUSTOM_HTML_ATTRIBUTE
 Do not output HTML with custom attributes in elements; default false.
 
+@item NO_NUMBER_FOOTNOTE_SYMBOL
+Symbol used for footnotes if @code{NUMBER_FOOTNOTES} is false.
+Default is @code{*}.
+
 @item PRE_ABOUT
 Used when an About element is output.  If set to a text string,
 this text will appear at the beginning of the About element.  If set
diff --git a/tp/TODO b/tp/TODO
index ca0ef0c891..71e5654f25 100644
--- a/tp/TODO
+++ b/tp/TODO
@@ -34,7 +34,7 @@ Some private variables/private state used in conversion
   $self->{'explained_commands'}
   $self->{'element_explanation_contents'}
  _convert_footnote_command:
-  $foot_num, $NO_NUMBER_FOOTNOTE_SYMBOL, %footnote_id_numbers
+  $foot_num, %footnote_id_numbers
  _contents_inline_element
   %contents_command_element_type
  _convert_preformatted_command
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index 49e609a36a..a5b0ae8c1a 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -318,6 +318,7 @@ my @variable_string_settables = (
 'MENU_SYMBOL',
 'MONOLITHIC',
 'NO_CSS',
+'NO_NUMBER_FOOTNOTE_SYMBOL',
 'NO_CUSTOM_HTML_ATTRIBUTE',
 'NODE_FILE_EXTENSION',
 'NODE_NAME_IN_INDEX',
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index a53c31b1c9..0ff8f1dff0 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -1720,6 +1720,7 @@ my %defaults = (
   'DEFAULT_RULE'         => '<hr>',
   'BIG_RULE'             => '<hr>',
   'MENU_SYMBOL'          => undef,
+  'NO_NUMBER_FOOTNOTE_SYMBOL' => '*',
   'MENU_ENTRY_COLON'     => ':',
   'INDEX_ENTRY_COLON'    => ':',
   'BODYTEXT'             => undef,
@@ -2647,7 +2648,6 @@ sub _convert_anchor_command($$$$)
 $default_commands_conversion{'anchor'} = \&_convert_anchor_command;
 
 my $foot_num;
-my $NO_NUMBER_FOOTNOTE_SYMBOL = '*';
 
 my %footnote_id_numbers;
 sub _convert_footnote_command($$$$)
@@ -2662,7 +2662,7 @@ sub _convert_footnote_command($$$$)
   if ($self->get_conf('NUMBER_FOOTNOTES')) {
     $number_in_doc = $foot_num;
   } else {
-    $number_in_doc = $NO_NUMBER_FOOTNOTE_SYMBOL;
+    $number_in_doc = $self->get_conf('NO_NUMBER_FOOTNOTE_SYMBOL');
   }
   
   return "($number_in_doc)" if ($self->in_string());



reply via email to

[Prev in Thread] Current Thread [Next in Thread]