texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Thu, 30 Jan 2025 17:03:29 -0500 (EST)

branch: master
commit 3c5b15f42b64374518cda15cd1148726790a5f60
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Jan 30 22:51:44 2025 +0100

    * doc/texi2any_api.texi (Setting Global Directions From Document
    Information), tp/init/documentation_examples.pm
    (_set_appendix_direction_node_name), tp/t/init_files_tests.t
    ($documentation_examples_text): add the "Setting Global Directions
    From Document Information" node to document set_global_direction.
    Add example code to documentation_examples.pm.
---
 ChangeLog                                          |   9 ++
 doc/texi2any_api.texi                              |  68 +++++++++++
 tp/init/documentation_examples.pm                  |  43 +++++++
 tp/t/init_files_tests.t                            |   3 +
 .../init_files_tests/documentation_examples.pl     |  64 ++++++++++
 .../documentation_examples/res_html/index.html     |   1 +
 .../res_html/prepended_to_filenames-Index.html     |   4 +
 .../documentation_examples_texi2html.pl            | 132 +++++++++++++++++++++
 .../res_html/documentation_examples_texi2html.html |  38 +++++-
 9 files changed, 360 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d2b0e83c31..e74f37a857 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,15 @@
        definition of \endlink which was then overridden by the common
        definition.  Report from Werner.
 
+2025-01-30  Patrice Dumas  <pertusus@free.fr>
+
+       * doc/texi2any_api.texi (Setting Global Directions From Document
+       Information), tp/init/documentation_examples.pm
+       (_set_appendix_direction_node_name), tp/t/init_files_tests.t
+       ($documentation_examples_text): add the "Setting Global Directions
+       From Document Information" node to document set_global_direction.
+       Add example code to documentation_examples.pm.
+
 2025-01-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/HTML.pm (converter_initialize)
diff --git a/doc/texi2any_api.texi b/doc/texi2any_api.texi
index 83af8f8e18..06ef1b2566 100644
--- a/doc/texi2any_api.texi
+++ b/doc/texi2any_api.texi
@@ -4617,6 +4617,74 @@ formatting.
 All the formatting functions take a converter object as first argument.
 
 
+@node Setting Global Directions From Document Information
+@section Setting Global Directions From Document Information
+
+Global directions may be added or modified before any conversion takes
+place (@pxref{Adding Text And Global Output Units Directions}).  It is also
+possible to associate a global output unit direction with a node name Texinfo
+code using the converted document information, by registering a user-defined
+function (@pxref{Init File Calling at Different Stages}) to call
+@code{set_global_direction} on the converter at the @samp{setup} stage.  The
+direction needs to be a default global direction, or to have been registered
+previously, this function cannot be used to add a new direction, only to set
+the association to a node.  It is not a real limitation, as a new direction
+needs to be registered early such that associated direction strings can be set.
+
+@defun @var{$converter}->set_global_direction ($direction, $texinfo_node_name)
+@var{$direction} is a global direction (@pxref{Directions}),
+@var{$texinfo_node_name} is an optional node name Texinfo code.
+The @var{$direction} will point to the output unit associated to the
+@var{$texinfo_node_name} node name, if set and the node exists in the
+Texinfo document.
+@end defun
+
+For example, to associate the first @code{@@appendix} command to the
+@samp{Appendix} direction:
+
+@example
+use Texinfo::Common;
+use Texinfo::Convert::Texinfo;
+
+texinfo_register_global_direction ('Appendix');
+
+texinfo_register_direction_string_info (@dots{})
+@dots{}
+
+sub _set_appendix_direction_node_name
+@{
+  my ($self, $document, $stage) = @@_;
+
+  my $sections_list = $document->sections_list();
+
+  if (!$sections_list or !scalar(@@@{$sections_list@})) @{
+    return 0;
+  @}
+
+  foreach my $section (@@@{$sections_list@}) @{
+    if ($section->@{'cmdname'@} eq 'appendix') @{
+      if ($section->@{'extra'@}
+          and $section->@{'extra'@}->@{'associated_node'@}) @{
+        my $node = $section->@{'extra'@}->@{'associated_node'@};
+        my $label_element = Texinfo::Common::get_label_element($node);
+        if (defined($label_element)) @{
+          my $node_name = Texinfo::Convert::Texinfo::convert_to_texinfo(
+                        @{'contents' => $label_element->@{'contents'@}@});
+          $self->set_global_direction('Appendix', $node_name);
+        @}
+      @}
+      last;
+    @}
+  @}
+
+  return 0;
+@}
+
+texinfo_register_handler('setup',
+            \&_set_appendix_direction_node_name);
+@end example
+
+
 @node Advanced Navigation Panel Buttons Specification
 @section Advanced Navigation Panel Buttons Specification
 
diff --git a/tp/init/documentation_examples.pm 
b/tp/init/documentation_examples.pm
index 90825e826e..f984b46a67 100644
--- a/tp/init/documentation_examples.pm
+++ b/tp/init/documentation_examples.pm
@@ -10,6 +10,8 @@ use utf8;
 # To check if there is no erroneous autovivification
 #no autovivification qw(fetch delete exists store strict);
 
+use Texinfo::Common;
+use Texinfo::Convert::Texinfo;
 use Texinfo::Convert::HTML;
 
 texinfo_set_from_init_file('MATHJAX_CONFIGURATION',
@@ -84,6 +86,9 @@ texinfo_register_command_formatting('setchapternewpage',
      Texinfo::Convert::HTML::default_command_conversion(undef,
                                                  'documentlanguage'));
 
+texinfo_register_global_direction ('Appendix');
+texinfo_register_direction_string_info ('Appendix', 'text', undef, 'Appendix');
+
 my $shown_styles;
 my $footnotestyle;
 sub my_function_set_some_css {
@@ -119,6 +124,44 @@ sub my_function_set_some_css {
 
 texinfo_register_handler('setup', \&my_function_set_some_css);
 
+sub _set_appendix_direction_node_name
+{
+  my ($self, $document, $stage) = @_;
+
+  my $sections_list = $document->sections_list();
+
+  if (!$sections_list or !scalar(@{$sections_list})) {
+    return 0;
+  }
+
+  foreach my $section (@{$sections_list}) {
+    if ($section->{'cmdname'} eq 'appendix') {
+      if ($section->{'extra'}
+          and $section->{'extra'}->{'associated_node'}) {
+        my $node = $section->{'extra'}->{'associated_node'};
+        my $label_element = Texinfo::Common::get_label_element($node);
+        if (defined($label_element)) {
+          my $node_name = Texinfo::Convert::Texinfo::convert_to_texinfo(
+                            {'contents' => $label_element->{'contents'}});
+          $self->set_global_direction('Appendix', $node_name);
+        }
+      }
+      last;
+    }
+  }
+
+  my $section_header_buttons_list
+    = $self->get_conf('SECTION_BUTTONS');
+  my @modified_buttons = @$section_header_buttons_list;
+  push @modified_buttons, 'Appendix';
+  $self->set_conf('SECTION_BUTTONS', \@modified_buttons);
+
+  return 0;
+}
+
+texinfo_register_handler('setup',
+                       \&_set_appendix_direction_node_name);
+
 sub my_format_separate_anchor($$;$)
 {
   my $converter = shift;
diff --git a/tp/t/init_files_tests.t b/tp/t/init_files_tests.t
index 56ff99de63..350a1b7cd4 100644
--- a/tp/t/init_files_tests.t
+++ b/tp/t/init_files_tests.t
@@ -122,6 +122,9 @@ my $documentation_examples_text = '
 
 @printindex cp
 
+@node Second appendix
+@appendix Second appendix
+
 ';
 
 my $special_unit_direction_customization_text = '@contents
diff --git a/tp/t/results/init_files_tests/documentation_examples.pl 
b/tp/t/results/init_files_tests/documentation_examples.pl
index a7e86bc35f..dfbce78baf 100644
--- a/tp/t/results/init_files_tests/documentation_examples.pl
+++ b/tp/t/results/init_files_tests/documentation_examples.pl
@@ -1509,6 +1509,46 @@ $result_trees{'documentation_examples'} = {
       'source_info' => {
         'line_nr' => 59
       }
+    },
+    {
+      'cmdname' => 'appendix',
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'Second appendix'
+                }
+              ],
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'line_arg'
+            }
+          ],
+          'type' => 'arguments_line'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'section_number' => 'B'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 63
+      }
     }
   ],
   'type' => 'document_root'
@@ -1579,6 +1619,8 @@ $result_texis{'documentation_examples'} = '
 
 @printindex cp
 
+@appendix Second appendix
+
 ';
 
 
@@ -1626,6 +1668,9 @@ Appendix A Index
 ****************
 
 
+Appendix B Second appendix
+**************************
+
 ';
 
 $result_sectioning{'documentation_examples'} = {
@@ -1703,6 +1748,21 @@ $result_sectioning{'documentation_examples'} = {
                   'up' => {}
                 }
               }
+            },
+            {
+              'cmdname' => 'appendix',
+              'extra' => {
+                'section_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                },
+                'section_level' => 1,
+                'section_number' => 'B',
+                'toplevel_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                }
+              }
             }
           ],
           'section_level' => 0,
@@ -1725,6 +1785,10 @@ 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extr
 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2]{'extra'}{'section_directions'}{'up'}
 = $result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0];
 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2]{'extra'}{'toplevel_directions'}{'prev'}
 = 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[1];
 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2]{'extra'}{'toplevel_directions'}{'up'}
 = $result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'section_directions'}{'prev'}
 = 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2];
+$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'section_directions'}{'up'}
 = $result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'toplevel_directions'}{'prev'}
 = 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2];
+$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'toplevel_directions'}{'up'}
 = $result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0];
 
$result_sectioning{'documentation_examples'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
 = $result_sectioning{'documentation_examples'};
 
 $result_nodes{'documentation_examples'} = [
diff --git 
a/tp/t/results/init_files_tests/documentation_examples/res_html/index.html 
b/tp/t/results/init_files_tests/documentation_examples/res_html/index.html
index dab93923ab..a52ce36068 100644
--- a/tp/t/results/init_files_tests/documentation_examples/res_html/index.html
+++ b/tp/t/results/init_files_tests/documentation_examples/res_html/index.html
@@ -46,6 +46,7 @@ Next: <a href="prepended_to_filenames-chapter.html" 
accesskey="n" rel="next">Cha
   <li><a id="toc-Chapter" href="prepended_to_filenames-chapter.html">1 
Chapter</a></li>
   <li><a id="toc-New-node" href="prepended_to_filenames-my-node.html">2 New 
node</a></li>
   <li><a id="toc-Index" href="prepended_to_filenames-Index.html" 
rel="index">Appendix A Index</a></li>
+  <li><a id="toc-Second-appendix" 
href="prepended_to_filenames-Index.html#Second-appendix">Appendix B Second 
appendix</a></li>
 </ul>
 </div>
 </div>
diff --git 
a/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-Index.html
 
b/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-Index.html
index aa4afb9f7c..629882c703 100644
--- 
a/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-Index.html
+++ 
b/tp/t/results/init_files_tests/documentation_examples/res_html/prepended_to_filenames-Index.html
@@ -60,6 +60,10 @@ Poprzedni: <a href="prepended_to_filenames-my-node.html" 
accesskey="p" rel="prev
 </div>
 
 </div>
+<div class="appendix-level-extent" id="Second-appendix">
+<h2 class="appendix"><span>Appendix B Second appendix<a class="copiable-link" 
href="#Second-appendix"> &para;</a></span></h2>
+
+</div>
 
 
 
diff --git a/tp/t/results/init_files_tests/documentation_examples_texi2html.pl 
b/tp/t/results/init_files_tests/documentation_examples_texi2html.pl
index 42744c1717..e5c19e2023 100644
--- a/tp/t/results/init_files_tests/documentation_examples_texi2html.pl
+++ b/tp/t/results/init_files_tests/documentation_examples_texi2html.pl
@@ -1509,6 +1509,82 @@ $result_trees{'documentation_examples_texi2html'} = {
       'source_info' => {
         'line_nr' => 59
       }
+    },
+    {
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'Second appendix'
+                }
+              ],
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'line_arg'
+            }
+          ],
+          'type' => 'arguments_line'
+        }
+      ],
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'Second-appendix'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 63
+      }
+    },
+    {
+      'cmdname' => 'appendix',
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'contents' => [
+                {
+                  'text' => 'Second appendix'
+                }
+              ],
+              'info' => {
+                'spaces_after_argument' => {
+                  'text' => '
+'
+                }
+              },
+              'type' => 'line_arg'
+            }
+          ],
+          'type' => 'arguments_line'
+        },
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'section_number' => 'B'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 64
+      }
     }
   ],
   'type' => 'document_root'
@@ -1579,6 +1655,9 @@ $result_texis{'documentation_examples_texi2html'} = '
 
 @printindex cp
 
+@node Second appendix
+@appendix Second appendix
+
 ';
 
 
@@ -1626,6 +1705,9 @@ Appendix A Index
 ****************
 
 
+Appendix B Second appendix
+**************************
+
 ';
 
 $result_sectioning{'documentation_examples_texi2html'} = {
@@ -1703,6 +1785,27 @@ $result_sectioning{'documentation_examples_texi2html'} = 
{
                   'up' => {}
                 }
               }
+            },
+            {
+              'cmdname' => 'appendix',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'Second-appendix'
+                  }
+                },
+                'section_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                },
+                'section_level' => 1,
+                'section_number' => 'B',
+                'toplevel_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                }
+              }
             }
           ],
           'section_level' => 0,
@@ -1725,6 +1828,10 @@ 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'
 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2]{'extra'}{'section_directions'}{'up'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0];
 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2]{'extra'}{'toplevel_directions'}{'prev'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[1];
 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2]{'extra'}{'toplevel_directions'}{'up'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'section_directions'}{'prev'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2];
+$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'section_directions'}{'up'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'toplevel_directions'}{'prev'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[2];
+$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[3]{'extra'}{'toplevel_directions'}{'up'}
 = 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0];
 
$result_sectioning{'documentation_examples_texi2html'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
 = $result_sectioning{'documentation_examples_texi2html'};
 
 $result_nodes{'documentation_examples_texi2html'} = [
@@ -1767,6 +1874,22 @@ $result_nodes{'documentation_examples_texi2html'} = [
                         },
                         'isindex' => 1,
                         'node_directions' => {
+                          'next' => {
+                            'cmdname' => 'node',
+                            'extra' => {
+                              'associated_section' => {
+                                'cmdname' => 'appendix',
+                                'extra' => {
+                                  'section_number' => 'B'
+                                }
+                              },
+                              'node_directions' => {
+                                'prev' => {},
+                                'up' => {}
+                              },
+                              'normalized' => 'Second-appendix'
+                            }
+                          },
                           'prev' => {},
                           'up' => {}
                         },
@@ -1791,8 +1914,11 @@ $result_nodes{'documentation_examples_texi2html'} = [
   },
   {},
   {},
+  {},
   {}
 ];
+$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
 = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'};
+$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'up'}
 = $result_nodes{'documentation_examples_texi2html'}[0];
 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
 = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'};
 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'up'}
 = $result_nodes{'documentation_examples_texi2html'}[0];
 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
 = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'};
@@ -1802,6 +1928,7 @@ 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}
 $result_nodes{'documentation_examples_texi2html'}[1] = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'};
 $result_nodes{'documentation_examples_texi2html'}[2] = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'};
 $result_nodes{'documentation_examples_texi2html'}[3] = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'};
+$result_nodes{'documentation_examples_texi2html'}[4] = 
$result_nodes{'documentation_examples_texi2html'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'next'};
 
 $result_menus{'documentation_examples_texi2html'} = [
   {
@@ -1823,6 +1950,11 @@ $result_menus{'documentation_examples_texi2html'} = [
     'extra' => {
       'normalized' => 'Index'
     }
+  },
+  {
+    'extra' => {
+      'normalized' => 'Second-appendix'
+    }
   }
 ];
 
diff --git 
a/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
 
b/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
index caaa08eca8..888c3f4257 100644
--- 
a/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
+++ 
b/tp/t/results/init_files_tests/documentation_examples_texi2html/res_html/documentation_examples_texi2html.html
@@ -99,6 +99,7 @@ for (let component in MathJax_conf) {
   <li><a id="toc-Chapter" href="#prepended_to_labels-chapter">1 
Chapter</a></li>
   <li><a id="toc-New-node" href="#prepended_to_labels-my-node">2 New 
node</a></li>
   <li><a id="toc-Index" href="#prepended_to_labels-Index" rel="index">Appendix 
A Index</a></li>
+  <li><a id="toc-Second-appendix" 
href="#prepended_to_labels-Second-appendix">Appendix B Second appendix</a></li>
 </ul>
 </div>
 </div>
@@ -125,6 +126,8 @@ Appendices
 
 </pre></th></tr><tr><td class="menu-entry-destination"><a 
href="#prepended_to_labels-Index" rel="index">Appendix A Index</a></td><td 
class="menu-entry-description">
 </td></tr>
+<tr><td class="menu-entry-destination"><a 
href="#prepended_to_labels-Second-appendix">Appendix B Second 
appendix</a></td><td class="menu-entry-description">
+</td></tr>
 </table>
 <hr style="height: 6px;">
 <div class="chapter-level-extent" id="prepended_to_labels-chapter">
@@ -142,6 +145,7 @@ Appendices
 <td class="nav-button">[<a href="#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>]</td>
 <td class="nav-button">[<a href="#prepended_to_labels-Index" title="Index" 
rel="index">Index</a>]</td>
 <td class="nav-button">[<a href="#SEC_About" title="About (help)" rel="help"> 
? </a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Index">Appendix</a>]</td>
 </tr></table>
 <h1 class="chapter" id="Chapter"><span>1 Chapter<a class="copiable-link" 
href="#Chapter"> &para;</a></span></h1>
 
@@ -191,6 +195,7 @@ Appendices
   <li><a id="toc-Chapter" href="#prepended_to_labels-chapter">1 
Chapter</a></li>
   <li><a id="toc-New-node" href="#prepended_to_labels-my-node">2 New 
node</a></li>
   <li><a id="toc-Index" href="#prepended_to_labels-Index" rel="index">Appendix 
A Index</a></li>
+  <li><a id="toc-Second-appendix" 
href="#prepended_to_labels-Second-appendix">Appendix B Second appendix</a></li>
 </ul>
 </div>
 </div>
@@ -212,6 +217,7 @@ Appendices
 <td class="nav-button">[<a href="#SEC_Contents" title="Table des 
mati&egrave;res" rel="contents">Contenu</a>]</td>
 <td class="nav-button">[<a href="#prepended_to_labels-Index" title="Index" 
rel="index">Index</a>]</td>
 <td class="nav-button">[<a href="#SEC_About" title="A propos (page 
d&rsquo;aide)" rel="help"> ? </a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Index">Appendix</a>]</td>
 </tr></table>
 <h1 class="chapter" id="New-node"><span>2 New node<a class="copiable-link" 
href="#New-node"> &para;</a></span></h1>
 
@@ -227,8 +233,8 @@ Appendices
 <tr><td class="nav-button">[<a href="#prepended_to_labels-my-node" 
title="Początek tego rozdziału lub rozdział poprzedni"> &lt;&lt; </a>]</td>
 <td class="nav-button">[<a href="#prepended_to_labels-my-node" title="Sekcja 
poprzednia w kolejności czytania" rel="prev"> &lt; </a>]</td>
 <td class="nav-button">[<a href="#prepended_to_labels-Top" title="Sekcja w 
górę" rel="up"> W górę </a>]</td>
-<td class="nav-button">[Forward]</td>
-<td class="nav-button">[ &gt;&gt; ]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Second-appendix" 
title="Sekcja następna w kolejności czytania" rel="next">Forward</a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Second-appendix" 
title="Następny rozdział"> &gt;&gt; </a>]</td>
 <td class="nav-button"> &nbsp; </td>
 <td class="nav-button"> &nbsp; </td>
 <td class="nav-button"> &nbsp; </td>
@@ -237,6 +243,7 @@ Appendices
 <td class="nav-button">[<a href="#SEC_Contents" title="Spis treści" 
rel="contents">Treść</a>]</td>
 <td class="nav-button">[<a href="#prepended_to_labels-Index" title="Indeks" 
rel="index">Indeks</a>]</td>
 <td class="nav-button">[<a href="#SEC_About" title="O dokumencie (pomoc)" 
rel="help"> ? </a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Index">Appendix</a>]</td>
 </tr></table>
 <h1 class="appendix" id="Index"><span>Appendix A Index<a class="copiable-link" 
href="#Index"> &para;</a></span></h1>
 
@@ -259,6 +266,27 @@ Appendices
 </td></tr></table>
 </div>
 
+<hr>
+</div>
+<div class="appendix-level-extent" id="prepended_to_labels-Second-appendix">
+<table class="nav-panel">
+<tr><td class="nav-button">[<a href="#prepended_to_labels-Index" 
title="Początek tego rozdziału lub rozdział poprzedni"> &lt;&lt; </a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Index" title="Sekcja 
poprzednia w kolejności czytania" rel="prev"> &lt; </a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Top" title="Sekcja w 
górę" rel="up"> W górę </a>]</td>
+<td class="nav-button">[Forward]</td>
+<td class="nav-button">[ &gt;&gt; ]</td>
+<td class="nav-button"> &nbsp; </td>
+<td class="nav-button"> &nbsp; </td>
+<td class="nav-button"> &nbsp; </td>
+<td class="nav-button"> &nbsp; </td>
+<td class="nav-button">[<a href="#prepended_to_labels-Top" title="Okładka 
(wierzch) dokumentu" rel="start">Wierzchni</a>]</td>
+<td class="nav-button">[<a href="#SEC_Contents" title="Spis treści" 
rel="contents">Treść</a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Index" title="Indeks" 
rel="index">Indeks</a>]</td>
+<td class="nav-button">[<a href="#SEC_About" title="O dokumencie (pomoc)" 
rel="help"> ? </a>]</td>
+<td class="nav-button">[<a href="#prepended_to_labels-Index">Appendix</a>]</td>
+</tr></table>
+<h1 class="appendix" id="Second-appendix"><span>Appendix B Second appendix<a 
class="copiable-link" href="#Second-appendix"> &para;</a></span></h1>
+
 <hr style="height: 6px;">
 </div>
 </div>
@@ -352,6 +380,12 @@ Appendices
     <td class="description-direction-about">O dokumencie (pomoc)</td>
     <td class="example-direction-about"> &nbsp; </td>
   </tr>
+  <tr>
+    <td class="button-direction-about"> [Appendix] </td>
+    <td class="name-direction-about"></td>
+    <td class="description-direction-about"></td>
+    <td class="example-direction-about"></td>
+  </tr>
 </table>
 
 <p>



reply via email to

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