postext 1.63.3 → 1.63.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (792) hide show
  1. package/dist/bundle/codec/files.d.ts +20 -0
  2. package/dist/bundle/codec/files.d.ts.map +1 -0
  3. package/dist/bundle/codec/files.js +92 -0
  4. package/dist/bundle/codec/files.js.map +1 -0
  5. package/dist/bundle/codec/plan.d.ts +114 -0
  6. package/dist/bundle/codec/plan.d.ts.map +1 -0
  7. package/dist/bundle/codec/plan.js +367 -0
  8. package/dist/bundle/codec/plan.js.map +1 -0
  9. package/dist/bundle/codec/read.d.ts +92 -0
  10. package/dist/bundle/codec/read.d.ts.map +1 -0
  11. package/dist/bundle/codec/read.js +249 -0
  12. package/dist/bundle/codec/read.js.map +1 -0
  13. package/dist/bundle/codec.d.ts +6 -218
  14. package/dist/bundle/codec.d.ts.map +1 -1
  15. package/dist/bundle/codec.js +3 -699
  16. package/dist/bundle/codec.js.map +1 -1
  17. package/dist/bundle/manifest/entries.d.ts +25 -0
  18. package/dist/bundle/manifest/entries.d.ts.map +1 -0
  19. package/dist/bundle/manifest/entries.js +108 -0
  20. package/dist/bundle/manifest/entries.js.map +1 -0
  21. package/dist/bundle/manifest/fileNames.d.ts +38 -0
  22. package/dist/bundle/manifest/fileNames.d.ts.map +1 -0
  23. package/dist/bundle/manifest/fileNames.js +143 -0
  24. package/dist/bundle/manifest/fileNames.js.map +1 -0
  25. package/dist/bundle/manifest/locale.d.ts +61 -0
  26. package/dist/bundle/manifest/locale.d.ts.map +1 -0
  27. package/dist/bundle/manifest/locale.js +216 -0
  28. package/dist/bundle/manifest/locale.js.map +1 -0
  29. package/dist/bundle/manifest/sizes.d.ts +18 -0
  30. package/dist/bundle/manifest/sizes.d.ts.map +1 -0
  31. package/dist/bundle/manifest/sizes.js +257 -0
  32. package/dist/bundle/manifest/sizes.js.map +1 -0
  33. package/dist/bundle/manifest/validation.d.ts +10 -0
  34. package/dist/bundle/manifest/validation.d.ts.map +1 -0
  35. package/dist/bundle/manifest/validation.js +114 -0
  36. package/dist/bundle/manifest/validation.js.map +1 -0
  37. package/dist/bundle/manifest.d.ts +7 -139
  38. package/dist/bundle/manifest.d.ts.map +1 -1
  39. package/dist/bundle/manifest.js +5 -829
  40. package/dist/bundle/manifest.js.map +1 -1
  41. package/dist/canvas-backend/blockRender/block.d.ts +5 -0
  42. package/dist/canvas-backend/blockRender/block.d.ts.map +1 -0
  43. package/dist/canvas-backend/blockRender/block.js +240 -0
  44. package/dist/canvas-backend/blockRender/block.js.map +1 -0
  45. package/dist/canvas-backend/blockRender/lines.d.ts +16 -0
  46. package/dist/canvas-backend/blockRender/lines.d.ts.map +1 -0
  47. package/dist/canvas-backend/blockRender/lines.js +192 -0
  48. package/dist/canvas-backend/blockRender/lines.js.map +1 -0
  49. package/dist/canvas-backend/blockRender/segments.d.ts +54 -0
  50. package/dist/canvas-backend/blockRender/segments.d.ts.map +1 -0
  51. package/dist/canvas-backend/blockRender/segments.js +311 -0
  52. package/dist/canvas-backend/blockRender/segments.js.map +1 -0
  53. package/dist/canvas-backend/blockRender.d.ts +2 -7
  54. package/dist/canvas-backend/blockRender.d.ts.map +1 -1
  55. package/dist/canvas-backend/blockRender.js +3 -727
  56. package/dist/canvas-backend/blockRender.js.map +1 -1
  57. package/dist/canvas-backend/renderResourceBlock/block.d.ts +9 -0
  58. package/dist/canvas-backend/renderResourceBlock/block.d.ts.map +1 -0
  59. package/dist/canvas-backend/renderResourceBlock/block.js +185 -0
  60. package/dist/canvas-backend/renderResourceBlock/block.js.map +1 -0
  61. package/dist/canvas-backend/renderResourceBlock/images.d.ts +67 -0
  62. package/dist/canvas-backend/renderResourceBlock/images.d.ts.map +1 -0
  63. package/dist/canvas-backend/renderResourceBlock/images.js +224 -0
  64. package/dist/canvas-backend/renderResourceBlock/images.js.map +1 -0
  65. package/dist/canvas-backend/renderResourceBlock/overlays.d.ts +10 -0
  66. package/dist/canvas-backend/renderResourceBlock/overlays.d.ts.map +1 -0
  67. package/dist/canvas-backend/renderResourceBlock/overlays.js +107 -0
  68. package/dist/canvas-backend/renderResourceBlock/overlays.js.map +1 -0
  69. package/dist/canvas-backend/renderResourceBlock/table.d.ts +3 -0
  70. package/dist/canvas-backend/renderResourceBlock/table.d.ts.map +1 -0
  71. package/dist/canvas-backend/renderResourceBlock/table.js +143 -0
  72. package/dist/canvas-backend/renderResourceBlock/table.js.map +1 -0
  73. package/dist/canvas-backend/renderResourceBlock/text.d.ts +11 -0
  74. package/dist/canvas-backend/renderResourceBlock/text.d.ts.map +1 -0
  75. package/dist/canvas-backend/renderResourceBlock/text.js +141 -0
  76. package/dist/canvas-backend/renderResourceBlock/text.js.map +1 -0
  77. package/dist/canvas-backend/renderResourceBlock.d.ts +4 -81
  78. package/dist/canvas-backend/renderResourceBlock.d.ts.map +1 -1
  79. package/dist/canvas-backend/renderResourceBlock.js +3 -777
  80. package/dist/canvas-backend/renderResourceBlock.js.map +1 -1
  81. package/dist/canvas-backend/verticalText/alternates.d.ts +47 -0
  82. package/dist/canvas-backend/verticalText/alternates.d.ts.map +1 -0
  83. package/dist/canvas-backend/verticalText/alternates.js +240 -0
  84. package/dist/canvas-backend/verticalText/alternates.js.map +1 -0
  85. package/dist/canvas-backend/verticalText/painter.d.ts +58 -0
  86. package/dist/canvas-backend/verticalText/painter.d.ts.map +1 -0
  87. package/dist/canvas-backend/verticalText/painter.js +329 -0
  88. package/dist/canvas-backend/verticalText/painter.js.map +1 -0
  89. package/dist/canvas-backend/verticalText.d.ts +4 -101
  90. package/dist/canvas-backend/verticalText.d.ts.map +1 -1
  91. package/dist/canvas-backend/verticalText.js +2 -562
  92. package/dist/canvas-backend/verticalText.js.map +1 -1
  93. package/dist/checks/contrast/colours.d.ts +64 -0
  94. package/dist/checks/contrast/colours.d.ts.map +1 -0
  95. package/dist/checks/contrast/colours.js +101 -0
  96. package/dist/checks/contrast/colours.js.map +1 -0
  97. package/dist/checks/contrast/document.d.ts +17 -0
  98. package/dist/checks/contrast/document.d.ts.map +1 -0
  99. package/dist/checks/contrast/document.js +132 -0
  100. package/dist/checks/contrast/document.js.map +1 -0
  101. package/dist/checks/contrast/pairs.d.ts +10 -0
  102. package/dist/checks/contrast/pairs.d.ts.map +1 -0
  103. package/dist/checks/contrast/pairs.js +462 -0
  104. package/dist/checks/contrast/pairs.js.map +1 -0
  105. package/dist/checks/contrast/types.d.ts +114 -0
  106. package/dist/checks/contrast/types.d.ts.map +1 -0
  107. package/dist/checks/contrast/types.js +2 -0
  108. package/dist/checks/contrast/types.js.map +1 -0
  109. package/dist/checks/contrast.d.ts +5 -170
  110. package/dist/checks/contrast.d.ts.map +1 -1
  111. package/dist/checks/contrast.js +3 -686
  112. package/dist/checks/contrast.js.map +1 -1
  113. package/dist/comics/layoutPage/letterPanels.d.ts +38 -0
  114. package/dist/comics/layoutPage/letterPanels.d.ts.map +1 -0
  115. package/dist/comics/layoutPage/letterPanels.js +146 -0
  116. package/dist/comics/layoutPage/letterPanels.js.map +1 -0
  117. package/dist/comics/layoutPage/letteringStyle.d.ts +31 -0
  118. package/dist/comics/layoutPage/letteringStyle.d.ts.map +1 -0
  119. package/dist/comics/layoutPage/letteringStyle.js +88 -0
  120. package/dist/comics/layoutPage/letteringStyle.js.map +1 -0
  121. package/dist/comics/layoutPage/records.d.ts +25 -0
  122. package/dist/comics/layoutPage/records.d.ts.map +1 -0
  123. package/dist/comics/layoutPage/records.js +36 -0
  124. package/dist/comics/layoutPage/records.js.map +1 -0
  125. package/dist/comics/layoutPage/settings.d.ts +64 -0
  126. package/dist/comics/layoutPage/settings.d.ts.map +1 -0
  127. package/dist/comics/layoutPage/settings.js +168 -0
  128. package/dist/comics/layoutPage/settings.js.map +1 -0
  129. package/dist/comics/layoutPage/zones.d.ts +79 -0
  130. package/dist/comics/layoutPage/zones.d.ts.map +1 -0
  131. package/dist/comics/layoutPage/zones.js +179 -0
  132. package/dist/comics/layoutPage/zones.js.map +1 -0
  133. package/dist/comics/layoutPage.d.ts +8 -113
  134. package/dist/comics/layoutPage.d.ts.map +1 -1
  135. package/dist/comics/layoutPage.js +12 -603
  136. package/dist/comics/layoutPage.js.map +1 -1
  137. package/dist/comics/lettering/letter/variants.d.ts +28 -0
  138. package/dist/comics/lettering/letter/variants.d.ts.map +1 -0
  139. package/dist/comics/lettering/letter/variants.js +269 -0
  140. package/dist/comics/lettering/letter/variants.js.map +1 -0
  141. package/dist/comics/lettering/letter.d.ts +32 -1
  142. package/dist/comics/lettering/letter.d.ts.map +1 -1
  143. package/dist/comics/lettering/letter.js +8 -270
  144. package/dist/comics/lettering/letter.js.map +1 -1
  145. package/dist/comics/lettering/shape-text/breaks.d.ts +53 -0
  146. package/dist/comics/lettering/shape-text/breaks.d.ts.map +1 -0
  147. package/dist/comics/lettering/shape-text/breaks.js +217 -0
  148. package/dist/comics/lettering/shape-text/breaks.js.map +1 -0
  149. package/dist/comics/lettering/shape-text/measure.d.ts +20 -0
  150. package/dist/comics/lettering/shape-text/measure.d.ts.map +1 -0
  151. package/dist/comics/lettering/shape-text/measure.js +160 -0
  152. package/dist/comics/lettering/shape-text/measure.js.map +1 -0
  153. package/dist/comics/lettering/shape-text/ruby.d.ts +28 -0
  154. package/dist/comics/lettering/shape-text/ruby.d.ts.map +1 -0
  155. package/dist/comics/lettering/shape-text/ruby.js +173 -0
  156. package/dist/comics/lettering/shape-text/ruby.js.map +1 -0
  157. package/dist/comics/lettering/shape-text.d.ts +7 -6
  158. package/dist/comics/lettering/shape-text.d.ts.map +1 -1
  159. package/dist/comics/lettering/shape-text.js +10 -536
  160. package/dist/comics/lettering/shape-text.js.map +1 -1
  161. package/dist/composed/overlap/ink.d.ts +48 -0
  162. package/dist/composed/overlap/ink.d.ts.map +1 -0
  163. package/dist/composed/overlap/ink.js +180 -0
  164. package/dist/composed/overlap/ink.js.map +1 -0
  165. package/dist/composed/overlap/moves.d.ts +97 -0
  166. package/dist/composed/overlap/moves.d.ts.map +1 -0
  167. package/dist/composed/overlap/moves.js +191 -0
  168. package/dist/composed/overlap/moves.js.map +1 -0
  169. package/dist/composed/overlap.d.ts +2 -2
  170. package/dist/composed/overlap.d.ts.map +1 -1
  171. package/dist/composed/overlap.js +3 -367
  172. package/dist/composed/overlap.js.map +1 -1
  173. package/dist/composed/sourceMap/chains.d.ts +27 -0
  174. package/dist/composed/sourceMap/chains.d.ts.map +1 -0
  175. package/dist/composed/sourceMap/chains.js +176 -0
  176. package/dist/composed/sourceMap/chains.js.map +1 -0
  177. package/dist/composed/sourceMap/frames.d.ts +19 -0
  178. package/dist/composed/sourceMap/frames.d.ts.map +1 -0
  179. package/dist/composed/sourceMap/frames.js +143 -0
  180. package/dist/composed/sourceMap/frames.js.map +1 -0
  181. package/dist/composed/sourceMap/text.d.ts +52 -0
  182. package/dist/composed/sourceMap/text.d.ts.map +1 -0
  183. package/dist/composed/sourceMap/text.js +200 -0
  184. package/dist/composed/sourceMap/text.js.map +1 -0
  185. package/dist/composed/sourceMap.d.ts +22 -1
  186. package/dist/composed/sourceMap.d.ts.map +1 -1
  187. package/dist/composed/sourceMap.js +7 -511
  188. package/dist/composed/sourceMap.js.map +1 -1
  189. package/dist/composed/types/frames.d.ts +290 -0
  190. package/dist/composed/types/frames.d.ts.map +1 -0
  191. package/dist/composed/types/frames.js +2 -0
  192. package/dist/composed/types/frames.js.map +1 -0
  193. package/dist/composed/types/resolved.d.ts +207 -0
  194. package/dist/composed/types/resolved.d.ts.map +1 -0
  195. package/dist/composed/types/resolved.js +2 -0
  196. package/dist/composed/types/resolved.js.map +1 -0
  197. package/dist/composed/types/templates.d.ts +152 -0
  198. package/dist/composed/types/templates.d.ts.map +1 -0
  199. package/dist/composed/types/templates.js +2 -0
  200. package/dist/composed/types/templates.js.map +1 -0
  201. package/dist/composed/types.d.ts +3 -641
  202. package/dist/composed/types.d.ts.map +1 -1
  203. package/dist/composed/types.js +8 -0
  204. package/dist/composed/types.js.map +1 -1
  205. package/dist/defaults/boxes/calloutStyles/inherit.d.ts +15 -0
  206. package/dist/defaults/boxes/calloutStyles/inherit.d.ts.map +1 -0
  207. package/dist/defaults/boxes/calloutStyles/inherit.js +64 -0
  208. package/dist/defaults/boxes/calloutStyles/inherit.js.map +1 -0
  209. package/dist/defaults/boxes/calloutStyles/resolve.d.ts +7 -0
  210. package/dist/defaults/boxes/calloutStyles/resolve.d.ts.map +1 -0
  211. package/dist/defaults/boxes/calloutStyles/resolve.js +223 -0
  212. package/dist/defaults/boxes/calloutStyles/resolve.js.map +1 -0
  213. package/dist/defaults/boxes/calloutStyles/statics.d.ts +136 -0
  214. package/dist/defaults/boxes/calloutStyles/statics.d.ts.map +1 -0
  215. package/dist/defaults/boxes/calloutStyles/statics.js +140 -0
  216. package/dist/defaults/boxes/calloutStyles/statics.js.map +1 -0
  217. package/dist/defaults/boxes/calloutStyles/strip.d.ts +10 -0
  218. package/dist/defaults/boxes/calloutStyles/strip.d.ts.map +1 -0
  219. package/dist/defaults/boxes/calloutStyles/strip.js +336 -0
  220. package/dist/defaults/boxes/calloutStyles/strip.js.map +1 -0
  221. package/dist/defaults/boxes/calloutStyles.d.ts +4 -148
  222. package/dist/defaults/boxes/calloutStyles.d.ts.map +1 -1
  223. package/dist/defaults/boxes/calloutStyles.js +4 -749
  224. package/dist/defaults/boxes/calloutStyles.js.map +1 -1
  225. package/dist/defaults/structure/headerFooter/defaults.d.ts +34 -0
  226. package/dist/defaults/structure/headerFooter/defaults.d.ts.map +1 -0
  227. package/dist/defaults/structure/headerFooter/defaults.js +162 -0
  228. package/dist/defaults/structure/headerFooter/defaults.js.map +1 -0
  229. package/dist/defaults/structure/headerFooter/legacy.d.ts +8 -0
  230. package/dist/defaults/structure/headerFooter/legacy.d.ts.map +1 -0
  231. package/dist/defaults/structure/headerFooter/legacy.js +124 -0
  232. package/dist/defaults/structure/headerFooter/legacy.js.map +1 -0
  233. package/dist/defaults/structure/headerFooter/resolve.d.ts +29 -0
  234. package/dist/defaults/structure/headerFooter/resolve.d.ts.map +1 -0
  235. package/dist/defaults/structure/headerFooter/resolve.js +231 -0
  236. package/dist/defaults/structure/headerFooter/resolve.js.map +1 -0
  237. package/dist/defaults/structure/headerFooter.d.ts +6 -58
  238. package/dist/defaults/structure/headerFooter.d.ts.map +1 -1
  239. package/dist/defaults/structure/headerFooter.js +5 -510
  240. package/dist/defaults/structure/headerFooter.js.map +1 -1
  241. package/dist/defaults/structure/headings/defaults.d.ts +46 -0
  242. package/dist/defaults/structure/headings/defaults.d.ts.map +1 -0
  243. package/dist/defaults/structure/headings/defaults.js +100 -0
  244. package/dist/defaults/structure/headings/defaults.js.map +1 -0
  245. package/dist/defaults/structure/headings/resolve.d.ts +17 -0
  246. package/dist/defaults/structure/headings/resolve.d.ts.map +1 -0
  247. package/dist/defaults/structure/headings/resolve.js +179 -0
  248. package/dist/defaults/structure/headings/resolve.js.map +1 -0
  249. package/dist/defaults/structure/headings/strip.d.ts +9 -0
  250. package/dist/defaults/structure/headings/strip.d.ts.map +1 -0
  251. package/dist/defaults/structure/headings/strip.js +323 -0
  252. package/dist/defaults/structure/headings/strip.js.map +1 -0
  253. package/dist/defaults/structure/headings.d.ts +3 -62
  254. package/dist/defaults/structure/headings.d.ts.map +1 -1
  255. package/dist/defaults/structure/headings.js +3 -594
  256. package/dist/defaults/structure/headings.js.map +1 -1
  257. package/dist/defaults/text/bodyText/arabic.d.ts +35 -0
  258. package/dist/defaults/text/bodyText/arabic.d.ts.map +1 -0
  259. package/dist/defaults/text/bodyText/arabic.js +85 -0
  260. package/dist/defaults/text/bodyText/arabic.js.map +1 -0
  261. package/dist/defaults/text/bodyText/defaults.d.ts +31 -0
  262. package/dist/defaults/text/bodyText/defaults.d.ts.map +1 -0
  263. package/dist/defaults/text/bodyText/defaults.js +128 -0
  264. package/dist/defaults/text/bodyText/defaults.js.map +1 -0
  265. package/dist/defaults/text/bodyText/resolve.d.ts +12 -0
  266. package/dist/defaults/text/bodyText/resolve.d.ts.map +1 -0
  267. package/dist/defaults/text/bodyText/resolve.js +171 -0
  268. package/dist/defaults/text/bodyText/resolve.js.map +1 -0
  269. package/dist/defaults/text/bodyText/strip.d.ts +12 -0
  270. package/dist/defaults/text/bodyText/strip.d.ts.map +1 -0
  271. package/dist/defaults/text/bodyText/strip.js +305 -0
  272. package/dist/defaults/text/bodyText/strip.js.map +1 -0
  273. package/dist/defaults/text/bodyText.d.ts +4 -70
  274. package/dist/defaults/text/bodyText.d.ts.map +1 -1
  275. package/dist/defaults/text/bodyText.js +4 -673
  276. package/dist/defaults/text/bodyText.js.map +1 -1
  277. package/dist/design/richText/ellipsis.d.ts +26 -0
  278. package/dist/design/richText/ellipsis.d.ts.map +1 -0
  279. package/dist/design/richText/ellipsis.js +173 -0
  280. package/dist/design/richText/ellipsis.js.map +1 -0
  281. package/dist/design/richText/measure.d.ts +51 -0
  282. package/dist/design/richText/measure.d.ts.map +1 -0
  283. package/dist/design/richText/measure.js +176 -0
  284. package/dist/design/richText/measure.js.map +1 -0
  285. package/dist/design/richText/parse.d.ts +120 -0
  286. package/dist/design/richText/parse.d.ts.map +1 -0
  287. package/dist/design/richText/parse.js +190 -0
  288. package/dist/design/richText/parse.js.map +1 -0
  289. package/dist/design/richText/wrap.d.ts +13 -0
  290. package/dist/design/richText/wrap.d.ts.map +1 -0
  291. package/dist/design/richText/wrap.js +176 -0
  292. package/dist/design/richText/wrap.js.map +1 -0
  293. package/dist/design/richText.d.ts +6 -199
  294. package/dist/design/richText.d.ts.map +1 -1
  295. package/dist/design/richText.js +4 -698
  296. package/dist/design/richText.js.map +1 -1
  297. package/dist/exercises/grids/arithmetic.d.ts +3 -0
  298. package/dist/exercises/grids/arithmetic.d.ts.map +1 -0
  299. package/dist/exercises/grids/arithmetic.js +214 -0
  300. package/dist/exercises/grids/arithmetic.js.map +1 -0
  301. package/dist/exercises/grids/common.d.ts +8 -0
  302. package/dist/exercises/grids/common.d.ts.map +1 -0
  303. package/dist/exercises/grids/common.js +9 -0
  304. package/dist/exercises/grids/common.js.map +1 -0
  305. package/dist/exercises/grids/crossword.d.ts +3 -0
  306. package/dist/exercises/grids/crossword.d.ts.map +1 -0
  307. package/dist/exercises/grids/crossword.js +191 -0
  308. package/dist/exercises/grids/crossword.js.map +1 -0
  309. package/dist/exercises/grids/match.d.ts +3 -0
  310. package/dist/exercises/grids/match.d.ts.map +1 -0
  311. package/dist/exercises/grids/match.js +58 -0
  312. package/dist/exercises/grids/match.js.map +1 -0
  313. package/dist/exercises/grids/wordSearch.d.ts +5 -0
  314. package/dist/exercises/grids/wordSearch.d.ts.map +1 -0
  315. package/dist/exercises/grids/wordSearch.js +122 -0
  316. package/dist/exercises/grids/wordSearch.js.map +1 -0
  317. package/dist/exercises/grids.d.ts +2 -2
  318. package/dist/exercises/grids.d.ts.map +1 -1
  319. package/dist/exercises/grids.js +4 -575
  320. package/dist/exercises/grids.js.map +1 -1
  321. package/dist/knuthPlass/breakpoints/adjust.d.ts +22 -0
  322. package/dist/knuthPlass/breakpoints/adjust.d.ts.map +1 -0
  323. package/dist/knuthPlass/breakpoints/adjust.js +39 -0
  324. package/dist/knuthPlass/breakpoints/adjust.js.map +1 -0
  325. package/dist/knuthPlass/breakpoints/search.d.ts +10 -0
  326. package/dist/knuthPlass/breakpoints/search.d.ts.map +1 -0
  327. package/dist/knuthPlass/breakpoints/search.js +439 -0
  328. package/dist/knuthPlass/breakpoints/search.js.map +1 -0
  329. package/dist/knuthPlass/breakpoints.d.ts +2 -21
  330. package/dist/knuthPlass/breakpoints.d.ts.map +1 -1
  331. package/dist/knuthPlass/breakpoints.js +2 -472
  332. package/dist/knuthPlass/breakpoints.js.map +1 -1
  333. package/dist/marks/cjkMarks/geometry.d.ts +58 -0
  334. package/dist/marks/cjkMarks/geometry.d.ts.map +1 -0
  335. package/dist/marks/cjkMarks/geometry.js +131 -0
  336. package/dist/marks/cjkMarks/geometry.js.map +1 -0
  337. package/dist/marks/cjkMarks/lineMarks.d.ts +7 -0
  338. package/dist/marks/cjkMarks/lineMarks.d.ts.map +1 -0
  339. package/dist/marks/cjkMarks/lineMarks.js +183 -0
  340. package/dist/marks/cjkMarks/lineMarks.js.map +1 -0
  341. package/dist/marks/cjkMarks/reach.d.ts +28 -0
  342. package/dist/marks/cjkMarks/reach.d.ts.map +1 -0
  343. package/dist/marks/cjkMarks/reach.js +130 -0
  344. package/dist/marks/cjkMarks/reach.js.map +1 -0
  345. package/dist/marks/cjkMarks/resources.d.ts +31 -0
  346. package/dist/marks/cjkMarks/resources.d.ts.map +1 -0
  347. package/dist/marks/cjkMarks/resources.js +46 -0
  348. package/dist/marks/cjkMarks/resources.js.map +1 -0
  349. package/dist/marks/cjkMarks.d.ts +4 -27
  350. package/dist/marks/cjkMarks.d.ts.map +1 -1
  351. package/dist/marks/cjkMarks.js +6 -479
  352. package/dist/marks/cjkMarks.js.map +1 -1
  353. package/dist/measure/canvas/ink.d.ts +67 -0
  354. package/dist/measure/canvas/ink.d.ts.map +1 -0
  355. package/dist/measure/canvas/ink.js +215 -0
  356. package/dist/measure/canvas/ink.js.map +1 -0
  357. package/dist/measure/canvas/state.d.ts +91 -0
  358. package/dist/measure/canvas/state.d.ts.map +1 -0
  359. package/dist/measure/canvas/state.js +306 -0
  360. package/dist/measure/canvas/state.js.map +1 -0
  361. package/dist/measure/canvas/widths.d.ts +27 -0
  362. package/dist/measure/canvas/widths.d.ts.map +1 -0
  363. package/dist/measure/canvas/widths.js +137 -0
  364. package/dist/measure/canvas/widths.js.map +1 -0
  365. package/dist/measure/canvas.d.ts +4 -154
  366. package/dist/measure/canvas.d.ts.map +1 -1
  367. package/dist/measure/canvas.js +4 -646
  368. package/dist/measure/canvas.js.map +1 -1
  369. package/dist/measure/cjk/cjkPunctuation/box.d.ts +71 -0
  370. package/dist/measure/cjk/cjkPunctuation/box.d.ts.map +1 -0
  371. package/dist/measure/cjk/cjkPunctuation/box.js +114 -0
  372. package/dist/measure/cjk/cjkPunctuation/box.js.map +1 -0
  373. package/dist/measure/cjk/cjkPunctuation/composition.d.ts +128 -0
  374. package/dist/measure/cjk/cjkPunctuation/composition.d.ts.map +1 -0
  375. package/dist/measure/cjk/cjkPunctuation/composition.js +157 -0
  376. package/dist/measure/cjk/cjkPunctuation/composition.js.map +1 -0
  377. package/dist/measure/cjk/cjkPunctuation/lineEdges.d.ts +63 -0
  378. package/dist/measure/cjk/cjkPunctuation/lineEdges.d.ts.map +1 -0
  379. package/dist/measure/cjk/cjkPunctuation/lineEdges.js +183 -0
  380. package/dist/measure/cjk/cjkPunctuation/lineEdges.js.map +1 -0
  381. package/dist/measure/cjk/cjkPunctuation.d.ts +8 -247
  382. package/dist/measure/cjk/cjkPunctuation.d.ts.map +1 -1
  383. package/dist/measure/cjk/cjkPunctuation.js +6 -447
  384. package/dist/measure/cjk/cjkPunctuation.js.map +1 -1
  385. package/dist/measure/plain/overwide.d.ts +70 -0
  386. package/dist/measure/plain/overwide.d.ts.map +1 -0
  387. package/dist/measure/plain/overwide.js +150 -0
  388. package/dist/measure/plain/overwide.js.map +1 -0
  389. package/dist/measure/plain/segments.d.ts +53 -0
  390. package/dist/measure/plain/segments.d.ts.map +1 -0
  391. package/dist/measure/plain/segments.js +153 -0
  392. package/dist/measure/plain/segments.js.map +1 -0
  393. package/dist/measure/plain.d.ts +2 -15
  394. package/dist/measure/plain.d.ts.map +1 -1
  395. package/dist/measure/plain.js +12 -300
  396. package/dist/measure/plain.js.map +1 -1
  397. package/dist/migrate/pageDesign/pictures.d.ts +16 -0
  398. package/dist/migrate/pageDesign/pictures.d.ts.map +1 -0
  399. package/dist/migrate/pageDesign/pictures.js +101 -0
  400. package/dist/migrate/pageDesign/pictures.js.map +1 -0
  401. package/dist/migrate/pageDesign/text.d.ts +48 -0
  402. package/dist/migrate/pageDesign/text.d.ts.map +1 -0
  403. package/dist/migrate/pageDesign/text.js +196 -0
  404. package/dist/migrate/pageDesign/text.js.map +1 -0
  405. package/dist/migrate/pageDesign/types.d.ts +137 -0
  406. package/dist/migrate/pageDesign/types.d.ts.map +1 -0
  407. package/dist/migrate/pageDesign/types.js +2 -0
  408. package/dist/migrate/pageDesign/types.js.map +1 -0
  409. package/dist/migrate/pageDesign.d.ts +4 -154
  410. package/dist/migrate/pageDesign.d.ts.map +1 -1
  411. package/dist/migrate/pageDesign.js +4 -294
  412. package/dist/migrate/pageDesign.js.map +1 -1
  413. package/dist/numerals/numbering/counters.d.ts +49 -0
  414. package/dist/numerals/numbering/counters.d.ts.map +1 -0
  415. package/dist/numerals/numbering/counters.js +311 -0
  416. package/dist/numerals/numbering/counters.js.map +1 -0
  417. package/dist/numerals/numbering/formats.d.ts +30 -0
  418. package/dist/numerals/numbering/formats.d.ts.map +1 -0
  419. package/dist/numerals/numbering/formats.js +116 -0
  420. package/dist/numerals/numbering/formats.js.map +1 -0
  421. package/dist/numerals/numbering/headings.d.ts +40 -0
  422. package/dist/numerals/numbering/headings.d.ts.map +1 -0
  423. package/dist/numerals/numbering/headings.js +64 -0
  424. package/dist/numerals/numbering/headings.js.map +1 -0
  425. package/dist/numerals/numbering/pageLabels.d.ts +43 -0
  426. package/dist/numerals/numbering/pageLabels.d.ts.map +1 -0
  427. package/dist/numerals/numbering/pageLabels.js +75 -0
  428. package/dist/numerals/numbering/pageLabels.js.map +1 -0
  429. package/dist/numerals/numbering/styles.d.ts +52 -0
  430. package/dist/numerals/numbering/styles.d.ts.map +1 -0
  431. package/dist/numerals/numbering/styles.js +43 -0
  432. package/dist/numerals/numbering/styles.js.map +1 -0
  433. package/dist/numerals/numbering.d.ts +9 -201
  434. package/dist/numerals/numbering.d.ts.map +1 -1
  435. package/dist/numerals/numbering.js +5 -595
  436. package/dist/numerals/numbering.js.map +1 -1
  437. package/dist/parse/annotations/apply.d.ts +32 -0
  438. package/dist/parse/annotations/apply.d.ts.map +1 -0
  439. package/dist/parse/annotations/apply.js +293 -0
  440. package/dist/parse/annotations/apply.js.map +1 -0
  441. package/dist/parse/annotations/scan.d.ts +55 -0
  442. package/dist/parse/annotations/scan.d.ts.map +1 -0
  443. package/dist/parse/annotations/scan.js +232 -0
  444. package/dist/parse/annotations/scan.js.map +1 -0
  445. package/dist/parse/annotations/source.d.ts +31 -0
  446. package/dist/parse/annotations/source.d.ts.map +1 -0
  447. package/dist/parse/annotations/source.js +128 -0
  448. package/dist/parse/annotations/source.js.map +1 -0
  449. package/dist/parse/annotations.d.ts +5 -86
  450. package/dist/parse/annotations.d.ts.map +1 -1
  451. package/dist/parse/annotations.js +3 -648
  452. package/dist/parse/annotations.js.map +1 -1
  453. package/dist/pipeline/blocks/measureContentBlock/helpers.d.ts +31 -0
  454. package/dist/pipeline/blocks/measureContentBlock/helpers.d.ts.map +1 -0
  455. package/dist/pipeline/blocks/measureContentBlock/helpers.js +74 -0
  456. package/dist/pipeline/blocks/measureContentBlock/helpers.js.map +1 -0
  457. package/dist/pipeline/blocks/measureContentBlock/inlineSpans.d.ts +12 -0
  458. package/dist/pipeline/blocks/measureContentBlock/inlineSpans.d.ts.map +1 -0
  459. package/dist/pipeline/blocks/measureContentBlock/inlineSpans.js +107 -0
  460. package/dist/pipeline/blocks/measureContentBlock/inlineSpans.js.map +1 -0
  461. package/dist/pipeline/blocks/measureContentBlock/measureOptions.d.ts +68 -0
  462. package/dist/pipeline/blocks/measureContentBlock/measureOptions.d.ts.map +1 -0
  463. package/dist/pipeline/blocks/measureContentBlock/measureOptions.js +90 -0
  464. package/dist/pipeline/blocks/measureContentBlock/measureOptions.js.map +1 -0
  465. package/dist/pipeline/blocks/measureContentBlock/types.d.ts +165 -0
  466. package/dist/pipeline/blocks/measureContentBlock/types.d.ts.map +1 -0
  467. package/dist/pipeline/blocks/measureContentBlock/types.js +2 -0
  468. package/dist/pipeline/blocks/measureContentBlock/types.js.map +1 -0
  469. package/dist/pipeline/blocks/measureContentBlock.d.ts +8 -172
  470. package/dist/pipeline/blocks/measureContentBlock.d.ts.map +1 -1
  471. package/dist/pipeline/blocks/measureContentBlock.js +16 -257
  472. package/dist/pipeline/blocks/measureContentBlock.js.map +1 -1
  473. package/dist/pipeline/blocks/placement/bands.d.ts +61 -0
  474. package/dist/pipeline/blocks/placement/bands.d.ts.map +1 -0
  475. package/dist/pipeline/blocks/placement/bands.js +188 -0
  476. package/dist/pipeline/blocks/placement/bands.js.map +1 -0
  477. package/dist/pipeline/blocks/placement.d.ts +2 -59
  478. package/dist/pipeline/blocks/placement.d.ts.map +1 -1
  479. package/dist/pipeline/blocks/placement.js +3 -184
  480. package/dist/pipeline/blocks/placement.js.map +1 -1
  481. package/dist/pipeline/build/pass/composed/comicText.d.ts +27 -0
  482. package/dist/pipeline/build/pass/composed/comicText.d.ts.map +1 -0
  483. package/dist/pipeline/build/pass/composed/comicText.js +89 -0
  484. package/dist/pipeline/build/pass/composed/comicText.js.map +1 -0
  485. package/dist/pipeline/build/pass/composed/jumps.d.ts +29 -0
  486. package/dist/pipeline/build/pass/composed/jumps.d.ts.map +1 -0
  487. package/dist/pipeline/build/pass/composed/jumps.js +91 -0
  488. package/dist/pipeline/build/pass/composed/jumps.js.map +1 -0
  489. package/dist/pipeline/build/pass/composed/placePage.d.ts +60 -0
  490. package/dist/pipeline/build/pass/composed/placePage.d.ts.map +1 -0
  491. package/dist/pipeline/build/pass/composed/placePage.js +368 -0
  492. package/dist/pipeline/build/pass/composed/placePage.js.map +1 -0
  493. package/dist/pipeline/build/pass/composed.d.ts +6 -7
  494. package/dist/pipeline/build/pass/composed.d.ts.map +1 -1
  495. package/dist/pipeline/build/pass/composed.js +20 -524
  496. package/dist/pipeline/build/pass/composed.js.map +1 -1
  497. package/dist/pipeline/build/pass/setup/contentSetup.d.ts +89 -0
  498. package/dist/pipeline/build/pass/setup/contentSetup.d.ts.map +1 -0
  499. package/dist/pipeline/build/pass/setup/contentSetup.js +314 -0
  500. package/dist/pipeline/build/pass/setup/contentSetup.js.map +1 -0
  501. package/dist/pipeline/build/pass/setup/pageSetup.d.ts +32 -0
  502. package/dist/pipeline/build/pass/setup/pageSetup.d.ts.map +1 -0
  503. package/dist/pipeline/build/pass/setup/pageSetup.js +147 -0
  504. package/dist/pipeline/build/pass/setup/pageSetup.js.map +1 -0
  505. package/dist/pipeline/build/pass/setup/passFinish.d.ts +95 -0
  506. package/dist/pipeline/build/pass/setup/passFinish.d.ts.map +1 -0
  507. package/dist/pipeline/build/pass/setup/passFinish.js +201 -0
  508. package/dist/pipeline/build/pass/setup/passFinish.js.map +1 -0
  509. package/dist/pipeline/build/pass/setupState.d.ts +8 -0
  510. package/dist/pipeline/build/pass/setupState.d.ts.map +1 -0
  511. package/dist/pipeline/build/pass/setupState.js +2 -0
  512. package/dist/pipeline/build/pass/setupState.js.map +1 -0
  513. package/dist/pipeline/build/pass.d.ts.map +1 -1
  514. package/dist/pipeline/build/pass.js +60 -654
  515. package/dist/pipeline/build/pass.js.map +1 -1
  516. package/dist/pipeline/callouts/calloutLayout/boxDecoration.d.ts +49 -0
  517. package/dist/pipeline/callouts/calloutLayout/boxDecoration.d.ts.map +1 -0
  518. package/dist/pipeline/callouts/calloutLayout/boxDecoration.js +110 -0
  519. package/dist/pipeline/callouts/calloutLayout/boxDecoration.js.map +1 -0
  520. package/dist/pipeline/callouts/calloutLayout/labelTab.d.ts +31 -0
  521. package/dist/pipeline/callouts/calloutLayout/labelTab.d.ts.map +1 -0
  522. package/dist/pipeline/callouts/calloutLayout/labelTab.js +202 -0
  523. package/dist/pipeline/callouts/calloutLayout/labelTab.js.map +1 -0
  524. package/dist/pipeline/callouts/calloutLayout/layoutCallout.d.ts.map +1 -1
  525. package/dist/pipeline/callouts/calloutLayout/layoutCallout.js +23 -355
  526. package/dist/pipeline/callouts/calloutLayout/layoutCallout.js.map +1 -1
  527. package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.d.ts +14 -0
  528. package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.d.ts.map +1 -0
  529. package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.js +2 -0
  530. package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.js.map +1 -0
  531. package/dist/pipeline/callouts/calloutLayout/markerColumn.d.ts +31 -0
  532. package/dist/pipeline/callouts/calloutLayout/markerColumn.d.ts.map +1 -0
  533. package/dist/pipeline/callouts/calloutLayout/markerColumn.js +75 -0
  534. package/dist/pipeline/callouts/calloutLayout/markerColumn.js.map +1 -0
  535. package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.d.ts +68 -0
  536. package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.d.ts.map +1 -0
  537. package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.js +249 -0
  538. package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.js.map +1 -0
  539. package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.d.ts +50 -0
  540. package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.d.ts.map +1 -0
  541. package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.js +195 -0
  542. package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.js.map +1 -0
  543. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.d.ts +30 -0
  544. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.d.ts.map +1 -0
  545. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.js +174 -0
  546. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.js.map +1 -0
  547. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.d.ts +35 -0
  548. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.d.ts.map +1 -0
  549. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.js +158 -0
  550. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.js.map +1 -0
  551. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.d.ts +37 -0
  552. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.d.ts.map +1 -0
  553. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.js +303 -0
  554. package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.js.map +1 -0
  555. package/dist/pipeline/composedPages/composedLayout/composePage/run/state.d.ts +11 -0
  556. package/dist/pipeline/composedPages/composedLayout/composePage/run/state.d.ts.map +1 -0
  557. package/dist/pipeline/composedPages/composedLayout/composePage/run/state.js +3 -0
  558. package/dist/pipeline/composedPages/composedLayout/composePage/run/state.js.map +1 -0
  559. package/dist/pipeline/composedPages/composedLayout/composePage/run/types.d.ts +14 -0
  560. package/dist/pipeline/composedPages/composedLayout/composePage/run/types.d.ts.map +1 -0
  561. package/dist/pipeline/composedPages/composedLayout/composePage/run/types.js +2 -0
  562. package/dist/pipeline/composedPages/composedLayout/composePage/run/types.js.map +1 -0
  563. package/dist/pipeline/composedPages/composedLayout/composePage/run.d.ts +59 -0
  564. package/dist/pipeline/composedPages/composedLayout/composePage/run.d.ts.map +1 -0
  565. package/dist/pipeline/composedPages/composedLayout/composePage/run.js +171 -0
  566. package/dist/pipeline/composedPages/composedLayout/composePage/run.js.map +1 -0
  567. package/dist/pipeline/composedPages/composedLayout/composePage/state.d.ts +7 -0
  568. package/dist/pipeline/composedPages/composedLayout/composePage/state.d.ts.map +1 -0
  569. package/dist/pipeline/composedPages/composedLayout/composePage/state.js +2 -0
  570. package/dist/pipeline/composedPages/composedLayout/composePage/state.js.map +1 -0
  571. package/dist/pipeline/composedPages/composedLayout/composePage.d.ts.map +1 -1
  572. package/dist/pipeline/composedPages/composedLayout/composePage.js +24 -1165
  573. package/dist/pipeline/composedPages/composedLayout/composePage.js.map +1 -1
  574. package/dist/pipeline/contents/indexDirective/blocks.d.ts +9 -0
  575. package/dist/pipeline/contents/indexDirective/blocks.d.ts.map +1 -0
  576. package/dist/pipeline/contents/indexDirective/blocks.js +256 -0
  577. package/dist/pipeline/contents/indexDirective/blocks.js.map +1 -0
  578. package/dist/pipeline/contents/indexDirective/tree.d.ts +71 -0
  579. package/dist/pipeline/contents/indexDirective/tree.d.ts.map +1 -0
  580. package/dist/pipeline/contents/indexDirective/tree.js +224 -0
  581. package/dist/pipeline/contents/indexDirective/tree.js.map +1 -0
  582. package/dist/pipeline/contents/indexDirective.d.ts +2 -8
  583. package/dist/pipeline/contents/indexDirective.d.ts.map +1 -1
  584. package/dist/pipeline/contents/indexDirective.js +3 -472
  585. package/dist/pipeline/contents/indexDirective.js.map +1 -1
  586. package/dist/pipeline/pages/placeholders/chapterValues.d.ts +117 -0
  587. package/dist/pipeline/pages/placeholders/chapterValues.d.ts.map +1 -0
  588. package/dist/pipeline/pages/placeholders/chapterValues.js +236 -0
  589. package/dist/pipeline/pages/placeholders/chapterValues.js.map +1 -0
  590. package/dist/pipeline/pages/placeholders/lineText.d.ts +66 -0
  591. package/dist/pipeline/pages/placeholders/lineText.d.ts.map +1 -0
  592. package/dist/pipeline/pages/placeholders/lineText.js +173 -0
  593. package/dist/pipeline/pages/placeholders/lineText.js.map +1 -0
  594. package/dist/pipeline/pages/placeholders.d.ts +6 -179
  595. package/dist/pipeline/pages/placeholders.d.ts.map +1 -1
  596. package/dist/pipeline/pages/placeholders.js +4 -398
  597. package/dist/pipeline/pages/placeholders.js.map +1 -1
  598. package/dist/pipeline/references/citations/markers.d.ts +14 -0
  599. package/dist/pipeline/references/citations/markers.d.ts.map +1 -0
  600. package/dist/pipeline/references/citations/markers.js +106 -0
  601. package/dist/pipeline/references/citations/markers.js.map +1 -0
  602. package/dist/pipeline/references/citations/process.d.ts +56 -0
  603. package/dist/pipeline/references/citations/process.d.ts.map +1 -0
  604. package/dist/pipeline/references/citations/process.js +213 -0
  605. package/dist/pipeline/references/citations/process.js.map +1 -0
  606. package/dist/pipeline/references/citations/spans.d.ts +33 -0
  607. package/dist/pipeline/references/citations/spans.d.ts.map +1 -0
  608. package/dist/pipeline/references/citations/spans.js +127 -0
  609. package/dist/pipeline/references/citations/spans.js.map +1 -0
  610. package/dist/pipeline/references/citations.d.ts +4 -51
  611. package/dist/pipeline/references/citations.d.ts.map +1 -1
  612. package/dist/pipeline/references/citations.js +5 -438
  613. package/dist/pipeline/references/citations.js.map +1 -1
  614. package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.d.ts +63 -0
  615. package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.d.ts.map +1 -0
  616. package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.js +88 -0
  617. package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.js.map +1 -0
  618. package/dist/pipeline/resources/resourceLayout/resourceBlock/state.d.ts +9 -0
  619. package/dist/pipeline/resources/resourceLayout/resourceBlock/state.d.ts.map +1 -0
  620. package/dist/pipeline/resources/resourceLayout/resourceBlock/state.js +2 -0
  621. package/dist/pipeline/resources/resourceLayout/resourceBlock/state.js.map +1 -0
  622. package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.d.ts +26 -0
  623. package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.d.ts.map +1 -0
  624. package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.js +90 -0
  625. package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.js.map +1 -0
  626. package/dist/pipeline/resources/resourceLayout/resourceBlock.d.ts +1 -3
  627. package/dist/pipeline/resources/resourceLayout/resourceBlock.d.ts.map +1 -1
  628. package/dist/pipeline/resources/resourceLayout/resourceBlock.js +13 -159
  629. package/dist/pipeline/resources/resourceLayout/resourceBlock.js.map +1 -1
  630. package/dist/pipeline/sections/partPalette/colorKinds.d.ts +53 -0
  631. package/dist/pipeline/sections/partPalette/colorKinds.d.ts.map +1 -0
  632. package/dist/pipeline/sections/partPalette/colorKinds.js +181 -0
  633. package/dist/pipeline/sections/partPalette/colorKinds.js.map +1 -0
  634. package/dist/pipeline/sections/partPalette/flowColors.d.ts +16 -0
  635. package/dist/pipeline/sections/partPalette/flowColors.d.ts.map +1 -0
  636. package/dist/pipeline/sections/partPalette/flowColors.js +78 -0
  637. package/dist/pipeline/sections/partPalette/flowColors.js.map +1 -0
  638. package/dist/pipeline/sections/partPalette/recolor.d.ts +18 -0
  639. package/dist/pipeline/sections/partPalette/recolor.d.ts.map +1 -0
  640. package/dist/pipeline/sections/partPalette/recolor.js +188 -0
  641. package/dist/pipeline/sections/partPalette/recolor.js.map +1 -0
  642. package/dist/pipeline/sections/partPalette.d.ts +4 -49
  643. package/dist/pipeline/sections/partPalette.d.ts.map +1 -1
  644. package/dist/pipeline/sections/partPalette.js +3 -442
  645. package/dist/pipeline/sections/partPalette.js.map +1 -1
  646. package/dist/pipeline/text/lists/orderedRuns.d.ts +49 -0
  647. package/dist/pipeline/text/lists/orderedRuns.d.ts.map +1 -0
  648. package/dist/pipeline/text/lists/orderedRuns.js +256 -0
  649. package/dist/pipeline/text/lists/orderedRuns.js.map +1 -0
  650. package/dist/pipeline/text/lists.d.ts +16 -46
  651. package/dist/pipeline/text/lists.d.ts.map +1 -1
  652. package/dist/pipeline/text/lists.js +5 -255
  653. package/dist/pipeline/text/lists.js.map +1 -1
  654. package/dist/svg/fonts/inline.d.ts +30 -0
  655. package/dist/svg/fonts/inline.d.ts.map +1 -0
  656. package/dist/svg/fonts/inline.js +298 -0
  657. package/dist/svg/fonts/inline.js.map +1 -0
  658. package/dist/svg/fonts/scan.d.ts +27 -0
  659. package/dist/svg/fonts/scan.d.ts.map +1 -0
  660. package/dist/svg/fonts/scan.js +353 -0
  661. package/dist/svg/fonts/scan.js.map +1 -0
  662. package/dist/svg/fonts/types.d.ts +106 -0
  663. package/dist/svg/fonts/types.d.ts.map +1 -0
  664. package/dist/svg/fonts/types.js +4 -0
  665. package/dist/svg/fonts/types.js.map +1 -0
  666. package/dist/svg/fonts.d.ts +4 -150
  667. package/dist/svg/fonts.d.ts.map +1 -1
  668. package/dist/svg/fonts.js +3 -647
  669. package/dist/svg/fonts.js.map +1 -1
  670. package/dist/types/text/bodyText/config.d.ts +465 -0
  671. package/dist/types/text/bodyText/config.d.ts.map +1 -0
  672. package/dist/types/text/bodyText/config.js +2 -0
  673. package/dist/types/text/bodyText/config.js.map +1 -0
  674. package/dist/types/text/bodyText/options.d.ts +73 -0
  675. package/dist/types/text/bodyText/options.d.ts.map +1 -0
  676. package/dist/types/text/bodyText/options.js +2 -0
  677. package/dist/types/text/bodyText/options.js.map +1 -0
  678. package/dist/types/text/bodyText/resolved.d.ts +95 -0
  679. package/dist/types/text/bodyText/resolved.d.ts.map +1 -0
  680. package/dist/types/text/bodyText/resolved.js +2 -0
  681. package/dist/types/text/bodyText/resolved.js.map +1 -0
  682. package/dist/types/text/bodyText.d.ts +3 -623
  683. package/dist/types/text/bodyText.d.ts.map +1 -1
  684. package/dist/vdt/contentWarnings/comic.d.ts +95 -0
  685. package/dist/vdt/contentWarnings/comic.d.ts.map +1 -0
  686. package/dist/vdt/contentWarnings/comic.js +3 -0
  687. package/dist/vdt/contentWarnings/comic.js.map +1 -0
  688. package/dist/vdt/contentWarnings/composed.d.ts +126 -0
  689. package/dist/vdt/contentWarnings/composed.d.ts.map +1 -0
  690. package/dist/vdt/contentWarnings/composed.js +2 -0
  691. package/dist/vdt/contentWarnings/composed.js.map +1 -0
  692. package/dist/vdt/contentWarnings/layout.d.ts +247 -0
  693. package/dist/vdt/contentWarnings/layout.d.ts.map +1 -0
  694. package/dist/vdt/contentWarnings/layout.js +2 -0
  695. package/dist/vdt/contentWarnings/layout.js.map +1 -0
  696. package/dist/vdt/contentWarnings/markup.d.ts +211 -0
  697. package/dist/vdt/contentWarnings/markup.d.ts.map +1 -0
  698. package/dist/vdt/contentWarnings/markup.js +4 -0
  699. package/dist/vdt/contentWarnings/markup.js.map +1 -0
  700. package/dist/vdt/contentWarnings/source.d.ts +216 -0
  701. package/dist/vdt/contentWarnings/source.d.ts.map +1 -0
  702. package/dist/vdt/contentWarnings/source.js +4 -0
  703. package/dist/vdt/contentWarnings/source.js.map +1 -0
  704. package/dist/vdt/contentWarnings/text.d.ts +139 -0
  705. package/dist/vdt/contentWarnings/text.d.ts.map +1 -0
  706. package/dist/vdt/contentWarnings/text.js +4 -0
  707. package/dist/vdt/contentWarnings/text.js.map +1 -0
  708. package/dist/vdt/contentWarnings.d.ts +7 -1017
  709. package/dist/vdt/contentWarnings.d.ts.map +1 -1
  710. package/dist/vdt/pages/comic.d.ts +200 -0
  711. package/dist/vdt/pages/comic.d.ts.map +1 -0
  712. package/dist/vdt/pages/comic.js +2 -0
  713. package/dist/vdt/pages/comic.js.map +1 -0
  714. package/dist/vdt/pages/composed.d.ts +282 -0
  715. package/dist/vdt/pages/composed.d.ts.map +1 -0
  716. package/dist/vdt/pages/composed.js +2 -0
  717. package/dist/vdt/pages/composed.js.map +1 -0
  718. package/dist/vdt/pages.d.ts +6 -476
  719. package/dist/vdt/pages.d.ts.map +1 -1
  720. package/dist/word/docxRead/body.d.ts +17 -0
  721. package/dist/word/docxRead/body.d.ts.map +1 -0
  722. package/dist/word/docxRead/body.js +372 -0
  723. package/dist/word/docxRead/body.js.map +1 -0
  724. package/dist/word/docxRead/parts.d.ts +27 -0
  725. package/dist/word/docxRead/parts.d.ts.map +1 -0
  726. package/dist/word/docxRead/parts.js +160 -0
  727. package/dist/word/docxRead/parts.js.map +1 -0
  728. package/dist/word/docxRead.d.ts +1 -5
  729. package/dist/word/docxRead.d.ts.map +1 -1
  730. package/dist/word/docxRead.js +5 -526
  731. package/dist/word/docxRead.js.map +1 -1
  732. package/dist/word/inline/parse.d.ts +16 -0
  733. package/dist/word/inline/parse.d.ts.map +1 -0
  734. package/dist/word/inline/parse.js +367 -0
  735. package/dist/word/inline/parse.js.map +1 -0
  736. package/dist/word/inline/render.d.ts +44 -0
  737. package/dist/word/inline/render.d.ts.map +1 -0
  738. package/dist/word/inline/render.js +296 -0
  739. package/dist/word/inline/render.js.map +1 -0
  740. package/dist/word/inline.d.ts +4 -52
  741. package/dist/word/inline.d.ts.map +1 -1
  742. package/dist/word/inline.js +2 -657
  743. package/dist/word/inline.js.map +1 -1
  744. package/dist/word/toDocx/parse.d.ts +46 -0
  745. package/dist/word/toDocx/parse.d.ts.map +1 -0
  746. package/dist/word/toDocx/parse.js +313 -0
  747. package/dist/word/toDocx/parse.js.map +1 -0
  748. package/dist/word/toDocx/styles.d.ts +63 -0
  749. package/dist/word/toDocx/styles.d.ts.map +1 -0
  750. package/dist/word/toDocx/styles.js +239 -0
  751. package/dist/word/toDocx/styles.js.map +1 -0
  752. package/dist/word/toDocx/wordml.d.ts +24 -0
  753. package/dist/word/toDocx/wordml.d.ts.map +1 -0
  754. package/dist/word/toDocx/wordml.js +114 -0
  755. package/dist/word/toDocx/wordml.js.map +1 -0
  756. package/dist/word/toDocx.d.ts +3 -25
  757. package/dist/word/toDocx.d.ts.map +1 -1
  758. package/dist/word/toDocx.js +8 -661
  759. package/dist/word/toDocx.js.map +1 -1
  760. package/dist/word/toMarkdown/converter.d.ts +57 -0
  761. package/dist/word/toMarkdown/converter.d.ts.map +1 -0
  762. package/dist/word/toMarkdown/converter.js +600 -0
  763. package/dist/word/toMarkdown/converter.js.map +1 -0
  764. package/dist/word/toMarkdown/helpers.d.ts +98 -0
  765. package/dist/word/toMarkdown/helpers.d.ts.map +1 -0
  766. package/dist/word/toMarkdown/helpers.js +153 -0
  767. package/dist/word/toMarkdown/helpers.js.map +1 -0
  768. package/dist/word/toMarkdown.d.ts +4 -64
  769. package/dist/word/toMarkdown.d.ts.map +1 -1
  770. package/dist/word/toMarkdown.js +2 -749
  771. package/dist/word/toMarkdown.js.map +1 -1
  772. package/dist/writing/bidi/chars.d.ts +61 -0
  773. package/dist/writing/bidi/chars.d.ts.map +1 -0
  774. package/dist/writing/bidi/chars.js +145 -0
  775. package/dist/writing/bidi/chars.js.map +1 -0
  776. package/dist/writing/bidi/joining.d.ts +27 -0
  777. package/dist/writing/bidi/joining.d.ts.map +1 -0
  778. package/dist/writing/bidi/joining.js +70 -0
  779. package/dist/writing/bidi/joining.js.map +1 -0
  780. package/dist/writing/bidi/paragraph.d.ts +72 -0
  781. package/dist/writing/bidi/paragraph.d.ts.map +1 -0
  782. package/dist/writing/bidi/paragraph.js +119 -0
  783. package/dist/writing/bidi/paragraph.js.map +1 -0
  784. package/dist/writing/bidi/resolve.d.ts +14 -0
  785. package/dist/writing/bidi/resolve.d.ts.map +1 -0
  786. package/dist/writing/bidi/resolve.js +413 -0
  787. package/dist/writing/bidi/resolve.js.map +1 -0
  788. package/dist/writing/bidi.d.ts +8 -147
  789. package/dist/writing/bidi.d.ts.map +1 -1
  790. package/dist/writing/bidi.js +6 -733
  791. package/dist/writing/bidi.js.map +1 -1
  792. package/package.json +1 -1
@@ -1,5 +1,9 @@
1
- import type { VDTDesignSlotKind } from './design.js';
2
- import type { FrameFitStep, FrameOverflowProposal, FrameCoverProposal, FrameOutsideProposal } from './warnings.js';
1
+ import type { SourceWarning } from './contentWarnings/source.js';
2
+ import type { ComposedPageWarning } from './contentWarnings/composed.js';
3
+ import type { MarkupWarning } from './contentWarnings/markup.js';
4
+ import type { TextSettingWarning } from './contentWarnings/text.js';
5
+ import type { ComicWarning } from './contentWarnings/comic.js';
6
+ import type { LayoutWarning } from './contentWarnings/layout.js';
3
7
  /** Where a content warning points: the source range of the construct in
4
8
  * the markdown given to the build (frontmatter included), and the page it
5
9
  * was placed on. Both are absent when the construct has no place in the
@@ -16,1020 +20,6 @@ interface ContentWarningBase {
16
20
  * `collectContentWarnings`); the build lists them in
17
21
  * {@link VDTDocument.contentWarnings}. Narrow on `kind` — further kinds may
18
22
  * be added in minor releases. */
19
- export type ContentWarning = ContentWarningBase & (
20
- /** A `::resource{id}` embed, an inline `:ref{id}` or a table cell's
21
- * image names a resource id no resource has: the embed is left out, the
22
- * reference prints `?` (or its `text=` label) with no number or link, the
23
- * cell stays text-only. `inResource` names the
24
- * resource whose caption, note or cell holds the reference. */
25
- {
26
- kind: 'unknownResourceId';
27
- resourceId: string;
28
- usage: 'embed' | 'ref' | 'cellImage';
29
- inResource?: string;
30
- }
31
- /** An identifier (`{#id}`, `:anchor{#id}`) set more than once in the
32
- * document: references reach its first setting only (#261). */
33
- | {
34
- kind: 'duplicateAnchor';
35
- anchorId: string;
36
- }
37
- /** A citation (`[@key]`) names a work no reference of the book defines
38
- * (#268): it prints as written, or without that work. */
39
- | {
40
- kind: 'unknownCitationKey';
41
- key: string;
42
- }
43
- /** The text cites works but no citation engine is registered
44
- * (`postext-citeproc`): citations print as written. */
45
- | {
46
- kind: 'citationsUnavailable';
47
- }
48
- /** A `:::references` block could not be read (malformed JSON or YAML, or
49
- * BibTeX without an engine). */
50
- | {
51
- kind: 'referencesUnreadable';
52
- message: string;
53
- }
54
- /** The front matter block is not valid YAML (an unclosed quote, text
55
- * after a quoted value): the document is set without its metadata.
56
- * `message` is the parser's reason, with the line and column. */
57
- | {
58
- kind: 'invalidFrontmatter';
59
- message: string;
60
- }
61
- /** A `:::name` line whose name is neither a directive nor a container:
62
- * it is set as text. */
63
- | {
64
- kind: 'unknownDirective';
65
- name: string;
66
- }
67
- /** A `::name` line that is not a well-formed embed standing alone —
68
- * `::resource{id="…"}` with double quotes and no other attribute, after
69
- * a blank line: it is set as text. */
70
- | {
71
- kind: 'malformedEmbed';
72
- name: string;
73
- }
74
- /** `:::paragraphs{style}` names no paragraph style: the paragraphs are set
75
- * as body text. */
76
- | {
77
- kind: 'unknownParagraphStyle';
78
- style: string;
79
- }
80
- /** `:::callout{type}` names none of the configured callout styles: the box
81
- * takes the first one. Not raised while `calloutStyles` is unset or
82
- * empty (every type is then the built-in plain box). */
83
- | {
84
- kind: 'unknownCalloutType';
85
- type: string;
86
- }
87
- /** `:::exercise{type}` names no kind of exercise (#1225): the exercise
88
- * takes the kind its content tells. */
89
- | {
90
- kind: 'exerciseUnknownType';
91
- type: string;
92
- }
93
- /** `:::exercise{style}` names no exercise style: it takes the first. Not
94
- * raised while `exerciseStyles` is unset. */
95
- | {
96
- kind: 'exerciseUnknownStyle';
97
- style: string;
98
- }
99
- /** A graded exercise with nothing right to check (a choice with no
100
- * ticked option, gaps with no `[[…]]`…): `exerciseKind` is its kind. */
101
- | {
102
- kind: 'exerciseNoAnswer';
103
- exerciseKind: string;
104
- }
105
- /** An item of an exercise its kind cannot read (a match item with no
106
- * `->`, a sort item with no `:`…): it is set as written. */
107
- | {
108
- kind: 'exerciseUnreadItem';
109
- text: string;
110
- }
111
- /** An exercise inside another: its blocks are the outer one's. */
112
- | {
113
- kind: 'exerciseNested';
114
- }
115
- /** A word a crossword or a word search could not place: it is left out
116
- * of the grid (a crossword needs a letter shared with another word). */
117
- | {
118
- kind: 'exerciseWordUnplaced';
119
- word: string;
120
- }
121
- /** A `:::solution` or `:::hint` outside an exercise: it prints nothing. */
122
- | {
123
- kind: 'solutionOutside';
124
- }
125
- /** `:::columns{flow=…}` names neither `'snake'` nor `'parallel'` (#634):
126
- * the group takes the default (`'parallel'` with `breaks`, `'snake'`
127
- * without). */
128
- | {
129
- kind: 'columnsFlowUnknown';
130
- value: string;
131
- }
132
- /** A composed page (`::::page{template=…}`, #854) names a template no
133
- * `pageTemplates` entry has (or names none). Until templates are laid
134
- * out its content is set in the flow, on pages of its own. */
135
- | {
136
- kind: 'templateUnknown';
137
- template: string;
138
- fenceIndex: number;
139
- }
140
- /** Content of a composed page names a slot (`slot="…"`,
141
- * `:::frame{slot=…}`) that is no frame of the page's template: it goes
142
- * to the template's flow frame (`frame`, when the template has one). */
143
- | {
144
- kind: 'slotUnknown';
145
- template: string;
146
- slot: string;
147
- frame?: string;
148
- fenceIndex: number;
149
- }
150
- /** A frame of a composed page's template receives no content: nothing
151
- * names its slot, it takes no heading, and (the flow frame) no content
152
- * is left without a slot. A frame marked `optional` is not reported. */
153
- | {
154
- kind: 'slotEmpty';
155
- template: string;
156
- frame: string;
157
- fenceIndex: number;
158
- }
159
- /** A grid that repeats a frame set (#1061) holds `max` items, and the
160
- * page gives it more: item `item` (and every one after it) goes to the
161
- * flow frame (`flowFrame`, when the template has one), or after the
162
- * page. Points at the item's `slot="…"`. */
163
- | {
164
- kind: 'repeatOverflow';
165
- template: string;
166
- group: string;
167
- frame: string;
168
- item: number;
169
- max: number;
170
- flowFrame?: string;
171
- fenceIndex: number;
172
- }
173
- /** A `:::frame{slot="…" look="…"}` piece of a composed page names a look
174
- * (#1089) that no `frameLooks` entry has: the frame wears its style and
175
- * its template look. `suggestion`: the nearest id. Points at the
176
- * `look="…"` value. */
177
- | {
178
- kind: 'lookUnknown';
179
- template: string;
180
- frame: string;
181
- look: string;
182
- suggestion?: string;
183
- fenceIndex: number;
184
- }
185
- /** A `:::module{template="…"}` of a composed page (#1062) that the page
186
- * does not lay: `module` names no template (`'unknown'`), a template
187
- * whose `role` is not `'module'` (`'notModule'`), or the page's template
188
- * has no modules group (`'noGroup'`). Its content goes to the flow
189
- * frame. Points at its `template="…"`. */
190
- | {
191
- kind: 'moduleUnknown';
192
- template: string;
193
- module: string;
194
- name: string;
195
- reason: 'unknown' | 'notModule' | 'noGroup';
196
- fenceIndex: number;
197
- }
198
- /** A page fence names a module template (#1062): a module is laid in a
199
- * page's modules group, never as a page. The fence's content is set in
200
- * the flow. Points at its `template="…"`. */
201
- | {
202
- kind: 'moduleAsPage';
203
- template: string;
204
- fenceIndex: number;
205
- }
206
- /** A `:::module` inside another module (#1062): not supported; its
207
- * blocks are the outer module's. Points at its `template="…"`. */
208
- | {
209
- kind: 'moduleNested';
210
- template: string;
211
- module: string;
212
- fenceIndex: number;
213
- }
214
- /** A module's `name="…"` (#1062) that another module of the page took
215
- * (`'taken'`), or that holds a space, `.`, `#`, `[` or `]`
216
- * (`'invalid'`): the module is named `used` (`<template>[n]`). Its
217
- * slots are addressed under that name. */
218
- | {
219
- kind: 'moduleNameRejected';
220
- template: string;
221
- module: string;
222
- name: string;
223
- used: string;
224
- reason: 'taken' | 'invalid';
225
- fenceIndex: number;
226
- }
227
- /** A three-colon `:::page` carries `template=`: a composed page needs
228
- * four colons (`::::page{template=…}` … `::::`). It is read as a comic
229
- * page, as before. */
230
- | {
231
- kind: 'pageFenceLength';
232
- }
233
- /** The content poured into a frame of a composed page does not fit it
234
- * (#855): the frame has no `next` frame left to go on in, or no more
235
- * room in its chain. What does not fit is clipped at the frame's foot
236
- * on paged output; it stays in the document (reflowable output, the
237
- * source map, this warning). `overflowMm` is the height that is cut.
238
- * Provisional: #858 adds the steps tried and the fixes. */
239
- | {
240
- kind: 'frameOverflow';
241
- template: string;
242
- frame: string;
243
- fenceIndex: number;
244
- overflowMm: number;
245
- configPath: string;
246
- /** The document's locale (`config.locale`): the same page overflows in
247
- * one language and fits in another. */
248
- locale?: string;
249
- /** The steps of the reflow ladder (#858) that applied to the frame, in
250
- * the order they were tried; none made the content fit. */
251
- stepsTried: FrameFitStep[];
252
- /** The text scale the frame was left at (1 = none). */
253
- scale: number;
254
- /** The scale its pictures were left at, below 1. */
255
- imageScale?: number;
256
- /** Changes that would make the content fit, with their values worked
257
- * out from the shortfall (each tried on the page where it can be). */
258
- proposals: FrameOverflowProposal[];
259
- }
260
- /** Ink of a frame lies under another frame painted over it (#1053): a
261
- * later `layer`, or the same layer later in template order. A frame
262
- * covers where it is opaque: its fill (the callout style's background,
263
- * `look.background`, a label tab, a stripe), its pictures and its text;
264
- * a frame with no fill covers nothing between its pictures and lines. What
265
- * is covered: the frame's lines (their boxes), its tab and title, its
266
- * pictures (by a fill or a picture: words over a picture hide a hairline
267
- * of it). `text` is the first words covered (40 characters), `picture`
268
- * the resource id of the first picture covered, `overlapMm2` the area
269
- * covered. One warning per pair of frames; `overlap: 'allow'` on either
270
- * frame leaves the pair out. The source range is the covered frame's
271
- * content. */
272
- | {
273
- kind: 'frameCovered';
274
- template: string;
275
- frame: string;
276
- coveredBy: string;
277
- fenceIndex: number;
278
- configPath: string;
279
- /** The covering frame's config path. */
280
- coveredByPath: string;
281
- overlapMm2: number;
282
- text?: string;
283
- picture?: string;
284
- locale?: string;
285
- proposals: FrameCoverProposal[];
286
- }
287
- /** A frame's ink runs past what holds it (#1053): its text past the trim,
288
- * its fill or pictures past the bleed (`past: 'trim' | 'bleed'`), or
289
- * any of it past the frame or group it is anchored inside (a nine-point
290
- * anchor on `'#name'` whose point lies in that box: `past: 'frame' |
291
- * 'group'`, `target` its name). What runs past is cut at the trim, and
292
- * reads as escaping its card. `excessMm` is the largest overrun, `sides`
293
- * each side's. `overlap: 'allow'` on the frame leaves it out. */
294
- | {
295
- kind: 'frameOutsideArea';
296
- template: string;
297
- frame: string;
298
- fenceIndex: number;
299
- configPath: string;
300
- past: 'trim' | 'bleed' | 'frame' | 'group';
301
- target?: string;
302
- excessMm: number;
303
- sides: {
304
- top?: number;
305
- right?: number;
306
- bottom?: number;
307
- left?: number;
308
- };
309
- locale?: string;
310
- proposals: FrameOutsideProposal[];
311
- }
312
- /** A frame's content went on to other pages (#859) as many times as a
313
- * composed page may add (`pages`, 16) and still does not fit: what is
314
- * left is cut at the foot of the frame on the last page added
315
- * (`overflowMm`, `pageIndex`). */
316
- | {
317
- kind: 'frameContinuationLimit';
318
- template: string;
319
- frame: string;
320
- fenceIndex: number;
321
- pages: number;
322
- overflowMm: number;
323
- configPath: string;
324
- }
325
- /** A frame's `overflow.continueIn: 'page:<id>'` (#917) names no page
326
- * fence `::::page{id=…}` after the fence the story is on (`target`, its
327
- * `{attr.x}` read; `before`: the fence is there, but before or at this
328
- * page): the rest goes on on the next page instead. */
329
- | {
330
- kind: 'continueTargetMissing';
331
- template: string;
332
- frame: string;
333
- fenceIndex: number;
334
- target: string;
335
- before?: true;
336
- /** The story comes from the chapter at this position of the book and
337
- * this chapter has no composed page with that `id` (#943): the rest is
338
- * not set; `fenceIndex` is -1. */
339
- fromChapter?: number;
340
- configPath: string;
341
- }
342
- /** A composed page's fence and its template disagree about spreads
343
- * (#861): `::::page{template spread}` names a template that is a single
344
- * page (`fence: true`, `templateSpread: false`; it is laid as one
345
- * page), or the fence lacks `spread` and the template is a spread
346
- * (`fence: false`, `templateSpread: true`; it is laid over two facing
347
- * pages, as the template says). */
348
- | {
349
- kind: 'spreadMismatch';
350
- template: string;
351
- fenceIndex: number;
352
- fence: boolean;
353
- templateSpread: boolean;
354
- }
355
- /** A `::label[…]{at="…"}` of a `:::figure` (#860) names an anchor its
356
- * resource does not have: the label is not drawn (the reflowable
357
- * output still lists it). `known` lists the resource's anchor ids. The
358
- * source range is the label's text. With `connector` (#1057), a
359
- * connector of a composed page's decoration ends at that anchor of the
360
- * picture of `frame`, which lacks it: that end is left out; there is no
361
- * source range, `resourceId` is the frame's first picture (empty when
362
- * it holds none). */
363
- | {
364
- kind: 'labelAnchorUnknown';
365
- resourceId: string;
366
- anchor: string;
367
- known: string[];
368
- locale?: string;
369
- labelId?: string;
370
- connector?: string;
371
- frame?: string;
372
- }
373
- /** An anchor of a figure's resource names a label `style` but no
374
- * `::label` of the figure stands at it in this locale (#860): a note,
375
- * the map lacks that word in this edition. The source range is the
376
- * figure's. */
377
- | {
378
- kind: 'anchorUnlabelled';
379
- resourceId: string;
380
- anchor: string;
381
- style: string;
382
- locale?: string;
383
- }
384
- /** A figure label (#902) that is still wider than its anchor's `width`
385
- * at its style's `minScale` (`layout.overflow`): it is drawn at that
386
- * scale and runs past the measure. `anchor` is its anchor (absent for a
387
- * label placed by percentages), `text` its plain text (40 characters),
388
- * `widthPct` the measure it was given (percent of the picture's
389
- * width) and `scale` the scale it reached. The source range is the
390
- * label's. */
391
- | {
392
- kind: 'labelOverflow';
393
- resourceId: string;
394
- text: string;
395
- anchor?: string;
396
- widthPct: number;
397
- scale: number;
398
- locale?: string;
399
- labelId?: string;
400
- }
401
- /** Two labels of a figure whose boxes meet (#902): the later one, in the
402
- * order written, names the first earlier label it meets (`with`, and
403
- * `withAnchor`) and how many earlier labels it meets in all (`count`,
404
- * at least 1). Checked per edition, so a language whose words run
405
- * longer shows it. The source range is the later label's. With
406
- * `withSymbol` (1-based), the label runs onto a symbol of the picture
407
- * instead (#969): one of its `avoid` zones, `count` of them in all;
408
- * `with` reads `symbol <n>`. */
409
- | {
410
- kind: 'labelOverlap';
411
- resourceId: string;
412
- text: string;
413
- anchor?: string;
414
- with: string;
415
- withAnchor?: string;
416
- withSymbol?: number;
417
- count: number;
418
- locale?: string;
419
- labelId?: string;
420
- }
421
- /** A `:::paper{…}` attribute the engine cannot read: an unknown key, a
422
- * stock, finish or texture it does not know, a number out of range, a
423
- * shade that is neither a hex colour nor a palette id, a `showThrough`
424
- * other than true / false. The attribute is dropped; the pages follow
425
- * the document's paper for it. */
426
- | {
427
- kind: 'paperAttributeInvalid';
428
- key: string;
429
- value: string;
430
- }
431
- /** `:chip[…]{style}` names no chip style: the chip takes the first one.
432
- * `inResource` names the resource whose caption, note or cell holds it. */
433
- | {
434
- kind: 'unknownChipStyle';
435
- style: string;
436
- inResource?: string;
437
- }
438
- /** `:mark[…]{style}` (#888) names no highlight style: the mark takes the
439
- * first one. `inResource` names the resource whose caption, note or
440
- * cell holds it. */
441
- | {
442
- kind: 'unknownMarkStyle';
443
- style: string;
444
- inResource?: string;
445
- }
446
- /** An in-column heading whose design reserves the whole of its column
447
- * (#997): the text after it starts in the next column or page. `element`
448
- * is the id of the design element that reaches lowest and sets that
449
- * height (give it `reserve: false` if it is decoration), absent when
450
- * the design's own `minHeight` is what fills the column. A page-span
451
- * opener claims its page on purpose and is not reported. The source
452
- * range is the heading's. */
453
- | {
454
- kind: 'headingClaimsColumn';
455
- level: number;
456
- element?: string;
457
- }
458
- /** A `:::figure` gives words (`alt`, `caption`, `note`) to a resource
459
- * that an earlier figure of the chapter already gave words to, and
460
- * they differ (#986): a resource has one set of words in a chapter, the
461
- * first figure's, so `words` of this figure are not shown. Give the
462
- * figure a resource of its own (a second entry for the same file). The
463
- * source range is the first of those words. */
464
- | {
465
- kind: 'figureWordsShared';
466
- resourceId: string;
467
- words: ('alt' | 'caption' | 'note')[];
468
- }
469
- /** A footnote marker `[^id]` with no `[^id]: …` definition in the
470
- * document: the number prints, the note is empty. Points at the first
471
- * such marker. */
472
- | {
473
- kind: 'undefinedFootnote';
474
- id: string;
475
- }
476
- /** A footnote definition `[^id]: …` no marker cites: it is not set. */
477
- | {
478
- kind: 'unusedFootnote';
479
- id: string;
480
- }
481
- /** An index mark (`:index{…}`) with no term — no `term` attribute and no
482
- * bracketed text: it indexes nothing. */
483
- | {
484
- kind: 'indexMarkInvalid';
485
- }
486
- /** A `see` / `seealso` of an index mark names no entry of its index: the
487
- * cross-reference still prints. Points at the `:::index` line. */
488
- | {
489
- kind: 'indexSeeUnknown';
490
- target: string;
491
- index: string;
492
- }
493
- /** A page range of the index opened (`range="start"`) and never closed,
494
- * or closed with no opening (`missing: 'start'`): it prints as a single
495
- * page. Points at the `:::index` line. */
496
- | {
497
- kind: 'indexRangeUnclosed';
498
- term: string;
499
- missing: 'start' | 'end';
500
- index: string;
501
- }
502
- /** An entry of a Japanese index (#425) whose text holds a kanji and that
503
- * no mark gives a reading (`yomi`, a kana ruby on the marked text, or a
504
- * `sort` key in kana): it files after the kana entries, by code point.
505
- * `term` is the entry's levels joined with `!`. Points at the `:::index`
506
- * line. */
507
- | {
508
- kind: 'indexReadingMissing';
509
- term: string;
510
- index: string;
511
- }
512
- /** A heading's `{style}` attribute names no heading style: the heading
513
- * and its section keep the level's own settings. */
514
- | {
515
- kind: 'unknownHeadingStyle';
516
- style: string;
517
- level: number;
518
- }
519
- /** A video resource the text uses has no poster frame (#454): print
520
- * outputs show a dark box with the play mark and the QR code. */
521
- | {
522
- kind: 'videoWithoutPoster';
523
- resourceId: string;
524
- }
525
- /** A self-hosted video the text uses has no production address
526
- * (`video.url`, http or https): the printed poster gets no QR code and
527
- * no link, and an HTML or EPUB output without the file cannot play it. */
528
- | {
529
- kind: 'videoWithoutUrl';
530
- resourceId: string;
531
- }
532
- /** A YouTube or Vimeo video whose address is not a link to a video of that
533
- * platform: no player is embedded (the poster is shown instead), and the
534
- * QR code and the link carry the address as written when it is a web
535
- * address. */
536
- | {
537
- kind: 'videoUrlInvalid';
538
- resourceId: string;
539
- url: string;
540
- }
541
- /** A table resource's `table.styleId` names no `tableStyles` entry: the
542
- * table is set in the document's `tableStyle`. */
543
- | {
544
- kind: 'unknownTableStyle';
545
- styleId: string;
546
- resourceId: string;
547
- }
548
- /** A table's grid is not rectangular once its merges are counted (see
549
- * `tableGridIssues`): cells are laid out by their array index, so a cell
550
- * left out HTML-style under a `colSpan` / `rowSpan` shifts the cells
551
- * after it (`spanOverlap`: a visible cell sits under a merge instead of
552
- * carrying `hiddenBy`), or a row ends short and leaves a hole
553
- * (`missingCells`). `row` / `col` locate the first issue; `count` is
554
- * how many the table has. */
555
- | {
556
- kind: 'raggedTableGrid';
557
- resourceId: string;
558
- reason: 'spanOverlap' | 'missingCells';
559
- row: number;
560
- col: number;
561
- count: number;
562
- }
563
- /** A justified line of CJK text that would need more space between its
564
- * characters than the cap (½ em, or `bodyText.maxJustifyTracking` when
565
- * set) to reach the measure: it is set with the cap and ends short
566
- * (`VDTLine.cjkLoose`). Usually the line before a long Latin word or web
567
- * address that cannot break. `text` is the line's text. Found by the
568
- * layout, so `collectContentWarnings` never returns it. */
569
- | {
570
- kind: 'cjkLooseLine';
571
- text: string;
572
- }
573
- /** A line of a justified paragraph set ragged because its word spaces
574
- * would have stretched past 3× their width to reach the measure
575
- * (`VDTLine.raggedSpaceRatio`, #732): the first line of a story in a
576
- * narrow column that cannot take the next word, the line before a web
577
- * address that breaks only at its joints. `text` is the line's text and
578
- * `ratio` the stretch it would have needed. Reword the copy or give the
579
- * line a break it can take. Found by the layout, so
580
- * `collectContentWarnings` never returns it. */
581
- | {
582
- kind: 'raggedLine';
583
- text: string;
584
- ratio: number;
585
- }
586
- /** A word of a joining script (Arabic, Syriac, N'Ko…) wider than its
587
- * line: such a word is never divided (its letters connect, and a piece
588
- * would lose its joining forms), so it runs past the measure
589
- * (`VDTLine.wordOverflow`). `text` is the line's text. Found by the
590
- * layout, so `collectContentWarnings` never returns it. */
591
- | {
592
- kind: 'unbreakableWordOverflow';
593
- text: string;
594
- }
595
- /** A word wider than its whole line (a narrow frame, a running head, a
596
- * table cell), cut to fit between two of its characters, with no
597
- * hyphen (`VDTLine.wordDivided`, #1150): "CL" | "IMA". `text` is the
598
- * line's text. A warning: give the text more room or a smaller size.
599
- * Found by the layout, so `collectContentWarnings` never returns it. */
600
- | {
601
- kind: 'wordDividedByCharacter';
602
- text: string;
603
- }
604
- /** A word wider than its whole line, cut at one of its syllables with a
605
- * hyphen (`VDTLine.wordDivided`, #1150). A note: the cut is a
606
- * dictionary one, but the word was too long for the measure. */
607
- | {
608
- kind: 'wordDividedBySyllable';
609
- text: string;
610
- }
611
- /** A paragraph or heading whose style sets letter-spacing
612
- * (`letterSpacing`) on words of a joining script: they are set without
613
- * it, since spacing their letters apart breaks the joins, and only the
614
- * other words and the spaces take it. `text` is the block's first
615
- * line. Found by the layout. */
616
- | {
617
- kind: 'joiningScriptLetterSpacing';
618
- text: string;
619
- }
620
- /** A paragraph with Chinese marks (emphasis dots, proper-name or
621
- * book-title lines, #193) whose line gap is narrower than the marks
622
- * need: half an em for marks on one side of the text, five eighths for
623
- * marks on both sides (clreq §5.6.1). The line pitch never changes for
624
- * them, so they crowd the next line: give the paragraph more leading.
625
- * `gapEm` is the gap (line height less the text size) and `neededEm`
626
- * what the marks need, in em of the text. */
627
- | {
628
- kind: 'cjkMarksExceedLeading';
629
- text: string;
630
- gapEm: number;
631
- neededEm: number;
632
- }
633
- /** A paragraph with ruby readings over or under its text (#194) whose
634
- * line gap is narrower than the readings: they overlap the next line.
635
- * `gapEm` and `neededEm` in em of the text. */
636
- | {
637
- kind: 'rubyExceedsLeading';
638
- text: string;
639
- gapEm: number;
640
- neededEm: number;
641
- }
642
- /** A paragraph of kanbun with 送り仮名 (or 返り点 set in the line gap,
643
- * `cjk.kunten.placement: 'interlinear'`) whose line gap is narrower than
644
- * the marks (#430): they overlap the next line. `gapEm` and `neededEm`
645
- * in em of the text. */
646
- | {
647
- kind: 'kuntenExceedsLeading';
648
- text: string;
649
- gapEm: number;
650
- neededEm: number;
651
- }
652
- /** A paragraph of vocalised Arabic (#376) whose vowel marks meet the
653
- * ink of the line above or below it in its column: a mark over a word
654
- * reaches down-hanging letters or marks of the line above, or a kasra
655
- * under a word the marks of the line below. Only words standing over
656
- * each other are compared. The line pitch never changes for the marks:
657
- * give the paragraph more leading (1.7–1.85 em for partly vocalised
658
- * text, 1.9–2.1 for fully vocalised verse). `lineHeightEm` is the
659
- * distance between the two baselines and `neededEm` the height the two
660
- * lines' ink takes there, in em of the text; `text` is the lower line.
661
- * Found by the layout, so `collectContentWarnings` never returns it. */
662
- | {
663
- kind: 'arabicMarksExceedLeading';
664
- text: string;
665
- lineHeightEm: number;
666
- neededEm: number;
667
- }
668
- /** Markup typed with fullwidth characters, as a Chinese or Japanese
669
- * input method types it: a `:::` fence, a `#` heading, a `[^…]`
670
- * footnote marker, `{…}` attributes after a fence or heading, or
671
- * `**…**` bold. The parser reads only the ASCII forms, so the line
672
- * is set as text. `typed` is the markup as written, `ascii` the form
673
- * to type (#181). One per line. */
674
- | {
675
- kind: 'fullwidthMarkup';
676
- typed: string;
677
- ascii: string;
678
- }
679
- /** An attribute key with letters outside ASCII (`作者=曹雪芹`): keys are
680
- * ASCII, so the attribute is not read. Points at the key (#181). */
681
- | {
682
- kind: 'attributeKeyInvalid';
683
- key: string;
684
- }
685
- /** A resource whose `placement.rotate` asks for a quarter turn, in a
686
- * document set vertically (`layout.writingMode: 'vertical-rl'`): every
687
- * figure and table of a vertical flow stands upright, so the turn is
688
- * not applied, and the resource floats in its own `span` (#188). Points
689
- * at its first use. */
690
- | {
691
- kind: 'rotateIgnoredVertical';
692
- resourceId: string;
693
- }
694
- /** A `:tab` in a block set in vertical text (#622): tab stops are set in
695
- * horizontal text only, so the tab is a word space. */
696
- | {
697
- kind: 'tabInVerticalText';
698
- }
699
- /** A comic page's `split` attribute the grammar cannot read whole (a
700
- * stray character, an unclosed `[`, `/` and `|` mixed in one list, a
701
- * bracketed list on its parent's axis): the readable part is used, an
702
- * unreadable value is one panel. `message` says what is wrong. */
703
- | {
704
- kind: 'comicSplitSyntax';
705
- message: string;
706
- }
707
- /** The sizes of a list of a comic page's `split` add up past 100 %: they
708
- * are scaled down (a `*` keeps 5 %). */
709
- | {
710
- kind: 'comicSplitOverflow';
711
- total: number;
712
- }
713
- /** A comic page has more panels than its split has cells (`panels` >
714
- * `cells`: the extra panels are not set) or fewer (the extra cells are
715
- * empty panels). */
716
- | {
717
- kind: 'comicPanelCount';
718
- panels: number;
719
- cells: number;
720
- }
721
- /** Text in a comic page before its first `::panel` line, or a line of a
722
- * panel that is not a script line (`key: text`): it is lettered as a
723
- * caption of the panel (the first one, for text before it). */
724
- | {
725
- kind: 'comicStrayText';
726
- text: string;
727
- }
728
- /** A script line names a balloon style no style defines
729
- * (`ben{wisper}: …`): it takes the default style of its key. */
730
- | {
731
- kind: 'comicUnknownBalloonStyle';
732
- style: string;
733
- }
734
- /** A panel's `art` or `pop` names no picture resource (an unknown id, or
735
- * a resource that is not a bitmap or an SVG): the panel is set empty. */
736
- | {
737
- kind: 'comicUnknownArt';
738
- resourceId: string;
739
- }
740
- /** A panel's cell cannot hold the picture's safe area under a cover
741
- * crop: the picture is shown with its safe area whole and the bands
742
- * left in the panel background. Found by the layout. */
743
- | {
744
- kind: 'comicPanelLetterbox';
745
- resourceId: string;
746
- panel: number;
747
- }
748
- /** A picture's anchor (a speaker's mouth) lies outside its safe area: a
749
- * crop may cut it off, and the tail then points off the panel. An
750
- * authoring hint. Points at the panel's `art`. */
751
- | {
752
- kind: 'comicAnchorOutsideSafeArea';
753
- resourceId: string;
754
- anchorId: string;
755
- }
756
- /** A balloon of a comic panel could not be placed cleanly (#561): it
757
- * still covers a speaker's face, another balloon, an avoid zone or a
758
- * mouth, or runs outside its panel, after every fallback (`fallbacks`:
759
- * crossing the border, covering avoid zones, reshaping the text). The
760
- * lettering never shrinks; a shorter line, a bigger panel or an `at=`
761
- * pin fixes it. Found by the layout; points at the script line. */
762
- | {
763
- kind: 'comicBalloonOverflow';
764
- panel: number;
765
- reasons: ('face' | 'balloon' | 'outside' | 'avoid' | 'anchor')[];
766
- fallbacks: ('breakBorder' | 'coverAvoid' | 'reshape')[];
767
- }
768
- /** A speaker id that no picture of its comic page marks with an anchor
769
- * and no `comics.cast` entry names (a slip in the id, most often): its
770
- * tails point off the panel. Only raised on pages whose pictures mark
771
- * anchors. Informational. Points at the first line of that speaker. */
772
- | {
773
- kind: 'comicUnknownSpeaker';
774
- speaker: string;
775
- }
776
- /** A comic panel's frame (#885) cannot do what the panel asks. `reason`:
777
- * `'unknownBox'`, its `box` names no callout style (`style`): the panel
778
- * keeps its panel style; `'textOverflow'`, a text panel's Markdown does
779
- * not fit its frame (`overflowMm` did not): the rest is clipped;
780
- * `'strip'`, `'spread'`, `'flow'`, a text panel on a strip, on a
781
- * spread, or in a document whose flow is vertical or right to left: its
782
- * Markdown is set in the flow after the comic. `panel`: the panel's
783
- * place in the page's source (0-based). Points at the panel. */
784
- | {
785
- kind: 'comicPanelFrame';
786
- reason: 'unknownBox' | 'textOverflow' | 'strip' | 'spread' | 'flow';
787
- panel: number;
788
- style?: string;
789
- overflowMm?: number;
790
- }
791
- /** A line number set in the side column (`lineNumbers.position:
792
- * 'side'`, #621) overlaps a side box, a side caption or another float
793
- * of that column: both are painted where they are. Points at the line
794
- * it numbers; `number` is the number as printed. */
795
- | {
796
- kind: 'lineNumberOverlap';
797
- number: string;
798
- }
799
- /** A paragraph a drop cap opens (#623) that could not take it as
800
- * configured. `reason`: `'shortParagraph'`, fewer lines than the
801
- * initial sinks (`handling` says what `shortParagraph` did: kept the
802
- * room, shrank the initial to `lines`, or left it out); `'split'`, the
803
- * paragraph broke before the initial's last line, alone in a column
804
- * too short for it; `'joiningScript'`, its first letter joins the next
805
- * (Arabic, Syriac, N'Ko) and is not set apart; `'verticalText'`, drop
806
- * caps are set in horizontal text only; `'noLetter'`, it opens with no
807
- * letter or digit to set large (a reference, a formula, a note mark);
808
- * `'inBox'` (#922), a `:::paragraphs{dropcap}` group or a paragraph
809
- * style with a drop cap inside a `:::callout` box, where none is set
810
- * (a composed page's frames take them).
811
- * `text` is the paragraph's first line. Found by the layout. */
812
- | {
813
- kind: 'dropCap';
814
- reason: 'shortParagraph' | 'split' | 'joiningScript' | 'verticalText' | 'noLetter' | 'inBox';
815
- handling?: 'reserve' | 'shrink' | 'skip';
816
- lines?: number;
817
- text: string;
818
- }
819
- /** `codeOverflow` (#624): a code listing has lines wider than its box,
820
- * fitted as `codeStyle.overflow` says: turned over (`'wrap'`), set
821
- * smaller (`'shrink'`, at `scale` of its size; past `minFontScale` its
822
- * lines wrap too) or cut at the box's edge (`'clip'`). `lines` counts
823
- * the source lines too wide. Found by the layout. */
824
- | {
825
- kind: 'codeOverflow';
826
- mode: 'wrap' | 'shrink' | 'clip';
827
- lines: number;
828
- scale?: number;
829
- lang?: string;
830
- }
831
- /** `floatShrunk` (#626): a floated picture was set smaller than its size
832
- * to fit the room of its slot (`placement.shrink`), at `scale` of its
833
- * width. `overflowPx`: at its smallest scale (`placement.minScale`) it
834
- * still runs this far past the foot of the page's text block, on a page
835
- * where it had nowhere else to go. Found by the layout; information
836
- * more than a fault, unless it overflows. */
837
- | {
838
- kind: 'floatShrunk';
839
- resourceId: string;
840
- scale: number;
841
- overflowPx?: number;
842
- }
843
- /** `pictureBelowPrintSize` (#901): a bitmap with a print size (its own
844
- * `bitmap.resolution`, or a number in `layout.bitmapResolution`) set in
845
- * a column that holds it at under half of it, on a page whose text
846
- * block is wider than that column: `scale` is the share of its print
847
- * width it keeps, `printWidthPx` that width, `widthPx` the column's and
848
- * `pageWidthPx` the text block's. A picture in the flow is never wider
849
- * than its column, and the default page has two (`layout.layoutType:
850
- * 'double'`). Found by the layout; reported once per picture. */
851
- | {
852
- kind: 'pictureBelowPrintSize';
853
- resourceId: string;
854
- scale: number;
855
- printWidthPx: number;
856
- widthPx: number;
857
- pageWidthPx: number;
858
- }
859
- /** `emptyCaption` (#1151): a resource of a type with a caption prefix
860
- * whose own caption is empty, so its caption line prints the label and
861
- * number alone ("Figure 1.2."). Often meant (a numbered plate), often a
862
- * caption left out; information. Reported once per resource, where it
863
- * is first placed. Found by the layout. */
864
- | {
865
- kind: 'emptyCaption';
866
- resourceId: string;
867
- label: string;
868
- }
869
- /** `resourceMoved` (#1151): a resource set where its `::resource` line
870
- * stands (`position: 'here'`) was too tall for the room left in its
871
- * column and moved on to the next, leaving `emptyPx` (`emptyMm`) of
872
- * that column empty on page `pageIndex`. Reported when the room left is at least
873
- * two lines of the body grid; a wrapped picture says it with
874
- * `textWrap` `'moved'`. Found by the layout. */
875
- | {
876
- kind: 'resourceMoved';
877
- resourceId: string;
878
- emptyPx: number;
879
- emptyMm: number;
880
- }
881
- /** `folioMissing` (#1163): a composed page whose running head, running
882
- * foot or folio element (`elementId`, of the template's `slot`:
883
- * `header`, `footer` or a decoration text reading `{pageNumber}`, a
884
- * running name or `{attr.x}`) draws nothing, while `drawnOn` of the
885
- * `siblings` other pages of the same `template` and `side` that mean to
886
- * draw it do. `folio`: the element writes `{pageNumber}`. A page whose
887
- * fence switches the element off (`when` / `unless`) or whose slot has
888
- * no such element is no sibling. Found after the running heads are
889
- * laid; reported once per page and element. */
890
- | {
891
- kind: 'folioMissing';
892
- template: string;
893
- elementId: string;
894
- slot: 'header' | 'footer' | 'decoration';
895
- folio: boolean;
896
- side: 'recto' | 'verso';
897
- drawnOn: number;
898
- siblings: number;
899
- }
900
- /** `textWrap` (#627): a resource or a box set to wrap text round it
901
- * (`placement.wrap`, a box's `wrap`) that does not as asked.
902
- * `'tooNarrow'`: the text beside it would be narrower than
903
- * `layout.wrap.minTextWidth`, so it takes its band whole; `'fewLines'`:
904
- * it is shorter than `layout.wrap.minLinesBeside` lines, so it takes
905
- * its band whole; `'moved'`: an inline one was too tall for the room
906
- * left in its column and moved on to the next, its anchor with it;
907
- * `'verticalText'`: text wraps in horizontal text only, so in a
908
- * vertical flow it takes its band whole; `'noContour'` (#883): a
909
- * contour wrap (`wrap: 'contour'`, or a pushing frame's) round a
910
- * picture whose shape is not known (an SVG with no
911
- * `contour.points`, a bitmap with no transparency, or whose alpha
912
- * channel the host did not trace), so the text runs round its box.
913
- * `resourceId` names a resource, `box` a box's style. Found by the
914
- * layout. */
915
- | {
916
- kind: 'textWrap';
917
- reason: 'tooNarrow' | 'fewLines' | 'moved' | 'verticalText' | 'noContour';
918
- resourceId?: string;
919
- box?: string;
920
- }
921
- /** `columnsTooNarrow` (#634): the sub-columns of a `:::columns` group
922
- * are narrower than six ems of its text, `widthPx` each, `columns` of
923
- * them: few words fit a line. Found by the layout. */
924
- | {
925
- kind: 'columnsTooNarrow';
926
- columns: number;
927
- widthPx: number;
928
- }
929
- /** `afterText` (#639): a `span: 'side'` box, or a figure or table of
930
- * the side column (`resourceId`), set on a page that holds no text: the
931
- * text of its chapter (or of the document) ended while it still waited
932
- * for room in the side column, so it took the side column of a page
933
- * opened after the text. One per box or float, with the range of the
934
- * box (of the block citing the float) and its page. Found by the
935
- * layout. */
936
- | {
937
- kind: 'afterText';
938
- resourceId?: string;
939
- }
940
- /** `unplaced` (#639): a `span: 'side'` box, a floated box or a floated
941
- * resource (`resourceId`) still waiting for a slot when the layout
942
- * ended: it is on no page (the pages opened for it had no side column,
943
- * say). The build reports it instead of dropping it silently. It has a
944
- * source range and no page. Found by the layout. */
945
- | {
946
- kind: 'unplaced';
947
- resourceId?: string;
948
- }
949
- /** `shortListSplit` (#749): a list of `items` items, short by
950
- * `bodyText.shortListMaxItems`, cut between two columns or pages. Under
951
- * `bodyText.shortListSplit: 'warn'` every such list is reported; under
952
- * `'avoid'` only the one no column could hold whole (a list taller than
953
- * an empty column, or than the room a float left of one). One per
954
- * list, with the range of the list and the page of its first item.
955
- * Found by the layout. */
956
- | {
957
- kind: 'shortListSplit';
958
- items: number;
959
- }
960
- /** `tocGroupSplit` (#850): a block of the contents kept together
961
- * (`toc.groups.keepTogether`, `:::toc{keep}`), headed by `title`, set in
962
- * `columns` columns: taller than a full column, or in a column too short
963
- * to hold it (under a page-span box, beside a float). With
964
- * `toc.groups.continuation` the column it goes on in opens with its head
965
- * row again. One per block, with the range of its `:::toc` and the page
966
- * it starts on. Found by the layout. */
967
- | {
968
- kind: 'tocGroupSplit';
969
- title: string;
970
- columns: number;
971
- }
972
- /** `openerFloat` (#749): a float set on an opener page (the page a part
973
- * or a heading's own break opens, the first page of a document that
974
- * starts with a heading) under `layout.openerFloats: 'warn'`: a figure,
975
- * a table or a strip (`resourceId`), or a floated box. One per float,
976
- * with the range of the block citing it (of the box) and its page.
977
- * Found by the layout. */
978
- | {
979
- kind: 'openerFloat';
980
- resourceId?: string;
981
- }
982
- /** `designTextTruncated` (#628): a design text element did not fit its
983
- * width and lost part of a line: cut by an ellipsis (`mode`
984
- * `'ellipsis-*'`, its `overflow`) or clipped with ink past its box
985
- * (`'clip'`). `slot` is where the design is painted (a running head or
986
- * folio, a heading design, a part page, a contents part row),
987
- * `elementId` the element's id and `text` the whole text it was given.
988
- * One per element and page; a running head or folio once per element
989
- * and chapter (a chapter title cut on every page of its chapter is one
990
- * warning). `sourceStart` / `sourceEnd` when the text mirrors a heading
991
- * or a frontmatter field. Found by the layout. */
992
- | {
993
- kind: 'designTextTruncated';
994
- slot: VDTDesignSlotKind;
995
- elementId: string;
996
- text: string;
997
- mode: 'ellipsis-start' | 'ellipsis-end' | 'ellipsis-middle' | 'clip';
998
- }
999
- /** A face the document's text was set in that the font set could not
1000
- * give when the build ran (#629): no face of the family was loaded nor
1001
- * installed, or the one that answers for the weight and slant had not
1002
- * loaded (`missing`: the text was measured and drawn with a fallback
1003
- * face), or the family has no face of that weight or slant and the
1004
- * browser took it from another one, as it is (the 700 for a 600) or
1005
- * drawn bolder or slanted (`synthesized`, #650). Checked
1006
- * where there is a font set (`document.fonts`, a worker's `self.fonts`,
1007
- * `BuildDocumentOptions.fontSet`), behind
1008
- * `debug.warnings.missingFont`. No page and no source range. */
1009
- | {
1010
- kind: 'fontFallback';
1011
- family: string;
1012
- weight: number;
1013
- style: 'normal' | 'italic';
1014
- reason: 'missing' | 'synthesized';
1015
- }
1016
- /** Characters the text sets in a face that has no glyph for them, which
1017
- * another face drew (#1105): the next family of the font list that has
1018
- * them (`supplier`, a generic family such as `serif` too), or, without
1019
- * `supplier`, a face the system picks. One per face: `characters` lists
1020
- * the first of them (each once, at most 24), `count` says how many in
1021
- * all. Checked by the glyph probe where there is a font set
1022
- * (`installGlyphProbe`), else against the `cmap` of the files
1023
- * registered with `registerFontCoverage`; behind
1024
- * `debug.warnings.missingFont`. No page and no source range. */
1025
- | {
1026
- kind: 'glyphFallback';
1027
- family: string;
1028
- weight: number;
1029
- style: 'normal' | 'italic';
1030
- characters: string[];
1031
- count: number;
1032
- supplier?: string;
1033
- });
23
+ export type ContentWarning = ContentWarningBase & (SourceWarning | ComposedPageWarning | MarkupWarning | TextSettingWarning | ComicWarning | LayoutWarning);
1034
24
  export {};
1035
25
  //# sourceMappingURL=contentWarnings.d.ts.map