[Top][All Lists]
[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: |
Wed, 02 Feb 2011 22:17:37 +0000 |
CVSROOT: /sources/texinfo
Module name: texinfo
Changes by: Patrice Dumas <pertusus> 11/02/02 22:17:37
Modified files:
tp : TODO
tp/Texinfo : Parser.pm
tp/Texinfo/Convert: Info.pm
tp/t : 08misc_commands.t 16raw.t
tp/t/results/def: all_commands_delimiters_printindex.pl
all_commands_printindex.pl
tp/t/results/info_tests: paragraphindent_and_preamble.pl
tp/t/results/invalid_nestings:
table_not_closed_in_menu_comment.pl
Added files:
tp/t/results/misc_commands: bad_documentlanguage.pl
text_before_and_after_bye.pl
tp/t/results/raw: braces_in_tex.pl raw_in_example.pl
Log message:
Adjust count of nodes, nodes are counted from the beginning.
Don't start a preformatted in a raw format.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/TODO?cvsroot=texinfo&r1=1.71&r2=1.72
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Parser.pm?cvsroot=texinfo&r1=1.186&r2=1.187
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/Texinfo/Convert/Info.pm?cvsroot=texinfo&r1=1.18&r2=1.19
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/08misc_commands.t?cvsroot=texinfo&r1=1.11&r2=1.12
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/16raw.t?cvsroot=texinfo&r1=1.12&r2=1.13
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/def/all_commands_delimiters_printindex.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/def/all_commands_printindex.pl?cvsroot=texinfo&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/info_tests/paragraphindent_and_preamble.pl?cvsroot=texinfo&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/invalid_nestings/table_not_closed_in_menu_comment.pl?cvsroot=texinfo&r1=1.15&r2=1.16
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/bad_documentlanguage.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/misc_commands/text_before_and_after_bye.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/raw/braces_in_tex.pl?cvsroot=texinfo&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/texinfo/tp/t/results/raw/raw_in_example.pl?cvsroot=texinfo&rev=1.1
Patches:
Index: TODO
===================================================================
RCS file: /sources/texinfo/texinfo/tp/TODO,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -b -r1.71 -r1.72
--- TODO 31 Jan 2011 00:37:21 -0000 1.71
+++ TODO 2 Feb 2011 22:17:35 -0000 1.72
@@ -8,6 +8,9 @@
could be used for the main loop. More simply, a binary tokenizer, at
least, could make for a notable speedup.
address@hidden 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'?
+
for i18n, one want to do something like
{style} {number}: {caption}
-> new tree.
@@ -187,3 +190,6 @@
info_coverage/exdent_and_commands.texi
info_coverage/exdent_and_formats.texi
+
+coverage/pass0_macro.texi (not everything, but tests are redundant)
+
Index: Texinfo/Parser.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Parser.pm,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -b -r1.186 -r1.187
--- Texinfo/Parser.pm 1 Feb 2011 23:34:58 -0000 1.186
+++ Texinfo/Parser.pm 2 Feb 2011 22:17:35 -0000 1.187
@@ -3434,7 +3434,8 @@
print STDERR "MENU_COMMENT OPEN\n" if ($self->{'DEBUG'});
push @{$self->{'context_stack'}}, 'preformatted';
}
- $current = $self->_begin_preformatted($current);
+ $current = $self->_begin_preformatted($current)
+ unless ($block_commands{$command} eq 'raw');
}
$block->{'extra'}->{'invalid_nesting'} = 1 if ($invalid);
$self->_register_global_command($command, $block, $line_nr);
Index: Texinfo/Convert/Info.pm
===================================================================
RCS file: /sources/texinfo/texinfo/tp/Texinfo/Convert/Info.pm,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- Texinfo/Convert/Info.pm 30 Jan 2011 09:44:07 -0000 1.18
+++ Texinfo/Convert/Info.pm 2 Feb 2011 22:17:36 -0000 1.19
@@ -409,6 +409,7 @@
my $output_filename = $self->{'output_filename'};
$output_filename = '' if (!defined($self->{'output_filename'}));
+ $self->_add_location($node);
my $result = "\x{1F}\nFile: $output_filename, Node: ";
$self->_add_text_count($result);
$result .= $self->convert_line({'type' => 'code',
@@ -433,7 +434,6 @@
}
$result .="\n\n";
$self->_add_text_count("\n\n");
- $self->_add_location($node);
$self->{'count_context'}->[-1]->{'lines'} = 3;
return $result;
Index: t/08misc_commands.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/08misc_commands.t,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -b -r1.11 -r1.12
--- t/08misc_commands.t 31 Jan 2011 00:37:22 -0000 1.11
+++ t/08misc_commands.t 2 Feb 2011 22:17:36 -0000 1.12
@@ -101,6 +101,11 @@
['bye',
'@bye
'],
+['text_before_and_after_bye',
+'Before bye @bye on bye line
+
+after bye
+'],
['invalid_clickstyle',
'
@clickstyle @result on the same line
@@ -140,6 +145,14 @@
@documentlanguage en
line following documentlanguage
'],
+['bad_documentlanguage',
+'
+documentlanguage @documentlanguage en
+
address@hidden en @documentlanguage en
+
address@hidden en after documentlanguage
+'],
['empty_documentencoding',
'@documentencoding
'],
Index: t/16raw.t
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/16raw.t,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- t/16raw.t 1 Dec 2010 22:39:44 -0000 1.12
+++ t/16raw.t 2 Feb 2011 22:17:36 -0000 1.13
@@ -57,6 +57,35 @@
End.
'],
+['raw_in_example',
+'@example
address@hidden
+in html
address@hidden html
address@hidden example
+'],
+['braces_in_tex',
+'
address@hidden
+$$
+\chi^2 = \sum_{i=1}^N
+\left(y_i - (a + b x_i)
+\over \sigma_i\right)^2
+$$
address@hidden tex
+
+
address@hidden
address@hidden
+$$
+\chi^2 = \sum_{i=1}^N
+\left(y_i - (a + b x_i)
+\over \sigma_i\right)^2
+$$
address@hidden tex
address@hidden example
+
+']
);
my @test_invalid = (
Index: t/results/def/all_commands_delimiters_printindex.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/def/all_commands_delimiters_printindex.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/def/all_commands_delimiters_printindex.pl 31 Jan 2011 00:37:23
-0000 1.6
+++ t/results/def/all_commands_delimiters_printindex.pl 2 Feb 2011 22:17:36
-0000 1.7
@@ -12638,7 +12638,7 @@
Tag Table:
-Node: Top86
+Node: Top52
End Tag Table
';
Index: t/results/def/all_commands_printindex.pl
===================================================================
RCS file: /sources/texinfo/texinfo/tp/t/results/def/all_commands_printindex.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- t/results/def/all_commands_printindex.pl 31 Jan 2011 00:37:23 -0000
1.6
+++ t/results/def/all_commands_printindex.pl 2 Feb 2011 22:17:36 -0000
1.7
@@ -2963,7 +2963,7 @@
Tag Table:
-Node: Top86
+Node: Top52
End Tag Table
';
Index: t/results/info_tests/paragraphindent_and_preamble.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/info_tests/paragraphindent_and_preamble.pl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- t/results/info_tests/paragraphindent_and_preamble.pl 29 Jan 2011
23:57:22 -0000 1.1
+++ t/results/info_tests/paragraphindent_and_preamble.pl 2 Feb 2011
22:17:36 -0000 1.2
@@ -416,7 +416,7 @@
Tag Table:
-Node: Top122
+Node: Top88
End Tag Table
';
Index: t/results/invalid_nestings/table_not_closed_in_menu_comment.pl
===================================================================
RCS file:
/sources/texinfo/texinfo/tp/t/results/invalid_nestings/table_not_closed_in_menu_comment.pl,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- t/results/invalid_nestings/table_not_closed_in_menu_comment.pl 7 Dec
2010 20:34:29 -0000 1.15
+++ t/results/invalid_nestings/table_not_closed_in_menu_comment.pl 2 Feb
2011 22:17:36 -0000 1.16
@@ -138,6 +138,8 @@
'parent' => {}
},
{
+ 'contents' => [
+ {
'parent' => {},
'text' => 'comment
'
@@ -148,6 +150,10 @@
'
}
],
+ 'parent' => {},
+ 'type' => 'preformatted'
+ }
+ ],
'extra' => {
'block_command_line_contents' => [
[
@@ -195,8 +201,9 @@
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[1]{'args'}[0]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[1];
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[1]{'extra'}{'misc_content'}[0]
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[1]{'args'}[0]{'contents'}[1];
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0];
+$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[2]{'contents'}[0]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[2];
+$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[2]{'contents'}[1]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[2];
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0];
-$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'contents'}[3]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0];
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'extra'}{'block_command_line_contents'}[0][0]
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'args'}[0]{'contents'}[1];
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'contents'}[0]{'parent'}
=
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3];
$result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0]{'contents'}[3]{'parent'}
= $result_trees{'table_not_closed_in_menu_comment'}{'contents'}[0];
Index: t/results/misc_commands/bad_documentlanguage.pl
===================================================================
RCS file: t/results/misc_commands/bad_documentlanguage.pl
diff -N t/results/misc_commands/bad_documentlanguage.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/misc_commands/bad_documentlanguage.pl 2 Feb 2011 22:17:36
-0000 1.1
@@ -0,0 +1,255 @@
+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{'bad_documentlanguage'} = {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'documentlanguage '
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'en'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'documentlanguage',
+ 'extra' => {
+ 'text_arg' => 'en'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'en'
+ },
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'spaces_at_end'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'en'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'documentlanguage',
+ 'extra' => {
+ 'invalid_nesting' => 1,
+ 'text_arg' => 'en'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'documentlanguage',
+ 'extra' => {
+ 'text_arg' => 'en'
+ },
+ 'line_nr' => {},
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'args' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => ' ',
+ 'type' => 'empty_spaces_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'en after documentlanguage'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'spaces_at_end'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'misc_line_arg'
+ }
+ ],
+ 'cmdname' => 'documentlanguage',
+ 'extra' => {
+ 'text_arg' => 'en after documentlanguage'
+ },
+ 'line_nr' => {
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => ''
+ },
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'bad_documentlanguage'}{'contents'}[0]{'parent'} =
$result_trees{'bad_documentlanguage'};
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[1];
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1];
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[1];
+$result_trees{'bad_documentlanguage'}{'contents'}[1]{'parent'} =
$result_trees{'bad_documentlanguage'};
+$result_trees{'bad_documentlanguage'}{'contents'}[2]{'parent'} =
$result_trees{'bad_documentlanguage'};
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[0]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[1]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0]{'contents'}[2]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'args'}[0]{'parent'}
=
$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'parent'} =
$result_trees{'bad_documentlanguage'}{'contents'}[3];
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'line_nr'} =
$result_trees{'bad_documentlanguage'}{'contents'}[3]{'args'}[0]{'contents'}[3]{'line_nr'};
+$result_trees{'bad_documentlanguage'}{'contents'}[3]{'parent'} =
$result_trees{'bad_documentlanguage'};
+$result_trees{'bad_documentlanguage'}{'contents'}[4]{'parent'} =
$result_trees{'bad_documentlanguage'};
+$result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0]{'contents'}[0]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0]{'contents'}[1]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0]{'contents'}[2]{'parent'}
= $result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0];
+$result_trees{'bad_documentlanguage'}{'contents'}[5]{'args'}[0]{'parent'} =
$result_trees{'bad_documentlanguage'}{'contents'}[5];
+$result_trees{'bad_documentlanguage'}{'contents'}[5]{'parent'} =
$result_trees{'bad_documentlanguage'};
+
+$result_texis{'bad_documentlanguage'} = '
+documentlanguage @documentlanguage en
+
address@hidden en @documentlanguage en
+
address@hidden en after documentlanguage
+';
+
+
+$result_texts{'bad_documentlanguage'} = '
+documentlanguage
+
+';
+
+$result_errors{'bad_documentlanguage'} = [
+ {
+ 'error_line' => ':2: warning: @documentlanguage should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 2,
+ 'macro' => '',
+ 'text' => '@documentlanguage should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':4: warning: @documentlanguage should only appear at a
line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => '',
+ 'text' => '@documentlanguage should only appear at a line beginning',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':4: warning: @documentlanguage should not appear in
@documentlanguage
+',
+ 'file_name' => '',
+ 'line_nr' => 4,
+ 'macro' => '',
+ 'text' => '@documentlanguage should not appear in @documentlanguage',
+ 'type' => 'warning'
+ },
+ {
+ 'error_line' => ':6: warning: en after documentlanguage is not a valid
language code
+',
+ 'file_name' => '',
+ 'line_nr' => 6,
+ 'macro' => '',
+ 'text' => 'en after documentlanguage is not a valid language code',
+ 'type' => 'warning'
+ }
+];
+
+
+1;
Index: t/results/misc_commands/text_before_and_after_bye.pl
===================================================================
RCS file: t/results/misc_commands/text_before_and_after_bye.pl
diff -N t/results/misc_commands/text_before_and_after_bye.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/misc_commands/text_before_and_after_bye.pl 2 Feb 2011
22:17:36 -0000 1.1
@@ -0,0 +1,47 @@
+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{'text_before_and_after_bye'} = {
+ 'contents' => [
+ {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => 'Before bye '
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'paragraph'
+ },
+ {
+ 'cmdname' => 'bye',
+ 'parent' => {}
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'text_before_and_after_bye'}{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'text_before_and_after_bye'}{'contents'}[0];
+$result_trees{'text_before_and_after_bye'}{'contents'}[0]{'parent'} =
$result_trees{'text_before_and_after_bye'};
+$result_trees{'text_before_and_after_bye'}{'contents'}[1]{'parent'} =
$result_trees{'text_before_and_after_bye'};
+
+$result_texis{'text_before_and_after_bye'} = 'Before bye @bye
+';
+
+
+$result_texts{'text_before_and_after_bye'} = 'Before bye ';
+
+$result_errors{'text_before_and_after_bye'} = [
+ {
+ 'error_line' => ':1: warning: @bye should only appear at a line beginning
+',
+ 'file_name' => '',
+ 'line_nr' => 1,
+ 'macro' => '',
+ 'text' => '@bye should only appear at a line beginning',
+ 'type' => 'warning'
+ }
+];
+
+
+1;
Index: t/results/raw/braces_in_tex.pl
===================================================================
RCS file: t/results/raw/braces_in_tex.pl
diff -N t/results/raw/braces_in_tex.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/raw/braces_in_tex.pl 2 Feb 2011 22:17:37 -0000 1.1
@@ -0,0 +1,217 @@
+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{'braces_in_tex'} = {
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '$$
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '\\chi^2 = \\sum_{i=1}^N
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '\\left(y_i - (a + b x_i)
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '\\over \\sigma_i\\right)^2
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '$$
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ },
+ {
+ 'cmdname' => 'example',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'cmdname' => 'tex',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '$$
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '\\chi^2 = \\sum_{i=1}^N
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '\\left(y_i - (a + b x_i)
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '\\over \\sigma_i\\right)^2
+',
+ 'type' => 'raw'
+ },
+ {
+ 'parent' => {},
+ 'text' => '$$
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'preformatted'
+ }
+ ],
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line'
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'braces_in_tex'}{'contents'}[0]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[1]{'contents'}[0]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[1]{'contents'}[1]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[1]{'contents'}[2]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[1]{'contents'}[3]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[1]{'contents'}[4]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[1]{'contents'}[5]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[1]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[2]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[3]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[4]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[0]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[5];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'contents'}[2]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'contents'}[3]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'contents'}[4]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'contents'}[5]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'contents'}[1]{'parent'} =
$result_trees{'braces_in_tex'}{'contents'}[5];
+$result_trees{'braces_in_tex'}{'contents'}[5]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[6]{'parent'} =
$result_trees{'braces_in_tex'};
+$result_trees{'braces_in_tex'}{'contents'}[7]{'parent'} =
$result_trees{'braces_in_tex'};
+
+$result_texis{'braces_in_tex'} = '
address@hidden
+$$
+\\chi^2 = \\sum_{i=1}^N
+\\left(y_i - (a + b x_i)
+\\over \\sigma_i\\right)^2
+$$
address@hidden tex
+
+
address@hidden
address@hidden
+$$
+\\chi^2 = \\sum_{i=1}^N
+\\left(y_i - (a + b x_i)
+\\over \\sigma_i\\right)^2
+$$
address@hidden tex
address@hidden example
+
+';
+
+
+$result_texts{'braces_in_tex'} = '
+
+
+
+';
+
+$result_errors{'braces_in_tex'} = [];
+
+
+
+$result_converted{'plaintext'}->{'braces_in_tex'} = '
+
+
+';
+
+1;
Index: t/results/raw/raw_in_example.pl
===================================================================
RCS file: t/results/raw/raw_in_example.pl
diff -N t/results/raw/raw_in_example.pl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ t/results/raw/raw_in_example.pl 2 Feb 2011 22:17:37 -0000 1.1
@@ -0,0 +1,84 @@
+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{'raw_in_example'} = {
+ 'contents' => [
+ {
+ 'cmdname' => 'example',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'contents' => [
+ {
+ 'cmdname' => 'html',
+ 'contents' => [
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ },
+ {
+ 'parent' => {},
+ 'text' => 'in html
+',
+ 'type' => 'raw'
+ }
+ ],
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ }
+ ],
+ 'parent' => {},
+ 'type' => 'preformatted'
+ }
+ ],
+ 'parent' => {}
+ },
+ {
+ 'parent' => {},
+ 'text' => '
+',
+ 'type' => 'empty_line_after_command'
+ }
+ ],
+ 'type' => 'text_root'
+};
+$result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[0]{'parent'} =
$result_trees{'raw_in_example'}{'contents'}[0];
+$result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[0]{'parent'}
= $result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'contents'}[1]{'parent'}
= $result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0];
+$result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[0]{'parent'}
= $result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'contents'}[1]{'parent'}
= $result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1];
+$result_trees{'raw_in_example'}{'contents'}[0]{'contents'}[1]{'parent'} =
$result_trees{'raw_in_example'}{'contents'}[0];
+$result_trees{'raw_in_example'}{'contents'}[0]{'parent'} =
$result_trees{'raw_in_example'};
+$result_trees{'raw_in_example'}{'contents'}[1]{'parent'} =
$result_trees{'raw_in_example'};
+
+$result_texis{'raw_in_example'} = '@example
address@hidden
+in html
address@hidden html
address@hidden example
+';
+
+
+$result_texts{'raw_in_example'} = '';
+
+$result_errors{'raw_in_example'} = [];
+
+
+
+$result_converted{'plaintext'}->{'raw_in_example'} = '
+';
+
+1;
- texinfo/tp TODO Texinfo/Parser.pm Texinfo/Conve...,
Patrice Dumas <=