[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
texinfo/tp TODO Texinfo/Structuring.pm Texinfo/...
From: |
Patrice Dumas |
Subject: |
texinfo/tp TODO Texinfo/Structuring.pm Texinfo/... |
Date: |
Mon, 28 Feb 2011 22:00:21 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/02/28 22:00:20
Modified files:
tp : TODO
tp/Texinfo : Structuring.pm
tp/Texinfo/Convert: Plaintext.pm
tp/t : 30sectioning.t
tp/t/results/sectioning: section_before_part.pl
Added files:
tp/t/results/sectioning: chapter_before_and_after_part.pl
chapter_node_before_and_after_part.pl
node_part_chapter_after_chapter.pl
section_node_before_part.pl
Log message:
Allow @part after a lower level element.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.102&r2=1.103
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Structuring.pm?cvsroot=texinfo&r1=1.38&r2=1.39
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Plaintext.pm?cvsroot=texinfo&r1=1.101&r2=1.102
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/30sectioning.t?cvsroot=texinfo&r1=1.29&r2=1.30
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/section_before_part.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_node_before_and_after_part.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/node_part_chapter_after_chapter.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/section_node_before_part.pl?cvsroot=texinfo&rev=1.1
Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -b -r1.102 -r1.103
--- TODO 28 Feb 2011 00:06:04 -0000 1.102
+++ TODO 28 Feb 2011 22:00:14 -0000 1.103
@@ -3,6 +3,9 @@
(does nothing in info, in HTML automatically set the section name as 3rd
arg of @*ref).
+In Info A ref like @ref{node,,,manual} should lead to
+*note (manual)node::.
+
Before the release, verify that everything on
https://savannah.gnu.org/bugs/?group=texinfo
is fixed and tested for.
@@ -203,6 +206,7 @@
sectioning/part_before_section.texi
sectioning/part_node_before_top.texi
sectioning/part_node_chapter_after_top.texi
+sectioning/node_part_chapter_after_chapter.texi
sectioning/section_before_chapter.texi
sectioning/section_before_part.texi
sectioning/section_before_top.texi
Index: Texinfo/Structuring.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Structuring.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -b -r1.38 -r1.39
--- Texinfo/Structuring.pm 28 Feb 2011 00:06:04 -0000 1.38
+++ Texinfo/Structuring.pm 28 Feb 2011 22:00:15 -0000 1.39
@@ -241,21 +241,38 @@
}
} else {
my $up = $previous_section->{'section_up'};
+ my $new_upper_element;
if ($previous_section->{'level'} != $level) {
# means it is above the previous command, the up is to be found
while ($up->{'section_up'} and $up->{'level'} >= $level) {
$up = $up->{'section_up'};
}
if ($level <= $up->{'level'}) {
- $self->line_error(sprintf($self->__("Lowering the section level
of address@hidden appearing after a lower element"),
+ if ($content->{'cmdname'} eq 'part') {
+ $new_upper_element = 1;
+ if ($level < $up->{'level'}) {
+ #Â FIXME warn previous element too low
+ }
+ } else {
+ $self->line_error(sprintf($self->__(
+ "Lowering the section level of address@hidden appearing
after a lower element"),
$content->{'cmdname'}),
$content->{'line_nr'});
$content->{'level'} = $up->{'level'} + 1;
}
}
+ }
+ if ($new_upper_element) {
+ $content->{'section_up'} = $sec_root;
+ $sec_root->{'level'} = $level - 1;
+ push @{$sec_root->{'section_childs'}}, $content;
+ $number_top_level = $level;
+ $number_top_level++ if (!$number_top_level);
+ } else {
push @{$up->{'section_childs'}}, $content;
$content->{'section_up'} = $up;
$content->{'section_prev'} = $up->{'section_childs'}->[-2];
$content->{'section_prev'}->{'section_next'} = $content;
+ }
if (!$unnumbered_commands{$content->{'cmdname'}}) {
$command_numbers[$content->{'level'}]++;
$command_unnumbered[$content->{'level'}] = 0;
Index: Texinfo/Convert/Plaintext.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Plaintext.pm,v
retrieving revision 1.101
retrieving revision 1.102
diff -u -b -r1.101 -r1.102
--- Texinfo/Convert/Plaintext.pm 27 Feb 2011 21:12:38 -0000 1.101
+++ Texinfo/Convert/Plaintext.pm 28 Feb 2011 22:00:16 -0000 1.102
@@ -924,13 +924,22 @@
my $contents = 1 if ($contents_or_shortcontents eq 'contents');
- my $section = $section_root->{'section_childs'}->[0];
- my $root_level = $section->{'level'};
+ #my $section = $section_root->{'section_childs'}->[0];
+ my $root_level = $section_root->{'section_childs'}->[0]->{'level'};
+ foreach my $top_section(@{$section_root->{'section_childs'}}) {
+ $root_level = $top_section->{'level'}
+ if ($top_section->{'level'} < $root_level);
+ }
#Â FIXME return bytes count?
my $result = '';
my $lines_count = 0;
- while ($section and $section ne $section_root) {
+ #Â This is done like that because the tree may not be well formed if
+ #Â there is a @part after a @chapter for example.
+ foreach my $top_section (@{$section_root->{'section_childs'}}) {
+ my $section = $top_section;
+ SECTION:
+ while ($section) {# and $section ne $section_root) {
push @{$self->{'count_context'}}, {'lines' => 0, 'bytes' => 0};
my $section_title = $self->convert_line({'contents'
=> $section->{'extra'}->{'misc_content'},
@@ -944,10 +953,13 @@
and ($contents or $section->{'level'} < $root_level+1)) {
$section = $section->{'section_childs'}->[0];
} elsif ($section->{'section_next'}) {
+ last if ($section eq $top_section);
$section = $section->{'section_next'};
} else {
+ last if ($section eq $top_section);
while ($section->{'section_up'}) {
$section = $section->{'section_up'};
+ last SECTION if ($section eq $top_section);
if ($section->{'section_next'}) {
$section = $section->{'section_next'};
last;
@@ -955,6 +967,7 @@
}
}
}
+ }
return ($result, $lines_count);
}
Index: t/30sectioning.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/30sectioning.t,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -b -r1.29 -r1.30
--- t/30sectioning.t 28 Feb 2011 00:06:04 -0000 1.29
+++ t/30sectioning.t 28 Feb 2011 22:00:17 -0000 1.30
@@ -259,6 +259,13 @@
A.
'],
+['section_before_part',
+'@section section
+
address@hidden part
+
address@hidden
+'],
['section_in_unnumbered_plaintext',
$section_in_unnumbered_text
],
@@ -627,6 +634,26 @@
@node chapter
@chapter chapter
'],
+['node_part_chapter_after_chapter',
+'@node Top
address@hidden top
+
address@hidden
+* chapter node::
+* part chapter node::
address@hidden menu
+
address@hidden chapter node
+
address@hidden chapter node
+
address@hidden part chapter node
address@hidden part
+
address@hidden chapter with part node
+
address@hidden
+',{'test_formats' => ['plaintext']} ],
['section_before_top',
'@node section node,,,Top
@section section
@@ -657,6 +684,29 @@
@end menu
'],
+['section_node_before_part',
+'
address@hidden Top
address@hidden section
+
address@hidden part
+'],
+['chapter_node_before_and_after_part',
+'
address@hidden Top
address@hidden chapter
+
address@hidden
+* after::
address@hidden menu
+
address@hidden part
+
address@hidden after
address@hidden chapter 2
+
address@hidden
+',{'test_formats' => ['plaintext']}],
['section_in_unnumbered_info',
$section_in_unnumbered_text
],
@@ -1135,10 +1185,12 @@
@chapter chapter
'],
-['section_before_part',
-'@section section
+['chapter_before_and_after_part',
+'@chapter chapter
@part part
+
address@hidden chapter 2
'],
['section_before_top_no_node',
'@section section
@@ -1158,7 +1210,7 @@
$test->[2]->{'test_formats'} = ['plaintext'];
}
foreach my $test (@tests_info) {
- $test->[2]->{'test_formats'} = ['info'];
+ push @{$test->[2]->{'test_formats'}}, 'info';
}
our ($arg_test_case, $arg_generate, $arg_debug);
Index: t/results/sectioning/section_before_part.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/sectioning/section_before_part.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/sectioning/section_before_part.pl 28 Feb 2011 00:06:04 -0000
1.1
+++ t/results/sectioning/section_before_part.pl 28 Feb 2011 22:00:18 -0000
1.2
@@ -81,13 +81,24 @@
}
],
'cmdname' => 'part',
- 'contents' => [],
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'contents',
+ 'parent' => {}
+ }
+ ],
'extra' => {
'misc_content' => [
{}
]
},
- 'level' => 2,
+ 'level' => 0,
'line_nr' => {
'file_name' => '',
'line_nr' => 3,
@@ -110,12 +121,16 @@
$result_trees{'section_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'section_before_part'}{'contents'}[2]{'args'}[0];
$result_trees{'section_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'section_before_part'}{'contents'}[2]{'args'}[0];
$result_trees{'section_before_part'}{'contents'}[2]{'args'}[0]{'parent'} =
$result_trees{'section_before_part'}{'contents'}[2];
+$result_trees{'section_before_part'}{'contents'}[2]{'contents'}[0]{'parent'} =
$result_trees{'section_before_part'}{'contents'}[2];
+$result_trees{'section_before_part'}{'contents'}[2]{'contents'}[1]{'parent'} =
$result_trees{'section_before_part'}{'contents'}[2];
$result_trees{'section_before_part'}{'contents'}[2]{'extra'}{'misc_content'}[0]
= $result_trees{'section_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[1];
$result_trees{'section_before_part'}{'contents'}[2]{'parent'} =
$result_trees{'section_before_part'};
$result_texis{'section_before_part'} = '@section section
@part part
+
address@hidden
';
@@ -123,11 +138,12 @@
=========
part
-====
+****
+
';
$result_sectioning{'section_before_part'} = {
- 'level' => 1,
+ 'level' => -1,
'section_childs' => [
{
'cmdname' => 'section',
@@ -139,27 +155,23 @@
{
'cmdname' => 'part',
'extra' => {},
- 'level' => 2,
- 'section_prev' => {},
+ 'level' => 0,
'section_up' => {}
}
]
};
$result_sectioning{'section_before_part'}{'section_childs'}[0]{'section_up'} =
$result_sectioning{'section_before_part'};
-$result_sectioning{'section_before_part'}{'section_childs'}[1]{'section_prev'}
= $result_sectioning{'section_before_part'}{'section_childs'}[0];
$result_sectioning{'section_before_part'}{'section_childs'}[1]{'section_up'} =
$result_sectioning{'section_before_part'};
-$result_errors{'section_before_part'} = [
- {
- 'error_line' => ':3: Lowering the section level of @part appearing after a
lower element
-',
- 'file_name' => '',
- 'line_nr' => 3,
- 'macro' => '',
- 'text' => 'Lowering the section level of @part appearing after a lower
element',
- 'type' => 'error'
- }
-];
+$result_errors{'section_before_part'} = [];
+
+$result_converted{'plaintext'}->{'section_before_part'} = '1 section
+=========
+
+ 1 section
+part
+';
+
1;
Index: t/results/sectioning/chapter_before_and_after_part.pl
===================================================================
RCS file: t/results/sectioning/chapter_before_and_after_part.pl
diff -N t/results/sectioning/chapter_before_and_after_part.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/chapter_before_and_after_part.pl 28 Feb 2011
22:00:17 -0000 1.1
@@ -0,0 +1,222 @@
+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_trees{'chapter_before_and_after_part'} = {
+ 'contents' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 1,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'number' => 1,
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'part'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'part',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 0,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter 2'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 1,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ },
+ 'number' => 2,
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'chapter_before_and_after_part'}{'contents'}[0]{'parent'} =
$result_trees{'chapter_before_and_after_part'};
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[1]{'parent'} =
$result_trees{'chapter_before_and_after_part'};
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[2]{'parent'} =
$result_trees{'chapter_before_and_after_part'};
+$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0]{'parent'}
= $result_trees{'chapter_before_and_after_part'}{'contents'}[3];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_before_and_after_part'}{'contents'}[3]{'parent'} =
$result_trees{'chapter_before_and_after_part'};
+
+$result_texis{'chapter_before_and_after_part'} = '@chapter chapter
+
address@hidden part
+
address@hidden chapter 2
+';
+
+
+$result_texts{'chapter_before_and_after_part'} = '1 chapter
+*********
+
+part
+****
+
+2 chapter 2
+***********
+';
+
+$result_sectioning{'chapter_before_and_after_part'} = {
+ 'level' => -1,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'level' => 1,
+ 'number' => 1,
+ 'section_up' => {}
+ },
+ {
+ 'cmdname' => 'part',
+ 'extra' => {},
+ 'level' => 0,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'level' => 1,
+ 'number' => 2,
+ 'section_up' => {}
+ }
+ ],
+ 'section_up' => {}
+ }
+ ]
+};
+$result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[0]{'section_up'}
= $result_sectioning{'chapter_before_and_after_part'};
+$result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
= $result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1];
+$result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1]{'section_up'}
= $result_sectioning{'chapter_before_and_after_part'};
+
+$result_errors{'chapter_before_and_after_part'} = [];
+
+
+1;
Index: t/results/sectioning/chapter_node_before_and_after_part.pl
===================================================================
RCS file: t/results/sectioning/chapter_node_before_and_after_part.pl
diff -N t/results/sectioning/chapter_node_before_and_after_part.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/chapter_node_before_and_after_part.pl 28 Feb 2011
22:00:17 -0000 1.1
@@ -0,0 +1,573 @@
+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_trees{'chapter_node_before_and_after_part'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Top'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'menu',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'args' => [
+ {
+ 'parent' => {},
+ 'text' => '* ',
+ 'type' => 'menu_entry_leading_text'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'after'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'menu_entry_node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '::',
+ 'type' => 'menu_entry_separator'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'menu_entry_description'
+ }
+ ],
+ 'extra' => {
+ 'menu_entry_node' => {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'after'
+ }
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => ''
+ },
+ 'parent' => {},
+ 'type' => 'menu_entry'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 1,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ },
+ 'number' => 1,
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'part'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'part',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 0,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 9,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'after'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'after'
+ }
+ ],
+ 'normalized' => 'after'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 11,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter 2'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'contents',
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 1,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 12,
+ 'macro' => ''
+ },
+ 'number' => 2,
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[0]{'parent'} =
$result_trees{'chapter_node_before_and_after_part'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[1]{'parent'} =
$result_trees{'chapter_node_before_and_after_part'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[2]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[1]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[2]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'contents'}[3]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[2];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[2]{'parent'} =
$result_trees{'chapter_node_before_and_after_part'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[3];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'contents'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[3];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[3]{'parent'} =
$result_trees{'chapter_node_before_and_after_part'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[4];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'extra'}{'node_content'}[0]
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'extra'}{'nodes_manuals'}[0]{'node_content'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'extra'}{'node_content'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[4]{'parent'} =
$result_trees{'chapter_node_before_and_after_part'};
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[5];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'contents'}[0]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[5];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'contents'}[1]{'parent'}
= $result_trees{'chapter_node_before_and_after_part'}{'contents'}[5];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'extra'}{'misc_content'}[0]
=
$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'args'}[0]{'contents'}[1];
+$result_trees{'chapter_node_before_and_after_part'}{'contents'}[5]{'parent'} =
$result_trees{'chapter_node_before_and_after_part'};
+
+$result_texis{'chapter_node_before_and_after_part'} = '
address@hidden Top
address@hidden chapter
+
address@hidden
+* after::
address@hidden menu
+
address@hidden part
+
address@hidden after
address@hidden chapter 2
+
address@hidden
+';
+
+
+$result_texts{'chapter_node_before_and_after_part'} = '
+1 chapter
+*********
+
+* after::
+
+part
+****
+
+2 chapter 2
+***********
+
+';
+
+$result_sectioning{'chapter_node_before_and_after_part'} = {
+ 'level' => -1,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ }
+ },
+ 'level' => 1,
+ 'number' => 1,
+ 'section_up' => {}
+ },
+ {
+ 'cmdname' => 'part',
+ 'extra' => {},
+ 'level' => 0,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'after'
+ }
+ }
+ },
+ 'level' => 1,
+ 'number' => 2,
+ 'section_up' => {}
+ }
+ ],
+ 'section_up' => {}
+ }
+ ]
+};
+$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[0]{'section_up'}
= $result_sectioning{'chapter_node_before_and_after_part'};
+$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
=
$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1];
+$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1]{'section_up'}
= $result_sectioning{'chapter_node_before_and_after_part'};
+
+$result_nodes{'chapter_node_before_and_after_part'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'level' => 1,
+ 'number' => 1
+ },
+ 'normalized' => 'Top'
+ },
+ 'menu_child' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'level' => 1,
+ 'number' => 2
+ },
+ 'normalized' => 'after'
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ },
+ 'menus' => [
+ {
+ 'cmdname' => 'menu'
+ }
+ ],
+ 'node_next' => {},
+ 'node_up' => {
+ 'extra' => {
+ 'manual_content' => [
+ {
+ 'text' => 'dir'
+ }
+ ]
+ }
+ }
+};
+$result_nodes{'chapter_node_before_and_after_part'}{'menu_child'}{'node_prev'}
= $result_nodes{'chapter_node_before_and_after_part'};
+$result_nodes{'chapter_node_before_and_after_part'}{'menu_child'}{'node_up'} =
$result_nodes{'chapter_node_before_and_after_part'};
+$result_nodes{'chapter_node_before_and_after_part'}{'node_next'} =
$result_nodes{'chapter_node_before_and_after_part'}{'menu_child'};
+
+$result_menus{'chapter_node_before_and_after_part'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'menu_child' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'after'
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+};
+$result_menus{'chapter_node_before_and_after_part'}{'menu_child'}{'menu_up'} =
$result_menus{'chapter_node_before_and_after_part'};
+
+$result_errors{'chapter_node_before_and_after_part'} = [];
+
+
+
+$result_converted{'plaintext'}->{'chapter_node_before_and_after_part'} = '
+1 chapter
+*********
+
+* Menu:
+
+* after::
+
+2 chapter 2
+***********
+
+1 chapter
+part
+2 chapter 2
+';
+
+
+$result_converted{'info'}->{'chapter_node_before_and_after_part'} = 'This is ,
produced by makeinfo version 4.13 from .
+
+
+File: , Node: Top, Next: after, Up: (dir)
+
+1 chapter
+*********
+
+* Menu:
+
+* after::
+
+
+File: , Node: after, Prev: Top, Up: Top
+
+2 chapter 2
+***********
+
+
+
+Tag Table:
+Node: Top52
+Node: after141
+
+End Tag Table
+';
+
+1;
Index: t/results/sectioning/node_part_chapter_after_chapter.pl
===================================================================
RCS file: t/results/sectioning/node_part_chapter_after_chapter.pl
diff -N t/results/sectioning/node_part_chapter_after_chapter.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/node_part_chapter_after_chapter.pl 28 Feb 2011
22:00:18 -0000 1.1
@@ -0,0 +1,802 @@
+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_trees{'node_part_chapter_after_chapter'} = {
+ 'contents' => [
+ {
+ 'contents' => [],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Top'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'top'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'top',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'menu',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'args' => [
+ {
+ 'parent' => {},
+ 'text' => '* ',
+ 'type' => 'menu_entry_leading_text'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'chapter node'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'menu_entry_node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '::',
+ 'type' => 'menu_entry_separator'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'menu_entry_description'
+ }
+ ],
+ 'extra' => {
+ 'menu_entry_node' => {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'chapter-node'
+ }
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ },
+ 'parent' => {},
+ 'type' => 'menu_entry'
+ },
+ {
+ 'args' => [
+ {
+ 'parent' => {},
+ 'text' => '* ',
+ 'type' => 'menu_entry_leading_text'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'part chapter node'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'menu_entry_node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '::',
+ 'type' => 'menu_entry_separator'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'menu_entry_description'
+ }
+ ],
+ 'extra' => {
+ 'menu_entry_node' => {
+ 'node_content' => [
+ {}
+ ],
+ 'normalized' => 'part-chapter-node'
+ }
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => ''
+ },
+ 'parent' => {},
+ 'type' => 'menu_entry'
+ }
+ ],
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 0,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'chapter-node'
+ }
+ ],
+ 'normalized' => 'chapter-node'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 9,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 1,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 11,
+ 'macro' => ''
+ },
+ 'number' => 1,
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'part chapter node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'part-chapter-node'
+ }
+ ],
+ 'normalized' => 'part-chapter-node'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 13,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'part'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'part',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 0,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 14,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'chapter with part node'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'chapter',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'contents',
+ 'parent' => {}
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 1,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 16,
+ 'macro' => ''
+ },
+ 'number' => 2,
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[0]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[1]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[2]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'contents'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[1]{'contents'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[1]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[2]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[3]{'contents'}[0]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[3];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[3]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'extra'}{'menu_entry_node'}{'node_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[1]{'contents'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'parent'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'contents'}[3]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[2];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'extra'}{'misc_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[2]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[3];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[3];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'extra'}{'node_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'extra'}{'node_content'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[3]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[4];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[4];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'extra'}{'misc_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[4]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[5];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'extra'}{'node_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'extra'}{'node_content'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[5]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[6];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[6];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'extra'}{'misc_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[6]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[7];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'contents'}[0]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[7];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'contents'}[1]{'parent'}
= $result_trees{'node_part_chapter_after_chapter'}{'contents'}[7];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'extra'}{'misc_content'}[0]
=
$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'args'}[0]{'contents'}[1];
+$result_trees{'node_part_chapter_after_chapter'}{'contents'}[7]{'parent'} =
$result_trees{'node_part_chapter_after_chapter'};
+
+$result_texis{'node_part_chapter_after_chapter'} = '@node Top
address@hidden top
+
address@hidden
+* chapter node::
+* part chapter node::
address@hidden menu
+
address@hidden chapter node
+
address@hidden chapter node
+
address@hidden part chapter node
address@hidden part
+
address@hidden chapter with part node
+
address@hidden
+';
+
+
+$result_texts{'node_part_chapter_after_chapter'} = 'top
+***
+
+* chapter node::
+* part chapter node::
+
+
+1 chapter node
+**************
+
+part
+****
+
+2 chapter with part node
+************************
+
+';
+
+$result_sectioning{'node_part_chapter_after_chapter'} = {
+ 'level' => -1,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'top',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ }
+ },
+ 'level' => 0,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chapter-node'
+ }
+ }
+ },
+ 'level' => 1,
+ 'number' => 1,
+ 'section_up' => {}
+ }
+ ],
+ 'section_up' => {}
+ },
+ {
+ 'cmdname' => 'part',
+ 'extra' => {},
+ 'level' => 0,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'chapter',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'part-chapter-node'
+ }
+ }
+ },
+ 'level' => 1,
+ 'number' => 2,
+ 'section_up' => {}
+ }
+ ],
+ 'section_prev' => {},
+ 'section_up' => {}
+ }
+ ]
+};
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
= $result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[0];
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[0]{'section_up'}
= $result_sectioning{'node_part_chapter_after_chapter'};
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
= $result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1];
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1]{'section_prev'}
= $result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[0];
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1]{'section_up'}
= $result_sectioning{'node_part_chapter_after_chapter'};
+
+$result_nodes{'node_part_chapter_after_chapter'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'top',
+ 'extra' => {},
+ 'level' => 0
+ },
+ 'normalized' => 'Top'
+ },
+ 'menu_child' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'level' => 1,
+ 'number' => 1
+ },
+ 'normalized' => 'chapter-node'
+ },
+ 'node_next' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'chapter',
+ 'extra' => {},
+ 'level' => 1,
+ 'number' => 2
+ },
+ 'normalized' => 'part-chapter-node'
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ },
+ 'node_prev' => {},
+ 'node_up' => {}
+ },
+ 'menus' => [
+ {
+ 'cmdname' => 'menu'
+ }
+ ],
+ 'node_next' => {},
+ 'node_up' => {
+ 'extra' => {
+ 'manual_content' => [
+ {
+ 'text' => 'dir'
+ }
+ ]
+ }
+ }
+};
+$result_nodes{'node_part_chapter_after_chapter'}{'menu_child'}{'node_next'}{'node_prev'}
= $result_nodes{'node_part_chapter_after_chapter'}{'menu_child'};
+$result_nodes{'node_part_chapter_after_chapter'}{'menu_child'}{'node_next'}{'node_up'}
= $result_nodes{'node_part_chapter_after_chapter'};
+$result_nodes{'node_part_chapter_after_chapter'}{'menu_child'}{'node_prev'} =
$result_nodes{'node_part_chapter_after_chapter'};
+$result_nodes{'node_part_chapter_after_chapter'}{'menu_child'}{'node_up'} =
$result_nodes{'node_part_chapter_after_chapter'};
+$result_nodes{'node_part_chapter_after_chapter'}{'node_next'} =
$result_nodes{'node_part_chapter_after_chapter'}{'menu_child'};
+
+$result_menus{'node_part_chapter_after_chapter'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ },
+ 'menu_child' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'chapter-node'
+ },
+ 'menu_next' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'part-chapter-node'
+ },
+ 'menu_prev' => {},
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ },
+ 'menu_up' => {},
+ 'menu_up_hash' => {
+ 'Top' => 1
+ }
+ }
+};
+$result_menus{'node_part_chapter_after_chapter'}{'menu_child'}{'menu_next'}{'menu_prev'}
= $result_menus{'node_part_chapter_after_chapter'}{'menu_child'};
+$result_menus{'node_part_chapter_after_chapter'}{'menu_child'}{'menu_next'}{'menu_up'}
= $result_menus{'node_part_chapter_after_chapter'};
+$result_menus{'node_part_chapter_after_chapter'}{'menu_child'}{'menu_up'} =
$result_menus{'node_part_chapter_after_chapter'};
+
+$result_errors{'node_part_chapter_after_chapter'} = [];
+
+
+
+$result_converted{'plaintext'}->{'node_part_chapter_after_chapter'} = 'top
+***
+
+* Menu:
+
+* chapter node::
+* part chapter node::
+
+1 chapter node
+**************
+
+2 chapter with part node
+************************
+
+top
+1 chapter node
+part
+2 chapter with part node
+';
+
+
+$result_converted{'info'}->{'node_part_chapter_after_chapter'} = 'This is ,
produced by makeinfo version 4.13 from .
+
+
+File: , Node: Top, Next: chapter node, Up: (dir)
+
+top
+***
+
+* Menu:
+
+* chapter node::
+* part chapter node::
+
+
+File: , Node: chapter node, Next: part chapter node, Prev: Top, Up: Top
+
+1 chapter node
+**************
+
+
+File: , Node: part chapter node, Prev: chapter node, Up: Top
+
+2 chapter with part node
+************************
+
+
+
+Tag Table:
+Node: Top52
+Node: chapter node165
+Node: part chapter node275
+
+End Tag Table
+';
+
+1;
Index: t/results/sectioning/section_node_before_part.pl
===================================================================
RCS file: t/results/sectioning/section_node_before_part.pl
diff -N t/results/sectioning/section_node_before_part.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/section_node_before_part.pl 28 Feb 2011 22:00:18
-0000 1.1
@@ -0,0 +1,269 @@
+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_trees{'section_node_before_part'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'text_root'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'Top'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'node',
+ 'contents' => [],
+ 'extra' => {
+ 'node_content' => [
+ {}
+ ],
+ 'nodes_manuals' => [
+ {
+ 'node_content' => [],
+ 'normalized' => 'Top'
+ }
+ ],
+ 'normalized' => 'Top'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'section'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'section',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 2,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 3,
+ 'macro' => ''
+ },
+ 'number' => 1,
+ 'parent' => {}
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'part'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'part',
+ 'contents' => [],
+ 'extra' => {
+ 'misc_content' => [
+ {}
+ ]
+ },
+ 'level' => 0,
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 5,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'document_root'
+};
+$result_trees{'section_node_before_part'}{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[0]{'parent'} =
$result_trees{'section_node_before_part'};
+$result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[1];
+$result_trees{'section_node_before_part'}{'contents'}[1]{'extra'}{'node_content'}[0]
=
$result_trees{'section_node_before_part'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'section_node_before_part'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
=
$result_trees{'section_node_before_part'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'section_node_before_part'}{'contents'}[1]{'parent'} =
$result_trees{'section_node_before_part'};
+$result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[2];
+$result_trees{'section_node_before_part'}{'contents'}[2]{'contents'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[2];
+$result_trees{'section_node_before_part'}{'contents'}[2]{'extra'}{'misc_content'}[0]
=
$result_trees{'section_node_before_part'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'section_node_before_part'}{'contents'}[2]{'parent'} =
$result_trees{'section_node_before_part'};
+$result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0]{'parent'}
= $result_trees{'section_node_before_part'}{'contents'}[3];
+$result_trees{'section_node_before_part'}{'contents'}[3]{'extra'}{'misc_content'}[0]
=
$result_trees{'section_node_before_part'}{'contents'}[3]{'args'}[0]{'contents'}[1];
+$result_trees{'section_node_before_part'}{'contents'}[3]{'parent'} =
$result_trees{'section_node_before_part'};
+
+$result_texis{'section_node_before_part'} = '
address@hidden Top
address@hidden section
+
address@hidden part
+';
+
+
+$result_texts{'section_node_before_part'} = '
+1 section
+=========
+
+part
+****
+';
+
+$result_sectioning{'section_node_before_part'} = {
+ 'level' => -1,
+ 'section_childs' => [
+ {
+ 'cmdname' => 'section',
+ 'extra' => {
+ 'associated_node' => {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+ }
+ },
+ 'level' => 2,
+ 'number' => 1,
+ 'section_up' => {}
+ },
+ {
+ 'cmdname' => 'part',
+ 'extra' => {},
+ 'level' => 0,
+ 'section_up' => {}
+ }
+ ]
+};
+$result_sectioning{'section_node_before_part'}{'section_childs'}[0]{'section_up'}
= $result_sectioning{'section_node_before_part'};
+$result_sectioning{'section_node_before_part'}{'section_childs'}[1]{'section_up'}
= $result_sectioning{'section_node_before_part'};
+
+$result_nodes{'section_node_before_part'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'associated_section' => {
+ 'cmdname' => 'section',
+ 'extra' => {},
+ 'level' => 2,
+ 'number' => 1
+ },
+ 'normalized' => 'Top'
+ },
+ 'node_up' => {
+ 'extra' => {
+ 'manual_content' => [
+ {
+ 'text' => 'dir'
+ }
+ ]
+ }
+ }
+};
+
+$result_menus{'section_node_before_part'} = {
+ 'cmdname' => 'node',
+ 'extra' => {
+ 'normalized' => 'Top'
+ }
+};
+
+$result_errors{'section_node_before_part'} = [];
+
+
+
+$result_converted{'info'}->{'section_node_before_part'} = 'This is , produced
by makeinfo version 4.13 from .
+
+
+File: , Node: Top, Up: (dir)
+
+1 section
+=========
+
+
+
+Tag Table:
+Node: Top52
+
+End Tag Table
+';
+
+1;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- texinfo/tp TODO Texinfo/Structuring.pm Texinfo/...,
Patrice Dumas <=