texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp Texinfo/Parser.pm t/30sectioning.t t...


From: Patrice Dumas
Subject: texinfo/tp Texinfo/Parser.pm t/30sectioning.t t...
Date: Sun, 03 Jul 2011 11:11:58 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/07/03 11:11:58

Modified files:
        tp/Texinfo     : Parser.pm 
        tp/t           : 30sectioning.t test_utils.pl 
        tp/t/results/sectioning: chapter_before_and_after_part.pl 
                                 chapter_node_before_and_after_part.pl 
                                 contents.pl 
                                 node_part_chapter_after_chapter.pl 
                                 part_before_section.pl 
                                 part_node_before_top.pl 
                                 part_node_chapter_after_top.pl 
                                 setcontentsaftertitlepage.pl 
                                 setshortcontentsaftertitlepage.pl 
                                 shortcontents.pl 
Added files:
        tp/t/results/sectioning: double_part.pl 

Log message:
        Add information to part, the section the part is associated to.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.261&r2=1.262
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/30sectioning.t?cvsroot=texinfo&r1=1.37&r2=1.38
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/test_utils.pl?cvsroot=texinfo&r1=1.79&r2=1.80
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/chapter_node_before_and_after_part.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/contents.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/node_part_chapter_after_chapter.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/part_before_section.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/part_node_before_top.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/part_node_chapter_after_top.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/setcontentsaftertitlepage.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/setshortcontentsaftertitlepage.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/shortcontents.pl?cvsroot=texinfo&r1=1.7&r2=1.8
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/sectioning/double_part.pl?cvsroot=texinfo&rev=1.1

Patches:
Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.261
retrieving revision 1.262
diff -u -b -r1.261 -r1.262
--- Texinfo/Parser.pm   3 Jul 2011 10:17:57 -0000       1.261
+++ Texinfo/Parser.pm   3 Jul 2011 11:11:57 -0000       1.262
@@ -2722,13 +2722,16 @@
           $self->{'current_node'}->{'extra'}->{'associated_section'} = 
$current;
           $current->{'extra'}->{'associated_node'} = $self->{'current_node'};
         }
-        if ($self->{'current_part'}) {
-          $current->{'extra'}->{'associated_part'} = $self->{'current_part'};
-          delete $self->{'current_part'};
+        if ($self->{'current_parts'}) {
+          $current->{'extra'}->{'associated_part'} = 
$self->{'current_parts'}->[-1];
+          foreach my $part (@{$self->{'current_parts'}}) {
+            $part->{'extra'}->{'part_associated_section'} = $current;
+          }
+          delete $self->{'current_parts'};
         }
         $self->{'current_section'} = $current;
       } elsif ($command eq 'part') {
-        $self->{'current_part'} = $current;
+        push @{$self->{'current_parts'}}, $current;
       }
     }
    # do that last in order to have the line processed if one of the above

Index: t/30sectioning.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/30sectioning.t,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -b -r1.37 -r1.38
--- t/30sectioning.t    3 Jul 2011 10:17:57 -0000       1.37
+++ t/30sectioning.t    3 Jul 2011 11:11:58 -0000       1.38
@@ -266,6 +266,24 @@
 
 @contents
 '],
+['double_part',
+'@node Top
address@hidden top
+
address@hidden
+* node chapter::
address@hidden menu
+
address@hidden part first
+
+Text part first.
address@hidden part second
+Text part second.
+
address@hidden node chapter
address@hidden chapter after 2 parts
+
+'],
 ['setfilename_on_top_and_after_node',
 '@node Top
 @top In top @setfilename very badly placed setfilename

Index: t/test_utils.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/test_utils.pl,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- t/test_utils.pl     3 Jul 2011 10:17:57 -0000       1.79
+++ t/test_utils.pl     3 Jul 2011 11:11:58 -0000       1.80
@@ -139,7 +139,7 @@
   'block_command_line_contents');
 my @menus_keys = ('menu_next', 'menu_up', 'menu_prev', 'menu_up_hash');
 my @sections_keys = ('section_next', 'section_prev', 'section_up', 
-  'section_childs', 'associated_node');
+  'section_childs', 'associated_node', 'part_associated_section');
 my @node_keys = ('node_next', 'node_prev', 'node_up', 'menus', 
   'associated_section');
 my %avoided_keys_tree;

Index: t/results/sectioning/chapter_before_and_after_part.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/chapter_before_and_after_part.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/sectioning/chapter_before_and_after_part.pl       3 Jul 2011 
10:18:42 -0000       1.4
+++ t/results/sectioning/chapter_before_and_after_part.pl       3 Jul 2011 
11:11:58 -0000       1.5
@@ -214,10 +214,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_part' => {}
@@ -226,14 +224,19 @@
           'number' => 2,
           'section_up' => {}
         }
+      },
+      'level' => 0,
+      'section_childs' => [
+        {}
       ],
       '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]{'extra'}{'associated_part'}
 = $result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1];
-$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]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1];
+$result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1];
+$result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1]{'section_childs'}[0]
 = 
$result_sectioning{'chapter_before_and_after_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$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'} = [];

Index: t/results/sectioning/chapter_node_before_and_after_part.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/chapter_node_before_and_after_part.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/sectioning/chapter_node_before_and_after_part.pl  3 Jul 2011 
10:18:42 -0000       1.7
+++ t/results/sectioning/chapter_node_before_and_after_part.pl  3 Jul 2011 
11:11:58 -0000       1.8
@@ -508,10 +508,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_node' => {
@@ -526,14 +524,19 @@
           'number' => 2,
           'section_up' => {}
         }
+      },
+      'level' => 0,
+      'section_childs' => [
+        {}
       ],
       '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]{'extra'}{'associated_part'}
 = 
$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1];
-$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]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = 
$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1];
+$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'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_childs'}[0]
 = 
$result_sectioning{'chapter_node_before_and_after_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$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'} = {

Index: t/results/sectioning/contents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/contents.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/sectioning/contents.pl    3 Jul 2011 10:18:42 -0000       1.7
+++ t/results/sectioning/contents.pl    3 Jul 2011 11:11:58 -0000       1.8
@@ -767,10 +767,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_part' => {}
@@ -778,7 +776,11 @@
           'level' => 1,
           'number' => 2,
           'section_up' => {}
+        }
         },
+      'level' => 0,
+      'section_childs' => [
+        {},
         {
           'cmdname' => 'chapter',
           'extra' => {},
@@ -822,9 +824,10 @@
 
$result_sectioning{'contents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[0]{'section_childs'}[0];
 
$result_sectioning{'contents'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[0];
 $result_sectioning{'contents'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'contents'};
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[0]{'extra'}{'associated_part'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
-$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[0];
+$result_sectioning{'contents'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
+$result_sectioning{'contents'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
+$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[0] = 
$result_sectioning{'contents'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
+$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'contents'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1];
 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = $result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'contents'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'contents'}{'section_childs'}[1];

Index: t/results/sectioning/node_part_chapter_after_chapter.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/node_part_chapter_after_chapter.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/sectioning/node_part_chapter_after_chapter.pl     3 Jul 2011 
10:18:44 -0000       1.6
+++ t/results/sectioning/node_part_chapter_after_chapter.pl     3 Jul 2011 
11:11:58 -0000       1.7
@@ -704,10 +704,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_node' => {
@@ -722,6 +720,10 @@
           'number' => 2,
           'section_up' => {}
         }
+      },
+      'level' => 0,
+      'section_childs' => [
+        {}
       ],
       'section_prev' => {},
       'section_up' => {}
@@ -730,8 +732,9 @@
 };
 
$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]{'extra'}{'associated_part'}
 = $result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1];
-$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]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1];
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1];
+$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1]{'section_childs'}[0]
 = 
$result_sectioning{'node_part_chapter_after_chapter'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$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'};
 

Index: t/results/sectioning/part_before_section.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/part_before_section.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/sectioning/part_before_section.pl 3 Jul 2011 10:18:44 -0000       
1.4
+++ t/results/sectioning/part_before_section.pl 3 Jul 2011 11:11:58 -0000       
1.5
@@ -165,10 +165,8 @@
   'section_childs' => [
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'section',
           'extra' => {
             'associated_part' => {}
@@ -177,13 +175,18 @@
           'number' => 1,
           'section_up' => {}
         }
+      },
+      'level' => 0,
+      'section_childs' => [
+        {}
       ],
       'section_up' => {}
     }
   ]
 };
-$result_sectioning{'part_before_section'}{'section_childs'}[0]{'section_childs'}[0]{'extra'}{'associated_part'}
 = $result_sectioning{'part_before_section'}{'section_childs'}[0];
-$result_sectioning{'part_before_section'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'part_before_section'}{'section_childs'}[0];
+$result_sectioning{'part_before_section'}{'section_childs'}[0]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'part_before_section'}{'section_childs'}[0];
+$result_sectioning{'part_before_section'}{'section_childs'}[0]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'part_before_section'}{'section_childs'}[0];
+$result_sectioning{'part_before_section'}{'section_childs'}[0]{'section_childs'}[0]
 = 
$result_sectioning{'part_before_section'}{'section_childs'}[0]{'extra'}{'part_associated_section'};
 $result_sectioning{'part_before_section'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'part_before_section'};
 
 $result_errors{'part_before_section'} = [

Index: t/results/sectioning/part_node_before_top.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/part_node_before_top.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/sectioning/part_node_before_top.pl        3 Jul 2011 10:18:44 
-0000       1.6
+++ t/results/sectioning/part_node_before_top.pl        3 Jul 2011 11:11:58 
-0000       1.7
@@ -454,11 +454,8 @@
   'section_childs' => [
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_up' => {}
-    },
-    {
+      'extra' => {
+        'part_associated_section' => {
       'cmdname' => 'top',
       'extra' => {
         'associated_node' => {
@@ -473,12 +470,18 @@
       'section_prev' => {},
       'section_up' => {}
     }
+      },
+      'level' => 0,
+      'section_up' => {}
+    },
+    {}
   ]
 };
+$result_sectioning{'part_node_before_top'}{'section_childs'}[0]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'part_node_before_top'}{'section_childs'}[0];
+$result_sectioning{'part_node_before_top'}{'section_childs'}[0]{'extra'}{'part_associated_section'}{'section_prev'}
 = $result_sectioning{'part_node_before_top'}{'section_childs'}[0];
+$result_sectioning{'part_node_before_top'}{'section_childs'}[0]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'part_node_before_top'};
 $result_sectioning{'part_node_before_top'}{'section_childs'}[0]{'section_up'} 
= $result_sectioning{'part_node_before_top'};
-$result_sectioning{'part_node_before_top'}{'section_childs'}[1]{'extra'}{'associated_part'}
 = $result_sectioning{'part_node_before_top'}{'section_childs'}[0];
-$result_sectioning{'part_node_before_top'}{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'part_node_before_top'}{'section_childs'}[0];
-$result_sectioning{'part_node_before_top'}{'section_childs'}[1]{'section_up'} 
= $result_sectioning{'part_node_before_top'};
+$result_sectioning{'part_node_before_top'}{'section_childs'}[1] = 
$result_sectioning{'part_node_before_top'}{'section_childs'}[0]{'extra'}{'part_associated_section'};
 
 $result_nodes{'part_node_before_top'} = {
   'cmdname' => 'node',

Index: t/results/sectioning/part_node_chapter_after_top.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/part_node_chapter_after_top.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/sectioning/part_node_chapter_after_top.pl 3 Jul 2011 10:18:44 
-0000       1.6
+++ t/results/sectioning/part_node_chapter_after_top.pl 3 Jul 2011 11:11:58 
-0000       1.7
@@ -693,10 +693,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_node' => {
@@ -711,6 +709,10 @@
           'number' => 1,
           'section_up' => {}
         }
+      },
+      'level' => 0,
+      'section_childs' => [
+        {}
       ],
       'section_prev' => {},
       'section_up' => {}
@@ -718,8 +720,9 @@
   ]
 };
 
$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'part_node_chapter_after_top'};
-$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'section_childs'}[0]{'extra'}{'associated_part'}
 = $result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1];
-$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1];
+$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1];
+$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1];
+$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'section_childs'}[0]
 = 
$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'section_prev'}
 = $result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[0];
 
$result_sectioning{'part_node_chapter_after_top'}{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'part_node_chapter_after_top'};
 

Index: t/results/sectioning/setcontentsaftertitlepage.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/setcontentsaftertitlepage.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/sectioning/setcontentsaftertitlepage.pl   3 Jul 2011 10:18:46 
-0000       1.7
+++ t/results/sectioning/setcontentsaftertitlepage.pl   3 Jul 2011 11:11:58 
-0000       1.8
@@ -774,10 +774,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_part' => {}
@@ -785,7 +783,11 @@
           'level' => 1,
           'number' => 2,
           'section_up' => {}
+        }
         },
+      'level' => 0,
+      'section_childs' => [
+        {},
         {
           'cmdname' => 'chapter',
           'extra' => {},
@@ -829,9 +831,10 @@
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'};
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0]{'extra'}{'associated_part'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
-$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0];
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0]
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
+$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'setcontentsaftertitlepage'}{'section_childs'}[1];

Index: t/results/sectioning/setshortcontentsaftertitlepage.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/sectioning/setshortcontentsaftertitlepage.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/sectioning/setshortcontentsaftertitlepage.pl      3 Jul 2011 
10:18:46 -0000       1.7
+++ t/results/sectioning/setshortcontentsaftertitlepage.pl      3 Jul 2011 
11:11:58 -0000       1.8
@@ -774,10 +774,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_part' => {}
@@ -785,7 +783,11 @@
           'level' => 1,
           'number' => 2,
           'section_up' => {}
+        }
         },
+      'level' => 0,
+      'section_childs' => [
+        {},
         {
           'cmdname' => 'chapter',
           'extra' => {},
@@ -829,9 +831,10 @@
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'};
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0]{'extra'}{'associated_part'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
-$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0];
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[0]
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
+$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'setshortcontentsaftertitlepage'}{'section_childs'}[1];

Index: t/results/sectioning/shortcontents.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/sectioning/shortcontents.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- t/results/sectioning/shortcontents.pl       3 Jul 2011 10:18:46 -0000       
1.7
+++ t/results/sectioning/shortcontents.pl       3 Jul 2011 11:11:58 -0000       
1.8
@@ -767,10 +767,8 @@
     },
     {
       'cmdname' => 'part',
-      'extra' => {},
-      'level' => 0,
-      'section_childs' => [
-        {
+      'extra' => {
+        'part_associated_section' => {
           'cmdname' => 'chapter',
           'extra' => {
             'associated_part' => {}
@@ -778,7 +776,11 @@
           'level' => 1,
           'number' => 2,
           'section_up' => {}
+        }
         },
+      'level' => 0,
+      'section_childs' => [
+        {},
         {
           'cmdname' => 'chapter',
           'extra' => {},
@@ -822,9 +824,10 @@
 
$result_sectioning{'shortcontents'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[0]{'section_childs'}[0];
 
$result_sectioning{'shortcontents'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[0];
 $result_sectioning{'shortcontents'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'shortcontents'};
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[0]{'extra'}{'associated_part'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
-$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[0];
+$result_sectioning{'shortcontents'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
+$result_sectioning{'shortcontents'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
+$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[0] 
= 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
+$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[1]{'section_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[1]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];
 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'section_prev'}
 = 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[1];
 
$result_sectioning{'shortcontents'}{'section_childs'}[1]{'section_childs'}[2]{'section_up'}
 = $result_sectioning{'shortcontents'}{'section_childs'}[1];

Index: t/results/sectioning/double_part.pl
===================================================================
RCS file: t/results/sectioning/double_part.pl
diff -N t/results/sectioning/double_part.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/sectioning/double_part.pl 3 Jul 2011 11:11:58 -0000       1.1
@@ -0,0 +1,728 @@
+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);
+
+use utf8;
+
+$result_trees{'double_part'} = {
+  'contents' => [
+    {
+      'contents' => [],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              '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' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              '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' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line_after_command'
+            },
+            {
+              'args' => [
+                {
+                  'parent' => {},
+                  'text' => '* ',
+                  'type' => 'menu_entry_leading_text'
+                },
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'node chapter'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'parent' => {},
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => '
+'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'node-chapter'
+                }
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 5,
+                'macro' => ''
+              },
+              'parent' => {},
+              'type' => 'menu_entry'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'extra' => {
+                        'command' => {}
+                      },
+                      'parent' => {},
+                      'text' => ' ',
+                      'type' => 'empty_spaces_after_command'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => 'menu'
+                    },
+                    {
+                      'parent' => {},
+                      'text' => '
+',
+                      'type' => 'spaces_at_end'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'misc_line_arg'
+                }
+              ],
+              'cmdname' => 'end',
+              'extra' => {
+                'command' => {},
+                'command_argument' => 'menu',
+                'text_arg' => 'menu'
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 6,
+                'macro' => ''
+              },
+              'parent' => {}
+            }
+          ],
+          'extra' => {
+            'end_command' => {}
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 4,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'misc_content' => [
+          {}
+        ]
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'part first'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'part',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Text part first.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'extra' => {
+        'misc_content' => [
+          {}
+        ]
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'part second'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'part',
+      'contents' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => 'Text part second.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'misc_content' => [
+          {}
+        ]
+      },
+      'level' => 0,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 11,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'node chapter'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [],
+            'normalized' => 'node-chapter'
+          }
+        ],
+        'normalized' => 'node-chapter'
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 14,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'chapter after 2 parts'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'associated_part' => {},
+        'misc_content' => [
+          {}
+        ]
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 15,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'double_part'}{'contents'}[0]{'parent'} = 
$result_trees{'double_part'};
+$result_trees{'double_part'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[1]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[1]{'extra'}{'node_content'}[0] = 
$result_trees{'double_part'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = $result_trees{'double_part'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'double_part'}{'contents'}[1]{'parent'} = 
$result_trees{'double_part'};
+$result_trees{'double_part'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'args'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'extra'}{'end_command'}
 = $result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[1]{'parent'} = 
$result_trees{'double_part'}{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'contents'}[2]{'parent'} = 
$result_trees{'double_part'}{'contents'}[2];
+$result_trees{'double_part'}{'contents'}[2]{'extra'}{'misc_content'}[0] = 
$result_trees{'double_part'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[2]{'parent'} = 
$result_trees{'double_part'};
+$result_trees{'double_part'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[3];
+$result_trees{'double_part'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[3]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[3]{'args'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[3];
+$result_trees{'double_part'}{'contents'}[3]{'contents'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[3];
+$result_trees{'double_part'}{'contents'}[3]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[3]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[3]{'contents'}[1]{'parent'} = 
$result_trees{'double_part'}{'contents'}[3];
+$result_trees{'double_part'}{'contents'}[3]{'extra'}{'misc_content'}[0] = 
$result_trees{'double_part'}{'contents'}[3]{'args'}[0]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[3]{'parent'} = 
$result_trees{'double_part'};
+$result_trees{'double_part'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[4];
+$result_trees{'double_part'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[4]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[4]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[4]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[4]{'args'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[4];
+$result_trees{'double_part'}{'contents'}[4]{'contents'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[4]{'contents'}[0];
+$result_trees{'double_part'}{'contents'}[4]{'contents'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[4];
+$result_trees{'double_part'}{'contents'}[4]{'contents'}[1]{'parent'} = 
$result_trees{'double_part'}{'contents'}[4];
+$result_trees{'double_part'}{'contents'}[4]{'extra'}{'misc_content'}[0] = 
$result_trees{'double_part'}{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[4]{'parent'} = 
$result_trees{'double_part'};
+$result_trees{'double_part'}{'contents'}[5]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[5];
+$result_trees{'double_part'}{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[5]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[5]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[5]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[5]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[5]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[5]{'args'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[5];
+$result_trees{'double_part'}{'contents'}[5]{'extra'}{'node_content'}[0] = 
$result_trees{'double_part'}{'contents'}[5]{'args'}[0]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[5]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = $result_trees{'double_part'}{'contents'}[5]{'extra'}{'node_content'};
+$result_trees{'double_part'}{'contents'}[5]{'parent'} = 
$result_trees{'double_part'};
+$result_trees{'double_part'}{'contents'}[6]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'double_part'}{'contents'}[6];
+$result_trees{'double_part'}{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'double_part'}{'contents'}[6]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[6]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'double_part'}{'contents'}[6]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[6]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'double_part'}{'contents'}[6]{'args'}[0];
+$result_trees{'double_part'}{'contents'}[6]{'args'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[6];
+$result_trees{'double_part'}{'contents'}[6]{'contents'}[0]{'parent'} = 
$result_trees{'double_part'}{'contents'}[6];
+$result_trees{'double_part'}{'contents'}[6]{'extra'}{'associated_part'} = 
$result_trees{'double_part'}{'contents'}[4];
+$result_trees{'double_part'}{'contents'}[6]{'extra'}{'misc_content'}[0] = 
$result_trees{'double_part'}{'contents'}[6]{'args'}[0]{'contents'}[1];
+$result_trees{'double_part'}{'contents'}[6]{'parent'} = 
$result_trees{'double_part'};
+
+$result_texis{'double_part'} = '@node Top
address@hidden top
+
address@hidden
+* node chapter::
address@hidden menu
+
address@hidden part first
+
+Text part first.
address@hidden part second
+Text part second.
+
address@hidden node chapter
address@hidden chapter after 2 parts
+
+';
+
+
+$result_texts{'double_part'} = 'top
+***
+
+* node chapter::
+
+part first
+**********
+
+Text part first.
+part second
+***********
+Text part second.
+
+1 chapter after 2 parts
+***********************
+
+';
+
+$result_sectioning{'double_part'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top'
+          }
+        }
+      },
+      'level' => 0,
+      'section_up' => {}
+    },
+    {
+      'cmdname' => 'part',
+      'extra' => {
+        'part_associated_section' => {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'node-chapter'
+              }
+            },
+            'associated_part' => {
+              'cmdname' => 'part',
+              'extra' => {
+                'part_associated_section' => {}
+              },
+              'level' => 0,
+              'section_childs' => [
+                {}
+              ],
+              'section_prev' => {},
+              'section_up' => {}
+            }
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {}
+        }
+      },
+      'level' => 0,
+      'section_prev' => {},
+      'section_up' => {}
+    },
+    {}
+  ]
+};
+$result_sectioning{'double_part'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'double_part'};
+$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}{'extra'}{'part_associated_section'}
 = 
$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
+$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}{'section_childs'}[0]
 = 
$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'};
+$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}{'section_prev'}
 = $result_sectioning{'double_part'}{'section_childs'}[1];
+$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'}{'section_up'}
 = $result_sectioning{'double_part'};
+$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'section_up'}
 = 
$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'};
+$result_sectioning{'double_part'}{'section_childs'}[1]{'section_prev'} = 
$result_sectioning{'double_part'}{'section_childs'}[0];
+$result_sectioning{'double_part'}{'section_childs'}[1]{'section_up'} = 
$result_sectioning{'double_part'};
+$result_sectioning{'double_part'}{'section_childs'}[2] = 
$result_sectioning{'double_part'}{'section_childs'}[1]{'extra'}{'part_associated_section'}{'extra'}{'associated_part'};
+
+$result_nodes{'double_part'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'level' => 0
+    },
+    'normalized' => 'Top'
+  },
+  'menu_child' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {
+          'associated_part' => {
+            'cmdname' => 'part',
+            'extra' => {},
+            'level' => 0
+          }
+        },
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'node-chapter'
+    },
+    'node_prev' => {},
+    'node_up' => {}
+  },
+  'menus' => [
+    {
+      'cmdname' => 'menu',
+      'extra' => {
+        'end_command' => {
+          'cmdname' => 'end',
+          'extra' => {
+            'command' => {},
+            'command_argument' => 'menu',
+            'text_arg' => 'menu'
+          }
+        }
+      }
+    }
+  ],
+  'node_next' => {},
+  'node_up' => {
+    'extra' => {
+      'manual_content' => [
+        {
+          'text' => 'dir'
+        }
+      ]
+    }
+  }
+};
+$result_nodes{'double_part'}{'menu_child'}{'node_prev'} = 
$result_nodes{'double_part'};
+$result_nodes{'double_part'}{'menu_child'}{'node_up'} = 
$result_nodes{'double_part'};
+$result_nodes{'double_part'}{'menus'}[0]{'extra'}{'end_command'}{'extra'}{'command'}
 = $result_nodes{'double_part'}{'menus'}[0];
+$result_nodes{'double_part'}{'node_next'} = 
$result_nodes{'double_part'}{'menu_child'};
+
+$result_menus{'double_part'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'menu_child' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'normalized' => 'node-chapter'
+    },
+    'menu_up' => {},
+    'menu_up_hash' => {
+      'Top' => 1
+    }
+  }
+};
+$result_menus{'double_part'}{'menu_child'}{'menu_up'} = 
$result_menus{'double_part'};
+
+$result_errors{'double_part'} = [];
+
+
+
+$result_converted{'plaintext'}->{'double_part'} = 'top
+***
+
+* Menu:
+
+* node chapter::
+
+Text part first.
+Text part second.
+
+1 chapter after 2 parts
+***********************
+
+';
+
+1;



reply via email to

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