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,6 +18,8 @@
18
18
  // 実行系の JSON(deck-narration・deck-marks・deck-timing・deck-audio)の、変わった段階の項目だけ(ほかの項目のバイトはそのまま)
19
19
  // 読める層(§2.1)の、変わった段階の <div data-step-key> だけ
20
20
  // deck-meta の sourceSha256(新しい教材として保存するときは docId も)
21
+ // 編集の記録(§3.6.1・§7.3):設定のファイルの metadata.edits が変わったときは、索引の metadata.edits と deck-meta.edits を同じ値に
22
+ // (編集アプリが保存の前に聞いて足す。仕様の §7.2 の表にはまだない場所)
21
23
  // 索引(files・blobs・audio の変わった記録・requires・sourceSha256・拡張・新しい教材の docId と derivedFrom、新しい教材で外す exportedFrom)と data-sha256
22
24
  // 塊(新しい中身を足し、どこからも参照されなくなったものを除く)
23
25
  // 字の補い:新しい <style id="<前置><n>">(n は今ある補いの番号の次・0 から。最後の字の <style> の後に。今の文書が埋め込む字(family・weight・style)
@@ -39,7 +41,7 @@ import {
39
41
  readableStep, readableStepOrder, extensionsFrom, excludedReason, LIMITS, RE, KNOWN, copyUnknown, validateDeckMeta, isOffset,
40
42
  } from './portable.mjs';
41
43
  import { parseNarration, narrationMap, marksMap, splitKey } from './narration-core.mjs';
42
- import { isJapanese, LATIN_MAX, parseRange, fontFaceCss, FONTS, fontByFamily, FONT_LIST } from './build-core.mjs';
44
+ import { isJapanese, LATIN_MAX, parseRange, fontFaceCss, FONTS, fontByFamily, FONT_LIST, normalizeEdits } from './build-core.mjs';
43
45
  import { planAttachments, problemText, isAttachPath, inspectAttachment, blocking, nameProblem, roleProblem, attachmentMime, ATTACH_ROLES } from './attachments.mjs';
44
46
  import { updateConfig } from './config-file.mjs';
45
47
 
@@ -58,7 +60,7 @@ const TIER_A_FILES = new Set(['narration.md', 'timeline.json', CFG]);
58
60
  // player と generator(§4.1)は段 A では書き換えない(ここに並べるのは、足す項目を入れる順のため)
59
61
  const INDEX_ORDER = ['format', 'version', 'profile', 'requires', 'contracts', 'player', 'generator', 'docId', 'entry', 'sourceSha256', 'files', 'blobs', 'audio', 'components', 'themes', 'metadata', 'excluded', 'extensions', FORMAT.ATTACH_KEY, 'exportedFrom'];
60
62
  const ATTACH_KNOWN = new Set(['path', 'role', 'title', 'description']);
61
- const META_RIGHTS = ['title', 'license', 'copyright', 'attribution', 'creators'];
63
+ const META_RIGHTS = ['title', 'license', 'copyright', 'attribution', 'creators', 'edits'];
62
64
 
63
65
  const dict = () => Object.create(null);
64
66
  const own = (o, k) => o != null && Object.prototype.hasOwnProperty.call(o, k);
@@ -251,13 +253,14 @@ async function run(original, filesIn, opts) {
251
253
  const NEW = filesIn instanceof Map ? filesIn : new Map(Object.entries(filesIn || {}));
252
254
  const r = await readPortable(original);
253
255
  if (r.extractOnly) refuse('extract-only', 'the file can only be extracted (unknown version or feature)');
254
- if (!r.sourceMatches) refuse('source-mismatch', 'the compiled lesson and its source disagree (sourceSha256): tier A edits are not allowed (§3.4)');
256
+ if (!r.sourceMatches) refuse('source-mismatch', 'the built slides and their source disagree (sourceSha256): tier A edits are not allowed (§3.4)');
255
257
  const ix = r.index, old = r.files;
256
258
  const identity = opts.identity || null;
257
259
  const docId = identity ? identity.docId : ix.docId;
258
260
  if (identity && !(typeof identity.docId === 'string' && RE.docId.test(identity.docId))) refuse('bad-identity', 'identity.docId is not a lowercase UUID');
259
261
 
260
262
  let linksNew, linksSet = false; // 設定のファイルを変えたときの articleLinks(索引にも同じ値を書く。§9C.7)
263
+ let editsNew = null; // 設定のファイルの metadata.edits が索引と違うとき、その値(§3.6.1。索引と deck-meta に書く)
261
264
  // 1. どの原稿が変わったか。段 A の場所だけで済むもの(口述原稿・timeline.json・設定のファイル)のほかは断る
262
265
  const changed = [];
263
266
  for (const p of new Set([...Object.keys(old), ...NEW.keys()])) {
@@ -272,9 +275,9 @@ async function run(original, filesIn, opts) {
272
275
  const ARTICLE_FILES = new Set(artIx ? [...(typeof artIx.path === 'string' ? [artIx.path] : Array.isArray(artIx.chapters) ? artIx.chapters : []), ...(typeof artIx.references === 'string' ? [artIx.references] : [])] : []);
273
276
  const articleChanged = changed.filter((p) => ARTICLE_FILES.has(p));
274
277
  const outside = changed.filter((p) => !TIER_A_FILES.has(p) && !isAttachPath(p) && !ARTICLE_FILES.has(p));
275
- if (outside.length) refuse('source-changed', `slide source changed (${outside.join(', ')}): the lesson must be rebuilt (tier B)`, outside);
278
+ if (outside.length) refuse('source-changed', `slide source changed (${outside.join(', ')}): the file must be rebuilt (tier B)`, outside);
276
279
  const artGone = articleChanged.filter((p) => !NEW.get(p));
277
- if (artGone.length) refuse('source-changed', `an article file was removed (${artGone.join(', ')}): the lesson must be rebuilt (tier B)`, artGone);
280
+ if (artGone.length) refuse('source-changed', `an article file was removed (${artGone.join(', ')}): the file must be rebuilt (tier B)`, artGone);
278
281
  const articleHtml = opts.article && typeof opts.article.html === 'string' ? opts.article.html.replace(/\r\n?/g, '\n') : null;
279
282
  if (articleChanged.length && articleHtml === null) refuse('article-changed', `the article changed (${articleChanged.join(', ')}): render it again and pass it (opts.article), or rebuild`, articleChanged);
280
283
  if (articleChanged.length && !new RegExp(`^<article id="${ARTICLE_ID}"[\\s>][\\s\\S]*</article>$`).test(articleHtml)) refuse('layout', `opts.article.html is not one <article id="${ARTICLE_ID}"> element`);
@@ -283,7 +286,7 @@ async function run(original, filesIn, opts) {
283
286
  if (attachChanged.length) {
284
287
  const srcText = Object.keys(old).filter((p) => !isAttachPath(p) && !p.startsWith('audio/') && p !== CFG && /^text\/|json|xml|svg/.test(mimeOf(p))).map((p) => dec.decode(old[p])).join('\n');
285
288
  const used = attachChanged.filter((p) => srcText.includes(p));
286
- if (used.length) refuse('source-changed', `the slide source refers to the changed attachment (${used.join(', ')}): the lesson must be rebuilt (tier B)`, used);
289
+ if (used.length) refuse('source-changed', `the slide source refers to the changed attachment (${used.join(', ')}): the file must be rebuilt (tier B)`, used);
287
290
  }
288
291
  if (changed.includes(CFG)) {
289
292
  let c;
@@ -291,14 +294,21 @@ async function run(original, filesIn, opts) {
291
294
  if (!isObj(c) || c.docId !== docId) refuse('config-changed', `${CFG}: docId differs from the document`);
292
295
  const cm = isObj(c.metadata) ? c.metadata : dict(), im = isObj(ix.metadata) ? ix.metadata : dict();
293
296
  for (const k of Object.keys(cm)) {
297
+ // 編集の記録(§3.6.1):編集アプリが保存の前に足す(§7.3)。形が合えば、索引の metadata.edits と deck-meta.edits を同じ値に書き換える
298
+ if (k === 'edits' && !deepEqual(cm.edits, im.edits)) {
299
+ const ed = normalizeEdits(cm.edits);
300
+ if (!ed.edits || ed.dropped || !deepEqual(ed.edits, cm.edits)) refuse('config-changed', `${CFG}: metadata.edits is not a list of {by?, note?} (the file must be rebuilt)`);
301
+ editsNew = ed.edits;
302
+ continue;
303
+ }
294
304
  const want = k === 'derivedFrom' ? (identity ? identity.derivedFrom : im.derivedFrom) : im[k];
295
- if (!deepEqual(cm[k], want)) refuse('config-changed', `${CFG}: metadata.${k} differs from the document (the lesson must be rebuilt)`);
305
+ if (!deepEqual(cm[k], want)) refuse('config-changed', `${CFG}: metadata.${k} differs from the document (the file must be rebuilt)`);
296
306
  }
297
307
  for (const k of META_RIGHTS) if (k !== 'title' && own(im, k) && !own(cm, k)) refuse('config-changed', `${CFG}: metadata.${k} is missing`);
298
308
  // 章の読む順(article。§9C.7)が変われば本文の組み直し(段 B)。つながりの記録(articleLinks)は段 A の場所(§7.2):索引も同じ値に
299
309
  let oc = null;
300
310
  try { oc = own(old, CFG) ? parseJsonStrict(dec.decode(old[CFG])) : null; } catch { oc = null; }
301
- if (!deepEqual(isObj(oc) ? oc.article : undefined, c.article)) refuse('source-changed', `${CFG}: the order of the article's chapters changed: the lesson must be rebuilt (tier B)`);
311
+ if (!deepEqual(isObj(oc) ? oc.article : undefined, c.article)) refuse('source-changed', `${CFG}: the order of the article's chapters changed: the file must be rebuilt (tier B)`);
302
312
  if (own(c, 'articleLinks')) {
303
313
  const AL = c.articleLinks, okRec = (r) => isObj(r) && RE.sha256.test(String(r.article)) && RE.sha256.test(String(r.slide));
304
314
  if (!isObj(AL) || !Object.values(AL).every((m) => isObj(m) && Object.values(m).every(okRec))) refuse('config-changed', `${CFG}: articleLinks is not {slideKey: {sectionId: {article, slide}}}`);
@@ -479,6 +489,7 @@ async function run(original, filesIn, opts) {
479
489
  if (!hasAudio) { if (own(ix, 'audio')) setIx(['audio'], undefined); }
480
490
  else if (!own(ix, 'audio')) setIx(['audio'], newAudio);
481
491
  else for (const k of audioChanged) setIx(['audio', k], own(newAudio, k) ? newAudio[k] : undefined, Object.keys(newAudio));
492
+ if (editsNew) setIx(['metadata', 'edits'], editsNew, [...KNOWN.metadata]);
482
493
  if (identity) {
483
494
  setIx(['docId'], identity.docId);
484
495
  if (identity.derivedFrom) setIx(['metadata', 'derivedFrom'], identity.derivedFrom, [...KNOWN.metadata]);
@@ -523,6 +534,7 @@ async function run(original, filesIn, opts) {
523
534
  for (const k of audioChanged) edit('deck-audio', (t) => jsonSet(t, [k], own(newAudio, k) ? deckAudio(newAudio[k]) : undefined, Object.keys(newAudio)));
524
535
  if (srcSha !== ix.sourceSha256) edit('deck-meta', (t) => jsonSet(t, ['sourceSha256'], srcSha));
525
536
  if (identity) edit('deck-meta', (t) => jsonSet(t, ['docId'], identity.docId));
537
+ if (editsNew) edit('deck-meta', (t) => jsonSet(t, ['edits'], editsNew, ['format', 'version', 'contracts', 'player', 'generator', 'docId', 'title', 'lang', 'portable', 'sourceSha256', 'tracking', 'completion', 'license', 'copyright', 'attribution', 'creators', 'edits', 'offer']));
526
538
 
527
539
  // 8. 字の補い:変わった段階の表示の字のうち、今の文書の字(@font-face)が持たないもの
528
540
  let supplement = null, uncovered = '';
package/kit/deck.js CHANGED
@@ -2052,7 +2052,7 @@ window.addEventListener("message", function(e){
2052
2052
  // 表示のモード(Player P8):learn は talk と読む(P1)。今のモードなら同じ形で答える。読み込んだ後にモードを替えることはしない(?mode= で読み込み直す)
2053
2053
  var want = normMode(m.mode), now = ctxMode();
2054
2054
  if (want === now) post({egatari: "mode", id: m.id, mode: now});
2055
- else post({egatari: "error", id: m.id, code: "mode", message: want === "talk" || want === "video" ? "the mode is chosen when the lesson loads (?mode=)" : "unknown mode"});
2055
+ else post({egatari: "error", id: m.id, code: "mode", message: want === "talk" || want === "video" ? "the mode is chosen when the file loads (?mode=)" : "unknown mode"});
2056
2056
  } else if (EMBED && e.source === window.parent && m.egatari === "rate"){
2057
2057
  var rv = DECK.rate(m.value);
2058
2058
  if (rv !== +m.value) post({egatari: "error", id: m.id, code: "rate", message: "unsupported rate"});
@@ -2326,7 +2326,7 @@ function extLink(a){
2326
2326
  }
2327
2327
  if (d.verdict === "open"){ extOpen(d.url); return; }
2328
2328
  var notes = d.reasons.map(function(r){ return L10N(EXT_WHY[r][0], EXT_WHY[r][1]); });
2329
- var ttl = d.must ? L10N("このリンクを開いてよいか確かめてください", "Check before opening this link") : L10N("授業の外のページを開きます", "This opens a page outside the lesson");
2329
+ var ttl = d.must ? L10N("このリンクを開いてよいか確認してください", "Check before opening this link") : L10N("このファイルの外のページを開きます", "This opens a page outside this file");
2330
2330
  extDialog({title: ttl, host: d.host || d.scheme + ":", url: d.url, notes: notes, from: from,
2331
2331
  open: function(){ EXT_LP.remember(EXT.hosts, d); extOpen(d.url); }});
2332
2332
  }
@@ -2433,10 +2433,13 @@ function whenLaidOut(fn){
2433
2433
  fonts();
2434
2434
  }
2435
2435
  // 隠れていた文書はまだ字(Web フォント)を読んでいない(並べて初めて読み始める)。読み終えてから mount する(ふつうの起動の load と同じく、測る字が揃ってから)
2436
+ // 字を待つ間にまた隠れたら(出してすぐ閉じた窓・取り替えた iframe)、mount せずにもう一度並ぶのを待つ。隠れたまま mount すると部品は幅 0 で
2437
+ // 描く(m-folds の角の丸みが負の rx になり、Windows の CI でコンソールのエラーになった)
2436
2438
  function fonts(){
2437
- if (document.fonts && document.fonts.status === "loading") document.fonts.ready.then(fonts, fn);
2438
- else fn();
2439
+ if (document.fonts && document.fonts.status === "loading") document.fonts.ready.then(fonts, go);
2440
+ else go();
2439
2441
  }
2442
+ function go(){ if (laidOut()) fn(); else whenLaidOut(fn); }
2440
2443
  if (typeof ResizeObserver === "function"){ ro = new ResizeObserver(check); ro.observe(st); }
2441
2444
  window.addEventListener("resize", check); // ResizeObserver のない環境と、窓の大きさが 0 から付いたとき
2442
2445
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "instruction": "3bcb89c8"
2
+ "instruction": "ac7fb486"
3
3
  }
package/kit/live.js CHANGED
@@ -34,35 +34,35 @@ if (bad.length){ console.warn("live: ignored (" + bad.join("; ") + ")"); return;
34
34
  var JA = /^ja\b/i.test(document.documentElement.lang || "ja");
35
35
  var HOST = LP.hostOf(live.endpoint);
36
36
  var S = JA ? {
37
- title: "ライブ(質問・投票)", again: "もう一度試す", notice: "この教材から、" + HOST + " のライブでホストに質問や投票を送れます", join: "参加する", leave: "退出する", fold: "たたむ", unfold: "ひらく", badge: "ライブ", pin: "開いたままにする", pollOpen: "このステップに投票があります。ライブのパネルを開きました",
37
+ title: "ライブ(質問・投票)", again: "もう一度試す", notice: "このファイルから、" + HOST + " のライブでホストに質問や投票を送信できます", join: "参加する", leave: "退出する", fold: "たたむ", unfold: "ひらく", badge: "ライブ", pin: "開いたままにする", pollOpen: "このステップに投票があります。ライブのパネルを開きました",
38
38
  off: "接続していません", connecting: "接続しています…", connected: "参加中", waiting: "待機室で待っています", retrying: function(s){ return s + " 秒後に再接続します"; },
39
- before: function(t){ return "ライブは " + t + " に始まります"; }, after: "ライブの時間は終わりました", noNet: "この画面からは参加できません。教材のファイルをダウンロードして、ブラウザ(Chrome・Safari など)で直接開いてください。ライブ ID:",
39
+ before: function(t){ return "ライブは " + t + " に始まります"; }, after: "ライブの時間は終わりました", noNet: "この画面からは参加できません。Egatari ファイルをダウンロードして、ブラウザ(Chrome・Safari など)で直接開いてください。ライブ ID:",
40
40
  noNetLink: "この画面からは参加できません。ブラウザの新しいタブで参加できます。", openJoin: "ブラウザで参加する", joinTo: "参加先:", roomLabel: "ライブ ID:",
41
- name: "名前(任意)", nameNote: "名前はホストだけに見えます(入れなければ名前なしで送られます)", ask: "ホストへの質問", send: "送る", sent: "質問を送りました",
42
- askBtn: "ホストに質問する", askHint: "質問はホストだけが見ます。名前を入れなければ、名前なしで届きます",
43
- where: function(t){ return "質問に付く場所:" + t; }, whereStep: function(i, k){ return "スライド " + i + "・ステップ " + k; }, whereAll: "教材全体",
41
+ name: "名前(任意)", nameNote: "名前はホストだけに見えます(入力しなければ名前なしで送信されます)", ask: "ホストへの質問", send: "送信", sent: "質問を送信しました",
42
+ askBtn: "ホストに質問する", askHint: "質問はホストだけが見ます。名前を入力しなければ、名前なしで届きます",
43
+ where: function(t){ return "質問に付く場所:" + t; }, whereStep: function(i, k){ return "スライド " + i + "・ステップ " + k; }, whereAll: "ファイル全体",
44
44
  circle: "囲む", circleOn: "囲むのを終える", circleHelp: "質問したいところを、スライドの上で指やマウスでなぞって囲めます(なくてもかまいません)。Esc で終わります",
45
- circled: function(n){ return "囲んだところ:" + n + " 本"; }, clearCircle: "囲みを消す", circleGone: "ステップが変わったので、囲んだところを消しました", circleStart: "スライドの上をなぞって囲んでください。Esc で終わります", circleEnd: "囲むのを終えました",
45
+ circled: function(n){ return "囲んだところ:" + n + " 本"; }, clearCircle: "囲みを削除", circleGone: "ステップが変わったので、囲んだところを削除しました", circleStart: "スライドの上をなぞって囲んでください。Esc で終わります", circleEnd: "囲むのを終えました",
46
46
  inkLabel: "囲むところ(スライドの上)",
47
- confused: "わからない", confusedTip: "このステップがわからないことを、ホストに伝えます(文は送りません)。もう一度押すと取り消します",
47
+ confused: "わからない", confusedTip: "このステップがわからないことを、ホストに伝えます(文は送信しません)。もう一度押すと取り消します",
48
48
  confusedSent: "「わからない」をホストに伝えました", confusedOff: "「わからない」を取り消しました",
49
49
  replies: "ホストからの回答", yourQ: "あなたの質問:", gotReply: "ホストから回答が届きました", replyPrefix: "ホストの回答:", newReply: "新しい回答があります", vote: "投票する", voted: "投票しました", revote: "選び直して投票できます",
50
- shown: "ホストが全員に表示した質問", leftMsg: "切断しました。もう一度参加できます", window: function(a, b){ return a + " – " + b; }, privacy: "送るのは、送ると決めた質問(そのときのステップと、囲んだところ)・投票・「わからない」(と入れたときの名前)、この端末で作った番号だけです。見ている位置や時間は送りません",
51
- stop: {bad_key: "この教材の参加コードではライブに入れません(参加コードが違います)", room_not_found: "ライブが見つかりません", superseded: "ほかのタブやウィンドウで参加したので、ここは切れました",
52
- room_expired: "ライブの時間が終わりました", room_closed: "ホストがライブを終えました。再開したら、もう一度「参加する」を押してください", too_early: "まだライブの時間になっていません(この端末の時計も確かめてください)",
53
- room_full: "ライブが満員です。少し待ってから、もう一度参加してください", key_replaced: "ホストが参加コードを替えました。このファイルでは入れません。新しいファイルをもらってください",
54
- not_approved: "ホストが参加を認めませんでした", bad_message: "通信の規約が合いません(教材かサーバーの不具合)", window_over: "ライブの時間は終わりました", unknown: "ライブから切断されました",
55
- bad_endpoint: "接続先が教材の宣言と違うので、接続しません", network: "接続できませんでした"},
50
+ shown: "ホストが全員に表示した質問", leftMsg: "切断しました。もう一度参加できます", window: function(a, b){ return a + " – " + b; }, privacy: "送信するのは、送信した質問(そのときのステップと、囲んだところ)・投票・「わからない」(入力したときは名前)と、この端末で作った番号だけです。表示中の位置や時間は送信しません",
51
+ stop: {bad_key: "このファイルの参加コードではライブに参加できません(参加コードが違います)", room_not_found: "ライブが見つかりません", superseded: "ほかのタブやウィンドウで参加したので、ここでの接続を切断しました",
52
+ room_expired: "ライブの時間が終わりました", room_closed: "ホストがライブを終えました。再開したら、もう一度「参加する」を押してください", too_early: "まだライブの時間になっていません(この端末の時計も確認してください)",
53
+ room_full: "ライブが満員です。少し待ってから、もう一度参加してください", key_replaced: "ホストが参加コードを変更しました。このファイルでは参加できません。新しいファイルを受け取ってください",
54
+ not_approved: "ホストが参加を認めませんでした", bad_message: "通信の規約が合いません(ファイルかサーバーの不具合)", window_over: "ライブの時間は終わりました", unknown: "ライブから切断されました",
55
+ bad_endpoint: "接続先がファイルの宣言と違うので、接続しません", network: "接続できませんでした"},
56
56
  err: {unknown_activity: "この質問・投票はライブにありません", wrong_kind: "質問・投票の種類が違います", bad_choice: "選択肢がありません", text_too_long: "質問が長すぎます", empty_text: "質問が空です",
57
- rate_limited: "送るのが速すぎます。少し待ってください", quota_exceeded: "送れる数を超えました", room_limit: "ライブがいっぱいで受け付けられませんでした", not_admitted: "ホストの許可を待っています", bad_region: "囲んだところを送れませんでした。囲みを消して送ってください", other: "送れませんでした"}
57
+ rate_limited: "送信の間隔が短すぎます。少し待ってください", quota_exceeded: "送信できる数を超えました", room_limit: "ライブがいっぱいで受け付けられませんでした", not_admitted: "ホストの許可を待っています", bad_region: "囲んだところを送信できませんでした。囲みを削除して送信してください", other: "送信できませんでした"}
58
58
  } : {
59
- title: "Live (questions and polls)", again: "Try again", notice: "From this lesson you can send questions and votes to the host through Live at " + HOST, join: "Join", leave: "Leave", fold: "Fold", unfold: "Unfold", badge: "Live", pin: "Keep open", pollOpen: "This step has a poll. The Live pane is open",
59
+ title: "Live (questions and polls)", again: "Try again", notice: "From this file you can send questions and votes to the host through Live at " + HOST, join: "Join", leave: "Leave", fold: "Fold", unfold: "Unfold", badge: "Live", pin: "Keep open", pollOpen: "This step has a poll. The Live pane is open",
60
60
  off: "Not connected", connecting: "Connecting…", connected: "Joined", waiting: "Waiting in the waiting room", retrying: function(s){ return "Reconnecting in " + s + " s"; },
61
- before: function(t){ return "The Live starts at " + t; }, after: "The live time is over", noNet: "You cannot join from this screen. Download the lesson file and open it directly in a browser (Chrome, Safari, …). Live ID: ",
61
+ before: function(t){ return "The Live starts at " + t; }, after: "The live time is over", noNet: "You cannot join from this screen. Download the Egatari file and open it directly in a browser (Chrome, Safari, …). Live ID: ",
62
62
  noNetLink: "You cannot join from this screen. You can join in a new browser tab.", openJoin: "Join in the browser", joinTo: "Goes to: ", roomLabel: "Live ID: ",
63
63
  name: "Name (optional)", nameNote: "Only the host sees your name (leave it empty to send without one)", ask: "Question for the host", send: "Send", sent: "Question sent",
64
64
  askBtn: "Ask the host a question", askHint: "Only the host sees questions. Without a name, they arrive without one",
65
- where: function(t){ return "The question is tied to: " + t; }, whereStep: function(i, k){ return "slide " + i + ", step " + k; }, whereAll: "the whole lesson",
65
+ where: function(t){ return "The question is tied to: " + t; }, whereStep: function(i, k){ return "slide " + i + ", step " + k; }, whereAll: "the whole file",
66
66
  circle: "Circle", circleOn: "Stop circling", circleHelp: "You can circle what you are asking about by tracing on the slide with a finger or the mouse (optional). Esc stops",
67
67
  circled: function(n){ return "Circled: " + n + (n === 1 ? " stroke" : " strokes"); }, clearCircle: "Clear the circle", circleGone: "The step changed, so the circle was cleared", circleStart: "Trace on the slide to circle. Esc stops", circleEnd: "Stopped circling",
68
68
  inkLabel: "Area to circle (on the slide)",
@@ -70,11 +70,11 @@ var S = JA ? {
70
70
  confusedSent: "Told the host you don't follow", confusedOff: "Took back “I don't follow”",
71
71
  replies: "Replies from the host", yourQ: "Your question: ", gotReply: "The host replied", replyPrefix: "Host's reply: ", newReply: "There is a new reply", vote: "Vote", voted: "Vote recorded", revote: "You can change your vote",
72
72
  shown: "Questions the host showed to everyone", leftMsg: "Disconnected. You can join again", window: function(a, b){ return a + " – " + b; }, privacy: "Only what you choose to send (questions with the step on screen and anything you circled, votes, “I don't follow”, and a name if you type one) and a random id made on this device are sent. Your viewing position and timing are not",
73
- stop: {bad_key: "This lesson's join code does not open the Live (wrong join code)", room_not_found: "The Live does not exist", superseded: "You joined in another tab or window, so this one was disconnected",
73
+ stop: {bad_key: "This file's join code does not open the Live (wrong join code)", room_not_found: "The Live does not exist", superseded: "You joined in another tab or window, so this one was disconnected",
74
74
  room_expired: "The live time is over", room_closed: "The host ended the Live. When it reopens, press Join again", too_early: "The Live has not started yet (also check this device's clock)",
75
75
  room_full: "The Live is full. Wait a little and join again", key_replaced: "The host replaced the join code: this file can no longer join. Ask for a new file",
76
- not_approved: "The host did not admit you", bad_message: "Protocol mismatch (a bug in the lesson or the server)", window_over: "The live time is over", unknown: "Disconnected by the Live",
77
- bad_endpoint: "The address does not match the one the lesson declares; not connecting", network: "Could not connect"},
76
+ not_approved: "The host did not admit you", bad_message: "Protocol mismatch (a bug in the file or the server)", window_over: "The live time is over", unknown: "Disconnected by the Live",
77
+ bad_endpoint: "The address does not match the one the file declares; not connecting", network: "Could not connect"},
78
78
  err: {unknown_activity: "This question or poll is not in the Live", wrong_kind: "Wrong kind of question or poll", bad_choice: "No such choice", text_too_long: "The question is too long", empty_text: "The question is empty",
79
79
  rate_limited: "Sending too fast. Wait a moment", quota_exceeded: "You have reached the maximum you can send", room_limit: "The Live is full and could not take it", not_admitted: "Waiting for the host to admit you", bad_region: "The circle could not be sent. Clear it and send again", other: "Could not send"}
80
80
  };
package/kit/player.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "egatari-player",
3
- "version": "1.8.0",
3
+ "version": "1.9.1",
4
4
  "title": "Egatari Player"
5
5
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.8.0",
3
- "sha256": "db7ad59bd77fbb7481c5730265d8c2271221cfe51a46f5c9484529a5676f41be"
2
+ "version": "1.9.1",
3
+ "sha256": "2ac85da2684660938ecddf704672966e8953f97dc0dca82e95eb40a5f1852a56"
4
4
  }
package/kit/presenter.js CHANGED
@@ -13,8 +13,8 @@ var L = DECK.ja === false
13
13
  feedback: "Send feedback", back: "Back", close: "Close presenter view (p)", tap: "Click here to control", black: "Black screen", blackT: "The audience screen is black (b, or click it, to return)",
14
14
  legend: [["→/Space", "next"], ["←", "prev"], ["a", "autoplay"], ["b", "black screen"], ["x", "laser pointer"], ["d", "pen"], ["v", "fading pen"], ["o", "overview"], ["Esc", "exit tool / close"], ["p", "close"]]}
15
15
  : {cur: "今の画面", nextFrame: "次のスライド", end: "終わり", auto: "自動再生", stop: "停止", autoKey: "自動再生(a)", reset: "経過時間を戻す", next: "次のスライド", notes: "台本", slide: "スライド ", step: "ステップ ", none: "(台本なし)", nextStep: "次のステップ",
16
- laser: "レーザーポインター(x)", pen: "ペン(d)", color: "ペンの色", vpen: "消えるペン(v)", clear: "書き込みを消す", over: "本体でスライド一覧(o)", lect: "先のステップを薄く見せる(l)",
17
- feedback: "フィードバックを送る", back: "戻る", close: "発表者ビューを閉じる(p)", tap: "ここを押すと操作できます", black: "黒い画面中", blackT: "本体の画面は真っ黒です(b か、本体の画面のクリックで戻る)",
16
+ laser: "レーザーポインター(x)", pen: "ペン(d)", color: "ペンの色", vpen: "消えるペン(v)", clear: "書き込みを消去", over: "本体でスライド一覧(o)", lect: "先のステップを薄く見せる(l)",
17
+ feedback: "フィードバックを送信", back: "戻る", close: "発表者ビューを閉じる(p)", tap: "ここを押すと操作できます", black: "黒い画面中", blackT: "本体の画面は真っ黒です(b か、本体の画面のクリックで戻る)",
18
18
  legend: [["→/Space", "次"], ["←", "前"], ["a", "自動再生"], ["b", "黒い画面"], ["x", "レーザーポインター"], ["d", "ペン"], ["v", "消えるペン"], ["o", "一覧"], ["Esc", "解除・閉じる"], ["p", "閉じる"]]};
19
19
  // 道具のボタン:[絵の名前, キー(DECK.ptools.key に渡す), 表示するキー]
20
20
  var TOOLS = [["laser", "x", "x"], ["pen", "d", "d"], ["vpen", "v", "v"], ["clear", "clear", "⌫"], ["over", "o", "o"], ["lect", "l", "l"]];
@@ -190,7 +190,9 @@ DECK.presenterView = function(){
190
190
  tap.addEventListener("click", function(e){ e.preventDefault(); e.stopPropagation(); try { window.focus(); } catch (err) {} unTap(); });
191
191
  window.addEventListener("focus", unTap);
192
192
  document.addEventListener("keydown", unTap, true); // キーが届いているなら覆いはいらない
193
- try { window.focus(); } catch (e) {}
193
+ // 枠の中(編集アプリの #pf)では、使う人の操作なしに focus() を呼ぶと Chrome 158 から権限の方針の違反(focus-without-user-activation)になる。
194
+ // 枠のときは窓(app/main.js の PRES_DOC)がフォーカスを持つので、自分の窓のときだけ呼ぶ
195
+ if (window.parent === window) { try { window.focus(); } catch (e) {} }
194
196
  // 編集アプリの窓の中の枠(#pf)では、枠の hasFocus は窓にフォーカスがあっても false のことがある。窓(app/main.js の PRES_DOC)が自分の hasFocus を見て知らせる
195
197
  if (window.parent !== window) window.addEventListener("message", function(e){ if (e.source === window.parent && e.data && e.data.type === "app-pres-tap" && !document.hasFocus()) tap.hidden = false; });
196
198
  else setTimeout(function(){ if (!document.hasFocus()) tap.hidden = false; }, 300);
@@ -18,7 +18,7 @@ const T = EN ? {
18
18
  venue: 'Event or course name',
19
19
  au: 'Your name<br>Affiliation',
20
20
  hint: [
21
- 'A new lesson made by `npm run new`. Replace the sample slides with your own.',
21
+ 'New slides made by `npm run new`. Replace the sample slides with your own.',
22
22
  'Each sample shows one feature: steps (data-step), math (KaTeX, \\hlE, \\htmlId), emphasis ({mark} in narration.md) and a part (m-sweep).',
23
23
  'Keys: → / Space next step, ← previous, p presenter view, a autoplay, l Lecture view, ? list of keys',
24
24
  ],
@@ -31,10 +31,10 @@ const T = EN ? {
31
31
  },
32
32
  s2: {
33
33
  h: 'Math and emphasis',
34
- p: 'Math in TeX notation is typeset with KaTeX when the lesson is built',
34
+ p: 'Math in TeX notation is typeset with KaTeX when the slides are built',
35
35
  li: ['<code>\\hlE{…}</code> colors a term with the theme', '<code>{mark:ID}</code> in the script emphasizes a part of the slide'],
36
36
  concl: '→ Point at what you are talking about',
37
- n: ['Math is typeset when the lesson is built.', 'Here is a straight line.', 'A highlighted term uses the theme color.', 'Emphasis in the script can {mark:slope|circle}circle the slope while you say it.'],
37
+ n: ['Math is typeset when the slides are built.', 'Here is a straight line.', 'A highlighted term uses the theme color.', 'Emphasis in the script can {mark:slope|circle}circle the slope while you say it.'],
38
38
  nc: 'Use emphasis to point at what you are talking about.',
39
39
  },
40
40
  s3: {
@@ -47,12 +47,12 @@ const T = EN ? {
47
47
  },
48
48
  s4: { h: 'Summary', li: ['Steps follow the order you speak', 'Math and emphasis point at what matters', 'Parts animate with the steps'],
49
49
  n: ['To sum up.', 'Steps follow the order you speak.', 'Math and emphasis point at what matters.', 'Parts animate with the steps.'] },
50
- cover: 'Welcome. This is a new lesson.',
50
+ cover: 'Welcome. These are new slides.',
51
51
  } : {
52
52
  venue: '会の名前・授業名',
53
53
  au: '氏名<br>所属',
54
54
  hint: [
55
- '`npm run new` で作った新しい教材。サンプルのスライドを自分の内容に置き換えて使う。',
55
+ '`npm run new` で作った新しいスライド。サンプルのスライドを自分の内容に置き換えて使う。',
56
56
  'サンプルは 1 枚に 1 つの機能:ステップ(data-step)、数式(KaTeX・\\hlE・\\htmlId)、強調(narration.md の {mark})、パーツ(m-sweep)。',
57
57
  '操作:→ / Space で次のステップ、← で前、p で発表者ビュー、a で自動再生、l で授業の表示、? でキーの一覧',
58
58
  ],
@@ -81,7 +81,7 @@ const T = EN ? {
81
81
  },
82
82
  s4: { h: 'まとめ', li: ['ステップは、話す順に見せる', '数式と強調で、大事な所を指す', 'パーツは、ステップに合わせて動く'],
83
83
  n: ['まとめます。', 'ステップは、話す順に見せます。', '数式と強調で、大事な所を指します。', 'パーツは、ステップに合わせて動きます。'] },
84
- cover: 'ようこそ。これは新しい教材です。',
84
+ cover: 'ようこそ。これは新しいスライドです。',
85
85
  };
86
86
 
87
87
  const deck = `<!DOCTYPE html>
package/kit/tools.js CHANGED
@@ -776,8 +776,8 @@ if (RA){
776
776
  function press(k, shift){ document.dispatchEvent(new KeyboardEvent("keydown", {key: k, shiftKey: !!shift, bubbles: true, cancelable: true})); }
777
777
  var JA = DECK.ja !== false;
778
778
  var TIP = JA
779
- ? {prev: "前へ", next: "次へ", auto: "再生", laser: "レーザーポインター", pen: "ペン", vpen: "消えるペン", clear: "書き込みを消す", over: "スライド一覧", view: "表示",
780
- lect: "先のステップを薄く見せる", cap: "字幕", mute: "効果音を消す", read: "読み上げで聞く(音声ファイルにはなりません)", pres: "発表者ビュー", full: "全画面", help: "キーの一覧", ink: "マーカー"}
779
+ ? {prev: "前へ", next: "次へ", auto: "再生", laser: "レーザーポインター", pen: "ペン", vpen: "消えるペン", clear: "書き込みを消去", over: "スライド一覧", view: "表示",
780
+ lect: "先のステップを薄く見せる", cap: "字幕", mute: "効果音をミュート", read: "読み上げで聞く(音声ファイルにはなりません)", pres: "発表者ビュー", full: "全画面", help: "キーの一覧", ink: "マーカー"}
781
781
  : {prev: "Previous", next: "Next", auto: "Play", laser: "Laser pointer", pen: "Pen", vpen: "Fading pen", clear: "Clear ink", over: "Slide overview", view: "View",
782
782
  lect: "Show later steps faintly", cap: "Captions", mute: "Mute sound effects", read: "Listen with read-aloud (not saved as audio)", pres: "Presenter view", full: "Fullscreen", help: "Keyboard shortcuts", ink: "Marker"};
783
783
  // 再生(Player P1):前へ・再生 / 一時停止・次へ・再生速度。帯の前へ・次へは再生の状態を保つ(DECK.playStep。キーの ← → は発表者の送りで、再生を止める)。
@@ -1044,7 +1044,7 @@ function helpHtml(){
1044
1044
  row(K("?"), j ? "このキーの一覧" : "This help")]))),
1045
1045
  sec(j ? "ツール" : "Tools", [
1046
1046
  row(K("x"), j ? "レーザーポインター" : "Laser pointer"), row(K("d"), j ? "ペン" : "Pen"), row(K("v"), j ? "消えるペン" : "Fading pen"),
1047
- row(K("Shift") + "+" + K("d"), j ? "ペンの色" : "Pen color"), row(K("Backspace"), j ? "ペンのとき:書き込みを消す(Shift で全部)" : "With a pen: clear ink (Shift: all slides)"),
1047
+ row(K("Shift") + "+" + K("d"), j ? "ペンの色" : "Pen color"), row(K("Backspace"), j ? "ペンのとき:書き込みを消去(Shift で全部)" : "With a pen: clear ink (Shift: all slides)"),
1048
1048
  row(K("Esc"), j ? "ツールを解除" : "Exit tool")])
1049
1049
  ];
1050
1050
  if (isDev()) cols.push(sec(j ? "開発サーバー" : "Dev server", [
@@ -1055,7 +1055,7 @@ function helpHtml(){
1055
1055
  var fb = DECK.feedbackUrl && DECK.feedbackUrl();
1056
1056
  var about = aboutHtml();
1057
1057
  var fbHtml = fb ? '<div class="dt-fb"><a href="' + fb.replace(/&/g, "&amp;").replace(/"/g, "&quot;") + '" target="_blank" rel="noopener">' +
1058
- (j ? "フィードバックを送る" : "Send feedback") + "</a>" +
1058
+ (j ? "フィードバックを送信" : "Send feedback") + "</a>" +
1059
1059
  (DECK.VERSION && !about ? '<span class="dt-ver">v' + DECK.VERSION + "</span>" : "") + "</div>" : "";
1060
1060
  return '<div class="dt-card"><div class="dt-cols">' + cols.join("") + '</div><div class="dt-foot">' +
1061
1061
  (j ? "ツールバーのボタンでも同じ操作ができます · ? / Esc で閉じる" : "The buttons in the toolbar do the same · ? / Esc to close") + "</div>" +
@@ -1063,7 +1063,7 @@ function helpHtml(){
1063
1063
  '<div class="dt-foot dt-pres-tip">' + (j ? "発表者ビューから抜けられないとき:Mac は cmd+Tab で本体のウィンドウに戻って p(Windows は Alt+Tab)"
1064
1064
  : "Stuck in the presenter view? On a Mac, press cmd+Tab to get back to the main window, then p (on Windows, Alt+Tab)") + "</div>" + rightsHtml() + aiHtml() + attHtml() + about + fbHtml + "</div>";
1065
1065
  }
1066
- // ファイルの情報(format spec §7.3:題名・作成者・著作権・ライセンス・クレジットの表示)。deck-meta から出し、deck-meta にない項目は索引の metadata から
1066
+ // ファイルの情報(format spec §7.3:題名・作成者・編集・著作権・ライセンス・クレジットの表示)。deck-meta から出し、deck-meta にない項目は索引の metadata から
1067
1067
  // (deck-meta に creators を写す前の版の 1 ファイル向け。再生専用の派生と作業フォルダの組み立ては索引を持たない)。どれもなければ出さない。
1068
1068
  // ライセンスだけがないときは「書かれていません」(エディタのファイルの情報と同じ)
1069
1069
  var RIGHTS_IX = null;
@@ -1080,10 +1080,17 @@ function rightsHtml(){
1080
1080
  };
1081
1081
  var pick = function(k){ return Object.prototype.hasOwnProperty.call(M, k) ? M[k] : md()[k]; };
1082
1082
  var title = str(pick("title")), creators = list(pick("creators")), copyright = str(pick("copyright")), license = str(pick("license")), attribution = str(pick("attribution"));
1083
- if (!creators.length && !copyright && !license && !attribution) return "";
1083
+ // 編集の記録(§3.6.1):作成者の後に、古い順に 1 件 1 行。名前のない項目は「元の教材から編集されています」(直した部分を作成者のものに見せない)
1084
+ var edits = Array.isArray(pick("edits")) ? pick("edits").filter(function(x){ return x && typeof x === "object" && !Array.isArray(x); }).slice(0, 50) : [];
1085
+ if (!creators.length && !copyright && !license && !attribution && !edits.length) return "";
1084
1086
  var rows = [];
1085
1087
  if (title) rows.push([j ? "題名" : "Title", title]);
1086
1088
  if (creators.length) rows.push([j ? "作成者" : "Created by", creators.join(j ? "、" : ", ")]);
1089
+ edits.forEach(function(x){
1090
+ var by = str(x.by).slice(0, 300), note = str(x.note).slice(0, 300);
1091
+ var what = by || (j ? "元のファイルから編集されています" : "Edited from the original file");
1092
+ rows.push([j ? "編集" : by ? "Edited by" : "Edited", what + (note ? (j ? "(" + note + ")" : " (" + note + ")") : "")]);
1093
+ });
1087
1094
  if (copyright) rows.push([j ? "著作権" : "Copyright", copyright]);
1088
1095
  rows.push([j ? "ライセンス" : "License", license || (j ? "書かれていません" : "not stated")]);
1089
1096
  if (attribution) rows.push([j ? "クレジットの表示" : "Attribution", attribution]);
package/kit/track.js CHANGED
@@ -260,7 +260,7 @@ function schedule(){ if (!tickT && document.visibilityState !== "hidden") tickT
260
260
  // ---------------------------------------------------------------- 起動
261
261
  function notice(){
262
262
  var d = document.createElement("div"); d.id = "deck-track-notice"; d.setAttribute("role", "status");
263
- d.textContent = JA ? "進行状況を記録できなくなりました。記録するには、この教材を開いた学習サイト(LMS)から開き直してください。" : "Progress can no longer be recorded. To record it, reopen this lesson from your learning platform (LMS).";
263
+ d.textContent = JA ? "進行状況を記録できなくなりました。記録するには、このファイルを開いた学習サイト(LMS)から開き直してください。" : "Progress can no longer be recorded. To record it, reopen this file from your learning platform (LMS).";
264
264
  d.style.cssText = "position:fixed;left:50%;top:12px;transform:translateX(-50%);z-index:60;max-width:min(92vw,560px);padding:8px 14px;border-radius:8px;" +
265
265
  "background:rgba(20,20,20,.9);color:#fff;font:14px/1.5 -apple-system,BlinkMacSystemFont,'Hiragino Sans','Segoe UI',sans-serif";
266
266
  document.body.appendChild(d);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egatari",
3
- "version": "0.6.14",
3
+ "version": "0.6.16",
4
4
  "license": "MIT",
5
5
  "homepage": "https://studio.egatari.org/",
6
6
  "repository": {
@@ -75,8 +75,9 @@
75
75
  "comment-shots": "node tools/comment-shots.mjs",
76
76
  "release:assets": "node tools/release-assets.mjs",
77
77
  "gen": "node tools/catalog.mjs && node tools/make-llm-guide.mjs && node tools/katex-ranges.mjs && node tools/make-colab-notebook.mjs",
78
- "gen:check": "node tools/components-update.mjs --check && node tools/themes-lock.mjs --check && node tools/fonts-vendor.mjs --check && node tools/catalog.mjs --check && node tools/make-llm-guide.mjs --check && node tools/part-labels-check.mjs && node tools/katex-ranges.mjs --check && node tools/changelog.mjs --check && node tools/make-colab-notebook.mjs --check && node tools/part-thumbs.mjs --check && node tools/example-covers.mjs --check && node tools/examples-sync.mjs --check && node tools/parts-gallery.mjs --verify && node tools/build-book-tools.mjs --check",
78
+ "gen:check": "node tools/components-update.mjs --check && node tools/themes-lock.mjs --check && node tools/fonts-vendor.mjs --check && node tools/catalog.mjs --check && node tools/make-llm-guide.mjs --check && node tools/part-labels-check.mjs && node tools/katex-ranges.mjs --check && node tools/changelog.mjs --check && node tools/make-colab-notebook.mjs --check && node tools/part-thumbs.mjs --check && node tools/theme-thumbs.mjs --check && node tools/example-covers.mjs --check && node tools/examples-sync.mjs --check && node tools/parts-gallery.mjs --verify && node tools/build-book-tools.mjs --check",
79
79
  "thumbs": "node tools/part-thumbs.mjs",
80
+ "theme-thumbs": "node tools/theme-thumbs.mjs",
80
81
  "covers": "node tools/example-covers.mjs",
81
82
  "changelog": "node tools/changelog.mjs",
82
83
  "components:update": "node tools/components-update.mjs",
@@ -122,6 +123,7 @@
122
123
  "@fontsource/source-serif-4": "5.3.1",
123
124
  "@fontsource/zen-maru-gothic": "5.3.1",
124
125
  "ajv": "8.20.0",
126
+ "axe-core": "4.14.0",
125
127
  "esbuild": "0.28.2",
126
128
  "markdown-it": "14.3.3",
127
129
  "myst-ext-exercise": "1.0.10",
package/server/dev.mjs CHANGED
@@ -20,7 +20,7 @@ import { narrationWord, applyNarrationReading } from '../kit/core/narration-core
20
20
  import { checkWord, isWellFormedReading } from '../kit/core/readings.mjs';
21
21
  import { safeWriteFile, readContained, backupFile, pruneBackups } from '../kit/safe-fs.mjs';
22
22
  import { READ_LIMITS, ReadOverError, utf8Length } from '../kit/bounded-read.mjs';
23
- import { normPin, entryStrokes, strokesCentroid } from '../kit/core/comment-core.mjs';
23
+ import { normPin, entryStrokes, strokesCentroid, normPart } from '../kit/core/comment-core.mjs';
24
24
  import { userThemeDirs } from '../kit/theme-dirs.mjs';
25
25
 
26
26
  const HERE = path.dirname(fileURLToPath(import.meta.url));
@@ -448,8 +448,9 @@ const server = http.createServer(async (req, res) => {
448
448
  let pin = normPin(b.pin);
449
449
  const strokes = pin ? entryStrokes(b) : null;
450
450
  if (strokes) pin = strokesCentroid(strokes);
451
+ const part = strokes ? normPart(b.part) : null;
451
452
  const c = { id: 'c' + Date.now().toString(36) + crypto.randomBytes(2).toString('hex'), created: new Date().toISOString(),
452
- key: String(b.key || ''), range: b.range || null, ...(pin ? { pin } : {}), ...(strokes ? { strokes } : {}), quote: String(b.quote || '').slice(0, 200), comment: String(b.comment).trim(), status: 'open' };
453
+ key: String(b.key || ''), range: b.range || null, ...(pin ? { pin } : {}), ...(strokes ? { strokes } : {}), ...(part ? { part } : {}), quote: String(b.quote || '').slice(0, 200), comment: String(b.comment).trim(), status: 'open' };
453
454
  list.push(c); writeComments(list);
454
455
  console.log(`comment ${c.key}: ${c.comment.slice(0, 40)}`);
455
456
  return send(res, 200, c);