ref_in_style_command.pl 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. use vars qw(%result_texis %result_texts %result_trees %result_errors
  2. %result_indices %result_sectioning %result_nodes %result_menus
  3. %result_floats %result_converted %result_converted_errors
  4. %result_elements %result_directions_text);
  5. use utf8;
  6. $result_trees{'ref_in_style_command'} = {
  7. 'contents' => [
  8. {
  9. 'contents' => [
  10. {
  11. 'args' => [
  12. {
  13. 'contents' => [
  14. {
  15. 'args' => [
  16. {
  17. 'contents' => [
  18. {
  19. 'parent' => {},
  20. 'text' => '(manula)other node'
  21. }
  22. ],
  23. 'parent' => {},
  24. 'type' => 'brace_command_arg'
  25. }
  26. ],
  27. 'cmdname' => 'ref',
  28. 'contents' => [],
  29. 'extra' => {
  30. 'brace_command_contents' => [
  31. [
  32. {}
  33. ]
  34. ],
  35. 'node_argument' => {
  36. 'manual_content' => [
  37. {
  38. 'parent' => {},
  39. 'text' => 'manula'
  40. }
  41. ],
  42. 'node_content' => [
  43. {
  44. 'parent' => {},
  45. 'text' => 'other node'
  46. }
  47. ]
  48. }
  49. },
  50. 'line_nr' => {
  51. 'file_name' => '',
  52. 'line_nr' => 1,
  53. 'macro' => ''
  54. },
  55. 'parent' => {}
  56. }
  57. ],
  58. 'parent' => {},
  59. 'type' => 'brace_command_arg'
  60. }
  61. ],
  62. 'cmdname' => 'samp',
  63. 'contents' => [],
  64. 'line_nr' => {},
  65. 'parent' => {}
  66. },
  67. {
  68. 'parent' => {},
  69. 'text' => '.'
  70. }
  71. ],
  72. 'parent' => {},
  73. 'type' => 'paragraph'
  74. }
  75. ],
  76. 'type' => 'text_root'
  77. };
  78. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'args'}[0];
  79. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0];
  80. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'brace_command_contents'}[0][0] = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0];
  81. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'node_argument'}{'manual_content'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'args'}[0];
  82. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'args'}[0];
  83. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0];
  84. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0];
  85. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'line_nr'} = $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'args'}[0]{'contents'}[0]{'line_nr'};
  86. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[0]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0];
  87. $result_trees{'ref_in_style_command'}{'contents'}[0]{'contents'}[1]{'parent'} = $result_trees{'ref_in_style_command'}{'contents'}[0];
  88. $result_trees{'ref_in_style_command'}{'contents'}[0]{'parent'} = $result_trees{'ref_in_style_command'};
  89. $result_texis{'ref_in_style_command'} = '@samp{@ref{(manula)other node}}.';
  90. $result_texts{'ref_in_style_command'} = '(manula)other node.';
  91. $result_errors{'ref_in_style_command'} = [];
  92. $result_converted{'plaintext'}->{'ref_in_style_command'} = '\'*note (manula)other node::\'.
  93. ';
  94. $result_converted{'html_text'}->{'ref_in_style_command'} = '<p>&lsquo;<samp><a href="manula.html#other-node">(manula)other node</a></samp>&rsquo;.</p>';
  95. 1;