kbd.pl 20 KB

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