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{'ref_to_float'} = { 'contents' => [ { 'contents' => [ { 'contents' => [], 'type' => 'preamble_before_content' }, { 'args' => [ { 'contents' => [ { 'text' => 'Text' } ], 'type' => 'block_line_arg' }, { 'contents' => [ { 'text' => 'Label1' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' }, 'spaces_before_argument' => { 'text' => ' ' } }, 'type' => 'block_line_arg' } ], 'cmdname' => 'float', 'contents' => [ { 'contents' => [ { 'text' => 'Float ' } ], 'type' => 'paragraph' }, { 'args' => [ { 'contents' => [ { 'text' => 'float' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'end', 'extra' => { 'text_arg' => 'float' }, 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 3, 'macro' => '' } } ], 'extra' => { 'float_type' => 'Text', 'normalized' => 'Label1' }, 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 1, 'macro' => '' } }, { 'text' => ' ', 'type' => 'empty_line' }, { 'args' => [ { 'type' => 'block_line_arg' }, { 'contents' => [ { 'text' => 'Label2' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' }, 'spaces_before_argument' => { 'text' => ' ' } }, 'type' => 'block_line_arg' } ], 'cmdname' => 'float', 'contents' => [ { 'contents' => [ { 'text' => 'In foat 2. ' } ], 'type' => 'paragraph' }, { 'args' => [ { 'contents' => [ { 'text' => 'float' } ], 'info' => { 'spaces_after_argument' => { 'text' => ' ' } }, 'type' => 'line_arg' } ], 'cmdname' => 'end', 'extra' => { 'text_arg' => 'float' }, 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 7, 'macro' => '' } } ], 'extra' => { 'float_type' => '', 'normalized' => 'Label2' }, 'info' => { 'spaces_before_argument' => { 'text' => ' ' } }, 'source_info' => { 'file_name' => '', 'line_nr' => 5, 'macro' => '' } }, { 'text' => ' ', 'type' => 'empty_line' }, { 'contents' => [ { 'args' => [ { 'contents' => [ { 'text' => 'Label1' } ], 'extra' => { 'node_content' => [ {} ], 'normalized' => 'Label1' }, 'type' => 'brace_command_arg' } ], 'cmdname' => 'ref', 'source_info' => { 'file_name' => '', 'line_nr' => 9, 'macro' => '' } }, { 'text' => ' ' } ], 'type' => 'paragraph' }, { 'text' => ' ', 'type' => 'empty_line' }, { 'contents' => [ { 'args' => [ { 'contents' => [ { 'text' => 'Label2' } ], 'extra' => { 'node_content' => [ {} ], 'normalized' => 'Label2' }, 'type' => 'brace_command_arg' } ], 'cmdname' => 'ref', 'source_info' => { 'file_name' => '', 'line_nr' => 11, 'macro' => '' } }, { 'text' => ' ' } ], 'type' => 'paragraph' } ], 'type' => 'before_node_section' } ], 'type' => 'document_root' }; $result_trees{'ref_to_float'}{'contents'}[0]{'contents'}[5]{'contents'}[0]{'args'}[0]{'extra'}{'node_content'}[0] = $result_trees{'ref_to_float'}{'contents'}[0]{'contents'}[5]{'contents'}[0]{'args'}[0]{'contents'}[0]; $result_trees{'ref_to_float'}{'contents'}[0]{'contents'}[7]{'contents'}[0]{'args'}[0]{'extra'}{'node_content'}[0] = $result_trees{'ref_to_float'}{'contents'}[0]{'contents'}[7]{'contents'}[0]{'args'}[0]{'contents'}[0]; $result_texis{'ref_to_float'} = '@float Text, Label1 Float @end float @float , Label2 In foat 2. @end float @ref{Label1} @ref{Label2} '; $result_texts{'ref_to_float'} = 'Text, Label1 Float Label2 In foat 2. Label1 Label2 '; $result_errors{'ref_to_float'} = []; $result_floats{'ref_to_float'} = { '' => [ { 'cmdname' => 'float', 'extra' => { 'float_type' => '', 'normalized' => 'Label2' }, 'structure' => { 'float_number' => 1 } } ], 'Text' => [ { 'cmdname' => 'float', 'extra' => { 'float_type' => 'Text', 'normalized' => 'Label1' }, 'structure' => { 'float_number' => 1 } } ] }; $result_converted{'plaintext'}->{'ref_to_float'} = 'Float Text 1 In foat 2. 1 *note Text 1: Label1. *note 1: Label2. '; $result_converted{'html'}->{'ref_to_float'} = '
Float
Text 1
In foat 2.
1