inforef_too_much_args.pl 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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{'inforef_too_much_args'} = {
  7. 'contents' => [
  8. {
  9. 'contents' => [],
  10. 'parent' => {},
  11. 'type' => 'text_root'
  12. },
  13. {
  14. 'args' => [
  15. {
  16. 'contents' => [
  17. {
  18. 'extra' => {
  19. 'command' => {}
  20. },
  21. 'parent' => {},
  22. 'text' => ' ',
  23. 'type' => 'empty_spaces_after_command'
  24. },
  25. {
  26. 'parent' => {},
  27. 'text' => 'chapter'
  28. },
  29. {
  30. 'parent' => {},
  31. 'text' => '
  32. ',
  33. 'type' => 'spaces_at_end'
  34. }
  35. ],
  36. 'parent' => {},
  37. 'type' => 'misc_line_arg'
  38. }
  39. ],
  40. 'cmdname' => 'node',
  41. 'contents' => [
  42. {
  43. 'parent' => {},
  44. 'text' => '
  45. ',
  46. 'type' => 'empty_line'
  47. },
  48. {
  49. 'contents' => [
  50. {
  51. 'args' => [
  52. {
  53. 'contents' => [
  54. {
  55. 'parent' => {},
  56. 'text' => 'chapter'
  57. }
  58. ],
  59. 'parent' => {},
  60. 'type' => 'brace_command_arg'
  61. },
  62. {
  63. 'contents' => [
  64. {
  65. 'parent' => {},
  66. 'text' => ' ',
  67. 'type' => 'empty_spaces_before_argument'
  68. },
  69. {
  70. 'parent' => {},
  71. 'text' => 'cross ref name'
  72. }
  73. ],
  74. 'parent' => {},
  75. 'type' => 'brace_command_arg'
  76. },
  77. {
  78. 'contents' => [
  79. {
  80. 'parent' => {},
  81. 'text' => ' ',
  82. 'type' => 'empty_spaces_before_argument'
  83. },
  84. {
  85. 'parent' => {},
  86. 'text' => 'file name, spurious arg'
  87. }
  88. ],
  89. 'parent' => {},
  90. 'type' => 'brace_command_arg'
  91. }
  92. ],
  93. 'cmdname' => 'inforef',
  94. 'contents' => [],
  95. 'extra' => {
  96. 'brace_command_contents' => [
  97. [
  98. {}
  99. ],
  100. [
  101. {}
  102. ],
  103. [
  104. {}
  105. ]
  106. ],
  107. 'node_argument' => {
  108. 'node_content' => [
  109. {}
  110. ]
  111. }
  112. },
  113. 'line_nr' => {
  114. 'file_name' => '',
  115. 'line_nr' => 3,
  116. 'macro' => ''
  117. },
  118. 'parent' => {}
  119. },
  120. {
  121. 'parent' => {},
  122. 'text' => '
  123. '
  124. }
  125. ],
  126. 'parent' => {},
  127. 'type' => 'paragraph'
  128. }
  129. ],
  130. 'extra' => {
  131. 'node_content' => [
  132. {}
  133. ],
  134. 'nodes_manuals' => [
  135. {
  136. 'node_content' => [],
  137. 'normalized' => 'chapter'
  138. }
  139. ],
  140. 'normalized' => 'chapter',
  141. 'spaces_after_command' => {}
  142. },
  143. 'line_nr' => {
  144. 'file_name' => '',
  145. 'line_nr' => 1,
  146. 'macro' => ''
  147. },
  148. 'parent' => {}
  149. }
  150. ],
  151. 'type' => 'document_root'
  152. };
  153. $result_trees{'inforef_too_much_args'}{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'};
  154. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'inforef_too_much_args'}{'contents'}[1];
  155. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0];
  156. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0];
  157. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0];
  158. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1];
  159. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1];
  160. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[0];
  161. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0];
  162. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[1]{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[1];
  163. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[1]{'contents'}[1]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[1];
  164. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[1]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0];
  165. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[2]{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[2];
  166. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[2]{'contents'}[1]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[2];
  167. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[2]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0];
  168. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'extra'}{'brace_command_contents'}[0][0] = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
  169. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'extra'}{'brace_command_contents'}[1][0] = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[1]{'contents'}[1];
  170. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'extra'}{'brace_command_contents'}[2][0] = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[2]{'contents'}[1];
  171. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'extra'}{'node_argument'}{'node_content'}[0] = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'args'}[0]{'contents'}[0];
  172. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1];
  173. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1];
  174. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'contents'}[1]{'parent'} = $result_trees{'inforef_too_much_args'}{'contents'}[1];
  175. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'extra'}{'node_content'}[0] = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'contents'}[1];
  176. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'extra'}{'node_content'};
  177. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'extra'}{'spaces_after_command'} = $result_trees{'inforef_too_much_args'}{'contents'}[1]{'args'}[0]{'contents'}[0];
  178. $result_trees{'inforef_too_much_args'}{'contents'}[1]{'parent'} = $result_trees{'inforef_too_much_args'};
  179. $result_texis{'inforef_too_much_args'} = '@node chapter
  180. @inforef{chapter, cross ref name, file name, spurious arg}
  181. ';
  182. $result_texts{'inforef_too_much_args'} = '
  183. chapter
  184. ';
  185. $result_sectioning{'inforef_too_much_args'} = {};
  186. $result_nodes{'inforef_too_much_args'} = {
  187. 'cmdname' => 'node',
  188. 'extra' => {
  189. 'normalized' => 'chapter'
  190. }
  191. };
  192. $result_menus{'inforef_too_much_args'} = {
  193. 'cmdname' => 'node',
  194. 'extra' => {
  195. 'normalized' => 'chapter'
  196. }
  197. };
  198. $result_errors{'inforef_too_much_args'} = [];
  199. $result_converted{'plaintext'}->{'inforef_too_much_args'} = '*note cross ref name: (file name, spurious arg)chapter.
  200. ';
  201. $result_converted{'html_text'}->{'inforef_too_much_args'} = '<a name="chapter"></a>
  202. <h4 class="node-heading">chapter</h4>
  203. <p>See <a href="file name, spurious arg.html#chapter">(file name, spurious arg)cross ref name</a>
  204. </p><hr>
  205. ';
  206. 1;