texinfo-commits
[Top][All Lists]
Advanced

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

texinfo/tp TODO Texinfo/Common.pm Texinfo/Conve...


From: Patrice Dumas
Subject: texinfo/tp TODO Texinfo/Common.pm Texinfo/Conve...
Date: Wed, 02 Nov 2011 19:13:58 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/11/02 19:13:58

Modified files:
        tp             : TODO 
        tp/Texinfo     : Common.pm 
        tp/Texinfo/Convert: HTML.pm 
        tp/t           : html_tests.t 
Added files:
        tp/t/results/html_tests: test_xrefautomaticsectiontitle.pl 

Log message:
        Handle @xrefautomaticsectiontitle.
        
        Rearrange TODO.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.202&r2=1.203
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Common.pm?cvsroot=texinfo&r1=1.89&r2=1.90
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/HTML.pm?cvsroot=texinfo&r1=1.198&r2=1.199
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/html_tests.t?cvsroot=texinfo&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/html_tests/test_xrefautomaticsectiontitle.pl?cvsroot=texinfo&rev=1.1

Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.202
retrieving revision 1.203
diff -u -b -r1.202 -r1.203
--- TODO        2 Nov 2011 13:06:43 -0000       1.202
+++ TODO        2 Nov 2011 19:13:57 -0000       1.203
@@ -2,18 +2,26 @@
 perl -w t/02coverage.t -o
 xmllint --nonet --noout --valid commands.xml
 
-Test for the handling of #line.
+Before next release
+===================
 
-Warning for obsolete/unused customization variables like USE_SECTIONS
-(a FIXME in Texinfo/Common.pm).?
+(A) do something for?
address@hidden txicodequoteundirected
address@hidden
address@hidden txicodequotebacktick
address@hidden
 
-Right now VERBOSE is almost not used.
+Verify that everything on 
+https://savannah.gnu.org/bugs/?group=texinfo
+is fixed and tested for.
+Remains:
+https://savannah.gnu.org/bugs/?15514
 
-There should be a warning for something like
address@hidden text
-...
 
-In tp, for node-Next sectioning commands directions are taken into 
+Bugs
+====
+
+(A) In tp, for node-Next sectioning commands directions are taken into 
 account even if there are no automatic directions. Thus
  @node First node,,Top,Top
  @chapter first node chapter
@@ -29,22 +37,112 @@
 is not right, space should be doubled after @abbr{AAA}, test in
 plaintext_tests/punctuation_abbr_acronym
 
+There should be a warning for something like
address@hidden text
+...
 
-Handle better @exdent in html? (there is a FIXME in the code)
+Instead of _set_global_multiple_commands and _unset_global_multiple_commands
+have a better granularity and do something per command, with the possibility
+to really revert everything, including things that are not set by set_conf.
+
+Texinfo::Convert::Text
address@hidden in menu lines (and maybe at other places) should be replaced by 
+\n and not eat the end of line.
+
+Punctuation and spaces before @image do not lead to a doubling of space.
+
+Following should be an error:
address@hidden
address@hidden A heading
address@hidden example
+
+sectioning/next_in_menu_is_below there should certainly be a warning for
+the subsection that is both below and next the section, because it is 
+next in menu.
+
+tests/indices/index_entry_in_footnote_separated_info the node of index
+entry is Top, it should be the node created especially for the footnote
+and the lines count should also be adjusted.
+
+Image on sectioning command line haven't their length ignored correctly.
+Not sure it is a big deal.  An example in sectioning/at_commands_in_refs.
+
+Missing warnings in
+t/19def.t empty_def_arguments
+for 
address@hidden {} {}
address@hidden {}
+
+warn when a @noindent/@indent appears within a paragraph.
+
+in info_tests/error_in_footnote there is an error message for each 
+listoffloats;  Line numbers are right, though, so maybe this is not
+an issue.
+
+t/30sectioning.t setfilename_on_top_and_after_node
+there could be a warning
+ warning: @setfilename after the first element
+
+
+Missing tests
+=============
+
+Test for the handling of #line.
+
+Test tree leading to non empty preamble_before_setfilename.  Currently there
+are none in the test suite, maybe require a real file as input.
+
+In html, test 
+ empty lines at the begining, 
+ content ignored before setfilename, 
+for the different cases of element/no element.  This is to be done with 
+real input files, or test_utils.pl should be changed to parse entry like 
+a file.
+In html test empty @top for title, with different cases for 
+setcontentsaftertit* and for anchors.
+
+Tests in contents/ are incorporated?
+
+test an lone @contents without any sectioning command.
+
+Test @address@hidden and @sc{@'e} in HTML with 8bit and utf_, with and without
+enable encoding and entities.
+
+Test end_line_count in Texinfo/Convert/ containers.
+
+Test no empty line before and after a sectioning command.  With text, but
+also commands.
+
+Test character lengths and encoding.  For instance tests in 
+encodings/at_commands_in_refs_utf8.texi
+
+use test ogoutf.texi ogolat2.texi for html.
+
+test empty line in block or brace command in menu description.
+
+
+Future features
+===============
+
+(A) Warning for obsolete/unused customization variables like USE_SECTIONS
+(a FIXME in Texinfo/Common.pm).?
 
-When the HTML.pm is finished, document the API, that is everything
-in Texinfo::Config.
+Right now VERBOSE is almost not used.
+
+Handle better @exdent in html? (there is a FIXME in the code)
 
-Add an API for everything used in conf, for example in page_head, use 
-$self->title_string() and so on and so forth.  
+Check the design of the HTML.pm API.  Document the API, in particular
+everything in Texinfo::Config.  Add an API for everything used in the 
+default functions, for example in page_head, use $self->title_string() 
+and so on and so forth.  
 
 add --output-encoding.  Design better the encoding handling.
 
-* docbook: in function no style.
-  replaceable is for @var or function argument. Only characters.
-  Maybe replaced with parameter?
 
-  Instead of synopsis may use specialized synopsis, funcsynopsis/funcprototype
+DocBook
+=======
+
+* Instead of synopsis may use specialized synopsis, funcsynopsis/funcprototype
   for deftype*, funcdef for defffn, ooclass for object oriented.
   deffn:
   <funcsynopsis><funcprototype><funcdef 
role=...><function>d--effn_name</function></funcdef><paramdef><parameter>args</parameter></paramdef></funcprototype></funcsynopsis>
@@ -72,42 +170,20 @@
 
   put <title> in <articleinfo>?
 
-* to solve above issue (first issue), the definition arg formatted with
-  simple_format should alo be passed down
+  how to handle @sc in docbook?
 
 * in docbook, when there is only one section <article> should be better
   than book. Maybe the best way to do that would be passing the
   information that there is only one section to the functions formatting
   the page header and page footer.
 
-* how to handle @sc in docbook?
+
+Interrogations and remarks
+==========================
 
 Should more Converter ignore the last new line (with type 
 last_raw_newline) of a raw block format?
 
-Test tree leading to non empty preamble_before_setfilename.  Currently there
-are none in the test suite, maybe require a real file as input.
-
-Handle
address@hidden on|off
-(does nothing in info, in HTML automatically set the section name as 3rd
-arg of @*ref).
-https://savannah.gnu.org/bugs/?11700
-
-do something for?
address@hidden txicodequoteundirected
address@hidden
address@hidden txicodequotebacktick
address@hidden
-
-Test @w{'} for the substitution of '.
-
-Before the release, verify that everything on 
-https://savannah.gnu.org/bugs/?group=texinfo
-is fixed and tested for.
-Remains:
-https://savannah.gnu.org/bugs/?15514
-
 In a first step, close when the the command to be closed is at the 
 top of the tree, not when it should be closed theoretically.
 Then it could be possible to come back to the place where the command
@@ -121,11 +197,6 @@
 @ protecting end of lines in @def* is not kept in any way in the tree.
 Maybe it could be possible to have it as a 'type'?
 
-in HTML, the argument of a quotation is ignored if the quotation is empty,
-like in
- @quotation thing
- @end quotation
-
 def/end_of_lines_protected_in_footnote.pl the footnote is
    (1)  -- category: deffn_name arguments arg2 more args with end of line
 and not 
@@ -134,21 +205,11 @@
 It happens this way because the paragraph starts right after the footnote 
 number.
 
-In html, test 
- empty lines at the begining, 
- content ignored before setfilename, 
-for the different cases of element/no element.  This is to be done with 
-real input files, or test_utils.pl should be changed to parse entry like 
-a file.
-In html test empty @top for title, with different cases for 
-setcontentsaftertit* and for anchors.
-
-Tests in contents/ are incorporated?
-
-test an lone @contents without any sectioning command.
-
-Test @address@hidden and @sc{@'e} in HTML with 8bit and utf_, with and without
-enable encoding and entities.
+in HTML, the argument of a quotation is ignored if the quotation is empty,
+as in
+ @quotation thing
+ @end quotation
+Is it really a bug?
 
 In singular manual, the first node is the Top node, it has no associated
 sectioning command.  The up_section for this node is set to the first
@@ -162,71 +223,17 @@
 would be different (for example Info and Plaintext even if converting HTML).
 This requires a test, to begin with.
 
-An unknwown command in a context where not all commands are accepted leads
-to an error message.  There is a FIXME in the code.  The test case is
-macro/unknown_macro_on_line_command
-
-sectioning/next_in_menu_is_below there should certainly be a warning for
-the subsection that is both below and next the section, because it is 
-next in menu.
-
-Punctuation and spaces before @image do not lead to a doubling of space.
-
 Use INLINE_INSERTCOPYING as the default for some formats?
 
-HEADERS is not used to determine if node headers are output or not, this is 
-determined by the module used (Plaintext.pm or Info.pm).  No idea whether
-it is right or wrong.
-
-tests/indices/index_entry_in_footnote_separated_info the node of index
-entry is Top, it should be the node created especially for the footnote
-and the lines count should also be adjusted.
-
-Test end_line_count in Texinfo/Convert/ containers.
-
-Test no empty line before and after a sectioning command.  With text, but
-also commands.
-
-Test character lengths and encoding.  For instance tests in 
-encodings/at_commands_in_refs_utf8.texi
-
-use test ogoutf.texi ogolat2.texi for html.
-
-Image on sectioning command line haven't their length ignored correctly.
-Not sure it is a big deal.  An example in sectioning/at_commands_in_refs.
-
-Following should be an error:
address@hidden
address@hidden A heading
address@hidden example
-
-test empty line in block or brace command in menu description.
+In HTML, HEADERS is used.  But not in other modules, especially not in
+Plaintext.pm or Info.pm, this is determined by the module used (Plaintext.pm
+or Info.pm).  No idea whether it is right or wrong.
 
 in hyphenation: only text and accent commands, and should
 only appear in toplevel
 
-Missing warnings in
-t/19def.t empty_def_arguments
-for 
address@hidden {} {}
address@hidden {}
-
-warn when a @noindent/@indent appears within a paragraph.
-
-in info_tests/error_in_footnote there is an error message for each 
-listoffloats;  Line numbers are right, though, so maybe this is not
-an issue.
-
-Texinfo::Convert::Text
address@hidden in menu lines (and maybe at other places) should be replaced by 
-\n and not eat the end of line.
-
 use definfoenclose information in Convert::Text?
 
-t/30sectioning.t setfilename_on_top_and_after_node
-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
@@ -249,15 +256,9 @@
 @end html
 @end macro
 
-
-
 Add @value to the corresponding commands categories?
 
-Instead of _set_global_multiple_commands and _unset_global_multiple_commands
-have a better granularity and do something per command, with the possibility
-to really revert everything, including things that are not set by set_conf.
-
-Functions (?):
+Functions to document (?):
 sectioning_command_target_name
 node_target_name
 
@@ -267,7 +268,7 @@
 
 
 Incorporation of texi2html tests
---------------------------------
+================================
 
 tests in test/macros, not incorporated
 glossary.texi

Index: Texinfo/Common.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Common.pm,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -b -r1.89 -r1.90
--- Texinfo/Common.pm   1 Nov 2011 16:08:19 -0000       1.89
+++ Texinfo/Common.pm   2 Nov 2011 19:13:57 -0000       1.90
@@ -85,7 +85,7 @@
         'evenfooting', 'oddheading', 'oddfooting', 'headings',
         'allowcodebreaks', 'frenchspacing', 'exampleindent',
         'firstparagraphindent', 'paragraphindent', 'clickstyle',
-        'documentlanguage');
+        'documentlanguage', 'xrefautomaticsectiontitle');
 
 # those should be unique
 my @document_global_at_commands = ('contents', 'shortcontents',

Index: Texinfo/Convert/HTML.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/HTML.pm,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -b -r1.198 -r1.199
--- Texinfo/Convert/HTML.pm     2 Nov 2011 00:44:05 -0000       1.198
+++ Texinfo/Convert/HTML.pm     2 Nov 2011 19:13:57 -0000       1.199
@@ -948,6 +948,7 @@
   'INDEX_ENTRY_COLON'    => ':',
   'BODYTEXT'             => undef,
   'documentlanguage'     => 'en',
+  'xrefautomaticsectiontitle' => 'off',
   'SHOW_TITLE'           => 1,
   'USE_TITLEPAGE_FOR_TITLE' => 0,
   'MONOLITHIC'           => 1,
@@ -1066,11 +1067,10 @@
 my @informative_global_commands = ('contents', 'shortcontents',
   'summarycontents', 'allowcodebreaks', 'documentlanguage',
   'footnotestyle', 'documentencoding', 
-  'setcontentsaftertitlepage', 'setshortcontentsaftertitlepage');
+  'setcontentsaftertitlepage', 'setshortcontentsaftertitlepage',
+  'xrefautomaticsectiontitle');
 # taken from global
-# 'xrefautomaticsectiontitle' (or in Parser?)
 # 'documentencoding'
-# 'setcontentsaftertitlepage', 'setshortcontentsaftertitlepage'
 # 'novalidate'
 foreach my $misc_command(@informative_global_commands,
         'verbatiminclude', 'insertcopying', 'printindex', 'listoffloats',
@@ -2914,10 +2914,15 @@
     my $command = $self->command_element_command($node);
     $command = $node if (!$node->{'extra'}->{'associated_section'}
                          or $node->{'extra'}->{'associated_section'} ne 
$command);
+
     my $href = $self->command_href($command);
 
     if (!defined($name)) {
-      if (!$self->get_conf('SHORT_REF')) {
+      if ($self->get_conf('xrefautomaticsectiontitle') eq 'on'
+         and $node->{'extra'}->{'associated_section'}) {
+        $command = $node->{'extra'}->{'associated_section'};
+        $name = $self->command_text($command, 'text_nonumber');
+      } elsif (!$self->get_conf('SHORT_REF')) {
         $name = $self->command_text($command, 'text_nonumber');
         #die "$command $command->{'normalized'}" if (!defined($name));
       } elsif (defined($args->[0]->{'code'})) {

Index: t/html_tests.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/html_tests.t,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- t/html_tests.t      22 Oct 2011 18:41:44 -0000      1.11
+++ t/html_tests.t      2 Nov 2011 19:13:57 -0000       1.12
@@ -137,6 +137,25 @@
 
 @shortcontents
 
+'],
+['test_xrefautomaticsectiontitle',
+'@node Top
address@hidden top
+
address@hidden
+* chap::
address@hidden menu
+
address@hidden chap
address@hidden chapter
+
address@hidden on
+
address@hidden
+
address@hidden off
+
address@hidden
 ']
 );
 

Index: t/results/html_tests/test_xrefautomaticsectiontitle.pl
===================================================================
RCS file: t/results/html_tests/test_xrefautomaticsectiontitle.pl
diff -N t/results/html_tests/test_xrefautomaticsectiontitle.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/html_tests/test_xrefautomaticsectiontitle.pl      2 Nov 2011 
19:13:57 -0000       1.1
@@ -0,0 +1,851 @@
+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{'test_xrefautomaticsectiontitle'} = {
+  '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' => 'chap'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'menu_entry_node'
+                },
+                {
+                  'parent' => {},
+                  'text' => '::',
+                  'type' => 'menu_entry_separator'
+                },
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => '
+'
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'preformatted'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'menu_entry_description'
+                }
+              ],
+              'extra' => {
+                'menu_entry_description' => {},
+                'menu_entry_node' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'chap'
+                }
+              },
+              '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' => 'chap'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [],
+            'normalized' => 'chap'
+          }
+        ],
+        'normalized' => 'chap'
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 8,
+        'macro' => ''
+      },
+      'parent' => {}
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'extra' => {
+                'command' => {}
+              },
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'chapter'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'chapter',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'extra' => {
+                    'command' => {}
+                  },
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'on'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'xrefautomaticsectiontitle',
+          'extra' => {
+            'misc_args' => [
+              'on'
+            ]
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 11,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'chap'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'xref',
+              'contents' => [],
+              'extra' => {
+                'brace_command_contents' => [
+                  [
+                    {}
+                  ]
+                ],
+                'label' => {},
+                'node_argument' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'chap'
+                }
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 13,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'extra' => {
+                    'command' => {}
+                  },
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'off'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'xrefautomaticsectiontitle',
+          'extra' => {
+            'misc_args' => [
+              'off'
+            ]
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 15,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'contents' => [
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'parent' => {},
+                      'text' => 'chap'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_arg'
+                }
+              ],
+              'cmdname' => 'xref',
+              'contents' => [],
+              'extra' => {
+                'brace_command_contents' => [
+                  [
+                    {}
+                  ]
+                ],
+                'label' => {},
+                'node_argument' => {
+                  'node_content' => [
+                    {}
+                  ],
+                  'normalized' => 'chap'
+                }
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 17,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '.
+'
+            }
+          ],
+          'parent' => {},
+          'type' => 'paragraph'
+        }
+      ],
+      'extra' => {
+        'misc_content' => [
+          {}
+        ]
+      },
+      'level' => 1,
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 9,
+        'macro' => ''
+      },
+      'number' => 1,
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[0]{'parent'} = 
$result_trees{'test_xrefautomaticsectiontitle'};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[1]{'parent'} = 
$result_trees{'test_xrefautomaticsectiontitle'};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[2]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'extra'}{'menu_entry_description'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'extra'}{'menu_entry_node'}{'node_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'args'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'extra'}{'command'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'extra'}{'end_command'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[1]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'contents'}[2]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'extra'}{'misc_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'args'}[0]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[2]{'parent'} = 
$result_trees{'test_xrefautomaticsectiontitle'};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'extra'}{'node_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'args'}[0]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'extra'}{'node_content'};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3]{'parent'} = 
$result_trees{'test_xrefautomaticsectiontitle'};
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[0]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'args'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[1]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[2]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'brace_command_contents'}[0][0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'label'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'contents'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[3]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[4]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[0]{'extra'}{'command'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'args'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[5]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[6]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'args'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'args'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'extra'}{'brace_command_contents'}[0][0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'extra'}{'label'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[3];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'args'}[0]{'contents'}[0];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[0]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'contents'}[1]{'parent'}
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'contents'}[7]{'parent'}
 = $result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'extra'}{'misc_content'}[0]
 = 
$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'test_xrefautomaticsectiontitle'}{'contents'}[4]{'parent'} = 
$result_trees{'test_xrefautomaticsectiontitle'};
+
+$result_texis{'test_xrefautomaticsectiontitle'} = '@node Top
address@hidden top
+
address@hidden
+* chap::
address@hidden menu
+
address@hidden chap
address@hidden chapter
+
address@hidden on
+
address@hidden
+
address@hidden off
+
address@hidden
+';
+
+
+$result_texts{'test_xrefautomaticsectiontitle'} = 'top
+***
+
+* chap::
+
+1 chapter
+*********
+
+
+.
+
+
+.
+';
+
+$result_sectioning{'test_xrefautomaticsectiontitle'} = {
+  'level' => -1,
+  'section_childs' => [
+    {
+      'cmdname' => 'top',
+      'extra' => {
+        'associated_node' => {
+          'cmdname' => 'node',
+          'extra' => {
+            'normalized' => 'Top'
+          }
+        }
+      },
+      'level' => 0,
+      'section_childs' => [
+        {
+          'cmdname' => 'chapter',
+          'extra' => {
+            'associated_node' => {
+              'cmdname' => 'node',
+              'extra' => {
+                'normalized' => 'chap'
+              }
+            }
+          },
+          'level' => 1,
+          'number' => 1,
+          'section_up' => {},
+          'toplevel_prev' => {}
+        }
+      ],
+      'section_up' => {}
+    }
+  ]
+};
+$result_sectioning{'test_xrefautomaticsectiontitle'}{'section_childs'}[0]{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'test_xrefautomaticsectiontitle'}{'section_childs'}[0];
+$result_sectioning{'test_xrefautomaticsectiontitle'}{'section_childs'}[0]{'section_childs'}[0]{'toplevel_prev'}
 = $result_sectioning{'test_xrefautomaticsectiontitle'}{'section_childs'}[0];
+$result_sectioning{'test_xrefautomaticsectiontitle'}{'section_childs'}[0]{'section_up'}
 = $result_sectioning{'test_xrefautomaticsectiontitle'};
+
+$result_nodes{'test_xrefautomaticsectiontitle'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'associated_section' => {
+      'cmdname' => 'top',
+      'extra' => {},
+      'level' => 0
+    },
+    'normalized' => 'Top'
+  },
+  'menu_child' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'associated_section' => {
+        'cmdname' => 'chapter',
+        'extra' => {},
+        'level' => 1,
+        'number' => 1
+      },
+      'normalized' => 'chap'
+    },
+    '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'
+        }
+      ],
+      'top_node_up' => {}
+    },
+    'type' => 'top_node_up'
+  }
+};
+$result_nodes{'test_xrefautomaticsectiontitle'}{'menu_child'}{'node_prev'} = 
$result_nodes{'test_xrefautomaticsectiontitle'};
+$result_nodes{'test_xrefautomaticsectiontitle'}{'menu_child'}{'node_up'} = 
$result_nodes{'test_xrefautomaticsectiontitle'};
+$result_nodes{'test_xrefautomaticsectiontitle'}{'menus'}[0]{'extra'}{'end_command'}{'extra'}{'command'}
 = $result_nodes{'test_xrefautomaticsectiontitle'}{'menus'}[0];
+$result_nodes{'test_xrefautomaticsectiontitle'}{'node_next'} = 
$result_nodes{'test_xrefautomaticsectiontitle'}{'menu_child'};
+$result_nodes{'test_xrefautomaticsectiontitle'}{'node_up'}{'extra'}{'top_node_up'}
 = $result_nodes{'test_xrefautomaticsectiontitle'};
+
+$result_menus{'test_xrefautomaticsectiontitle'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'menu_child' => {
+    'cmdname' => 'node',
+    'extra' => {
+      'normalized' => 'chap'
+    },
+    'menu_up' => {},
+    'menu_up_hash' => {
+      'Top' => 1
+    }
+  }
+};
+$result_menus{'test_xrefautomaticsectiontitle'}{'menu_child'}{'menu_up'} = 
$result_menus{'test_xrefautomaticsectiontitle'};
+
+$result_errors{'test_xrefautomaticsectiontitle'} = [];
+
+
+
+$result_converted{'html'}->{'test_xrefautomaticsectiontitle'} = '<!DOCTYPE 
html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 
"http://www.w3.org/TR/html4/loose.dtd";>
+<html>
+<!-- Created by texinfo, 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="tp">
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+<link href="#Top" rel="start" title="Top">
+<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>
+Next: <a href="#chap" accesskey="n" rel="next">chap</a>, Up: <a 
href="dir.html#Top" accesskey="u" rel="up">(dir)</a> &nbsp; </p>
+</div>
+<a name="top"></a>
+<h1 class="top">top</h1>
+
+<table class="menu" border="0" cellspacing="0">
+<tr><td align="left" valign="top">&bull; <a href="#chap" 
accesskey="1">chap</a>:</td><td>&nbsp;&nbsp;</td><td align="left" valign="top">
+</td></tr>
+</table>
+
+<hr>
+<a name="chap"></a>
+<div class="header">
+<p>
+Previous: <a href="#Top" accesskey="p" rel="previous">Top</a>, Up: <a 
href="#Top" accesskey="u" rel="up">Top</a> &nbsp; </p>
+</div>
+<a name="chapter"></a>
+<h2 class="chapter">1 chapter</h2>
+
+
+<p>See section <a href="#chap">chapter</a>.
+</p>
+
+<p>See <a href="#chap">chap</a>.
+</p><hr>
+<p>
+
+
+</p>
+</body>
+</html>
+';
+
+1;



reply via email to

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