also_not_line.pl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654
  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{'also_not_line'} = {
  7. 'contents' => [
  8. {
  9. 'parent' => {},
  10. 'text' => '
  11. ',
  12. 'type' => 'empty_line'
  13. },
  14. {
  15. 'parent' => {},
  16. 'text' => '
  17. ',
  18. 'type' => 'empty_line'
  19. },
  20. {
  21. 'contents' => [
  22. {
  23. 'parent' => {},
  24. 'text' => 'page '
  25. }
  26. ],
  27. 'parent' => {},
  28. 'type' => 'paragraph'
  29. },
  30. {
  31. 'args' => [
  32. {
  33. 'parent' => {},
  34. 'text' => '
  35. ',
  36. 'type' => 'misc_arg'
  37. }
  38. ],
  39. 'cmdname' => 'page',
  40. 'parent' => {}
  41. },
  42. {
  43. 'contents' => [
  44. {
  45. 'parent' => {},
  46. 'text' => 'noindent '
  47. },
  48. {
  49. 'cmdname' => 'noindent',
  50. 'extra' => {
  51. 'spaces_after_command' => {
  52. 'extra' => {
  53. 'command' => {}
  54. },
  55. 'parent' => {},
  56. 'text' => ' ',
  57. 'type' => 'empty_spaces_after_command'
  58. }
  59. },
  60. 'line_nr' => {
  61. 'file_name' => '',
  62. 'line_nr' => 4,
  63. 'macro' => ''
  64. },
  65. 'parent' => {}
  66. },
  67. {},
  68. {
  69. 'parent' => {},
  70. 'text' => 'refill '
  71. },
  72. {
  73. 'cmdname' => 'refill',
  74. 'parent' => {}
  75. },
  76. {
  77. 'parent' => {},
  78. 'text' => ' something
  79. '
  80. }
  81. ],
  82. 'parent' => {},
  83. 'type' => 'paragraph'
  84. },
  85. {
  86. 'parent' => {},
  87. 'text' => '
  88. ',
  89. 'type' => 'empty_line'
  90. },
  91. {
  92. 'cmdname' => 'noindent',
  93. 'extra' => {
  94. 'spaces_after_command' => {
  95. 'extra' => {
  96. 'command' => {}
  97. },
  98. 'parent' => {},
  99. 'text' => ' ',
  100. 'type' => 'empty_spaces_after_command'
  101. }
  102. },
  103. 'line_nr' => {
  104. 'file_name' => '',
  105. 'line_nr' => 6,
  106. 'macro' => ''
  107. },
  108. 'parent' => {}
  109. },
  110. {},
  111. {
  112. 'contents' => [
  113. {
  114. 'parent' => {},
  115. 'text' => 'noindent at beginning of line
  116. '
  117. },
  118. {
  119. 'cmdname' => 'noindent',
  120. 'extra' => {
  121. 'spaces_after_command' => {
  122. 'extra' => {
  123. 'command' => {}
  124. },
  125. 'parent' => {},
  126. 'text' => '
  127. ',
  128. 'type' => 'empty_line_after_command'
  129. }
  130. },
  131. 'line_nr' => {
  132. 'file_name' => '',
  133. 'line_nr' => 7,
  134. 'macro' => ''
  135. },
  136. 'parent' => {}
  137. },
  138. {},
  139. {
  140. 'parent' => {},
  141. 'text' => 'noindent on the preceding line
  142. '
  143. },
  144. {
  145. 'parent' => {},
  146. 'text' => ' '
  147. },
  148. {
  149. 'cmdname' => 'noindent',
  150. 'extra' => {
  151. 'spaces_after_command' => {
  152. 'extra' => {
  153. 'command' => {}
  154. },
  155. 'parent' => {},
  156. 'text' => ' ',
  157. 'type' => 'empty_spaces_after_command'
  158. }
  159. },
  160. 'line_nr' => {
  161. 'file_name' => '',
  162. 'line_nr' => 9,
  163. 'macro' => ''
  164. },
  165. 'parent' => {}
  166. },
  167. {},
  168. {
  169. 'parent' => {},
  170. 'text' => 'noindent after space at beginning of line
  171. '
  172. }
  173. ],
  174. 'extra' => {
  175. 'noindent' => 1
  176. },
  177. 'parent' => {},
  178. 'type' => 'paragraph'
  179. },
  180. {
  181. 'args' => [
  182. {
  183. 'parent' => {},
  184. 'text' => ' page at beginning of line
  185. ',
  186. 'type' => 'misc_arg'
  187. }
  188. ],
  189. 'cmdname' => 'page',
  190. 'parent' => {}
  191. },
  192. {
  193. 'args' => [
  194. {
  195. 'parent' => {},
  196. 'text' => '
  197. ',
  198. 'type' => 'misc_arg'
  199. }
  200. ],
  201. 'cmdname' => 'page',
  202. 'parent' => {}
  203. },
  204. {
  205. 'contents' => [
  206. {
  207. 'parent' => {},
  208. 'text' => 'After page on its own line.
  209. '
  210. }
  211. ],
  212. 'parent' => {},
  213. 'type' => 'paragraph'
  214. },
  215. {
  216. 'parent' => {},
  217. 'text' => '
  218. ',
  219. 'type' => 'empty_line'
  220. },
  221. {
  222. 'contents' => [
  223. {
  224. 'parent' => {},
  225. 'text' => 'page '
  226. }
  227. ],
  228. 'parent' => {},
  229. 'type' => 'paragraph'
  230. },
  231. {
  232. 'args' => [
  233. {
  234. 'parent' => {},
  235. 'text' => '
  236. ',
  237. 'type' => 'misc_arg'
  238. }
  239. ],
  240. 'cmdname' => 'page',
  241. 'parent' => {}
  242. },
  243. {
  244. 'contents' => [
  245. {
  246. 'parent' => {},
  247. 'text' => 'noindent '
  248. },
  249. {
  250. 'cmdname' => 'noindent',
  251. 'extra' => {
  252. 'spaces_after_command' => {
  253. 'extra' => {
  254. 'command' => {}
  255. },
  256. 'parent' => {},
  257. 'text' => ' ',
  258. 'type' => 'empty_spaces_after_command'
  259. }
  260. },
  261. 'line_nr' => {
  262. 'file_name' => '',
  263. 'line_nr' => 15,
  264. 'macro' => ''
  265. },
  266. 'parent' => {}
  267. },
  268. {},
  269. {
  270. 'parent' => {},
  271. 'text' => 'refill '
  272. },
  273. {
  274. 'cmdname' => 'refill',
  275. 'parent' => {}
  276. },
  277. {
  278. 'parent' => {},
  279. 'text' => '
  280. '
  281. },
  282. {
  283. 'parent' => {},
  284. 'text' => 'novalidate '
  285. },
  286. {
  287. 'args' => [
  288. {
  289. 'parent' => {},
  290. 'text' => ' something
  291. ',
  292. 'type' => 'misc_arg'
  293. }
  294. ],
  295. 'cmdname' => 'novalidate',
  296. 'line_nr' => {
  297. 'file_name' => '',
  298. 'line_nr' => 16,
  299. 'macro' => ''
  300. },
  301. 'parent' => {}
  302. }
  303. ],
  304. 'parent' => {},
  305. 'type' => 'paragraph'
  306. },
  307. {
  308. 'parent' => {},
  309. 'text' => '
  310. ',
  311. 'type' => 'empty_line'
  312. },
  313. {
  314. 'args' => [
  315. {
  316. 'contents' => [
  317. {
  318. 'extra' => {
  319. 'command' => {}
  320. },
  321. 'parent' => {},
  322. 'text' => ' ',
  323. 'type' => 'empty_spaces_after_command'
  324. },
  325. {
  326. 'parent' => {},
  327. 'text' => 'special'
  328. },
  329. {
  330. 'parent' => {},
  331. 'text' => '
  332. ',
  333. 'type' => 'spaces_at_end'
  334. }
  335. ],
  336. 'parent' => {},
  337. 'type' => 'misc_line_arg'
  338. }
  339. ],
  340. 'cmdname' => 'subheading',
  341. 'extra' => {
  342. 'misc_content' => [
  343. {}
  344. ],
  345. 'spaces_after_command' => {}
  346. },
  347. 'level' => 3,
  348. 'line_nr' => {
  349. 'file_name' => '',
  350. 'line_nr' => 18,
  351. 'macro' => ''
  352. },
  353. 'parent' => {}
  354. },
  355. {
  356. 'parent' => {},
  357. 'text' => '
  358. ',
  359. 'type' => 'empty_line'
  360. },
  361. {
  362. 'contents' => [
  363. {
  364. 'parent' => {},
  365. 'text' => 'Only valid between iftex:
  366. '
  367. },
  368. {
  369. 'parent' => {},
  370. 'text' => 'vskip '
  371. },
  372. {
  373. 'args' => [
  374. {
  375. 'parent' => {},
  376. 'text' => '
  377. ',
  378. 'type' => 'misc_arg'
  379. }
  380. ],
  381. 'cmdname' => 'vskip',
  382. 'extra' => {
  383. 'misc_args' => [
  384. '
  385. '
  386. ]
  387. },
  388. 'parent' => {}
  389. },
  390. {
  391. 'parent' => {},
  392. 'text' => 'cropmarks '
  393. },
  394. {
  395. 'args' => [
  396. {
  397. 'parent' => {},
  398. 'text' => '
  399. ',
  400. 'type' => 'misc_arg'
  401. }
  402. ],
  403. 'cmdname' => 'cropmarks',
  404. 'parent' => {}
  405. }
  406. ],
  407. 'parent' => {},
  408. 'type' => 'paragraph'
  409. },
  410. {
  411. 'parent' => {},
  412. 'text' => '
  413. ',
  414. 'type' => 'empty_line'
  415. },
  416. {
  417. 'contents' => [
  418. {
  419. 'parent' => {},
  420. 'text' => 'exdent '
  421. }
  422. ],
  423. 'parent' => {},
  424. 'type' => 'paragraph'
  425. },
  426. {
  427. 'args' => [
  428. {
  429. 'contents' => [
  430. {
  431. 'extra' => {
  432. 'command' => {}
  433. },
  434. 'parent' => {},
  435. 'text' => ' ',
  436. 'type' => 'empty_spaces_after_command'
  437. },
  438. {
  439. 'parent' => {},
  440. 'text' => 'line after exdent'
  441. },
  442. {
  443. 'parent' => {},
  444. 'text' => '
  445. ',
  446. 'type' => 'spaces_at_end'
  447. }
  448. ],
  449. 'parent' => {},
  450. 'type' => 'misc_line_arg'
  451. }
  452. ],
  453. 'cmdname' => 'exdent',
  454. 'extra' => {
  455. 'misc_content' => [
  456. {}
  457. ],
  458. 'spaces_after_command' => {}
  459. },
  460. 'line_nr' => {
  461. 'file_name' => '',
  462. 'line_nr' => 24,
  463. 'macro' => ''
  464. },
  465. 'parent' => {}
  466. }
  467. ],
  468. 'type' => 'text_root'
  469. };
  470. $result_trees{'also_not_line'}{'contents'}[0]{'parent'} = $result_trees{'also_not_line'};
  471. $result_trees{'also_not_line'}{'contents'}[1]{'parent'} = $result_trees{'also_not_line'};
  472. $result_trees{'also_not_line'}{'contents'}[2]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[2];
  473. $result_trees{'also_not_line'}{'contents'}[2]{'parent'} = $result_trees{'also_not_line'};
  474. $result_trees{'also_not_line'}{'contents'}[3]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[3];
  475. $result_trees{'also_not_line'}{'contents'}[3]{'parent'} = $result_trees{'also_not_line'};
  476. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[4];
  477. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[1]{'extra'}{'spaces_after_command'}{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[1];
  478. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[1]{'extra'}{'spaces_after_command'}{'parent'} = $result_trees{'also_not_line'}{'contents'}[4];
  479. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[1]{'parent'} = $result_trees{'also_not_line'}{'contents'}[4];
  480. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[2] = $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[1]{'extra'}{'spaces_after_command'};
  481. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[3]{'parent'} = $result_trees{'also_not_line'}{'contents'}[4];
  482. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[4]{'parent'} = $result_trees{'also_not_line'}{'contents'}[4];
  483. $result_trees{'also_not_line'}{'contents'}[4]{'contents'}[5]{'parent'} = $result_trees{'also_not_line'}{'contents'}[4];
  484. $result_trees{'also_not_line'}{'contents'}[4]{'parent'} = $result_trees{'also_not_line'};
  485. $result_trees{'also_not_line'}{'contents'}[5]{'parent'} = $result_trees{'also_not_line'};
  486. $result_trees{'also_not_line'}{'contents'}[6]{'extra'}{'spaces_after_command'}{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[6];
  487. $result_trees{'also_not_line'}{'contents'}[6]{'extra'}{'spaces_after_command'}{'parent'} = $result_trees{'also_not_line'};
  488. $result_trees{'also_not_line'}{'contents'}[6]{'parent'} = $result_trees{'also_not_line'};
  489. $result_trees{'also_not_line'}{'contents'}[7] = $result_trees{'also_not_line'}{'contents'}[6]{'extra'}{'spaces_after_command'};
  490. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  491. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[1]{'extra'}{'spaces_after_command'}{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[1];
  492. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[1]{'extra'}{'spaces_after_command'}{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  493. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[1]{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  494. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[2] = $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[1]{'extra'}{'spaces_after_command'};
  495. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[3]{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  496. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[4]{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  497. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[5]{'extra'}{'spaces_after_command'}{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[5];
  498. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[5]{'extra'}{'spaces_after_command'}{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  499. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[5]{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  500. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[6] = $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[5]{'extra'}{'spaces_after_command'};
  501. $result_trees{'also_not_line'}{'contents'}[8]{'contents'}[7]{'parent'} = $result_trees{'also_not_line'}{'contents'}[8];
  502. $result_trees{'also_not_line'}{'contents'}[8]{'parent'} = $result_trees{'also_not_line'};
  503. $result_trees{'also_not_line'}{'contents'}[9]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[9];
  504. $result_trees{'also_not_line'}{'contents'}[9]{'parent'} = $result_trees{'also_not_line'};
  505. $result_trees{'also_not_line'}{'contents'}[10]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[10];
  506. $result_trees{'also_not_line'}{'contents'}[10]{'parent'} = $result_trees{'also_not_line'};
  507. $result_trees{'also_not_line'}{'contents'}[11]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[11];
  508. $result_trees{'also_not_line'}{'contents'}[11]{'parent'} = $result_trees{'also_not_line'};
  509. $result_trees{'also_not_line'}{'contents'}[12]{'parent'} = $result_trees{'also_not_line'};
  510. $result_trees{'also_not_line'}{'contents'}[13]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[13];
  511. $result_trees{'also_not_line'}{'contents'}[13]{'parent'} = $result_trees{'also_not_line'};
  512. $result_trees{'also_not_line'}{'contents'}[14]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[14];
  513. $result_trees{'also_not_line'}{'contents'}[14]{'parent'} = $result_trees{'also_not_line'};
  514. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  515. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[1]{'extra'}{'spaces_after_command'}{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[1];
  516. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[1]{'extra'}{'spaces_after_command'}{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  517. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[1]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  518. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[2] = $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[1]{'extra'}{'spaces_after_command'};
  519. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[3]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  520. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[4]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  521. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[5]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  522. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[6]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  523. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[7]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[7];
  524. $result_trees{'also_not_line'}{'contents'}[15]{'contents'}[7]{'parent'} = $result_trees{'also_not_line'}{'contents'}[15];
  525. $result_trees{'also_not_line'}{'contents'}[15]{'parent'} = $result_trees{'also_not_line'};
  526. $result_trees{'also_not_line'}{'contents'}[16]{'parent'} = $result_trees{'also_not_line'};
  527. $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[17];
  528. $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0];
  529. $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0];
  530. $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0];
  531. $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[17];
  532. $result_trees{'also_not_line'}{'contents'}[17]{'extra'}{'misc_content'}[0] = $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'contents'}[1];
  533. $result_trees{'also_not_line'}{'contents'}[17]{'extra'}{'spaces_after_command'} = $result_trees{'also_not_line'}{'contents'}[17]{'args'}[0]{'contents'}[0];
  534. $result_trees{'also_not_line'}{'contents'}[17]{'parent'} = $result_trees{'also_not_line'};
  535. $result_trees{'also_not_line'}{'contents'}[18]{'parent'} = $result_trees{'also_not_line'};
  536. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19];
  537. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[1]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19];
  538. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[2]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[2];
  539. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[2]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19];
  540. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[3]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19];
  541. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[4]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[4];
  542. $result_trees{'also_not_line'}{'contents'}[19]{'contents'}[4]{'parent'} = $result_trees{'also_not_line'}{'contents'}[19];
  543. $result_trees{'also_not_line'}{'contents'}[19]{'parent'} = $result_trees{'also_not_line'};
  544. $result_trees{'also_not_line'}{'contents'}[20]{'parent'} = $result_trees{'also_not_line'};
  545. $result_trees{'also_not_line'}{'contents'}[21]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[21];
  546. $result_trees{'also_not_line'}{'contents'}[21]{'parent'} = $result_trees{'also_not_line'};
  547. $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'contents'}[0]{'extra'}{'command'} = $result_trees{'also_not_line'}{'contents'}[22];
  548. $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'contents'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0];
  549. $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'contents'}[1]{'parent'} = $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0];
  550. $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'contents'}[2]{'parent'} = $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0];
  551. $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'parent'} = $result_trees{'also_not_line'}{'contents'}[22];
  552. $result_trees{'also_not_line'}{'contents'}[22]{'extra'}{'misc_content'}[0] = $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'contents'}[1];
  553. $result_trees{'also_not_line'}{'contents'}[22]{'extra'}{'spaces_after_command'} = $result_trees{'also_not_line'}{'contents'}[22]{'args'}[0]{'contents'}[0];
  554. $result_trees{'also_not_line'}{'contents'}[22]{'parent'} = $result_trees{'also_not_line'};
  555. $result_texis{'also_not_line'} = '
  556. page @page
  557. noindent @noindent refill @refill something
  558. @noindent noindent at beginning of line
  559. @noindent
  560. noindent on the preceding line
  561. @noindent noindent after space at beginning of line
  562. @page page at beginning of line
  563. @page
  564. After page on its own line.
  565. page @page
  566. noindent @noindent refill @refill
  567. novalidate @novalidate something
  568. @subheading special
  569. Only valid between iftex:
  570. vskip @vskip
  571. cropmarks @cropmarks
  572. exdent @exdent line after exdent
  573. ';
  574. $result_texts{'also_not_line'} = '
  575. page noindent refill something
  576. noindent at beginning of line
  577. noindent on the preceding line
  578. noindent after space at beginning of line
  579. After page on its own line.
  580. page noindent refill
  581. novalidate
  582. special
  583. -------
  584. Only valid between iftex:
  585. vskip cropmarks
  586. exdent line after exdent
  587. ';
  588. $result_errors{'also_not_line'} = [
  589. {
  590. 'error_line' => ':3: warning: @page should only appear at the beginning of a line
  591. ',
  592. 'file_name' => '',
  593. 'line_nr' => 3,
  594. 'macro' => '',
  595. 'text' => '@page should only appear at the beginning of a line',
  596. 'type' => 'warning'
  597. },
  598. {
  599. 'error_line' => ':14: warning: @page should only appear at the beginning of a line
  600. ',
  601. 'file_name' => '',
  602. 'line_nr' => 14,
  603. 'macro' => '',
  604. 'text' => '@page should only appear at the beginning of a line',
  605. 'type' => 'warning'
  606. },
  607. {
  608. 'error_line' => ':16: warning: @novalidate should only appear at the beginning of a line
  609. ',
  610. 'file_name' => '',
  611. 'line_nr' => 16,
  612. 'macro' => '',
  613. 'text' => '@novalidate should only appear at the beginning of a line',
  614. 'type' => 'warning'
  615. },
  616. {
  617. 'error_line' => ':22: warning: @cropmarks should only appear at the beginning of a line
  618. ',
  619. 'file_name' => '',
  620. 'line_nr' => 22,
  621. 'macro' => '',
  622. 'text' => '@cropmarks should only appear at the beginning of a line',
  623. 'type' => 'warning'
  624. },
  625. {
  626. 'error_line' => ':24: warning: @exdent should only appear at the beginning of a line
  627. ',
  628. 'file_name' => '',
  629. 'line_nr' => 24,
  630. 'macro' => '',
  631. 'text' => '@exdent should only appear at the beginning of a line',
  632. 'type' => 'warning'
  633. }
  634. ];
  635. 1;