texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Wed, 2 Oct 2024 02:23:56 -0400 (EDT)

branch: master
commit fa73508eed03633864904df43caceac1bad541b8
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Jul 30 15:05:57 2024 +0200

    * tp/Makefile.am (test_files), tp/Makefile.tres,
    tp/t/init_files_tests.t (ref_for_special_unit_direction)
    (button_replacement_for_special_unit_direction),
    tp/t/init/button_replacement_for_special_unit_direction.pm: add a
    reference without init file use for special element direction test.
    Add an init file to replace the button directions with the customized
    special unit direction.
---
 ChangeLog                                          |  10 +
 tp/Makefile.am                                     |   1 +
 tp/Makefile.tres                                   |   4 +
 ...utton_replacement_for_special_unit_direction.pm |  30 +++
 tp/t/init_files_tests.t                            |   7 +
 ...utton_replacement_for_special_unit_direction.pl | 290 +++++++++++++++++++++
 .../res_html/chapter.html                          |  40 +++
 .../res_html/index.html                            |  57 ++++
 .../ref_for_special_unit_direction.pl              | 290 +++++++++++++++++++++
 .../res_html/chapter.html                          |  41 +++
 .../res_html/index.html                            |  58 +++++
 11 files changed, 828 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index bbcb0bb163..c24fd331d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,16 @@
        (converter_initialize): readd converter_initialize that was mistakenly
        removed.
 
+2024-07-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Makefile.am (test_files), tp/Makefile.tres,
+       tp/t/init_files_tests.t (ref_for_special_unit_direction)
+       (button_replacement_for_special_unit_direction),
+       tp/t/init/button_replacement_for_special_unit_direction.pm: add a
+       reference without init file use for special element direction test.
+       Add an init file to replace the button directions with the customized
+       special unit direction.
+
 2024-07-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c (direction_string)
diff --git a/tp/Makefile.am b/tp/Makefile.am
index 5600c998e7..c234d78326 100644
--- a/tp/Makefile.am
+++ b/tp/Makefile.am
@@ -186,6 +186,7 @@ test_files = \
  t/include/section_file_no_node.texi \
  t/include/section_file_no_node_include.texi \
  t/init/access_document_name_in_handler.pm \
+ t/init/button_replacement_for_special_unit_direction.pm \
  t/init/command_translation_modified.init \
  t/init/css_in_node_redirection_page.pm \
  t/init/cvs.init \
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index be400a7969..95ceef5c6b 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -1102,6 +1102,8 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   t/results/info_tests/xref_test.pl \
   t/results/init_files_tests/access_document_name_in_handler.pl \
   t/results/init_files_tests/access_document_name_in_handler/res_html \
+  t/results/init_files_tests/button_replacement_for_special_unit_direction.pl \
+  
t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html
 \
   t/results/init_files_tests/customize_special_element.pl \
   t/results/init_files_tests/customize_special_element/res_html \
   t/results/init_files_tests/customize_translations.pl \
@@ -1121,6 +1123,8 @@ test_files_generated_list = 
$(test_tap_files_generated_list) \
   t/results/init_files_tests/redefined_buttons_functions.pl \
   t/results/init_files_tests/redefined_buttons_functions/res_html \
   t/results/init_files_tests/redefined_need.pl \
+  t/results/init_files_tests/ref_for_special_unit_direction.pl \
+  t/results/init_files_tests/ref_for_special_unit_direction/res_html \
   t/results/init_files_tests/sc_formatting_with_css.pl \
   t/results/init_files_tests/sc_formatting_with_css/res_html \
   t/results/init_files_tests/special_unit_direction_customization.pl \
diff --git a/tp/t/init/button_replacement_for_special_unit_direction.pm 
b/tp/t/init/button_replacement_for_special_unit_direction.pm
new file mode 100644
index 0000000000..8f05fa1de7
--- /dev/null
+++ b/tp/t/init/button_replacement_for_special_unit_direction.pm
@@ -0,0 +1,30 @@
+
+use strict;
+
+# avoid doing twice if there are more than one manual processed
+my $button_added;
+sub _texi2any_tests_special_unit_replace_button
+{
+  my ($self, $document, $stage) = @_;
+
+  if (!$button_added) {
+    foreach my $buttons_spec ('SECTION_BUTTONS', 'CHAPTER_BUTTONS',
+                             'TOP_BUTTONS',
+                       'CHAPTER_FOOTER_BUTTONS', 'SECTION_FOOTER_BUTTONS',
+                       'NODE_FOOTER_BUTTONS', 'MISC_BUTTONS',
+                       'TOP_FOOTER_BUTTONS', 'LINKS_BUTTONS') {
+      my $buttons_list = $self->get_conf($buttons_spec);
+      for (my $i = 0; $i < scalar (@$buttons_list); $i++) {
+        if (ref($buttons_list->[$i]) eq ''
+            and $buttons_list->[$i] eq 'Contents') {
+          $buttons_list->[$i] = 'Table';
+        }
+      }
+      $self->set_conf($buttons_spec, $buttons_list);
+    }
+    $button_added = 1;
+  }
+}
+
+texinfo_register_handler('setup', 
\&_texi2any_tests_special_unit_replace_button);
+
diff --git a/tp/t/init_files_tests.t b/tp/t/init_files_tests.t
index c0ee55011a..b87788bac6 100644
--- a/tp/t/init_files_tests.t
+++ b/tp/t/init_files_tests.t
@@ -265,10 +265,17 @@ In quotation
 ],
 # a series of tests with special unit direction customization showing the
 # effect of adding customization information needed by the change.
+['ref_for_special_unit_direction',
+$special_unit_direction_customization_text,
+],
 ['special_unit_direction_customization',
 $special_unit_direction_customization_text,
 {'init_files' => ['special_unit_direction_customization.pm']},
 ],
+['button_replacement_for_special_unit_direction',
+$special_unit_direction_customization_text,
+{'init_files' => ['button_replacement_for_special_unit_direction.pm']},
+],
 );
 
 foreach my $test (@test_cases) {
diff --git 
a/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction.pl
 
b/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction.pl
new file mode 100644
index 0000000000..babfd8a364
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction.pl
@@ -0,0 +1,290 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'button_replacement_for_special_unit_direction'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '
+',
+                  'type' => 'rawline_arg'
+                }
+              ],
+              'cmdname' => 'contents',
+              'extra' => {},
+              'source_info' => {
+                'line_nr' => 1
+              }
+            },
+            {
+              'text' => '
+',
+              'type' => 'empty_line'
+            }
+          ],
+          'type' => 'preamble_before_content'
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 3
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 4
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'chapter'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 6
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chap'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'extra' => {
+        'section_number' => '1'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 7
+      }
+    }
+  ],
+  'type' => 'document_root'
+};
+
+$result_texis{'button_replacement_for_special_unit_direction'} = '@contents
+
+@node Top
+@top top
+
+@node chapter
+@chapter chap
+';
+
+
+$result_texts{'button_replacement_for_special_unit_direction'} = '
+top
+***
+
+1 chap
+******
+';
+
+$result_sectioning{'button_replacement_for_special_unit_direction'} = {
+  'extra' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            }
+          },
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter'
+                  }
+                },
+                'section_directions' => {
+                  'up' => {}
+                },
+                'section_level' => 1,
+                'section_number' => '1',
+                'toplevel_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                }
+              }
+            }
+          ],
+          'section_level' => 0,
+          'sectioning_root' => {},
+          'toplevel_directions' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
 = 
$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
 = 
$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
 = 
$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'button_replacement_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
 = $result_sectioning{'button_replacement_for_special_unit_direction'};
+
+$result_nodes{'button_replacement_for_special_unit_direction'} = [
+  {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'top',
+        'extra' => {}
+      },
+      'node_directions' => {
+        'next' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'associated_section' => {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'section_number' => '1'
+              }
+            },
+            'node_directions' => {
+              'prev' => {},
+              'up' => {}
+            },
+            'normalized' => 'chapter'
+          }
+        }
+      },
+      'normalized' => 'Top'
+    }
+  },
+  {}
+];
+$result_nodes{'button_replacement_for_special_unit_direction'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
 = $result_nodes{'button_replacement_for_special_unit_direction'}[0];
+$result_nodes{'button_replacement_for_special_unit_direction'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'up'}
 = $result_nodes{'button_replacement_for_special_unit_direction'}[0];
+$result_nodes{'button_replacement_for_special_unit_direction'}[1] = 
$result_nodes{'button_replacement_for_special_unit_direction'}[0]{'extra'}{'node_directions'}{'next'};
+
+$result_menus{'button_replacement_for_special_unit_direction'} = [
+  {
+    'extra' => {
+      'normalized' => 'Top'
+    }
+  },
+  {
+    'extra' => {
+      'normalized' => 'chapter'
+    }
+  }
+];
+
+$result_errors{'button_replacement_for_special_unit_direction'} = [];
+
+
+$result_floats{'button_replacement_for_special_unit_direction'} = {};
+
+
+1;
diff --git 
a/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html/chapter.html
 
b/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html/chapter.html
new file mode 100644
index 0000000000..dbd842248d
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html/chapter.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>chapter (top)</title>
+
+<meta name="description" content="chapter (top)">
+<meta name="keywords" content="chapter (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html" rel="up" title="Top">
+<link href="index.html" rel="prev" title="Top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a>, Up: <a 
href="index.html" accesskey="u" rel="up">top</a> &nbsp; </p>
+</div>
+<hr>
+<h2 class="chapter" id="chap"><span>1 chap<a class="copiable-link" 
href="#chap"> &para;</a></span></h2>
+</div>
+
+
+
+</body>
+</html>
diff --git 
a/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html/index.html
 
b/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html/index.html
new file mode 100644
index 0000000000..bb84e0b7a0
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/button_replacement_for_special_unit_direction/res_html/index.html
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Top (top)</title>
+
+<meta name="description" content="Top (top)">
+<meta name="keywords" content="Top (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="Top">
+<link href="chapter.html" rel="next" title="chapter">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html" accesskey="n" rel="next">chap</a> &nbsp; </p>
+</div>
+<hr>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
+
+<div class="region-contents" id="SEC_Contents">
+<h2 class="contents-heading">Table of Contents</h2>
+
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+  <li><a id="toc-chap" href="chapter.html">1 chap</a></li>
+</ul>
+</div>
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html" accesskey="n" rel="next">chap</a> &nbsp; </p>
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/results/init_files_tests/ref_for_special_unit_direction.pl 
b/tp/t/results/init_files_tests/ref_for_special_unit_direction.pl
new file mode 100644
index 0000000000..4df6d73b66
--- /dev/null
+++ b/tp/t/results/init_files_tests/ref_for_special_unit_direction.pl
@@ -0,0 +1,290 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text %result_indices_sort_strings);
+
+use utf8;
+
+$result_trees{'ref_for_special_unit_direction'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'text' => '
+',
+                  'type' => 'rawline_arg'
+                }
+              ],
+              'cmdname' => 'contents',
+              'extra' => {},
+              'source_info' => {
+                'line_nr' => 1
+              }
+            },
+            {
+              'text' => '
+',
+              'type' => 'empty_line'
+            }
+          ],
+          'type' => 'preamble_before_content'
+        }
+      ],
+      'type' => 'before_node_section'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'Top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'Top'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 3
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'top'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'top',
+      'contents' => [
+        {
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {},
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 4
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chapter'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'extra' => {
+        'is_target' => 1,
+        'normalized' => 'chapter'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 6
+      }
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'text' => 'chap'
+            }
+          ],
+          'info' => {
+            'spaces_after_argument' => {
+              'text' => '
+'
+            }
+          },
+          'type' => 'line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'extra' => {
+        'section_number' => '1'
+      },
+      'info' => {
+        'spaces_before_argument' => {
+          'text' => ' '
+        }
+      },
+      'source_info' => {
+        'line_nr' => 7
+      }
+    }
+  ],
+  'type' => 'document_root'
+};
+
+$result_texis{'ref_for_special_unit_direction'} = '@contents
+
+@node Top
+@top top
+
+@node chapter
+@chapter chap
+';
+
+
+$result_texts{'ref_for_special_unit_direction'} = '
+top
+***
+
+1 chap
+******
+';
+
+$result_sectioning{'ref_for_special_unit_direction'} = {
+  'extra' => {
+    'section_childs' => [
+      {
+        'cmdname' => 'top',
+        'extra' => {
+          'associated_node' => {
+            'cmdname' => 'node',
+            'extra' => {
+              'normalized' => 'Top'
+            }
+          },
+          'section_childs' => [
+            {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'associated_node' => {
+                  'cmdname' => 'node',
+                  'extra' => {
+                    'normalized' => 'chapter'
+                  }
+                },
+                'section_directions' => {
+                  'up' => {}
+                },
+                'section_level' => 1,
+                'section_number' => '1',
+                'toplevel_directions' => {
+                  'prev' => {},
+                  'up' => {}
+                }
+              }
+            }
+          ],
+          'section_level' => 0,
+          'sectioning_root' => {},
+          'toplevel_directions' => {}
+        }
+      }
+    ],
+    'section_level' => -1
+  }
+};
+$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'section_directions'}{'up'}
 = 
$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'prev'}
 = 
$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'section_childs'}[0]{'extra'}{'toplevel_directions'}{'up'}
 = 
$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0];
+$result_sectioning{'ref_for_special_unit_direction'}{'extra'}{'section_childs'}[0]{'extra'}{'sectioning_root'}
 = $result_sectioning{'ref_for_special_unit_direction'};
+
+$result_nodes{'ref_for_special_unit_direction'} = [
+  {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'top',
+        'extra' => {}
+      },
+      'node_directions' => {
+        'next' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'associated_section' => {
+              'cmdname' => 'chapter',
+              'extra' => {
+                'section_number' => '1'
+              }
+            },
+            'node_directions' => {
+              'prev' => {},
+              'up' => {}
+            },
+            'normalized' => 'chapter'
+          }
+        }
+      },
+      'normalized' => 'Top'
+    }
+  },
+  {}
+];
+$result_nodes{'ref_for_special_unit_direction'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'prev'}
 = $result_nodes{'ref_for_special_unit_direction'}[0];
+$result_nodes{'ref_for_special_unit_direction'}[0]{'extra'}{'node_directions'}{'next'}{'extra'}{'node_directions'}{'up'}
 = $result_nodes{'ref_for_special_unit_direction'}[0];
+$result_nodes{'ref_for_special_unit_direction'}[1] = 
$result_nodes{'ref_for_special_unit_direction'}[0]{'extra'}{'node_directions'}{'next'};
+
+$result_menus{'ref_for_special_unit_direction'} = [
+  {
+    'extra' => {
+      'normalized' => 'Top'
+    }
+  },
+  {
+    'extra' => {
+      'normalized' => 'chapter'
+    }
+  }
+];
+
+$result_errors{'ref_for_special_unit_direction'} = [];
+
+
+$result_floats{'ref_for_special_unit_direction'} = {};
+
+
+1;
diff --git 
a/tp/t/results/init_files_tests/ref_for_special_unit_direction/res_html/chapter.html
 
b/tp/t/results/init_files_tests/ref_for_special_unit_direction/res_html/chapter.html
new file mode 100644
index 0000000000..a87fc05eb1
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/ref_for_special_unit_direction/res_html/chapter.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>chapter (top)</title>
+
+<meta name="description" content="chapter (top)">
+<meta name="keywords" content="chapter (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="index.html" rel="start" title="Top">
+<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="index.html" rel="up" title="Top">
+<link href="index.html" rel="prev" title="Top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="chapter-level-extent" id="chapter">
+<div class="nav-panel">
+<p>
+Previous: <a href="index.html" accesskey="p" rel="prev">top</a>, Up: <a 
href="index.html" accesskey="u" rel="up">top</a> &nbsp; [<a 
href="index.html#SEC_Contents" title="Table of contents" 
rel="contents">Contents</a>]</p>
+</div>
+<hr>
+<h2 class="chapter" id="chap"><span>1 chap<a class="copiable-link" 
href="#chap"> &para;</a></span></h2>
+</div>
+
+
+
+</body>
+</html>
diff --git 
a/tp/t/results/init_files_tests/ref_for_special_unit_direction/res_html/index.html
 
b/tp/t/results/init_files_tests/ref_for_special_unit_direction/res_html/index.html
new file mode 100644
index 0000000000..d669a82e2c
--- /dev/null
+++ 
b/tp/t/results/init_files_tests/ref_for_special_unit_direction/res_html/index.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<html>
+<!-- Created by texinfo, http://www.gnu.org/software/texinfo/ -->
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<title>Top (top)</title>
+
+<meta name="description" content="Top (top)">
+<meta name="keywords" content="Top (top)">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="viewport" content="width=device-width,initial-scale=1">
+
+<link href="#Top" rel="start" title="Top">
+<link href="#SEC_Contents" rel="contents" title="Table of Contents">
+<link href="chapter.html" rel="next" title="chapter">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+span:hover a.copiable-link {visibility: visible}
+ul.toc-numbered-mark {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+
+<div class="top-level-extent" id="Top">
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html" accesskey="n" rel="next">chap</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+<hr>
+<h1 class="top" id="top"><span>top<a class="copiable-link" href="#top"> 
&para;</a></span></h1>
+
+<div class="region-contents" id="SEC_Contents">
+<h2 class="contents-heading">Table of Contents</h2>
+
+<div class="contents">
+
+<ul class="toc-numbered-mark">
+  <li><a id="toc-chap" href="chapter.html">1 chap</a></li>
+</ul>
+</div>
+</div>
+</div>
+<hr>
+<div class="nav-panel">
+<p>
+Next: <a href="chapter.html" accesskey="n" rel="next">chap</a> &nbsp; [<a 
href="#SEC_Contents" title="Table of contents" rel="contents">Contents</a>]</p>
+</div>
+
+
+
+</body>
+</html>



reply via email to

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