texinfo-commits
[Top][All Lists]
Advanced

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

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


From: Patrice Dumas
Subject: texinfo/tp TODO Texinfo/Parser.pm Texinfo/Conve...
Date: Sat, 19 Feb 2011 12:21:51 +0000

CVSROOT:        /sources/texinfo
Module name:    texinfo
Changes by:     Patrice Dumas <pertusus>        11/02/19 12:21:50

Modified files:
        tp             : TODO 
        tp/Texinfo     : Parser.pm 
        tp/Texinfo/Convert: Info.pm 
        tp/t           : info_tests.t plaintext_tests.t 
        tp/t/results/misc_commands: invalid_documentencoding.pl 
                                    many_lines.pl 
Added files:
        tp/t/results/info_tests: encoding_us_ascii.pl 
                                 error_in_footnote.pl known_encoding.pl 
                                 unknown_encoding.pl 

Log message:
        Allow @documentencoding to appear more than once without a warning
        Don't add an encoding variable to info optional variables if the 
encoding
        is not known.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.88&r2=1.89
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.198&r2=1.199
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Info.pm?cvsroot=texinfo&r1=1.27&r2=1.28
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/info_tests.t?cvsroot=texinfo&r1=1.14&r2=1.15
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/plaintext_tests.t?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/encoding_us_ascii.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/error_in_footnote.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/known_encoding.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/unknown_encoding.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/invalid_documentencoding.pl?cvsroot=texinfo&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/many_lines.pl?cvsroot=texinfo&r1=1.26&r2=1.27

Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -b -r1.88 -r1.89
--- TODO        19 Feb 2011 11:33:21 -0000      1.88
+++ TODO        19 Feb 2011 12:21:48 -0000      1.89
@@ -92,6 +92,10 @@
 
 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
 @c in menu lines (and maybe at other places) should be replaced by 
 \n and not eat the end of line.
@@ -126,8 +130,10 @@
 @verbatiminclude ./formatting/simplest.texi
 
 tests in test/invalid, not incorporated
-error_in_footnote_caption.texi
-tex_in_copying.texi               (this is not invalid)
+error_in_footnote_caption.texi    (at least partly done in 
+                    info_tests/error_in_footnote.  More shouldn't be needed)
+tex_in_copying.texi               (this is not invalid and not
+                                   such an interesting construct to test)
 
 partly done:
 indices/recursive_synindex.texi (only done: @synindex aaa bbb

Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -b -r1.198 -r1.199
--- Texinfo/Parser.pm   19 Feb 2011 02:26:37 -0000      1.198
+++ Texinfo/Parser.pm   19 Feb 2011 12:21:48 -0000      1.199
@@ -386,6 +386,7 @@
 
 my %global_multiple_commands;
 foreach my $global_multiple_command ('author', 'documentlanguage', 
+  'documentencoding',
   'subtitle', 'contents', 'shortcontents', 'summarycontents',
   'kbdinputstyle', 'paragraphindent', 'firstparagraphindent',
   'frenchspacing', 'footnotestyle', 'hyphenation', 'urefbreakstyle') {
@@ -393,7 +394,7 @@
 }
 
 my %global_unique_commands;
-foreach my $global_unique_command ('documentencoding', 'title', 
+foreach my $global_unique_command ('title', 
   'shorttitlepage', 'settitle', 'copying', 'documentdescription',
   'novalidate', 'titlepage',
   'setfilename', 'setcontentsaftertitlepage', 

Index: Texinfo/Convert/Info.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Info.pm,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -b -r1.27 -r1.28
--- Texinfo/Convert/Info.pm     19 Feb 2011 11:05:40 -0000      1.27
+++ Texinfo/Convert/Info.pm     19 Feb 2011 12:21:49 -0000      1.28
@@ -229,7 +229,6 @@
     }
     $tag_text .=  "\x{1F}\nEnd Tag Table\n";
     my $coding = $self->{'encoding'};
-    $coding = $self->{'documentencoding'} if (!defined($coding));
     if ($coding and $coding ne 'us-ascii') {
       $tag_text .= "\n\x{1F}\nLocal Variables:\ncoding: $coding\nEnd:\n";
     }

Index: t/info_tests.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/info_tests.t,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- t/info_tests.t      19 Feb 2011 11:33:22 -0000      1.14
+++ t/info_tests.t      19 Feb 2011 12:21:49 -0000      1.15
@@ -203,6 +203,45 @@
 
 Just before an image @image{this_is_a_long_unknown_file} text after the image, 
and more text, and more @image{this_is_a_long_unknown_file} text.
 '],
+['error_in_footnote',
+'
address@hidden Top
+
address@hidden Text, label
+
+Float text1
+
address@hidden @TeX. 
+In caption @strong{note}.  
+Now address@hidden@LaTeX. 
+and strong @strong{Note}.}}
address@hidden float
+
address@hidden Text
+
address@hidden Text
+'],
+['encoding_us_ascii',
+'
address@hidden US-ASCII
+
address@hidden Top
+
+'],
+['known_encoding',
+'
address@hidden latin1
+
address@hidden Top
+
+'],
+['unknown_encoding',
+'
address@hidden ggg
+
address@hidden Top
+
+'],
 # since there is no split in the test suite, there is no split tested
 # here, in fact.
 ['split_no_copying',

Index: t/plaintext_tests.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/plaintext_tests.t,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/plaintext_tests.t 19 Feb 2011 11:33:22 -0000      1.6
+++ t/plaintext_tests.t 19 Feb 2011 12:21:49 -0000      1.7
@@ -318,7 +318,6 @@
 
@uref{http://foo.org/some/long/url/which/goes/past/eighty/columns/and/has/no/alternative/text.html}
 @end itemize
 '],
-
 );
 
 foreach my $test (@test_cases) {

Index: t/results/misc_commands/invalid_documentencoding.pl
===================================================================
RCS file: 
/sources/texinfo/texinfo/tp/t/results/misc_commands/invalid_documentencoding.pl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- t/results/misc_commands/invalid_documentencoding.pl 19 Feb 2011 02:26:41 
-0000      1.4
+++ t/results/misc_commands/invalid_documentencoding.pl 19 Feb 2011 12:21:50 
-0000      1.5
@@ -490,15 +490,6 @@
 
 $result_errors{'invalid_documentencoding'} = [
   {
-    'error_line' => ':4: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 4,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':4: warning: Encoding `latin1a\' is not a canonical 
texinfo encoding
 ',
     'file_name' => '',
@@ -517,15 +508,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':5: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 5,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':5: warning: Encoding `YS-ASCII\' is not a canonical 
texinfo encoding
 ',
     'file_name' => '',
@@ -553,15 +535,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':6: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 6,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':6: warning: Encoding `bad encoding name\' is not a 
canonical texinfo encoding
 ',
     'file_name' => '',
@@ -580,15 +553,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':7: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 7,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':7: warning: Encoding `1\' is not a canonical texinfo 
encoding
 ',
     'file_name' => '',
@@ -607,15 +571,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':8: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 8,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':8: warning: Encoding `%\' is not a canonical texinfo 
encoding
 ',
     'file_name' => '',
@@ -634,15 +589,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':9: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 9,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':9: warning: Encoding address@hidden' is not a canonical 
texinfo encoding
 ',
     'file_name' => '',
@@ -661,15 +607,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':10: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 10,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':10: warning: Encoding `AAATeX\' is not a canonical 
texinfo encoding
 ',
     'file_name' => '',
@@ -688,15 +625,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':11: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 11,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':11: warning: Encoding `BBBe\'\' is not a canonical 
texinfo encoding
 ',
     'file_name' => '',

Index: t/results/misc_commands/many_lines.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/misc_commands/many_lines.pl,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- t/results/misc_commands/many_lines.pl       15 Jan 2011 11:57:02 -0000      
1.26
+++ t/results/misc_commands/many_lines.pl       19 Feb 2011 12:21:50 -0000      
1.27
@@ -1700,15 +1700,6 @@
     'type' => 'warning'
   },
   {
-    'error_line' => ':30: warning: Multiple @documentencoding
-',
-    'file_name' => '',
-    'line_nr' => 30,
-    'macro' => '',
-    'text' => 'Multiple @documentencoding',
-    'type' => 'warning'
-  },
-  {
     'error_line' => ':31: warning: @frenchspacing should only appear at a line 
beginning
 ',
     'file_name' => '',

Index: t/results/info_tests/encoding_us_ascii.pl
===================================================================
RCS file: t/results/info_tests/encoding_us_ascii.pl
diff -N t/results/info_tests/encoding_us_ascii.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/info_tests/encoding_us_ascii.pl   19 Feb 2011 12:21:49 -0000      
1.1
@@ -0,0 +1,188 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors);
+
+$result_trees{'encoding_us_ascii'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'US-ASCII'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'documentencoding',
+          'extra' => {
+            'encoding_alias' => 'us-ascii',
+            'text_arg' => 'US-ASCII'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'Top'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 4,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'encoding_us_ascii'}{'contents'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'encoding_us_ascii'}{'contents'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'encoding_us_ascii'}{'contents'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[0]{'parent'} = 
$result_trees{'encoding_us_ascii'};
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0];
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'encoding_us_ascii'}{'contents'}[1];
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'contents'}[0]{'parent'} = 
$result_trees{'encoding_us_ascii'}{'contents'}[1];
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'extra'}{'node_content'}[0] 
= $result_trees{'encoding_us_ascii'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = $result_trees{'encoding_us_ascii'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'encoding_us_ascii'}{'contents'}[1]{'parent'} = 
$result_trees{'encoding_us_ascii'};
+
+$result_texis{'encoding_us_ascii'} = '
address@hidden US-ASCII
+
address@hidden Top
+
+';
+
+
+$result_texts{'encoding_us_ascii'} = '
+
+
+';
+
+$result_sectioning{'encoding_us_ascii'} = {};
+
+$result_nodes{'encoding_us_ascii'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'node_up' => {
+    'extra' => {
+      'manual_content' => [
+        {
+          'text' => 'dir'
+        }
+      ]
+    }
+  }
+};
+
+$result_menus{'encoding_us_ascii'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  }
+};
+
+$result_errors{'encoding_us_ascii'} = [];
+
+
+
+$result_converted{'info'}->{'encoding_us_ascii'} = 'This is , produced by 
makeinfo version 4.13 from .
+
+
+File: ,  Node: Top,  Up: (dir)
+
+
+
+Tag Table:
+Node: Top52
+
+End Tag Table
+';
+
+1;

Index: t/results/info_tests/error_in_footnote.pl
===================================================================
RCS file: t/results/info_tests/error_in_footnote.pl
diff -N t/results/info_tests/error_in_footnote.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/info_tests/error_in_footnote.pl   19 Feb 2011 12:21:49 -0000      
1.1
@@ -0,0 +1,652 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors);
+
+$result_trees{'error_in_footnote'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'Top'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'Text'
+                }
+              ],
+              'parent' => {},
+              'type' => 'block_line_arg'
+            },
+            {
+              'contents' => [
+                {
+                  'text' => ' ',
+                  'type' => 'empty_spaces_before_argument'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'label'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'space_at_end_block_command'
+                }
+              ],
+              'parent' => {},
+              'type' => 'block_line_arg'
+            }
+          ],
+          'cmdname' => 'float',
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line'
+            },
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => 'Float text1
+'
+                }
+              ],
+              'parent' => {},
+              'type' => 'paragraph'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'empty_line'
+            },
+            {
+              'args' => [
+                {
+                  'contents' => [
+                    {
+                      'contents' => [
+                        {
+                          'parent' => {},
+                          'text' => 'Caption. '
+                        },
+                        {
+                          'cmdname' => 'TeX',
+                          'contents' => [],
+                          'parent' => {}
+                        },
+                        {
+                          'parent' => {},
+                          'text' => '. 
+'
+                        },
+                        {
+                          'parent' => {},
+                          'text' => 'In caption '
+                        },
+                        {
+                          'args' => [
+                            {
+                              'contents' => [
+                                {
+                                  'parent' => {},
+                                  'text' => 'note'
+                                }
+                              ],
+                              'parent' => {},
+                              'type' => 'brace_command_arg'
+                            }
+                          ],
+                          'cmdname' => 'strong',
+                          'contents' => [],
+                          'line_nr' => {
+                            'file_name' => '',
+                            'line_nr' => 9,
+                            'macro' => ''
+                          },
+                          'parent' => {}
+                        },
+                        {
+                          'parent' => {},
+                          'text' => '.  
+'
+                        },
+                        {
+                          'parent' => {},
+                          'text' => 'Now footnote'
+                        },
+                        {
+                          'args' => [
+                            {
+                              'contents' => [
+                                {
+                                  'contents' => [
+                                    {
+                                      'cmdname' => 'LaTeX',
+                                      'contents' => [],
+                                      'parent' => {}
+                                    },
+                                    {
+                                      'parent' => {},
+                                      'text' => '. 
+'
+                                    },
+                                    {
+                                      'parent' => {},
+                                      'text' => 'and strong '
+                                    },
+                                    {
+                                      'args' => [
+                                        {
+                                          'contents' => [
+                                            {
+                                              'parent' => {},
+                                              'text' => 'Note'
+                                            }
+                                          ],
+                                          'parent' => {},
+                                          'type' => 'brace_command_arg'
+                                        }
+                                      ],
+                                      'cmdname' => 'strong',
+                                      'contents' => [],
+                                      'line_nr' => {
+                                        'file_name' => '',
+                                        'line_nr' => 11,
+                                        'macro' => ''
+                                      },
+                                      'parent' => {}
+                                    },
+                                    {
+                                      'parent' => {},
+                                      'text' => '.'
+                                    }
+                                  ],
+                                  'parent' => {},
+                                  'type' => 'paragraph'
+                                }
+                              ],
+                              'parent' => {},
+                              'type' => 'brace_command_context'
+                            }
+                          ],
+                          'cmdname' => 'footnote',
+                          'contents' => [],
+                          'line_nr' => {
+                            'file_name' => '',
+                            'line_nr' => 10,
+                            'macro' => ''
+                          },
+                          'parent' => {}
+                        }
+                      ],
+                      'parent' => {},
+                      'type' => 'paragraph'
+                    }
+                  ],
+                  'parent' => {},
+                  'type' => 'brace_command_context'
+                }
+              ],
+              'cmdname' => 'caption',
+              'contents' => [],
+              'extra' => {
+                'float' => {}
+              },
+              'line_nr' => {
+                'file_name' => '',
+                'line_nr' => 8,
+                'macro' => ''
+              },
+              'parent' => {}
+            },
+            {
+              'parent' => {},
+              'text' => '
+'
+            }
+          ],
+          'extra' => {
+            'block_command_line_contents' => [
+              [
+                {}
+              ],
+              [
+                {}
+              ]
+            ],
+            'caption' => {},
+            'node_content' => [
+              {}
+            ],
+            'normalized' => 'label',
+            'type' => {
+              'content' => [
+                {}
+              ],
+              'normalized' => 'Text'
+            }
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 4,
+            'macro' => ''
+          },
+          'number' => 1,
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line_after_command'
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'Text'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'listoffloats',
+          'extra' => {
+            'type' => {
+              'content' => [
+                {}
+              ],
+              'normalized' => 'Text'
+            }
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 14,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'Text'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'listoffloats',
+          'extra' => {
+            'type' => {
+              'content' => [
+                {}
+              ],
+              'normalized' => 'Text'
+            }
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 16,
+            'macro' => ''
+          },
+          'parent' => {}
+        }
+      ],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 2,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'error_in_footnote'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[0]{'parent'} = 
$result_trees{'error_in_footnote'};
+$result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[0]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[2]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[2]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[4]{'args'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[4];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[5]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[6]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[1]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[2]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[3];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[3]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'contents'}[4]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'args'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'contents'}[7]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'args'}[0]{'parent'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'extra'}{'float'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[4]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'extra'}{'block_command_line_contents'}[0][0]
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'extra'}{'block_command_line_contents'}[1][0]
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'extra'}{'caption'}
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'contents'}[3];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'extra'}{'node_content'}[0]
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[1]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'extra'}{'type'}{'content'}[0]
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[1]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[2]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[3]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'extra'}{'type'}{'content'}[0]
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'args'}[0]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[4]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[5]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0]{'parent'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'extra'}{'type'}{'content'}[0]
 = 
$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'args'}[0]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'contents'}[6]{'parent'} = 
$result_trees{'error_in_footnote'}{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'extra'}{'node_content'}[0] 
= $result_trees{'error_in_footnote'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'error_in_footnote'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = $result_trees{'error_in_footnote'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'error_in_footnote'}{'contents'}[1]{'parent'} = 
$result_trees{'error_in_footnote'};
+
+$result_texis{'error_in_footnote'} = '
address@hidden Top
+
address@hidden Text, label
+
+Float text1
+
address@hidden @TeX. 
+In caption @strong{note}.  
+Now address@hidden@LaTeX. 
+and strong @strong{Note}.}}
address@hidden float
+
address@hidden Text
+
address@hidden Text
+';
+
+
+$result_texts{'error_in_footnote'} = '
+
+
+Float text1
+
+
+
+
+';
+
+$result_sectioning{'error_in_footnote'} = {};
+
+$result_nodes{'error_in_footnote'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'node_up' => {
+    'extra' => {
+      'manual_content' => [
+        {
+          'text' => 'dir'
+        }
+      ]
+    }
+  }
+};
+
+$result_menus{'error_in_footnote'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  }
+};
+
+$result_errors{'error_in_footnote'} = [
+  {
+    'error_line' => ':8: @TeX expected braces
+',
+    'file_name' => '',
+    'line_nr' => 8,
+    'macro' => '',
+    'text' => '@TeX expected braces',
+    'type' => 'error'
+  },
+  {
+    'error_line' => ':10: @LaTeX expected braces
+',
+    'file_name' => '',
+    'line_nr' => 10,
+    'macro' => '',
+    'text' => '@LaTeX expected braces',
+    'type' => 'error'
+  }
+];
+
+
+$result_floats{'error_in_footnote'} = {
+  'Text' => [
+    {
+      'cmdname' => 'float',
+      'extra' => {
+        'caption' => {
+          'cmdname' => 'caption',
+          'extra' => {
+            'float' => {}
+          }
+        },
+        'normalized' => 'label',
+        'type' => {
+          'content' => [
+            {
+              'text' => 'Text'
+            }
+          ],
+          'normalized' => 'Text'
+        }
+      },
+      'number' => 1
+    }
+  ]
+};
+$result_floats{'error_in_footnote'}{'Text'}[0]{'extra'}{'caption'}{'extra'}{'float'}
 = $result_floats{'error_in_footnote'}{'Text'}[0];
+
+
+
+$result_converted{'info'}->{'error_in_footnote'} = 'This is , produced by 
makeinfo version 4.13 from .
+
+
+File: ,  Node: Top,  Up: (dir)
+
+Float text1
+
+Text 1: Caption.  TeX. In caption *note*.  Now footnote(1)
+
+* Menu:
+
+* Text 1: label.                         Caption.  TeX. In caption ...
+
+* Menu:
+
+* Text 1: label.                         Caption.  TeX. In caption ...
+
+   ---------- Footnotes ----------
+
+   (1) LaTeX. and strong *Note*.
+
+
+
+Tag Table:
+Node: Top52
+Ref: label86
+Ref: Top-Footnote-1357
+
+End Tag Table
+';
+
+$result_converted_errors{'info'}->{'error_in_footnote'} = [
+  {
+    'file_name' => '',
+    'error_line' => ':9: warning: @strong{Note...} produces a spurious 
cross-reference in Info; reword to avoid that
+',
+    'text' => '@strong{Note...} produces a spurious cross-reference in Info; 
reword to avoid that',
+    'type' => 'warning',
+    'macro' => '',
+    'line_nr' => 9
+  },
+  {
+    'file_name' => '',
+    'error_line' => ':9: warning: @strong{Note...} produces a spurious 
cross-reference in Info; reword to avoid that
+',
+    'text' => '@strong{Note...} produces a spurious cross-reference in Info; 
reword to avoid that',
+    'type' => 'warning',
+    'macro' => '',
+    'line_nr' => 9
+  },
+  {
+    'file_name' => '',
+    'error_line' => ':9: warning: @strong{Note...} produces a spurious 
cross-reference in Info; reword to avoid that
+',
+    'text' => '@strong{Note...} produces a spurious cross-reference in Info; 
reword to avoid that',
+    'type' => 'warning',
+    'macro' => '',
+    'line_nr' => 9
+  },
+  {
+    'file_name' => '',
+    'error_line' => ':11: warning: @strong{Note...} produces a spurious 
cross-reference in Info; reword to avoid that
+',
+    'text' => '@strong{Note...} produces a spurious cross-reference in Info; 
reword to avoid that',
+    'type' => 'warning',
+    'macro' => '',
+    'line_nr' => 11
+  }
+];
+
+
+1;

Index: t/results/info_tests/known_encoding.pl
===================================================================
RCS file: t/results/info_tests/known_encoding.pl
diff -N t/results/info_tests/known_encoding.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/info_tests/known_encoding.pl      19 Feb 2011 12:21:49 -0000      
1.1
@@ -0,0 +1,203 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors);
+
+$result_trees{'known_encoding'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'latin1'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'documentencoding',
+          'extra' => {
+            'encoding_alias' => 'iso-8859-1',
+            'text_arg' => 'latin1'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'Top'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 4,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'known_encoding'}{'contents'}[0];
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1];
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'known_encoding'}{'contents'}[0];
+$result_trees{'known_encoding'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'known_encoding'}{'contents'}[0];
+$result_trees{'known_encoding'}{'contents'}[0]{'parent'} = 
$result_trees{'known_encoding'};
+$result_trees{'known_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[1]{'args'}[0];
+$result_trees{'known_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[1]{'args'}[0];
+$result_trees{'known_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'known_encoding'}{'contents'}[1]{'args'}[0];
+$result_trees{'known_encoding'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'known_encoding'}{'contents'}[1];
+$result_trees{'known_encoding'}{'contents'}[1]{'contents'}[0]{'parent'} = 
$result_trees{'known_encoding'}{'contents'}[1];
+$result_trees{'known_encoding'}{'contents'}[1]{'extra'}{'node_content'}[0] = 
$result_trees{'known_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'known_encoding'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = $result_trees{'known_encoding'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'known_encoding'}{'contents'}[1]{'parent'} = 
$result_trees{'known_encoding'};
+
+$result_texis{'known_encoding'} = '
address@hidden latin1
+
address@hidden Top
+
+';
+
+
+$result_texts{'known_encoding'} = '
+
+
+';
+
+$result_sectioning{'known_encoding'} = {};
+
+$result_nodes{'known_encoding'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'node_up' => {
+    'extra' => {
+      'manual_content' => [
+        {
+          'text' => 'dir'
+        }
+      ]
+    }
+  }
+};
+
+$result_menus{'known_encoding'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  }
+};
+
+$result_errors{'known_encoding'} = [
+  {
+    'error_line' => ':2: warning: Encoding `latin1\' is not a canonical 
texinfo encoding
+',
+    'file_name' => '',
+    'line_nr' => 2,
+    'macro' => '',
+    'text' => 'Encoding `latin1\' is not a canonical texinfo encoding',
+    'type' => 'warning'
+  }
+];
+
+
+
+$result_converted{'info'}->{'known_encoding'} = 'This is , produced by 
makeinfo version 4.13 from .
+
+
+File: ,  Node: Top,  Up: (dir)
+
+
+
+Tag Table:
+Node: Top52
+
+End Tag Table
+
+
+Local Variables:
+coding: iso-8859-1
+End:
+';
+
+1;

Index: t/results/info_tests/unknown_encoding.pl
===================================================================
RCS file: t/results/info_tests/unknown_encoding.pl
diff -N t/results/info_tests/unknown_encoding.pl
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ t/results/info_tests/unknown_encoding.pl    19 Feb 2011 12:21:50 -0000      
1.1
@@ -0,0 +1,206 @@
+use vars qw(%result_texis %result_texts %result_trees %result_errors 
+   %result_indices %result_sectioning %result_nodes %result_menus
+   %result_floats %result_converted %result_converted_errors);
+
+$result_trees{'unknown_encoding'} = {
+  'contents' => [
+    {
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        },
+        {
+          'args' => [
+            {
+              'contents' => [
+                {
+                  'parent' => {},
+                  'text' => ' ',
+                  'type' => 'empty_spaces_after_command'
+                },
+                {
+                  'parent' => {},
+                  'text' => 'ggg'
+                },
+                {
+                  'parent' => {},
+                  'text' => '
+',
+                  'type' => 'spaces_at_end'
+                }
+              ],
+              'parent' => {},
+              'type' => 'misc_line_arg'
+            }
+          ],
+          'cmdname' => 'documentencoding',
+          'extra' => {
+            'text_arg' => 'ggg'
+          },
+          'line_nr' => {
+            'file_name' => '',
+            'line_nr' => 2,
+            'macro' => ''
+          },
+          'parent' => {}
+        },
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'parent' => {},
+      'type' => 'text_root'
+    },
+    {
+      'args' => [
+        {
+          'contents' => [
+            {
+              'parent' => {},
+              'text' => ' ',
+              'type' => 'empty_spaces_after_command'
+            },
+            {
+              'parent' => {},
+              'text' => 'Top'
+            },
+            {
+              'parent' => {},
+              'text' => '
+',
+              'type' => 'spaces_at_end'
+            }
+          ],
+          'parent' => {},
+          'type' => 'misc_line_arg'
+        }
+      ],
+      'cmdname' => 'node',
+      'contents' => [
+        {
+          'parent' => {},
+          'text' => '
+',
+          'type' => 'empty_line'
+        }
+      ],
+      'extra' => {
+        'node_content' => [
+          {}
+        ],
+        'nodes_manuals' => [
+          {
+            'node_content' => [],
+            'normalized' => 'Top'
+          }
+        ],
+        'normalized' => 'Top'
+      },
+      'line_nr' => {
+        'file_name' => '',
+        'line_nr' => 4,
+        'macro' => ''
+      },
+      'parent' => {}
+    }
+  ],
+  'type' => 'document_root'
+};
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[0]{'parent'} = 
$result_trees{'unknown_encoding'}{'contents'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[1]{'parent'} = 
$result_trees{'unknown_encoding'}{'contents'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'contents'}[2]{'parent'} = 
$result_trees{'unknown_encoding'}{'contents'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[0]{'parent'} = 
$result_trees{'unknown_encoding'};
+$result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
 = $result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0];
+$result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0]{'parent'} = 
$result_trees{'unknown_encoding'}{'contents'}[1];
+$result_trees{'unknown_encoding'}{'contents'}[1]{'contents'}[0]{'parent'} = 
$result_trees{'unknown_encoding'}{'contents'}[1];
+$result_trees{'unknown_encoding'}{'contents'}[1]{'extra'}{'node_content'}[0] = 
$result_trees{'unknown_encoding'}{'contents'}[1]{'args'}[0]{'contents'}[1];
+$result_trees{'unknown_encoding'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'}
 = $result_trees{'unknown_encoding'}{'contents'}[1]{'extra'}{'node_content'};
+$result_trees{'unknown_encoding'}{'contents'}[1]{'parent'} = 
$result_trees{'unknown_encoding'};
+
+$result_texis{'unknown_encoding'} = '
address@hidden ggg
+
address@hidden Top
+
+';
+
+
+$result_texts{'unknown_encoding'} = '
+
+
+';
+
+$result_sectioning{'unknown_encoding'} = {};
+
+$result_nodes{'unknown_encoding'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  },
+  'node_up' => {
+    'extra' => {
+      'manual_content' => [
+        {
+          'text' => 'dir'
+        }
+      ]
+    }
+  }
+};
+
+$result_menus{'unknown_encoding'} = {
+  'cmdname' => 'node',
+  'extra' => {
+    'normalized' => 'Top'
+  }
+};
+
+$result_errors{'unknown_encoding'} = [
+  {
+    'error_line' => ':2: warning: Encoding `ggg\' is not a canonical texinfo 
encoding
+',
+    'file_name' => '',
+    'line_nr' => 2,
+    'macro' => '',
+    'text' => 'Encoding `ggg\' is not a canonical texinfo encoding',
+    'type' => 'warning'
+  },
+  {
+    'error_line' => ':2: warning: unrecognized encoding name `ggg\'
+',
+    'file_name' => '',
+    'line_nr' => 2,
+    'macro' => '',
+    'text' => 'unrecognized encoding name `ggg\'',
+    'type' => 'warning'
+  }
+];
+
+
+
+$result_converted{'info'}->{'unknown_encoding'} = 'This is , produced by 
makeinfo version 4.13 from .
+
+
+File: ,  Node: Top,  Up: (dir)
+
+
+
+Tag Table:
+Node: Top52
+
+End Tag Table
+';
+
+1;



reply via email to

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