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 %result_indices_sort_strings); use utf8; $result_trees{'titles'} = { 'contents' => [ { 'contents' => [ { 'text' => ' ', 'type' => 'empty_line' }, { 'args' => [ { 'contents' => [ { 'cmdname' => '@' }, { 'text' => 'title ' }, { 'args' => [ { 'contents' => [ { 'text' => 'html' } ], 'type' => 'brace_command_arg' } ], 'cmdname' => 'sc', 'source_info' => { 'file_name' => '', 'line_nr' => 2, 'macro' => '' } }, { 'text' => ' ' }, { 'args' => [ { 'contents' => [ { 'text' => 'test' } ], 'type' => 'brace_command_arg' } ], 'cmdname' => 'code', 'source_info' => { 'file_name' => '', 'line_nr' => 2, 'macro' => '' } } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'settitle', 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 2, 'macro' => '' } }, { 'text' => ' ', 'type' => 'empty_line' } ], 'type' => 'before_node_section' }, { 'args' => [ { 'contents' => [ { 'text' => 'Top' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'node', 'extra' => { 'normalized' => 'Top' }, 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 4, 'macro' => '' } }, { 'args' => [ { 'contents' => [ { 'text' => 'Top of ' }, { 'cmdname' => '@' }, { 'text' => 'title ' }, { 'args' => [ { 'contents' => [ { 'text' => 'html' } ], 'type' => 'brace_command_arg' } ], 'cmdname' => 'sc', 'source_info' => { 'file_name' => '', 'line_nr' => 5, 'macro' => '' } }, { 'text' => ' ' }, { 'args' => [ { 'contents' => [ { 'text' => 'test' } ], 'type' => 'brace_command_arg' } ], 'cmdname' => 'code', 'source_info' => { 'file_name' => '', 'line_nr' => 5, 'macro' => '' } } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'top', 'contents' => [ { 'text' => ' ', 'type' => 'empty_line' }, { 'contents' => [ { 'text' => 'Top. ' } ], 'type' => 'paragraph' }, { 'text' => ' ', 'type' => 'empty_line' }, { 'contents' => [ { 'text' => 'Second paragraph. ' } ], 'type' => 'paragraph' } ], 'extra' => {}, 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 5, 'macro' => '' } } ], 'type' => 'document_root' }; $result_texis{'titles'} = ' @settitle @@title @sc{html} @code{test} @node Top @top Top of @@title @sc{html} @code{test} Top. Second paragraph. '; $result_texts{'titles'} = ' Top of @title HTML test *********************** Top. Second paragraph. '; $result_sectioning{'titles'} = { 'structure' => { 'section_childs' => [ { 'cmdname' => 'top', 'extra' => { 'associated_node' => { 'cmdname' => 'node', 'extra' => { 'normalized' => 'Top' } } }, 'structure' => { 'section_level' => 0, 'section_up' => {} } } ], 'section_level' => -1 } }; $result_sectioning{'titles'}{'structure'}{'section_childs'}[0]{'structure'}{'section_up'} = $result_sectioning{'titles'}; $result_nodes{'titles'} = { 'cmdname' => 'node', 'extra' => { 'associated_section' => { 'cmdname' => 'top', 'extra' => {}, 'structure' => {} }, 'normalized' => 'Top' } }; $result_menus{'titles'} = { 'cmdname' => 'node', 'extra' => { 'normalized' => 'Top' } }; $result_errors{'titles'} = []; $result_floats{'titles'} = {}; $result_converted{'html'}->{'titles'} = '
test