123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- 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{'unknown_command_with_braces'} = {
- 'contents' => [
- {
- 'contents' => [
- {
- 'parent' => {},
- 'text' => 'Unknown thing
- '
- }
- ],
- 'parent' => {},
- 'type' => 'paragraph'
- },
- {
- 'parent' => {},
- 'text' => '
- ',
- 'type' => 'empty_line'
- },
- {
- 'contents' => [
- {
- 'parent' => {},
- 'text' => 'Unknown macro first paragraph
- '
- }
- ],
- 'parent' => {},
- 'type' => 'paragraph'
- },
- {
- 'parent' => {},
- 'text' => '
- ',
- 'type' => 'empty_line'
- },
- {
- 'contents' => [
- {
- 'parent' => {},
- 'text' => 'second paragraph
- '
- }
- ],
- 'parent' => {},
- 'type' => 'paragraph'
- },
- {
- 'parent' => {},
- 'text' => '
- ',
- 'type' => 'empty_line'
- },
- {
- 'contents' => [
- {
- 'parent' => {},
- 'text' => ' first paragraph
- '
- }
- ],
- 'parent' => {},
- 'type' => 'paragraph'
- },
- {
- 'parent' => {},
- 'text' => '
- ',
- 'type' => 'empty_line'
- },
- {
- 'contents' => [
- {
- 'parent' => {},
- 'text' => 'second paragraph
- '
- }
- ],
- 'parent' => {},
- 'type' => 'paragraph'
- },
- {
- 'parent' => {},
- 'text' => '
- ',
- 'type' => 'empty_line'
- },
- {
- 'contents' => [
- {
- 'parent' => {},
- 'text' => 'third
- '
- }
- ],
- 'parent' => {},
- 'type' => 'paragraph'
- }
- ],
- 'type' => 'text_root'
- };
- $result_trees{'unknown_command_with_braces'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'}{'contents'}[0];
- $result_trees{'unknown_command_with_braces'}{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[1]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[2]{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'}{'contents'}[2];
- $result_trees{'unknown_command_with_braces'}{'contents'}[2]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[3]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[4]{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'}{'contents'}[4];
- $result_trees{'unknown_command_with_braces'}{'contents'}[4]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[5]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[6]{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'}{'contents'}[6];
- $result_trees{'unknown_command_with_braces'}{'contents'}[6]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[7]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[8]{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'}{'contents'}[8];
- $result_trees{'unknown_command_with_braces'}{'contents'}[8]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[9]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_trees{'unknown_command_with_braces'}{'contents'}[10]{'contents'}[0]{'parent'} = $result_trees{'unknown_command_with_braces'}{'contents'}[10];
- $result_trees{'unknown_command_with_braces'}{'contents'}[10]{'parent'} = $result_trees{'unknown_command_with_braces'};
- $result_texis{'unknown_command_with_braces'} = 'Unknown thing
- Unknown macro first paragraph
- second paragraph
- first paragraph
- second paragraph
- third
- ';
- $result_texts{'unknown_command_with_braces'} = 'Unknown thing
- Unknown macro first paragraph
- second paragraph
- first paragraph
- second paragraph
- third
- ';
- $result_errors{'unknown_command_with_braces'} = [
- {
- 'error_line' => ':1: unknown command `thing\'
- ',
- 'file_name' => '',
- 'line_nr' => 1,
- 'macro' => '',
- 'text' => 'unknown command `thing\'',
- 'type' => 'error'
- },
- {
- 'error_line' => ':1: misplaced {
- ',
- 'file_name' => '',
- 'line_nr' => 1,
- 'macro' => '',
- 'text' => 'misplaced {',
- 'type' => 'error'
- },
- {
- 'error_line' => ':1: misplaced }
- ',
- 'file_name' => '',
- 'line_nr' => 1,
- 'macro' => '',
- 'text' => 'misplaced }',
- 'type' => 'error'
- },
- {
- 'error_line' => ':3: unknown command `unknown\'
- ',
- 'file_name' => '',
- 'line_nr' => 3,
- 'macro' => '',
- 'text' => 'unknown command `unknown\'',
- 'type' => 'error'
- },
- {
- 'error_line' => ':3: misplaced {
- ',
- 'file_name' => '',
- 'line_nr' => 3,
- 'macro' => '',
- 'text' => 'misplaced {',
- 'type' => 'error'
- },
- {
- 'error_line' => ':5: misplaced }
- ',
- 'file_name' => '',
- 'line_nr' => 5,
- 'macro' => '',
- 'text' => 'misplaced }',
- 'type' => 'error'
- },
- {
- 'error_line' => ':7: unknown command `unknown2\'
- ',
- 'file_name' => '',
- 'line_nr' => 7,
- 'macro' => '',
- 'text' => 'unknown command `unknown2\'',
- 'type' => 'error'
- },
- {
- 'error_line' => ':7: misplaced {
- ',
- 'file_name' => '',
- 'line_nr' => 7,
- 'macro' => '',
- 'text' => 'misplaced {',
- 'type' => 'error'
- },
- {
- 'error_line' => ':11: misplaced }
- ',
- 'file_name' => '',
- 'line_nr' => 11,
- 'macro' => '',
- 'text' => 'misplaced }',
- 'type' => 'error'
- }
- ];
- 1;
|