egatari 0.6.14 → 0.6.16

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 (270) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/README.ja.md +65 -64
  3. package/README.md +40 -39
  4. package/bin/egatari.mjs +3 -3
  5. package/components.lock.json +507 -153
  6. package/components2.lock.json +1710 -33
  7. package/kit/check-messages.mjs +105 -71
  8. package/kit/check.mjs +17 -11
  9. package/kit/core/article-messages.mjs +15 -15
  10. package/kit/core/article-render.mjs +1 -1
  11. package/kit/core/article-text.mjs +3 -1
  12. package/kit/core/build-core.mjs +23 -1
  13. package/kit/core/check-parity.mjs +2 -2
  14. package/kit/core/check-rules.mjs +12 -7
  15. package/kit/core/colab-core.mjs +2 -2
  16. package/kit/core/comment-core.mjs +6 -0
  17. package/kit/core/export-name.mjs +2 -2
  18. package/kit/core/geometry-check.mjs +363 -25
  19. package/kit/core/layout-scan.mjs +75 -5
  20. package/kit/core/live-policy.mjs +2 -2
  21. package/kit/core/live.mjs +2 -2
  22. package/kit/core/llm-fix.mjs +24 -13
  23. package/kit/core/llm-insert.mjs +11 -11
  24. package/kit/core/llm-outline.mjs +7 -7
  25. package/kit/core/llm-pack-assemble.mjs +5 -2
  26. package/kit/core/llm-pack-data.mjs +225 -39
  27. package/kit/core/llm-pack.mjs +3 -3
  28. package/kit/core/new-deck.mjs +17 -3
  29. package/kit/core/part-labels.mjs +6 -0
  30. package/kit/core/parts2.mjs +5 -5
  31. package/kit/core/player.mjs +18 -0
  32. package/kit/core/portable.mjs +26 -8
  33. package/kit/core/purposes.mjs +2 -2
  34. package/kit/core/ref-voice.mjs +1 -1
  35. package/kit/core/scorm.mjs +1 -1
  36. package/kit/core/sound-preferences.mjs +1 -1
  37. package/kit/core/theme-derive.mjs +209 -0
  38. package/kit/core/themes-list.mjs +1 -1
  39. package/kit/core/themes-lock.mjs +1 -1
  40. package/kit/core/tier-a.mjs +20 -8
  41. package/kit/deck.js +7 -4
  42. package/kit/instruction-version.json +1 -1
  43. package/kit/live.js +20 -20
  44. package/kit/player.json +1 -1
  45. package/kit/player.lock.json +2 -2
  46. package/kit/presenter.js +5 -3
  47. package/kit/templates/new-deck.mjs +6 -6
  48. package/kit/tools.js +13 -6
  49. package/kit/track.js +1 -1
  50. package/package.json +4 -2
  51. package/server/dev.mjs +3 -2
  52. package/server/editor-ui.js +28 -20
  53. package/server/hints.js +22 -2
  54. package/tts/yomi.yaml +8 -0
  55. package/vendor/components/CATALOG.md +21 -14
  56. package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/README.en.md +40 -0
  57. package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/index.js +408 -0
  58. package/vendor/components/sha256/0396a1895978803ae342b7f598f187b17ead47800e8f8317a5cb041111349813/index.js +278 -0
  59. package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/README.en.md +26 -0
  60. package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/index.js +322 -0
  61. package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/README.en.md +54 -0
  62. package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/index.js +470 -0
  63. package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/README.en.md +18 -0
  64. package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/index.js +279 -0
  65. package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/README.en.md +31 -0
  66. package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/index.js +267 -0
  67. package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/README.en.md +53 -0
  68. package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/index.js +171 -0
  69. package/vendor/components/sha256/1117758820dc561f41cf9d1cc0bab8cf3173cde7771ac10a12b94c96007c0f55/index.js +268 -0
  70. package/vendor/components/sha256/137017ad452afe209bdff81bc02ffae99c6b60a1c4aed2383515974f65511ff2/index.js +205 -0
  71. package/vendor/components/sha256/1a1471ba5f68e54304825a64e736afeda421e3763cdcbcdab2e45509562a0291/index.js +607 -0
  72. package/vendor/components/sha256/1b15fcc12b2fa43821e6299e87aae31aa69dbbc5a0d1b80088a5d7c5f8b8f7f5/index.js +429 -0
  73. package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/README.en.md +23 -0
  74. package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/index.js +147 -0
  75. package/vendor/components/sha256/21c099461befc0d382ddfe982f2a6cd8eeb6dd731252164ac619525e4bacdf0d/index.js +242 -0
  76. package/vendor/components/sha256/2352e0e22460f4a3c46dca6cef27cd9c63f161a411f1cf56c75c585e9124503c/index.js +315 -0
  77. package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/README.en.md +53 -0
  78. package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/index.js +171 -0
  79. package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/README.en.md +38 -0
  80. package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/index.js +414 -0
  81. package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/README.en.md +45 -0
  82. package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/index.js +211 -0
  83. package/vendor/components/sha256/2f111b900898579b3ec1611c2110db336a46d9133171a0cbb125ee37bd1f24f8/index.js +592 -0
  84. package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/README.en.md +45 -0
  85. package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/index.js +211 -0
  86. package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/README.en.md +20 -0
  87. package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/index.js +310 -0
  88. package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/README.en.md +35 -0
  89. package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/index.js +179 -0
  90. package/vendor/components/sha256/3af0b84b1799fc64ec74d6da9cbd343eccd89e8a11c81bfb444562c911284442/index.js +342 -0
  91. package/vendor/components/sha256/3c69bf3b3c6b9f76048fbc0839b3aa9699723570086d3d44bac799230ed6de5b/index.js +121 -0
  92. package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/README.en.md +37 -0
  93. package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/index.js +501 -0
  94. package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/README.en.md +38 -0
  95. package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/index.js +414 -0
  96. package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/README.en.md +30 -0
  97. package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/index.js +305 -0
  98. package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/README.en.md +31 -0
  99. package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/index.js +236 -0
  100. package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/README.en.md +21 -0
  101. package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/index.js +108 -0
  102. package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/README.en.md +28 -0
  103. package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/index.js +213 -0
  104. package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/README.en.md +35 -0
  105. package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/index.js +179 -0
  106. package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/README.en.md +53 -0
  107. package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/index.js +171 -0
  108. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ABCJS-ADAPTER.md +101 -0
  109. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/LICENSE-abcjs.txt +21 -0
  110. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/chords.json +89 -0
  111. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/doremi.json +261 -0
  112. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/extras.json +192 -0
  113. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/kaeru.json +521 -0
  114. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/rhythm.json +248 -0
  115. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ties.json +360 -0
  116. package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/index.js +508 -0
  117. package/vendor/components/sha256/59996a56df462b36e24a928d4397c9308d9e39ad8224ebd19fb5c981608ef458/index.js +521 -0
  118. package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/README.en.md +30 -0
  119. package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/index.js +305 -0
  120. package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/README.en.md +30 -0
  121. package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/index.js +192 -0
  122. package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/README.en.md +20 -0
  123. package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/index.js +307 -0
  124. package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/README.en.md +24 -0
  125. package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/index.js +554 -0
  126. package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/README.en.md +25 -0
  127. package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/index.js +316 -0
  128. package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/README.en.md +18 -0
  129. package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/index.js +279 -0
  130. package/vendor/components/sha256/624acb997c4975ace65570b529b3ba00baa421c80ecb7fc80f392a64e8c573a7/index.js +107 -0
  131. package/vendor/components/sha256/62602488ee33dd4bdef8516de16da5ab27d7f7265d5041681beab80e08f1d482/index.js +97 -0
  132. package/vendor/components/sha256/67eaf344bddac79b74ed03fdcd70285c7b52b160e6c5ffbd6897848179aa5230/index.js +818 -0
  133. package/vendor/components/sha256/682c9c8871eccd19ff1264e0323a2e4c5798b0488b612ba0339c6fe85aab5914/index.js +926 -0
  134. package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/README.en.md +51 -0
  135. package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/index.js +230 -0
  136. package/vendor/components/sha256/72138936ed0b8fd3cb0214ae7ed250ae3f1f8b21ed6fd593544947774064ba0d/index.js +250 -0
  137. package/vendor/components/sha256/74c1a0f3ed1370c5003aa5770ee28cea2ce994d415680116a92fdbcd5854ba62/index.js +198 -0
  138. package/vendor/components/sha256/76125035eb153b98befa9c735bcd9fc4f99f774dc1d082fdae40acaadfe7d95b/index.js +818 -0
  139. package/vendor/components/sha256/7728cf7dde88a6688aba0ed70f23f7e21362a147beac09c1fa1a4b773e08e93b/index.js +354 -0
  140. package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/README.en.md +23 -0
  141. package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/index.js +289 -0
  142. package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/README.en.md +31 -0
  143. package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/index.js +236 -0
  144. package/vendor/components/sha256/7d50e50fbb6c5ec636b62509bd88ddaac1870e0522cf11bcc293ce924d48072d/index.js +312 -0
  145. package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/README.en.md +42 -0
  146. package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/index.js +549 -0
  147. package/vendor/components/sha256/87fc302c41b2bfeea88951ed689ec01b4dc79218c4bc69b310dc2228dfa2e153/index.js +926 -0
  148. package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/README.en.md +24 -0
  149. package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/index.js +103 -0
  150. package/vendor/components/sha256/89c8c16788e24df17920542ed6eb6557dea4a10e835de8fe839e439ccbba8014/index.js +69 -0
  151. package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/README.en.md +44 -0
  152. package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/index.js +304 -0
  153. package/vendor/components/sha256/8d9af78aef44ad2f98101c67d32473373d39725a09c923969aa621d5f5b124bb/index.js +121 -0
  154. package/vendor/components/sha256/8f861d71df72a82be86a3e63abf7d69bbab5aac6fa68be6e077c4e19c3519ed8/index.js +312 -0
  155. package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/README.en.md +54 -0
  156. package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/index.js +470 -0
  157. package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/README.en.md +24 -0
  158. package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/index.js +214 -0
  159. package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/README.en.md +33 -0
  160. package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/index.js +390 -0
  161. package/vendor/components/sha256/9289efef4a75afe011e54a17e34db08cfb16a450b2e0653e6a98525495cfba99/index.js +315 -0
  162. package/vendor/components/sha256/93256a923199ea51108cdb7491c3c96f376dbef15b64cbf1a1aa7cc5726b4970/index.js +429 -0
  163. package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/README.en.md +24 -0
  164. package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/index.js +550 -0
  165. package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/README.en.md +28 -0
  166. package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/index.js +213 -0
  167. package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/README.en.md +40 -0
  168. package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/index.js +348 -0
  169. package/vendor/components/sha256/97c074a5473618c65f4c23263f056870a0b7940e73475f2a1f32f68c08d8eb0f/index.js +198 -0
  170. package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/README.en.md +66 -0
  171. package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/index.js +984 -0
  172. package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/README.en.md +34 -0
  173. package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/index.js +244 -0
  174. package/vendor/components/sha256/a18b2b15d00c76462a43823b5c270c7ddd7c31794da9c236f74f20f80ec2ffdb/index.js +354 -0
  175. package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/README.en.md +32 -0
  176. package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/index.js +222 -0
  177. package/vendor/components/sha256/a979207c60fbd2a12cb557297eb0217eb098d660de684530a0f43d0d9c64e6ef/index.js +312 -0
  178. package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/README.en.md +34 -0
  179. package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/index.js +244 -0
  180. package/vendor/components/sha256/af7ed69b8969f6da14784b6e9d26e4dfd20147772ea172a99bd936a71be10fcd/index.js +278 -0
  181. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ABCJS-ADAPTER.md +101 -0
  182. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/LICENSE-abcjs.txt +21 -0
  183. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/chords.json +89 -0
  184. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/doremi.json +261 -0
  185. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/extras.json +192 -0
  186. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/kaeru.json +521 -0
  187. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/rhythm.json +248 -0
  188. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ties.json +360 -0
  189. package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/index.js +508 -0
  190. package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/README.en.md +66 -0
  191. package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/index.js +990 -0
  192. package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/README.en.md +24 -0
  193. package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/index.js +550 -0
  194. package/vendor/components/sha256/b8096d7a60609520981273673761a110e40e3bdf52a7ab5548363b20e16f6e93/index.js +404 -0
  195. package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/README.en.md +32 -0
  196. package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/index.js +222 -0
  197. package/vendor/components/sha256/bd8e3893df02411deccc1d6d7b02292ca0d59dfeddfafcf99419430981572c82/index.js +351 -0
  198. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ABCJS-ADAPTER.md +101 -0
  199. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/LICENSE-abcjs.txt +21 -0
  200. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/chords.json +89 -0
  201. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/doremi.json +261 -0
  202. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/extras.json +192 -0
  203. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/kaeru.json +521 -0
  204. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/rhythm.json +248 -0
  205. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ties.json +360 -0
  206. package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/index.js +508 -0
  207. package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/README.en.md +31 -0
  208. package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/index.js +267 -0
  209. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/LICENSE-strokesvg.txt +115 -0
  210. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/OFL.txt +93 -0
  211. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/index.js +749 -0
  212. package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/strokes-CHANGES.md +20 -0
  213. package/vendor/components/sha256/c791e69e722f64146242f97acb29a341160d0c327cfe1d76307954d80e70db85/index.js +268 -0
  214. package/vendor/components/sha256/c8c0de41d603b61c6ec4dc1da5b50559e213dd1f3693ee5019df858016fd6daf/index.js +747 -0
  215. package/vendor/components/sha256/c99d4f2ab443484b9f462e405c72ea4794838b88f8823f27c606d12cbbedb996/index.js +404 -0
  216. package/vendor/components/sha256/cbde046e30c35db60259911a88e2ae0bedaf545e29b1da8b8ce13bc602a33c19/index.js +465 -0
  217. package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/README.en.md +51 -0
  218. package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/index.js +228 -0
  219. package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/README.en.md +35 -0
  220. package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/index.js +179 -0
  221. package/vendor/components/sha256/cf0985ffcd8e7cbe2175ddb9a4342b2a4aa3f322794188fc99af8789b494460d/index.js +521 -0
  222. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/LICENSE-strokesvg.txt +115 -0
  223. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/OFL.txt +93 -0
  224. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/index.js +749 -0
  225. package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/strokes-CHANGES.md +20 -0
  226. package/vendor/components/sha256/d01dc7fd78d08dd720ed86b39d7877dc0913d72e914036088a86af2df2faee52/index.js +484 -0
  227. package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/README.en.md +24 -0
  228. package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/index.js +214 -0
  229. package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/README.en.md +31 -0
  230. package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/index.js +271 -0
  231. package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/README.en.md +25 -0
  232. package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/index.js +316 -0
  233. package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/README.en.md +23 -0
  234. package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/index.js +120 -0
  235. package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/README.en.md +40 -0
  236. package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/index.js +405 -0
  237. package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/README.en.md +66 -0
  238. package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/index.js +984 -0
  239. package/vendor/components/sha256/ddd4b9cbbc282cbb3117ff662e1a14ecdb3cc7c16072a574418ec6a6eecef4d8/index.js +107 -0
  240. package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/README.en.md +22 -0
  241. package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/index.js +145 -0
  242. package/vendor/components/sha256/e2da948daac7bfac158857877b5a6932dbd2369e73901abcef118c92dd20b725/index.js +747 -0
  243. package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/README.en.md +42 -0
  244. package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/index.js +268 -0
  245. package/vendor/components/sha256/e653a4da80f7761442dc5b504ea5b0700fd0acf1979beeff56122cfdb3d4654c/index.js +607 -0
  246. package/vendor/components/sha256/ea217c6821e931b2d8474bf56d38f2dcc89ec705fe1d276f313e1c7e8db2b98a/index.js +233 -0
  247. package/vendor/components/sha256/ea2e4e24838574f607879c7d05556281258c018331e4da3e6f3a5263173f2e99/index.js +75 -0
  248. package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/README.en.md +42 -0
  249. package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/index.js +549 -0
  250. package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/README.en.md +44 -0
  251. package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/index.js +203 -0
  252. package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/README.en.md +34 -0
  253. package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/index.js +244 -0
  254. package/vendor/components/sha256/fa1a09c10181456143d125d68dbbdcacde6bab2e4a2b3e573367103ce28ebf55/index.js +228 -0
  255. package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/README.en.md +51 -0
  256. package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/index.js +228 -0
  257. package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/README.en.md +23 -0
  258. package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/index.js +147 -0
  259. package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/README.en.md +20 -0
  260. package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/index.js +307 -0
  261. package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/README.en.md +26 -0
  262. package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/index.js +322 -0
  263. package/vendor/components-2/manifest-2.12.0.json +2348 -0
  264. package/vendor/components-2/manifest-2.13.0.json +2477 -0
  265. package/vendor/components-2/manifest-2.14.0.json +2460 -0
  266. package/vendor/components-2/manifest-2.14.1.json +2460 -0
  267. package/vendor/components-2/manifest-2.15.0.json +2460 -0
  268. package/vendor/egatari-spec/SOURCE.json +3 -3
  269. package/vendor/egatari-spec/schema/deck-meta.schema.json +16 -1
  270. package/vendor/egatari-spec/schema/egatari-metadata.schema.json +17 -2
@@ -18,12 +18,12 @@ const moreJa = (a) => (a.n > 1 ? ` ほか ${a.n - 1} か所` : '');
18
18
  const moreEn = (a) => (a.n > 1 ? ` and ${a.n - 1} more` : '');
19
19
  // 表紙と章の扉に置ける子要素(kit/layouts.css の .cover・.sec。docs/reference.md「Sections and classes」)。textOffSlide・textOverlap が添える
20
20
  const PLACE_JA = {
21
- cover: '。表紙に置けるのは .venue(会場)・h1(題名)・.au(著者・所属)で、ロゴはテーマが入れる。副題は h1 の 2 行目(<br> のあと)か .venue に書く。ほかの字を足すなら、教材の <style> で position:absolute と top を決めて空いた場所に置く',
22
- sec: '。章の扉に置けるのは h1(章の名前)と .lead(一言)。ほかの字を足すなら、教材の <style> で position:absolute と top を決めて空いた場所に置く',
21
+ cover: '。表紙に置けるのは .venue(会場)・h1(題名)・.au(著者・所属)で、ロゴはテーマが入れる。副題は h1 の 2 行目(<br> のあと)か .venue に書く。ほかの字を追加するなら、deck.html の <style> で position:absolute と top を決めて空いた場所に置く',
22
+ sec: '。章の扉に置けるのは h1(章の名前)と .lead(一言)。ほかの字を追加するなら、deck.html の <style> で position:absolute と top を決めて空いた場所に置く',
23
23
  };
24
24
  const PLACE_EN = {
25
- cover: '; a cover holds .venue (venue), h1 (title) and .au (authors, affiliation), and the theme adds the logos: put a subtitle on a second line of the h1 (after <br>) or in .venue, and place any other text in free space with position:absolute and top in the lesson\'s <style>',
26
- sec: '; a section divider holds h1 (chapter name) and .lead (one line): place any other text in free space with position:absolute and top in the lesson\'s <style>',
25
+ cover: '; a cover holds .venue (venue), h1 (title) and .au (authors, affiliation), and the theme adds the logos: put a subtitle on a second line of the h1 (after <br>) or in .venue, and place any other text in free space with position:absolute and top in the <style> of deck.html',
26
+ sec: '; a section divider holds h1 (chapter name) and .lead (one line): place any other text in free space with position:absolute and top in the <style> of deck.html',
27
27
  };
28
28
  // 図の形の知らせ(R-geometry)の座標:スライドの座標(px)
29
29
  const geoPt = (p) => (Array.isArray(p) ? `${p[0]}, ${p[1]}` : '');
@@ -36,6 +36,18 @@ const geoSides = (px, lang) => {
36
36
  const xs = Object.keys(name).filter((k) => px && px[k] > 0).map((k) => `${name[k]} ${px[k]}px`);
37
37
  return xs.join(lang === 'en' ? ', ' : '・');
38
38
  };
39
+ // 図の端で欠ける辺(geoClippedStroke):「右端で 2px」・"right edge by 2px"
40
+ const geoEdges = (px, lang) => {
41
+ const name = lang === 'en' ? { left: 'left', right: 'right', top: 'top', bottom: 'bottom' } : { left: '左', right: '右', top: '上', bottom: '下' };
42
+ const xs = Object.keys(name).filter((k) => px && px[k] > 0).map((k) => (lang === 'en' ? `${name[k]} edge by ${px[k]}px` : `${name[k]}端で ${px[k]}px`));
43
+ return xs.join(lang === 'en' ? ', ' : '・');
44
+ };
45
+ // id のない形(rect#3):スライドの中で何番目のその種類の要素か
46
+ const geoNth = (id, lang) => {
47
+ const m = /^([a-z]+)#(\d+)$/.exec(String(id || ''));
48
+ if (!m) return '';
49
+ return lang === 'en' ? ` (the ${m[2]}${['th', 'st', 'nd', 'rd'][(m[2] % 100 > 10 && m[2] % 100 < 14) || m[2] % 10 > 3 ? 0 : m[2] % 10]} <${m[1]}> on the slide)` : `(スライドの中の ${m[2]} つ目の <${m[1]}>)`;
50
+ };
39
51
  const WHERE_JA = { slides: 'スライド', narration: '台本', article: '本' }, WHERE_EN = { slides: 'slides', narration: 'script', article: 'book' };
40
52
  const mibOf = (n) => (n / 1048576).toFixed(1) + ' MiB';
41
53
  // 添付(§3.8)の型と条件の言葉
@@ -60,7 +72,7 @@ const stepJa = (s) => (s === 'concl' ? '結論のステップ' : `ステップ $
60
72
  const stepEn = (s) => (s === 'concl' ? 'conclusion step' : `step ${s}`);
61
73
 
62
74
  export function where(lang, { n, id, title, step }) {
63
- if (n === null || n === undefined) return lang === 'en' ? 'Whole lesson' : '教材全体';
75
+ if (n === null || n === undefined) return lang === 'en' ? 'Whole file' : 'ファイル全体';
64
76
  const st = step === null || step === undefined ? '' : (lang === 'en' ? ', ' + stepEn(step) : '、' + stepJa(step));
65
77
  return lang === 'en'
66
78
  ? `Slide ${n}${title ? ` “${title}”` : ''}${id ? ` (${id})` : ''}${st}`
@@ -74,7 +86,7 @@ function driftList(items, lang) {
74
86
  const m = Array.isArray(x.measured) ? (ja ? `本文の下端 ${x.measured[0]}〜${x.field === 'body.floor' ? `ページ番号の上端 ${x.measured[1]}` : x.measured[1]} の間のはず` : `should lie between the body bottom ${x.measured[0]} and ${x.field === 'body.floor' ? `the page number top ${x.measured[1]}` : x.measured[1]}`)
75
87
  : x.field === '--bar-h' ? (ja ? `${x.measured}px、720 − body.floor の ${x.declared}px まで` : `${x.measured}px, at most 720 − body.floor = ${x.declared}px`)
76
88
  : (ja ? `描いた箱は ${x.measured}` : `rendered ${x.measured}`);
77
- const by = x.by === 'deck' ? (ja ? '、教材の CSS' : ', lesson CSS') : (ja ? '、テーマの CSS' : ', theme CSS');
89
+ const by = x.by === 'deck' ? (ja ? '、スライドの CSS' : ', the slides\' CSS') : (ja ? '、テーマの CSS' : ', theme CSS');
78
90
  return x.field === '--bar-h' ? `--bar-h ${m}${by}` : `${x.field} ${x.declared}${ja ? ':' : ': '}${m}${by}`;
79
91
  }).join(ja ? ';' : '; ');
80
92
  }
@@ -82,8 +94,8 @@ function driftHow(a, lang) {
82
94
  const ja = lang === 'ja', theme = (a.items || []).some((x) => x.by !== 'deck'), deck = (a.items || []).some((x) => x.by === 'deck');
83
95
  const t = theme ? (ja ? `テーマの CSS に合う metrics を theme.json に書く(node tools/theme-metrics.mjs measure ${a.theme} が描いた箱の値を出す)か、CSS を宣言に合わせる`
84
96
  : `write metrics in theme.json that match the theme's CSS (node tools/theme-metrics.mjs measure ${a.theme} prints the rendered values), or make the CSS match the declaration`) : '';
85
- const d = deck ? (ja ? '教材の <style> で体裁の箱(.body・.concl・見出し)を動かさない。動かすならテーマで動かし、テーマの metrics に宣言する(教材の CSS では限りは変わらない)'
86
- : 'do not move the layout boxes (.body, .concl, the heading) in the lesson\'s <style>; move them in a theme and declare them in its metrics (lesson CSS does not change the limits)') : '';
97
+ const d = deck ? (ja ? 'deck.html の <style> で体裁の箱(.body・.concl・見出し)を動かさない。動かすならテーマで動かし、テーマの metrics に宣言する(スライドの CSS では限りは変わらない)'
98
+ : 'do not move the layout boxes (.body, .concl, the heading) in the <style> of deck.html; move them in a theme and declare them in its metrics (the slides\' CSS does not change the limits)') : '';
87
99
  return [t, d].filter(Boolean).join(ja ? '。' : '; ');
88
100
  }
89
101
 
@@ -109,11 +121,11 @@ export const MESSAGES = {
109
121
  // 鍵(見出し)の重なり(slide key: …)は R-headings。id の書式・id の重なりは規格の名前なし
110
122
  slideId: { rule: (a) => (/^slide key: /.test(a.msg) ? 'R-headings' : null), ja: (a) => a.msg, en: (a) => a.msg },
111
123
  legacyDataKey: { ja: (a) => `スライドの id「${a.key}」が手書きの data-key で決まっている(${a.line} 行目):<section> に id を付ける(npm run ids)`, en: (a) => `the slide id “${a.key}” comes from a hand-written data-key (line ${a.line}): give the <section> an id (npm run ids)` },
112
- legacyIndex: { ja: (a) => `見出しも id もないので、スライドの id が位置の「${a.key}」になり、スライドを足すと変わる(${a.line} 行目):<section> に id を付ける(npm run ids)`, en: (a) => `no heading and no id, so the slide id is the position “${a.key}” and changes when slides are added (line ${a.line}): give the <section> an id (npm run ids)` },
124
+ legacyIndex: { ja: (a) => `見出しも id もないので、スライドの id が位置の「${a.key}」になり、スライドを挿入すると変わる(${a.line} 行目):<section> に id を付ける(npm run ids)`, en: (a) => `no heading and no id, so the slide id is the position “${a.key}” and changes when slides are inserted (line ${a.line}): give the <section> an id (npm run ids)` },
113
125
  // 1.0 の語彙にない書き方(format spec §8.0。kit/core/legacy-vocab.mjs)。警告だけ
114
126
  legacyColorClass: { ja: (a) => `クラス「${a.what}」は色の名前で、1.0 の語彙にない(${a.n} か所、最初は ${a.line} 行目):意味のクラス「${a.to}」にする(term は用語・問い、emph は結論・問題、muted は既知のこと)`,
115
127
  en: (a) => `the class “${a.what}” names a colour and is not in the 1.0 vocabulary (${a.n} ${plural(a.n, 'place')}, first on line ${a.line}): use the meaning class “${a.to}” (term for terms and questions, emph for conclusions and problems, muted for known results)` },
116
- legacyStepAttr: { ja: (a) => `${a.what} は 1.0 の語彙にない(${a.n} か所、最初は ${a.line} 行目):ステップの数と動きは要素の data-step と data-at、線の class="draw"、パーツの steps から決まる(format spec §8.0)。${a.what} を外す`,
128
+ legacyStepAttr: { ja: (a) => `${a.what} は 1.0 の語彙にない(${a.n} か所、最初は ${a.line} 行目):ステップの数と動きは要素の data-step と data-at、線の class="draw"、パーツの steps から決まる(format spec §8.0)。${a.what} を削除する`,
117
129
  en: (a) => `${a.what} is not in the 1.0 vocabulary (${a.n} ${plural(a.n, 'place')}, first on line ${a.line}): the number of steps and the motion come from data-step and data-at on elements, class="draw" on strokes and the steps of parts (format spec §8.0); remove ${a.what}` },
118
130
  // テーマの色の語彙の外の色(format spec §8.4。kit/core/color-vocab.mjs):じかに書いた色(literal)と、相対色で色相を変えた色(hue)。情報だけ(教材は組める。修正依頼には入らない)
119
131
  colorOutside: { rule: 'R-colors', ja: (a) => (a.kind === 'hue'
@@ -122,72 +134,72 @@ export const MESSAGES = {
122
134
  en: (a) => (a.kind === 'hue'
123
135
  ? `a colour derived by changing the hue (relative colour syntax) is a new colour without a role (${a.n} ${plural(a.n, 'place')}, first on line ${a.line}: ${a.list}); to follow the theme, use the role colour as it is (var(--emph) …); to make it lighter, mix the role with --bg in color-mix(), and when only lightness or opacity changes keep the hue h`
124
136
  : `colours are written directly (${a.n} ${plural(a.n, 'place')}, first on line ${a.line}: ${a.list}); to follow the theme, use its classes (term, emph, muted) or variables var(--fg) var(--term) var(--emph) var(--muted) var(--accent2) var(--line) var(--lit)`) },
125
- legacyLectureMode: { ja: (a) => `<html data-mode="lecture"> は 1.0 の語彙にない(${a.line} 行目):見せ方は再生の設定の「先のステップを薄く見せる」で選ぶ。スライド(deck.html)からは外す`,
137
+ legacyLectureMode: { ja: (a) => `<html data-mode="lecture"> は 1.0 の語彙にない(${a.line} 行目):見せ方は再生の設定の「先のステップを薄く見せる」で選ぶ。スライド(deck.html)からは削除する`,
126
138
  en: (a) => `<html data-mode="lecture"> is not in the 1.0 vocabulary (line ${a.line}): the participant chooses “Show later steps faintly” in the player; remove it from the slides (deck.html)` },
127
139
  narrHeadingDiffers: { rule: 'R-headings', ja: (a) => `narration.md ${a.line} 行目の見出し${quoteJa(a.heading)}がスライドの見出し${quoteJa(a.slide)}と違う({#${a.id}} で対応しているので動きは変わらない)`, en: (a) => `the script heading “${a.heading}” (narration.md line ${a.line}) differs from the slide heading “${a.slide}” (matched by {#${a.id}}, so nothing breaks)` },
128
140
  // ---------------------------------------------------------------- リンク
129
- linkFileMissing: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のファイル ${a.file} が作業フォルダから見つからない:ファイルを置くか、リンクを直す(Egatari ファイル(.ega.html)には入らない)`, en: (a) => `the link “${a.text}” (href="${a.href}") points to ${a.file}, which is not in the working folder: add the file or fix the link (it is not packed into the Egatari file (.ega.html))` },
141
+ linkFileMissing: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のファイル ${a.file} が作業フォルダから見つからない:ファイルを置くか、リンクを修正する(Egatari ファイル(.ega.html)には含まれない)`, en: (a) => `the link “${a.text}” (href="${a.href}") points to ${a.file}, which is not in the working folder: add the file or fix the link (it is not packed into the Egatari file (.ega.html))` },
130
142
  linkEmpty: { ja: (a) => `リンク「${a.text}」(href="${a.href}")に行き先がない(# だけ):href="#<スライドの id>" にする`, en: (a) => `the link “${a.text}” (href="${a.href}") has no target (only #): use href="#<slide id>"` },
131
143
  linkUnknown: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の行き先のスライド「${a.slide}」がない:あるスライドの id(npm run ids で付けたもの)を書く`, en: (a) => `the link “${a.text}” (href="${a.href}") points to slide “${a.slide}”, which does not exist: use an existing slide id (from npm run ids)` },
132
- linkNumberRange: { ja: (a) => `リンク「${a.text}」(href="${a.href}")のスライド ${a.slide} がない(${a.count} 枚):スライドの id で #<id> と書く`, en: (a) => `the link “${a.text}” (href="${a.href}") points to slide ${a.slide}, but the lesson has ${a.count}: link by slide id, #<id>` },
133
- linkNoConcl: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のスライド「${a.slide}」に結論(.concl)のステップがない::concl を外すか、ステップの番号にする`, en: (a) => `the link “${a.text}” (href="${a.href}") asks for the conclusion step of “${a.slide}”, which has none: drop :concl or use a step number` },
144
+ linkNumberRange: { ja: (a) => `リンク「${a.text}」(href="${a.href}")のスライド ${a.slide} がない(${a.count} 枚):スライドの id で #<id> と書く`, en: (a) => `the link “${a.text}” (href="${a.href}") points to slide ${a.slide}, but the file has ${a.count}: link by slide id, #<id>` },
145
+ linkNoConcl: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のスライド「${a.slide}」に結論(.concl)のステップがない::concl を削除するか、ステップの番号にする`, en: (a) => `the link “${a.text}” (href="${a.href}") asks for the conclusion step of “${a.slide}”, which has none: drop :concl or use a step number` },
134
146
  linkStepRange: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のスライド「${a.slide}」にステップ ${a.step} がない(ステップは 0〜${a.max}${a.concl ? '、結論は concl' : ''}):あるステップにする`, en: (a) => `the link “${a.text}” (href="${a.href}") asks for step ${a.step} of “${a.slide}”, which has steps 0–${a.max}${a.concl ? ' and concl' : ''}: use an existing step` },
135
147
  linkBadStep: { ja: (a) => `リンク「${a.text}」(href="${a.href}")のステップの指定「${a.step}」が読めない:使えるステップの指定は 0・1・… と concl`, en: (a) => `the link “${a.text}” (href="${a.href}") has an unreadable step label “${a.step}”: the valid step labels are 0, 1, … and concl` },
136
- linkNumber: { ja: (a) => `リンク「${a.text}」(href="${a.href}")は番号なので、スライドを足すとずれる:スライドの id で #<id> と書く`, en: (a) => `the link “${a.text}” (href="${a.href}") uses a slide number, which shifts when slides are added: link by slide id, #<id>` },
137
- linkNoId: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のスライドに id がなく、見出しを直すと切れる:npm run ids で id を付けて #<id> と書く`, en: (a) => `the link “${a.text}” (href="${a.href}") targets a slide without an id, so it breaks when the heading changes: run npm run ids and link to #<id>` },
148
+ linkNumber: { ja: (a) => `リンク「${a.text}」(href="${a.href}")は番号なので、スライドを挿入するとずれる:スライドの id で #<id> と書く`, en: (a) => `the link “${a.text}” (href="${a.href}") uses a slide number, which shifts when slides are inserted: link by slide id, #<id>` },
149
+ linkNoId: { ja: (a) => `リンク「${a.text}」(href="${a.href}")の先のスライドに id がなく、見出しを編集すると切れる:npm run ids で id を付けて #<id> と書く`, en: (a) => `the link “${a.text}” (href="${a.href}") targets a slide without an id, so it breaks when the heading changes: run npm run ids and link to #<id>` },
138
150
  linkCount: { ja: (a) => `スライドへのリンク:${a.ok} 本(ほかのファイルへ ${a.other} 本)`, en: (a) => `links to slides: ${a.ok} (to other files: ${a.other})` },
139
151
  // ---------------------------------------------------------------- 参照音声(AI 音声が声をまねる元の録音。format spec §5 の recipe。kit/core/ref-voice.mjs)
140
152
  // where:slides(スライドが使う:エクスポートが断る)・audio(audio/manifest.json のステップの音声:入れない)・attachments(添付:入れない)・folder(作業フォルダのほかの所)
141
153
  // 音声が古いステップ(K。format spec §5.4)。v0.6.8 までは code が言葉そのもの('audio: stale — …')だった。頭の「audio: stale — 」は変えない
142
154
  audioStale: {
143
- ja: (a) => `audio: stale — ステップ ${a.k} の音声は今の台本から作ったものではない(${a.kind === 'recorded' ? '録音' : a.kind === 'imported' ? '取り込み' : 'AI 音声'}。編集アプリの「音声」で録り直すか、tts/synth.py で作り直す)`,
155
+ ja: (a) => `audio: stale — ステップ ${a.k} の音声は今の台本から作ったものではない(${a.kind === 'recorded' ? '録音' : a.kind === 'imported' ? '取り込み' : 'AI 音声'}。編集アプリの「音声」で録音し直すか、tts/synth.py で作り直す)`,
144
156
  en: (a) => `audio: stale — the audio of step ${a.k} was not made from the current script (${a.kind === 'recorded' ? 'recorded' : a.kind === 'imported' ? 'imported' : 'AI voice'}; record it again in the editor's “Audio” panel, or make it again with tts/synth.py)`,
145
157
  },
146
158
  refVoice: {
147
- ja: (a) => `参照音声「${a.path}」(voice.json の声の元の録音)が${{ slides: 'スライドで使われている:教材には参照音声を入れないので、Egatari ファイル(.ega.html)へのエクスポートは断る。スライドから外す', audio: ' audio/manifest.json でステップの音声になっている:Egatari ファイル(.ega.html)には入れない(そのステップは音声なし)。その声で作った音声に替える', attachments: '添付の場所(attachments/)にある:Egatari ファイル(.ega.html)には入れない', folder: '作業フォルダの中にある:Egatari ファイル(.ega.html)には入れないが、作業フォルダごと人に渡すと一緒に渡る' }[a.where]}。録音は作業フォルダの外に置き、voice.json にはその場所か名前を書く(教材には、その声で作った音声だけが入る)`,
148
- en: (a) => `the reference voice “${a.path}” (the recording a voice in voice.json imitates) ${{ slides: 'is used by the slides: a lesson does not carry reference voices, so export to an Egatari file (.ega.html) is refused. Remove it from the slides', audio: 'is a step\'s audio in audio/manifest.json: it is left out of the Egatari file (.ega.html) and that step has no audio. Replace it with audio made with the voice', attachments: 'is in the attachments folder (attachments/): it is left out of the Egatari file (.ega.html)', folder: 'is inside the working folder: it is left out of the Egatari file (.ega.html), but goes along if you share the whole working folder' }[a.where]}. Keep the recording outside the working folder and give its location or name in voice.json (a lesson carries only the audio made with the voice)`,
159
+ ja: (a) => `参照音声「${a.path}」(voice.json の声の元の録音)が${{ slides: 'スライドで使われている:Egatari ファイルには参照音声を含めないので、Egatari ファイル(.ega.html)へのエクスポートは断る。スライドから削除する', audio: ' audio/manifest.json でステップの音声になっている:Egatari ファイル(.ega.html)には含めない(そのステップは音声なし)。その声で作った音声に置き換える', attachments: '添付の場所(attachments/)にある:Egatari ファイル(.ega.html)には含めない', folder: '作業フォルダの中にある:Egatari ファイル(.ega.html)には含めないが、作業フォルダごと人に渡すと一緒に渡る' }[a.where]}。録音は作業フォルダの外に置き、voice.json にはその場所か名前を書く(Egatari ファイルには、その声で作った音声だけが含まれる)`,
160
+ en: (a) => `the reference voice “${a.path}” (the recording a voice in voice.json imitates) ${{ slides: 'is used by the slides: an Egatari file does not carry reference voices, so export to an Egatari file (.ega.html) is refused. Remove it from the slides', audio: 'is a step\'s audio in audio/manifest.json: it is left out of the Egatari file (.ega.html) and that step has no audio. Replace it with audio made with the voice', attachments: 'is in the attachments folder (attachments/): it is left out of the Egatari file (.ega.html)', folder: 'is inside the working folder: it is left out of the Egatari file (.ega.html), but goes along if you share the whole working folder' }[a.where]}. Keep the recording outside the working folder and give its location or name in voice.json (an Egatari file carries only the audio made with the voice)`,
149
161
  },
150
162
  // ---------------------------------------------------------------- 添付(attachments/。format spec §3.8)
151
- extensionVersion: { ja: (a) => `拡張 ${a.name} の v${a.v} には未対応(対応は v${a.supported}):拡張を使わず、そのまま残す。使うには対応するバージョンで開く`, en: (a) => `extension ${a.name} v${a.v} is not supported (implements v${a.supported}): ignore and preserve it; open in a supporting version to use it` },
163
+ extensionVersion: { ja: (a) => `拡張 ${a.name} の v${a.v} には未対応(対応は v${a.supported}):拡張を使わず、そのまま保持する。使うには対応するバージョンで開く`, en: (a) => `extension ${a.name} v${a.v} is not supported (implements v${a.supported}): ignore and preserve it; open in a supporting version to use it` },
152
164
  attachBadConfig: { ja: (a) => `egatari.json の attachments が読めない(${a.why}):[{"path": "attachments/…", "role": "pdf", "title": "…"}] の形にする`, en: (a) => `attachments in egatari.json cannot be read (${a.why}): use [{"path": "attachments/…", "role": "pdf", "title": "…"}]` },
153
165
  attachBadName: { ja: (a) => `添付「${a.path}」の名前は使えない(${a.why}):attachments/ の下の、ふつうの名前(.. ・ \\ ・ : * ? " < > | ・制御文字・末尾の点や空白・CON などの予約名なし)にする`, en: (a) => `the attachment name “${a.path}” is not allowed (${a.why}): use a plain name under attachments/ (no .., \\, : * ? " < > |, control characters, trailing dot or space, or reserved names such as CON)` },
154
- attachExcluded: { ja: (a) => `添付「${a.path}」は Egatari ファイル(.ega.html)に入らない(${a.why}):入れるなら名前を替える`, en: (a) => `the attachment “${a.path}” is left out of the Egatari file (.ega.html) (${a.why}): rename it to include it` },
166
+ attachExcluded: { ja: (a) => `添付「${a.path}」は Egatari ファイル(.ega.html)に含まれない(${a.why}):含めるなら名前を変更する`, en: (a) => `the attachment “${a.path}” is left out of the Egatari file (.ega.html) (${a.why}): rename it to include it` },
155
167
  attachDuplicate: { ja: (a) => `添付「${a.path}」が egatari.json に 2 度書いてある(「${a.other}」と同じ。大文字小文字は区別しない):1 つにする`, en: (a) => `the attachment “${a.path}” is listed twice in egatari.json (same as “${a.other}”, ignoring case): keep one entry` },
156
- attachBadRole: { ja: (a) => `添付「${a.path}」の役割「${a.role}」は使えない:source・pdf・code・data・supplement のどれかにする(読み手の一覧に出ない)`, en: (a) => `the attachment “${a.path}” has the role “${a.role}”: use source, pdf, code, data or supplement (it is not listed for readers)` },
157
- attachBadTitle: { ja: (a) => `添付「${a.path}」の題(title)が使えない${a.why ? `(${a.why})` : ''}:${a.max} 字までの 1 行にする(Egatari ファイルには入るが、読み手の一覧に出ない)`, en: (a) => `the title of the attachment “${a.path}” cannot be used${a.why ? ` (${a.why})` : ''}: use one line of at most ${a.max} characters (it is packed into the Egatari file but not listed for readers)` },
158
- attachMissing: { ja: (a) => `egatari.json の添付「${a.path}」のファイルがない:attachments/ に置くか、項目を消す`, en: (a) => `the attachment “${a.path}” in egatari.json does not exist: put the file in attachments/ or remove the entry` },
159
- attachNoRole: { ja: (a) => `添付「${a.path}」に役割がない:egatari.json の attachments に {"path": "${a.path}", "role": "pdf"}(source・pdf・code・data・supplement)を書く(Egatari ファイルには入るが、読み手の一覧に出ない)`, en: (a) => `the attachment “${a.path}” has no role: add {"path": "${a.path}", "role": "pdf"} (source, pdf, code, data or supplement) to attachments in egatari.json (it is packed into the Egatari file but not listed for readers)` },
160
- attachNoTitle: { ja: (a) => `添付「${a.path}」に題(title)がない:egatari.json の attachments の項目に "title": "…"(ダウンロードの一覧に出す短い名前)を書く(題は要る。Egatari ファイルには入るが、読み手の一覧に出ない)`, en: (a) => `the attachment “${a.path}” has no title: add "title": "…" (a short name for the download list) to its entry in egatari.json (a title is required; it is packed into the Egatari file but not listed for readers)` },
161
- attachMedia: { ja: (a) => `添付「${a.path}」は${a.kind === 'video' ? '動画' : '音声'}(${a.by === 'content' ? '中身' : '名前'}から):音声と動画は添付にできない(Egatari ファイルに入らない)。教材で鳴らすならスライド(deck.html)から参照する`, en: (a) => `the attachment “${a.path}” is ${a.kind === 'video' ? 'a video' : 'audio'} (by its ${a.by === 'content' ? 'content' : 'name'}): audio and video cannot be attached (it is not packed into the Egatari file); reference it from the slides (deck.html) if the lesson plays it` },
162
- attachType: { ja: (a) => a.role ? `添付「${a.path}」(.${a.ext})は役割「${ROLE_JA[a.role] || a.role}」に入れられない(§3.8。この役割は ${ROLE_ALLOWED.ja[a.role] || '?'}):役割を替えるか、許される形式にする(Egatari ファイルに入らない)` : `添付「${a.path}」(.${a.ext})は添付にできない形式(§3.8 の役割ごとの形式のどれでもない):PDF・CSV・テキスト・画像(PNG・JPEG・WebP)などにする(Egatari ファイルに入らない)`,
168
+ attachBadRole: { ja: (a) => `添付「${a.path}」の役割「${a.role}」は使えない:source・pdf・code・data・supplement のどれかにする(読み手の一覧に表示されない)`, en: (a) => `the attachment “${a.path}” has the role “${a.role}”: use source, pdf, code, data or supplement (it is not listed for readers)` },
169
+ attachBadTitle: { ja: (a) => `添付「${a.path}」の題(title)が使えない${a.why ? `(${a.why})` : ''}:${a.max} 字までの 1 行にする(Egatari ファイルには含まれるが、読み手の一覧に表示されない)`, en: (a) => `the title of the attachment “${a.path}” cannot be used${a.why ? ` (${a.why})` : ''}: use one line of at most ${a.max} characters (it is packed into the Egatari file but not listed for readers)` },
170
+ attachMissing: { ja: (a) => `egatari.json の添付「${a.path}」のファイルがない:attachments/ に置くか、項目を削除する`, en: (a) => `the attachment “${a.path}” in egatari.json does not exist: put the file in attachments/ or remove the entry` },
171
+ attachNoRole: { ja: (a) => `添付「${a.path}」に役割がない:egatari.json の attachments に {"path": "${a.path}", "role": "pdf"}(source・pdf・code・data・supplement)を書く(Egatari ファイルには含まれるが、読み手の一覧に表示されない)`, en: (a) => `the attachment “${a.path}” has no role: add {"path": "${a.path}", "role": "pdf"} (source, pdf, code, data or supplement) to attachments in egatari.json (it is packed into the Egatari file but not listed for readers)` },
172
+ attachNoTitle: { ja: (a) => `添付「${a.path}」に題(title)がない:egatari.json の attachments の項目に "title": "…"(ダウンロードの一覧に表示する短い名前)を書く(題は必須。Egatari ファイルには含まれるが、読み手の一覧に表示されない)`, en: (a) => `the attachment “${a.path}” has no title: add "title": "…" (a short name for the download list) to its entry in egatari.json (a title is required; it is packed into the Egatari file but not listed for readers)` },
173
+ attachMedia: { ja: (a) => `添付「${a.path}」は${a.kind === 'video' ? '動画' : '音声'}(${a.by === 'content' ? '中身' : '名前'}から):音声と動画は添付にできない(Egatari ファイルに含まれない)。ファイルで鳴らすならスライド(deck.html)から参照する`, en: (a) => `the attachment “${a.path}” is ${a.kind === 'video' ? 'a video' : 'audio'} (by its ${a.by === 'content' ? 'content' : 'name'}): audio and video cannot be attached (it is not packed into the Egatari file); reference it from the slides (deck.html) if the file plays it` },
174
+ attachType: { ja: (a) => a.role ? `添付「${a.path}」(.${a.ext})は役割「${ROLE_JA[a.role] || a.role}」に含められない(§3.8。この役割は ${ROLE_ALLOWED.ja[a.role] || '?'}):役割を変更するか、許される形式にする(Egatari ファイルに含まれない)` : `添付「${a.path}」(.${a.ext})は添付にできない形式(§3.8 の役割ごとの形式のどれでもない):PDF・CSV・テキスト・画像(PNG・JPEG・WebP)などにする(Egatari ファイルに含まれない)`,
163
175
  en: (a) => a.role ? `the attachment “${a.path}” (.${a.ext}) is not allowed for the role ${a.role} (§3.8; this role takes ${ROLE_ALLOWED.en[a.role] || '?'}): change the role or the format (it is not packed into the Egatari file)` : `the attachment “${a.path}” (.${a.ext}) is not a format that may be attached (none of the formats of §3.8): use PDF, CSV, text, images (PNG, JPEG, WebP) and so on (it is not packed into the Egatari file)` },
164
- attachForbidden: { ja: (a) => `添付「${a.path}」は${FORBID.ja[a.kind] || a.kind}(${a.by === 'content' ? '中身' : '名前'}から):§3.8 では添付にできない(開くと動くもの・入れ物は入れない。Egatari ファイルに入らない)`,
176
+ attachForbidden: { ja: (a) => `添付「${a.path}」は${FORBID.ja[a.kind] || a.kind}(${a.by === 'content' ? '中身' : '名前'}から):§3.8 では添付にできない(開くと動くもの・入れ物は含めない。Egatari ファイルに含まれない)`,
165
177
  en: (a) => `the attachment “${a.path}” is ${FORBID.en[a.kind] || a.kind} (by its ${a.by === 'content' ? 'content' : 'name'}): §3.8 does not allow it (nothing that runs when opened, no containers; it is not packed into the Egatari file)` },
166
- attachMismatch: { ja: (a) => `添付「${a.path}」の中身が名前の形式(${a.kind})と合わない${a.actual ? `(中身は ${a.actual})` : ''}${a.why ? `(${a.why})` : ''}:§3.8 では中身と形式が合うものだけを入れる。正しいファイルにする(Egatari ファイルに入らない)`,
178
+ attachMismatch: { ja: (a) => `添付「${a.path}」の中身が名前の形式(${a.kind})と合わない${a.actual ? `(中身は ${a.actual})` : ''}${a.why ? `(${a.why})` : ''}:§3.8 では中身と形式が合うものだけを含める。正しいファイルにする(Egatari ファイルに含まれない)`,
167
179
  en: (a) => `the content of the attachment “${a.path}” does not match its format (${a.kind})${a.actual ? ` (it looks like ${a.actual})` : ''}${a.why ? ` (${a.why})` : ''}: §3.8 takes only files whose content matches their type; use the right file (it is not packed into the Egatari file)` },
168
- attachPolyglot: { ja: (a) => `添付「${a.path}」はほかの形式(${a.also})を重ねたファイル:§3.8 では添付にできない。元のアプリでエクスポートし直す(Egatari ファイルに入らない)`,
180
+ attachPolyglot: { ja: (a) => `添付「${a.path}」はほかの形式(${a.also})を重ねたファイル:§3.8 では添付にできない。元のアプリでエクスポートし直す(Egatari ファイルに含まれない)`,
169
181
  en: (a) => `the attachment “${a.path}” is also ${a.also} (a file of two types): §3.8 does not allow it; export it again from the app that made it (it is not packed into the Egatari file)` },
170
- attachUnsafe: { ja: (a) => `添付「${a.path}」:${UNSAFE.ja[a.what] || a.what}${a.detail ? `(${a.detail})` : ''}。§3.8 の条件に合わない:それを除いて保存し直す(PDF は印刷し直す・Office はマクロや外の参照を外す)(Egatari ファイルに入らない)`,
182
+ attachUnsafe: { ja: (a) => `添付「${a.path}」:${UNSAFE.ja[a.what] || a.what}${a.detail ? `(${a.detail})` : ''}。§3.8 の条件に合わない:それを除いて保存し直す(PDF は印刷し直す・Office はマクロや外の参照を除く)(Egatari ファイルに含まれない)`,
171
183
  en: (a) => `the attachment “${a.path}”: ${UNSAFE.en[a.what] || a.what}${a.detail ? ` (${a.detail})` : ''}, which §3.8 does not allow: save it again without that (print the PDF again; remove macros or external references in Office) (it is not packed into the Egatari file)` },
172
- attachUnchecked: { ja: (a) => `添付「${a.path}」は中身を確かめられない(${a.why}):§3.8 では確かめられないものは入れない。暗号化や特別な圧縮を外して保存し直す(Egatari ファイルに入らない)`,
184
+ attachUnchecked: { ja: (a) => `添付「${a.path}」は中身を確認できない(${a.why}):§3.8 では確認できないものは含めない。暗号化や特別な圧縮を解除して保存し直す(Egatari ファイルに含まれない)`,
173
185
  en: (a) => `the attachment “${a.path}” cannot be checked (${a.why}): §3.8 attachments are checked before packing; save it again without encryption or unusual compression (it is not packed into the Egatari file)` },
174
- attachInjection: { ja: (a) => `添付「${a.path}」の ${a.n} 個の値が = + - @ やタブで始まり、表計算のソフトで数式として読まれうる${a.row ? `(最初は ${a.row} 行 ${a.col} 列)` : a.where ? `(${a.where})` : ''}:意図したものか確かめる(入れる)`,
186
+ attachInjection: { ja: (a) => `添付「${a.path}」の ${a.n} 個の値が = + - @ やタブで始まり、表計算のソフトで数式として読まれうる${a.row ? `(最初は ${a.row} 行 ${a.col} 列)` : a.where ? `(${a.where})` : ''}:意図したものか確認する(含める)`,
175
187
  en: (a) => `${a.n} ${plural(a.n, 'value')} in the attachment “${a.path}” ${a.n === 1 ? 'starts' : 'start'} with = + - @ or a tab and may be read as formulas by a spreadsheet${a.row ? ` (first at row ${a.row}, column ${a.col})` : a.where ? ` (in ${a.where})` : ''}: check that this is intended (it is packed)` },
176
- attachPrivate: { ja: (a) => `添付「${a.path}」に${({ 'private key': '秘密鍵', 'access key': 'アクセスキー', 'password or token': 'パスワードかトークン', 'device-specific path': 'この端末のパス' })[a.what] || a.what}らしい文字がある:配る前に確かめて消す(入れる)`,
188
+ attachPrivate: { ja: (a) => `添付「${a.path}」に${({ 'private key': '秘密鍵', 'access key': 'アクセスキー', 'password or token': 'パスワードかトークン', 'device-specific path': 'この端末のパス' })[a.what] || a.what}らしい文字がある:配布する前に確認して削除する(含める)`,
177
189
  en: (a) => `the attachment “${a.path}” seems to contain a ${({ 'device-specific path': 'path specific to this device' })[a.what] || a.what}: check and remove it before sharing (it is packed)` },
178
- attachBadDescription: { ja: (a) => `添付「${a.path}」の説明(description)が使えない(${a.why}):${a.max} 字までの 1〜2 文(改行なし)にする(説明なしで一覧に出す)`,
190
+ attachBadDescription: { ja: (a) => `添付「${a.path}」の説明(description)が使えない(${a.why}):${a.max} 字までの 1〜2 文(改行なし)にする(説明なしで一覧に表示する)`,
179
191
  en: (a) => `the description of the attachment “${a.path}” cannot be used (${a.why}): write one or two sentences, at most ${a.max} characters, without line breaks (listed without it)` },
180
- attachTooLarge: { ja: (a) => `添付「${a.path}」が大きすぎる(${mibOf(a.n)}。1 つ ${mibOf(a.max)} まで):小さくするか、別の場所で配る(Egatari ファイルに入らない)`, en: (a) => `the attachment “${a.path}” is too large (${mibOf(a.n)}; at most ${mibOf(a.max)} each): make it smaller or share it elsewhere (it is not packed into the Egatari file)` },
181
- attachTotal: { ja: (a) => `添付を合わせると大きすぎる(「${a.path}」で ${mibOf(a.n)}。合わせて ${mibOf(a.max)} まで):減らす(この添付から後は Egatari ファイルに入らない)`, en: (a) => `the attachments are too large together (${mibOf(a.n)} with “${a.path}”; at most ${mibOf(a.max)}): remove some (this one and later ones are not packed into the Egatari file)` },
182
- attachCount: { ja: (a) => `添付が多すぎる(${a.max} 個まで):「${a.path}」は Egatari ファイルに入らない`, en: (a) => `too many attachments (at most ${a.max}): “${a.path}” is not packed into the Egatari file` },
183
- attachList: { ja: (a) => `添付:${a.n} 個(${a.size}。読み手の一覧に ${a.listed} 個)。Egatari ファイル(.ega.html)の再生ではダウンロードだけで、再生専用(--play-only)には入らない`, en: (a) => `attachments: ${a.n} (${a.size}; ${a.listed} listed for readers). In the Egatari file (.ega.html) they are download-only; play-only files (--play-only) do not carry them` },
192
+ attachTooLarge: { ja: (a) => `添付「${a.path}」が大きすぎる(${mibOf(a.n)}。1 つ ${mibOf(a.max)} まで):小さくするか、別の場所で配布する(Egatari ファイルに含まれない)`, en: (a) => `the attachment “${a.path}” is too large (${mibOf(a.n)}; at most ${mibOf(a.max)} each): make it smaller or share it elsewhere (it is not packed into the Egatari file)` },
193
+ attachTotal: { ja: (a) => `添付を合わせると大きすぎる(「${a.path}」で ${mibOf(a.n)}。合わせて ${mibOf(a.max)} まで):減らす(この添付から後は Egatari ファイルに含まれない)`, en: (a) => `the attachments are too large together (${mibOf(a.n)} with “${a.path}”; at most ${mibOf(a.max)}): remove some (this one and later ones are not packed into the Egatari file)` },
194
+ attachCount: { ja: (a) => `添付が多すぎる(${a.max} 個まで):「${a.path}」は Egatari ファイルに含まれない`, en: (a) => `too many attachments (at most ${a.max}): “${a.path}” is not packed into the Egatari file` },
195
+ attachList: { ja: (a) => `添付:${a.n} 個(${a.size}。読み手の一覧に ${a.listed} 個)。Egatari ファイル(.ega.html)の再生ではダウンロードだけで、再生専用(--play-only)には含まれない`, en: (a) => `attachments: ${a.n} (${a.size}; ${a.listed} listed for readers). In the Egatari file (.ega.html) they are download-only; play-only files (--play-only) do not carry them` },
184
196
  // ---------------------------------------------------------------- 体裁(はみ出し・字数・表記)
185
197
  kickerLong: { rule: 'R-headings', ja: (a) => `肩見出しが長い(${a.n} ${a.latin ? '文字' : '字分'}。${a.latin ? 'ラテン文字は 40 文字まで' : '24 字分まで。全角 1・半角 0.5'}):${quoteJa(a.t)}を短くする`, en: (a) => `the kicker has ${a.n} ${a.latin ? 'characters' : 'units'}, over ${a.max} (${a.latin ? 'Latin script' : 'full-width 1, ASCII 0.5'}): shorten “${a.t}”` },
186
198
  kickerPlace: { rule: 'R-headings', ja: () => '肩見出し(.kicker)はスライドに 1 つだけ、見出しの直前に置く', en: () => 'place just one kicker (.kicker) per slide, immediately before the heading' },
187
199
  cautionEmpty: { rule: 'R-caution', ja: () => '注意・警告の枠(.caution)にラベル以外の本文を書く', en: () => 'write body text besides the label in the caution or warning box (.caution)' },
188
- cautionLabel: { rule: 'R-caution', ja: () => '注意・警告のラベルはビルドが付けるので、枠の先頭に書いたラベルを消す', en: () => 'remove the label written at the start of the caution or warning box; the build adds it' },
200
+ cautionLabel: { rule: 'R-caution', ja: () => '注意・警告のラベルはビルドが付けるので、枠の先頭に書いたラベルを削除する', en: () => 'remove the label written at the start of the caution or warning box; the build adds it' },
189
201
  kickerSlide: { rule: 'R-headings', ja: () => '表紙・章の扉・縦書きのスライド(layout-tate)には肩見出し(.kicker)を置かない', en: () => 'do not use a kicker (.kicker) on a cover, chapter divider or vertical slide (layout-tate)' },
190
- titleLong: { rule: 'R-title', ja: (a) => `見出しが ${a.n} 字で長い(26 字まで。全角 1・半角 0.5):${quoteJa(a.t)}を短くするか、要点を結論の行に移す`, en: (a) => `the heading has ${a.n} units, over 26 (full-width 1, ASCII 0.5): shorten “${a.t}” or move the point to the conclusion line` },
202
+ titleLong: { rule: 'R-title', ja: (a) => `見出しが ${a.n} 字で長い(26 字まで。全角 1・半角 0.5):${quoteJa(a.t)}を短くするか、要点を結論の行に移動する`, en: (a) => `the heading has ${a.n} units, over 26 (full-width 1, ASCII 0.5): shorten “${a.t}” or move the point to the conclusion line` },
191
203
  titleLongEn: { rule: 'R-title', ja: (a) => `見出しが ${a.n} 文字で長い(英文は 60 文字まで):${quoteJa(a.t)}を短くする`, en: (a) => `the heading has ${a.n} characters, over 60: shorten “${a.t}”` },
192
204
  titleColon: { rule: 'R-title', ja: (a) => `見出し${quoteJa(a.t)}がコロンで終わっている:コロンを取り、見出しだけで言い切る`, en: (a) => `the heading “${a.t}” ends with a colon: remove it and let the heading stand on its own` },
193
205
  tateTitle: { rule: 'R-title', ja: (a) => `縦組みの見出しが列に収まらない(${a.h}px > ${a.max}px。14 字ほどまで):見出しを短くする`, en: (a) => `the vertical heading does not fit its column (${a.h}px > ${a.max}px, about 14 characters): shorten it` },
@@ -207,41 +219,45 @@ export const MESSAGES = {
207
219
  ja: (a) => `テーマ「${a.theme}」の${a.declared ? '寸法の宣言(theme.json の metrics)と描いた体裁の箱が違う' : '体裁の箱が既定の位置から動いているのに、寸法の宣言(theme.json の metrics)がない'}(${driftList(a.items, 'ja')})。本文の場所の限りは${a.declared ? '宣言' : '既定'}の値で決めるので、はみ出しの指摘がずれる:${driftHow(a, 'ja')}`,
208
220
  en: (a) => `the theme “${a.theme}” ${a.declared ? 'renders its layout boxes differently from its declared geometry (metrics in theme.json)' : 'moves layout boxes from their default positions but declares no geometry (metrics in theme.json)'} (${driftList(a.items, 'en')}). The body limits come from the ${a.declared ? 'declared' : 'default'} values, so overflow findings may be off: ${driftHow(a, 'en')}` },
209
221
  metricsFontLoad: {
210
- ja: (a) => `テーマ「${a.theme}」の寸法と描いた箱を比べなかった:同梱のフォント(${(a.fonts || []).join('・')})が読み込めず、代わりのフォントでは測らないため(themeMetricsDrift を確かめていない):npm ci か node tools/get-fonts.mjs でフォントをそろえて再ビルドするか、テーマの --font-sans に同梱のフォントを入れる`,
222
+ ja: (a) => `テーマ「${a.theme}」の寸法と描いた箱を比べなかった:同梱のフォント(${(a.fonts || []).join('・')})が読み込めず、代わりのフォントでは測らないため(themeMetricsDrift を確認していない):npm ci か node tools/get-fonts.mjs でフォントをそろえて再ビルドするか、テーマの --font-sans に同梱のフォントを指定する`,
211
223
  en: (a) => `the theme “${a.theme}” was not compared with its rendered boxes: the bundled fonts (${(a.fonts || []).join(', ')}) did not load, and a fallback font is never measured (themeMetricsDrift was not checked): restore the fonts (npm ci or node tools/get-fonts.mjs) and rebuild, or put a bundled font in the theme's --font-sans` },
212
224
  themeMetricsInvalid: {
213
- ja: (a) => `テーマ「${a.theme}」の寸法の宣言(theme.json の metrics)に使えない値がある:${a.list.join(';')}。その値の代わりに親のテーマ(なければ既定)の値で品質チェックした:theme.json の metrics を直す(docs/contract.md §12、node tools/theme-metrics.mjs measure <テーマ> で描いた箱の値を出せる)`,
225
+ ja: (a) => `テーマ「${a.theme}」の寸法の宣言(theme.json の metrics)に使えない値がある:${a.list.join(';')}。その値の代わりに親のテーマ(なければ既定)の値で品質チェックした:theme.json の metrics を修正する(docs/contract.md §12、node tools/theme-metrics.mjs measure <テーマ> で描いた箱の値を出せる)`,
214
226
  en: (a) => `the theme “${a.theme}” declares geometry (metrics in theme.json) that cannot be used: ${a.list.join('; ')}. The quality check used the parent theme's (or the default) values instead: fix metrics in theme.json (docs/contract.md §12; node tools/theme-metrics.mjs measure <theme> prints the rendered values)` },
215
227
  fontsExtraMissing: {
216
- ja: (a) => `フォント(${(a.fonts || []).join('・')})は別のパッケージ ${a.pkg} にあり、入っていないのでファイルに入らない(開く端末のフォントで出る):${a.install} で入れて再ビルドする(npx なら npx -p egatari -p ${a.pkg} egatari …)。または既定のフォントのテーマにする`,
228
+ ja: (a) => `フォント(${(a.fonts || []).join('・')})は別のパッケージ ${a.pkg} にあり、インストールされていないのでファイルに含まれない(開く端末のフォントで表示される):${a.install} でインストールして再ビルドする(npx なら npx -p egatari -p ${a.pkg} egatari …)。または既定のフォントのテーマにする`,
217
229
  en: (a) => `the fonts (${(a.fonts || []).join(', ')}) are in the separate package ${a.pkg}, which is not installed, so they are not embedded (each device shows its own font): install it with ${a.install} and build again (with npx: npx -p egatari -p ${a.pkg} egatari …), or use a theme with the default fonts` },
218
230
  // 埋め込んだ字体のどれにもない字(kit/core/font-coverage.mjs。#178 (4))。where:slides | narration | article
219
231
  fontNotCovered: {
220
- ja: (a) => `ファイルのフォントにない字があります(${(a.groups || []).map((g) => `${WHERE_JA[g.where] || g.where}:${g.chars}`).join('、')})。この字は開く端末のフォントで表示されるので、端末によって見え方が変わります:どの端末でも同じに見せるには、フォントにある字に替える(∎ なら □ や ■、記号なら式の中に書く)`,
232
+ ja: (a) => `ファイルのフォントにない字があります(${(a.groups || []).map((g) => `${WHERE_JA[g.where] || g.where}:${g.chars}`).join('、')})。この字は開く端末のフォントで表示されるので、端末によって見え方が変わります:どの端末でも同じに見せるには、フォントにある字に変更する(∎ なら □ や ■、記号なら式の中に書く)`,
221
233
  en: (a) => `Some characters are not in the file's fonts (${(a.groups || []).map((g) => `${WHERE_EN[g.where] || g.where}: ${g.chars}`).join('; ')}). They show in the font of the device that opens the file, so they look different on each device: to look the same everywhere, use characters the fonts have (for ∎, □ or ■; for symbols, write them in math)` },
222
234
  fontNotEmbedded: {
223
- ja: (a) => `ファイルに入っていないフォントです(${(a.fonts || []).join('・')})。開く端末によって見え方が変わります:どの端末でも同じに見せるには、ファイルに入るフォント(docs/reference.ja.md「フォント」の一覧)から選ぶ`,
235
+ ja: (a) => `ファイルに入っていないフォントです(${(a.fonts || []).join('・')})。開く端末によって見え方が変わります:どの端末でも同じに見せるには、ファイルに含められるフォント(docs/reference.ja.md「フォント」の一覧)から選ぶ`,
224
236
  en: (a) => `This font is not embedded in the file (${(a.fonts || []).join(', ')}), so it looks different on each device: to look the same everywhere, choose a font that goes into the file (the list in docs/reference.md, “Fonts”)` },
225
237
  secHeading: { ja: (a) => `章の扉の題が h2 で書かれている(${quoteJa(a.t)}):章の扉(<section class="slide sec">)の題は h1 にする`, en: (a) => `the chapter divider's title is written with h2 (“${a.t}”): write the title of a divider (<section class="slide sec">) as h1` },
226
- textContrast: { rule: 'R-colors', ja: (a) => `字と地のコントラストが低い(${a.ratio}:1 < ${a.min}:1、<${a.tag}>「${a.t}」):テーマの色に戻す(スライドに書いた色・地の色を消し、テーマの class と変数だけを使う)`, en: (a) => `low contrast between text and background (${a.ratio}:1 < ${a.min}:1, <${a.tag}> “${a.t}”): go back to the theme colors (remove colors and backgrounds written on the slide; use only theme classes and variables)` },
238
+ textContrast: { rule: 'R-colors', ja: (a) => `字と地のコントラストが低い(${a.ratio}:1 < ${a.min}:1、<${a.tag}>「${a.t}」):テーマの色に戻す(スライドに書いた色・地の色を削除し、テーマの class と変数だけを使う)`, en: (a) => `low contrast between text and background (${a.ratio}:1 < ${a.min}:1, <${a.tag}> “${a.t}”): go back to the theme colors (remove colors and backgrounds written on the slide; use only theme classes and variables)` },
227
239
  smallText: { rule: 'R-fit', ja: (a) => `字が小さい(${a.px}px:「${a.t}」。本文は 27px、表・図は 24px から):font-size を書かず既定の大きさに戻し、入らなければスライドを分ける`, en: (a) => `text is too small (${a.px}px: “${a.t}”; body text needs 27px, tables and figures 24px): remove the font-size and split the slide if it does not fit` },
228
240
  smallSvgText: { rule: 'R-fit', ja: (a) => `図の中の字が小さい(${a.px}px、24px から):字を 24px 以上に上げる。その場の <svg> なら viewBox を表示する画素で書く(viewBox の幅 = 表示の幅)か、font-size を 24 × viewBox の幅 ÷ 表示の幅 以上にする`, en: (a) => `text inside a figure is too small (${a.px}px, at least 24px): raise it to 24px or more; for an inline <svg>, write the viewBox in the pixels it is shown at (viewBox width = displayed width) or use font-size ≥ 24 × viewBox width ÷ displayed width` },
229
241
  // 切れる字・外に出る字(kit/core/layout-scan.mjs。警告)。わざと切るところは要素に印(CLIP_ATTR)を付けると見ない
230
242
  textClipped: { rule: 'R-fit', ja: (a) => `字が箱で切れている(「${a.t}」${moreJa(a)}、${a.px}px):箱(overflow が hidden など)を大きくするか、字を減らすか、スライドを分ける。わざと切って見せるなら、その要素に ${CLIP_ATTR} を付ける`, en: (a) => `text is cut off by its box (“${a.t}”${moreEn(a)}, ${a.px}px): make the box (overflow hidden or similar) larger, cut the text or split the slide; if the clipping is intended, add ${CLIP_ATTR} to that element` },
231
243
  svgTextOut: { rule: 'R-fit',
232
- ja: (a) => (a.edge === 'viewBox' ? `図の字が SVG の枠(viewBox)で切れている(「${a.t}」${moreJa(a)}、${a.px}px):viewBox を広げるか、字を枠の内に置く` : `図の字がスライドの外に出る(「${a.t}」${moreJa(a)}、${a.px}px):パーツや図を小さくするか位置を直すか、ラベルを短くする`),
244
+ ja: (a) => (a.edge === 'viewBox' ? `図の字が SVG の枠(viewBox)で切れている(「${a.t}」${moreJa(a)}、${a.px}px):viewBox を広げるか、字を枠の内に置く` : `図の字がスライドの外に出る(「${a.t}」${moreJa(a)}、${a.px}px):パーツや図を小さくするか位置を修正するか、ラベルを短くする`),
233
245
  en: (a) => (a.edge === 'viewBox' ? `text in a figure is cut off by its SVG viewport (viewBox) (“${a.t}”${moreEn(a)}, ${a.px}px): widen the viewBox or move the text inside it` : `text in a figure goes off the slide (“${a.t}”${moreEn(a)}, ${a.px}px): make the part or figure smaller, move it, or shorten the label`) },
234
246
  svgTextBox: { rule: 'R-fit', ja: (a) => `図の字がラベルの枠からはみ出す(「${a.t}」${moreJa(a)}、${a.px}px):ラベルを短くするか改行するか、枠を広げる(m-flow なら w を大きくする)`, en: (a) => `text in a figure overflows its label frame (“${a.t}”${moreEn(a)}, ${a.px}px): shorten the label, break it into lines, or widen the frame (in m-flow, a larger w)` },
235
247
  outsideBody: { rule: 'R-fit',
236
- ja: (a) => `本文(.body)の外に置いた字が${{ slide: `スライドの外に出る(${a.px}px)`, title: '見出しに重なる', concl: '結論の行に重なる', pn: 'ページ番号に重なる' }[a.why] || 'はみ出す'}(「${a.t}」${moreJa(a)}):本文の中に置くか、位置を直す`,
248
+ ja: (a) => `本文(.body)の外に置いた字が${{ slide: `スライドの外に出る(${a.px}px)`, title: '見出しに重なる', concl: '結論の行に重なる', pn: 'ページ番号に重なる' }[a.why] || 'はみ出す'}(「${a.t}」${moreJa(a)}):本文の中に置くか、位置を修正する`,
237
249
  en: (a) => `text placed outside the body (.body) ${{ slide: `goes off the slide (${a.px}px)`, title: 'overlaps the heading', concl: 'overlaps the conclusion line', pn: 'overlaps the page number' }[a.why] || 'overflows'} (“${a.t}”${moreEn(a)}): put it inside the body or fix its position` },
238
250
  // パーツの直下の <svg> がパーツの要素の箱から出る(backlog #208)。a:tag・index・label(compName)・px・n
239
251
  partSvgOut: { rule: 'R-fit',
240
252
  ja: (a) => `${compName(a, true)}の図(いちばん外側の <svg>)がパーツの箱からはみ出す(${a.px}px${moreJa(a)}):パーツのコードで、その <svg> に width と height を付ける(または style で width:100%;height:100%)`,
241
253
  en: (a) => `the figure (outermost <svg>) of ${compName(a, false)} sticks out of the part's box (${a.px}px${moreEn(a)}): in the part's code, give that <svg> a width and height (or width:100%;height:100% in its style)` },
254
+ // 横並び(.cols)の列からはみ出す中身(handoff Issue #40)。a:col(はみ出した列。左から、縦の並びは上から)・cols(列の数)・into(重なる隣の列)・px・t・n・v(列が上下に並ぶ)
255
+ colOverflow: { rule: 'R-fit',
256
+ ja: (a) => `横並び(.cols)の${a.v ? '上' : '左'}から ${a.col} 列目の中身が列の幅を超え、${a.into ? `${a.into} 列目に重なる` : 'はみ出す'}(「${a.t}」${moreJa(a)}、${a.px}px):式や語を短くするか、長い式は列の外の別の行に置くか、列を減らして幅を広げる`,
257
+ en: (a) => `content in column ${a.col} of ${a.cols} (from the ${a.v ? 'top' : 'left'}) of a side-by-side layout (.cols) is wider than the column and ${a.into ? `overlaps column ${a.into}` : 'sticks out'} (“${a.t}”${moreEn(a)}, ${a.px}px): shorten the formula or words, put a long formula on its own line outside the columns, or use fewer columns so each is wider` },
242
258
  // 字の箱がスライドの外に出る・重なる(どのスライドでも。#64)と、表の短いセルの語が割れる(#65)。警告。表紙と章の扉では置ける子要素を添える
243
259
  textOffSlide: { rule: 'R-fit',
244
- ja: (a) => `字がスライドの外に出る(「${a.t}」${moreJa(a)}、${a.px}px):字を短くするか、位置を直して 1280×720 の内に収める${PLACE_JA[a.kind] || ''}`,
260
+ ja: (a) => `字がスライドの外に出る(「${a.t}」${moreJa(a)}、${a.px}px):字を短くするか、位置を修正して 1280×720 の内に収める${PLACE_JA[a.kind] || ''}`,
245
261
  en: (a) => `text goes off the slide (“${a.t}”${moreEn(a)}, ${a.px}px): shorten it or move it inside the 1280×720 slide${PLACE_EN[a.kind] || ''}` },
246
262
  textOverlap: { rule: 'R-fit',
247
263
  ja: (a) => `${a.with === 'band' ? `文字がスライドの装飾(色の付いた部分)に重なる(「${a.t}」${moreJa(a)})` : `文字の枠がほかの文字に重なる(「${a.t}」と「${a.u}」${moreJa(a)})`}:重ならない位置に置き直すか、字を減らす${a.svg ? (a.component === 'm-flow' ? '。m-flow の逆向きの辺には shift を付ける' : a.component === 'm-quad' ? '。m-quad の項目の x/y を変え、象限の名前と重ならない位置に動かす' : a.component ? `。パーツ <${a.component}> のデータを変え、ラベルどうしが重ならないようにする` : '。字の x/y か text-anchor を変えるか、軸の名前を軸の端より外に置く') : ''}${PLACE_JA[a.kind] || ''}`,
@@ -251,7 +267,7 @@ export const MESSAGES = {
251
267
  en: (a) => `a short word in a table cell breaks across lines (“${a.t}” on ${a.lines} lines: ${a.split}${moreEn(a)}): use fewer columns, shorten the word, or widen that column (cut text in the other columns)` },
252
268
  desuMasu: { rule: 'R-style', ja: (a) => `スライドの字に です・ます がある(「${a.t}」):スライドは常体(だ・である、体言止め)で書く。です・ます は台本だけ`, en: (a) => `the slide text uses です・ます (“${a.t}”): write slides in plain style (だ・である or a noun ending); keep です・ます for the script` },
253
269
  rawMath: { rule: 'R-math', ja: (a) => `数式が KaTeX で組まれずに残っている(「${a.t}」):\\( … \\) か \\[ … \\] で囲み、$ … $ は使わない`, en: (a) => `math was left unrendered (“${a.t}”): wrap it in \\( … \\) or \\[ … \\], not $ … $` },
254
- katexError: { rule: 'R-math', ja: (a) => `KaTeX が式を組めない(「${a.t}」):式の書き方を直す(< は \\lt、使えるマクロは \\hlE \\hlT \\hlM \\htmlId \\htmlData \\morph)`, en: (a) => `KaTeX cannot render an equation (“${a.t}”): fix its syntax (write < as \\lt; allowed macros are \\hlE \\hlT \\hlM \\htmlId \\htmlData \\morph)` },
270
+ katexError: { rule: 'R-math', ja: (a) => `KaTeX が式を組めない(「${a.t}」):式の書き方を修正する(< は \\lt、使えるマクロは \\hlE \\hlT \\hlM \\htmlId \\htmlData \\morph)`, en: (a) => `KaTeX cannot render an equation (“${a.t}”): fix its syntax (write < as \\lt; allowed macros are \\hlE \\hlT \\hlM \\htmlId \\htmlData \\morph)` },
255
271
  // 同じ重さの短い要点だけの本文(kit/core/layout-scan.mjs、backlog #189。情報だけ:直すかは作成者が決める)
256
272
  cardsHint: { rule: 'R-purpose', ja: () => '同じ重さの短い要点なら、カード(m-cards)にすると見やすいことがあります', en: () => 'Short, equal points may read better as cards (m-cards)' },
257
273
  // 本文の釣り合い(R-balance の段 1、情報。kit/core/fill-measure.mjs):数だけを言う。直し方は段 2 で足す(字で埋めさせない)
@@ -281,16 +297,29 @@ export const MESSAGES = {
281
297
  geoLabelOutsideBox: { rule: 'R-geometry',
282
298
  ja: (a) => `図の字「${a.t}」が箱 ${a.box} の縁を越える(${geoSides(a.px, 'ja')}):字を短くするか改行するか、パーツのデータで箱 ${a.box} を大きくする(m-flow なら w・h)`,
283
299
  en: (a) => `figure text “${a.t}” goes past the border of box ${a.box} (${geoSides(a.px, 'en')}): shorten the text, break it into lines, or make box ${a.box} larger in the part's data (in m-flow, w and h)` },
300
+ // 図形が枠の外に出る(handoff #46):data-within の図形と data-frame の枠。いちばん大きくはみ出したステップと量、外に出るステップの一覧
301
+ geoOutsideFrame: { rule: 'R-geometry',
302
+ ja: (a) => `図形 ${a.shape} が枠 ${a.frame} の外に出る(${a.px}px、${stepJa(a.step)}、${geoPt(a.at)}${Array.isArray(a.steps) && a.steps.length > 1 ? `。外に出るステップは ${a.steps.map((x) => (x === 'concl' ? '結論' : x)).join('・')}` : ''}):そのステップの図形 ${a.shape} の位置か大きさを、パーツのデータか図の座標で変えて、枠 ${a.frame} の内側に収める(枠を大きくしてもよい)`,
303
+ en: (a) => `figure shape ${a.shape} goes outside frame ${a.frame} (by ${a.px}px at ${stepEn(a.step)}, at ${geoPt(a.at)}${Array.isArray(a.steps) && a.steps.length > 1 ? `; outside at steps ${a.steps.map((x) => (x === 'concl' ? 'conclusion' : x)).join(', ')}` : ''}): at that step, move or shrink shape ${a.shape} in the part's data or the figure's coordinates so it stays inside frame ${a.frame} (or make the frame larger)` },
304
+ // 枠の中の印の値が名前 1 つでない(handoff #46):その印は測っていない。kind は shape(data-within)か frame(data-frame)
305
+ geoBadMarkName: { rule: 'R-geometry',
306
+ ja: (a) => `${a.kind === 'frame' ? '枠' : '図形'} ${a.el} の ${a.attr} の値が名前の形に合わない("${a.value}"):小文字の英字で始まる名前 1 つにする`,
307
+ en: (a) => `the ${a.attr} value of ${a.kind === 'frame' ? 'frame' : 'shape'} ${a.el} is not a name ("${a.value}"): use one name that starts with a lowercase letter (a–z, 0–9 and -)` },
308
+ // 図形の線が図の端で欠ける(handoff #52):インラインの SVG の形の線が、SVG の見える範囲の端で切れる。いちばん大きく欠けたステップと、欠けた辺ごとの量、欠けるステップの一覧。
309
+ // id のない形は「種類#n」(スライドの中で n 番目のその種類の要素)。形そのものが端を越える(stroke が false)なら、線の太さの半分でなく形を寄せる
310
+ geoClippedStroke: { rule: 'R-geometry',
311
+ ja: (a) => `図形 ${a.shape}${geoNth(a.shape, 'ja')}${a.stroke === false ? '' : ' の線'}が図の端で欠ける(${geoEdges(a.side, 'ja')}、${stepJa(a.step)}${Array.isArray(a.steps) && a.steps.length > 1 ? `。欠けるステップは ${a.steps.map((x) => (x === 'concl' ? '結論' : x)).join('・')}` : ''}):${a.stroke === false ? '図形を図の内側へ寄せるか小さくする' : '図形を内側へ線の太さの半分以上寄せる'}か、viewBox を広げる`,
312
+ en: (a) => `figure shape ${a.shape}${geoNth(a.shape, 'en')}${a.stroke === false ? ' is' : '\'s stroke is'} cut off at the edge of the figure (${geoEdges(a.side, 'en')} at ${stepEn(a.step)}${Array.isArray(a.steps) && a.steps.length > 1 ? `; cut off at steps ${a.steps.map((x) => (x === 'concl' ? 'conclusion' : x)).join(', ')}` : ''}): ${a.stroke === false ? 'move the shape inside the figure or make it smaller' : 'move the shape inward by at least half its stroke width'}, or widen the viewBox` },
284
313
  geoTateSlides: { rule: 'R-geometry',
285
- ja: (a) => `縦書きのスライド ${a.n} 枚の図は、図の形の点検で測っていない:その図の線・箱・字の重なりは目で確かめる`,
314
+ ja: (a) => `縦書きのスライド ${a.n} 枚の図は、図の形の点検で測っていない:その図の線・箱・字の重なりは目で確認する`,
286
315
  en: (a) => `the figures on ${a.n} vertical (layout-tate) slide${a.n === 1 ? '' : 's'} were not measured by the figure geometry check: check their lines, boxes and text for overlaps by eye` },
287
316
  step0: { ja: (a) => `ステップ 0 の本文:「${a.t}」`, en: (a) => `body text at step 0: “${a.t}”` },
288
- punctMixed: { rule: 'R-style', ja: (a) => `句読点が混ざっている:${a.minor}が ${a.n} 個あり、教材の多くは${a.major}:このスライドも${a.major}にそろえる`, en: (a) => `mixed punctuation: ${a.n} × ${a.minor} while most of the lesson uses ${a.major}: use ${a.major} on this slide too` },
317
+ punctMixed: { rule: 'R-style', ja: (a) => `句読点が混ざっている:${a.minor}が ${a.n} 個あり、スライドの多くは${a.major}:このスライドも${a.major}にそろえる`, en: (a) => `mixed punctuation: ${a.n} × ${a.minor} while most of the slides use ${a.major}: use ${a.major} on this slide too` },
289
318
  // ---------------------------------------------------------------- 台本
290
319
  // テンプレートのまま(kit/core/template-text.mjs):仮の台本の行・スライドに残ったテンプレートの字
291
320
  narrPlaceholder: { ja: (a) => `台本がテンプレートの仮の行のまま(narration.md ${a.line} 行目「${a.t}」):話す言葉に書き換える(このままでは AI 音声が読み、字幕にも出る)`, en: (a) => `the script is still the template placeholder (narration.md line ${a.line}, “${a.t}”): replace it with what you say (otherwise the AI voice reads it and it shows in the captions)` },
292
321
  templateText: { ja: (a) => `テンプレートの字が残っている:${a.list}。自分の内容に書き換える`, en: (a) => `template text left on the slide: ${a.listEn}. Replace it with your own content` },
293
- narrNote: { ja: (a) => `発表者への指示 ${a.t} の書式が正しくない(narration.md ${a.line} 行目):{note:…} を } で閉じ、中に { や } を入れない`, en: (a) => `invalid presenter instruction (stage direction) ${a.t} (narration.md line ${a.line}): close {note:…} with } and do not put { or } inside` },
322
+ narrNote: { ja: (a) => `発表者への指示 ${a.t} の書式が正しくない(narration.md ${a.line} 行目):{note:…} を } で閉じ、中に { や } を書かない`, en: (a) => `invalid presenter instruction (stage direction) ${a.t} (narration.md line ${a.line}): close {note:…} with } and do not put { or } inside` },
294
323
  narrMissing: { rule: 'R-narr-steps', ja: (a) => `このステップの台本がない:narration.md のこのスライドの節に [${a.step}] の行を書く(そのステップで現れるものについて話す)`, en: (a) => `no script for this step: add a [${a.step}] line to this slide’s section of narration.md (about what appears at that step)` },
295
324
  // 予想(m-predict)の答えが、数の棒と −1・+1 の操作(パーツのステップ 1)と同時かそれより前に開く(kit/core/predict-steps.mjs。answer-step が 1 以下)
296
325
  predictAnswerWithCount: { rule: 'R-steps',
@@ -304,19 +333,19 @@ export const MESSAGES = {
304
333
  narrLang: { ja: (a) => `台本の言語(${a.lang}。${a.source === 'voice.json' ? 'voice.json の lang' : '発言の文字から'})がスライドの言語(${a.deck})と違う:式の読み上げと長い発言は、発言ごとにその言語の規則で見た`, en: (a) => `the script language (${a.lang}, ${a.source === 'voice.json' ? 'from lang in voice.json' : 'from the text'}) differs from the slide language (${a.deck}): equations read aloud and long turns were checked with the rules of each turn's language` },
305
334
  turnLong: { ja: (a) => `1 回の発言が長い(${a.n} ${a.unit}):2 つの発言か 2 つのステップに分けるとよい`, en: (a) => `a long turn (${a.n} ${a.unit === '字' ? 'characters' : 'words'}): consider splitting it into two turns or two steps` },
306
335
  // パーツのデータが合わないスライド:台本とステップの数は、データを直してから確かめ直す(narrMissing・narrOrphan はそのスライドでは出さない)
307
- narrRecheck: { ja: (a) => `このスライドのパーツ ${(a.comps || []).map((t) => `<${t}>`).join('・')} はデータが合わず描けないので、台本とステップの数はデータを直してから確かめ直す(台本は消さない)`,
336
+ narrRecheck: { ja: (a) => `このスライドのパーツ ${(a.comps || []).map((t) => `<${t}>`).join('・')} はデータが合わず描けないので、台本とステップの数はデータを修正してから確認し直す(台本は削除しない)`,
308
337
  en: (a) => `the part ${(a.comps || []).map((t) => `<${t}>`).join(', ')} on this slide cannot draw its data, so the script and the step count are checked again after its data is fixed (keep the script)` },
309
338
  // a = {step, line, end, range, static, keys, n, concl, target, lines: [{n, text}], comps: [パーツの名前…]}(keys 以下は narration-lint の orphanDetail)
310
339
  narrOrphan: { rule: 'R-narr-steps',
311
340
  ja: (a) => {
312
341
  const L = a.end > a.line ? `${a.line}〜${a.end}` : `${a.line}`;
313
- if (!a.keys) return `台本の [${a.step}] に当たるステップがスライドにない(narration.md ${L} 行目。このスライドのステップは ${a.range.ja}):その行を前のステップに移すか、${a.step === 'concl' ? 'スライドに結論の行 <div class="concl"><span>…</span></div> を足す(noconcl・static を外す)' : a.static ? 'static を外してステップを付ける' : `スライドに data-step="${a.step}" の要素を足す`}`;
314
- const add = a.step === 'concl' ? 'スライドに結論の行 <div class="concl"><span>…</span></div> を足す(noconcl・static を外す)' : a.static ? 'static を外してステップを付ける' : `スライドに data-step="${a.step}" の要素を足す`;
342
+ if (!a.keys) return `台本の [${a.step}] に当たるステップがスライドにない(narration.md ${L} 行目。このスライドのステップは ${a.range.ja}):その行を前のステップに移動するか、${a.step === 'concl' ? 'スライドに結論の行 <div class="concl"><span>…</span></div> を追加する(noconcl・static を削除する)' : a.static ? 'static を削除してステップを付ける' : `スライドに data-step="${a.step}" の要素を追加する`}`;
343
+ const add = a.step === 'concl' ? 'スライドに結論の行 <div class="concl"><span>…</span></div> を追加する(noconcl・static を削除する)' : a.static ? 'static を削除してステップを付ける' : `スライドに data-step="${a.step}" の要素を追加する`;
315
344
  const lines = (a.lines || []).map((l) => `${l.n} 行目「${l.text.trim()}」`).join('、');
316
345
  return `台本の [${a.step}] に当たるステップがスライドにない${a.line ? `(narration.md ${L} 行目)` : ''}。このスライドのステップは${a.static ? 'static なので 0 だけ' : `番号が 0〜${a.n}${a.concl ? ' と結論' : ''}`}で、使えるステップの指定は ${a.keys.map((k) => `[${k}]`).join(' ')}。`
317
- + `直し方:(1) 行の頭の「[${a.step}]」を消し、その発言を前のステップ [${a.target}] の発言の後ろに続ける(前のステップに合わせる)か、(2) ${add}`
318
- + (lines ? `。直す行:${lines}` : '')
319
- + (a.comps && a.comps.length ? `。このスライドのパーツ ${a.comps.map((t) => `<${t}>`).join('・')} はデータが合わず描けないので、そのステップを数えていない:先にパーツのデータを直す(R-components)` : '');
346
+ + `修正の方法:(1) 行の頭の「[${a.step}]」を削除し、その発言を前のステップ [${a.target}] の発言の後ろに続ける(前のステップに合わせる)か、(2) ${add}`
347
+ + (lines ? `。修正する行:${lines}` : '')
348
+ + (a.comps && a.comps.length ? `。このスライドのパーツ ${a.comps.map((t) => `<${t}>`).join('・')} はデータが合わず描けないので、そのステップを数えていない:先にパーツのデータを修正する(R-components)` : '');
320
349
  },
321
350
  en: (a) => {
322
351
  const L = a.end > a.line ? `lines ${a.line}–${a.end}` : `line ${a.line}`;
@@ -329,14 +358,14 @@ export const MESSAGES = {
329
358
  + (a.comps && a.comps.length ? `. The part ${a.comps.map((t) => `<${t}>`).join(', ')} on this slide cannot draw its data, so its steps are not counted: fix its data first (R-components)` : '');
330
359
  } },
331
360
  readingExpr: { rule: 'R-reading', ja: (a) => `読みの指定 ${a.t} が式を読んでいる(narration.md ${a.line} 行目):読みは 1 つの記号か用語だけに付け({θ|シータ})、式は意味を言葉で言う`, en: (a) => `the reading ${a.t} reads an expression (narration.md line ${a.line}): give readings to single symbols or terms only ({θ|theta}) and say the relation in words` },
332
- readingGap: { rule: 'R-reading', ja: (a) => `「${a.t}」に読みがない(narration.md ${a.line} 行目):${a.first} 行目では {${a.t}|${a.reading}} と読みを付けている。読みは出てくる所ごとに当たるので、ここにも {${a.t}|${a.reading}} と付ける。読みなしで正しく読まれる語なら、{${a.t}|${a.reading}} のほうを外して ${a.t} にそろえる(かなの読みは抑揚を崩しやすい)`, en: (a) => `“${a.t}” has no reading here (narration.md line ${a.line}): line ${a.first} gives it {${a.t}|${a.reading}}. A reading applies only where it is written, so add {${a.t}|${a.reading}} here too. If the term is read correctly without one, remove the reading at line ${a.first} instead so every occurrence is plain ${a.t} (a kana reading can break the accent)` },
361
+ readingGap: { rule: 'R-reading', ja: (a) => `「${a.t}」に読みがない(narration.md ${a.line} 行目):${a.first} 行目では {${a.t}|${a.reading}} と読みを付けている。読みは出てくる所ごとに当たるので、ここにも {${a.t}|${a.reading}} と付ける。読みなしで正しく読まれる語なら、{${a.t}|${a.reading}} のほうを削除して ${a.t} にそろえる(かなの読みは抑揚を崩しやすい)`, en: (a) => `“${a.t}” has no reading here (narration.md line ${a.line}): line ${a.first} gives it {${a.t}|${a.reading}}. A reading applies only where it is written, so add {${a.t}|${a.reading}} here too. If the term is read correctly without one, remove the reading at line ${a.first} instead so every occurrence is plain ${a.t} (a kana reading can break the accent)` },
333
362
  readingSeveral: { rule: 'R-reading', ja: (a) => `読みの指定 ${a.t} に記号が 2 つ以上ある(narration.md ${a.line} 行目):記号ごとに分ける({θ|シータ} と {η|イータ})`, en: (a) => `the reading ${a.t} covers several symbols (narration.md line ${a.line}): give each symbol its own reading ({θ|theta} and {η|eta})` },
334
363
  // ---------------------------------------------------------------- 色・パーツ・強調・モーフ・読み上げ
335
364
  palette: { ja: (a) => `パレット:${a.v} ${a.css} = rgb(${a.rgb})${a.ratio ? ` vs --bg → コントラスト ${a.ratio}:1` : ''}`, en: (a) => `palette: ${a.v} ${a.css} = rgb(${a.rgb})${a.ratio ? ` vs --bg → contrast ${a.ratio}:1` : ''}` },
336
- contrastLow: { rule: 'R-colors', ja: (a) => `${a.v} と --bg のコントラストが低い(${a.ratio}:1 < ${a.min}:1):テーマの色を直す(教材の中で色を書いていれば消し、テーマの class と変数だけを使う)`, en: (a) => `low contrast between ${a.v} and --bg (${a.ratio}:1 < ${a.min}:1): fix the theme colors (remove any colors written in the lesson; use only theme classes and variables)` },
337
- compOrder: { ja: (a) => `パーツの描画が呼び出し順に依存している(ステップ ${a.k}):render(k, t) が前の呼び出しの状態に頼らないようにパーツを直す(docs/contract.md §3)`, en: (a) => `the part draws differently depending on call order (step ${a.k}): make render(k, t) independent of previous calls (docs/contract.md §3)` },
365
+ contrastLow: { rule: 'R-colors', ja: (a) => `${a.v} と --bg のコントラストが低い(${a.ratio}:1 < ${a.min}:1):テーマの色を修正する(スライドの中で色を書いていれば削除し、テーマの class と変数だけを使う)`, en: (a) => `low contrast between ${a.v} and --bg (${a.ratio}:1 < ${a.min}:1): fix the theme colors (remove any colors written in the slides; use only theme classes and variables)` },
366
+ compOrder: { ja: (a) => `パーツの描画が呼び出し順に依存している(ステップ ${a.k}):render(k, t) が前の呼び出しの状態に依存しないようにパーツを修正する(docs/contract.md §3)`, en: (a) => `the part draws differently depending on call order (step ${a.k}): make render(k, t) independent of previous calls (docs/contract.md §3)` },
338
367
  compOrderDetail: { ja: (a) => `品質チェック(呼び出し順)の詳しい結果(ステップ ${a.k}):${a.note}`, en: (a) => `quality check details (call order, step ${a.k}): ${a.note}` },
339
- markMissing: { rule: 'R-marks', ja: (a) => `強調 {mark:${a.id}} の目印がこのスライドにない:目印の要素に id="${a.id}" か data-mark="${a.id}" を付ける(式の一部は \\htmlId{${a.id}}{…})か、{mark:…} を消す`, en: (a) => `the emphasis {mark:${a.id}} has no target on this slide: put id="${a.id}" or data-mark="${a.id}" on the element (\\htmlId{${a.id}}{…} in math), or remove the {mark:…}` },
368
+ markMissing: { rule: 'R-marks', ja: (a) => `強調 {mark:${a.id}} の目印がこのスライドにない:目印の要素に id="${a.id}" か data-mark="${a.id}" を付ける(式の一部は \\htmlId{${a.id}}{…})か、{mark:…} を削除する`, en: (a) => `the emphasis {mark:${a.id}} has no target on this slide: put id="${a.id}" or data-mark="${a.id}" on the element (\\htmlId{${a.id}}{…} in math), or remove the {mark:…}` },
340
369
  marks: { ja: (a) => `強調:${a.list}`, en: (a) => `emphasis: ${a.list}` },
341
370
  morphNoSrc: { ja: (a) => `モーフの元のスライド「${a.want}」が見つからない:data-morph="元のスライドの id" にするか、空にして前のスライドから`, en: (a) => `the morph source slide “${a.want}” was not found: set data-morph to the slide id of the source slide, or leave it empty for the previous slide` },
342
371
  morphNoIds: { ja: (a) => `モーフ:元のスライド「${a.src}」と同じ data-id の要素がない:動かす要素の両方に同じ data-id を付ける(式の一部は \\morph{ID}{…})`, en: (a) => `morph: no element shares a data-id with the source slide “${a.src}”: give the moving elements the same data-id on both slides (\\morph{ID}{…} in math)` },
@@ -344,8 +373,8 @@ export const MESSAGES = {
344
373
  morphLater: { ja: (a) => `モーフ:ステップ 0 で見えないので動かさない:${a.ids}`, en: (a) => `morph: not moved because not visible at step 0: ${a.ids}` },
345
374
  morphDupSrc: { ja: (a) => `モーフ:元のスライドに data-id「${a.id}」が 2 つ以上ある(初めのものだけを使う):1 つにする`, en: (a) => `morph: the source slide has data-id “${a.id}” more than once (only the first is used): keep one` },
346
375
  morphDupDst: { ja: (a) => `モーフ:data-id「${a.id}」が 2 つ以上ある(初めのものだけを使う):1 つにする`, en: (a) => `morph: data-id “${a.id}” appears more than once (only the first is used): keep one` },
347
- imgTooLarge: { ja: (a) => `教材に埋め込む画像 ${a.image} が 1 MiB を超えている(${mibOf(a.n)}):必要な部分を切り抜くか、幅 1600 px ほどの JPEG・WebP で保存する`, en: (a) => `the lesson’s embedded image ${a.image} is over 1 MiB (${mibOf(a.n)}): crop it or save it as JPEG/WebP about 1600 px wide` },
348
- imgTotal: { ja: (a) => `教材に埋め込む画像は ${a.count} 枚、合計 ${mibOf(a.n)}(パーツ自身の画像を除く)`, en: (a) => `the lesson has ${a.count} embedded ${plural(a.count, 'image')}, totalling ${mibOf(a.n)} (excluding parts' own images)` },
376
+ imgTooLarge: { ja: (a) => `ファイルに埋め込む画像 ${a.image} が 1 MiB を超えている(${mibOf(a.n)}):必要な部分を切り抜くか、幅 1600 px ほどの JPEG・WebP で保存する`, en: (a) => `the file’s embedded image ${a.image} is over 1 MiB (${mibOf(a.n)}): crop it or save it as JPEG/WebP about 1600 px wide` },
377
+ imgTotal: { ja: (a) => `ファイルに埋め込む画像は ${a.count} 枚、合計 ${mibOf(a.n)}(パーツ自身の画像を除く)`, en: (a) => `the file has ${a.count} embedded ${plural(a.count, 'image')}, totalling ${mibOf(a.n)} (excluding parts' own images)` },
349
378
  imgAlt: { ja: (a) => `alt の無い画像が ${a.n} 枚(${a.list}):内容を alt="…" に書く(飾りなら alt="")`, en: (a) => `${a.n} ${plural(a.n, 'image')} without alt (${a.list}): describe ${a.n === 1 ? 'it' : 'them'} in alt="…" (alt="" if decorative)` },
350
379
  svgName: { ja: (a) => `名前の無い SVG の図が ${a.n} 個:aria-label="…" か <title>…</title> を付ける(飾りなら aria-hidden="true")`, en: (a) => `${a.n} SVG ${plural(a.n, 'figure')} without a name: add aria-label="…" or <title>…</title> (aria-hidden="true" if decorative)` },
351
380
  compName: { ja: (a) => `名前の無いパーツ:${a.list}(読み上げ用に aria-label="…" を付けられる)`, en: (a) => `parts without a name: ${a.list} (an aria-label="…" helps screen readers)` },
@@ -354,13 +383,18 @@ export const MESSAGES = {
354
383
  compLayout: { rule: 'R-fit',
355
384
  ja: (a) => `${compName(a, true)}を置く場所が足りない:${a.msg}。パーツを置く場所を広げるか、表示する内容を減らす`,
356
385
  en: (a) => `${compName(a, false)} does not have enough room: ${a.msg}. Give the part more space or show less content` },
386
+ // パーツが ctx.report で知らせた見た目の問題(format spec §8.4 の code:range・size・theme ほか)。range(値が表示する範囲の外)は直し方を言う(handoff Issue #40)
357
387
  compReport: { rule: 'R-components',
358
- ja: (a) => `${compName(a, true)}からの知らせ:${a.msg}。表示する値や量、テーマの色を確かめる`,
359
- en: (a) => `${compName(a, false)} reports a problem: ${a.msg}. Check the values, the amount of content and the theme colours` },
388
+ ja: (a) => (a.code === 'range'
389
+ ? `${compName(a, true)}の値が表示する範囲の外にある:${a.msg}。範囲の属性(xr・yr など)を、値がすべて入るように書く`
390
+ : `${compName(a, true)}からの知らせ:${a.msg}。表示する値や量、テーマの色を確認する`),
391
+ en: (a) => (a.code === 'range'
392
+ ? `${compName(a, false)} has values outside the range it shows: ${a.msg}. Set its range attributes (such as xr and yr) so that every value fits`
393
+ : `${compName(a, false)} reports a problem: ${a.msg}. Check the values, the amount of content and the theme colours`) },
360
394
  compData: { rule: 'R-components',
361
395
  ja: (a) => `${compName(a, true)}のデータが合わない:${compWhat(a, true)}${compHow(a, true) ? `。${compHow(a, true)}` : ''}`,
362
396
  en: (a) => `${compName(a, false)} has data it cannot draw: ${compWhat(a, false)}${compHow(a, false) ? `. Write it like this: ${compHow(a, false)}` : ''}` },
363
- consoleError: { ja: (a) => `コンソールエラー:${a.e}(教材のパーツやスクリプトを直す)`, en: (a) => `console error: ${a.e} (fix the lesson’s part or script)` },
397
+ consoleError: { ja: (a) => `コンソールエラー:${a.e}(スライドのパーツやスクリプトを修正する)`, en: (a) => `console error: ${a.e} (fix the slides’ part or script)` },
364
398
  };
365
399
 
366
400
  // ---------------------------------------------------------------- パーツのデータ(kit/deck.js の DECK.componentErrors。形は kit/shape.js)
@@ -387,7 +421,7 @@ function compWhat(a, ja) {
387
421
  }
388
422
  return ja ? `${p(a.path)}は ${a.expected} のはずが ${a.got}` : `${p(a.path)} must be ${a.expected} but is ${a.got}`;
389
423
  case 'missing': return ja ? 'データ(子の <script type="application/json">)がない' : 'there is no data (child <script type="application/json">)';
390
- case 'json': return ja ? `データの JSON が読めない(${a.msg})。JSON の書き方(" で囲んだ名前、最後の , なし)に直す` : `the data is not valid JSON (${a.msg}): fix the JSON syntax (quoted names, no trailing commas)`;
424
+ case 'json': return ja ? `データの JSON が読めない(${a.msg})。JSON の書き方(" で囲んだ名前、最後の , なし)に修正する` : `the data is not valid JSON (${a.msg}): fix the JSON syntax (quoted names, no trailing commas)`;
391
425
  case 'attrJson': return ja ? `属性 ${a.attr} の値が JSON として読めない(${a.msg})` : `the attribute ${a.attr} is not valid JSON (${a.msg})`;
392
426
  case 'attr': return ja ? `属性 ${a.attr}${a.path ? ` の ${a.path}` : ''} は ${a.expected} のはずが ${a.got}` : `the attribute ${a.attr}${a.path ? ` at ${a.path}` : ''} must be ${a.expected} but is ${a.got}`;
393
427
  case 'notText': return ja ? 'このパーツは JSON ではなく、要素の中に字で書く' : 'this part is written as text inside the element, not as JSON';
package/kit/check.mjs CHANGED
@@ -9,7 +9,7 @@
9
9
  // ただし段階の状態は DECK.seek(i, k, Infinity) で作る(beforeprint の代わり)
10
10
  // はみ出し・切れ・字の大きさ・字数は kit/core/layout-scan.mjs(編集アプリの品質チェックと同じ関数)。箱で切れる字・スライドの外に出る
11
11
  // 図の字・図の箱からはみ出す字・本文の外に置いた字は警告。わざと切るところは要素に data-clip(CLIP_ATTR)を付けて外す
12
- // 描いた図の形(パーツの印 data-part を測る:箱を通る線・字を横切る線・重なる字・箱の縁を越える字)は kit/core/geometry-check.mjs(R-geometry、警告。編集アプリと同じ関数)
12
+ // 描いた図の形(パーツの印 data-part を測る:箱を通る線・字を横切る線・重なる字・箱の縁を越える字。data-within の図形が枠の外に出るかは全部のステップで)は kit/core/geometry-check.mjs(R-geometry、警告。編集アプリと同じ関数)
13
13
  // 本文の場所の限りはテーマの寸法の宣言(theme.json の metrics、contract §12)から導き、描いた箱が宣言と違えば themeMetricsDrift(警告、デッキに 1 回)。
14
14
  // 読めない宣言は themeMetricsInvalid(警告、デッキに 1 回)。同梱の字体が読み込めなければ測らずに metricsFontLoad(警告、デッキに 1 回)
15
15
  // 埋め込んだ字体のどれにもない見える字(スライド・台本・本)は fontNotCovered(情報、デッキに 1 回。端末の字体で出るだけで、v0.6.6 までと見え方は同じ。kit/core/font-coverage.mjs)
@@ -57,9 +57,8 @@ import { createHash } from 'node:crypto';
57
57
  import { readRegular, readHead, READ_LIMITS } from './bounded-read.mjs';
58
58
  import { audioState } from './core/audio-core.mjs';
59
59
  import { scanBalance } from './fill-scan.mjs';
60
- import { layoutScan, metricsProbe, metricsFonts, CLIP_ATTR, ANNOT_ATTR, OVERLAP_ATTR } from './core/layout-scan.mjs';
61
- import { geometryScan, geometryTate } from './core/geometry-check.mjs';
62
- import { TEXT_BANDS, DEFAULT_BAND } from './core/text-band.mjs';
60
+ import { layoutScan, metricsProbe, metricsFonts, CLIP_ATTR, ANNOT_ATTR, OVERLAP_ATTR, GEO_OPTS } from './core/layout-scan.mjs';
61
+ import { geometryScan, geometrySteps, geometryTate } from './core/geometry-check.mjs';
63
62
  import { placeholderSteps, templateTextIn } from './core/template-text.mjs';
64
63
  import { legacyVocabulary } from './core/legacy-vocab.mjs';
65
64
  import { colorsOutsideVocabulary } from './core/color-vocab.mjs';
@@ -456,8 +455,8 @@ phase = 'A 体裁'; visited.add(phase);
456
455
  // 体裁の検査の関数(kit/core/layout-scan.mjs)をページに入れる(文字列で。デッキの決まり(CSP)に依らない)
457
456
  await page.evaluate(`window.__layoutScan = ${layoutScan}`);
458
457
  await page.evaluate(`window.__findRawMath = ${findRawMath}`);
459
- // 描いた図の形(kit/core/geometry-check.mjs、R-geometry。編集アプリの品質チェックと同じ関数)。字の範囲の表は値で渡す(kit/core/text-band.mjs)
460
- await page.evaluate(`window.__geometryScan = ${geometryScan}; window.__geometryTate = ${geometryTate}`);
458
+ // 描いた図の形(kit/core/geometry-check.mjs、R-geometry。編集アプリの品質チェックと同じ関数)。字の範囲の表と印の名前は値で渡す(kit/core/layout-scan.mjs の GEO_OPTS)
459
+ await page.evaluate(`window.__geometryScan = ${geometryScan}; window.__geometrySteps = ${geometrySteps}; window.__geometryTate = ${geometryTate}`);
461
460
  const aOut = await page.evaluate(([metaList, JA, CLIP, ANNOT, OVERLAP, METRICS, GEO]) => {
462
461
  const S = DECK.slides;
463
462
  const step0 = [], punct = [];
@@ -491,8 +490,15 @@ const aOut = await page.evaluate(([metaList, JA, CLIP, ANNOT, OVERLAP, METRICS,
491
490
  const body = s.querySelector('.body');
492
491
  // はみ出し・切れ・字の大きさ・字数(kit/core/layout-scan.mjs。編集アプリの品質チェックと同じ関数)
493
492
  for (const f of window.__layoutScan(s, { JA, refRe: '文献', clip: CLIP, annot: ANNOT, overlap: OVERLAP, metrics: METRICS })) (f.sev === 'error' ? issues : warns).push([f.code, f.a, f.sev]);
494
- // 描いた図の形(パーツの印 data-part を測る。縦書きのスライドは測らない)
493
+ // 描いた図の形(パーツの印 data-part を測る。縦書きのスライドは測らない)。枠の中の印の値が名前でない geoBadMarkName もここから
495
494
  for (const f of window.__geometryScan(s, GEO)) (f.sev === 'error' ? issues : warns).push([f.code, f.a, f.sev]);
495
+ // 図形が枠の外に出る(geoOutsideFrame。handoff #46)・図形の線が図の端で欠ける(geoClippedStroke。handoff #52):全部のステップで 1 回だけ歩いて測る
496
+ // (編集アプリと同じ関数)。測るものがないスライドは歩かない(null)。歩いた後は最後のステップに戻す
497
+ const stepped = window.__geometrySteps(s, GEO, (k) => DECK.seek(m.i, k, Infinity), window.__geometryScan);
498
+ if (stepped) {
499
+ for (const f of stepped) warns.push([f.code, f.a, f.sev]);
500
+ DECK.seek(m.i, m.max, Infinity);
501
+ }
496
502
  if (body) {
497
503
  const txt = (() => { const c = body.cloneNode(true); c.querySelectorAll('.katex-mathml').forEach((x) => x.remove()); document.body.appendChild(c); c.style.cssText = 'position:absolute;left:-99999px;width:' + body.clientWidth + 'px'; const r = c.innerText; c.remove(); return r; })();
498
504
  // 句読点はデッキの中でそろっていればよい(どちらにするかは元の原稿に合わせる)。数えて後で比べる
@@ -508,8 +514,8 @@ const aOut = await page.evaluate(([metaList, JA, CLIP, ANNOT, OVERLAP, METRICS,
508
514
  if (issues.length) style.push({ i: m.i, issues });
509
515
  if (warns.length) soft.push({ i: m.i, issues: warns });
510
516
  });
511
- return { step0, style, soft, punct, geoTate: window.__geometryTate(S) };
512
- }, [meta, JA, CLIP_ATTR, ANNOT_ATTR, OVERLAP_ATTR, themeInfo.metrics, { bands: TEXT_BANDS, dflt: DEFAULT_BAND }]);
517
+ return { step0, style, soft, punct, geoTate: window.__geometryTate(S, GEO) };
518
+ }, [meta, JA, CLIP_ATTR, ANNOT_ATTR, OVERLAP_ATTR, themeInfo.metrics, GEO_OPTS]);
513
519
 
514
520
  // テーマの寸法の宣言と描いた箱(見えない見本のスライドで 1 回測る。宣言がなければ既定と比べる)
515
521
  // 測るのは同梱の字体が読み込まれてから(代わりの字体では測らない。読み込めなければ metricsFontLoad を知らせて測らない)
@@ -864,7 +870,7 @@ if (asJson) {
864
870
  const stepOf = (s) => (s === null ? '' : EN ? (s === 'concl' ? 'conclusion: ' : `step ${s}: `) : (s === 'concl' ? '結論のステップ:' : `ステップ ${s}:`));
865
871
  for (const key of keys) {
866
872
  const id = key >= 0 && meta[key] && meta[key].id;
867
- const label = key === -1 ? (EN ? '■ Whole lesson' : '■ 教材全体') : `■ ${key + 1}: ${titleOf(key)}${id ? ` (${id})` : ''}`;
873
+ const label = key === -1 ? (EN ? '■ Whole file' : '■ ファイル全体') : `■ ${key + 1}: ${titleOf(key)}${id ? ` (${id})` : ''}`;
868
874
  console.log(label);
869
875
  const items = groups.get(key).sort((a, b) => SEV_RANK[a.sev] - SEV_RANK[b.sev]);
870
876
  for (const r of items) console.log(` [${MARK[r.sev]}] ${stepOf(r.step)}${cliHints(r.what)}`);
@@ -873,7 +879,7 @@ if (asJson) {
873
879
  console.log(EN ? `${counts.error} ${plural(counts.error, 'error')}, ${counts.warn} ${plural(counts.warn, 'warning')}, ${counts.info} info` : `エラー ${counts.error} 警告 ${counts.warn} 情報 ${counts.info}`);
874
880
  const S = acc.summary;
875
881
  console.log(EN ? `quality check items: ${S.checked} done, ${S.excused} not applicable, ${S.skipped} not run, ${S.failed} failed (of ${S.total})` : `品質チェックの項目:見た ${S.checked} 当てはまらない ${S.excused} 見られなかった ${S.skipped} 落ちた ${S.failed}(${S.total} のうち)`);
876
- if (noBrowser) console.log(EN ? 'run without a browser (--no-browser): only the checks of the source were done; the checks of how slides look and move (R-fit, contrast, parts, narration steps and more) were skipped. Run the check with a browser before you share the lesson' : 'ブラウザなしで動かした(--no-browser):原稿だけでできるチェックをした。スライドの見た目と動きのチェック(R-fit・コントラスト・パーツ・台本のステップなど)は飛ばした。教材を配る前に、ブラウザのある所で品質チェックをかけ直す');
882
+ if (noBrowser) console.log(EN ? 'run without a browser (--no-browser): only the checks of the source were done; the checks of how slides look and move (R-fit, contrast, parts, narration steps and more) were skipped. Run the check with a browser before you share the file' : 'ブラウザなしで動かした(--no-browser):原稿だけでできるチェックをした。スライドの見た目と動きのチェック(R-fit・コントラスト・パーツ・台本のステップなど)は飛ばした。教材を配る前に、ブラウザのある所で品質チェックをかけ直す');
877
883
  if (acc.status === 'incomplete') console.log((EN ? 'the check did not finish: ' : '点検が終わっていない:') + [...acc.unset.map((id) => id + (EN ? ' (not looked at)' : '(見ていない)')), ...acc.problems].join('; '));
878
884
  }
879
885
  // 出力を書き終えてから終える(stdout がパイプのとき、process.exit は書きかけの出力(64 KiB を超える分)を捨てる。--json の大きな結果が途中で切れていた)