egatari 0.6.4 → 0.6.5-rc.1
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/NOTICE +36 -0
- package/README.ja.md +16 -4
- package/README.md +16 -4
- package/bin/egatari.mjs +86 -3
- package/components.lock.json +246 -123
- package/components2.lock.json +824 -1
- package/kit/article-steps.mjs +27 -0
- package/kit/build.mjs +50 -1
- package/kit/check-messages.mjs +15 -7
- package/kit/check.mjs +40 -7
- package/kit/cli-hint.mjs +27 -0
- package/kit/core/article-cite.mjs +188 -0
- package/kit/core/article-links.mjs +174 -0
- package/kit/core/article-messages.mjs +115 -0
- package/kit/core/article-page.mjs +183 -0
- package/kit/core/article-render.mjs +410 -0
- package/kit/core/article-text.mjs +501 -0
- package/kit/core/article.mjs +266 -0
- package/kit/core/build-core.mjs +49 -9
- package/kit/core/citeproc-credit.mjs +3 -0
- package/kit/core/colab-core.mjs +1 -1
- package/kit/core/components-lock.mjs +18 -0
- package/kit/core/llm-fix.mjs +2 -1
- package/kit/core/llm-pack-assemble.mjs +5 -3
- package/kit/core/llm-pack-data.mjs +63 -80
- package/kit/core/new-deck.mjs +1 -1
- package/kit/core/part-labels.mjs +17 -5
- package/kit/core/parts2.mjs +11 -1
- package/kit/core/player.mjs +1 -1
- package/kit/core/portable.mjs +132 -16
- package/kit/core/quote-ja.mjs +5 -0
- package/kit/core/themes-lock.mjs +16 -0
- package/kit/core/tier-a.mjs +47 -3
- package/kit/deck.js +195 -45
- package/kit/instruction-version.json +3 -0
- package/kit/layouts.css +11 -10
- package/kit/panes.js +1288 -0
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/tools.js +81 -20
- package/kit/track.js +308 -0
- package/package.json +20 -3
- package/render/only.mjs +21 -0
- package/render/render.mjs +11 -8
- package/tools/ids.mjs +74 -9
- package/tools/portable.mjs +2 -0
- package/tools/sheet.mjs +5 -3
- package/vendor/components/CATALOG.md +4 -4
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/CHANGELOG.md +37 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/README.md +58 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/demo.html +121 -0
- package/vendor/components/sha256/00e4bdbb7b9964c92809177fe7bb574e7184ed603dbc5008a485d82603d9a7bf/index.js +894 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/CHANGELOG.md +44 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/README.md +32 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/demo.html +57 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/chords.json +89 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/extras.json +192 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/fixtures/ties.json +360 -0
- package/vendor/components/sha256/011b72fe1a9c24b980192931847484b12ae736e989d453c63c4d5b099962bfe0/index.js +474 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/README.md +21 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/demo.html +32 -0
- package/vendor/components/sha256/027a8fea4060337ccc0a926c1488066f1ae7a6c102a15032eae974304e12cb3b/index.js +139 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/README.md +42 -0
- package/vendor/components/sha256/03550bb20d425aa926258bab18b03bbc0cee292072e01bb6c78c429b3ae92c34/index.js +250 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/README.md +22 -0
- package/vendor/components/sha256/07013c263cc595382dbcfd4931ca8b016f9dfb673440adf28911c95bd465cf9d/index.js +41 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/CHANGELOG.md +25 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/README.md +35 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/demo.html +40 -0
- package/vendor/components/sha256/0703ec58997237fceda0008c28dfa3e3370c21cdcb6d0cc99c29a83e4b9d0f11/index.js +731 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/CHANGELOG.md +19 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/README.md +21 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/demo.html +33 -0
- package/vendor/components/sha256/0b85af3a688ca012d7d1df082dab1f405048589dce78d411d4cffc1fb3a81998/index.js +106 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/CHANGELOG.md +21 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/README.md +34 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/demo.html +77 -0
- package/vendor/components/sha256/0cf00baed0da1bc3ce5460eb1eff0a8dd5f7789168e83aaef751135cd3f8af89/index.js +200 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/CHANGELOG.md +31 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/README.md +43 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/demo.html +47 -0
- package/vendor/components/sha256/0eca723150eb30db0b3d3fdbd35b973d5344ac0d0e2ea8ab89d143a0870ab4fd/index.js +484 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/CHANGELOG.md +23 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/README.md +44 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/demo.html +43 -0
- package/vendor/components/sha256/0f47d93b78df1c0661a91d5fc46d6f7f5d1c45349065aab6bd3e659e07e317dd/index.js +266 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/CHANGELOG.md +34 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/README.md +44 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/demo.html +56 -0
- package/vendor/components/sha256/12704ccb92a1f864a18cce824a2400e8e3141e8dba7db34805cb1d8522aae08e/index.js +429 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/CHANGELOG.md +25 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/README.md +42 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/demo.html +115 -0
- package/vendor/components/sha256/149e8ddefbc384aafa8b961d48f8f56ad68ff75cc2429bd8c1ad6d8da661f5f6/index.js +384 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/CHANGELOG.md +19 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/README.md +38 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/demo.html +72 -0
- package/vendor/components/sha256/1ccdd24c9e0e7ca2661450c52eb6dcf9dbc2fb48d05fed2d01e2b9cfd5df1365/index.js +248 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/CHANGELOG.md +19 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/README.md +36 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/demo.html +70 -0
- package/vendor/components/sha256/240bd2ff9a1707c557f0a1af7f278a3f7661a8e680d3b932e367d4b337a3ad13/index.js +167 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/CHANGELOG.md +34 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/README.md +32 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/demo.html +51 -0
- package/vendor/components/sha256/2a6b20b93f1169ef2435cdf3bfca57d24c9111fe9aaf8e61f0d049cf8a70e9df/index.js +302 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/CHANGELOG.md +41 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/README.md +35 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/demo.html +66 -0
- package/vendor/components/sha256/2c9490ac960a5bb04ebc0c8fa0622392775f85ef8b8ebe93065991ce40afc097/index.js +352 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/CHANGELOG.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/README.md +35 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/demo.html +40 -0
- package/vendor/components/sha256/328a440e91684524068076e96cba5771cdceaa274d4b90033656259f05467135/index.js +747 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/README.md +43 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/demo.html +89 -0
- package/vendor/components/sha256/3395706f819e0e70b4047da33486a4b59e65118faf8f918677061e397dae408c/index.js +323 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/CHANGELOG.md +24 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/README.md +40 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/demo.html +70 -0
- package/vendor/components/sha256/34b1375b0897f881b8d43e5dbaa928485cfab240e87c53a5868e714879a20f79/index.js +561 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/CHANGELOG.md +27 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/README.md +50 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/demo.html +44 -0
- package/vendor/components/sha256/37ea0051e8a1f2d7c2fa2d38e57730e5a3b1afabe9037a74fcad6e6f05356c09/index.js +464 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/CHANGELOG.md +23 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/README.md +44 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/demo.html +56 -0
- package/vendor/components/sha256/39c84138e7e4c6040eeb3d82d1c7fc801f513b2c26ac431ac8cc121a01f81698/index.js +402 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/CHANGELOG.md +27 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/README.md +49 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/demo.html +44 -0
- package/vendor/components/sha256/3c36a26fd78dffdfa114bd7c9ca5cae494117bbcdda14bee5c2a01351e5f2eb2/index.js +354 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/CHANGELOG.md +20 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/README.md +50 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/demo.html +61 -0
- package/vendor/components/sha256/3c60c8e63279b8ee86957a5874c80f86a44f9ed92c1f615eace4a9dea1789da5/index.js +141 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/CHANGELOG.md +42 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/README.md +32 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/demo.html +54 -0
- package/vendor/components/sha256/3dba49cbbf7853212a6e5c393de030430d02b8b1a2ba4c8b722db2bb8afad12f/index.js +315 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/CHANGELOG.md +30 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/README.md +38 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/demo.html +72 -0
- package/vendor/components/sha256/40452368224bdcd8c4910222285e6af9e120df17dbd1c3177c0abe9cb69075d1/index.js +267 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/CHANGELOG.md +16 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/README.md +27 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/demo.html +42 -0
- package/vendor/components/sha256/4a5971c1f83efc1f57c444ce7d3fbf242b2bcca65c5c6e4b0b0d75eeb2751150/index.js +121 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/CHANGELOG.md +33 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/README.md +41 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/demo.html +70 -0
- package/vendor/components/sha256/4e0e5eb48fc20ffc554786a7db66c4f5cee0c42eb0554bdc8c98323cdb168eb4/index.js +592 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/CHANGELOG.md +23 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/README.md +43 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/demo.html +47 -0
- package/vendor/components/sha256/50db2d3b84ee33b36c09a9a216ef6b337d2e5da2154e8aa62e790b0e63401796/index.js +483 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/CHANGELOG.md +19 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/README.md +34 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/demo.html +60 -0
- package/vendor/components/sha256/546ec63feccdc65569b7167e58b2e36a85be52f2538743dd2ecc3fc29ed6b883/index.js +209 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/CHANGELOG.md +30 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/README.md +79 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/demo.html +50 -0
- package/vendor/components/sha256/556e7d45a761c4fa749cde186fb53f6c526ba6ede0b8f0f0bba5ac9e25e0d6f4/index.js +351 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/README.md +53 -0
- package/vendor/components/sha256/577008a069e7eb08057705a0800d975e82c8dfe0d0ba5fbf4f8974af7b298a7f/index.js +310 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/CHANGELOG.md +20 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/README.md +75 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/demo.html +50 -0
- package/vendor/components/sha256/5a9959f8626f2c5280d0954c476baeadf03fecebda2443c3e83b8203ad554167/index.js +342 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/CHANGELOG.md +24 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/README.md +26 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/demo.html +48 -0
- package/vendor/components/sha256/5b44b272b917246219d2709f1b001964f87a3e07786cc9950087bbb8add3c721/index.js +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/CHANGELOG.md +22 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/README.md +64 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/demo.html +97 -0
- package/vendor/components/sha256/5c8ae7714fd8243c9b37539a5f0f8488d3ba20316ba81179e97b6160116d13c2/index.js +875 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/CHANGELOG.md +21 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/README.md +50 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/demo.html +63 -0
- package/vendor/components/sha256/68c9e866e3cd3e2f8179ede44a005c7f31cef0ed07fd5770ec33f0cc3aa80a41/index.js +219 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/CHANGELOG.md +28 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/README.md +35 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/demo.html +73 -0
- package/vendor/components/sha256/693e2aa59e822d38c48eca7271cc020f8e0a6f6189f2409895318ed2a3f0b809/index.js +228 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/CHANGELOG.md +34 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/README.md +65 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/demo.html +97 -0
- package/vendor/components/sha256/6b24ab9b90b4f2275af9f61073fe9d65b8b9d16573d639ae07352f29b8b067a1/index.js +920 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/CHANGELOG.md +31 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/README.md +39 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/demo.html +66 -0
- package/vendor/components/sha256/6c25dc07f75697e7388564ad689303c370d49142aab9e6672baec15a0313a2fa/index.js +304 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/CHANGELOG.md +31 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/README.md +40 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/demo.html +92 -0
- package/vendor/components/sha256/75a20673474b3104da24a7cb0d0483394bed380ff1c108a9a529bcdd1de0f1fb/index.js +424 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/CHANGELOG.md +26 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/README.md +57 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/demo.html +121 -0
- package/vendor/components/sha256/8534966fead40ce56110b49bd8cabcd3fb703665e7c164abdfcc9aa29f3ce018/index.js +875 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/CHANGELOG.md +20 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/README.md +46 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/demo.html +112 -0
- package/vendor/components/sha256/85f2da6dbed2b9beedaf3ffdea237f3f7940f9b1d4c0d056caa67e937d2dad8d/index.js +443 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/CHANGELOG.md +22 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/README.md +35 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/demo.html +69 -0
- package/vendor/components/sha256/87ca8b6a8995a8fe11206e2def2d6df54075092d15f2f900b25767dbe9bf998e/index.js +217 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/CHANGELOG.md +46 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/OFL.txt +93 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/README.md +30 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/demo.html +40 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/index.js +749 -0
- package/vendor/components/sha256/8af8e00fd248f55ce84fe9989e531ae60bf0eb5d0f059f3a28aa3d9c92a8e1d8/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/CHANGELOG.md +40 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/README.md +36 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/demo.html +52 -0
- package/vendor/components/sha256/9043427ed434c76fba5b11ddd863c40d99b6157e194cfc729895cbaa4940496c/index.js +268 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/CHANGELOG.md +31 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/README.md +46 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/demo.html +112 -0
- package/vendor/components/sha256/9bec862c19d5442f80a2a548a5c24911219469332a6b7fc63689a56f1f3209f4/index.js +481 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/CHANGELOG.md +36 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/README.md +73 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/demo.html +76 -0
- package/vendor/components/sha256/9cf9789f26ceaae205d48bb083e823e768413e3b2227f87de09e3cde2105a68b/index.js +805 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/CHANGELOG.md +24 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/README.md +35 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/demo.html +53 -0
- package/vendor/components/sha256/a034214e470de8f6fa3032f65c8534c87862859525105bdfe94e347ad6a33587/index.js +481 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/CHANGELOG.md +41 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/LICENSE-strokesvg.txt +115 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/OFL.txt +93 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/README.md +33 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/demo.html +40 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/index.js +749 -0
- package/vendor/components/sha256/a5ba78e0e95bf216bcd02295d1aa76ab8c3688b07931a3bfd9401448c4a34106/strokes-CHANGES.md +20 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/CHANGELOG.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/README.md +35 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/demo.html +53 -0
- package/vendor/components/sha256/a6486154cbfe25c500a64cbb2128be45c2e2365e848c34d4c5c10e9a93f6e73c/index.js +521 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/CHANGELOG.md +32 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/README.md +39 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/demo.html +70 -0
- package/vendor/components/sha256/a6ad6867e21b4ffab426919d62f4293cbb447c7307f8f92e4a8c8d7c285fca6a/index.js +166 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/CHANGELOG.md +56 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/README.md +35 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/demo.html +57 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ABCJS-ADAPTER.md +101 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/LICENSE-abcjs.txt +21 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/chords.json +89 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/doremi.json +261 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/extras.json +192 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/kaeru.json +521 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/rhythm.json +248 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/fixtures/ties.json +360 -0
- package/vendor/components/sha256/abbe3a79cdd442191cb76ac572a7fa62af694850c115c4abba30356bae5f475f/index.js +508 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/CHANGELOG.md +31 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/README.md +34 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/demo.html +77 -0
- package/vendor/components/sha256/ae4f864445dff17a19df30c528cb44741558217080f8e6563e0c364025a4d0a6/index.js +222 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/CHANGELOG.md +30 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/README.md +50 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/demo.html +61 -0
- package/vendor/components/sha256/b9ee9d0f48ab61977d3aa618e6155ccc3453dbf452235f438fa15db6f554f961/index.js +171 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/README.md +21 -0
- package/vendor/components/sha256/bd590a6619f80d659299e4e558f770e75244360450939d504a4eaf7989b0eb97/index.js +93 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/CHANGELOG.md +18 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/README.md +21 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/demo.html +32 -0
- package/vendor/components/sha256/bd79435195d9657ad2cb690b49da192bbd20bf1fe25088ba63988dbacafa6f3d/index.js +53 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/CHANGELOG.md +20 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/README.md +40 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/demo.html +92 -0
- package/vendor/components/sha256/be709cea3ba3d0a69138d4c55796f59f6322d97ad0bb8c3a75c3e9fcae5a0419/index.js +399 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/CHANGELOG.md +28 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/README.md +36 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/demo.html +70 -0
- package/vendor/components/sha256/c252d5ceed6735b7ca8095ac8ef035dfc79f8492b2624d7d2eb94d2a27fafe2b/index.js +179 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/README.md +32 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/demo.html +54 -0
- package/vendor/components/sha256/c882093b0dc9215cf79d8f42afc5db46dce07c8b677f85148a3efa7355d7221b/index.js +251 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/CHANGELOG.md +34 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/README.md +35 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/demo.html +69 -0
- package/vendor/components/sha256/cd714d22f82d64c80db8fdef33ca03aa618803e8114662ee2692fc7c6ac7168c/index.js +244 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/CHANGELOG.md +19 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/README.md +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/demo.html +44 -0
- package/vendor/components/sha256/d0fbcd5e36c0f38c2d8352acee060e783b58cd2ab1ff0f9e7a60da4b2a6e3232/index.js +334 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/CHANGELOG.md +37 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/README.md +43 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/demo.html +75 -0
- package/vendor/components/sha256/d159f55bb5a72bc67c4ffa856bf9e1735d3c37f5cad9673accffc1e1953182e0/index.js +348 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/README.md +39 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/demo.html +70 -0
- package/vendor/components/sha256/d29e8fbfd371edf4dea02996c8b43028af511a5f1c212e3b5d89fff68a54e55e/index.js +134 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/README.md +22 -0
- package/vendor/components/sha256/d4159ba1206d094364b7735750e5e2532aeabbc299e0d6858e3a0edb84495e11/index.js +59 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/README.md +20 -0
- package/vendor/components/sha256/d92842c606795528d1246ddb050ac275e1b72659629185750a6e9ac7fdb763a3/index.js +162 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/CHANGELOG.md +33 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/README.md +46 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/demo.html +43 -0
- package/vendor/components/sha256/de611e2477042b14eb9c04bb98ad0bbe6d7b44ca829213dd1a7a2b94d8f946ae/index.js +278 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/CHANGELOG.md +15 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/README.md +25 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/demo.html +48 -0
- package/vendor/components/sha256/de90044c2961a30c88570e41d0c41bfc5037fe691f6f81e12d8e9d3545cd6ec4/index.js +88 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/README.md +25 -0
- package/vendor/components/sha256/de9607f86221006e7bad43f1f661c751d9a6f8f9c62da5c7e0d7f1249b9afcd6/index.js +122 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/CHANGELOG.md +20 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/README.md +23 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/demo.html +236 -0
- package/vendor/components/sha256/e6b022135d0a0bd85a508404f46005986b14d0d175af7ca54b4d024b1e490318/index.js +572 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/CHANGELOG.md +29 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/README.md +23 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/demo.html +33 -0
- package/vendor/components/sha256/e6bbe784ee452d52d534b8fb3a0924e65c49bbb5926139ef5eabd9193500b357/index.js +121 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/CHANGELOG.md +29 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/README.md +32 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/demo.html +56 -0
- package/vendor/components/sha256/eb5efa15920d9883af15d105cc0f7a9b2c781d792faae34a43d44738138b219f/index.js +232 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/CHANGELOG.md +25 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/README.md +71 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/demo.html +76 -0
- package/vendor/components/sha256/ebded96e5827ecf359b73ac0d50a807227d9a06294bd5dabc84263e32c0eeebe/index.js +777 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/CHANGELOG.md +33 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/README.md +28 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/demo.html +236 -0
- package/vendor/components/sha256/ed44804fc14b2755a82960d94cb0322858732ad789fd9a46704ee88955bd65e6/index.js +600 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/CHANGELOG.md +16 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/README.md +38 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/demo.html +115 -0
- package/vendor/components/sha256/ee8519d664179e6b6bb6d2f8cc5b1c07a0ebf3871a8681d28ddd08fecd5f3388/index.js +361 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/CHANGELOG.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/README.md +27 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/demo.html +42 -0
- package/vendor/components/sha256/ef969fa27f1e11aa52a174874292366c7c8201c7c0d8236a7aef7d7eacf6a177/index.js +233 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/README.md +23 -0
- package/vendor/components/sha256/f268cf809438c8af63a42f9c9121110fc7263e4d705c40c6206ce46cf7ec167b/index.js +180 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/CHANGELOG.md +31 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/README.md +36 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/demo.html +50 -0
- package/vendor/components/sha256/f3f55f5ee11ebc66656ca40ff23cd2df6a48f09a2380469f96f8f48033ddf2f7/index.js +263 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/CHANGELOG.md +20 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/README.md +39 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/demo.html +66 -0
- package/vendor/components/sha256/fa8c1e548234bdbfa401bb4b085c5ef24d607a006c377c8c1cf3bcfc52427a5e/index.js +258 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/README.md +22 -0
- package/vendor/components/sha256/fadd24868e2730ec14b8f3f1e9cb75b8577a48b8d71beaa12ef089f7a3ba0a7d/index.js +37 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/README.md +19 -0
- package/vendor/components/sha256/faf6a2f0b5df589639de624e75c5b20594f517e4426f6415d152809249b00b92/index.js +200 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/CHANGELOG.md +25 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/README.md +32 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/demo.html +51 -0
- package/vendor/components/sha256/fd07adeb4b775e139092dd69a3fcbca4528d08e67be6b9e9cf53d4fd06be775b/index.js +270 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/CHANGELOG.md +19 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/README.md +34 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/demo.html +60 -0
- package/vendor/components/sha256/ffac8bd95044aeb032b20dc8412ced70d09759d993955ef66697d4f2aa7f97a5/index.js +209 -0
- package/vendor/components-2/manifest-2.2.0.json +1868 -0
- package/vendor/csl/SOURCE.json +17 -0
- package/vendor/csl/locales/locales-en-US.xml +864 -0
- package/vendor/csl/locales/locales-ja-JP.xml +676 -0
- package/vendor/csl/styles/apa.csl +2278 -0
- package/vendor/csl/styles/ieee.csl +519 -0
- package/vendor/csl/styles/sist02.csl +273 -0
- package/vendor/egatari-spec/SOURCE.json +3 -3
- package/vendor/egatari-spec/schema/deck-meta.schema.json +6 -0
package/kit/core/new-deck.mjs
CHANGED
|
@@ -96,7 +96,7 @@ export const SET_LABELS = [
|
|
|
96
96
|
{ set: 'stats', label: { ja: '統計の図', en: 'Statistics charts' }, inside: { ja: 'ヒストグラム・箱ひげ図・ヒートマップ', en: 'Histograms, box plots, heatmaps' } },
|
|
97
97
|
{ set: 'math', label: { ja: '算数・数学', en: 'Arithmetic and mathematics' }, inside: { ja: '筆算・数直線・テープ図・関数', en: 'Column arithmetic, number lines, tape diagrams, functions' } },
|
|
98
98
|
{ set: 'maps', label: { ja: '地図', en: 'Maps' }, inside: { ja: '日本地図・世界地図', en: 'Maps of Japan and the world' } },
|
|
99
|
-
{ set: 'kokugo', label: { ja: '国語', en: 'Japanese language arts' }, inside: { ja: '
|
|
99
|
+
{ set: 'kokugo', label: { ja: '国語', en: 'Japanese language arts' }, inside: { ja: '漢文・古文・現代文・縦書き', en: 'Kanbun, kobun, modern texts, vertical writing' } },
|
|
100
100
|
{ set: 'english', label: { ja: '英語', en: 'English (foreign language)' }, inside: { ja: '英文の構造(S V O C M・句と節)', en: 'Sentence structure (S V O C M, phrases, clauses)' } },
|
|
101
101
|
{ set: 'music', label: { ja: '音楽', en: 'Music' }, inside: { ja: '鍵盤・楽譜(音階・和音)', en: 'Keyboard and score (scales, chords)' } },
|
|
102
102
|
{ set: 'business', label: { ja: 'ビジネス', en: 'Business' }, inside: { ja: '市場規模の円・お金の流れ', en: 'Market size circles, money flows' } },
|
package/kit/core/part-labels.mjs
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// 部品の画面の名前と絵と 1 行の説明(新規作成 ④ のパーツの一覧)。
|
|
2
|
-
//
|
|
3
|
-
//
|
|
2
|
+
// 名前の正本は部品庫 2.x の既定のカタログ(components2.lock.json の default)の manifest の display(vendor/components-2/manifest-<版>.json)。
|
|
3
|
+
// ブラウザでは manifest を読めないので、npm run gen(tools/make-llm-guide.mjs の displayOf)が kit/core/llm-pack-data.mjs の tiers.parts.<タグ>.display に写す
|
|
4
|
+
// (npm run gen:check が古い写しを見つけ、tools/part-labels-check.mjs が名前と manifest を比べる)。
|
|
5
|
+
// ここに置くのは、絵(icon。app/llm.js の ICONS の名前)と 1 行の説明(desc)と、manifest に display のない部品の名前(ja・en)だけ。
|
|
6
|
+
// 表にない部品は、名前は display(なければ m-… のまま)、絵は汎用(部品庫に部品が増えたら、ここに 1 行足す)
|
|
4
7
|
// PART_LABELS {タグ: {ja, en, icon, desc: {ja, en}}}(desc:新規作成 ④ のパーツの一覧の 1 行の説明。何を描くか)
|
|
5
8
|
// partLabel(tag, lang) → 画面の名前
|
|
6
9
|
// partDesc(tag, lang) → 1 行の説明(表にない部品は '')
|
|
@@ -8,8 +11,14 @@
|
|
|
8
11
|
// standardParts(lang) → 標準パーツ(FREE_CORE。無料のプランの共通の本体が説明する部品)の名前の並び
|
|
9
12
|
// partOrder(tags) → 並べる順(標準パーツ、それから表の順)
|
|
10
13
|
import { FREE_CORE } from './llm-pack-assemble.mjs';
|
|
14
|
+
import { PACK } from './llm-pack-data.mjs';
|
|
11
15
|
|
|
12
|
-
|
|
16
|
+
// manifest の display:{タグ: {ja, en}}
|
|
17
|
+
export const MANIFEST_NAMES = Object.freeze(Object.fromEntries(Object.entries((PACK.tiers && PACK.tiers.parts) || {})
|
|
18
|
+
.filter(([, x]) => x.display).map(([t, x]) => [t, Object.freeze({ ja: x.display.ja, en: x.display.en })])));
|
|
19
|
+
|
|
20
|
+
// 絵と説明(と、display のない部品の名前)
|
|
21
|
+
const LOCAL = {
|
|
13
22
|
'm-bars': { ja: '棒グラフ', en: 'Bar chart', icon: 'bars', desc: { ja: '棒の長さで量を比べる', en: 'Compares amounts by bar length' } },
|
|
14
23
|
'm-flow': { ja: '流れ図', en: 'Flow diagram', icon: 'flow', desc: { ja: '手順や工程を矢印でつなぐ', en: 'Steps of a process joined by arrows' } },
|
|
15
24
|
'm-menu': { ja: '目次', en: 'Contents', icon: 'menu', desc: { ja: 'スライドへのリンクの札を並べた目次', en: 'A contents page of links to slides' } },
|
|
@@ -30,7 +39,7 @@ export const PART_LABELS = Object.freeze({
|
|
|
30
39
|
'm-kanbun': { ja: '漢文', en: 'Kanbun', icon: 'kanbun', desc: { ja: '返り点を付けて訓読の順にたどり、書き下す', en: 'Return marks, reading order and the rendered text' } },
|
|
31
40
|
'm-kobun': { ja: '古文', en: 'Kobun', icon: 'kobun', desc: { ja: '語に切って品詞を色分けし、現代語訳と並べる', en: 'Words split and coloured by part of speech, with a modern translation' } },
|
|
32
41
|
'm-gendai': { ja: '現代文の読解', en: 'Modern text reading', icon: 'gendai', desc: { ja: '傍線・指す内容への矢印・段落の役割を図にする', en: 'Underlines, arrows to what words refer to, and paragraph roles' } },
|
|
33
|
-
'm-codetree': {
|
|
42
|
+
'm-codetree': { icon: 'codetree', desc: { ja: '符号を木の枝でたどる', en: 'Codes traced along the branches of a tree' } },
|
|
34
43
|
'm-map-japan': { ja: '日本地図', en: 'Map of Japan', icon: 'map', desc: { ja: '都道府県を塗り分け、点や矢印を置く', en: 'Prefectures shaded, with points and arrows' } },
|
|
35
44
|
'm-predict': { ja: '予想と答え', en: 'Predict and check', icon: 'predict', desc: { ja: '予想を聞いてから答えを見せる', en: 'Asks for a guess, then shows the answer' } },
|
|
36
45
|
'm-timer': { ja: 'タイマー', en: 'Timer', icon: 'timer', desc: { ja: '演習やグループワークの残り時間', en: 'Time left for an exercise or group work' } },
|
|
@@ -48,7 +57,10 @@ export const PART_LABELS = Object.freeze({
|
|
|
48
57
|
'm-cards': { ja: 'カード', en: 'Cards', icon: 'menu', desc: { ja: 'アイコン付きのカードを並べて 1 枚ずつ出す', en: 'Cards with icons, shown one at a time' } },
|
|
49
58
|
'm-score': { ja: '楽譜', en: 'Score', icon: 'keyboard', desc: { ja: '五線譜を 1 音ずつ出して鳴らす', en: 'Staff notation, one note at a time, with sound' } },
|
|
50
59
|
'm-orbit': { ja: '月の満ち欠け', en: 'Moon phases', icon: 'cycle', desc: { ja: '月の位置と見える形を並べて動かす', en: 'The Moon’s position and its visible shape, moving together' } },
|
|
51
|
-
}
|
|
60
|
+
};
|
|
61
|
+
// 名前は manifest の display を先に。display だけあって表にない部品も名前を出す(絵は汎用)
|
|
62
|
+
export const PART_LABELS = Object.freeze(Object.fromEntries([...Object.keys(LOCAL), ...Object.keys(MANIFEST_NAMES).filter((t) => !LOCAL[t])]
|
|
63
|
+
.map((t) => [t, Object.freeze({ icon: 'other', ...LOCAL[t], ...MANIFEST_NAMES[t] })])));
|
|
52
64
|
export const partLabel = (tag, lang) => (PART_LABELS[tag] ? PART_LABELS[tag][lang === 'ja' ? 'ja' : 'en'] : tag);
|
|
53
65
|
export const partDesc = (tag, lang) => (PART_LABELS[tag] && PART_LABELS[tag].desc ? PART_LABELS[tag].desc[lang === 'ja' ? 'ja' : 'en'] : '');
|
|
54
66
|
export const partIcon = (tag) => (PART_LABELS[tag] ? PART_LABELS[tag].icon : 'other');
|
package/kit/core/parts2.mjs
CHANGED
|
@@ -7,8 +7,11 @@
|
|
|
7
7
|
// 1 つの教材の部品庫の要素は全部 1.x か全部 2.0(同じ要素の名前 m-bars を 2 つの土台で定義できないため)。
|
|
8
8
|
//
|
|
9
9
|
// components2.lock.json:
|
|
10
|
-
// {source, default: <カタログの版>, catalogues: {<カタログの版>: {tag, tarballSha256, manifestSha256, parts: {名前: パーツの版}}},
|
|
10
|
+
// {source, default: <カタログの版>, catalogues: {<カタログの版>: {tag, tarballSha256, manifestSha256, parts: {名前: パーツの版}, content?: {名前: <フォルダの content hash>}}},
|
|
11
11
|
// parts: {名前: {<パーツの版>: {sha256, kind: "element" | "library", tag?, requires: {名前: 版}, build?, glyphs?, license}}}}
|
|
12
|
+
// catalogues.<版>.content:そのリリースの manifest の files とちょうど同じバイトの写し(vendor/components/sha256/<hash>/)。部品庫は版を
|
|
13
|
+
// 上げずに README・demo だけを直すことがあるので、カタログごとに持つ(resolveCatalogueContent で引く)。ない古い固定は版の写しに戻る。
|
|
14
|
+
// 組み立てが読む index.js は、同じ版ならどの写しでも同じ(components.lock.json の content.<版> の写しを使い続ける:組んだ教材は変わらない)
|
|
12
15
|
import { parse } from 'parse5';
|
|
13
16
|
export const LOCK2_FILE = 'components2.lock.json';
|
|
14
17
|
// カタログの manifest と使用条件だけの場所。パーツのコードは resolveComponent で引く。
|
|
@@ -29,6 +32,13 @@ export function lock2Problems(lock) {
|
|
|
29
32
|
if (!VERSION_RE.test(cv)) e.push(`catalogue ${cv}: not a version`);
|
|
30
33
|
if (!isObj(c) || !isObj(c.parts)) { e.push(`catalogue ${cv}: no parts`); continue; }
|
|
31
34
|
for (const [n, v] of Object.entries(c.parts)) if (!isObj(lock.parts[n]) || !isObj(lock.parts[n][v])) e.push(`catalogue ${cv}: ${n}@${v} is not in parts`);
|
|
35
|
+
if (own(c, 'content')) {
|
|
36
|
+
if (!isObj(c.content)) e.push(`catalogue ${cv}: content is not an object`);
|
|
37
|
+
else {
|
|
38
|
+
for (const n of Object.keys(c.parts)) if (!own(c.content, n) || !/^[0-9a-f]{64}$/.test(String(c.content[n]))) e.push(`catalogue ${cv}: content.${n} is not a sha256`);
|
|
39
|
+
for (const n of Object.keys(c.content)) if (!own(c.parts, n)) e.push(`catalogue ${cv}: content.${n} is not a part of the catalogue`);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
32
42
|
}
|
|
33
43
|
for (const [n, vs] of Object.entries(lock.parts)) {
|
|
34
44
|
if (!NAME_RE.test(n)) { e.push(`part ${n}: not a part name`); continue; }
|
package/kit/core/player.mjs
CHANGED
|
@@ -23,7 +23,7 @@ export const PLAYER_FILES = Object.freeze([
|
|
|
23
23
|
'kit/shape.js',
|
|
24
24
|
...Object.keys(RUNTIME_MODULES).map((f) => 'kit/' + f),
|
|
25
25
|
...Object.keys(RUNTIME_NAMESPACES).map((f) => 'kit/' + f),
|
|
26
|
-
'kit/deck.js', 'kit/presenter.js', 'kit/tools.js',
|
|
26
|
+
'kit/deck.js', 'kit/presenter.js', 'kit/tools.js', 'kit/panes.js', 'kit/track.js',
|
|
27
27
|
'kit/base.css', 'kit/layouts.css', 'kit/latin.css',
|
|
28
28
|
'kit/live.js', 'kit/core/live-policy.mjs',
|
|
29
29
|
].sort());
|
package/kit/core/portable.mjs
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// 鍵で引く表はすべて原型のない object か Map(__proto__ などの鍵で取り違えない)
|
|
13
13
|
import { boundedParse, PARSE_LIMITS } from './bounded-html.mjs';
|
|
14
14
|
import { codeReasons } from './code-scan.mjs';
|
|
15
|
-
import { build as coreBuild, jsonScript, MIME, buildBudget, chargedEnv, BuildLimitError } from './build-core.mjs';
|
|
15
|
+
import { build as coreBuild, jsonScript, MIME, buildBudget, chargedEnv, BuildLimitError, DECK_META_RIGHTS } from './build-core.mjs';
|
|
16
16
|
import { parseNarration } from './narration-core.mjs';
|
|
17
17
|
import { FORMAT } from './format.mjs';
|
|
18
18
|
import { readLock, vendorDir, resolveComponent, pinsForIndex, versionForSha, VERSION_RE } from './components-lock.mjs';
|
|
@@ -41,6 +41,8 @@ export const FORMAT_VERSION = Object.freeze({ major: 1, minor: 0 });
|
|
|
41
41
|
// contracts は {source} だけ(format spec §7.1。実行系の約束の版 runtime は 1.0 の形で外した:再生器は player が名指す)
|
|
42
42
|
export const CONTRACTS = Object.freeze({ source: 1 });
|
|
43
43
|
export const FEATURES = Object.freeze(['sources-v1', 'audio-v1']);
|
|
44
|
+
// 同梱の再生器が持つ記録の口(Player P6。kit/track.js):deck-meta.tracking に書く(SCORM 1.2 の包み手はここに scorm12 があるかを見る)
|
|
45
|
+
export const TRACKING = Object.freeze(['scorm12', 'postmessage', 'local']);
|
|
44
46
|
// generator:ファイルを書いたソフト(Egatari Studio と、その版 = package.json の version)。同梱の再生器は player(kit/core/player.mjs)
|
|
45
47
|
export const GENERATOR = 'egatari-studio';
|
|
46
48
|
export const GENERATOR_TITLE = 'Egatari Studio'; // 人に見せる名前(generator.title。spec §3.1)
|
|
@@ -279,12 +281,30 @@ export function validateIndex(ix) {
|
|
|
279
281
|
if (own(ix, 'generator')) generatorCheck(ix.generator, 'generator', e);
|
|
280
282
|
if (own(ix, 'docId')) str(ix.docId, 'docId', RE.docId);
|
|
281
283
|
if (own(ix, 'entry')) path(ix.entry, 'entry');
|
|
284
|
+
// 本文(§9C.1):path か chapters のちょうど 1 つ。chapters は article/<名前>.md の重ならない並び。どのファイルも files にある
|
|
282
285
|
if (own(ix, 'article')) {
|
|
283
286
|
const a = ix.article;
|
|
284
287
|
if (!isObj(a)) e.push('article: not an object');
|
|
285
288
|
else {
|
|
286
|
-
if (
|
|
287
|
-
for (const k of ['path', 'references']) if (own(a, k))
|
|
289
|
+
if (own(a, 'path') === own(a, 'chapters')) e.push(own(a, 'path') ? 'article: both "path" and "chapters"' : 'article: missing "path" (or "chapters")');
|
|
290
|
+
for (const k of ['path', 'references']) if (own(a, k)) path(a[k], `article.${k}`);
|
|
291
|
+
if (own(a, 'chapters')) {
|
|
292
|
+
if (!Array.isArray(a.chapters) || !a.chapters.length) e.push('article.chapters: not a non-empty array');
|
|
293
|
+
else {
|
|
294
|
+
a.chapters.forEach((c, j) => str(c, `article.chapters[${j}]`, /^article\/[^/]+\.md$/));
|
|
295
|
+
if (new Set(a.chapters).size !== a.chapters.length) e.push('article.chapters: duplicate items');
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (isObj(ix.files)) for (const p of [...articleFilesOf(a), ...(typeof a.references === 'string' ? [a.references] : [])]) if (typeof p === 'string' && !own(ix.files, p)) e.push(`article: "${p}" is not in files`);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
// スライドと節のつながりの記録(§9C.7):{スライドの鍵: {節の id: {article, slide}}}(SHA-256 の 16 進の小文字)
|
|
302
|
+
if (own(ix, 'articleLinks')) {
|
|
303
|
+
const L = ix.articleLinks;
|
|
304
|
+
if (!isObj(L)) e.push('articleLinks: not an object');
|
|
305
|
+
else for (const [sk, m] of Object.entries(L)) {
|
|
306
|
+
if (!isObj(m)) { e.push(`articleLinks["${sk}"]: not an object`); continue; }
|
|
307
|
+
for (const [sec, r] of Object.entries(m)) if (!isObj(r) || !RE.sha256.test(String(r.article)) || !RE.sha256.test(String(r.slide))) e.push(`articleLinks["${sk}"]["${sec}"]: not {article, slide}`);
|
|
288
308
|
}
|
|
289
309
|
}
|
|
290
310
|
if (own(ix, 'sourceSha256')) str(ix.sourceSha256, 'sourceSha256', RE.sha256);
|
|
@@ -504,11 +524,27 @@ function metadataCheck(m, w, e) {
|
|
|
504
524
|
}
|
|
505
525
|
}
|
|
506
526
|
if (own(m, 'audience') && !['public', 'individual'].includes(m.audience)) e.push(`${w}.audience: not public or individual`);
|
|
527
|
+
// 本文の引用の書式と一覧・シリーズ(§9C.4・§9C.1A)
|
|
528
|
+
if (own(m, 'citations')) {
|
|
529
|
+
const c = m.citations;
|
|
530
|
+
if (!isObj(c)) e.push(`${w}.citations: not an object`);
|
|
531
|
+
else {
|
|
532
|
+
if (own(c, 'style') && !(typeof c.style === 'string' && c.style.length)) e.push(`${w}.citations.style: not a non-empty string`);
|
|
533
|
+
if (own(c, 'list') && !['end', 'chapter', 'none'].includes(c.list)) e.push(`${w}.citations.list: not end, chapter or none`);
|
|
534
|
+
if (own(c, 'placement') && !['inline', 'footer', 'both'].includes(c.placement)) e.push(`${w}.citations.placement: not inline, footer or both`);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
if (own(m, 'series')) {
|
|
538
|
+
const x = m.series;
|
|
539
|
+
if (!isObj(x) || !(typeof x.id === 'string' && x.id.length) || !(typeof x.title === 'string' && x.title.length) || (own(x, 'part') && !(Number.isInteger(x.part) && x.part >= 1))) e.push(`${w}.series: not {id, title, part?}`);
|
|
540
|
+
}
|
|
507
541
|
}
|
|
542
|
+
// 終えた判定(§9.2):visitedFraction か reachedEnd のどちらか 1 つまでと、played: true(舞台で再生したものだけを数える)。知らない決まりは残す
|
|
508
543
|
function completionCheck(c, w, e) {
|
|
509
544
|
if (!isObj(c)) { e.push(`${w}: not an object`); return; }
|
|
510
|
-
|
|
511
|
-
if (
|
|
545
|
+
if (!Object.keys(c).length) e.push(`${w}: needs a rule`);
|
|
546
|
+
if (own(c, 'visitedFraction') && own(c, 'reachedEnd')) e.push(`${w}: visitedFraction and reachedEnd together`);
|
|
547
|
+
if (own(c, 'played') && c.played !== true) e.push(`${w}.played: not true`);
|
|
512
548
|
if (own(c, 'visitedFraction') && !(typeof c.visitedFraction === 'number' && c.visitedFraction > 0 && c.visitedFraction <= 1)) e.push(`${w}.visitedFraction: not in (0, 1]`);
|
|
513
549
|
if (own(c, 'reachedEnd') && c.reachedEnd !== true) e.push(`${w}.reachedEnd: not true`);
|
|
514
550
|
}
|
|
@@ -532,6 +568,7 @@ export function validateDeckMeta(m, opts = {}) {
|
|
|
532
568
|
if (own(m, 'tracking') && !(Array.isArray(m.tracking) && m.tracking.every((x) => typeof x === 'string' && RE.feature.test(x)) && new Set(m.tracking).size === m.tracking.length)) e.push('deck-meta.tracking: not a list of unique adapter names');
|
|
533
569
|
if (own(m, 'completion')) completionCheck(m.completion, 'deck-meta.completion', e);
|
|
534
570
|
for (const k of ['license', 'copyright', 'attribution']) if (own(m, k) && typeof m[k] !== 'string') e.push(`deck-meta.${k}: not a string`);
|
|
571
|
+
if (own(m, 'creators') && !strArr(m.creators)) e.push('deck-meta.creators: not an array of strings');
|
|
535
572
|
return e;
|
|
536
573
|
}
|
|
537
574
|
// 実行系の deck-audio(仕様の写し(FORMAT.VENDOR_DIR)の schema/deck-audio.schema.json)
|
|
@@ -628,10 +665,10 @@ const escAttr = (s) => escText(s).replace(/"/g, '"');
|
|
|
628
665
|
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();
|
|
629
666
|
const stepOrder = (k) => (k === 'concl' ? Infinity : +k);
|
|
630
667
|
// 書き出す metadata:設定のファイル(FORMAT.CONFIG_FILE)の metadata のうち仕様の項目だけ(時刻・メールなどは入れない)
|
|
631
|
-
const META_KEYS = ['description', 'license', 'copyright', 'attribution', 'creators', 'accessibility', 'curriculum', 'completion', 'derivedFrom', 'authorship', 'audience'];
|
|
668
|
+
const META_KEYS = ['description', 'license', 'copyright', 'attribution', 'creators', 'accessibility', 'curriculum', 'completion', 'derivedFrom', 'authorship', 'audience', 'citations', 'series'];
|
|
632
669
|
|
|
633
670
|
// この書き手が意味を知っている索引の項目(ほかは知らない項目として、作り直しても残す)
|
|
634
|
-
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']);
|
|
671
|
+
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']);
|
|
635
672
|
const ATTACH_KNOWN = new Set(['path', 'role', 'title', 'description']);
|
|
636
673
|
// JSON の値が同じか(object の項目の順は問わない)
|
|
637
674
|
export function sameJson(a, b) {
|
|
@@ -667,9 +704,23 @@ export function folderConfig(index, text) {
|
|
|
667
704
|
if (Object.keys(add).length) patch.extensions = configMerge(add);
|
|
668
705
|
}
|
|
669
706
|
if (list && list.length && !(isObj(c) && own(c, FORMAT.ATTACH_KEY))) patch[FORMAT.ATTACH_KEY] = list;
|
|
707
|
+
// 本文(§9C.7):章のある本文は読む順(article)を必ず書く。つながりの記録(articleLinks)も index と同じ値で残す
|
|
708
|
+
if (isObj(index.article) && Array.isArray(index.article.chapters) && !(isObj(c) && own(c, 'article'))) patch.article = index.article;
|
|
709
|
+
if (isObj(index.articleLinks) && !(isObj(c) && own(c, 'articleLinks'))) patch.articleLinks = index.articleLinks;
|
|
670
710
|
if (!Object.keys(patch).length) return null;
|
|
671
711
|
return updateConfig(isObj(c) ? text : null, patch);
|
|
672
712
|
}
|
|
713
|
+
// 本文(§9C.1):index.article の値(path か chapters、と references)と、そのファイルの並び
|
|
714
|
+
const articleIndexOf = (ix) => ({ ...(ix.path ? { path: ix.path } : { chapters: ix.chapters.slice() }), ...(ix.references ? { references: ix.references } : {}) });
|
|
715
|
+
const articleFilesOf = (ix) => (!isObj(ix) ? [] : typeof ix.path === 'string' ? [ix.path] : Array.isArray(ix.chapters) ? ix.chapters.slice() : []);
|
|
716
|
+
// 作業フォルダに本文のファイル(article.md・article/<名前>.md)があるか(読みはしない。本文の道具を読み込むかを決める)
|
|
717
|
+
async function articlePresent(env, deckDir) {
|
|
718
|
+
const P = env.path;
|
|
719
|
+
if (typeof env.listFiles === 'function') {
|
|
720
|
+
try { return env.listFiles(deckDir).some((f) => /^(?:article\.md|article\/[^/]+\.md)$/.test(P.relative(deckDir, f).split(P.sep).join('/'))); } catch { return false; }
|
|
721
|
+
}
|
|
722
|
+
return env.exists(P.join(deckDir, 'article.md')) || env.exists(P.join(deckDir, 'article'));
|
|
723
|
+
}
|
|
673
724
|
// 書き出しの前の id(§8.1。kit/core/slide-ids.mjs の exportIds):作業フォルダの原稿・口述原稿・音声の記録・timeline.json・comments.json を
|
|
674
725
|
// 上限つきで読み、付け替えたものを {writes: {作業フォルダの中のパス: 字}} で返す。付けられない原稿(id の書式の誤り・鍵の重なり)は断る
|
|
675
726
|
function exportIdsFor(env, deckDir, srcPath, inDeck, opts) {
|
|
@@ -725,14 +776,15 @@ function sectionTags(html) { return (html.match(/<section\b[^>]*>/gi) || []).fil
|
|
|
725
776
|
// idRand id のないスライドに付ける id の乱数(rand(n) → n バイト。見本を組むたびに同じ文書にする。kit/core/narration-core.mjs の newSlideId)
|
|
726
777
|
// withoutLiveResults 授業の部屋の結果(kit/core/live-results.mjs。学ぶ人の質問と答え)の添付を入れない(人に渡す 1 ファイル)。
|
|
727
778
|
// 入れたものは stats.liveResults(パスの配列。1 ファイルを書き出す呼び手が知らせる)
|
|
779
|
+
// checkSteps false:本文のステップへのリンクを再生器で確かめない(索引だけを見る試しの書き出し。編集アプリが開くときの exportIndex。書いた文書は使わない)
|
|
728
780
|
// 添付(§3.8):作業フォルダの attachments/ の下のファイル(env.listFiles(dir) → 絶対パスの配列。なければ設定のファイルに書いたものだけ)を
|
|
729
781
|
// 上限の内で files に入れ、設定のファイルの役割と題から index.attachments を作る(kit/core/attachments.mjs)。読むのは組み立てと同じ数え方(chargedEnv)
|
|
730
782
|
// 返すもの:{html, index, deckMeta, files: {path: Uint8Array}, audio, writes: {path: 文字列}(原稿に残すもの:FORMAT.CONFIG_FILE と、id を付けたときの
|
|
731
783
|
// 原稿・口述原稿・記録の JSON), warnings, stats, playerChange(carry の再生器の名前が違うとき {from, to}、ほかは null), ids: {added, orphans}}
|
|
732
784
|
export async function exportPortable(env0, srcPath, opts = {}) {
|
|
733
785
|
const P = env0.path;
|
|
734
|
-
// 記事(§9C
|
|
735
|
-
if (isObj(opts.carry) && own(opts.carry, 'article')) fail('article-unsupported', 'the lesson has an article (§9C), which this editor does not implement: only tier A edits are possible');
|
|
786
|
+
// 記事(§9C)のある教材は、本文の道具(env.articleTools)を持たない書き手では作り直さない(作り直すと記事が落ちる:§7.2)
|
|
787
|
+
if (isObj(opts.carry) && own(opts.carry, 'article') && typeof env0.articleTools !== 'function') fail('article-unsupported', 'the lesson has an article (§9C), which this editor does not implement: only tier A edits are possible');
|
|
736
788
|
const deckDir = P.dirname(P.resolve(srcPath));
|
|
737
789
|
const rel = (p) => P.relative(deckDir, p).split(P.sep).join('/');
|
|
738
790
|
const warnings = [], writes = dict();
|
|
@@ -744,6 +796,18 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
744
796
|
for (const w of idFix.warnings) warnings.push(w);
|
|
745
797
|
const overlay = new Map(); // 絶対パス → 付け替えた字(組み立ても書き出しもこれを読む)
|
|
746
798
|
for (const [rp, text] of Object.entries(idFix.writes)) { overlay.set(P.resolve(deckDir, ...rp.split('/')), text); writes[rp] = text; }
|
|
799
|
+
// 本文(format spec §9C):本文の道具(env.articleTools():kit/core/article-page.mjs と article-messages.mjs。Node の組み立てと、本文のある教材を
|
|
800
|
+
// 開いた編集アプリ(あとで読み込む app/article-tools.js)が持つ。持たない書き手は、本文のある作業フォルダを断る:黙って本文を落とさない。§7.2)
|
|
801
|
+
let AT = null;
|
|
802
|
+
if (await articlePresent(env0, deckDir)) {
|
|
803
|
+
if (typeof env0.articleTools !== 'function') fail('article-unsupported', 'the working folder has an article (§9C), which this editor cannot write into the single file yet: export it with the CLI (npm run portable -- pack)');
|
|
804
|
+
AT = await env0.articleTools();
|
|
805
|
+
// 節の id(§9C.3):id のない ## の見出しに付け、作業フォルダにも書き戻す(スライドの id と同じ。書き出しは id のない節を出さない)
|
|
806
|
+
const ov = { ...env0, readText: (p, max) => { const o = overlay.get(P.resolve(p)); return o !== undefined ? o : env0.readText(p, max); } };
|
|
807
|
+
const sw = AT.sectionIdWrites(ov, srcPath, opts.idRand ? { rand: opts.idRand } : {});
|
|
808
|
+
for (const [rp, text] of Object.entries(sw.writes)) { overlay.set(P.resolve(deckDir, ...rp.split('/')), text); writes[rp] = text; }
|
|
809
|
+
if (sw.added.length) warnings.push(`${LOG}: gave ${sw.added.length} article section(s) an id (§9C.3) and wrote them back to the working folder: ${sw.added.map((a) => `${a.file}:${a.line} ${a.id}`).join(', ')}`);
|
|
810
|
+
}
|
|
747
811
|
// 組み立てが読んだファイルを記録する
|
|
748
812
|
const reads = new Set();
|
|
749
813
|
const over = (p) => overlay.get(P.resolve(p));
|
|
@@ -800,10 +864,35 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
800
864
|
if (tl) themeVersions = themePinsForIndex(tl, opts.carry.themes).pins;
|
|
801
865
|
}
|
|
802
866
|
// ファイルの決まり(§4.2):基準のまま(外へは繋がらない)。授業の部屋の派生だけが行き先を足す(kit/core/live.mjs の addLive)
|
|
803
|
-
|
|
867
|
+
// 本文(§9C.6)は組む前に読む:再生器の本の窓のために、本文の字を字の絞り込みに、体裁(ARTICLE_CSS)を組み立てに渡す(言語と題は原稿から)
|
|
868
|
+
let art0 = null;
|
|
869
|
+
if (AT) {
|
|
870
|
+
let src0 = '';
|
|
871
|
+
try { src0 = env.readText(srcPath); } catch { /* 組み立てが知らせる */ }
|
|
872
|
+
const lang0 = (src0.match(/<html[^>]*\slang\s*=\s*["']([^"']*)["']/i)?.[1] || 'ja').trim() || 'ja';
|
|
873
|
+
const title0 = plain(src0.match(/<title[^>]*>([\s\S]*?)<\/title>/i)?.[1] || '') || plain(src0.match(/<h2[^>]*>([\s\S]*?)<\/h2>/i)?.[1] || '');
|
|
874
|
+
art0 = AT.renderedArticle(env, srcPath, { lang: lang0, title: title0 });
|
|
875
|
+
}
|
|
876
|
+
const r = (opts.build || coreBuild)(env, srcPath, { ...opts, ...(componentVersions ? { componentVersions } : {}), ...(themeVersions ? { themeVersions } : {}), budget, embedAudio: false, audioRef, deckMeta: metaPh, runtimePrefix: prefixPh, ...(AT && AT.ARTICLE_CSS ? { articleCss: AT.ARTICLE_CSS } : {}), ...(art0 && art0.html ? { articleHtml: art0.html } : {}), policyMeta: policyMeta(policyText()) });
|
|
804
877
|
for (const w of r.stats.warn) warnings.push(w);
|
|
805
878
|
let html = r.html;
|
|
806
879
|
if (new RegExp(`\\bid\\s*=\\s*["']?(?:${[IX_ID, RD_ID, BP, FORMAT.SIGNATURES_ID].map(reEsc).join('|')})`, 'i').test(html)) fail('reserved-id', `the deck uses a reserved id (${IX_ID}, ${RD_ID}, ${BP}…)`);
|
|
880
|
+
// 本文(§9C.6):組み立てと同じ env で読む(読んだ本文のファイル・文献・画像が依存の閉包に入る)。誤り(§9C.8)があれば書き出さない
|
|
881
|
+
let art = null;
|
|
882
|
+
if (AT) {
|
|
883
|
+
const lang0 = (r.html.match(/<html[^>]*\slang\s*=\s*["']([^"']*)["']/i)?.[1] || 'ja').trim() || 'ja';
|
|
884
|
+
art = art0;
|
|
885
|
+
if (art && art.L.index) {
|
|
886
|
+
const ml = /^ja\b/i.test(lang0) ? 'ja' : 'en';
|
|
887
|
+
const errs = art.problems.filter((x) => x.sev === 'error');
|
|
888
|
+
if (errs.length) fail('article-invalid', `the article has ${errs.length} error(s) (§9C.8); fix them first (npm run check): ` + errs.slice(0, 8).map((x) => AT.articleMessage(ml, x)).join(' / '), errs);
|
|
889
|
+
for (const x of art.problems) if (x.sev === 'warn') warnings.push(`${LOG}: article: ${AT.articleMessage(ml, x)}`);
|
|
890
|
+
for (const w of art.warnings) warnings.push(`${LOG}: article: ${w}`);
|
|
891
|
+
art.links = await AT.articleLinkReport(art.L);
|
|
892
|
+
for (const x of art.links.problems) warnings.push(`${LOG}: article: ${AT.articleMessage(ml, x)}`);
|
|
893
|
+
if (art.links.removed.length) warnings.push(`${LOG}: article: dropped ${art.links.removed.length} link record(s) of pairs no longer linked (§9C.7): ${art.links.removed.map((x) => `${x.slide}↔${x.section}`).join(', ')}`);
|
|
894
|
+
} else art = null;
|
|
895
|
+
}
|
|
807
896
|
|
|
808
897
|
// 原稿のファイル(依存の閉包)と、部品庫・テーマ庫の参照
|
|
809
898
|
const files = dict();
|
|
@@ -1050,6 +1139,17 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1050
1139
|
if (!sameJson(econf.themes, pins)) files[CFG] = utf8(updateConfig(new TextDecoder().decode(files[CFG]), { themes: pins }));
|
|
1051
1140
|
}
|
|
1052
1141
|
|
|
1142
|
+
// 本文(§9C.1・§9C.7):1 ファイルの中の設定のファイルに、章の読む順(article。展開するときに要る)と、つながりの記録(articleLinks。
|
|
1143
|
+
// もうつながっていない組を外したもの。index.articleLinks と同じ値)を書く。作業フォルダの設定のファイルは変えない
|
|
1144
|
+
if (art) {
|
|
1145
|
+
for (const p of [...articleFilesOf(art.L.index), ...(art.L.index.references ? [art.L.index.references] : [])]) if (!files[p]) fail('article-invalid', `the article file "${p}" was not read into the archive`);
|
|
1146
|
+
const cur = parseJsonStrict(new TextDecoder().decode(files[CFG]));
|
|
1147
|
+
const patch = {};
|
|
1148
|
+
if (art.L.index.chapters && !sameJson(cur.article, articleIndexOf(art.L.index))) patch.article = articleIndexOf(art.L.index);
|
|
1149
|
+
const links = art.links.pruned;
|
|
1150
|
+
if (!sameJson(cur.articleLinks, links === null ? undefined : links)) patch.articleLinks = links === null ? undefined : links;
|
|
1151
|
+
if (Object.keys(patch).length) files[CFG] = utf8(updateConfig(new TextDecoder().decode(files[CFG]), patch));
|
|
1152
|
+
}
|
|
1053
1153
|
// 外したもの・パスの規則
|
|
1054
1154
|
const pathErr = checkArchivePaths(Object.keys(files));
|
|
1055
1155
|
if (pathErr.length) fail('bad-path', 'archive paths break §3.3: ' + pathErr.join('; '), pathErr);
|
|
@@ -1202,6 +1302,8 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1202
1302
|
excluded: [...EXCLUDED_CATEGORIES],
|
|
1203
1303
|
...(Object.keys(extensions).length ? { extensions } : {}),
|
|
1204
1304
|
...(attachList.length ? { [FORMAT.ATTACH_KEY]: attachList } : {}),
|
|
1305
|
+
...(art ? { article: articleIndexOf(art.L.index) } : {}),
|
|
1306
|
+
...(art && art.links.pruned ? { articleLinks: art.links.pruned } : {}),
|
|
1205
1307
|
};
|
|
1206
1308
|
// 読み取った文書から作り直すとき(編集アプリ):この書き手が知らない項目を、索引のどの深さでも残す(§7.1:metadata・音声の記録・部品とテーマ・塊・
|
|
1207
1309
|
// 版などの中も)。口述原稿の行から作られなかった拡張も残す(§9A)。docId を変えない保存では derivedFrom を元のまま(付けも変えもしない。§7.3)
|
|
@@ -1219,9 +1321,10 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1219
1321
|
if (ie.length) fail('invalid-index', 'produced index is invalid: ' + ie.join('; '), ie);
|
|
1220
1322
|
const deckMeta = {
|
|
1221
1323
|
format: FID, version: { ...FORMAT_VERSION }, contracts: { ...CONTRACTS }, player, generator, docId, title: metadata.title, lang,
|
|
1222
|
-
portable: true, sourceSha256: srcSha, tracking: [],
|
|
1324
|
+
portable: true, sourceSha256: srcSha, tracking: [...TRACKING],
|
|
1223
1325
|
...(metadata.completion ? { completion: metadata.completion } : {}),
|
|
1224
|
-
|
|
1326
|
+
// 権利の表示と作成者(format spec §4・§7.3):再生専用の派生は索引を持たないので、ここに写したものだけが残る
|
|
1327
|
+
...Object.fromEntries(DECK_META_RIGHTS.filter((k) => own(metadata, k)).map((k) => [k, k === 'creators' ? [...metadata[k]] : metadata[k]])),
|
|
1225
1328
|
};
|
|
1226
1329
|
const me = validateDeckMeta(deckMeta);
|
|
1227
1330
|
if (me.length) fail('invalid-deck-meta', me.join('; '), me);
|
|
@@ -1264,7 +1367,7 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1264
1367
|
const ixScript = `<script type="${FORMAT.MIME}" id="${IX_ID}" data-sha256="${await sha256Hex(indexText)}">${indexText}</script>\n`;
|
|
1265
1368
|
projected += ixScript.length;
|
|
1266
1369
|
if (projected > LIM.bundledChars) throw new BuildLimitError('portable document (index)', projected, LIM.bundledChars);
|
|
1267
|
-
const readable = readableLayer(r.slides, segs, lang, warnings, room() - 1) + '\n';
|
|
1370
|
+
const readable = readableLayer(r.slides, segs, lang, warnings, room() - 1, art ? art.html : '') + '\n';
|
|
1268
1371
|
projected += readable.length;
|
|
1269
1372
|
if (projected > LIM.bundledChars) throw new BuildLimitError('portable document (readable layer)', projected, LIM.bundledChars);
|
|
1270
1373
|
// 塊(base64):すべての大きさを確かめた後にだけ作る
|
|
@@ -1280,6 +1383,17 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1280
1383
|
// 書いたものが §4.2 の決まりに合うこと(置き場所と中身。合わなければ書かない)
|
|
1281
1384
|
{ const pp = checkFilePolicy(html);
|
|
1282
1385
|
if (pp.length) fail('file-policy', 'the file policy (§4.2) is not in place: ' + pp.join('; '), pp); }
|
|
1386
|
+
// 本文のステップへのリンク(§9C.8 の 1:ないスライド・ないステップへのリンクは誤りで、書き出さない):書いた文書を再生器で開き、check と同じに確かめる
|
|
1387
|
+
// (env.articleSteps。Node の組み立ては kit/article-steps.mjs、編集アプリはプレビューの再生器。持たなければ書き出さない)
|
|
1388
|
+
if (art && opts.checkSteps !== false) {
|
|
1389
|
+
const links = AT.stepLinksOf(art.L.article);
|
|
1390
|
+
if (links.length) {
|
|
1391
|
+
if (typeof env0.articleSteps !== 'function') fail('article-unsupported', 'the article has step links, and this producer cannot check them in the player (§9C.8): export it with the CLI (npm run portable -- pack)');
|
|
1392
|
+
const res = await env0.articleSteps(html, links);
|
|
1393
|
+
const errs = AT.validateArticle(art.L.article, { ...art.L.ctx, resolveStep: AT.stepResolver(res) }).problems.filter((x) => x.code === 'articleStep');
|
|
1394
|
+
if (errs.length) { const ml = /^ja\b/i.test(lang) ? 'ja' : 'en'; fail('article-invalid', `the article has ${errs.length} error(s) (§9C.8); fix them first (npm run check): ` + errs.slice(0, 8).map((x) => AT.articleMessage(ml, x)).join(' / '), errs); }
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1283
1397
|
const size = utf8Length(html);
|
|
1284
1398
|
if (size > WARN_BYTES) warnings.push(`${LOG}: the file is ${(size / MiB).toFixed(1)} MiB (over ${WARN_BYTES / MiB} MiB): consider splitting the lesson into chapters`);
|
|
1285
1399
|
if (size > LIMITS.fileBytes) warnings.push(`${LOG}: the file is over ${LIMITS.fileBytes / MiB} MiB; editors may refuse it`);
|
|
@@ -1293,7 +1407,7 @@ export async function exportPortable(env0, srcPath, opts = {}) {
|
|
|
1293
1407
|
if (v && f && f.version === v && carryLock.components[c.name].sha256[v] === f.sha256) registryEquivalent.push(c.tag || `${c.name}@${c.version}`);
|
|
1294
1408
|
}
|
|
1295
1409
|
}
|
|
1296
|
-
return { registryEquivalent, playerChange, ids: { added: idFix.added, orphans: idFix.orphans }, html, index, deckMeta, files: Object.assign(dict(), files, audioFiles), audio, writes, warnings, stats: { ...r.stats, bytes: size, files: Object.keys(files).length, audio: Object.keys(audio).length, blobs: Object.keys(blobs).length, attachments: attachList.length, liveResults } };
|
|
1410
|
+
return { registryEquivalent, playerChange, ids: { added: idFix.added, orphans: idFix.orphans }, html, index, deckMeta, files: Object.assign(dict(), files, audioFiles), audio, writes, warnings, stats: { ...r.stats, citeproc: !!(art && art.citeproc), bytes: size, files: Object.keys(files).length, audio: Object.keys(audio).length, blobs: Object.keys(blobs).length, attachments: attachList.length, liveResults } };
|
|
1297
1411
|
}
|
|
1298
1412
|
|
|
1299
1413
|
// ---------------------------------------------------------------- 知らない項目を残す(作り直しのとき)
|
|
@@ -1383,7 +1497,8 @@ function recipeOf(sj, v) {
|
|
|
1383
1497
|
// §2.1 スクリプトなしで読める層:全段階の口述原稿の表示用の文字(スクリプトが動くと deck.js が隠す)。
|
|
1384
1498
|
// 記事の中の段階は番号の小さい順、concl は最後。どのスライドにも当たらない鍵の口述原稿は入れず、warnings に知らせる
|
|
1385
1499
|
// cap:書き出してよい字数(組んだ文書の上限の残り)。実体参照に直した後の字数を、その文字列を作る前に数え、超えるなら作らずに断る
|
|
1386
|
-
|
|
1500
|
+
// article:本文の <article id="egatari-article">(§9C.6:#egatari-readable の最後の子。なければ '')
|
|
1501
|
+
function readableLayer(slides, segs, lang, warnings = [], cap = Infinity, article = '') {
|
|
1387
1502
|
const bySlide = new Map();
|
|
1388
1503
|
for (const s of segs) { if (!bySlide.has(s.slideKey)) bySlide.set(s.slideKey, []); bySlide.get(s.slideKey).push(s); }
|
|
1389
1504
|
const keys = new Set(slides.map((sl) => sl.key));
|
|
@@ -1401,6 +1516,7 @@ function readableLayer(slides, segs, lang, warnings = [], cap = Infinity) {
|
|
|
1401
1516
|
for (const s of steps) { take(readableStepLength(s)); push(readableStep(s)); }
|
|
1402
1517
|
take('</article>'.length); push('</article>');
|
|
1403
1518
|
}
|
|
1519
|
+
if (article) { take(article.length); push(article); }
|
|
1404
1520
|
take('</section>'.length); push('</section>');
|
|
1405
1521
|
return out.join('\n');
|
|
1406
1522
|
}
|
|
@@ -1545,7 +1661,7 @@ export async function readPortable(input, opts = {}) {
|
|
|
1545
1661
|
if (errs.length) fail('invalid-index', 'index is invalid: ' + errs.slice(0, 8).join('; '), errs);
|
|
1546
1662
|
const paths = Object.keys(ix.files);
|
|
1547
1663
|
if (own(ix, 'entry') && !own(ix.files, ix.entry)) fail('invalid-index', `entry "${ix.entry}" is not in files`);
|
|
1548
|
-
if (isObj(ix.article)
|
|
1664
|
+
if (isObj(ix.article)) for (const p of articleFilesOf(ix.article)) if (!own(ix.files, p)) fail('invalid-index', `article file "${p}" is not in files`);
|
|
1549
1665
|
for (const p of paths) if (!own(ix.blobs, ix.files[p])) fail('invalid-index', `files["${p}"] refers to a missing blob ${ix.files[p]}`);
|
|
1550
1666
|
if (ix.audio) for (const [k, a] of Object.entries(ix.audio)) {
|
|
1551
1667
|
if (!own(ix.files, a.file)) fail('invalid-index', `audio["${k}"].file "${a.file}" is not in files`);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// 見出し・題を日本語の「」で引用するときの決まり(一か所):引用する字の中にすでに「」があれば、中の「」を『』にしてから囲む
|
|
2
|
+
// 「春暁」を読む → 「『春暁』を読む」(「「春暁」を読む」にしない)
|
|
3
|
+
// 画面の文言・check の知らせ・build の警告で、見出しや題を「」で囲むところはすべてこれを通す。
|
|
4
|
+
export const innerJa = (s) => String(s ?? '').replace(/「/g, '『').replace(/」/g, '』');
|
|
5
|
+
export const quoteJa = (s) => '「' + innerJa(s) + '」';
|
package/kit/core/themes-lock.mjs
CHANGED
|
@@ -26,6 +26,22 @@ export function excludedFromThemeHash(rel) {
|
|
|
26
26
|
const r = topLevel(rel);
|
|
27
27
|
return r !== null && (/^(?:readme|licen[cs]e)/i.test(r) || /\.md$/i.test(r));
|
|
28
28
|
}
|
|
29
|
+
// テーマの tokens.css の url(…)(組み立てが data: URI にする。kit/core/build-core.mjs):テーマのフォルダからの相対の参照だけ。
|
|
30
|
+
// data:・blob:・http(s):・//・絶対のパス・#断片・ほかのスキームは対象外。themeUrlRel(ref) → 相対パス(?#を除き、% を戻したもの)か null。
|
|
31
|
+
// CSS_URL_RE は /*…*/(コメント。飛ばす)と url(…) に合う
|
|
32
|
+
export const CSS_URL_RE = /\/\*[\s\S]*?\*\/|url\(\s*(['"]?)([^'")]*)\1\s*\)/g;
|
|
33
|
+
export function themeUrlRel(ref) {
|
|
34
|
+
const r = String(ref).trim();
|
|
35
|
+
if (!r || /^(?:data:|blob:|#|about:)/i.test(r) || /^(?:https?:)?\/\//i.test(r) || r.startsWith('/') || /^[a-z][a-z0-9+.-]*:/i.test(r) || /\$\{|\{\{/.test(r)) return null;
|
|
36
|
+
let rel = r.replace(/[?#].*$/, '');
|
|
37
|
+
try { rel = decodeURIComponent(rel); } catch { /* そのまま */ }
|
|
38
|
+
return rel || null;
|
|
39
|
+
}
|
|
40
|
+
export function themeCssRefs(text) {
|
|
41
|
+
const out = [];
|
|
42
|
+
for (const m of String(text).matchAll(CSS_URL_RE)) { if (m[2] === undefined) continue; const r = themeUrlRel(m[2]); if (r) out.push(r); }
|
|
43
|
+
return out;
|
|
44
|
+
}
|
|
29
45
|
export function excludedFromThemeCopy(rel) {
|
|
30
46
|
const r = topLevel(rel);
|
|
31
47
|
return r !== null && !isThemeLicense(r) && (/^readme/i.test(r) || /\.md$/i.test(r));
|
package/kit/core/tier-a.mjs
CHANGED
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
// files 作業場所の今のファイル:{path: Uint8Array} か Map(audio/manifest.json を含む。控え・コメントなど保存しないものは無視する)
|
|
8
8
|
// opts.identity {docId, derivedFrom}:新しい教材として保存する(docId と derivedFrom も書き換え、書き出しの印 exportedFrom を外す。§3.1・§7.3)
|
|
9
9
|
// opts.fonts {faces(key) → [{w, family, file, range}], load(file) → Promise<base64>}:字の分割ファイル(@fontsource)。key は 'biz' | 'sans3'
|
|
10
|
+
// opts.article {html}:本文(§9C)を直したときの、組み直した <article id="egatari-article">(呼び手が今の作業場所から組む。kit/core/article-page.mjs の
|
|
11
|
+
// renderedArticle)。本文のファイル(index.article の path・chapters・references)が変わっていて、これがなければ article-changed で断る
|
|
12
|
+
// (呼び手は本文を組んでから、もう一度呼ぶ)。本文を直すのは §9C.1 の「本文だけを組み直す」編集で、スライドは組み直さない
|
|
10
13
|
//
|
|
11
14
|
// 書き換えるのは §7.2 が挙げる場所だけ:
|
|
12
15
|
// 実行系の JSON(deck-narration・deck-marks・deck-timing・deck-audio)の、変わった段階の項目だけ(ほかの項目のバイトはそのまま)
|
|
@@ -16,6 +19,9 @@
|
|
|
16
19
|
// 塊(新しい中身を足し、どこからも参照されなくなったものを除く)
|
|
17
20
|
// 字の補い:新しい <style id="<前置><n>">(n は今ある補いの番号の次・0 から。最後の字の <style> の後に。今の文書が埋め込む字(family・weight・style)
|
|
18
21
|
// ごとに、その字が持たない字の分割ファイルだけ。既にある字のバイトは触らない。要らなければ足さない)
|
|
22
|
+
// 本文(§9C.1):本文のファイルの中身が変わったときだけ、読める層の <article id="egatari-article"> を opts.article.html に置き換える
|
|
23
|
+
// (本文のファイルを足す・消す・章の順を変える・本文の画像を変えるのは段 B)。新しい字があれば字の補いも(口述原稿と同じ)
|
|
24
|
+
// つながりの記録(index.articleLinks。§9C.7):設定のファイルの articleLinks を確かめた(記録し直した)ときは、索引も同じ値に
|
|
19
25
|
// 添付(attachments/ の下のファイルと index.attachments。§3.8・§7.2 の「archive entries」):足す・消す・名前を替える・役割と題(設定のファイル)。
|
|
20
26
|
// スライドの原稿(テキストのファイル)がその添付のパスを書いていれば(組み立てが読んだかもしれない)断る(段 B へ)
|
|
21
27
|
// 段階の口述原稿をまるごと消したときは、その音声の記録と塊も消して warnings に知らせる(直しただけの段階の音声は残す。古いと分かる)
|
|
@@ -35,6 +41,7 @@ import { updateConfig } from './config-file.mjs';
|
|
|
35
41
|
|
|
36
42
|
const IX_ID = FORMAT.INDEX_ID, BP = FORMAT.BLOB_PREFIX, SCHEME = FORMAT.URI_SCHEME, RD_ID = FORMAT.READABLE_ID, CFG = FORMAT.CONFIG_FILE;
|
|
37
43
|
const SUP = FORMAT.FONT_SUPPLEMENT_PREFIX;
|
|
44
|
+
const ARTICLE_ID = 'egatari-article'; // 本文の実行時の形(format spec §9C.6)
|
|
38
45
|
const BLOCKS = ['deck-narration', 'deck-marks', 'deck-audio', 'deck-timing', 'deck-meta'];
|
|
39
46
|
// 段 A で変わってよい原稿のファイル(音声 audio/ は記録として別に扱う)。FORMAT.CONFIG_FILE は docId と権利の表示が索引と同じときだけ
|
|
40
47
|
const TIER_A_FILES = new Set(['narration.md', 'timeline.json', CFG]);
|
|
@@ -88,8 +95,10 @@ export function scanLayout(text) {
|
|
|
88
95
|
};
|
|
89
96
|
function readableOf(sec, L) {
|
|
90
97
|
const articles = new Map(), dupArticles = new Set();
|
|
98
|
+
let book = null, dupBook = false; // 本文(§9C.6:#egatari-readable の最後の <article id="egatari-article">。data-slide-key はない)
|
|
91
99
|
for (const a of sec.childNodes || []) {
|
|
92
100
|
if (a.tagName !== 'article') continue;
|
|
101
|
+
if (attr(a, 'id') === ARTICLE_ID && attr(a, 'data-slide-key') == null) { if (book) dupBook = true; else book = loc(a); continue; }
|
|
93
102
|
const key = attr(a, 'data-slide-key');
|
|
94
103
|
if (key == null) continue;
|
|
95
104
|
if (articles.has(key)) { dupArticles.add(key); continue; }
|
|
@@ -104,7 +113,7 @@ export function scanLayout(text) {
|
|
|
104
113
|
}
|
|
105
114
|
articles.set(key, { ...al, after, divs, dupDivs });
|
|
106
115
|
}
|
|
107
|
-
return { ...L, articles, dupArticles };
|
|
116
|
+
return { ...L, articles, dupArticles, book, dupBook };
|
|
108
117
|
}
|
|
109
118
|
visit(doc, false);
|
|
110
119
|
return { blocks, dupBlocks, index, chunks, styles, readable, headEnd, slideKeys };
|
|
@@ -213,6 +222,9 @@ function fontFacesOf(text, styles) {
|
|
|
213
222
|
}
|
|
214
223
|
const inRange = (range, c) => range.some(([a, b]) => c >= a && c <= b);
|
|
215
224
|
// 見える字だけ(deck-narration の ttsParts は画面に出ないので、字の補いの判定に入れない)
|
|
225
|
+
// HTML の見える字(タグを除き、文字参照を戻す。字の補いの判定だけに使う)
|
|
226
|
+
const ENT = { amp: '&', lt: '<', gt: '>', quot: '"', apos: "'", nbsp: '\u00a0' };
|
|
227
|
+
const textOfHtml = (h) => String(h).replace(/<[^>]*>/g, '').replace(/&(?:#x([0-9a-f]+)|#(\d+)|([a-z]+));/gi, (m, x, d, n) => { try { return x ? String.fromCodePoint(parseInt(x, 16)) : d ? String.fromCodePoint(+d) : ENT[n.toLowerCase()] || m; } catch { return m; } });
|
|
216
228
|
const shown = (v, out = []) => { if (typeof v === 'string') out.push(v); else if (Array.isArray(v)) v.forEach((x) => shown(x, out)); else if (isObj(v)) for (const [k, x] of Object.entries(v)) { if (k !== 'ttsParts') shown(x, out); } return out; };
|
|
217
229
|
|
|
218
230
|
// ---------------------------------------------------------------- 本体
|
|
@@ -236,6 +248,7 @@ async function run(original, filesIn, opts) {
|
|
|
236
248
|
const docId = identity ? identity.docId : ix.docId;
|
|
237
249
|
if (identity && !(typeof identity.docId === 'string' && RE.docId.test(identity.docId))) refuse('bad-identity', 'identity.docId is not a lowercase UUID');
|
|
238
250
|
|
|
251
|
+
let linksNew, linksSet = false; // 設定のファイルを変えたときの articleLinks(索引にも同じ値を書く。§9C.7)
|
|
239
252
|
// 1. どの原稿が変わったか。段 A の場所だけで済むもの(口述原稿・timeline.json・設定のファイル)のほかは断る
|
|
240
253
|
const changed = [];
|
|
241
254
|
for (const p of new Set([...Object.keys(old), ...NEW.keys()])) {
|
|
@@ -245,8 +258,17 @@ async function run(original, filesIn, opts) {
|
|
|
245
258
|
if (eqBytes(a, b)) continue;
|
|
246
259
|
changed.push(p);
|
|
247
260
|
}
|
|
248
|
-
|
|
261
|
+
// 本文のファイル(§9C.1:index.article の path・chapters・references)。中身を直しただけなら本文だけを組み直す(opts.article)
|
|
262
|
+
const artIx = isObj(ix.article) ? ix.article : null;
|
|
263
|
+
const ARTICLE_FILES = new Set(artIx ? [...(typeof artIx.path === 'string' ? [artIx.path] : Array.isArray(artIx.chapters) ? artIx.chapters : []), ...(typeof artIx.references === 'string' ? [artIx.references] : [])] : []);
|
|
264
|
+
const articleChanged = changed.filter((p) => ARTICLE_FILES.has(p));
|
|
265
|
+
const outside = changed.filter((p) => !TIER_A_FILES.has(p) && !isAttachPath(p) && !ARTICLE_FILES.has(p));
|
|
249
266
|
if (outside.length) refuse('source-changed', `slide source changed (${outside.join(', ')}): the lesson must be rebuilt (tier B)`, outside);
|
|
267
|
+
const artGone = articleChanged.filter((p) => !NEW.get(p));
|
|
268
|
+
if (artGone.length) refuse('source-changed', `an article file was removed (${artGone.join(', ')}): the lesson must be rebuilt (tier B)`, artGone);
|
|
269
|
+
const articleHtml = opts.article && typeof opts.article.html === 'string' ? opts.article.html.replace(/\r\n?/g, '\n') : null;
|
|
270
|
+
if (articleChanged.length && articleHtml === null) refuse('article-changed', `the article changed (${articleChanged.join(', ')}): render it again and pass it (opts.article), or rebuild`, articleChanged);
|
|
271
|
+
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`);
|
|
250
272
|
// 添付の変更:スライドの原稿(添付と音声でない文字のファイル)がそのパスを書いていれば、組み立てが読んだかもしれないので組み直す
|
|
251
273
|
const attachChanged = changed.filter((p) => isAttachPath(p));
|
|
252
274
|
if (attachChanged.length) {
|
|
@@ -264,6 +286,16 @@ async function run(original, filesIn, opts) {
|
|
|
264
286
|
if (!deepEqual(cm[k], want)) refuse('config-changed', `${CFG}: metadata.${k} differs from the document (the lesson must be rebuilt)`);
|
|
265
287
|
}
|
|
266
288
|
for (const k of META_RIGHTS) if (k !== 'title' && own(im, k) && !own(cm, k)) refuse('config-changed', `${CFG}: metadata.${k} is missing`);
|
|
289
|
+
// 章の読む順(article。§9C.7)が変われば本文の組み直し(段 B)。つながりの記録(articleLinks)は段 A の場所(§7.2):索引も同じ値に
|
|
290
|
+
let oc = null;
|
|
291
|
+
try { oc = own(old, CFG) ? parseJsonStrict(dec.decode(old[CFG])) : null; } catch { oc = null; }
|
|
292
|
+
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)`);
|
|
293
|
+
if (own(c, 'articleLinks')) {
|
|
294
|
+
const AL = c.articleLinks, okRec = (r) => isObj(r) && RE.sha256.test(String(r.article)) && RE.sha256.test(String(r.slide));
|
|
295
|
+
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}}}`);
|
|
296
|
+
}
|
|
297
|
+
linksNew = own(c, 'articleLinks') ? c.articleLinks : undefined;
|
|
298
|
+
linksSet = true;
|
|
267
299
|
}
|
|
268
300
|
if (identity && !changed.includes(CFG) && own(old, CFG)) refuse('config-changed', `${CFG}: the new docId is not in the configuration file`);
|
|
269
301
|
|
|
@@ -434,6 +466,7 @@ async function run(original, filesIn, opts) {
|
|
|
434
466
|
if (!hasAudio && req.includes('audio-v1')) req.splice(req.indexOf('audio-v1'), 1);
|
|
435
467
|
if (!deepEqual(req, ix.requires)) setIx(['requires'], req);
|
|
436
468
|
if (attachDiff) setIx([FORMAT.ATTACH_KEY], attachList.length ? attachList : undefined);
|
|
469
|
+
if (linksSet && !deepEqual(linksNew, own(ix, 'articleLinks') ? ix.articleLinks : undefined)) setIx(['articleLinks'], linksNew, [...INDEX_ORDER, 'article', 'articleLinks']);
|
|
437
470
|
if (!hasAudio) { if (own(ix, 'audio')) setIx(['audio'], undefined); }
|
|
438
471
|
else if (!own(ix, 'audio')) setIx(['audio'], newAudio);
|
|
439
472
|
else for (const k of audioChanged) setIx(['audio', k], own(newAudio, k) ? newAudio[k] : undefined, Object.keys(newAudio));
|
|
@@ -487,11 +520,20 @@ async function run(original, filesIn, opts) {
|
|
|
487
520
|
const lang = (r.deckMeta && r.deckMeta.lang) || (isObj(ix.metadata) && ix.metadata.lang) || 'ja';
|
|
488
521
|
const need = new Set();
|
|
489
522
|
for (const { s, st } of narrChanged) for (const x of shown(newMap[s]?.[st])) for (const ch of x) if (ch.codePointAt(0) >= 0x20) need.add(ch.codePointAt(0));
|
|
523
|
+
// 本文を組み直したとき:前の本文になかった字(前の本文の字は、組み立てが字を選んだときにあった字)
|
|
524
|
+
const bookLoc = articleChanged.length ? (L.readable && L.readable.book) : null;
|
|
525
|
+
const oldBookChars = new Set();
|
|
526
|
+
if (articleChanged.length) {
|
|
527
|
+
if (!bookLoc || L.readable.dupBook) refuse('layout', `the readable layer has no single <article id="${ARTICLE_ID}">`);
|
|
528
|
+
for (const ch of textOfHtml(original.slice(bookLoc.cStart, bookLoc.cEnd))) oldBookChars.add(ch.codePointAt(0));
|
|
529
|
+
for (const ch of textOfHtml(articleHtml)) { const c = ch.codePointAt(0); if (c >= 0x20 && !oldBookChars.has(c)) need.add(c); }
|
|
530
|
+
}
|
|
490
531
|
if (need.size) {
|
|
491
532
|
const have = fontFacesOf(original, L.styles);
|
|
492
533
|
// 範囲(unicode-range)のない字(字を絞り込んだもの)は、元の口述原稿の字だけを持つとみなす(足りなければ補う。多めに足すことはあっても欠けない)
|
|
493
534
|
const known = new Set();
|
|
494
535
|
for (const x of shown(parseJsonStrict(blockText('deck-narration')))) for (const ch of x) known.add(ch.codePointAt(0));
|
|
536
|
+
for (const c of oldBookChars) known.add(c);
|
|
495
537
|
const covered = (c, family, w, style) => have.some((f) => f.family === family && f.w === w && f.style === style && (f.range ? inRange(f.range, c) : known.has(c)));
|
|
496
538
|
const families = { biz: 'BIZ UDPGothic', sans3: 'Source Sans 3' };
|
|
497
539
|
// 補うのは、文書が埋め込んでいる字(同じ family・weight・style)だけ(§7.2。400 だけを埋め込んだ文書には 400 だけ)
|
|
@@ -550,6 +592,8 @@ async function run(original, filesIn, opts) {
|
|
|
550
592
|
ops.push([at, at + 64, h]);
|
|
551
593
|
ops.push([L.index.cStart, L.index.cEnd, ixText]);
|
|
552
594
|
}
|
|
595
|
+
// 本文(§9C.1):<article id="egatari-article"> をまるごと置き換える(ほかのバイトはそのまま)
|
|
596
|
+
if (articleChanged.length && original.slice(bookLoc.start, bookLoc.end) !== articleHtml) ops.push([bookLoc.start, bookLoc.end, articleHtml]);
|
|
553
597
|
// 読める層:どのスライドにも当たらない鍵の口述原稿は入れず、知らせる(§2.1。書き出しと同じ)
|
|
554
598
|
const orphans = newSegs.filter((sg) => !L.slideKeys.has(sg.slideKey) && !(L.readable && L.readable.articles.has(sg.slideKey)));
|
|
555
599
|
for (const sg of orphans) warnings.push(`narration for "${sg.slideKey}:${sg.stepKey}" matches no slide; omitted from the readable layer`);
|
|
@@ -612,7 +656,7 @@ async function run(original, filesIn, opts) {
|
|
|
612
656
|
return {
|
|
613
657
|
ok: true, html, index: newIndex, deckMeta: back.deckMeta, warnings: [...warnings], ...(configText !== null ? { config: configText } : {}),
|
|
614
658
|
changes: {
|
|
615
|
-
files: changed, narration: narrChanged.map((x) => x.k), marks: marksChanged, timing: timingChanged, audio: audioChanged,
|
|
659
|
+
files: changed, article: articleChanged, narration: narrChanged.map((x) => x.k), marks: marksChanged, timing: timingChanged, audio: audioChanged,
|
|
616
660
|
extensions: exChanged, attachments: attachDiff || attachChanged.length > 0, blobsAdded: newChunks.length ? Object.keys(blobs).filter((id) => !own(ix.blobs, id)) : [], blobsDropped: [...dropSet],
|
|
617
661
|
supplement: supplement ? { id: supplement.id, files: supplement.files.map((f) => String(f).split(/[\\/]/).pop()), faces: supplement.faces, chars: supplement.chars } : null,
|
|
618
662
|
identity: !!identity, unchanged: html === original,
|