egatari 0.6.14 → 0.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -1
- package/README.ja.md +65 -64
- package/README.md +40 -39
- package/bin/egatari.mjs +3 -3
- package/components.lock.json +507 -153
- package/components2.lock.json +1710 -33
- package/kit/check-messages.mjs +105 -71
- package/kit/check.mjs +17 -11
- package/kit/core/article-messages.mjs +15 -15
- package/kit/core/article-render.mjs +1 -1
- package/kit/core/article-text.mjs +3 -1
- package/kit/core/build-core.mjs +23 -1
- package/kit/core/check-parity.mjs +2 -2
- package/kit/core/check-rules.mjs +12 -7
- package/kit/core/colab-core.mjs +2 -2
- package/kit/core/comment-core.mjs +6 -0
- package/kit/core/export-name.mjs +2 -2
- package/kit/core/geometry-check.mjs +363 -25
- package/kit/core/layout-scan.mjs +75 -5
- package/kit/core/live-policy.mjs +2 -2
- package/kit/core/live.mjs +2 -2
- package/kit/core/llm-fix.mjs +24 -13
- package/kit/core/llm-insert.mjs +11 -11
- package/kit/core/llm-outline.mjs +7 -7
- package/kit/core/llm-pack-assemble.mjs +5 -2
- package/kit/core/llm-pack-data.mjs +225 -39
- package/kit/core/llm-pack.mjs +3 -3
- package/kit/core/new-deck.mjs +17 -3
- package/kit/core/part-labels.mjs +6 -0
- package/kit/core/parts2.mjs +5 -5
- package/kit/core/player.mjs +18 -0
- package/kit/core/portable.mjs +26 -8
- package/kit/core/purposes.mjs +2 -2
- package/kit/core/ref-voice.mjs +1 -1
- package/kit/core/scorm.mjs +1 -1
- package/kit/core/sound-preferences.mjs +1 -1
- package/kit/core/theme-derive.mjs +209 -0
- package/kit/core/themes-list.mjs +1 -1
- package/kit/core/themes-lock.mjs +1 -1
- package/kit/core/tier-a.mjs +20 -8
- package/kit/deck.js +7 -4
- package/kit/instruction-version.json +1 -1
- package/kit/live.js +20 -20
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/presenter.js +5 -3
- package/kit/templates/new-deck.mjs +6 -6
- package/kit/tools.js +13 -6
- package/kit/track.js +1 -1
- package/package.json +4 -2
- package/server/dev.mjs +3 -2
- package/server/editor-ui.js +28 -20
- package/server/hints.js +22 -2
- package/tts/yomi.yaml +8 -0
- 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 +16 -1
- package/vendor/egatari-spec/schema/egatari-metadata.schema.json +17 -2
|
@@ -28,7 +28,7 @@ export const ARTICLE_MESSAGES = {
|
|
|
28
28
|
articleFrontMatter: { ja: (a) => `前付けの行「${a.text}」が読めない:1 行に「名前: 値」だけを書く`, en: (a) => `cannot read the front matter line “${a.text}”: write one “name: value” per line` },
|
|
29
29
|
articleFrontMatterMember: { ja: (a) => `前付けの「${a.member}」は書けない(title・subtitle・lang・bibliography・writing-mode・chapter・kind・numbering だけ)`, en: (a) => `the front matter member “${a.member}” is not allowed (only title, subtitle, lang, bibliography, writing-mode, chapter, kind, numbering)` },
|
|
30
30
|
articleFrontMatterValue: { ja: (a) => `前付けの ${a.member} の値「${a.value}」が違う(${{ string: '空でない字', lang: '言語の名前(ja・en など)', mode: 'horizontal-tb か vertical-rl', posint: '正の整数', kind: 'preface・chapter・appendix・afterword のどれか', boolean: 'true か false' }[a.expected]})`, en: (a) => `front matter ${a.member}: “${a.value}” is not ${{ string: 'a non-empty string', lang: 'a language tag (ja, en, …)', mode: 'horizontal-tb or vertical-rl', posint: 'a positive integer', kind: 'one of preface, chapter, appendix, afterword', boolean: 'true or false' }[a.expected]}` },
|
|
31
|
-
articleKindChapter: { ja: (a) => `kind: ${a.kind} のファイルに chapter(章の番号)がある:付録は A・B…と自動で振るので chapter
|
|
31
|
+
articleKindChapter: { ja: (a) => `kind: ${a.kind} のファイルに chapter(章の番号)がある:付録は A・B…と自動で振るので chapter を削除する`, en: (a) => `a kind: ${a.kind} file states chapter: remove it (appendices are lettered A, B, … automatically)` },
|
|
32
32
|
articleDirective: { ja: (a) => `{${a.name}} は Egatari Text の外の書き方${hintJa(a)}`, en: (a) => `{${a.name}} is outside Egatari Text${hintEn(a)}` },
|
|
33
33
|
articleBacktickDirective: { ja: (a) => `{${a.name}} を「\`\`\`」で囲んでいる:指令は「:::」で囲む`, en: (a) => `{${a.name}} is fenced with backticks: fence directives with ::: (colons)` },
|
|
34
34
|
articleOption: { ja: (a) => `{${a.name}} に :${a.option}: は書けない`, en: (a) => `{${a.name}} does not take the option :${a.option}:` },
|
|
@@ -37,14 +37,14 @@ export const ARTICLE_MESSAGES = {
|
|
|
37
37
|
articleHtmlTable: { ja: (a) => `HTML の表が決まりに合わない:${a.why}(使えるのは table・thead・tbody・tr・th・td、属性 colspan・rowspan・align、セルの中は字と em・strong・code・sub・sup・br だけ。空行・数式・Markdown は書けない)`, en: (a) => `the HTML table breaks the rules: ${a.why} (only table, thead, tbody, tr, th, td; attributes colspan, rowspan, align; cells hold text and em, strong, code, sub, sup, br; no blank lines, math or Markdown)` },
|
|
38
38
|
articleHtmlTableNoSpan: { ja: () => 'HTML の表にセルをつなぐところ(colspan・rowspan)がない:パイプの表(| 見出し | … |)で書く', en: () => 'the HTML table merges no cells (no colspan or rowspan): write it as a pipe table (| header | … |)' },
|
|
39
39
|
articleComment: { ja: (a) => `「%」で始まる行(${a.text})は MyST では消える:字として書くなら \\% と書く`, en: (a) => `a line starting with % (${a.text}) is a MyST comment and disappears: write \\% for the character` },
|
|
40
|
-
articleBlockBreak: { ja: () => '「+++」(区切り)は節の kind
|
|
40
|
+
articleBlockBreak: { ja: () => '「+++」(区切り)は節の kind の行だけに使える:削除するか、--- (横線)にする', en: () => 'a block break (+++) is allowed only for a section kind line: remove it or use --- (a thematic break)' },
|
|
41
41
|
articleSubstitution: { ja: (a) => `置き換え「${a.text}」は書けない:字をそのまま書く`, en: (a) => `the substitution “${a.text}” is not allowed: write the text itself` },
|
|
42
42
|
articleStrike: { ja: (a) => `取り消し線「${a.text}」は書けない`, en: (a) => `strikethrough “${a.text}” is not allowed` },
|
|
43
43
|
articleBareUrl: { ja: (a) => `URL「${a.url}」がリンクになっていない:<${a.url}> か [字](${a.url}) と書く`, en: (a) => `the URL ${a.url} is not a link: write <${a.url}> or [text](${a.url})` },
|
|
44
44
|
articleTaskList: { ja: () => 'チェックの付く箇条書き(- [ ])は書けない:普通の箇条書きにする', en: () => 'task lists (- [ ]) are not allowed: use a plain list' },
|
|
45
45
|
articleHeadingLevel: { ja: (a) => (a.depth === 1 ? '「#」(第 1 段の見出し)は書けない:題は前付けの title に書き、節は ## から' : `「${'#'.repeat(a.depth)}」(第 ${a.depth} 段の見出し)は書けない:見出しは ##・###・#### まで`), en: (a) => (a.depth === 1 ? 'a level-1 heading (#) is not allowed: put the title in the front matter title and start sections at ##' : `a level-${a.depth} heading is not allowed: use ##, ### or ####`) },
|
|
46
46
|
articleSectionId: { ja: (a) => `節${quoteJa(a.heading)}(## の見出し)に id がない:npm run ids で (sec-…)= の行を付ける(自分で書かない)`, en: (a) => `the section “${a.heading}” (a ## heading) has no id: run npm run ids to add its (sec-…)= line (do not write ids by hand)` },
|
|
47
|
-
articleSectionIdForm: { ja: (a) => `節の id「${a.label}」が決まりの形(sec- と英小文字・2〜7 の 6 字)でない:その (…)=
|
|
47
|
+
articleSectionIdForm: { ja: (a) => `節の id「${a.label}」が決まりの形(sec- と英小文字・2〜7 の 6 字)でない:その (…)= の行を削除して npm run ids で付け直す(参照も修正する)`, en: (a) => `the section id “${a.label}” is not of the required form (sec- and 6 characters a–z, 2–7): delete its (…)= line, run npm run ids and update references to it` },
|
|
48
48
|
articleLabel: { ja: (a) => `名前「${a.label}」:${WHY_LABEL.ja[a.why]}`, en: (a) => `the label “${a.label}” ${WHY_LABEL.en[a.why]}` },
|
|
49
49
|
articleCiteKey: { ja: (a) => `引用キー「${a.key}」が引用キーの書式に合わない(英数字と _、間に . : - 。64 字まで)`, en: (a) => `the citation key “${a.key}” does not match the citation key pattern (letters, digits, _, separated by . : -; up to 64)` },
|
|
50
50
|
articleCitePrefix: { ja: (a) => `[@${a.key}] の前に字(${a.prefix})がある:字は角かっこの外に書く`, en: (a) => `text before the key in the citation of ${a.key} (“${a.prefix}”): write the text outside the brackets` },
|
|
@@ -57,7 +57,7 @@ export const ARTICLE_MESSAGES = {
|
|
|
57
57
|
articleTableClass: { ja: (a) => `表の :class: の名前「${a.cls}」は英小文字・数字・- だけ(例:horizontal)`, en: (a) => `the table class “${a.cls}” must be lowercase letters, digits and - (e.g. horizontal)` },
|
|
58
58
|
articleProofKind: { ja: (a) => `定理の類の種類 prf:${a.kind} は Egatari Text 1 にない(theorem・lemma・definition など 15 種)`, en: (a) => `prf:${a.kind} is not a theorem-like kind of Egatari Text 1 (theorem, lemma, definition, … 15 kinds)` },
|
|
59
59
|
articleFootnoteContent: { ja: (a) => `脚注 [^${a.name}] の中に ${a.what} がある:脚注は段落だけ`, en: (a) => `the footnote [^${a.name}] holds a ${a.what}: footnotes hold paragraphs only` },
|
|
60
|
-
articleFootnoteMissing: { ja: (a) => `脚注 [^${a.name}] の定義がない:[^${a.name}]: 本文
|
|
60
|
+
articleFootnoteMissing: { ja: (a) => `脚注 [^${a.name}] の定義がない:[^${a.name}]: 本文 の行を追加する`, en: (a) => `the footnote [^${a.name}] has no definition: add a line [^${a.name}]: text` },
|
|
61
61
|
articleFootnoteUnused: { ja: (a) => `脚注 [^${a.name}] の定義がどこからも参照されていない(表示されない)`, en: (a) => `the footnote definition [^${a.name}] is never referenced (it is not shown)` },
|
|
62
62
|
articleFootnoteName: { ja: (a) => `脚注の名前「${a.name}」は英数字・_・- だけ`, en: (a) => `the footnote name “${a.name}” must be letters, digits, _ and -` },
|
|
63
63
|
articleFootnoteDuplicate: { ja: (a) => `脚注 [^${a.name}] の定義が 2 つある`, en: (a) => `the footnote [^${a.name}] is defined twice` },
|
|
@@ -67,10 +67,10 @@ export const ARTICLE_MESSAGES = {
|
|
|
67
67
|
articleFigureAlt: { ja: (a) => `図${a.label ? `(${a.label})` : ''}に :alt: がない:見えない人のために図の中身を書く`, en: (a) => `the figure${a.label ? ` ${a.label}` : ''} has no :alt: — describe the image for readers who cannot see it` },
|
|
68
68
|
articleGlossary: { ja: (a) => { const w = WHY_GLOSS.ja[a.why]; return typeof w === 'function' ? w(a) : w; }, en: (a) => { const w = WHY_GLOSS.en[a.why]; return typeof w === 'function' ? w(a) : w; } },
|
|
69
69
|
articleSolutionLabel: { ja: () => '解答(:::{solution})に問の名前がない::::{solution} exr-… と書く', en: () => 'a solution names no exercise: write :::{solution} exr-…' },
|
|
70
|
-
articleConverted: { ja: (a) => `${a.from} を ${a.to}
|
|
70
|
+
articleConverted: { ja: (a) => `${a.from} を ${a.to} に修正して読んだ(原稿も修正する)`, en: (a) => `read ${a.from} as ${a.to} (fix the source too)` },
|
|
71
71
|
articleIndex: { ja: (a) => (a.why === 'both' ? 'article.md と article/ の章のファイルの両方がある:1 つのファイルか章に分けるかのどちらかにする' : '本文のファイルがない(index.article に path も chapters もない)'), en: (a) => (a.why === 'both' ? 'both article.md and chapter files in article/: use one file or chapters, not both' : 'index.article has neither path nor chapters') },
|
|
72
|
-
articleConfig: { ja: (a) => `egatari.json の article(本文のファイルと読む順)${{ shape: 'が object でない', path: `の path(${a.path})が article.md でない`, chapters: 'の chapters が article/<名前>.md の重ならない並びでない', missing: `のファイル ${a.path} が作業フォルダにない`, unreadable: 'が読めない(egatari.json が JSON でない)' }[a.why]}
|
|
73
|
-
articleUnlisted: { ja: () => '本文のファイルが egatari.json の article
|
|
72
|
+
articleConfig: { ja: (a) => `egatari.json の article(本文のファイルと読む順)${{ shape: 'が object でない', path: `の path(${a.path})が article.md でない`, chapters: 'の chapters が article/<名前>.md の重ならない並びでない', missing: `のファイル ${a.path} が作業フォルダにない`, unreadable: 'が読めない(egatari.json が JSON でない)' }[a.why]}:修正するか、article の項目を削除する(読む順は種類とファイルの名前の順になる)`, en: (a) => `egatari.json article (the book's files and reading order): ${{ shape: 'not an object', path: `path (${a.path}) is not article.md`, chapters: 'chapters is not a list of distinct article/<name>.md paths', missing: `${a.path} is not in the working folder`, unreadable: 'unreadable (egatari.json is not JSON)' }[a.why]}; fix it or remove the article member (the order then follows kind and file name)` },
|
|
73
|
+
articleUnlisted: { ja: () => '本文のファイルが egatari.json の article に載っていない(本に含まれない):chapters に追加するか、ファイルを移動する', en: () => 'this article file is not listed in egatari.json article (it is not part of the book): add it to chapters or move the file' },
|
|
74
74
|
articleRead: { ja: (a) => `本文のファイルが読めない:${a.why}`, en: (a) => `cannot read the article file: ${a.why}` },
|
|
75
75
|
articleUnsafeParagraph: {
|
|
76
76
|
ja: (a) => `${a.heading ? `節${quoteJa(a.heading)}の` : ''}段落${quoteJa(a.text + '…')}に${a.what === 'html' ? 'タグの始まり(<! と <?)' : '引用符(" と \')'}が ${a.count} 個ある。1 つの段落に ${a.max} 個を越えると安全に読めないので、本を読み込まない:段落を分けるか、${a.what === 'html' ? 'タグ' : '引用符'}を減らす`,
|
|
@@ -87,27 +87,27 @@ export const ARTICLE_MESSAGES = {
|
|
|
87
87
|
articleSectionKindContext: { ja: () => '節の kind の行は 1 ファイルの本文(article.path)で、ファイルの kind が chapter のときだけ書ける', en: () => 'a section kind line is allowed only in a one-file article (article.path) whose file kind is chapter' },
|
|
88
88
|
articleChapterOrder: { ja: (a) => `kind: ${a.kind} のファイルの順が違う:前書き・章・付録・後書きの順にファイルの名前を付ける`, en: (a) => `the kind: ${a.kind} file is out of order: name the files so that prefaces, chapters, appendices and afterwords come in that order` },
|
|
89
89
|
articleChapterDiffer: { ja: (a) => `章のファイルで ${a.member} が違う(${a.values.join('・')}):すべての章で同じにする`, en: (a) => `${a.member} differs between chapter files (${a.values.join(', ')}): use the same value in every chapter` },
|
|
90
|
-
articleLang: { ja: (a) => `前付けの lang(${a.lang}
|
|
91
|
-
articleBibliography: { ja: (a) => `前付けの bibliography(${a.value})が文献のファイル(${a.references || 'なし'})と違う:references.json
|
|
90
|
+
articleLang: { ja: (a) => `前付けの lang(${a.lang})がスライドの言語(${a.deck})と違う:同じにするか、lang を削除する`, en: (a) => `front matter lang (${a.lang}) differs from the slides' language (${a.deck}): make them equal or remove lang` },
|
|
91
|
+
articleBibliography: { ja: (a) => `前付けの bibliography(${a.value})が文献のファイル(${a.references || 'なし'})と違う:references.json にするか削除する`, en: (a) => `front matter bibliography (${a.value}) is not the references file (${a.references || 'none'}): use references.json or remove it` },
|
|
92
92
|
articleLabelDuplicate: { ja: (a) => `名前「${a.label}」が 2 度使われている(${a.other}${a.otherLine ? ` ${a.otherLine} 行目` : ''}):本文全体で 1 つにする`, en: (a) => `the label “${a.label}” is used twice (also ${a.other}${a.otherLine ? ` line ${a.otherLine}` : ''}): labels are unique in the whole article` },
|
|
93
93
|
articleLabelSlideId: { ja: (a) => `名前「${a.label}」がスライドの id と同じ:別の名前にする`, en: (a) => `the label “${a.label}” is also a slide id: rename it` },
|
|
94
94
|
articleXref: { ja: (a) => `相互参照 [](#${a.label}) の行き先がない:ある名前(:label: や (…)= で付けたもの)を書く`, en: (a) => `the cross-reference [](#${a.label}) points to no label: use a label given with :label: or (…)=` },
|
|
95
95
|
articleSolution: { ja: (a) => `解答の問「${a.label}」${WHY_SOL.ja[a.why]}`, en: (a) => `the solution's exercise “${a.label}” ${WHY_SOL.en[a.why]}` },
|
|
96
|
-
articleTerm: { ja: (a) => (a.glossary ? `用語「${a.term}
|
|
96
|
+
articleTerm: { ja: (a) => (a.glossary ? `用語「${a.term}」が用語集にない:用語集に追加するか、字を合わせる` : `用語「${a.term}」を使っているが用語集(:::{glossary})がない`), en: (a) => (a.glossary ? `the term “${a.term}” is not in the glossary: add it or match the spelling` : `the term “${a.term}” is used but there is no glossary (:::{glossary})`) },
|
|
97
97
|
articleStep: { ja: (a) => `ステップへのリンク ${a.value} ${WHY_STEP.ja(a)}`, en: (a) => `the step link ${a.value}${WHY_STEP.en(a)}` },
|
|
98
98
|
articleCite: { ja: (a) => (a.why === 'no-references' ? `引用 @${a.key} があるが文献のファイル(references.json)がない` : `引用キー @${a.key} が references.json にない`), en: (a) => (a.why === 'no-references' ? `the citation @${a.key} needs a bibliography, but there is no references.json` : `the citation key @${a.key} is not in references.json`) },
|
|
99
99
|
articleReferences: { ja: (a) => `references.json が読めない(${a.why}):CSL-JSON の配列にする`, en: (a) => `cannot read references.json (${a.why}): it must be a CSL-JSON array` },
|
|
100
100
|
articleImage: { ja: (a) => `画像 ${a.path} が作業フォルダにない`, en: (a) => `the image ${a.path} is not in the working folder` },
|
|
101
101
|
articleDataArticle: { ja: (a) => `スライド ${a.slide} の data-article の節「${a.section}」が本文にない`, en: (a) => `slide ${a.slide}: data-article names “${a.section}”, which is not a section of the article` },
|
|
102
102
|
articleCitations: { ja: (a) => (a.why === 'list' ? `egatari.json の metadata.citations.list「${a.value}」が違う(end・chapter・none のどれか)` : 'egatari.json の metadata.citations が object でない({"style": "apa", "list": "end"} のように書く)'), en: (a) => (a.why === 'list' ? `egatari.json metadata.citations.list “${a.value}” is not one of end, chapter, none` : 'egatari.json metadata.citations is not an object (write e.g. {"style": "apa", "list": "end"})') },
|
|
103
|
-
articleCiteStyle: { ja: (a) => `引用の書式「${a.style}」はこの Studio にない:${a.fallback} で書いた(使える書式:${a.styles.join('・')}。style
|
|
103
|
+
articleCiteStyle: { ja: (a) => `引用の書式「${a.style}」はこの Studio にない:${a.fallback} で書いた(使える書式:${a.styles.join('・')}。style はそのまま保持する)`, en: (a) => `this Studio does not have the citation style “${a.style}”: used ${a.fallback} instead (available: ${a.styles.join(', ')}; style is kept as written)` },
|
|
104
104
|
articleCiteListChapter: { ja: () => 'metadata.citations.list が chapter だが、本文が章に分かれていない(article/ の章のファイルのときだけ):end にする', en: () => 'metadata.citations.list is chapter, but the article has no chapters (only with chapter files in article/): use end' },
|
|
105
|
-
articleCiteEngine: { ja: (a) => `引用を書式に整えられなかった(${a.why}):引用キーの字のまま書いた。references.json
|
|
105
|
+
articleCiteEngine: { ja: (a) => `引用を書式に整えられなかった(${a.why}):引用キーの字のまま書いた。references.json の項目を確認する`, en: (a) => `could not format citations (${a.why}); wrote the citation keys instead: check the items in references.json` },
|
|
106
106
|
articleUncited: { ja: (a) => `本文で引いていない文献が ${a.count} 件ある(${a.keys.join('・')}${a.count > a.keys.length ? ' …' : ''}):一覧には出ない`, en: (a) => `${a.count} ${plural(a.count, 'reference')} never cited (${a.keys.join(', ')}${a.count > a.keys.length ? ', …' : ''}); ${a.count === 1 ? 'it is' : 'they are'} not listed` },
|
|
107
|
-
articleLinksShape: { ja: (a) => `egatari.json の articleLinks の形が違う(${a.why}
|
|
108
|
-
articleLinkStale: { ja: (a) => `スライドと本が合っていないかもしれません:スライド ${a.slide} と節${quoteJa(a.heading || a.section)}(${a.section}
|
|
107
|
+
articleLinksShape: { ja: (a) => `egatari.json の articleLinks の形が違う(${a.why}):その項目を削除し、npm run ids で付け直す`, en: (a) => `egatari.json articleLinks has the wrong shape (${a.why}): remove it and run npm run ids to record the links again` },
|
|
108
|
+
articleLinkStale: { ja: (a) => `スライドと本が合っていないかもしれません:スライド ${a.slide} と節${quoteJa(a.heading || a.section)}(${a.section})。対応付けた後に${a.changed === 'article' ? '節' : a.changed === 'slide' ? 'スライドか台本' : '節とスライドの両方'}が変わった。読み比べて、合っていれば npm run ids -- --confirm-links で確認済みの印を付ける(字は自動では修正しない)`, en: (a) => `slides and book may not match: slide ${a.slide} and the section “${a.heading || a.section}” (${a.section}); ${a.changed === 'article' ? 'the section' : a.changed === 'slide' ? 'the slide or its script' : 'both the section and the slide'} changed after they were linked. Compare them; if they still agree, run npm run ids -- --confirm-links (nothing is changed automatically)` },
|
|
109
109
|
articleLinkUnconfirmed: { ja: (a) => `スライドと節のつながり ${a.count} 組がまだ記録されていない(${a.pairs.join('、')}${a.count > a.pairs.length ? ' …' : ''}):npm run ids で記録すると、後でどちらかが変わったときに知らせる`, en: (a) => `${a.count} slide–section ${plural(a.count, 'link')} ${a.count === 1 ? 'is' : 'are'} not recorded yet (${a.pairs.join(', ')}${a.count > a.pairs.length ? ', …' : ''}): run npm run ids to record them, so that later changes on either side are reported` },
|
|
110
|
-
articleLinkUnlinked: { ja: (a) => `egatari.json の articleLinks に、もうつながっていない組が ${a.count} 組ある(${a.pairs.join('、')}${a.count > a.pairs.length ? ' …' : ''}):Egatari
|
|
110
|
+
articleLinkUnlinked: { ja: (a) => `egatari.json の articleLinks に、もうつながっていない組が ${a.count} 組ある(${a.pairs.join('、')}${a.count > a.pairs.length ? ' …' : ''}):Egatari ファイルにエクスポートするときに削除する`, en: (a) => `egatari.json articleLinks records ${a.count} ${plural(a.count, 'pair')} that ${a.count === 1 ? 'is' : 'are'} no longer linked (${a.pairs.join(', ')}${a.count > a.pairs.length ? ', …' : ''}); ${a.count === 1 ? 'it is' : 'they are'} dropped when the Egatari file is written` },
|
|
111
111
|
articleSummary: { ja: (a) => `本文:ファイル ${a.files}、節 ${a.sections}、名前 ${a.labels}`, en: (a) => `article: ${a.files} ${plural(a.files, 'file')}, ${a.sections} ${plural(a.sections, 'section')}, ${a.labels} ${plural(a.labels, 'label')}` },
|
|
112
112
|
articleSectionUnlinked: { ja: (a) => `節${quoteJa(a.heading)}(${a.section})がどのスライドともつながっていない({step} のリンクか、スライドの data-article で結ぶ)`, en: (a) => `the section “${a.heading}” (${a.section}) is linked to no slide (add a {step} link or name it in a slide's data-article)` },
|
|
113
113
|
};
|
|
@@ -86,7 +86,7 @@ export function numberArticle(article, lang) {
|
|
|
86
86
|
const num = next('table'); // 名前がなくても番号を付ける(mystmd と同じ。§9C.1A)
|
|
87
87
|
set(n, { kind: 'table', num, text: num ? `${W.table}${W.sp}${num}` : null });
|
|
88
88
|
} else if (n.type === 'aside') {
|
|
89
|
-
const num = next('aside'); // 名前がなくても番号を付ける(mystmd と同じ。§9C.1A)
|
|
89
|
+
const num = n.enumerated === false ? null : next('aside'); // 名前がなくても番号を付ける(mystmd と同じ。§9C.1A)。:nonumber: は数えない(§9C.2)
|
|
90
90
|
set(n, { kind: 'aside', num, text: num ? `${W.aside}${W.sp}${num}` : null, title: titleOf(n) });
|
|
91
91
|
} else if (n.type === 'exercise') {
|
|
92
92
|
const num = n.enumerated === false ? null : next('exercise');
|
|
@@ -28,7 +28,7 @@ export const KINDS = Object.freeze(['preface', 'chapter', 'appendix', 'afterword
|
|
|
28
28
|
// 前付けに書ける項目と型(§9C.2)
|
|
29
29
|
const FM_MEMBERS = { title: 'string', subtitle: 'string', lang: 'lang', bibliography: 'string', 'writing-mode': 'mode', chapter: 'posint', kind: 'kind', numbering: 'boolean' };
|
|
30
30
|
// 指令ごとに書ける option(§9C.2)
|
|
31
|
-
const DIRECTIVES = { figure: ['label', 'alt'], table: ['label', 'class'], aside: ['label', 'class'], exercise: ['label', 'nonumber'], solution: ['label'], glossary: [] };
|
|
31
|
+
const DIRECTIVES = { figure: ['label', 'alt'], table: ['label', 'class'], aside: ['label', 'class', 'nonumber'], exercise: ['label', 'nonumber'], solution: ['label'], glossary: [] };
|
|
32
32
|
const ROLES = new Set(['step', 'ruby', 'term', 'sub', 'sup']);
|
|
33
33
|
const ADMONITIONS = new Set(['admonition', 'note', 'tip', 'hint', 'important', 'warning', 'caution', 'attention', 'danger', 'error', 'seealso', 'margin', 'sidebar', 'topic']);
|
|
34
34
|
// 名前の決まり(§8.1・§9C.3・§9C.4)
|
|
@@ -307,6 +307,8 @@ export function parseArticleText(src, opts = {}) {
|
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
309
|
for (const k of Object.keys(opts0)) if (!allowed.includes(k)) add('error', 'articleOption', '§9C.2', node, { name, option: k });
|
|
310
|
+
// コラムの :nonumber:(§9C.2、wd-2026-11-18):番号を付けない。myst の aside は知らない項目を捨てるので、ここで写す(exercise と同じ enumerated: false)
|
|
311
|
+
if (name === 'aside' && Object.prototype.hasOwnProperty.call(opts0, 'nonumber')) for (const c of node.children || []) if (c.type === 'aside') c.enumerated = false;
|
|
310
312
|
if (name === 'figure') figureDirective(node, parents);
|
|
311
313
|
if (name === 'table') tableDirective(node);
|
|
312
314
|
if (name === 'solution' && !String(node.args || '').trim()) add('error', 'articleSolutionLabel', '§9C.2', node);
|
package/kit/core/build-core.mjs
CHANGED
|
@@ -53,6 +53,24 @@ export function localPartFile(env, P, deckDir, tag) {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export const DECK_META_RIGHTS = ['license', 'copyright', 'attribution', 'creators'];
|
|
56
|
+
// metadata.edits(format spec §3.6.1:ほかの人の教材を直した人の記録 [{by?, note?}]、古い順)を書く形にする。索引の metadata.edits と deck-meta.edits に使う。
|
|
57
|
+
// 形の合わない項目(object でない・by と note のほかの項目がある・by や note が文字でない)は捨て、その数を dropped に。by・note の前後の空白は除き、
|
|
58
|
+
// 空になったものは書かない(名前のない項目は {})。配列でなければ全体を捨てる。→ {edits(なければ null), dropped}
|
|
59
|
+
export function normalizeEdits(v) {
|
|
60
|
+
if (v === undefined) return { edits: null, dropped: 0 };
|
|
61
|
+
if (!Array.isArray(v)) return { edits: null, dropped: 1 };
|
|
62
|
+
const out = [];
|
|
63
|
+
let dropped = 0;
|
|
64
|
+
for (const x of v) {
|
|
65
|
+
const ok = x !== null && typeof x === 'object' && !Array.isArray(x) && Object.keys(x).every((k) => (k === 'by' || k === 'note') && typeof x[k] === 'string');
|
|
66
|
+
if (!ok) { dropped++; continue; }
|
|
67
|
+
const e = {};
|
|
68
|
+
for (const k of ['by', 'note']) if (typeof x[k] === 'string' && x[k].trim()) e[k] = x[k].trim();
|
|
69
|
+
out.push(e);
|
|
70
|
+
}
|
|
71
|
+
return { edits: out, dropped };
|
|
72
|
+
}
|
|
73
|
+
export const editsDroppedWarning = (n) => `metadata.edits: ${n} malformed ${n === 1 ? 'entry was' : 'entries were'} not copied (each entry is {by?, note?} with text values)`;
|
|
56
74
|
// metadata.offer(format spec §1.2:作者が見せるモードと見え方、開くときの {mode, face})を書く形にする。deck-meta.offer と索引の metadata.offer に使う。
|
|
57
75
|
// 前の版の learn は talk と読む(Player P1)。知らない値・重なりは捨て、空になった modes・faces は書かない。open は offer の中にあるものだけ。
|
|
58
76
|
// 何も残らなければ null(書かない)
|
|
@@ -1139,7 +1157,7 @@ export function build(env0, srcPath, opts = {}) {
|
|
|
1139
1157
|
const headCss = `<style id="deck-base">\n${styleSafe(`${fonts.css}${kcss}\n${read(KIT, 'base.css')}\n${read(KIT, 'layouts.css')}\n${opts.articleCss || ''}\n${theme.css}\n${isJapanese(lang) ? '' : read(KIT, 'latin.css')}`)}</style>`;
|
|
1140
1158
|
if (!/id="bar"/.test(html)) html = html.replace(/<\/body>/, '<div id="bar"></div><div id="jump"></div>\n</body>');
|
|
1141
1159
|
// 作業フォルダの組み立ても、設定のファイルの metadata.completion を deck-meta に写す(format spec §9.2。再生器の記録が終えた判定を読む。1 ファイルと同じ)。
|
|
1142
|
-
// 権利の表示と作成者(license・copyright・attribution・creators。§4・§7.3)と offer(§1.2)も写す:再生器のファイルの情報と開き方が deck-meta から出る。形の合わない値は写さない
|
|
1160
|
+
// 権利の表示と作成者(license・copyright・attribution・creators。§4・§7.3)、編集の記録(edits。§3.6.1)と offer(§1.2)も写す:再生器のファイルの情報と開き方が deck-meta から出る。形の合わない値は写さない
|
|
1143
1161
|
const folderCompletion = () => {
|
|
1144
1162
|
const cfg = P.join(deckDir, FORMAT.CONFIG_FILE);
|
|
1145
1163
|
if (!env.exists(cfg) || !inDeck(cfg)) return {};
|
|
@@ -1151,6 +1169,10 @@ export function build(env0, srcPath, opts = {}) {
|
|
|
1151
1169
|
const v = md[k];
|
|
1152
1170
|
if (k === 'creators' ? Array.isArray(v) && v.every((x) => typeof x === 'string') : typeof v === 'string') out[k] = k === 'creators' ? [...v] : v;
|
|
1153
1171
|
}
|
|
1172
|
+
// 編集の記録(§3.6.1・§7.3):再生器のファイルの情報が「編集」を出す。形の合わない項目は写さず知らせる
|
|
1173
|
+
const ed = normalizeEdits(md.edits);
|
|
1174
|
+
if (ed.edits) out.edits = ed.edits;
|
|
1175
|
+
if (ed.dropped) warn.push(editsDroppedWarning(ed.dropped));
|
|
1154
1176
|
// 見せるモードと見え方(format spec §1.2、Player P1):再生器が deck-meta.offer を読む
|
|
1155
1177
|
const offer = normalizeOffer(md.offer);
|
|
1156
1178
|
if (offer) out.offer = offer;
|
|
@@ -20,10 +20,10 @@ export const IN_EDITOR = Object.freeze([
|
|
|
20
20
|
'refVoice', 'audioStale', 'narrPlaceholder', 'templateText', 'readingExpr', 'readingSeveral', 'readingGap',
|
|
21
21
|
// 体裁の検査(kit/core/layout-scan.mjs。bodyBottom・bodyRight は EDITOR_ALIAS)
|
|
22
22
|
'titleLong', 'titleLongEn', 'titleColon', 'tateTitle', 'conclLong', 'conclLongEn', 'conclOverflow', 'tateBodyHead', 'bodyConclCol', 'bodyLeft',
|
|
23
|
-
'smallText', 'smallSvgText', 'textClipped', 'svgTextOut', 'svgTextBox', 'outsideBody', 'partSvgOut', 'textOffSlide', 'textOverlap', 'cellWordBreak',
|
|
23
|
+
'smallText', 'smallSvgText', 'textClipped', 'svgTextOut', 'svgTextBox', 'outsideBody', 'partSvgOut', 'colOverflow', 'textOffSlide', 'textOverlap', 'cellWordBreak',
|
|
24
24
|
'secHeading', 'textContrast', 'cardsHint',
|
|
25
25
|
// 描いた図の形(kit/core/geometry-check.mjs。R-geometry)
|
|
26
|
-
'geoEdgeThroughBox', 'geoLineOverLabel', 'geoLabelOverlap', 'geoLabelOutsideBox', 'geoTateSlides',
|
|
26
|
+
'geoEdgeThroughBox', 'geoLineOverLabel', 'geoLabelOverlap', 'geoLabelOutsideBox', 'geoOutsideFrame', 'geoBadMarkName', 'geoClippedStroke', 'geoTateSlides',
|
|
27
27
|
// プレビューの中(app/frame-shim.js)
|
|
28
28
|
'themeMetricsDrift', 'metricsFontLoad', 'fontNotEmbedded', 'desuMasu', 'rawMath', 'katexError', 'punctMixed', 'narrRecheck',
|
|
29
29
|
'linkEmpty', 'linkUnknown', 'linkNumberRange', 'linkNoConcl', 'linkStepRange', 'linkBadStep', 'linkNumber', 'linkNoId', 'linkCount',
|
package/kit/core/check-rules.mjs
CHANGED
|
@@ -11,13 +11,17 @@
|
|
|
11
11
|
// ruleSet() → 台帳の版(決まりの id と code の並びの sha256 の先頭 12。where や phase が変わっても変わらない)は呼ぶ側が sha256 で作る:ruleSetText()
|
|
12
12
|
// account({results, visited, facts, inEditor}) → {status, rules, summary, problems}
|
|
13
13
|
// results:[{sev: 'error'|'warn'|'info', code}]。visited:通った段の名前の集合(編集アプリは null:その版の編集アプリが見る決まりはどれも通ったとみなす)
|
|
14
|
-
// facts:{narration, audio, attachments, parts: [タグ…], partMarks, marks, morphs, links, book, tate, allTate, lang}
|
|
15
|
-
// partMarks:図の形の印(data-part="box|edge|label|mark"
|
|
14
|
+
// facts:{narration, audio, attachments, parts: [タグ…], partMarks, svg, marks, morphs, links, book, tate, allTate, lang}
|
|
15
|
+
// partMarks:図の形の印(data-part="box|edge|label|mark")か、枠の中の印(kit/core/geometry-check.mjs の WITHIN_ATTRS の within・frame。名前の形に合わない値の知らせ geoBadMarkName があるので枠だけでも)が原稿にある。allTate:中身のスライド(表紙・章の扉を除く)がみな縦書き。
|
|
16
|
+
// svg:原稿にインラインの <svg> がある(作成者の図。線が図の端で欠けるかを測る)
|
|
16
17
|
// inEditor:編集アプリの品質チェック(コマンド版だけの決まりは skipped/notInEditor)
|
|
17
18
|
// factsFromSource({deck, narration, audio, attachments, book}) → facts:原稿と台本の文字列から(コマンド版と編集アプリで同じ判定にする)。
|
|
18
19
|
// audio・attachments・book は呼ぶ側がファイルの有無から(audio/manifest.json か voice.json・attachments/・article.md か article/)
|
|
19
20
|
// excused か skipped の決まりに code が出たら problems(台帳の誤り)。problems があるか、どれにもならない決まりがあれば status は incomplete
|
|
20
21
|
import { cliOnly } from './check-parity.mjs';
|
|
22
|
+
import { WITHIN_ATTRS } from './geometry-check.mjs';
|
|
23
|
+
// 枠の中の印(handoff #46)が原稿にあるか(属性の名前は WITHIN_ATTRS の 1 か所)
|
|
24
|
+
const WITHIN_RE = new RegExp('\\s(?:' + WITHIN_ATTRS.within + '|' + WITHIN_ATTRS.frame + ')\\s*=');
|
|
21
25
|
|
|
22
26
|
export const EXCUSES = Object.freeze(['noNarration', 'noAudio', 'noAttachments', 'noParts', 'noMarks', 'noMorphs', 'noLinks', 'noBook', 'tate', 'lang']);
|
|
23
27
|
// tate は EXCUSES にも SKIPS にもある(state で区別する)。SKIPS の tate は「まだ測っていない」:縦書きの字も重なりうるので、
|
|
@@ -41,7 +45,7 @@ const ATTACH = ['attachBadConfig', 'attachBadName', 'attachExcluded', 'attachDup
|
|
|
41
45
|
|
|
42
46
|
export const RULES = Object.freeze([
|
|
43
47
|
// ---- 作者への決まり(R-*)
|
|
44
|
-
{ id: 'R-fit', kind: 'authoring', phase: 'A 体裁', codes: ['bodyBottom', 'bodyRight', 'tateBodyHead', 'bodyConclCol', 'bodyLeft', 'smallText', 'smallSvgText', 'textClipped', 'svgTextOut', 'svgTextBox', 'outsideBody', 'partSvgOut', 'textOffSlide', 'textOverlap', 'cellWordBreak', 'compLayout'] },
|
|
48
|
+
{ id: 'R-fit', kind: 'authoring', phase: 'A 体裁', codes: ['bodyBottom', 'bodyRight', 'tateBodyHead', 'bodyConclCol', 'bodyLeft', 'smallText', 'smallSvgText', 'textClipped', 'svgTextOut', 'svgTextBox', 'outsideBody', 'partSvgOut', 'colOverflow', 'textOffSlide', 'textOverlap', 'cellWordBreak', 'compLayout'] },
|
|
45
49
|
{ id: 'R-title', kind: 'authoring', phase: 'A 体裁', codes: ['titleLong', 'titleLongEn', 'titleColon', 'tateTitle'] },
|
|
46
50
|
{ id: 'R-concl', kind: 'authoring', phase: 'A 体裁', codes: ['conclLong', 'conclLongEn', 'conclOverflow'] },
|
|
47
51
|
{ id: 'R-headings', kind: 'authoring', phase: 'A 体裁', codes: ['secHeading', 'narrHeadingDiffers', 'kickerLong', 'kickerPlace', 'kickerSlide'] },
|
|
@@ -50,10 +54,11 @@ export const RULES = Object.freeze([
|
|
|
50
54
|
{ id: 'R-style', kind: 'authoring', phase: 'A 体裁', codes: ['desuMasu', 'punctMixed'], applies: (f) => (f.lang === 'ja' ? null : 'lang') },
|
|
51
55
|
{ id: 'R-math', kind: 'authoring', phase: 'A 体裁', codes: ['rawMath', 'katexError'] },
|
|
52
56
|
{ id: 'R-purpose', kind: 'authoring', phase: 'A 体裁', codes: ['cardsHint'] },
|
|
53
|
-
// 描いた図の形(kit/core/geometry-check.mjs、backlog #201):パーツが付けた印(data-part
|
|
57
|
+
// 描いた図の形(kit/core/geometry-check.mjs、backlog #201):パーツが付けた印(data-part)と、インラインの SVG の線が図の端で欠けるか(geoClippedStroke、handoff #52)を測る。
|
|
58
|
+
// パーツも印もインラインの SVG もない教材は noParts。
|
|
54
59
|
// 中身のスライドがみな縦書きなら skipped/tate(まだ測らない)。縦横が混ざれば横書きのスライドだけを見て geoTateSlides(情報)
|
|
55
|
-
{ id: 'R-geometry', kind: 'authoring', phase: 'A 体裁', codes: ['geoEdgeThroughBox', 'geoLineOverLabel', 'geoLabelOverlap', 'geoLabelOutsideBox', 'geoTateSlides'],
|
|
56
|
-
applies: (f) => ((f.parts || []).length || f.partMarks ? null : 'noParts'), skips: (f) => (f.allTate ? 'tate' : null) },
|
|
60
|
+
{ id: 'R-geometry', kind: 'authoring', phase: 'A 体裁', codes: ['geoEdgeThroughBox', 'geoLineOverLabel', 'geoLabelOverlap', 'geoLabelOutsideBox', 'geoOutsideFrame', 'geoBadMarkName', 'geoClippedStroke', 'geoTateSlides'],
|
|
61
|
+
applies: (f) => ((f.parts || []).length || f.partMarks || f.svg ? null : 'noParts'), skips: (f) => (f.allTate ? 'tate' : null) },
|
|
57
62
|
{ id: 'R-colors', kind: 'authoring', phase: 'C パレット', codes: ['colorOutside', 'textContrast', 'contrastLow'] },
|
|
58
63
|
{ id: 'R-balance', kind: 'authoring', phase: 'N 釣り合い', codes: ['balance'] },
|
|
59
64
|
// 台本がない教材にも、ステップごとに narrMissing が出る(台本を書くこと自体がこの決まり)。だから外さない。言語と確かめ直しの知らせも台本なしで出る
|
|
@@ -97,7 +102,7 @@ export function factsFromSource({ deck = '', narration = '', audio = false, atta
|
|
|
97
102
|
narration: /\S/.test(narration), audio: !!audio, attachments: !!attachments, book: !!book,
|
|
98
103
|
parts: [...new Set([...deck.matchAll(/<(m-[a-z][a-z0-9]*(?:-[a-z0-9]+)*)[\s>/]/g)].map((m) => m[1]))].sort(),
|
|
99
104
|
marks: /\{mark:/.test(narration), morphs: /\bdata-morph\b/.test(deck), links: /<a\b[^>]*\shref=/i.test(deck),
|
|
100
|
-
partMarks: /\sdata-part=["']?(?:box|edge|label|mark)\b/.test(deck),
|
|
105
|
+
partMarks: /\sdata-part=["']?(?:box|edge|label|mark)\b/.test(deck) || WITHIN_RE.test(deck), svg: /<svg[\s>]/i.test(deck),
|
|
101
106
|
tate: /\blayout-tate\b/.test(deck), allTate: content.length > 0 && content.every((c) => c.includes('layout-tate')), lang: /^ja\b/i.test(lang) || !lang ? 'ja' : 'en',
|
|
102
107
|
};
|
|
103
108
|
}
|
package/kit/core/colab-core.mjs
CHANGED
|
@@ -45,7 +45,7 @@ export const JOB = Object.freeze({ tag: 'tts-job', recordsTag: 'tts-records', v:
|
|
|
45
45
|
export const COLAB = Object.freeze({
|
|
46
46
|
repo: 'egatari/egatari-studio', notebook: 'colab/egatari-tts.ipynb',
|
|
47
47
|
videoNotebook: 'colab/egatari-video.ipynb', // 動画(MP4)を作るノート(CPU のランタイム。#131)
|
|
48
|
-
ref: 'v0.6.
|
|
48
|
+
ref: 'v0.6.16', // バッジの URL は版のタグに固定する(リリースの手順で替える。RELEASING.md)
|
|
49
49
|
pause: 0.35,
|
|
50
50
|
models: Object.freeze({ irodori: 'irodori-tts-500m-v3', kokoro: 'kokoro-82m-v1.0' }),
|
|
51
51
|
// 後処理の版(records の recipe.processing は PROCESSING に '+colab<ノートブックの版>' を付けたもの):ノートブック(colab/egatari_tts.py)の後処理は audio-core.mjs と同じ数。数を変えたら名前も変える
|
|
@@ -160,7 +160,7 @@ export async function planImport({ zip, segs, docId = null, yomi = null }) {
|
|
|
160
160
|
const pr = parseRecords(new TextDecoder().decode(rj));
|
|
161
161
|
if (pr.fatal) { out.reject = { code: 'bad-records', why: pr.problems[0].why }; return out; }
|
|
162
162
|
out.generator = pr.generator;
|
|
163
|
-
if (docId !== null && pr.docId !== null && docId !== pr.docId) { out.reject = { code: 'doc-id', why: 'the job was made for another
|
|
163
|
+
if (docId !== null && pr.docId !== null && docId !== pr.docId) { out.reject = { code: 'doc-id', why: 'the job was made for another file (docId differs)', title: pr.title }; return out; }
|
|
164
164
|
for (const p of pr.problems) out.skipped.push({ key: p.key || null, why: p.why });
|
|
165
165
|
const byKey = new Map(segs.map((s) => [`${s.slideKey}:${s.stepKey}`, s]));
|
|
166
166
|
for (const [key, rec] of pr.records) {
|
|
@@ -11,6 +11,12 @@ export function normPin(p) {
|
|
|
11
11
|
return { x: clamp(p.x, SLIDE_W), y: clamp(p.y, SLIDE_H) };
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
// マーカーの重心の下のパーツ。名前はタグ、id は data-id(なければ省略)。未知の項目は残さない。
|
|
15
|
+
export function normPart(p) {
|
|
16
|
+
if (!p || typeof p !== 'object' || Array.isArray(p) || typeof p.name !== 'string' || !/^m-[^\s<>]*$/.test(p.name) || p.name.length > 100) return null;
|
|
17
|
+
return { name: p.name, ...(typeof p.id === 'string' && p.id ? { id: p.id.replace(/\s+/g, ' ').trim().slice(0, 200) } : {}) };
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
// strokes:編集モードのマーカー(コメントのペン、m)で描いた線。1 つのメモに線は何本でも(丸と矢印など。STROKES_MAX 本まで)。
|
|
15
21
|
// 線はスライドの座標の点の並び [[x, y], …](1280×720、表示の倍率によらない)。形は docs/contract.md「Review notes」(§13)
|
|
16
22
|
// pin と同じく信頼しない知らせが元なので、線ごとに:配列でなければ・点(有限の数の組)が 2 つに満たなければその線は捨てる。
|
package/kit/core/export-name.mjs
CHANGED
|
@@ -35,10 +35,10 @@ function fit(name, ext) {
|
|
|
35
35
|
}
|
|
36
36
|
export function exportName(title, fallback, ext) {
|
|
37
37
|
const e = String(ext || '');
|
|
38
|
-
for (const cand of [title, fallback, '
|
|
38
|
+
for (const cand of [title, fallback, 'untitled']) {
|
|
39
39
|
const n = fit(clean(cand), e);
|
|
40
40
|
if (n && !RESERVED.test(n)) return n + e;
|
|
41
41
|
if (n) return n + '_' + e; // CON → CON_.ega.html
|
|
42
42
|
}
|
|
43
|
-
return '
|
|
43
|
+
return 'untitled' + e;
|
|
44
44
|
}
|