note_in_strong.pl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506
  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{'note_in_strong'} = {
  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' => 'Top'
  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. 'parent' => {},
  52. 'text' => '3 One '
  53. },
  54. {
  55. 'args' => [
  56. {
  57. 'contents' => [
  58. {
  59. 'parent' => {},
  60. 'text' => 'Note'
  61. }
  62. ],
  63. 'parent' => {},
  64. 'type' => 'brace_command_arg'
  65. }
  66. ],
  67. 'cmdname' => 'strong',
  68. 'contents' => [],
  69. 'line_nr' => {
  70. 'file_name' => '',
  71. 'line_nr' => 3,
  72. 'macro' => ''
  73. },
  74. 'parent' => {}
  75. },
  76. {
  77. 'parent' => {},
  78. 'text' => '.
  79. '
  80. }
  81. ],
  82. 'parent' => {},
  83. 'type' => 'paragraph'
  84. },
  85. {
  86. 'parent' => {},
  87. 'text' => '
  88. ',
  89. 'type' => 'empty_line'
  90. },
  91. {
  92. 'contents' => [
  93. {
  94. 'parent' => {},
  95. 'text' => '5 '
  96. },
  97. {
  98. 'args' => [
  99. {
  100. 'contents' => [
  101. {
  102. 'parent' => {},
  103. 'text' => 'Note a'
  104. }
  105. ],
  106. 'parent' => {},
  107. 'type' => 'brace_command_arg'
  108. }
  109. ],
  110. 'cmdname' => 'strong',
  111. 'contents' => [],
  112. 'line_nr' => {
  113. 'file_name' => '',
  114. 'line_nr' => 5,
  115. 'macro' => ''
  116. },
  117. 'parent' => {}
  118. },
  119. {
  120. 'parent' => {},
  121. 'text' => '.
  122. '
  123. }
  124. ],
  125. 'parent' => {},
  126. 'type' => 'paragraph'
  127. },
  128. {
  129. 'parent' => {},
  130. 'text' => '
  131. ',
  132. 'type' => 'empty_line'
  133. },
  134. {
  135. 'parent' => {},
  136. 'text' => '
  137. ',
  138. 'type' => 'empty_line'
  139. },
  140. {
  141. 'parent' => {},
  142. 'text' => '
  143. ',
  144. 'type' => 'empty_line'
  145. },
  146. {
  147. 'contents' => [
  148. {
  149. 'parent' => {},
  150. 'text' => '9 '
  151. },
  152. {
  153. 'args' => [
  154. {
  155. 'contents' => [
  156. {
  157. 'parent' => {},
  158. 'text' => 'note'
  159. }
  160. ],
  161. 'parent' => {},
  162. 'type' => 'brace_command_arg'
  163. }
  164. ],
  165. 'cmdname' => 'strong',
  166. 'contents' => [],
  167. 'line_nr' => {
  168. 'file_name' => '',
  169. 'line_nr' => 9,
  170. 'macro' => ''
  171. },
  172. 'parent' => {}
  173. },
  174. {
  175. 'parent' => {},
  176. 'text' => '.
  177. '
  178. }
  179. ],
  180. 'parent' => {},
  181. 'type' => 'paragraph'
  182. },
  183. {
  184. 'parent' => {},
  185. 'text' => '
  186. ',
  187. 'type' => 'empty_line'
  188. },
  189. {
  190. 'contents' => [
  191. {
  192. 'parent' => {},
  193. 'text' => '11 '
  194. },
  195. {
  196. 'args' => [
  197. {
  198. 'contents' => [
  199. {
  200. 'parent' => {},
  201. 'text' => 'note b'
  202. }
  203. ],
  204. 'parent' => {},
  205. 'type' => 'brace_command_arg'
  206. }
  207. ],
  208. 'cmdname' => 'strong',
  209. 'contents' => [],
  210. 'line_nr' => {
  211. 'file_name' => '',
  212. 'line_nr' => 11,
  213. 'macro' => ''
  214. },
  215. 'parent' => {}
  216. },
  217. {
  218. 'parent' => {},
  219. 'text' => '.
  220. '
  221. }
  222. ],
  223. 'parent' => {},
  224. 'type' => 'paragraph'
  225. },
  226. {
  227. 'parent' => {},
  228. 'text' => '
  229. ',
  230. 'type' => 'empty_line'
  231. },
  232. {
  233. 'contents' => [
  234. {
  235. 'parent' => {},
  236. 'text' => '13 '
  237. },
  238. {
  239. 'args' => [
  240. {
  241. 'contents' => [
  242. {
  243. 'parent' => {},
  244. 'text' => ' note'
  245. }
  246. ],
  247. 'parent' => {},
  248. 'type' => 'brace_command_arg'
  249. }
  250. ],
  251. 'cmdname' => 'strong',
  252. 'contents' => [],
  253. 'line_nr' => {
  254. 'file_name' => '',
  255. 'line_nr' => 13,
  256. 'macro' => ''
  257. },
  258. 'parent' => {}
  259. },
  260. {
  261. 'parent' => {},
  262. 'text' => '.
  263. '
  264. }
  265. ],
  266. 'parent' => {},
  267. 'type' => 'paragraph'
  268. },
  269. {
  270. 'parent' => {},
  271. 'text' => '
  272. ',
  273. 'type' => 'empty_line'
  274. },
  275. {
  276. 'contents' => [
  277. {
  278. 'parent' => {},
  279. 'text' => '15 '
  280. },
  281. {
  282. 'args' => [
  283. {
  284. 'contents' => [
  285. {
  286. 'parent' => {},
  287. 'text' => 'note-bbb'
  288. }
  289. ],
  290. 'parent' => {},
  291. 'type' => 'brace_command_arg'
  292. }
  293. ],
  294. 'cmdname' => 'strong',
  295. 'contents' => [],
  296. 'line_nr' => {
  297. 'file_name' => '',
  298. 'line_nr' => 15,
  299. 'macro' => ''
  300. },
  301. 'parent' => {}
  302. },
  303. {
  304. 'parent' => {},
  305. 'text' => '.
  306. '
  307. }
  308. ],
  309. 'parent' => {},
  310. 'type' => 'paragraph'
  311. }
  312. ],
  313. 'extra' => {
  314. 'node_content' => [
  315. {}
  316. ],
  317. 'nodes_manuals' => [
  318. {
  319. 'node_content' => [],
  320. 'normalized' => 'Top'
  321. }
  322. ],
  323. 'normalized' => 'Top',
  324. 'spaces_after_command' => {}
  325. },
  326. 'line_nr' => {
  327. 'file_name' => '',
  328. 'line_nr' => 1,
  329. 'macro' => ''
  330. },
  331. 'parent' => {}
  332. }
  333. ],
  334. 'type' => 'document_root'
  335. };
  336. $result_trees{'note_in_strong'}{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'};
  337. $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'note_in_strong'}{'contents'}[1];
  338. $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0];
  339. $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0];
  340. $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0];
  341. $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  342. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  343. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1];
  344. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'args'}[0];
  345. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[1];
  346. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1];
  347. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1];
  348. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  349. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  350. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3];
  351. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[1]{'args'}[0];
  352. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[1];
  353. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3];
  354. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3];
  355. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[3]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  356. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[4]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  357. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[5]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  358. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[6]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  359. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7];
  360. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[1]{'args'}[0];
  361. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[1];
  362. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7];
  363. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7];
  364. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[7]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  365. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[8]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  366. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9];
  367. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[1]{'args'}[0];
  368. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[1];
  369. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9];
  370. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9];
  371. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[9]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  372. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[10]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  373. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11];
  374. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[1]{'args'}[0];
  375. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[1];
  376. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11];
  377. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11];
  378. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[11]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  379. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[12]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  380. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13];
  381. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[1]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[1]{'args'}[0];
  382. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[1]{'args'}[0]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[1];
  383. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13];
  384. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'contents'}[2]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13];
  385. $result_trees{'note_in_strong'}{'contents'}[1]{'contents'}[13]{'parent'} = $result_trees{'note_in_strong'}{'contents'}[1];
  386. $result_trees{'note_in_strong'}{'contents'}[1]{'extra'}{'node_content'}[0] = $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'contents'}[1];
  387. $result_trees{'note_in_strong'}{'contents'}[1]{'extra'}{'nodes_manuals'}[0]{'node_content'} = $result_trees{'note_in_strong'}{'contents'}[1]{'extra'}{'node_content'};
  388. $result_trees{'note_in_strong'}{'contents'}[1]{'extra'}{'spaces_after_command'} = $result_trees{'note_in_strong'}{'contents'}[1]{'args'}[0]{'contents'}[0];
  389. $result_trees{'note_in_strong'}{'contents'}[1]{'parent'} = $result_trees{'note_in_strong'};
  390. $result_texis{'note_in_strong'} = '@node Top
  391. 3 One @strong{Note}.
  392. 5 @strong{Note a}.
  393. 9 @strong{note}.
  394. 11 @strong{note b}.
  395. 13 @strong{ note}.
  396. 15 @strong{note-bbb}.
  397. ';
  398. $result_texts{'note_in_strong'} = '
  399. 3 One Note.
  400. 5 Note a.
  401. 9 note.
  402. 11 note b.
  403. 13 note.
  404. 15 note-bbb.
  405. ';
  406. $result_sectioning{'note_in_strong'} = {};
  407. $result_nodes{'note_in_strong'} = {
  408. 'cmdname' => 'node',
  409. 'extra' => {
  410. 'normalized' => 'Top'
  411. },
  412. 'node_up' => {
  413. 'extra' => {
  414. 'manual_content' => [
  415. {
  416. 'text' => 'dir'
  417. }
  418. ],
  419. 'top_node_up' => {}
  420. },
  421. 'type' => 'top_node_up'
  422. }
  423. };
  424. $result_nodes{'note_in_strong'}{'node_up'}{'extra'}{'top_node_up'} = $result_nodes{'note_in_strong'};
  425. $result_menus{'note_in_strong'} = {
  426. 'cmdname' => 'node',
  427. 'extra' => {
  428. 'normalized' => 'Top'
  429. }
  430. };
  431. $result_errors{'note_in_strong'} = [];
  432. $result_converted{'info'}->{'note_in_strong'} = 'This is , produced from .
  433. 
  434. File: , Node: Top, Up: (dir)
  435. 3 One *Note*.
  436. 5 *Note a*.
  437. 9 *note*.
  438. 11 *note b*.
  439. 13 * note*.
  440. 15 *note-bbb*.
  441. 
  442. Tag Table:
  443. Node: Top27
  444. 
  445. End Tag Table
  446. ';
  447. $result_converted_errors{'info'}->{'note_in_strong'} = [
  448. {
  449. 'error_line' => ':5: warning: @strong{Note...} produces a spurious cross-reference in Info; reword to avoid that
  450. ',
  451. 'file_name' => '',
  452. 'line_nr' => 5,
  453. 'macro' => '',
  454. 'text' => '@strong{Note...} produces a spurious cross-reference in Info; reword to avoid that',
  455. 'type' => 'warning'
  456. },
  457. {
  458. 'error_line' => ':11: warning: @strong{Note...} produces a spurious cross-reference in Info; reword to avoid that
  459. ',
  460. 'file_name' => '',
  461. 'line_nr' => 11,
  462. 'macro' => '',
  463. 'text' => '@strong{Note...} produces a spurious cross-reference in Info; reword to avoid that',
  464. 'type' => 'warning'
  465. }
  466. ];
  467. 1;