[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/t/test_utils.pl (test): update tree transfor
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/t/test_utils.pl (test): update tree transformation names for relate_index_entries_to_items. |
Date: |
Fri, 30 Dec 2022 06:37:17 -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 46849b42c7 * tp/t/test_utils.pl (test): update tree transformation
names for relate_index_entries_to_items.
46849b42c7 is described below
commit 46849b42c7b7fb0e6f5afb90ba13686f99c74480
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 30 12:37:05 2022 +0100
* tp/t/test_utils.pl (test): update tree transformation names
for relate_index_entries_to_items.
* tp/t/transformations.t, tp/Makefile.tres: add tests using
tests/indices/index_entries_relate_to_item.texi without and
with the relate_index_entries_to_items transformation.
---
ChangeLog | 9 +
tp/Makefile.tres | 4 +
...dex_entries_relate_to_item_no_transformation.pl | 689 +++++++++++++++++++++
.../res_html/index.html | 86 +++
.../index_entries_relate_to_item_transformation.pl | 689 +++++++++++++++++++++
.../res_html/index.html | 87 +++
tp/t/test_utils.pl | 8 +-
tp/t/transformations.t | 19 +-
tp/tests/indices/list-of-tests | 1 +
9 files changed, 1584 insertions(+), 8 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6c0f8242d2..1c56aef907 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2022-12-29 Patrice Dumas <pertusus@free.fr>
+
+ * tp/t/test_utils.pl (test): update tree transformation names
+ for relate_index_entries_to_items.
+
+ * tp/t/transformations.t, tp/Makefile.tres: add tests using
+ tests/indices/index_entries_relate_to_item.texi without and
+ with the relate_index_entries_to_items transformation.
+
2022-12-29 Patrice Dumas <pertusus@free.fr>
* tp/tests/indices/index_entries_relate_to_item.texi: add a
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index c33940fe77..a54a7986c3 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -1883,6 +1883,10 @@ test_files_generated_list =
$(test_tap_files_generated_list) \
t/results/sectioning/unnumbered_no_argument.pl \
t/results/sectioning/unnumbered_top_without_node_nodes.pl \
t/results/sectioning/unnumbered_top_without_node_sections.pl \
+ t/results/transformations/index_entries_relate_to_item_no_transformation.pl \
+
t/results/transformations/index_entries_relate_to_item_no_transformation/res_html/index.html
\
+ t/results/transformations/index_entries_relate_to_item_transformation.pl \
+
t/results/transformations/index_entries_relate_to_item_transformation/res_html/index.html
\
t/results/transformations/master_menu_fr.pl \
t/results/transformations/master_menu_fr/res_html/chap.html \
t/results/transformations/master_menu_fr/res_html/index.html \
diff --git
a/tp/t/results/transformations/index_entries_relate_to_item_no_transformation.pl
b/tp/t/results/transformations/index_entries_relate_to_item_no_transformation.pl
new file mode 100644
index 0000000000..92ff99b2ca
--- /dev/null
+++
b/tp/t/results/transformations/index_entries_relate_to_item_no_transformation.pl
@@ -0,0 +1,689 @@
+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{'index_entries_relate_to_item_no_transformation'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [],
+ 'type' => 'preamble_before_content'
+ }
+ ],
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'isindex' => 1,
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top'
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'cmdname' => 'code',
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 6,
+ 'macro' => ''
+ },
+ 'type' => 'command_as_argument'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'table',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'before_item'
+ },
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'A'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'cindex',
+ 'extra' => {
+ 'index_entry' => {
+ 'content_normalized' => [],
+ 'entry_content' => [],
+ 'entry_element' => {},
+ 'entry_node' => {},
+ 'entry_number' => 1,
+ 'in_code' => 0,
+ 'index_at_command' => 'cindex',
+ 'index_ignore_chars' => {},
+ 'index_name' => 'cp',
+ 'index_type_command' => 'cindex'
+ }
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 8,
+ 'macro' => ''
+ },
+ 'type' => 'index_entry_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'B'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'cindex',
+ 'extra' => {
+ 'index_entry' => {
+ 'content_normalized' => [],
+ 'entry_content' => [],
+ 'entry_element' => {},
+ 'entry_node' => {},
+ 'entry_number' => 2,
+ 'in_code' => 0,
+ 'index_at_command' => 'cindex',
+ 'index_ignore_chars' => {},
+ 'index_name' => 'cp',
+ 'index_type_command' => 'cindex'
+ }
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 9,
+ 'macro' => ''
+ },
+ 'type' => 'index_entry_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'C'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'cindex',
+ 'extra' => {
+ 'index_entry' => {
+ 'content_normalized' => [],
+ 'entry_content' => [],
+ 'entry_element' => {},
+ 'entry_node' => {},
+ 'entry_number' => 3,
+ 'in_code' => 0,
+ 'index_at_command' => 'cindex',
+ 'index_ignore_chars' => {},
+ 'index_name' => 'cp',
+ 'index_type_command' => 'cindex'
+ }
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ },
+ 'type' => 'index_entry_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'A'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'item',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 11,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'B'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'itemx',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'C'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'itemx',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 13,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'type' => 'table_term'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'body
+'
+ }
+ ],
+ 'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'table_definition'
+ }
+ ],
+ 'type' => 'table_entry'
+ },
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'D'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'item',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'type' => 'table_term'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'body2
+'
+ }
+ ],
+ 'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'table_definition'
+ }
+ ],
+ 'type' => 'table_entry'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'table'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'text_arg' => 'table'
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 21,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'extra' => {
+ 'command_as_argument' => {}
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 6,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'cp'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'printindex',
+ 'extra' => {
+ 'misc_args' => [
+ 'cp'
+ ]
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 23,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 4,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_content'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_node'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'content_normalized'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'entry_content'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'entry_element'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'entry_node'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'content_normalized'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'entry_content'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'entry_element'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'entry_node'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'extra'}{'command_as_argument'}
=
$result_trees{'index_entries_relate_to_item_no_transformation'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0];
+
+$result_texis{'index_entries_relate_to_item_no_transformation'} = '\\input
texinfo @c -*-texinfo-*-
+
+@node Top
+@top top
+
+@table @code
+
+@cindex A
+@cindex B
+@cindex C
+@item A
+@itemx B
+@itemx C
+
+body
+
+@item D
+
+body2
+
+@end table
+
+@printindex cp
+
+@bye
+';
+
+
+$result_texts{'index_entries_relate_to_item_no_transformation'} = 'top
+***
+
+
+A
+B
+C
+
+body
+
+D
+
+body2
+
+
+
+';
+
+$result_sectioning{'index_entries_relate_to_item_no_transformation'} = {
+ 'structure' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'isindex' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {}
+ }
+ },
+ 'info' => {},
+ 'structure' => {
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'index_entries_relate_to_item_no_transformation'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'index_entries_relate_to_item_no_transformation'};
+
+$result_nodes{'index_entries_relate_to_item_no_transformation'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {},
+ 'info' => {},
+ 'structure' => {}
+ },
+ 'isindex' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {}
+};
+
+$result_menus{'index_entries_relate_to_item_no_transformation'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'isindex' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {}
+};
+
+$result_errors{'index_entries_relate_to_item_no_transformation'} = [];
+
+
+$result_floats{'index_entries_relate_to_item_no_transformation'} = {};
+
+
+$result_indices_sort_strings{'index_entries_relate_to_item_no_transformation'}
= {
+ 'cp' => [
+ 'A',
+ 'B',
+ 'C'
+ ]
+};
+
+
+
+$result_converted{'info'}->{'index_entries_relate_to_item_no_transformation'}
= 'This is , produced from index_entries_relate_to_item.texi.
+
+
+File: , Node: Top, Up: (dir)
+
+top
+***
+
+‘A’
+‘B’
+‘C’
+
+ body
+
+‘D’
+
+ body2
+
+ [index ]
+* Menu:
+
+* A: Top. (line 6)
+* B: Top. (line 6)
+* C: Top. (line 6)
+
+
+
+Tag Table:
+Node: Top60
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
+1;
diff --git
a/tp/t/results/transformations/index_entries_relate_to_item_no_transformation/res_html/index.html
b/tp/t/results/transformations/index_entries_relate_to_item_no_transformation/res_html/index.html
new file mode 100644
index 0000000000..f6f0585adf
--- /dev/null
+++
b/tp/t/results/transformations/index_entries_relate_to_item_no_transformation/res_html/index.html
@@ -0,0 +1,86 @@
+<!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="#Top" rel="index" title="Top">
+<style type="text/css">
+<!--
+a.summary-letter-printindex {text-decoration: none}
+td.printindex-index-entry {vertical-align: top}
+td.printindex-index-section {vertical-align: top; padding-left: 1em}
+th.entries-header-printindex {text-align:left}
+th.sections-header-printindex {text-align:left; padding-left: 1em}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<h1 class="top" id="top">top</h1>
+
+<dl class="table">
+<dt><a class="index-entry-id" id="index-A"></a>
+<a class="index-entry-id" id="index-B"></a>
+<a class="index-entry-id" id="index-C"></a>
+<code class="code">A</code></dt>
+<dt><code class="code">B</code></dt>
+<dt><code class="code">C</code></dt>
+<dd>
+<p>body
+</p>
+</dd>
+<dt><code class="code">D</code></dt>
+<dd>
+<p>body2
+</p>
+</dd>
+</dl>
+
+<div class="printindex cp-printindex">
+<table class="cp-letters-header-printindex"><tr><th>Jump to:
</th><td><a class="summary-letter-printindex"
href="#Top_cp_letter-A"><b>A</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-B"><b>B</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-C"><b>C</b></a>
+
+</td></tr></table>
+<table class="cp-entries-printindex" border="0">
+<tr><td></td><th class="entries-header-printindex">Index Entry</th><th
class="sections-header-printindex">Section</th></tr>
+<tr><td colspan="3"><hr></td></tr>
+<tr><th id="Top_cp_letter-A">A</th></tr>
+<tr><td></td><td class="printindex-index-entry"><a
href="#index-A">A</a></td><td class="printindex-index-section"><a
href="#Top">Top</a></td></tr>
+<tr><td colspan="3"><hr></td></tr>
+<tr><th id="Top_cp_letter-B">B</th></tr>
+<tr><td></td><td class="printindex-index-entry"><a
href="#index-B">B</a></td><td class="printindex-index-section"><a
href="#Top">Top</a></td></tr>
+<tr><td colspan="3"><hr></td></tr>
+<tr><th id="Top_cp_letter-C">C</th></tr>
+<tr><td></td><td class="printindex-index-entry"><a
href="#index-C">C</a></td><td class="printindex-index-section"><a
href="#Top">Top</a></td></tr>
+<tr><td colspan="3"><hr></td></tr>
+</table>
+<table class="cp-letters-footer-printindex"><tr><th>Jump to:
</th><td><a class="summary-letter-printindex"
href="#Top_cp_letter-A"><b>A</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-B"><b>B</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-C"><b>C</b></a>
+
+</td></tr></table>
+</div>
+
+</div>
+
+
+
+</body>
+</html>
diff --git
a/tp/t/results/transformations/index_entries_relate_to_item_transformation.pl
b/tp/t/results/transformations/index_entries_relate_to_item_transformation.pl
new file mode 100644
index 0000000000..94116b4ed3
--- /dev/null
+++
b/tp/t/results/transformations/index_entries_relate_to_item_transformation.pl
@@ -0,0 +1,689 @@
+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{'index_entries_relate_to_item_transformation'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '\\input texinfo @c -*-texinfo-*-
+',
+ 'type' => 'text_before_beginning'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'text_before_beginning'
+ }
+ ],
+ 'type' => 'preamble_before_beginning'
+ },
+ {
+ 'contents' => [],
+ 'type' => 'preamble_before_content'
+ }
+ ],
+ 'type' => 'before_node_section'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'Top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'isindex' => 1,
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top'
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 3,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'top'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'cmdname' => 'code',
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 6,
+ 'macro' => ''
+ },
+ 'type' => 'command_as_argument'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'block_line_arg'
+ }
+ ],
+ 'cmdname' => 'table',
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'before_item'
+ },
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'A'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'cindex',
+ 'extra' => {
+ 'index_entry' => {
+ 'content_normalized' => [],
+ 'entry_content' => [],
+ 'entry_element' => {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'A'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'item',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' =>
'index_entries_relate_to_item.texi',
+ 'line_nr' => 11,
+ 'macro' => ''
+ }
+ },
+ 'entry_node' => {},
+ 'entry_number' => 1,
+ 'in_code' => 0,
+ 'index_at_command' => 'cindex',
+ 'index_ignore_chars' => {},
+ 'index_name' => 'cp',
+ 'index_type_command' => 'cindex'
+ }
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 8,
+ 'macro' => ''
+ },
+ 'type' => 'index_entry_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'B'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'cindex',
+ 'extra' => {
+ 'index_entry' => {
+ 'content_normalized' => [],
+ 'entry_content' => [],
+ 'entry_element' => {},
+ 'entry_node' => {},
+ 'entry_number' => 2,
+ 'in_code' => 0,
+ 'index_at_command' => 'cindex',
+ 'index_ignore_chars' => {},
+ 'index_name' => 'cp',
+ 'index_type_command' => 'cindex'
+ }
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 9,
+ 'macro' => ''
+ },
+ 'type' => 'index_entry_command'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'C'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'cindex',
+ 'extra' => {
+ 'index_entry' => {
+ 'content_normalized' => [],
+ 'entry_content' => [],
+ 'entry_element' => {},
+ 'entry_node' => {},
+ 'entry_number' => 3,
+ 'in_code' => 0,
+ 'index_at_command' => 'cindex',
+ 'index_ignore_chars' => {},
+ 'index_name' => 'cp',
+ 'index_type_command' => 'cindex'
+ }
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 10,
+ 'macro' => ''
+ },
+ 'type' => 'index_entry_command'
+ },
+ {},
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'B'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'itemx',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 12,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'C'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'itemx',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 13,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'type' => 'table_term'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'body
+'
+ }
+ ],
+ 'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'table_definition'
+ }
+ ],
+ 'type' => 'table_entry'
+ },
+ {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'D'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'item',
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 17,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'type' => 'table_term'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'text' => 'body2
+'
+ }
+ ],
+ 'type' => 'paragraph'
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'table_definition'
+ }
+ ],
+ 'type' => 'table_entry'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'table'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'end',
+ 'extra' => {
+ 'text_arg' => 'table'
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 21,
+ 'macro' => ''
+ }
+ }
+ ],
+ 'extra' => {
+ 'command_as_argument' => {}
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 6,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'text' => 'cp'
+ }
+ ],
+ 'info' => {
+ 'spaces_after_argument' => '
+'
+ },
+ 'type' => 'line_arg'
+ }
+ ],
+ 'cmdname' => 'printindex',
+ 'extra' => {
+ 'misc_args' => [
+ 'cp'
+ ]
+ },
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 23,
+ 'macro' => ''
+ }
+ },
+ {
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {},
+ 'info' => {
+ 'spaces_before_argument' => ' '
+ },
+ 'source_info' => {
+ 'file_name' => 'index_entries_relate_to_item.texi',
+ 'line_nr' => 4,
+ 'macro' => ''
+ }
+ },
+ {
+ 'args' => [
+ {
+ 'text' => '
+',
+ 'type' => 'misc_arg'
+ }
+ ],
+ 'cmdname' => 'bye'
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}[0]
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1]{'args'}[0]{'contents'}[0];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'content_normalized'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_content'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_node'}
= $result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'content_normalized'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'entry_content'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'entry_element'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'entry_node'}
= $result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'content_normalized'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'entry_content'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'entry_element'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'extra'}{'index_entry'}{'entry_node'}
= $result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[1];
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[3]
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'extra'}{'index_entry'}{'entry_element'};
+$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'extra'}{'command_as_argument'}
=
$result_trees{'index_entries_relate_to_item_transformation'}{'contents'}[2]{'contents'}[1]{'args'}[0]{'contents'}[0];
+
+$result_texis{'index_entries_relate_to_item_transformation'} = '\\input
texinfo @c -*-texinfo-*-
+
+@node Top
+@top top
+
+@table @code
+
+@cindex A
+@cindex B
+@cindex C
+@item A
+@itemx B
+@itemx C
+
+body
+
+@item D
+
+body2
+
+@end table
+
+@printindex cp
+
+@bye
+';
+
+
+$result_texts{'index_entries_relate_to_item_transformation'} = 'top
+***
+
+
+A
+B
+C
+
+body
+
+D
+
+body2
+
+
+
+';
+
+$result_sectioning{'index_entries_relate_to_item_transformation'} = {
+ 'structure' => {
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'isindex' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {}
+ }
+ },
+ 'info' => {},
+ 'structure' => {
+ 'section_level' => 0,
+ 'section_up' => {}
+ }
+ }
+ ],
+ 'section_level' => -1
+ }
+};
+$result_sectioning{'index_entries_relate_to_item_transformation'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'}
= $result_sectioning{'index_entries_relate_to_item_transformation'};
+
+$result_nodes{'index_entries_relate_to_item_transformation'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {},
+ 'info' => {},
+ 'structure' => {}
+ },
+ 'isindex' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {}
+};
+
+$result_menus{'index_entries_relate_to_item_transformation'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'isindex' => 1,
+ 'normalized' => 'Top'
+ },
+ 'info' => {}
+};
+
+$result_errors{'index_entries_relate_to_item_transformation'} = [];
+
+
+$result_floats{'index_entries_relate_to_item_transformation'} = {};
+
+
+$result_indices_sort_strings{'index_entries_relate_to_item_transformation'} = {
+ 'cp' => [
+ 'A',
+ 'B',
+ 'C'
+ ]
+};
+
+
+
+$result_converted{'info'}->{'index_entries_relate_to_item_transformation'} =
'This is , produced from index_entries_relate_to_item.texi.
+
+
+File: , Node: Top, Up: (dir)
+
+top
+***
+
+‘A’
+‘B’
+‘C’
+
+ body
+
+‘D’
+
+ body2
+
+ [index ]
+* Menu:
+
+* A: Top. (line 4)
+* B: Top. (line 6)
+* C: Top. (line 6)
+
+
+
+Tag Table:
+Node: Top60
+
+End Tag Table
+
+
+Local Variables:
+coding: utf-8
+End:
+';
+
+1;
diff --git
a/tp/t/results/transformations/index_entries_relate_to_item_transformation/res_html/index.html
b/tp/t/results/transformations/index_entries_relate_to_item_transformation/res_html/index.html
new file mode 100644
index 0000000000..82259f757b
--- /dev/null
+++
b/tp/t/results/transformations/index_entries_relate_to_item_transformation/res_html/index.html
@@ -0,0 +1,87 @@
+<!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="#Top" rel="index" title="Top">
+<style type="text/css">
+<!--
+a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
+a.summary-letter-printindex {text-decoration: none}
+span:hover a.copiable-link {visibility: visible}
+td.printindex-index-entry {vertical-align: top}
+td.printindex-index-section {vertical-align: top; padding-left: 1em}
+th.entries-header-printindex {text-align:left}
+th.sections-header-printindex {text-align:left; padding-left: 1em}
+-->
+</style>
+
+
+</head>
+
+<body lang="en">
+<div class="top-level-extent" id="Top">
+<h1 class="top" id="top">top</h1>
+
+<dl class="table">
+<dt><a class="index-entry-id" id="index-B"></a>
+<a class="index-entry-id" id="index-C"></a>
+<a id='index-A'></a><span><code class="code">A</code><a class="copiable-link"
href='#index-A'> ¶</a></span></dt>
+<dt><code class="code">B</code></dt>
+<dt><code class="code">C</code></dt>
+<dd>
+<p>body
+</p>
+</dd>
+<dt><code class="code">D</code></dt>
+<dd>
+<p>body2
+</p>
+</dd>
+</dl>
+
+<div class="printindex cp-printindex">
+<table class="cp-letters-header-printindex"><tr><th>Jump to:
</th><td><a class="summary-letter-printindex"
href="#Top_cp_letter-A"><b>A</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-B"><b>B</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-C"><b>C</b></a>
+
+</td></tr></table>
+<table class="cp-entries-printindex" border="0">
+<tr><td></td><th class="entries-header-printindex">Index Entry</th><th
class="sections-header-printindex">Section</th></tr>
+<tr><td colspan="3"><hr></td></tr>
+<tr><th id="Top_cp_letter-A">A</th></tr>
+<tr><td></td><td class="printindex-index-entry"><a
href="#index-A">A</a></td><td class="printindex-index-section"><a
href="#Top">Top</a></td></tr>
+<tr><td colspan="3"><hr></td></tr>
+<tr><th id="Top_cp_letter-B">B</th></tr>
+<tr><td></td><td class="printindex-index-entry"><a
href="#index-B">B</a></td><td class="printindex-index-section"><a
href="#Top">Top</a></td></tr>
+<tr><td colspan="3"><hr></td></tr>
+<tr><th id="Top_cp_letter-C">C</th></tr>
+<tr><td></td><td class="printindex-index-entry"><a
href="#index-C">C</a></td><td class="printindex-index-section"><a
href="#Top">Top</a></td></tr>
+<tr><td colspan="3"><hr></td></tr>
+</table>
+<table class="cp-letters-footer-printindex"><tr><th>Jump to:
</th><td><a class="summary-letter-printindex"
href="#Top_cp_letter-A"><b>A</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-B"><b>B</b></a>
+
+<a class="summary-letter-printindex" href="#Top_cp_letter-C"><b>C</b></a>
+
+</td></tr></table>
+</div>
+
+</div>
+
+
+
+</body>
+</html>
diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index e0876374ab..7415635823 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -1049,12 +1049,12 @@ sub test($$)
$main_configuration->set_conf('novalidate', 1);
}
- if ($tree_transformations{'move_index_entries_after_items'}) {
- Texinfo::Common::move_index_entries_after_items_in_tree($tree);
+ if ($tree_transformations{'relate_index_entries_to_items'}) {
+ Texinfo::Common::relate_index_entries_to_table_items_in_tree($tree);
}
- if ($tree_transformations{'relate_index_entries_to_table_entries'}) {
- Texinfo::Common::relate_index_entries_to_table_entries_in_tree($tree);
+ if ($tree_transformations{'move_index_entries_after_items'}) {
+ Texinfo::Common::move_index_entries_after_items_in_tree($tree);
}
if ($tree_transformations{'insert_nodes_for_sectioning_commands'}) {
diff --git a/tp/t/transformations.t b/tp/t/transformations.t
index 005650ba49..5c9792fb26 100644
--- a/tp/t/transformations.t
+++ b/tp/t/transformations.t
@@ -5,9 +5,6 @@ use Texinfo::ModulePath (undef, undef, undef, 'updirs' => 2);
require 't/test_utils.pl';
-# These tests are supposed to test the same things as tests
-# under tp/tests did, but to be faster, as we are avoiding the
-# start-up time of perl for every one.
my @test_cases = (
['master_menu_fr',
undef,
@@ -17,7 +14,21 @@ my @test_cases = (
'FORMAT_MENU' => 'menu'},
{'FORMAT_MENU' => 'menu'},
],
-);
+# in the test suite, no transformation is set up in the default case.
+# Therefore in the next test there is no relate_index_entries_to_items
+# transformation used even when HTML is output. With texi2any, outputting
+# HTML sets the relate_index_entries_to_items transformation (tested in
+# tests/indices index_entries_relate_to_item).
+['index_entries_relate_to_item_no_transformation',
+ undef,
+ {'test_file' => '../../tests/indices/index_entries_relate_to_item.texi'},
+],
+# test relate_index_entries_to_items transformation
+['index_entries_relate_to_item_transformation',
+ undef,
+ {'test_file' => '../../tests/indices/index_entries_relate_to_item.texi',
+ 'TREE_TRANSFORMATIONS' => 'relate_index_entries_to_items'},
+],);
foreach my $test (@test_cases) {
push @{$test->[2]->{'test_formats'}}, 'file_html';
diff --git a/tp/tests/indices/list-of-tests b/tp/tests/indices/list-of-tests
index 692d28187f..de76e45df3 100644
--- a/tp/tests/indices/list-of-tests
+++ b/tp/tests/indices/list-of-tests
@@ -25,4 +25,5 @@ index_table index_table.texi -c 'TEXI2HTML 1' --split chapter
indices_in_begin_tables_lists indices_in_begin_tables_lists.texi
indices_in_begin_tables_lists_latex indices_in_begin_tables_lists.texi --latex
+# tests of the tree using the same input file are also in t/transformations.t
index_entries_relate_to_item index_entries_relate_to_item.texi
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/t/test_utils.pl (test): update tree transformation names for relate_index_entries_to_items.,
Patrice Dumas <=