egatari 0.6.13 → 0.6.15
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.
- package/CHANGELOG.md +60 -1
- package/README.ja.md +46 -46
- package/bin/egatari.mjs +6 -6
- package/components.lock.json +507 -153
- package/components2.lock.json +1710 -33
- package/kit/build.mjs +3 -1
- package/kit/check-messages.mjs +23 -8
- package/kit/check.mjs +27 -15
- package/kit/core/article-messages.mjs +4 -4
- package/kit/core/article-render.mjs +1 -1
- package/kit/core/article-text.mjs +3 -1
- package/kit/core/build-core.mjs +28 -6
- package/kit/core/check-parity.mjs +3 -1
- package/kit/core/check-rules.mjs +6 -4
- package/kit/core/colab-core.mjs +3 -3
- package/kit/core/comment-core.mjs +6 -0
- package/kit/core/image-size.mjs +35 -0
- package/kit/core/layout-scan.mjs +89 -2
- package/kit/core/llm-fix.mjs +39 -6
- package/kit/core/llm-pack-assemble.mjs +5 -2
- package/kit/core/llm-pack-data.mjs +269 -83
- package/kit/core/llm-pack.mjs +3 -3
- package/kit/core/new-deck.mjs +17 -3
- package/kit/core/part-labels.mjs +9 -3
- package/kit/core/parts2.mjs +1 -1
- package/kit/core/player.mjs +18 -0
- package/kit/core/portable.mjs +44 -4
- package/kit/core/purposes.mjs +6 -3
- package/kit/core/readable-parts.mjs +42 -0
- package/kit/core/themes-lock.mjs +1 -1
- package/kit/core/tier-a.mjs +14 -2
- package/kit/deck.js +49 -2
- package/kit/instruction-version.json +1 -1
- package/kit/live.js +6 -6
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/presenter.js +3 -1
- package/kit/readable-parts.mjs +25 -0
- package/kit/tools.js +11 -4
- package/package.json +4 -2
- package/server/dev.mjs +7 -6
- package/server/editor-ui.js +9 -4
- package/server/hints.js +22 -2
- package/tts/yomi.yaml +1 -1
- package/vendor/components/CATALOG.md +21 -14
- package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/README.en.md +40 -0
- package/vendor/components/sha256/000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b/index.js +408 -0
- package/vendor/components/sha256/0396a1895978803ae342b7f598f187b17ead47800e8f8317a5cb041111349813/index.js +278 -0
- package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/README.en.md +26 -0
- package/vendor/components/sha256/07b8bfd9240585ee76082632c6f9483017d46ad3c74e509e715c27294970606c/index.js +322 -0
- package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/README.en.md +54 -0
- package/vendor/components/sha256/08778858e2fb42765077b50e08f848089b1d11ea394909a4f611557b94b3acf2/index.js +470 -0
- package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/README.en.md +18 -0
- package/vendor/components/sha256/0a08eb254e59cb306adb32c940ffe54e88efa3c9b7ef05ee021c38995996e742/index.js +279 -0
- package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/README.en.md +31 -0
- package/vendor/components/sha256/1001b3cfcd3fbc34370accbb37aa550c8cadbb54bf8e8155d417219de3797be9/index.js +267 -0
- package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/README.en.md +53 -0
- package/vendor/components/sha256/109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537/index.js +171 -0
- package/vendor/components/sha256/1117758820dc561f41cf9d1cc0bab8cf3173cde7771ac10a12b94c96007c0f55/index.js +268 -0
- package/vendor/components/sha256/137017ad452afe209bdff81bc02ffae99c6b60a1c4aed2383515974f65511ff2/index.js +205 -0
- package/vendor/components/sha256/1a1471ba5f68e54304825a64e736afeda421e3763cdcbcdab2e45509562a0291/index.js +607 -0
- package/vendor/components/sha256/1b15fcc12b2fa43821e6299e87aae31aa69dbbc5a0d1b80088a5d7c5f8b8f7f5/index.js +429 -0
- package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/README.en.md +23 -0
- package/vendor/components/sha256/1cc1732d052e58f7913ee50c0fc834d896db6b00ba779164de11b442347863db/index.js +147 -0
- package/vendor/components/sha256/21c099461befc0d382ddfe982f2a6cd8eeb6dd731252164ac619525e4bacdf0d/index.js +242 -0
- package/vendor/components/sha256/2352e0e22460f4a3c46dca6cef27cd9c63f161a411f1cf56c75c585e9124503c/index.js +315 -0
- package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/README.en.md +53 -0
- package/vendor/components/sha256/2564dd8096be4cb3ba43703dc76029c1ba3965b831e430597c754865df4b67f4/index.js +171 -0
- package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/README.en.md +38 -0
- package/vendor/components/sha256/2bae0f89ba91574c6ffb654e246365acd9aaf16a7aae92d95e1bad045671fbd2/index.js +414 -0
- package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/README.en.md +45 -0
- package/vendor/components/sha256/2c68c355d60fdc879728c39245b7cf964b193628b63e9ab87df09c6bc2bfa7d3/index.js +211 -0
- package/vendor/components/sha256/2f111b900898579b3ec1611c2110db336a46d9133171a0cbb125ee37bd1f24f8/index.js +592 -0
- package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/README.en.md +45 -0
- package/vendor/components/sha256/2fd81df4107ecb28c0dcecfdb3fd8fb9a474b5a7e0aeb16d8c0c6b1275c3a178/index.js +211 -0
- package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/README.en.md +20 -0
- package/vendor/components/sha256/337febae1374670413653c453feee7cec169892e130248617c6642a91678564e/index.js +310 -0
- package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/README.en.md +35 -0
- package/vendor/components/sha256/38f6385118112c679b520909d677935176e0c7aa2183a877324eeb5108606eae/index.js +179 -0
- package/vendor/components/sha256/3af0b84b1799fc64ec74d6da9cbd343eccd89e8a11c81bfb444562c911284442/index.js +342 -0
- package/vendor/components/sha256/3c69bf3b3c6b9f76048fbc0839b3aa9699723570086d3d44bac799230ed6de5b/index.js +121 -0
- package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/README.en.md +37 -0
- package/vendor/components/sha256/3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca/index.js +501 -0
- package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/README.en.md +38 -0
- package/vendor/components/sha256/41b82d13037c4597e560cf2b3adebea4495ebb4711a8bb82b1a84495839b8fc8/index.js +414 -0
- package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/README.en.md +30 -0
- package/vendor/components/sha256/4220949efd68ff86e73ee6a0920b9f5b53f445cfcd657db72ecb2b55da1cc019/index.js +305 -0
- package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/README.en.md +31 -0
- package/vendor/components/sha256/47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae/index.js +236 -0
- package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/README.en.md +21 -0
- package/vendor/components/sha256/4b515bfb3a39a6c1e2b04f235affc5bc84e74d80bfd7f9e6d9b5d84d0a9eeb57/index.js +108 -0
- package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/README.en.md +28 -0
- package/vendor/components/sha256/4e7ba7759ddebfa5432b733e5f10abfd336ef7d6cc4d46305d5ff7d00ed3a423/index.js +213 -0
- package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/README.en.md +35 -0
- package/vendor/components/sha256/52149f061935e65502b8353cf70285bba93ab24451d2daac26b994d3901d3864/index.js +179 -0
- package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/README.en.md +53 -0
- package/vendor/components/sha256/5644e63364f46ee53d5f8623355149753147cdc4720e4c66fc9b8a32627e68a5/index.js +171 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/chords.json +89 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/extras.json +192 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/fixtures/ties.json +360 -0
- package/vendor/components/sha256/5662bea8cc48f484ccf14c5a8ac12d64b2c5ab032a26176d133ed3a8eb33a557/index.js +508 -0
- package/vendor/components/sha256/59996a56df462b36e24a928d4397c9308d9e39ad8224ebd19fb5c981608ef458/index.js +521 -0
- package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/README.en.md +30 -0
- package/vendor/components/sha256/5afcaf27e9209a32a8a8e6667b637ea434326b76f563689552716de953c94a98/index.js +305 -0
- package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/README.en.md +30 -0
- package/vendor/components/sha256/5cf9baec12bac716d9218d6fbc4f95446adf31658da62564aa403bb5bdee542e/index.js +192 -0
- package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/README.en.md +20 -0
- package/vendor/components/sha256/5ffac218340cc51ce842a530f6021fc916090376b243e2ad5d4c0ef48a040ce9/index.js +307 -0
- package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/README.en.md +24 -0
- package/vendor/components/sha256/6084fd3102b7d450db3804120ac27aa585ab44937734d980fb50c51f39fc98a7/index.js +554 -0
- package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/README.en.md +25 -0
- package/vendor/components/sha256/60e3e41c34034e16f9f7ee9ce6c8d669ebb753614989fc2e5e181ef295e83631/index.js +316 -0
- package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/README.en.md +18 -0
- package/vendor/components/sha256/6156a8a03235e1ed92d3cd3ba1f40df86667059003d82e47297bd3917ef562b8/index.js +279 -0
- package/vendor/components/sha256/624acb997c4975ace65570b529b3ba00baa421c80ecb7fc80f392a64e8c573a7/index.js +107 -0
- package/vendor/components/sha256/62602488ee33dd4bdef8516de16da5ab27d7f7265d5041681beab80e08f1d482/index.js +97 -0
- package/vendor/components/sha256/67eaf344bddac79b74ed03fdcd70285c7b52b160e6c5ffbd6897848179aa5230/index.js +818 -0
- package/vendor/components/sha256/682c9c8871eccd19ff1264e0323a2e4c5798b0488b612ba0339c6fe85aab5914/index.js +926 -0
- package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/README.en.md +51 -0
- package/vendor/components/sha256/6937967bbf62098aca7cef99f14f97fa11c861a12da6a1d8fe5fa55a6b4551f2/index.js +230 -0
- package/vendor/components/sha256/72138936ed0b8fd3cb0214ae7ed250ae3f1f8b21ed6fd593544947774064ba0d/index.js +250 -0
- package/vendor/components/sha256/74c1a0f3ed1370c5003aa5770ee28cea2ce994d415680116a92fdbcd5854ba62/index.js +198 -0
- package/vendor/components/sha256/76125035eb153b98befa9c735bcd9fc4f99f774dc1d082fdae40acaadfe7d95b/index.js +818 -0
- package/vendor/components/sha256/7728cf7dde88a6688aba0ed70f23f7e21362a147beac09c1fa1a4b773e08e93b/index.js +354 -0
- package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/README.en.md +23 -0
- package/vendor/components/sha256/7822f137d446604a83c1dbc3b40fdb455001dc55da12276ff3e7079d270dd143/index.js +289 -0
- package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/README.en.md +31 -0
- package/vendor/components/sha256/7c2b93508a09a5dd36639ab1329ca6d00487b326c53db436b14295174dc03369/index.js +236 -0
- package/vendor/components/sha256/7d50e50fbb6c5ec636b62509bd88ddaac1870e0522cf11bcc293ce924d48072d/index.js +312 -0
- package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/README.en.md +42 -0
- package/vendor/components/sha256/82ffee434e7f2213031190f832f3a75a8cdf59554fdbc092c0b079d6b0753cad/index.js +549 -0
- package/vendor/components/sha256/87fc302c41b2bfeea88951ed689ec01b4dc79218c4bc69b310dc2228dfa2e153/index.js +926 -0
- package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/README.en.md +24 -0
- package/vendor/components/sha256/8886ccd82d68dc1bbf5b7ffcef746074ce8a3d26414d55691dc5e691e4976ded/index.js +103 -0
- package/vendor/components/sha256/89c8c16788e24df17920542ed6eb6557dea4a10e835de8fe839e439ccbba8014/index.js +69 -0
- package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/README.en.md +44 -0
- package/vendor/components/sha256/8beed7e471fa0d6b801b5c540f69ab77220e228c58ff16b0bc2b1a6eef30800e/index.js +304 -0
- package/vendor/components/sha256/8d9af78aef44ad2f98101c67d32473373d39725a09c923969aa621d5f5b124bb/index.js +121 -0
- package/vendor/components/sha256/8f861d71df72a82be86a3e63abf7d69bbab5aac6fa68be6e077c4e19c3519ed8/index.js +312 -0
- package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/README.en.md +54 -0
- package/vendor/components/sha256/90415da5ad04e1944258e29c929c5de65c8152c829414e911ba55a84ac89f348/index.js +470 -0
- package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/README.en.md +24 -0
- package/vendor/components/sha256/91a1e0e48e20cac705cbe6e33e66a24a2851b1dc88c5164ed906bcecba4d943f/index.js +214 -0
- package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/README.en.md +33 -0
- package/vendor/components/sha256/91a9353a0c3b3744765944783aa1537b3f6ff1677c67caede643cdf2f52289cf/index.js +390 -0
- package/vendor/components/sha256/9289efef4a75afe011e54a17e34db08cfb16a450b2e0653e6a98525495cfba99/index.js +315 -0
- package/vendor/components/sha256/93256a923199ea51108cdb7491c3c96f376dbef15b64cbf1a1aa7cc5726b4970/index.js +429 -0
- package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/README.en.md +24 -0
- package/vendor/components/sha256/94f4891971b26f5bc157ef9f7f630b1528fc7e2a4c63e84e01951a5a3f94cedc/index.js +550 -0
- package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/README.en.md +28 -0
- package/vendor/components/sha256/94f4f798fdd070fc1693494e772ff479d3e694a07a0c97b6e97c3b3895cad478/index.js +213 -0
- package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/README.en.md +40 -0
- package/vendor/components/sha256/95583538da2982ec5f508217a8f2821796e6a34cf755baa66f2aaeb1c6dae814/index.js +348 -0
- package/vendor/components/sha256/97c074a5473618c65f4c23263f056870a0b7940e73475f2a1f32f68c08d8eb0f/index.js +198 -0
- package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/README.en.md +66 -0
- package/vendor/components/sha256/98e1957b1fac2d55d9bfa6a0990ead6a2730d571c988055ca280df05a0e9ea37/index.js +984 -0
- package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/README.en.md +34 -0
- package/vendor/components/sha256/99a26795f8b351ade4a4cbbea845aeb149c96b09fe96151edda57128082185fa/index.js +244 -0
- package/vendor/components/sha256/a18b2b15d00c76462a43823b5c270c7ddd7c31794da9c236f74f20f80ec2ffdb/index.js +354 -0
- package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/README.en.md +32 -0
- package/vendor/components/sha256/a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc/index.js +222 -0
- package/vendor/components/sha256/a979207c60fbd2a12cb557297eb0217eb098d660de684530a0f43d0d9c64e6ef/index.js +312 -0
- package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/README.en.md +34 -0
- package/vendor/components/sha256/aba898152e40ca44e1e7bea22242bd6897a31e0254cbfd70e426907b65379af2/index.js +244 -0
- package/vendor/components/sha256/af7ed69b8969f6da14784b6e9d26e4dfd20147772ea172a99bd936a71be10fcd/index.js +278 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/chords.json +89 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/extras.json +192 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/fixtures/ties.json +360 -0
- package/vendor/components/sha256/b08a536a07498629c026f8fc2962acda791c83a99268ac715db5e764087000e2/index.js +508 -0
- package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/README.en.md +66 -0
- package/vendor/components/sha256/b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6/index.js +990 -0
- package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/README.en.md +24 -0
- package/vendor/components/sha256/b2d9c417f258745c56c04e05dc9463a412a4978d46c3ffff2556f0b0fafbbfc2/index.js +550 -0
- package/vendor/components/sha256/b8096d7a60609520981273673761a110e40e3bdf52a7ab5548363b20e16f6e93/index.js +404 -0
- package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/README.en.md +32 -0
- package/vendor/components/sha256/b9e27e84b2c534b87d6da5da30ee808d7863cbd1b818082b4c11d1f8b7129b1a/index.js +222 -0
- package/vendor/components/sha256/bd8e3893df02411deccc1d6d7b02292ca0d59dfeddfafcf99419430981572c82/index.js +351 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/chords.json +89 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/extras.json +192 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/fixtures/ties.json +360 -0
- package/vendor/components/sha256/c201dbc3f1f790c59cc010b3be3566daa9085754614402e9dc1296dba9e87769/index.js +508 -0
- package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/README.en.md +31 -0
- package/vendor/components/sha256/c5226220649a5854d56ceeaea16722fe54a79b4197f71c51c4e1523bf22bec32/index.js +267 -0
- package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/OFL.txt +93 -0
- package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/index.js +749 -0
- package/vendor/components/sha256/c691f9c83d06502bf20f86df02ee5a516063d6af1e9ee8204aad8fd8c1a44a71/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/c791e69e722f64146242f97acb29a341160d0c327cfe1d76307954d80e70db85/index.js +268 -0
- package/vendor/components/sha256/c8c0de41d603b61c6ec4dc1da5b50559e213dd1f3693ee5019df858016fd6daf/index.js +747 -0
- package/vendor/components/sha256/c99d4f2ab443484b9f462e405c72ea4794838b88f8823f27c606d12cbbedb996/index.js +404 -0
- package/vendor/components/sha256/cbde046e30c35db60259911a88e2ae0bedaf545e29b1da8b8ce13bc602a33c19/index.js +465 -0
- package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/README.en.md +51 -0
- package/vendor/components/sha256/ccdd16ed76838ac9d6abb4ee695769bfecb802ae490ac91914ed68131ad04434/index.js +228 -0
- package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/README.en.md +35 -0
- package/vendor/components/sha256/ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e/index.js +179 -0
- package/vendor/components/sha256/cf0985ffcd8e7cbe2175ddb9a4342b2a4aa3f322794188fc99af8789b494460d/index.js +521 -0
- package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/OFL.txt +93 -0
- package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/index.js +749 -0
- package/vendor/components/sha256/cff7ed8a0e0708bcef2e13105b28810bda867251a9f205ad9c2f1a5b4f759866/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/d01dc7fd78d08dd720ed86b39d7877dc0913d72e914036088a86af2df2faee52/index.js +484 -0
- package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/README.en.md +24 -0
- package/vendor/components/sha256/d448fec2aeb436f187875c493b1592b373c6a18274ffc64231dbe3f1b54f8cbc/index.js +214 -0
- package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/README.en.md +31 -0
- package/vendor/components/sha256/d4aa3ffb394d5db7f47081b1818958547fe164bb968df03131f9400c103b97c4/index.js +271 -0
- package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/README.en.md +25 -0
- package/vendor/components/sha256/d582d02ceeaf1ec4d94115b806852ddb66c009788e67728ae0e08cb8d29ca546/index.js +316 -0
- package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/README.en.md +23 -0
- package/vendor/components/sha256/d75ab2c8f6c01082bfcaeaba44290367d6b49654e2bf538422b7b3e499de9acf/index.js +120 -0
- package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/README.en.md +40 -0
- package/vendor/components/sha256/d8f5272dac33066a04ecefa9a828ca11d18dec581866899f55433573ba4472d6/index.js +405 -0
- package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/README.en.md +66 -0
- package/vendor/components/sha256/dd1ff8de877573e30635928e9abce0b1fba8dfc95a079eca86703a884d3c3d59/index.js +984 -0
- package/vendor/components/sha256/ddd4b9cbbc282cbb3117ff662e1a14ecdb3cc7c16072a574418ec6a6eecef4d8/index.js +107 -0
- package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/README.en.md +22 -0
- package/vendor/components/sha256/e24a4235a661bfda4049e1c72b6c376066fcc65e27a2bdfe77942a3394726c81/index.js +145 -0
- package/vendor/components/sha256/e2da948daac7bfac158857877b5a6932dbd2369e73901abcef118c92dd20b725/index.js +747 -0
- package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/README.en.md +42 -0
- package/vendor/components/sha256/e40201a655bf5c556d70fbf45b5052dd48c33fc8030b331a9d9cbc96913d02a6/index.js +268 -0
- package/vendor/components/sha256/e653a4da80f7761442dc5b504ea5b0700fd0acf1979beeff56122cfdb3d4654c/index.js +607 -0
- package/vendor/components/sha256/ea217c6821e931b2d8474bf56d38f2dcc89ec705fe1d276f313e1c7e8db2b98a/index.js +233 -0
- package/vendor/components/sha256/ea2e4e24838574f607879c7d05556281258c018331e4da3e6f3a5263173f2e99/index.js +75 -0
- package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/README.en.md +42 -0
- package/vendor/components/sha256/eb0b402dc4738b2dca2918c7f64a4d6fc3c27b4ba419270bbe8240a3c8a77f0c/index.js +549 -0
- package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/README.en.md +44 -0
- package/vendor/components/sha256/f219b47f32b0a78e8f8f5dac83596acfed24dd6e8bfe3f05f8ebfb9582d64485/index.js +203 -0
- package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/README.en.md +34 -0
- package/vendor/components/sha256/f4204773037ae296786e3614b5bfd7487b0f5ba6d5cf92ce20262bb7613e1b6b/index.js +244 -0
- package/vendor/components/sha256/fa1a09c10181456143d125d68dbbdcacde6bab2e4a2b3e573367103ce28ebf55/index.js +228 -0
- package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/README.en.md +51 -0
- package/vendor/components/sha256/fa9c9f63d74a514636961bcb8af75063e00e39bdf85655ecf5d4d7bbc05a831a/index.js +228 -0
- package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/README.en.md +23 -0
- package/vendor/components/sha256/facebe095849528396ee91d7d6856cb6945ba89ca8b1f34dce488dccb29e9d40/index.js +147 -0
- package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/README.en.md +20 -0
- package/vendor/components/sha256/fb0a77a344098c53cc90215685cee32b0d31362a1de5b5ac0eee422ed2c3c430/index.js +307 -0
- package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/README.en.md +26 -0
- package/vendor/components/sha256/fc48e703adab4715157f8dbb0e33c8b5c00099358ae522484290a7098fda2910/index.js +322 -0
- package/vendor/components-2/manifest-2.12.0.json +2348 -0
- package/vendor/components-2/manifest-2.13.0.json +2477 -0
- package/vendor/components-2/manifest-2.14.0.json +2460 -0
- package/vendor/components-2/manifest-2.14.1.json +2460 -0
- package/vendor/components-2/manifest-2.15.0.json +2460 -0
- package/vendor/egatari-spec/SOURCE.json +3 -3
- package/vendor/egatari-spec/schema/deck-meta.schema.json +15 -0
- package/vendor/egatari-spec/schema/egatari-metadata.schema.json +15 -0
package/kit/core/llm-pack.mjs
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
// assemble(data, {sets, lang, plan}) buildPack の本体(材料を渡す。tools/make-llm-guide.mjs が作りたての材料で使う)
|
|
27
27
|
// TIERS パーツの段と束(パーツライブラリ 2.0 の manifest から。{catalogue, parts: {タグ: {tier, set?, purposes}}, purposes}。
|
|
28
28
|
// 新規作成 ④ のパーツの一覧:kit/core/new-deck.mjs)
|
|
29
|
-
// loadedParts(sets)
|
|
29
|
+
// loadedParts(sets, plan) その束で組み立てに入る部品(標準と、選んだ束の部品。有料のプランでは paidOnly の部品も)
|
|
30
30
|
// trimCandidates・fitPlan・fitPack 無料のプランの目安に収める(中核の 4 つを短く → 専門のパーツを外す候補に)。fitSample は「このサンプルを参考に作る」の収め方。編集アプリ(kit/core/new-deck.mjs が出し直す)と
|
|
31
31
|
// コマンド(kit/llm-pack.mjs)が同じ関数を使う
|
|
32
32
|
// partsPackOpts(tags, plan, {short, full}) 選んだパーツだけの指示の組み立ての引数 {sets, exclude, plan, short?, full?}(buildPack・packWithRequest に渡す。
|
|
@@ -40,9 +40,9 @@ export const SETS = PACK.sets;
|
|
|
40
40
|
export const TIERS = PACK.tiers;
|
|
41
41
|
export const normalizeSets = (sets) => norm(sets, PACK);
|
|
42
42
|
// その束で組み立てに入る部品(標準と、選んだ束の部品。どちらのプランでも同じ。無料のプランの BRIEF も一覧に入る)
|
|
43
|
-
export function loadedParts(sets = []) {
|
|
43
|
+
export function loadedParts(sets = [], plan = 'free') {
|
|
44
44
|
const ss = norm(sets, PACK);
|
|
45
|
-
return Object.keys(PACK.en.components).sort().filter((t) => { const
|
|
45
|
+
return Object.keys(PACK.en.components).sort().filter((t) => { const c = PACK.en.components[t]; return (c.set === STANDARD && (!c.paidOnly || plan === 'paid')) || ss.includes(c.set); });
|
|
46
46
|
}
|
|
47
47
|
export const partsPackOpts = (tags, plan = 'free', opts = {}) => packOptsOf(PACK, tags, plan, opts);
|
|
48
48
|
// 目安に収める(本体は kit/core/llm-pack-assemble.mjs。材料はこの指示の PACK)
|
package/kit/core/new-deck.mjs
CHANGED
|
@@ -13,7 +13,9 @@
|
|
|
13
13
|
// SUBJECT_SETS 教科の形の束(この順に並べる)
|
|
14
14
|
// SUB_SETS 小分類 → おすすめの束(§2.3)
|
|
15
15
|
// WORDS {ja|en: {束: [言葉]}}(§2.4。英語の画面では英語の表)
|
|
16
|
-
// partsList(sub)
|
|
16
|
+
// partsList(sub, plan) → [{id, label: {ja, en}, parts: [タグ]}](④ の並び。id は伝えたいことの id か 'subject')。
|
|
17
|
+
// plan が 'free' なら、有料のプランの指示にだけ入るパーツ(paidOnly)を出さない(plan なしは全部)
|
|
18
|
+
// paidOnly(tag) → 有料のプランの指示にだけ入るパーツか(受け皿のない束のパーツ。tools/make-llm-guide.mjs の hasReceiver)
|
|
17
19
|
// recommend({sub, text, lang}) → [{set, sub?, word?}](おすすめの束と理由。小分類が先、それから言葉。束ごとに 1 つ)
|
|
18
20
|
// initialParts(rec) → 初めに選んでおくパーツ(標準の全部とおすすめの束のパーツ。一覧の順)
|
|
19
21
|
// partsOfSet(set) → 束のパーツ(一覧に出るものだけ)
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
// 見せ方(variant。format spec §8.4)は名前だけで選ぶ。教材のシード値(data-egatari-seed)はなくなった:書かない。前の原稿にあれば、そのまま残す(誰も読まない)
|
|
35
37
|
import { updateConfig, merge, configObject } from './config-file.mjs';
|
|
36
38
|
import { TIERS, PACK_CAP_KB } from './llm-pack.mjs';
|
|
39
|
+
import { PACK } from './llm-pack-data.mjs';
|
|
37
40
|
import { partOrder } from './part-labels.mjs';
|
|
38
41
|
import { componentsOff } from './purposes.mjs';
|
|
39
42
|
|
|
@@ -95,6 +98,8 @@ export const CATEGORIES = [
|
|
|
95
98
|
export const SET_LABELS = [
|
|
96
99
|
{ set: 'stats', label: { ja: '統計の図', en: 'Statistics charts' }, inside: { ja: 'ヒストグラム・箱ひげ図・ヒートマップ', en: 'Histograms, box plots, heatmaps' } },
|
|
97
100
|
{ set: 'data', label: { ja: '情報・データサイエンス', en: 'Data science and code' }, inside: { ja: '標本抽出・信頼区間・交差検証・コードの解説', en: 'Sampling, confidence intervals, cross-validation, code walkthroughs' } },
|
|
101
|
+
{ set: 'algo', label: { ja: 'アルゴリズム', en: 'Algorithms' }, inside: { ja: 'グラフの探索・最短経路・巡回セールスマン・グラフィカルモデル', en: 'Graph search, shortest paths, the traveling salesman, graphical models' } },
|
|
102
|
+
{ set: 'ml', label: { ja: '機械学習', en: 'Machine learning' }, inside: { ja: 'ニューラルネット・2 次元の分類・等高線と勾配降下法', en: 'Neural networks, 2-D classification, contours and gradient descent' } },
|
|
98
103
|
{ set: 'math', label: { ja: '算数・数学', en: 'Arithmetic and mathematics' }, inside: { ja: '筆算・数直線・テープ図・関数', en: 'Column arithmetic, number lines, tape diagrams, functions' } },
|
|
99
104
|
{ set: 'maps', label: { ja: '地図', en: 'Maps' }, inside: { ja: '日本地図・世界地図', en: 'Maps of Japan and the world' } },
|
|
100
105
|
{ set: 'kokugo', label: { ja: '国語', en: 'Japanese language arts' }, inside: { ja: '漢文・古文・現代文・縦書き', en: 'Kanbun, kobun, modern texts, vertical writing' } },
|
|
@@ -129,6 +134,11 @@ export const WORDS = Object.freeze({
|
|
|
129
134
|
music: ['音階', '和音', { w: 'コード', not: ['ソースコード', 'バーコード', 'QRコード', 'コーディング'] }, '鍵盤', '楽譜'],
|
|
130
135
|
business: ['市場', 'KPI', '売上', '事業', 'ピッチ'],
|
|
131
136
|
tools: ['タイマー', 'ワークショップ', '演習時間', 'グループワーク'],
|
|
137
|
+
// 束 algo(部品庫 2.10.0、d5 11/15):「グラフ」単独は棒グラフ・円グラフに当たるので入れない。小分類からは推さない(SUB_SETS にない)
|
|
138
|
+
// 部品庫 2.12 の m-network 2.1.0(グラフィカルモデル・パス図・HMM のトレリス)も束 algo。統計・機械学習の授業でも言葉ですすめる(d5 11/15)
|
|
139
|
+
algo: ['探索', '最短経路', '巡回セールスマン', 'グラフ理論', 'グラフの探索', 'アルゴリズム', '幅優先', 'ダイクストラ', 'グラフィカルモデル', 'パス図', '構造方程式', 'ベイジアンネットワーク', '隠れマルコフ', 'HMM', 'マルコフ連鎖', '因果ダイアグラム'],
|
|
140
|
+
// 束 ml(部品庫 2.12・2.13:m-nnet・m-classify2d・m-contour、backlog #219)。小分類からは推さない。「等高線」は地図にも当たるので入れない
|
|
141
|
+
ml: ['機械学習', 'ニューラルネット', 'パーセプトロン', '深層学習', 'ディープラーニング', '活性化関数', '勾配降下', 'ロジスティック回帰', 'サポートベクター', 'SVM', '決定木', 'k 平均', 'k平均', 'k-means', '近傍法', '損失関数', '分類器', 'scikit-learn'],
|
|
132
142
|
},
|
|
133
143
|
en: {
|
|
134
144
|
stats: ['distribution', 'distributions', 'statistics', 'statistical', 'data', 'histogram', 'histograms', 'box plot', 'box plots', 'correlation', 'Bayes', 'Bayesian', 'estimation', 'hypothesis test', 'hypothesis testing'],
|
|
@@ -140,6 +150,8 @@ export const WORDS = Object.freeze({
|
|
|
140
150
|
music: ['musical scale', 'major scale', 'minor scale', 'chord', 'chords', 'keyboard', 'piano', 'sheet music', 'musical score'],
|
|
141
151
|
business: ['market', 'markets', 'KPI', 'KPIs', 'sales', 'revenue', 'business', 'pitch'],
|
|
142
152
|
tools: ['timer', 'workshop', 'exercise time', 'group work'],
|
|
153
|
+
algo: ['graph search', 'graph theory', 'breadth-first search', 'BFS', 'shortest path', 'traveling salesman', 'TSP', 'algorithm', 'algorithms', 'Dijkstra', 'graphical model', 'path diagram', 'structural equation', 'Bayesian network', 'hidden Markov', 'HMM', 'Markov chain', 'causal diagram'],
|
|
154
|
+
ml: ['machine learning', 'neural network', 'neural networks', 'perceptron', 'deep learning', 'activation function', 'gradient descent', 'logistic regression', 'support vector', 'SVM', 'decision tree', 'decision trees', 'k-means', 'nearest neighbor', 'nearest neighbors', 'loss function', 'classifier', 'classifiers', 'scikit-learn'],
|
|
143
155
|
},
|
|
144
156
|
});
|
|
145
157
|
|
|
@@ -154,8 +166,10 @@ const groupOf = (t) => {
|
|
|
154
166
|
return p && TIERS.purposes.some((x) => x.id === intoOf(p)) ? intoOf(p) : 'other';
|
|
155
167
|
};
|
|
156
168
|
const byTier = (a, b) => (PARTS[a].tier === 'standard' ? 0 : 1) - (PARTS[b].tier === 'standard' ? 0 : 1);
|
|
157
|
-
|
|
158
|
-
|
|
169
|
+
// 有料のプランの指示にだけ入るパーツ(材料の paidOnly)。無料のプランの ④ には出さない(印を付けても指示に入らないので)
|
|
170
|
+
export const paidOnly = (t) => !!(PACK.en.components[t] && PACK.en.components[t].paidOnly);
|
|
171
|
+
export function partsList(sub, plan) {
|
|
172
|
+
const tags = partOrder(Object.keys(PARTS).filter((t) => shown(t) && !(plan === 'free' && paidOnly(t))));
|
|
159
173
|
const groups = TIERS.purposes.filter((p) => !p.into).map((p) => ({ id: p.id, label: p.label, parts: tags.filter((t) => groupOf(t) === p.id).sort(byTier) }));
|
|
160
174
|
const other = { ...OTHER_GROUP, parts: tags.filter((t) => groupOf(t) === 'other').sort(byTier) };
|
|
161
175
|
const subject = { ...SUBJECT_GROUP, parts: SUBJECT_SETS.flatMap((s) => tags.filter((t) => groupOf(t) === 'subject' && PARTS[t].set === s)) };
|
package/kit/core/part-labels.mjs
CHANGED
|
@@ -21,9 +21,9 @@ export const MANIFEST_NAMES = Object.freeze(Object.fromEntries(Object.entries((P
|
|
|
21
21
|
const LOCAL = {
|
|
22
22
|
'm-bars': { ja: '棒グラフ', en: 'Bar chart', icon: 'bars', desc: { ja: '棒の長さで量を比べる', en: 'Compares amounts by bar length' } },
|
|
23
23
|
'm-flow': { ja: '流れ図', en: 'Flow diagram', icon: 'flow', desc: { ja: '手順や工程を矢印でつなぐ', en: 'Steps of a process joined by arrows' } },
|
|
24
|
-
'm-menu': { ja: '目次', en: 'Contents', icon: 'menu', desc: { ja: '
|
|
24
|
+
'm-menu': { ja: '目次', en: 'Contents', icon: 'menu', desc: { ja: 'スライドへのリンクを並べた目次', en: 'A contents page of links to slides' } },
|
|
25
25
|
'm-curves': { ja: '折れ線グラフ', en: 'Line chart', icon: 'line', desc: { ja: '時間とともに変わる量を線で', en: 'Values that change over time, as lines' } },
|
|
26
|
-
'm-kpi': { ja: '
|
|
26
|
+
'm-kpi': { ja: '数字のカード', en: 'Key numbers', icon: 'kpi', desc: { ja: '大事な数字を大きく見せる', en: 'Shows one important number, large' } },
|
|
27
27
|
'm-quad': { ja: 'マトリックス', en: 'Matrix', icon: 'matrix', desc: { ja: '2 つの軸で 4 つに分けて置く', en: 'Places items in four quadrants on two axes' } },
|
|
28
28
|
'm-compare': { ja: '比べる表', en: 'Comparison table', icon: 'compare', desc: { ja: '2 つ(3 つまで)を並べて項目ごとに比べる', en: 'Compares two (or three) side by side, row by row' } },
|
|
29
29
|
'm-pie': { ja: '円グラフ', en: 'Pie chart', icon: 'part', desc: { ja: '全体の中の割合', en: 'Shares of a whole' } },
|
|
@@ -61,12 +61,18 @@ const LOCAL = {
|
|
|
61
61
|
'm-mapping': { icon: 'dist', desc: { ja: '実験の結果を数値に対応させ、確率分布を作る', en: 'Maps outcomes to numbers and builds a probability distribution' } },
|
|
62
62
|
'm-sampling': { icon: 'collect', desc: { ja: '母集団から標本を取り、標本分布を積み上げる', en: 'Draws samples from a population and builds up the sampling distribution' } },
|
|
63
63
|
'm-ci': { icon: 'boxplot', desc: { ja: '区間を重ね、母平均を含む割合で信頼水準を示す', en: 'Repeated intervals; the share that contains the mean shows the confidence level' } },
|
|
64
|
-
'm-folds': { icon: 'matrix', desc: { ja: '
|
|
64
|
+
'm-folds': { icon: 'matrix', desc: { ja: 'k 分割交差検証のフォールドを順に替え、誤差と平均を示す', en: 'Rotates the validation fold and shows each error and the mean' } },
|
|
65
65
|
'm-balance': { icon: 'numberline', desc: { ja: '確率の重りを置き、期待値でつり合う様子を示す', en: 'Probabilities as weights that balance at the expected value' } },
|
|
66
66
|
'm-callout': { icon: 'callout', desc: { ja: '画面の画像に番号を置き、手順を 1 つずつ説明する', en: 'Numbered marks on a screenshot, explained one step at a time' } },
|
|
67
67
|
'm-checklist': { icon: 'checklist', desc: { ja: '確かめる項目に 1 つずつ ✓ を付ける', en: 'Items to check, ticked one at a time' } },
|
|
68
68
|
'm-diverge': { icon: 'waterfall', desc: { ja: '基準から増減を積み上げ、合計まで見せる', en: 'Increases and decreases stacked from a baseline to the total' } },
|
|
69
69
|
'm-code': { icon: 'syntax', desc: { ja: '短いコードを行ごとに説明し、出力を見せる', en: 'Explains short code line by line, then shows the output' } },
|
|
70
|
+
'm-network': { icon: 'tree', desc: { ja: 'グラフの探索や最短経路を、頂点と辺の上で 1 ステップずつ', en: 'Graph search and shortest paths, one step at a time on nodes and edges' } },
|
|
71
|
+
'm-nnet': { icon: 'flow', desc: { ja: 'ニューラルネットの順伝播を層ごとに計算して見せる', en: 'A neural network’s forward pass, computed layer by layer' } },
|
|
72
|
+
'm-classify2d': { icon: 'scatter', desc: { ja: '2 次元の点と、分類の領域・境界をモデルの出力どおりに', en: 'Points in 2-D with a classifier’s regions and boundaries, as the model output them' } },
|
|
73
|
+
'm-contour': { icon: 'heatmap', desc: { ja: '2 変数の関数の等高線と勾配、勾配降下法の道', en: 'Contours of a two-variable function, its gradient and a descent path' } },
|
|
74
|
+
'm-ctable': { icon: 'compare', desc: { ja: '分散分析表・分割表を計算のステップごとに埋める', en: 'ANOVA and contingency tables, filled in step by step' } },
|
|
75
|
+
'm-vector': { icon: 'matrix', desc: { ja: '平面のベクトルと 2 × 2 の行列の変換を 1 ステップずつ', en: 'Plane vectors and 2 × 2 matrix maps, one step at a time' } },
|
|
70
76
|
};
|
|
71
77
|
// 名前は manifest の display を先に。display だけあって表にない部品も名前を出す(絵は汎用)
|
|
72
78
|
export const PART_LABELS = Object.freeze(Object.fromEntries([...Object.keys(LOCAL), ...Object.keys(MANIFEST_NAMES).filter((t) => !LOCAL[t])]
|
package/kit/core/parts2.mjs
CHANGED
|
@@ -316,7 +316,7 @@ export function catalogueMessage(lang, a) {
|
|
|
316
316
|
: (ja ? `<${a.tag}> は、egatari.json で選んだ${cat}にないパーツです。egatari.json に ${key} と書いてください`
|
|
317
317
|
: `<${a.tag}> is not in ${cat}, which egatari.json selects. Set ${key} in egatari.json.`);
|
|
318
318
|
case 'pin': return ja
|
|
319
|
-
? `<${a.tag}> は egatari.json の components で ${a.pin}(パーツライブラリ 2.x
|
|
319
|
+
? `<${a.tag}> は egatari.json の components で ${a.pin}(パーツライブラリ 2.x のバージョン)に固定されていますが、この教材は${cat}を使います。egatari.json に ${key} と書くか、"${a.part}" の固定を外してください`
|
|
320
320
|
: `<${a.tag}> is pinned to ${a.pin} (a parts library 2.x version) under components in egatari.json, but this lesson uses ${cat}. Set ${key} in egatari.json, or remove the "${a.part}" pin.`;
|
|
321
321
|
case 'select1': return ja
|
|
322
322
|
? `<${a.tag}> は、egatari.json で選んだ${cat}にないパーツです(パーツライブラリ 1.x のパーツ)。1.x を使うには egatari.json から "componentsCatalogue" を外してください`
|
package/kit/core/player.mjs
CHANGED
|
@@ -10,6 +10,10 @@
|
|
|
10
10
|
// ファイルに書く版:中身が出した版と同じ(sha256 と版が lock と同じ)なら json.version、
|
|
11
11
|
// 違えば json.version + "+dev." + commit(commit がなければ "+dev")
|
|
12
12
|
// resolvePlayer(env) env(組み立ての env:path・ROOT・readText・exists、任意の commit)から {name, version, title, released, sha256}
|
|
13
|
+
// EDITS_SHOWN_SINCE 編集の記録(metadata.edits、format spec §3.6.1)を再生のときに表示する最初の再生器の版("1.9.0"。ここだけに書く)
|
|
14
|
+
// compareVersions(a, b) X.Y.Z(後ろの "+dev…" などの build の印は見ない)の大小:-1 | 0 | 1。読めなければ null
|
|
15
|
+
// playerShowsEdits(player) 索引の player {name, version} の再生器が edits を表示するか。Egatari Player の EDITS_SHOWN_SINCE 以上だけ true
|
|
16
|
+
// (ほかの再生器・player がない・版が読めないものは、表示するか分からないので false)
|
|
13
17
|
import { RUNTIME_MODULES, RUNTIME_NAMESPACES } from './build-core.mjs';
|
|
14
18
|
import { normalizeEol } from './identity-hash.mjs';
|
|
15
19
|
|
|
@@ -79,6 +83,20 @@ export function playerVersion(json, lock, sha256, commit) {
|
|
|
79
83
|
return `${json.version}+dev${c}`;
|
|
80
84
|
}
|
|
81
85
|
|
|
86
|
+
export const EDITS_SHOWN_SINCE = '1.9.0';
|
|
87
|
+
const CORE = /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\+[0-9A-Za-z.-]+)?$/;
|
|
88
|
+
export function compareVersions(a, b) {
|
|
89
|
+
const x = CORE.exec(String(a ?? '')), y = CORE.exec(String(b ?? ''));
|
|
90
|
+
if (!x || !y) return null;
|
|
91
|
+
for (let i = 1; i <= 3; i++) { const d = Number(x[i]) - Number(y[i]); if (d) return d < 0 ? -1 : 1; }
|
|
92
|
+
return 0;
|
|
93
|
+
}
|
|
94
|
+
export function playerShowsEdits(player) {
|
|
95
|
+
if (!isObj(player) || player.name !== PLAYER.name) return false;
|
|
96
|
+
const c = compareVersions(player.version, EDITS_SHOWN_SINCE);
|
|
97
|
+
return c !== null && c >= 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
82
100
|
export async function resolvePlayer(env) {
|
|
83
101
|
// kit/ の下は組み立てが実行系を読むところ(env.KIT)から、ほかはリポジトリの根から
|
|
84
102
|
const P = env.path, at = (rel) => (rel.startsWith('kit/') && env.KIT ? P.join(env.KIT, ...rel.slice(4).split('/')) : P.join(env.ROOT, ...rel.split('/')));
|
package/kit/core/portable.mjs
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import { boundedParse, PARSE_LIMITS } from './bounded-html.mjs';
|
|
14
14
|
import { plural } from './plural.mjs';
|
|
15
15
|
import { codeReasons } from './code-scan.mjs';
|
|
16
|
-
import { build as coreBuild, jsonScript, MIME, buildBudget, chargedEnv, BuildLimitError, DECK_META_RIGHTS, normalizeOffer, OFFER_MODES, OFFER_FACES } from './build-core.mjs';
|
|
16
|
+
import { build as coreBuild, jsonScript, MIME, buildBudget, chargedEnv, BuildLimitError, DECK_META_RIGHTS, normalizeOffer, OFFER_MODES, OFFER_FACES, normalizeEdits, editsDroppedWarning } from './build-core.mjs';
|
|
17
17
|
import { parseNarration } from './narration-core.mjs';
|
|
18
18
|
import { FORMAT } from './format.mjs';
|
|
19
19
|
import { readLock, vendorDir, resolveComponent, pinsForIndex, versionForSha, VERSION_RE } from './components-lock.mjs';
|
|
@@ -30,6 +30,7 @@ import { policyMeta, policyText, checkFilePolicy, extensionSources } from './fil
|
|
|
30
30
|
import { exportIds } from './slide-ids.mjs';
|
|
31
31
|
import { analyzeSlideIds } from './build-core.mjs';
|
|
32
32
|
import { READ_LIMITS } from './bounded-read-core.mjs';
|
|
33
|
+
import { READABLE_MARK, readablePartsOf } from './readable-parts.mjs';
|
|
33
34
|
|
|
34
35
|
// 形式の名前から作る識別子(kit/core/format.mjs だけに名前を書く)
|
|
35
36
|
const FID = FORMAT.FORMAT_ID, IX_ID = FORMAT.INDEX_ID, BP = FORMAT.BLOB_PREFIX, SCHEME = FORMAT.URI_SCHEME, CFG = FORMAT.CONFIG_FILE, RD_ID = FORMAT.READABLE_ID;
|
|
@@ -491,12 +492,21 @@ function audioRecordCheck(r, w, e) {
|
|
|
491
492
|
}
|
|
492
493
|
}
|
|
493
494
|
const strArr = (a) => Array.isArray(a) && a.every((x) => typeof x === 'string');
|
|
495
|
+
// metadata.edits・deck-meta.edits(§3.6.1):[{by?, note?}](文字の値だけ。ほかの項目は持たない)
|
|
496
|
+
function editsCheck(v, w, e) {
|
|
497
|
+
if (!Array.isArray(v)) { e.push(`${w}: not an array`); return; }
|
|
498
|
+
v.forEach((x, i) => {
|
|
499
|
+
if (!isObj(x)) { e.push(`${w}[${i}]: not an object`); return; }
|
|
500
|
+
for (const k of Object.keys(x)) if (k !== 'by' && k !== 'note') e.push(`${w}[${i}]: unknown member "${k}"`); else if (typeof x[k] !== 'string') e.push(`${w}[${i}].${k}: not a string`);
|
|
501
|
+
});
|
|
502
|
+
}
|
|
494
503
|
function metadataCheck(m, w, e) {
|
|
495
504
|
if (!isObj(m)) { e.push(`${w}: not an object`); return; }
|
|
496
505
|
if (!(typeof m.title === 'string' && m.title.length)) e.push(`${w}.title: not a non-empty string`);
|
|
497
506
|
if (!(typeof m.lang === 'string' && m.lang.length <= 64 && RE.lang.test(m.lang))) e.push(`${w}.lang: not a BCP 47 tag`);
|
|
498
507
|
for (const k of ['description', 'license', 'copyright', 'attribution']) if (own(m, k) && typeof m[k] !== 'string') e.push(`${w}.${k}: not a string`);
|
|
499
508
|
for (const k of ['creators', 'curriculum']) if (own(m, k) && !strArr(m[k])) e.push(`${w}.${k}: not an array of strings`);
|
|
509
|
+
if (own(m, 'edits')) editsCheck(m.edits, `${w}.edits`, e);
|
|
500
510
|
for (const k of ['created', 'modified', 'email']) if (own(m, k)) e.push(`${w}: must not contain "${k}"`);
|
|
501
511
|
if (own(m, 'accessibility')) {
|
|
502
512
|
const a = m.accessibility;
|
|
@@ -590,6 +600,7 @@ export function validateDeckMeta(m, opts = {}) {
|
|
|
590
600
|
if (own(m, 'completion')) completionCheck(m.completion, 'deck-meta.completion', e);
|
|
591
601
|
for (const k of ['license', 'copyright', 'attribution']) if (own(m, k) && typeof m[k] !== 'string') e.push(`deck-meta.${k}: not a string`);
|
|
592
602
|
if (own(m, 'creators') && !strArr(m.creators)) e.push('deck-meta.creators: not an array of strings');
|
|
603
|
+
if (own(m, 'edits')) editsCheck(m.edits, 'deck-meta.edits', e);
|
|
593
604
|
if (own(m, 'offer')) offerCheck(m.offer, 'deck-meta.offer', e);
|
|
594
605
|
return e;
|
|
595
606
|
}
|
|
@@ -687,7 +698,7 @@ const escAttr = (s) => escText(s).replace(/"/g, '"');
|
|
|
687
698
|
const plain = (s) => String(s).replace(/<br\s*\/?>/gi, ' ').replace(/<[^>]*>/g, '').replace(/\\\(|\\\)/g, '').replace(/ /g, ' ').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'|'/g, "'").replace(/&/g, '&').replace(/\s+/g, ' ').trim();
|
|
688
699
|
const stepOrder = (k) => (k === 'concl' ? Infinity : +k);
|
|
689
700
|
// 書き出す metadata:設定のファイル(FORMAT.CONFIG_FILE)の metadata のうち仕様の項目だけ(時刻・メールなどは入れない)
|
|
690
|
-
const META_KEYS = ['description', 'license', 'copyright', 'attribution', 'creators', 'accessibility', 'curriculum', 'completion', 'derivedFrom', 'authorship', 'audience', 'citations', 'series', 'primary', 'offer'];
|
|
701
|
+
const META_KEYS = ['description', 'license', 'copyright', 'attribution', 'creators', 'edits', 'accessibility', 'curriculum', 'completion', 'derivedFrom', 'authorship', 'audience', 'citations', 'series', 'primary', 'offer'];
|
|
691
702
|
|
|
692
703
|
// この書き手が意味を知っている索引の項目(ほかは知らない項目として、作り直しても残す)
|
|
693
704
|
const KNOWN_INDEX = new Set(['format', 'version', 'profile', 'requires', 'contracts', 'player', 'generator', 'docId', 'entry', 'sourceSha256', 'files', 'blobs', 'audio', 'components', 'themes', 'metadata', 'excluded', 'extensions', FORMAT.ATTACH_KEY, 'exportedFrom', 'article', 'articleLinks']);
|
|
@@ -708,7 +719,7 @@ export function configAttachmentsMatch(conf, index) {
|
|
|
708
719
|
}
|
|
709
720
|
// 1 ファイルを作業フォルダに出すときの設定のファイル(§3.3・§3.8):docId を残し、索引の権利の表示を写し、index.attachments を書く
|
|
710
721
|
// (書き直す要がなければ null)。text:今の設定のファイルの文字列(なければ null)。ほかの項目はバイトのまま(kit/core/config-file.mjs)
|
|
711
|
-
const RIGHTS = ['license', 'copyright', 'attribution', 'creators'];
|
|
722
|
+
const RIGHTS = ['license', 'copyright', 'attribution', 'creators', 'edits'];
|
|
712
723
|
export function folderConfig(index, text) {
|
|
713
724
|
const meta = isObj(index.metadata) ? index.metadata : {};
|
|
714
725
|
const list = Array.isArray(index[FORMAT.ATTACH_KEY]) ? index[FORMAT.ATTACH_KEY] : null;
|
|
@@ -1309,6 +1320,12 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1309
1320
|
if (own(metadata, 'offer')) { const o = normalizeOffer(metadata.offer); if (o) metadata.offer = o; else delete metadata.offer; }
|
|
1310
1321
|
if (own(metadata, 'primary') && !OFFER_FACES.includes(metadata.primary)) delete metadata.primary;
|
|
1311
1322
|
if (own(em, 'title') && typeof em.title === 'string' && em.title) metadata.title = em.title;
|
|
1323
|
+
// 編集の記録(§3.6.1):形の合わない項目は捨てて知らせる(ほかの項目は捨てない)
|
|
1324
|
+
if (own(metadata, 'edits')) {
|
|
1325
|
+
const ed = normalizeEdits(metadata.edits);
|
|
1326
|
+
if (ed.edits) metadata.edits = ed.edits; else delete metadata.edits;
|
|
1327
|
+
if (ed.dropped) warnings.push(`${LOG}: ${editsDroppedWarning(ed.dropped)}`);
|
|
1328
|
+
}
|
|
1312
1329
|
// player:同梱の再生器(§4.1。kit/core/player.mjs。出した版と中身が同じでなければ "+dev.<commit>")。generator:書いたソフト(Egatari Studio)
|
|
1313
1330
|
const pl = await resolvePlayer(env0);
|
|
1314
1331
|
// title:人に見せる名前(spec §3.1・§4.1。name は変わらない識別子)
|
|
@@ -1352,6 +1369,8 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1352
1369
|
...(metadata.completion ? { completion: metadata.completion } : {}),
|
|
1353
1370
|
// 権利の表示と作成者(format spec §4・§7.3):再生専用の派生は索引を持たないので、ここに写したものだけが残る
|
|
1354
1371
|
...Object.fromEntries(DECK_META_RIGHTS.filter((k) => own(metadata, k)).map((k) => [k, k === 'creators' ? [...metadata[k]] : metadata[k]])),
|
|
1372
|
+
// 編集の記録(§3.6.1・§7.3):再生専用の派生にも「編集」が残るように
|
|
1373
|
+
...(metadata.edits ? { edits: metadata.edits.map((x) => ({ ...x })) } : {}),
|
|
1355
1374
|
// 見せるモードと見え方(§1.2):再生専用の派生にも残るように deck-meta に写す(Player P1 が読む)
|
|
1356
1375
|
...(metadata.offer ? { offer: JSON.parse(JSON.stringify(metadata.offer)) } : {}),
|
|
1357
1376
|
};
|
|
@@ -1409,6 +1428,25 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1409
1428
|
if (html.split(prefixPh).length !== 2) fail('internal', 'archive placeholder not found exactly once');
|
|
1410
1429
|
html = html.replace(prefixPh, () => layer);
|
|
1411
1430
|
if (html.includes('\r')) html = html.replace(/\r\n?/g, '\n');
|
|
1431
|
+
// パーツの読める中身(§2.1 Readable content of components、#216):パーツの中に印(data-readable)がありそうなら、書いた文書を再生器で開き
|
|
1432
|
+
// (env.readableParts。Node の組み立ては kit/readable-parts.mjs、編集アプリはプレビューの再生器)、スライドの最後の状態の中身を読める層に写す。
|
|
1433
|
+
// 再生器の字は印の名前を分けて書くので、文書に印の名前があるのはパーツ(か原稿)が使うときだけ。開けなければ写さずに知らせる(文書は正しい)
|
|
1434
|
+
if (opts.readableParts !== false && html.includes(READABLE_MARK)) {
|
|
1435
|
+
let res = null;
|
|
1436
|
+
if (typeof env0.readableParts !== 'function') warnings.push(`${LOG}: a part marks readable content (§2.1), and this producer cannot open the player to copy it into the readable layer`);
|
|
1437
|
+
else {
|
|
1438
|
+
try { res = await env0.readableParts(html); }
|
|
1439
|
+
catch (e) { warnings.push(`${LOG}: could not open the player to copy the parts' readable content into the readable layer (§2.1): ${String(e && e.message || e).split('\n')[0]}`); }
|
|
1440
|
+
}
|
|
1441
|
+
const parts = readablePartsOf(res, new Set(r.slides.map((sl) => sl.key)), (m) => warnings.push(`${LOG}: ${m}`));
|
|
1442
|
+
if (Object.keys(parts).length) {
|
|
1443
|
+
if (html.split(readable).length !== 2) fail('internal', 'readable layer not found exactly once');
|
|
1444
|
+
const rest = html.length - readable.length;
|
|
1445
|
+
const readable2 = readableLayer(r.slides, segs, lang, [], LIM.bundledChars - rest - 1, art ? art.html : '', parts) + '\n';
|
|
1446
|
+
html = html.replace(readable, () => readable2);
|
|
1447
|
+
if (html.length > LIM.bundledChars) throw new BuildLimitError('portable document (readable layer)', html.length, LIM.bundledChars);
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1412
1450
|
// 書いたものが §4.2 の決まりに合うこと(置き場所と中身。合わなければ書かない)
|
|
1413
1451
|
{ const pp = checkFilePolicy(html);
|
|
1414
1452
|
if (pp.length) fail('file-policy', 'the file policy (§4.2) is not in place: ' + pp.join('; '), pp); }
|
|
@@ -1527,7 +1565,8 @@ function recipeOf(sj, v) {
|
|
|
1527
1565
|
// 記事の中の段階は番号の小さい順、concl は最後。どのスライドにも当たらない鍵の口述原稿は入れず、warnings に知らせる
|
|
1528
1566
|
// cap:書き出してよい字数(組んだ文書の上限の残り)。実体参照に直した後の字数を、その文字列を作る前に数え、超えるなら作らずに断る
|
|
1529
1567
|
// article:本文の <article id="egatari-article">(§9C.6:#egatari-readable の最後の子。なければ '')
|
|
1530
|
-
|
|
1568
|
+
// parts:パーツの読める中身 {スライドの鍵: [HTML の字…]}(§2.1 Readable content of components、#216。作り直した後のもの)。ステップの div の後に写す
|
|
1569
|
+
function readableLayer(slides, segs, lang, warnings = [], cap = Infinity, article = '', parts = {}) {
|
|
1531
1570
|
const bySlide = new Map();
|
|
1532
1571
|
for (const s of segs) { if (!bySlide.has(s.slideKey)) bySlide.set(s.slideKey, []); bySlide.get(s.slideKey).push(s); }
|
|
1533
1572
|
const keys = new Set(slides.map((sl) => sl.key));
|
|
@@ -1543,6 +1582,7 @@ function readableLayer(slides, segs, lang, warnings = [], cap = Infinity, articl
|
|
|
1543
1582
|
take('<article data-slide-key=""><h2></h2>'.length + escAttrLength(sl.key) + escTextLength(title));
|
|
1544
1583
|
push(`<article data-slide-key="${escAttr(sl.key)}"><h2>${escText(title)}</h2>`);
|
|
1545
1584
|
for (const s of steps) { take(readableStepLength(s)); push(readableStep(s)); }
|
|
1585
|
+
for (const h of (Object.hasOwn(parts, sl.key) ? parts[sl.key] : [])) { take(h.length); push(h); }
|
|
1546
1586
|
take('</article>'.length); push('</article>');
|
|
1547
1587
|
}
|
|
1548
1588
|
if (article) { take(article.length); push(article); }
|
package/kit/core/purposes.mjs
CHANGED
|
@@ -41,7 +41,7 @@ export const TILES = [
|
|
|
41
41
|
{ id: 'overlap', ids: ['overlap'], label: T('重なり', 'Overlap'), sub: T('ベン図', 'Venn diagram'), name: T('重なり', 'overlap'), steps: T('集合、次に重なり', 'sets, then the overlap') },
|
|
42
42
|
{ id: 'correlation', ids: ['correlation'], label: T('2 つの量の関係', 'Two quantities'), sub: T('散布図', 'scatter plot'), name: T('2 つの量の関係', 'two quantities'), steps: T('点、次に傾向', 'points, then the trend') },
|
|
43
43
|
{ id: 'spread', ids: ['spread'], label: T('ばらつき', 'Spread'), sub: T('ヒストグラム', 'histogram'), name: T('ばらつき', 'spread'), steps: T('全体を一度に', 'whole at once') },
|
|
44
|
-
{ id: 'contents', ids: ['contents'], label: T('目次', 'Contents'), sub: T('
|
|
44
|
+
{ id: 'contents', ids: ['contents'], label: T('目次', 'Contents'), sub: T('カードの格子', 'grid of cards'), name: T('目次', 'contents'), steps: T('全体を一度に', 'whole at once') },
|
|
45
45
|
{ id: 'spatial', ids: ['spatial'], label: T('場所・地図', 'Place / map'), sub: T('日本地図・塗り分け・地点と矢印', 'map of Japan, choropleth, points and arrows'), name: T('場所・地図', 'place, map'), steps: T('地図、それから地域・点・矢印を 1 つずつ', 'the map, then regions, points and arrows one at a time') },
|
|
46
46
|
];
|
|
47
47
|
export const FALLBACK = TILES;
|
|
@@ -65,6 +65,9 @@ const NOTES = {
|
|
|
65
65
|
|
|
66
66
|
const isObj = (v) => v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
67
67
|
const str2 = (v) => (isObj(v) && typeof v.en === 'string' && v.en.trim() && typeof v.ja === 'string' && v.ja.trim() ? { en: v.en, ja: v.ja } : null);
|
|
68
|
+
// 部品庫の manifest の札の小さな字のうち、用語集で避ける語(#223、作者 11/15:札・帯は意味で言う)を、部品庫が直すまでここで置き換える(ja だけ)
|
|
69
|
+
const MANIFEST_JA = [['札の格子', 'カードの格子']];
|
|
70
|
+
const jaTile = (v) => (v ? { ...v, ja: MANIFEST_JA.reduce((x, [a, b]) => x.replaceAll(a, b), v.ja) } : v);
|
|
68
71
|
const ID = /^[a-z][a-z0-9-]*$/;
|
|
69
72
|
const strs = (a) => (Array.isArray(a) ? a.filter((x) => typeof x === 'string') : []);
|
|
70
73
|
const uniq = (a) => [...new Set(a)];
|
|
@@ -95,7 +98,7 @@ export function purposesFrom(manifest, { vendored = null } = {}) {
|
|
|
95
98
|
list = [];
|
|
96
99
|
for (const r of rows) {
|
|
97
100
|
if (r.tile !== 'own') continue;
|
|
98
|
-
const label = str2(r.label), sub = str2(r.examples);
|
|
101
|
+
const label = str2(r.label), sub = jaTile(str2(r.examples));
|
|
99
102
|
if (!label || !sub) { warnings.push(`manifest.json: purpose "${r.id}" has tile "own" without label or examples (no tile)`); unmapped.push(r.id); continue; }
|
|
100
103
|
list.push({ id: r.id, ids: [r.id], label, sub, name: { ja: r.ja, en: r.en }, steps: str2(r.steps) || (TILES.find((t) => t.id === r.id) || {}).steps || T('', ''), ...(typeof r.icon === 'string' && ID.test(r.icon) ? { icon: r.icon } : {}) });
|
|
101
104
|
tileOf[r.id] = r.id;
|
|
@@ -176,6 +179,6 @@ export function purposesTable(P, parts, lang, src, { exclude = [], sets = null,
|
|
|
176
179
|
const other = elsewhere.length ? '\n\n' + (L === 'ja'
|
|
177
180
|
? `この指示に入っていないパーツもある。使わない。合いそうなら、何を見せたいかを 1 行のメモで伝える(作る人が新規作成でパーツを足せる)`
|
|
178
181
|
: `Some parts are not included in these instructions. Do not use them; if one would fit, say in a one-line note what you would show (the author can add parts when making a new lesson).`) : '';
|
|
179
|
-
const url = src ? '\n\n' + (L === 'ja' ?
|
|
182
|
+
const url = src ? '\n\n' + (L === 'ja' ? `各パーツの説明(バージョンを固定):${src}<名前>/README.md(名前は \`m-\` を除いたもの)` : `Each part's description (pinned version): ${src}<name>/README.md (the name without \`m-\`)`) : '';
|
|
180
183
|
return head + '\n' + rows.join('\n') + other + url;
|
|
181
184
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// パーツの読める中身(format spec §2.1 Readable content of components、backlog #216)
|
|
2
|
+
// 再生器の DECK.readableParts()(kit/deck.js)が、スライドの最後の状態のパーツの中の印(data-readable)の要素を HTML の字にして返す。
|
|
3
|
+
// 1 ファイルへの書き出し(kit/core/portable.mjs)は、それを読める層のスライドの article の、ステップの div の後に写す。
|
|
4
|
+
// 再生器の答えはパーツと同じページで作られる(パーツが書き換えられる)ので、ここで使ってよい要素と属性だけに作り直してから写す。
|
|
5
|
+
import { parseFragment } from 'parse5';
|
|
6
|
+
|
|
7
|
+
export const READABLE_MARK = 'data-readable';
|
|
8
|
+
// 使ってよい要素(ほかの要素はその字に置き換える)と属性(ほかは外す)
|
|
9
|
+
export const READABLE_TAGS = new Set(['pre', 'code', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'ol', 'ul', 'li', 'p', 'span']);
|
|
10
|
+
const KEEP_ATTRS = ['colspan', 'rowspan', 'lang'];
|
|
11
|
+
const MAX_PER_SLIDE = 64;
|
|
12
|
+
|
|
13
|
+
const esc = (t, attr) => { t = String(t).replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>'); return attr ? t.replace(/"/g, '"') : t; };
|
|
14
|
+
const textOf = (n) => (n.nodeName === '#text' ? n.value : (n.childNodes || []).map(textOf).join(''));
|
|
15
|
+
function serialize(n) {
|
|
16
|
+
if (n.nodeName === '#text') return esc(n.value);
|
|
17
|
+
if (!n.tagName) return '';
|
|
18
|
+
if (!READABLE_TAGS.has(n.tagName) || (n.namespaceURI && !/xhtml/.test(n.namespaceURI))) return esc(textOf(n));
|
|
19
|
+
const a = KEEP_ATTRS.map((k) => (n.attrs || []).find((x) => x.name === k)).filter(Boolean).map((x) => ` ${x.name}="${esc(x.value, true)}"`).join('');
|
|
20
|
+
const kids = n.tagName === 'template' ? [] : (n.childNodes || []);
|
|
21
|
+
return `<${n.tagName}${a}>${kids.map(serialize).join('')}</${n.tagName}>`;
|
|
22
|
+
}
|
|
23
|
+
// 1 つの字(再生器が作った HTML)を、使ってよい要素と属性だけの字に作り直す。いちばん外が使ってよい要素でなければ、その字
|
|
24
|
+
export function sanitizeReadable(html) {
|
|
25
|
+
const f = parseFragment(String(html));
|
|
26
|
+
return (f.childNodes || []).map(serialize).join('');
|
|
27
|
+
}
|
|
28
|
+
// 再生器の答え {スライドの鍵: [字…]} を確かめて作り直す。形の合わないものは捨てる(知らせは warn に)
|
|
29
|
+
export function readablePartsOf(res, keys, warn = () => {}) {
|
|
30
|
+
const out = {};
|
|
31
|
+
if (!res || typeof res !== 'object') return out;
|
|
32
|
+
for (const [k, list] of Object.entries(res)) {
|
|
33
|
+
if (!keys.has(k)) { warn(`readable content for "${k}" matches no slide; omitted`); continue; }
|
|
34
|
+
if (!Array.isArray(list)) continue;
|
|
35
|
+
const xs = list.slice(0, MAX_PER_SLIDE).filter((x) => typeof x === 'string').map(sanitizeReadable).filter((x) => x.trim());
|
|
36
|
+
if (list.length > MAX_PER_SLIDE) warn(`slide "${k}": more than ${MAX_PER_SLIDE} readable elements; the rest are omitted`);
|
|
37
|
+
if (xs.length) out[k] = xs;
|
|
38
|
+
}
|
|
39
|
+
return out;
|
|
40
|
+
}
|
|
41
|
+
// 再生器で開いて読む(ブラウザの中で動く関数。page.evaluate に渡す)
|
|
42
|
+
export const READABLE_PROBE = () => (window.DECK && typeof DECK.readableParts === 'function' ? DECK.readableParts() : null); // eslint-disable-line no-undef
|
package/kit/core/themes-lock.mjs
CHANGED
|
@@ -162,5 +162,5 @@ export function themeUpdate(lock, name, from) {
|
|
|
162
162
|
// 知らせの 1 行(CLI と編集アプリの警告の板)
|
|
163
163
|
export function themePinnedWarning(u) {
|
|
164
164
|
const list = u.tokens.map((x) => `${x.token} ${x.from} → ${x.to}`).join(', ');
|
|
165
|
-
return `theme pinned: ${u.name} ${u.from} is the version this lesson recorded; the current ${u.name} is ${u.to}${list ? ` (${list})` : ''}. It is built with ${u.from}, never restyled silently. To update: in the editor press 「テーマを更新」 / Update theme; on the command line rebuild with --update-themes, or set "${u.name}": "${u.to}" under themes in egatari.json /
|
|
165
|
+
return `theme pinned: ${u.name} ${u.from} is the version this lesson recorded; the current ${u.name} is ${u.to}${list ? ` (${list})` : ''}. It is built with ${u.from}, never restyled silently. To update: in the editor press 「テーマを更新」 / Update theme; on the command line rebuild with --update-themes, or set "${u.name}": "${u.to}" under themes in egatari.json / 記録したバージョンのテーマで組む。黙って新しい色にしない`;
|
|
166
166
|
}
|
package/kit/core/tier-a.mjs
CHANGED
|
@@ -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);
|
|
@@ -258,6 +260,7 @@ async function run(original, filesIn, opts) {
|
|
|
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()])) {
|
|
@@ -291,6 +294,13 @@ 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 lesson must be rebuilt)`);
|
|
301
|
+
editsNew = ed.edits;
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
294
304
|
const want = k === 'derivedFrom' ? (identity ? identity.derivedFrom : im.derivedFrom) : im[k];
|
|
295
305
|
if (!deepEqual(cm[k], want)) refuse('config-changed', `${CFG}: metadata.${k} differs from the document (the lesson must be rebuilt)`);
|
|
296
306
|
}
|
|
@@ -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
|
@@ -104,18 +104,29 @@ function el(tag, attrs, parent){
|
|
|
104
104
|
}
|
|
105
105
|
// @legacy-part-base:start
|
|
106
106
|
// SVG の中の簡単な数式記法:*..* は斜体、_x は下付き、^x は上付き。本格的な式は DECK.svgMath を使う
|
|
107
|
+
// * は部品庫の base 1.2.0 の mtext と同じ規則(#199):開く * の直後と閉じる * の直前が空白でない対のときだけ斜体(markdown と同じ)。
|
|
108
|
+
// 「A* 探索」「5*3」「注*」の * はそのまま。\* \_ \^ \\ はその字そのもの。下付き・上付きの大きさ(17)は前のまま
|
|
107
109
|
function mtext(parent, x, y, str, attrs){
|
|
108
110
|
var t = el("text", Object.assign({x: x, y: y, "font-size": 24}, attrs || {}), parent);
|
|
109
111
|
var it = false, i = 0, buf = "";
|
|
112
|
+
str = String(str == null ? "" : str);
|
|
110
113
|
function flush(extra){
|
|
111
114
|
if (!buf) return;
|
|
112
115
|
var s = el("tspan", extra || {}, t);
|
|
113
116
|
if (it){ s.setAttribute("font-style", "italic"); s.setAttribute("class", "mi"); }
|
|
114
117
|
s.textContent = buf; buf = "";
|
|
115
118
|
}
|
|
119
|
+
function closer(from){
|
|
120
|
+
for (var j = from; j < str.length; j++){
|
|
121
|
+
if (str[j] === "\\"){ j++; continue; }
|
|
122
|
+
if (str[j] === "*" && !/\s/.test(str[j - 1])) return true;
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
116
126
|
while (i < str.length){
|
|
117
127
|
var c = str[i];
|
|
118
|
-
if (c === "*")
|
|
128
|
+
if (c === "\\" && i + 1 < str.length && "*_^\\".indexOf(str[i + 1]) >= 0){ buf += str[i + 1]; i += 2; }
|
|
129
|
+
else if (c === "*" && (it ? !/\s/.test(str[i - 1]) : i + 1 < str.length && !/[\s*]/.test(str[i + 1]) && closer(i + 2))){ flush(); it = !it; i++; }
|
|
119
130
|
else if ((c === "_" || c === "^") && i + 1 < str.length){
|
|
120
131
|
flush(); buf = str[i + 1];
|
|
121
132
|
flush({"baseline-shift": c === "_" ? "sub" : "super", "font-size": "17"});
|
|
@@ -2132,6 +2143,42 @@ function stepIndexOf(s, sk){
|
|
|
2132
2143
|
return k;
|
|
2133
2144
|
}
|
|
2134
2145
|
DECK.resolveFragment = resolveFragment;
|
|
2146
|
+
// 読める層に写すパーツの中身(format spec §2.1 Readable content of components、backlog #216):スライドを最後の状態にして、パーツ(m-*)の中の
|
|
2147
|
+
// 印の付いた要素(いちばん外のものだけ、並びの順)を、使ってよい要素(RD_TAGS)と属性(colspan・rowspan・lang)だけの HTML の字にする。
|
|
2148
|
+
// ほかの要素はその字に置き換える。{スライドの鍵: [HTML の字…]}(印のないスライドは入れない)。見えている画面は変えない(DECK.aside)。
|
|
2149
|
+
// 1 ファイルへの書き出し(kit/core/portable.mjs)が、コマンド版はヘッドレスのブラウザ(kit/readable-parts.mjs)、編集アプリはプレビューで呼ぶ。
|
|
2150
|
+
// 印の名前は分けて書く:再生器の字に印の名前がそのまま入ると、書き出しが「印がありそう」と見てブラウザを起動してしまう
|
|
2151
|
+
var RD_ATTR = "data-" + "readable", RD_TAGS = {pre: 1, code: 1, table: 1, thead: 1, tbody: 1, tr: 1, th: 1, td: 1, caption: 1, ol: 1, ul: 1, li: 1, p: 1, span: 1};
|
|
2152
|
+
function rdEsc(t, attr){ t = String(t).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); return attr ? t.replace(/"/g, """) : t; }
|
|
2153
|
+
function rdHtml(n){
|
|
2154
|
+
if (n.nodeType === 3) return rdEsc(n.nodeValue);
|
|
2155
|
+
if (n.nodeType !== 1) return "";
|
|
2156
|
+
var tag = n.localName;
|
|
2157
|
+
if (!RD_TAGS[tag]) return rdEsc(n.textContent || "");
|
|
2158
|
+
var a = "";
|
|
2159
|
+
["colspan", "rowspan", "lang"].forEach(function(k){ if (n.hasAttribute(k)) a += " " + k + '="' + rdEsc(n.getAttribute(k), true) + '"'; });
|
|
2160
|
+
var inner = "";
|
|
2161
|
+
for (var c = n.firstChild; c; c = c.nextSibling) inner += rdHtml(c);
|
|
2162
|
+
return "<" + tag + a + ">" + inner + "</" + tag + ">";
|
|
2163
|
+
}
|
|
2164
|
+
DECK.readableParts = function(){
|
|
2165
|
+
var out = {};
|
|
2166
|
+
DECK.aside(function(){
|
|
2167
|
+
slides.forEach(function(s, i){
|
|
2168
|
+
seek(i, s._max, Infinity);
|
|
2169
|
+
var got = [];
|
|
2170
|
+
[].forEach.call(s.querySelectorAll("[" + RD_ATTR + "]"), function(e){
|
|
2171
|
+
for (var p = e.parentElement, inPart = false; p && p !== s; p = p.parentElement){
|
|
2172
|
+
if (p.hasAttribute(RD_ATTR)) return; // 印の中の印は外のものに含まれる
|
|
2173
|
+
if (/^m-/.test(p.localName)) inPart = true;
|
|
2174
|
+
}
|
|
2175
|
+
if (inPart) got.push(rdHtml(e));
|
|
2176
|
+
});
|
|
2177
|
+
if (got.length) out[s._key] = got;
|
|
2178
|
+
});
|
|
2179
|
+
});
|
|
2180
|
+
return out;
|
|
2181
|
+
};
|
|
2135
2182
|
// 位置の書き方(id があれば <id>[:<段階の鍵>]。id のない旧来のスライドは段階 0 なら <番号>、ほかは <鍵>:<段階の鍵>)
|
|
2136
2183
|
function fragmentOf(i, k){
|
|
2137
2184
|
var s = slides[i];
|
|
@@ -2274,7 +2321,7 @@ function extLink(a){
|
|
|
2274
2321
|
}
|
|
2275
2322
|
if (window.DECK_DEV){ // 編集のプレビュー:授業の絵は作者のコードが描ける。外へは出ず、ここでは確かめもしない(書き出したデッキで確かめる)
|
|
2276
2323
|
extDialog({title: L10N("プレビューでは外のページを開きません", "The preview does not open outside pages"), host: d.host, url: d.url,
|
|
2277
|
-
notes: [L10N("
|
|
2324
|
+
notes: [L10N("ビルドした HTML・Egatari ファイルで開くと、行き先を確かめてから開きます", "In the built HTML or an Egatari file, it asks before opening")], open: null, from: from});
|
|
2278
2325
|
return;
|
|
2279
2326
|
}
|
|
2280
2327
|
if (d.verdict === "open"){ extOpen(d.url); return; }
|
package/kit/live.js
CHANGED
|
@@ -34,8 +34,8 @@ 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: "
|
|
38
|
-
off: "
|
|
37
|
+
title: "ライブ(質問・投票)", again: "もう一度試す", notice: "この教材から、" + HOST + " のライブでホストに質問や投票を送れます", join: "参加する", leave: "退出する", fold: "たたむ", unfold: "ひらく", badge: "ライブ", pin: "開いたままにする", pollOpen: "このステップに投票があります。ライブのパネルを開きました",
|
|
38
|
+
off: "接続していません", connecting: "接続しています…", connected: "参加中", waiting: "待機室で待っています", retrying: function(s){ return s + " 秒後に再接続します"; },
|
|
39
39
|
before: function(t){ return "ライブは " + t + " に始まります"; }, after: "ライブの時間は終わりました", noNet: "この画面からは参加できません。教材のファイルをダウンロードして、ブラウザ(Chrome・Safari など)で直接開いてください。ライブ ID:",
|
|
40
40
|
noNetLink: "この画面からは参加できません。ブラウザの新しいタブで参加できます。", openJoin: "ブラウザで参加する", joinTo: "参加先:", roomLabel: "ライブ ID:",
|
|
41
41
|
name: "名前(任意)", nameNote: "名前はホストだけに見えます(入れなければ名前なしで送られます)", ask: "ホストへの質問", send: "送る", sent: "質問を送りました",
|
|
@@ -46,13 +46,13 @@ var S = JA ? {
|
|
|
46
46
|
inkLabel: "囲むところ(スライドの上)",
|
|
47
47
|
confused: "わからない", confusedTip: "このステップがわからないことを、ホストに伝えます(文は送りません)。もう一度押すと取り消します",
|
|
48
48
|
confusedSent: "「わからない」をホストに伝えました", confusedOff: "「わからない」を取り消しました",
|
|
49
|
-
replies: "
|
|
49
|
+
replies: "ホストからの回答", yourQ: "あなたの質問:", gotReply: "ホストから回答が届きました", replyPrefix: "ホストの回答:", newReply: "新しい回答があります", vote: "投票する", voted: "投票しました", revote: "選び直して投票できます",
|
|
50
50
|
shown: "ホストが全員に表示した質問", leftMsg: "切断しました。もう一度参加できます", window: function(a, b){ return a + " – " + b; }, privacy: "送るのは、送ると決めた質問(そのときのステップと、囲んだところ)・投票・「わからない」(と入れたときの名前)、この端末で作った番号だけです。見ている位置や時間は送りません",
|
|
51
|
-
stop: {bad_key: "この教材の参加コードではライブに入れません(参加コードが違います)", room_not_found: "ライブが見つかりません", superseded: "
|
|
51
|
+
stop: {bad_key: "この教材の参加コードではライブに入れません(参加コードが違います)", room_not_found: "ライブが見つかりません", superseded: "ほかのタブやウィンドウで参加したので、ここは切れました",
|
|
52
52
|
room_expired: "ライブの時間が終わりました", room_closed: "ホストがライブを終えました。再開したら、もう一度「参加する」を押してください", too_early: "まだライブの時間になっていません(この端末の時計も確かめてください)",
|
|
53
53
|
room_full: "ライブが満員です。少し待ってから、もう一度参加してください", key_replaced: "ホストが参加コードを替えました。このファイルでは入れません。新しいファイルをもらってください",
|
|
54
|
-
not_approved: "ホストが参加を認めませんでした", bad_message: "
|
|
55
|
-
bad_endpoint: "
|
|
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
57
|
rate_limited: "送るのが速すぎます。少し待ってください", quota_exceeded: "送れる数を超えました", room_limit: "ライブがいっぱいで受け付けられませんでした", not_admitted: "ホストの許可を待っています", bad_region: "囲んだところを送れませんでした。囲みを消して送ってください", other: "送れませんでした"}
|
|
58
58
|
} : {
|
package/kit/player.json
CHANGED