texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp TODO texi2any.pl Texinfo/Structuring...


From: Patrice Dumas
Subject: texinfo/tp TODO texi2any.pl Texinfo/Structuring...
Date: Sat, 15 Oct 2011 11:42:45 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/10/15 11:42:45

Modified files:
        tp             : TODO texi2any.pl 
        tp/Texinfo     : Structuring.pm 
        tp/Texinfo/Convert: HTML.pm 
        tp/t           : html_tests.t test_utils.pl 
Added files:
        tp/t/results/html_tests: index_below.pl 

Log message:
        Index element is the top level element associated with the first 
printindex.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.189&r2=1.190
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/texi2any.pl?cvsroot=texinfo&r1=1.71&r2=1.72
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Structuring.pm?cvsroot=texinfo&r1=1.96&r2=1.97
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/HTML.pm?cvsroot=texinfo&r1=1.182&r2=1.183
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/html_tests.t?cvsroot=texinfo&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/test_utils.pl?cvsroot=texinfo&r1=1.103&r2=1.104
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/html_tests/index_below.pl?cvsroot=texinfo&rev=1.1

Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.189
retrieving revision 1.190
diff -u -b -r1.189 -r1.190
--- TODO        10 Oct 2011 00:07:54 -0000      1.189
+++ TODO        15 Oct 2011 11:42:43 -0000      1.190
@@ -9,6 +9,8 @@
   <macro>@vtable @asis
 Is it right or not?
 
+Warning for obsolete/unused customization variables like USE_SECTIONS?
+
 For plaintext @image output if there is no basename.txt, use alt else
 the basename as [image basename].
 
@@ -248,6 +250,30 @@
 there could be a warning
  warning: @setfilename after the first element
 
+From vincent Belaïche. About svg image files in HTML:
+
+I don't think that supporting svg would be easy: its seems that to embed an
+svg picture you need to declare the width x height of the frame in
+which you embed it, and this information cannot be derived quite
+straightforwardly from the picture.
+With @image you can declare width and height but this is intended for
+scaling. I am not sure whether or not that these arguments can be used
+for the purpose of defining that frame...
+What I did in 5x5 is that coded the height of the frame directly in
+the macro @FIGURE with which I embed the figure, without going through
+an argument.
+The @FIGURE @macro is, for html:
address@hidden FIGURE {F,W}
address@hidden
+<div align="center">
+<embed src="5x5_\F\.svg" height="276"
+ type="image/svg+xml"
+ pluginspage="http://www.adobe.com/svg/viewer/install/"; /></div>
address@hidden html
address@hidden macro
+
+
+
 Add @value to the corresponding commands categories?
 
 Instead of _set_global_multiple_commands and _unset_global_multiple_commands

Index: texi2any.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/texi2any.pl,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- texi2any.pl 12 Oct 2011 23:50:49 -0000      1.71
+++ texi2any.pl 15 Oct 2011 11:42:44 -0000      1.72
@@ -120,7 +120,6 @@
 }
 
 my $srcdir = defined $ENV{'srcdir'} ? $ENV{'srcdir'} : dirname $0;
-# FIXME
 my $libsrcdir = "$srcdir/maintain";
 if ($0 =~ /\.pl$/) {
   unshift @INC, "$libsrcdir/lib/libintl-perl/lib";
@@ -139,13 +138,11 @@
 Locale::Messages->select_package ('gettext_pp');
 
 if ($0 =~ /\.pl$/) {
-  # in case of out of source build, the locales directory should
-  # FIXME srcdir
-  # be in the same directory or in the srcdir, 
-  # FIXME
-  # or in the texi2html directory
+  # in case of build from the source directory, out of source build, 
+  # this helps to locate the locales.
   my $locales_dir_found = 0;
-  foreach my $locales_dir ("../../../tp/t/locales", "$libsrcdir/locales", 
"./locales") {
+  foreach my $locales_dir ("$libsrcdir/../t/locales", "./t/locales", 
+       "../../../tp/t/locales") {
     if (-d $locales_dir) {
       Locale::Messages::bindtextdomain ($strings_textdomain, $locales_dir);
       $locales_dir_found = 1;

Index: Texinfo/Structuring.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Structuring.pm,v
retrieving revision 1.96
retrieving revision 1.97
diff -u -b -r1.96 -r1.97
--- Texinfo/Structuring.pm      6 Oct 2011 22:52:00 -0000       1.96
+++ Texinfo/Structuring.pm      15 Oct 2011 11:42:44 -0000      1.97
@@ -1016,7 +1016,7 @@
 {
   my $root = shift;
   if (!$root->{'type'} or $root->{'type'} ne 'document_root'
-      or !$root->{'contents'} or address@hidden>{'contents'}}) {
+      or !$root->{'contents'}) {
     return $root;
   }
   foreach my $content (@{$root->{'contents'}}) {

Index: Texinfo/Convert/HTML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/HTML.pm,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -b -r1.182 -r1.183
--- Texinfo/Convert/HTML.pm     12 Oct 2011 07:33:13 -0000      1.182
+++ Texinfo/Convert/HTML.pm     15 Oct 2011 11:42:44 -0000      1.183
@@ -5175,8 +5175,21 @@
   if ($self->{'extra'} and $self->{'extra'}->{'printindex'}) {
     my ($element, $root_command) 
      = $self->_get_element($self->{'extra'}->{'printindex'}->[0]);
-    $self->{'global_target_elements'}->{'Index'} = $element
-      if (defined($element));
+    if (defined($element)) {
+      if ($root_command and $root_command->{'cmdname'} eq 'node' 
+          and $element->{'extra'}->{'section'}) {
+        $root_command = $element->{'extra'}->{'section'};
+      }
+      if ($root_command and $root_command->{'cmdname'} ne 'node') {
+        while ($root_command->{'level'} > 1
+               and $root_command->{'section_up'}
+               and $root_command->{'section_up'}->{'parent'}) {
+          $root_command = $root_command->{'section_up'};
+          $element = $root_command->{'parent'};
+        }
+      }
+      $self->{'global_target_elements'}->{'Index'} = $element;
+    }
   }
 
   my $node_top;

Index: t/html_tests.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/html_tests.t,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- t/html_tests.t      2 Oct 2011 19:11:58 -0000       1.9
+++ t/html_tests.t      15 Oct 2011 11:42:44 -0000      1.10
@@ -60,6 +60,16 @@
 
 @top top
 '],
+['index_below',
+'@top top
+
address@hidden chap
+
address@hidden sec
+
address@hidden entry
address@hidden cp
+', {'test_split' => 'section'}, {'USE_NODES', 0}],
 ['simple_menu',
 '@menu
 * (ggg):: description

Index: t/test_utils.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/test_utils.pl,v
retrieving revision 1.103
retrieving revision 1.104
diff -u -b -r1.103 -r1.104
--- t/test_utils.pl     12 Oct 2011 23:52:21 -0000      1.103
+++ t/test_utils.pl     15 Oct 2011 11:42:44 -0000      1.104
@@ -436,6 +436,9 @@
   my $split = '';
   if ($parser_options->{'test_split'}) {
     $split = $parser_options->{'test_split'};
+    if ($split ne 'node' and $split ne 'section') {
+      warn "In test_utils.pl, test_split should be node or section, not 
$split\n";
+    }
     delete $parser_options->{'test_split'};
   }
   my $split_pages = '';
@@ -484,7 +487,7 @@
   my ($errors, $error_nrs) = $parser->errors();
   my ($index_names, $merged_indices, $index_entries) 
        = $parser->indices_information();
-  # FIXME maybe it would be good to compare $merged_index_entries?
+  # FIXME maybe it would be good to compare $merged_index_entries?
   my $merged_index_entries 
      = Texinfo::Structuring::merge_indices($index_names, $merged_indices, 
$index_entries);
   
@@ -516,6 +519,8 @@
                                   $parser_options, $converter_options);
       $converted_errors{$format} = undef if (address@hidden);
       #print STDERR "$format: \n$converted{$format}";
+
+      # output converted result and errors in files if $arg_output is set
       if ($arg_output) {
         mkdir ("$output_files_dir/$self->{'name'}") 
           if (! -d "$output_files_dir/$self->{'name'}");
@@ -554,7 +559,12 @@
     }
   }
   my $directions_text;
-  # re-associate elements with the document_root.
+  # re-associate top level command with the document_root in case a converter
+  # split the document, by resetting their 'parent' key.
+  # It may be noticed that this is only done after all conversions.  This 
+  # means that depending on the order of converters call, trees feed to 
+  # converters may have a document_root as top level command parent or 
+  # elements.  All the converters will have the document_root as argument.
   Texinfo::Structuring::_unsplit($result);
   my $elements;
   if ($split eq 'node') {

Index: t/results/html_tests/index_below.pl
===================================================================
RCS file: t/results/html_tests/index_below.pl
diff -N t/results/html_tests/index_below.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/html_tests/index_below.pl 15 Oct 2011 11:42:45 -0000      1.1
@@ -0,0 +1,576 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors 
+   %result_elements %result_directions_text);
+
+use utf8;
+
+$result_trees{'index_below'} = [
+  {
+    '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' => 'top',
+        'contents' => [
+          {
+            'parent' => {},
+            'text' => '
+',
+            'type' => 'empty_line'
+          }
+        ],
+        'extra' => {
+          'misc_content' => [
+            {}
+          ]
+        },
+        'level' => 0,
+        'line_nr' => {
+          'file_name' => '',
+          'line_nr' => 1,
+          'macro' => ''
+        },
+        'parent' => {}
+      }
+    ],
+    'extra' => {
+      'element_command' => {},
+      'section' => {}
+    },
+    'type' => 'element'
+  },
+  {
+    'contents' => [
+      {
+        'args' => [
+          {
+            'contents' => [
+              {
+                'extra' => {
+                  'command' => {}
+                },
+                'parent' => {},
+                'text' => ' ',
+                'type' => 'empty_spaces_after_command'
+              },
+              {
+                'parent' => {},
+                'text' => 'chap'
+              },
+              {
+                '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' => 3,
+          'macro' => ''
+        },
+        'number' => 1,
+        'parent' => {}
+      }
+    ],
+    'element_prev' => {},
+    'extra' => {
+      'element_command' => {},
+      'section' => {}
+    },
+    'type' => 'element'
+  },
+  {
+    'contents' => [
+      {
+        'args' => [
+          {
+            'contents' => [
+              {
+                'extra' => {
+                  'command' => {}
+                },
+                'parent' => {},
+                'text' => ' ',
+                'type' => 'empty_spaces_after_command'
+              },
+              {
+                'parent' => {},
+                'text' => 'sec'
+              },
+              {
+                'parent' => {},
+                'text' => '
+',
+                'type' => 'spaces_at_end'
+              }
+            ],
+            'parent' => {},
+            'type' => 'misc_line_arg'
+          }
+        ],
+        'cmdname' => 'section',
+        'contents' => [
+          {
+            'parent' => {},
+            'text' => '
+',
+            'type' => 'empty_line'
+          },
+          {
+            'args' => [
+              {
+                'contents' => [
+                  {
+                    'extra' => {
+                      'command' => {}
+                    },
+                    'parent' => {},
+                    'text' => ' ',
+                    'type' => 'empty_spaces_after_command'
+                  },
+                  {
+                    'parent' => {},
+                    'text' => 'entry'
+                  },
+                  {
+                    'parent' => {},
+                    'text' => '
+',
+                    'type' => 'spaces_at_end'
+                  }
+                ],
+                'parent' => {},
+                'type' => 'misc_line_arg'
+              }
+            ],
+            'cmdname' => 'cindex',
+            'extra' => {
+              'index_entry' => {
+                'command' => {},
+                'content' => [
+                  {}
+                ],
+                'content_normalized' => [],
+                'in_code' => 0,
+                'index_at_command' => 'cindex',
+                'index_name' => 'cp',
+                'index_prefix' => 'c',
+                'key' => 'entry',
+                'number' => 1
+              },
+              'misc_content' => []
+            },
+            'line_nr' => {
+              'file_name' => '',
+              'line_nr' => 7,
+              'macro' => ''
+            },
+            'parent' => {},
+            'type' => 'index_entry_command'
+          },
+          {
+            'args' => [
+              {
+                'contents' => [
+                  {
+                    'extra' => {
+                      'command' => {}
+                    },
+                    'parent' => {},
+                    'text' => ' ',
+                    'type' => 'empty_spaces_after_command'
+                  },
+                  {
+                    'parent' => {},
+                    'text' => 'cp'
+                  },
+                  {
+                    'parent' => {},
+                    'text' => '
+',
+                    'type' => 'spaces_at_end'
+                  }
+                ],
+                'parent' => {},
+                'type' => 'misc_line_arg'
+              }
+            ],
+            'cmdname' => 'printindex',
+            'extra' => {
+              'misc_args' => [
+                'cp'
+              ]
+            },
+            'line_nr' => {
+              'file_name' => '',
+              'line_nr' => 8,
+              'macro' => ''
+            },
+            'parent' => {}
+          }
+        ],
+        'extra' => {
+          'misc_content' => [
+            {}
+          ]
+        },
+        'level' => 2,
+        'line_nr' => {
+          'file_name' => '',
+          'line_nr' => 5,
+          'macro' => ''
+        },
+        'number' => '1.1',
+        'parent' => {}
+      }
+    ],
+    'element_prev' => {},
+    'extra' => {
+      'element_command' => {},
+      'section' => {}
+    },
+    'type' => 'element'
+  }
+];
+$result_trees{'index_below'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'index_below'}[0];
+$result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'index_below'}[0]{'contents'}[1];
+$result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'index_below'}[0]{'contents'}[1];
+$result_trees{'index_below'}[0]{'contents'}[1]{'contents'}[0]{'parent'} = 
$result_trees{'index_below'}[0]{'contents'}[1];
+$result_trees{'index_below'}[0]{'contents'}[1]{'extra'}{'misc_content'}[0] = 
$result_trees{'index_below'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'index_below'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'index_below'}[0];
+$result_trees{'index_below'}[0]{'extra'}{'element_command'} = 
$result_trees{'index_below'}[0]{'contents'}[1];
+$result_trees{'index_below'}[0]{'extra'}{'section'} = 
$result_trees{'index_below'}[0]{'contents'}[1];
+$result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'index_below'}[1]{'contents'}[0];
+$result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0];
+$result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0]{'parent'} = 
$result_trees{'index_below'}[1]{'contents'}[0];
+$result_trees{'index_below'}[1]{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'index_below'}[1]{'contents'}[0];
+$result_trees{'index_below'}[1]{'contents'}[0]{'extra'}{'misc_content'}[0] = 
$result_trees{'index_below'}[1]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'index_below'}[1]{'contents'}[0]{'parent'} = 
$result_trees{'index_below'}[1];
+$result_trees{'index_below'}[1]{'element_prev'} = 
$result_trees{'index_below'}[0];
+$result_trees{'index_below'}[1]{'extra'}{'element_command'} = 
$result_trees{'index_below'}[1]{'contents'}[0];
+$result_trees{'index_below'}[1]{'extra'}{'section'} = 
$result_trees{'index_below'}[1]{'contents'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'index_below'}[2]{'contents'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0]{'parent'} = 
$result_trees{'index_below'}[2]{'contents'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'index_below'}[2]{'contents'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'command'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'content'}[0]
 = 
$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'content_normalized'}
 = 
$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'content'};
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'misc_content'}
 = 
$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'extra'}{'index_entry'}{'content'};
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'index_below'}[2]{'contents'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'args'}[0]{'parent'}
 = $result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2];
+$result_trees{'index_below'}[2]{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'index_below'}[2]{'contents'}[0];
+$result_trees{'index_below'}[2]{'contents'}[0]{'extra'}{'misc_content'}[0] = 
$result_trees{'index_below'}[2]{'contents'}[0]{'args'}[0]{'contents'}[1];
+$result_trees{'index_below'}[2]{'contents'}[0]{'parent'} = 
$result_trees{'index_below'}[2];
+$result_trees{'index_below'}[2]{'element_prev'} = 
$result_trees{'index_below'}[1];
+$result_trees{'index_below'}[2]{'extra'}{'element_command'} = 
$result_trees{'index_below'}[2]{'contents'}[0];
+$result_trees{'index_below'}[2]{'extra'}{'section'} = 
$result_trees{'index_below'}[2]{'contents'}[0];
+
+$result_texis{'index_below'} = '@top top
+
address@hidden chap
+
address@hidden sec
+
address@hidden entry
address@hidden cp
+';
+
+
+$result_texts{'index_below'} = 'top
+***
+
+1 chap
+******
+
+1.1 sec
+=======
+
+';
+
+$result_sectioning{'index_below'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {},
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {},
+          'level' => 1,
+          'number' => 1,
+          'section_childs' => [
+            {
+              'cmdname' => 'section',
+              'extra' => {},
+              'level' => 2,
+              'number' => '1.1',
+              'section_up' => {}
+            }
+          ],
+          'section_up' => {},
+          'toplevel_prev' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'index_below'}{'section_childs'}[0]{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'index_below'}{'section_childs'}[0]{'section_childs'}[0];
+$result_sectioning{'index_below'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'index_below'}{'section_childs'}[0];
+$result_sectioning{'index_below'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'index_below'}{'section_childs'}[0];
+$result_sectioning{'index_below'}{'section_childs'}[0]{'section_up'} = 
$result_sectioning{'index_below'};
+
+$result_errors{'index_below'} = [];
+
+
+$result_elements{'index_below'} = [
+  {
+    'extra' => {
+      'directions' => {
+        'FastForward' => {
+          'extra' => {
+            'directions' => {
+              'Back' => {},
+              'FastBack' => {},
+              'Forward' => {
+                'extra' => {
+                  'directions' => {
+                    'Back' => {},
+                    'FastBack' => {},
+                    'This' => {},
+                    'Up' => {}
+                  },
+                  'element_command' => {
+                    'cmdname' => 'section',
+                    'extra' => {},
+                    'level' => 2,
+                    'number' => '1.1'
+                  },
+                  'section' => {}
+                },
+                'type' => 'element'
+              },
+              'This' => {},
+              'Up' => {}
+            },
+            'element_command' => {
+              'cmdname' => 'chapter',
+              'extra' => {},
+              'level' => 1,
+              'number' => 1
+            },
+            'section' => {}
+          },
+          'type' => 'element'
+        },
+        'Forward' => {},
+        'This' => {}
+      },
+      'element_command' => {
+        'cmdname' => 'top',
+        'extra' => {},
+        'level' => 0
+      },
+      'section' => {}
+    },
+    'type' => 'element'
+  },
+  {},
+  {}
+];
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Back'}
 = $result_elements{'index_below'}[0];
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'FastBack'}
 = $result_elements{'index_below'}[0];
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'}{'extra'}{'directions'}{'Back'}
 = $result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'}{'extra'}{'directions'}{'FastBack'}
 = $result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'}{'extra'}{'directions'}{'This'}
 = 
$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'}{'extra'}{'directions'}{'Up'}
 = $result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'}{'extra'}{'section'}
 = 
$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'}{'extra'}{'element_command'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'This'}
 = $result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Up'}
 = $result_elements{'index_below'}[0];
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'section'}
 = 
$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'element_command'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'Forward'} = 
$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'};
+$result_elements{'index_below'}[0]{'extra'}{'directions'}{'This'} = 
$result_elements{'index_below'}[0];
+$result_elements{'index_below'}[0]{'extra'}{'section'} = 
$result_elements{'index_below'}[0]{'extra'}{'element_command'};
+$result_elements{'index_below'}[1] = 
$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'};
+$result_elements{'index_below'}[2] = 
$result_elements{'index_below'}[0]{'extra'}{'directions'}{'FastForward'}{'extra'}{'directions'}{'Forward'};
+
+
+
+$result_directions_text{'index_below'} = 'element: @top top
+  FastForward: @chapter chap
+  Forward: @chapter chap
+  This: @top top
+element: @chapter chap
+  Back: @top top
+  FastBack: @top top
+  Forward: @section sec
+  This: @chapter chap
+  Up: @top top
+element: @section sec
+  Back: @chapter chap
+  FastBack: @chapter chap
+  This: @section sec
+  Up: @chapter chap
+';
+
+
+$result_converted{'html'}->{'index_below'} = '<!DOCTYPE html PUBLIC 
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texi2html, http://www.gnu.org/software/texinfo/ -->
+<head>
+<title>top</title>
+
+<meta name="description" content="top">
+<meta name="keywords" content="top">
+<meta name="resource-type" content="document">
+<meta name="distribution" content="global">
+<meta name="Generator" content="texi2html">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<link href="#top" rel="start" title="top">
+<link href="#chap" rel="index" title="1 chap">
+<style type="text/css">
+<!--
+a.summary-letter {text-decoration: none}
+blockquote.smallquotation {font-size: smaller}
+div.display {margin-left: 3.2em}
+div.example {margin-left: 3.2em}
+div.lisp {margin-left: 3.2em}
+div.smalldisplay {margin-left: 3.2em}
+div.smallexample {margin-left: 3.2em}
+div.smalllisp {margin-left: 3.2em}
+pre.display {font-family: serif}
+pre.format {font-family: serif}
+pre.menu-comment {font-family: serif}
+pre.menu-preformatted {font-family: serif}
+pre.smalldisplay {font-family: serif; font-size: smaller}
+pre.smallexample {font-size: smaller}
+pre.smallformat {font-family: serif; font-size: smaller}
+pre.smalllisp {font-size: smaller}
+span.nocodebreak {white-space:pre}
+span.nolinebreak {white-space:pre}
+span.roman {font-family:serif; font-weight:normal}
+span.sansserif {font-family:sans-serif; font-weight:normal}
+ul.no-bullet {list-style: none}
+-->
+</style>
+
+
+</head>
+
+<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" 
vlink="#800080" alink="#FF0000">
+<a name="top"></a>
+<div class="header">
+<p>
+ &nbsp; [<a href="#chap" title="Index" rel="index">Index</a>]</p>
+</div>
+<h1 class="top">top</h1>
+
+<hr>
+<a name="chap"></a>
+<div class="header">
+<p>
+ &nbsp; [<a href="#chap" title="Index" rel="index">Index</a>]</p>
+</div>
+<h2 class="chapter">1 chap</h2>
+
+<hr>
+<a name="sec"></a>
+<div class="header">
+<p>
+ &nbsp; [<a href="#chap" title="Index" rel="index">Index</a>]</p>
+</div>
+<h3 class="section">1.1 sec</h3>
+
+<a name="index-entry"></a>
+<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#sec_cp_letter-E"><b>E</b></a>
+ &nbsp; 
+</td></tr></table>
+<table class="index-cp" border="0">
+<tr><td></td><th align="left">Index Entry</th><td>&nbsp;</td><th align="left"> 
Section</th></tr>
+<tr><td colspan="4"> <hr></td></tr>
+<tr><th><a name="sec_cp_letter-E">E</a></th><td></td><td></td></tr>
+<tr><td></td><td valign="top"><a 
href="#index-entry">entry</a>:</td><td>&nbsp;</td><td valign="top"><a 
href="#sec">1.1 sec</a></td></tr>
+<tr><td colspan="4"> <hr></td></tr>
+</table>
+<table><tr><th valign="top">Jump to: &nbsp; </th><td><a class="summary-letter" 
href="#sec_cp_letter-E"><b>E</b></a>
+ &nbsp; 
+</td></tr></table>
+<hr>
+<p>
+
+
+</p>
+</body>
+</html>
+';
+
+1;



reply via email to

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