egatari 0.6.17 → 0.6.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/CHANGELOG.md +36 -1
  2. package/README.ja.md +14 -13
  3. package/README.md +2 -1
  4. package/components.lock.json +119 -45
  5. package/components2.lock.json +639 -1
  6. package/kit/check-messages.mjs +5 -0
  7. package/kit/check.mjs +6 -0
  8. package/kit/core/bookmark.mjs +28 -0
  9. package/kit/core/build-core.mjs +4 -2
  10. package/kit/core/check-parity.mjs +4 -0
  11. package/kit/core/check-rules.mjs +3 -2
  12. package/kit/core/check-source.mjs +6 -0
  13. package/kit/core/llm-pack-assemble.mjs +37 -66
  14. package/kit/core/llm-pack-data.mjs +839 -45
  15. package/kit/core/llm-pack.mjs +6 -4
  16. package/kit/core/llm-request.mjs +2 -2
  17. package/kit/core/new-deck-pack.mjs +38 -44
  18. package/kit/core/new-deck.mjs +82 -74
  19. package/kit/core/part-labels.mjs +2 -0
  20. package/kit/core/purposes.mjs +9 -3
  21. package/kit/core/sample-info.mjs +17 -3
  22. package/kit/core/slide-ops.mjs +22 -0
  23. package/kit/core/tate-mix.mjs +25 -0
  24. package/kit/core/theme-derive.mjs +56 -17
  25. package/kit/core/theme-shapes.mjs +15 -1
  26. package/kit/deck.js +53 -2
  27. package/kit/instruction-version.json +1 -1
  28. package/kit/llm-pack.mjs +5 -7
  29. package/kit/player.json +1 -1
  30. package/kit/player.lock.json +2 -2
  31. package/kit/presenter.js +36 -4
  32. package/kit/tools.js +54 -2
  33. package/package.json +1 -1
  34. package/vendor/components/CATALOG.md +24 -22
  35. package/vendor/components/sha256/038f9d32c89c8212ab25d6e3180023b6fe024a53053ab2ef1443ecab92e3ce43/index.js +205 -0
  36. package/vendor/components/sha256/07479cb6e5194a01b2a8a9029f3646060f0dbb673f2737d2132738af2eb379e5/README.en.md +44 -0
  37. package/vendor/components/sha256/07479cb6e5194a01b2a8a9029f3646060f0dbb673f2737d2132738af2eb379e5/index.js +306 -0
  38. package/vendor/components/sha256/077678d8b14a8065c4f74a9fe1669728c68a0f763bfdca18b304f5c3d863632a/README.en.md +54 -0
  39. package/vendor/components/sha256/077678d8b14a8065c4f74a9fe1669728c68a0f763bfdca18b304f5c3d863632a/index.js +470 -0
  40. package/vendor/components/sha256/0840322bf51eeb3c8188ce21ad70af17c13974ac0151065a39c430a3813ee07f/README.en.md +23 -0
  41. package/vendor/components/sha256/0840322bf51eeb3c8188ce21ad70af17c13974ac0151065a39c430a3813ee07f/index.js +289 -0
  42. package/vendor/components/sha256/0c25d49d23529879054737aa181951519fe585c4728fd505e0e3c8869953eac7/index.js +934 -0
  43. package/vendor/components/sha256/0dd302b82925f35743a893d5c271898ada3659aa0de2d3249ef45936aad10ae0/LICENSE-strokesvg.txt +115 -0
  44. package/vendor/components/sha256/0dd302b82925f35743a893d5c271898ada3659aa0de2d3249ef45936aad10ae0/OFL.txt +93 -0
  45. package/vendor/components/sha256/0dd302b82925f35743a893d5c271898ada3659aa0de2d3249ef45936aad10ae0/index.js +755 -0
  46. package/vendor/components/sha256/0dd302b82925f35743a893d5c271898ada3659aa0de2d3249ef45936aad10ae0/strokes-CHANGES.md +20 -0
  47. package/vendor/components/sha256/0e9e92df8d70eb6d9fcf10916c361769c7cd37baacece8d7eb96bbbc7fbcf942/README.en.md +25 -0
  48. package/vendor/components/sha256/0e9e92df8d70eb6d9fcf10916c361769c7cd37baacece8d7eb96bbbc7fbcf942/index.js +317 -0
  49. package/vendor/components/sha256/12ef6a11055407f5cddc40154a49cf2737b0786429fe0fcc94ee1d8245597b40/index.js +244 -0
  50. package/vendor/components/sha256/13c9ce43396b2f5693ce430a924dae4ddcd1e8a4ad0c9b9e724ff52acb874d0c/index.js +354 -0
  51. package/vendor/components/sha256/1a0f21def0efbbdef64461cafa40f3883bc7f7122adf79d01f09ca4a245e5dcb/index.js +465 -0
  52. package/vendor/components/sha256/208175d05b37d326855fad792b10137f785e5d05d91a2cde119d0dbd69d2ed98/index.js +100 -0
  53. package/vendor/components/sha256/218d88998b70f0732c18d91ccc238b2d63f6b0aaa483883b83685a25468f214a/README.en.md +34 -0
  54. package/vendor/components/sha256/218d88998b70f0732c18d91ccc238b2d63f6b0aaa483883b83685a25468f214a/index.js +246 -0
  55. package/vendor/components/sha256/2579bcb46b6525902763cd15a2e08fc5ebd9a2695cdaba63438e5b47907a47e0/README.en.md +24 -0
  56. package/vendor/components/sha256/2579bcb46b6525902763cd15a2e08fc5ebd9a2695cdaba63438e5b47907a47e0/index.js +554 -0
  57. package/vendor/components/sha256/2787e410e533e4ad48b0a3c2b652579cf5797f9c51fcf32f5478212a7acef95f/README.en.md +28 -0
  58. package/vendor/components/sha256/2787e410e533e4ad48b0a3c2b652579cf5797f9c51fcf32f5478212a7acef95f/index.js +214 -0
  59. package/vendor/components/sha256/2a011338d0fc3c77e102eaa57cde2b6e3726bc279f133174b0b8c9a654263cbc/index.js +824 -0
  60. package/vendor/components/sha256/2fce5ab0c31dca0aa1586a2c69237870a9cce46c0bc6ab7392c27968d016bd15/index.js +75 -0
  61. package/vendor/components/sha256/3417efe4722f569690563d9abcea8b144db2f8fa97b83cf0118fb3a34cd4cb2b/README.en.md +23 -0
  62. package/vendor/components/sha256/3417efe4722f569690563d9abcea8b144db2f8fa97b83cf0118fb3a34cd4cb2b/index.js +150 -0
  63. package/vendor/components/sha256/3a7962fa87c670447eed54aca08604ef03cd26bf2c334b4667190060e6a17965/README.en.md +18 -0
  64. package/vendor/components/sha256/3a7962fa87c670447eed54aca08604ef03cd26bf2c334b4667190060e6a17965/index.js +279 -0
  65. package/vendor/components/sha256/42450c6b36404d66641568f6d6f55e42a4a036d4d9cdf308f709464913b32fe9/README.en.md +42 -0
  66. package/vendor/components/sha256/42450c6b36404d66641568f6d6f55e42a4a036d4d9cdf308f709464913b32fe9/index.js +272 -0
  67. package/vendor/components/sha256/45cea6c1abfb3467e3e3dbe7fec58647716999a0c39cf7163531ae389f898d29/README.en.md +30 -0
  68. package/vendor/components/sha256/45cea6c1abfb3467e3e3dbe7fec58647716999a0c39cf7163531ae389f898d29/index.js +305 -0
  69. package/vendor/components/sha256/4c8cae404d551a1bb021e8345af5aa45d4f412f13497aa84b142f11a29a365dc/index.js +124 -0
  70. package/vendor/components/sha256/5521b5b40a43c48c5ae5a50ce87afb3d47bb23b133b16841086d8322364cdd5e/README.en.md +23 -0
  71. package/vendor/components/sha256/5521b5b40a43c48c5ae5a50ce87afb3d47bb23b133b16841086d8322364cdd5e/index.js +120 -0
  72. package/vendor/components/sha256/5fe30fd7a84b937a1325d8af2b8e437211efae82ab46d5a433bc4ef07bcaef11/README.en.md +18 -0
  73. package/vendor/components/sha256/5fe30fd7a84b937a1325d8af2b8e437211efae82ab46d5a433bc4ef07bcaef11/index.js +243 -0
  74. package/vendor/components/sha256/631f4c4b90c9a41c0f26c9600d5cf2d6447251d04a20f08f48a85aeb4cb0f6fb/index.js +107 -0
  75. package/vendor/components/sha256/6749f44ed6476a05d4e3026373c188a0e1a19b77a5836579813f62a1477ac35e/README.en.md +31 -0
  76. package/vendor/components/sha256/6749f44ed6476a05d4e3026373c188a0e1a19b77a5836579813f62a1477ac35e/index.js +271 -0
  77. package/vendor/components/sha256/701f1deef79fe05eeb18e1119e5a5c4d60a9dfe265e93a4dff79223bc598dbf0/index.js +521 -0
  78. package/vendor/components/sha256/711cf58fa946c9c0abc953b2f695d02bf5a5a7f73851b09f834e894baf88be38/index.js +122 -0
  79. package/vendor/components/sha256/728576c57a5ccb39531ad4cb8074fce95480f01603a77dbf57dca0e52199f7c4/index.js +37 -0
  80. package/vendor/components/sha256/73edc74a2dc4a63b717106c1c1572967b6d306270574e9635d032de16c8ada72/README.en.md +18 -0
  81. package/vendor/components/sha256/73edc74a2dc4a63b717106c1c1572967b6d306270574e9635d032de16c8ada72/index.js +382 -0
  82. package/vendor/components/sha256/76bdb63c3e5e14fbb4816bc9f235490817bb5d7be990a826f5077aa08226702c/index.js +162 -0
  83. package/vendor/components/sha256/7a5adf73fc053b9f2ca56643b5683b42589edb0f63c845ecb7ae7e6b87eccc30/README.en.md +51 -0
  84. package/vendor/components/sha256/7a5adf73fc053b9f2ca56643b5683b42589edb0f63c845ecb7ae7e6b87eccc30/index.js +230 -0
  85. package/vendor/components/sha256/7ab483e7fb05f646b062340d70f2749d070b4f64fed7acc0b8a7754d9ef9fded/README.en.md +26 -0
  86. package/vendor/components/sha256/7ab483e7fb05f646b062340d70f2749d070b4f64fed7acc0b8a7754d9ef9fded/index.js +322 -0
  87. package/vendor/components/sha256/7af6e5e6dffb618b39f27d883c691ca128f3af06040ee505e75c79c678bfdcfe/README.en.md +18 -0
  88. package/vendor/components/sha256/7af6e5e6dffb618b39f27d883c691ca128f3af06040ee505e75c79c678bfdcfe/index.js +103 -0
  89. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/ABCJS-ADAPTER.md +101 -0
  90. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/LICENSE-abcjs.txt +21 -0
  91. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/chords.json +89 -0
  92. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/doremi.json +261 -0
  93. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/extras.json +192 -0
  94. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/kaeru.json +521 -0
  95. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/rhythm.json +248 -0
  96. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/fixtures/ties.json +360 -0
  97. package/vendor/components/sha256/7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e/index.js +508 -0
  98. package/vendor/components/sha256/832556ea9c82c292a3ba9e1b332f2405c5c2f969ff8157c91ed80226ec8ac62e/README.en.md +22 -0
  99. package/vendor/components/sha256/832556ea9c82c292a3ba9e1b332f2405c5c2f969ff8157c91ed80226ec8ac62e/index.js +145 -0
  100. package/vendor/components/sha256/8a4b6dce84d7a69aaafeb75c1c572fe7904fd49e3169c1c85851ccaeae2a7b11/index.js +41 -0
  101. package/vendor/components/sha256/8bb511cb90902bc7721e59ca08685b26adbf33539e36a4a45172485d6d3d455b/index.js +250 -0
  102. package/vendor/components/sha256/8db9c936c36b79b9e3b2be37639487b15502a6937f411ed714621a8091437e9b/README.en.md +21 -0
  103. package/vendor/components/sha256/8db9c936c36b79b9e3b2be37639487b15502a6937f411ed714621a8091437e9b/index.js +108 -0
  104. package/vendor/components/sha256/8e5e90c90cb6b06a790b0420e43d79d7da663f1cc19ff06d381ec849b4a8fc57/index.js +312 -0
  105. package/vendor/components/sha256/a1c2b2fa06e4229815ab82a9202c266ec887a67632a175854c7d136a92389ca3/index.js +69 -0
  106. package/vendor/components/sha256/a7c4282db79d46557bdbaf84ca519606dc46f3c23455db4a26f663453f85813c/README.en.md +38 -0
  107. package/vendor/components/sha256/a7c4282db79d46557bdbaf84ca519606dc46f3c23455db4a26f663453f85813c/index.js +414 -0
  108. package/vendor/components/sha256/aac2f8a23cb1b606e9635061cb288f006588c80a7258540cae846ae677f55ff5/index.js +238 -0
  109. package/vendor/components/sha256/ace7e82e866b577ad42bbc4b64e11bae18982e3236aadceb6c2e6c20f41234cf/README.en.md +45 -0
  110. package/vendor/components/sha256/ace7e82e866b577ad42bbc4b64e11bae18982e3236aadceb6c2e6c20f41234cf/index.js +211 -0
  111. package/vendor/components/sha256/aeb0b9b5991a5c1df7191c397780a699f2c7310123ca210a58486c0a23e44006/index.js +342 -0
  112. package/vendor/components/sha256/af3355efd6739a56c6cb53990100f41703361c475c123b9b2762421c68509036/index.js +315 -0
  113. package/vendor/components/sha256/b10183a66b58b827a1410cf8b0117af567647684464d5777529dc66f0cea343a/LICENSE-tabler.txt +21 -0
  114. package/vendor/components/sha256/b10183a66b58b827a1410cf8b0117af567647684464d5777529dc66f0cea343a/index.js +4868 -0
  115. package/vendor/components/sha256/b10183a66b58b827a1410cf8b0117af567647684464d5777529dc66f0cea343a/names.txt +4808 -0
  116. package/vendor/components/sha256/b348ea64cc19632df96a91dfd7c435e4a62095aede72b504d03537be70d6d930/index.js +606 -0
  117. package/vendor/components/sha256/b53bfa03d1e9feb3cb492f440bf9d100c96eb4fe6b76c42b512a56e9158829cd/index.js +351 -0
  118. package/vendor/components/sha256/b9443e1cdac4850b1ead9f8449a3061678bbb77fbc53eb9b23d01e1cf50750c3/index.js +619 -0
  119. package/vendor/components/sha256/bc1e2a02c959ac203819d03c0d25b3776a6a9a4290aae860b26cbbe3d29e876d/index.js +268 -0
  120. package/vendor/components/sha256/beeb180c0e2250bb04490b092c0a235cae47fca2ed1de2d9ef078a5c14b1a963/index.js +429 -0
  121. package/vendor/components/sha256/c5fd7713e55e96d75824a21146c0251896d7d9dd028b4d169191433135a97981/index.js +200 -0
  122. package/vendor/components/sha256/c61987e9994940fc668ed8a010e575ee52027b54ed9c5dd1cc9fdf67649092b3/index.js +404 -0
  123. package/vendor/components/sha256/ccc8bfe174b6903ec254dfef4f5d1c614271ea39963649add7fcb8d83c081eba/index.js +278 -0
  124. package/vendor/components/sha256/da267bc65fde0a9279127d5a82f6c253ad74984da6fb11391f00604ad9ffe80d/index.js +93 -0
  125. package/vendor/components/sha256/dea36cd7010991a572ef394ee32b5e17564aeff09d3ec4ed3820d7e43c9a58be/index.js +484 -0
  126. package/vendor/components/sha256/df3fdb2aed487d4f6e60a8abab1fe0d1e9fa2a4193fd162edf3c384ea8db5a1b/index.js +180 -0
  127. package/vendor/components/sha256/e27d517f39eb554c7a9ecea7b59fcf1d347c4deeb3fe2250797aa233bfb7e2b0/index.js +747 -0
  128. package/vendor/components/sha256/e31f6b058503f7980597c89b3e964c512ee08de7cba3fa99904d499abbb5d0e8/README.en.md +20 -0
  129. package/vendor/components/sha256/e31f6b058503f7980597c89b3e964c512ee08de7cba3fa99904d499abbb5d0e8/index.js +310 -0
  130. package/vendor/components/sha256/f4100076a37dbde6046d85969d651feffc925bd984ffe9f333ea9bd2b6816918/README.en.md +30 -0
  131. package/vendor/components/sha256/f4100076a37dbde6046d85969d651feffc925bd984ffe9f333ea9bd2b6816918/index.js +192 -0
  132. package/vendor/components/sha256/fa6442fa3c5082cf161c29308fe0ecbd85fa33e8e4bad08c12e7961b46b1365b/README.en.md +24 -0
  133. package/vendor/components/sha256/fa6442fa3c5082cf161c29308fe0ecbd85fa33e8e4bad08c12e7961b46b1365b/index.js +214 -0
  134. package/vendor/components-2/manifest-2.16.0.json +2919 -0
  135. package/vendor/components-2/manifest-2.17.0.json +2852 -0
  136. package/vendor/components-2/manifest-2.18.0.json +3182 -0
  137. package/vendor/egatari-spec/SOURCE.json +2 -2
@@ -497,6 +497,10 @@ export const PACK = {
497
497
  "m-map-world": [
498
498
  "spatial"
499
499
  ],
500
+ "m-matrix": [
501
+ "compare",
502
+ "position"
503
+ ],
500
504
  "m-network": [
501
505
  "process"
502
506
  ],
@@ -525,6 +529,10 @@ export const PACK = {
525
529
  "m-scatter": [
526
530
  "correlation"
527
531
  ],
532
+ "m-scroll": [
533
+ "process",
534
+ "timeline"
535
+ ],
528
536
  "m-tape": [
529
537
  "part-whole",
530
538
  "compare"
@@ -535,9 +543,6 @@ export const PACK = {
535
543
  "m-tree": [
536
544
  "hierarchy"
537
545
  ],
538
- "m-vector": [
539
- "spatial"
540
- ],
541
546
  "m-venn": [
542
547
  "overlap"
543
548
  ]
@@ -618,6 +623,7 @@ export const PACK = {
618
623
  ],
619
624
  "m-mapping": [],
620
625
  "m-market": [],
626
+ "m-matrix": [],
621
627
  "m-menu": [],
622
628
  "m-network": [],
623
629
  "m-nnet": [],
@@ -646,6 +652,7 @@ export const PACK = {
646
652
  "m-score": [
647
653
  "light"
648
654
  ],
655
+ "m-scroll": [],
649
656
  "m-seq": [],
650
657
  "m-sweep": [],
651
658
  "m-syntax": [
@@ -797,6 +804,10 @@ export const PACK = {
797
804
  "tag": "m-market",
798
805
  "set": "business"
799
806
  },
807
+ {
808
+ "tag": "m-matrix",
809
+ "set": "standard"
810
+ },
800
811
  {
801
812
  "tag": "m-menu",
802
813
  "set": "standard"
@@ -845,6 +856,10 @@ export const PACK = {
845
856
  "tag": "m-score",
846
857
  "set": "music"
847
858
  },
859
+ {
860
+ "tag": "m-scroll",
861
+ "set": "tools"
862
+ },
848
863
  {
849
864
  "tag": "m-seq",
850
865
  "set": "stats"
@@ -887,9 +902,9 @@ export const PACK = {
887
902
  "m-collect",
888
903
  "m-kakijun"
889
904
  ],
890
- "partsSrc": "https://github.com/egatari/components/blob/v2.15.0/components/",
905
+ "partsSrc": "https://github.com/egatari/components/blob/v2.18.0/components/",
891
906
  "en": {
892
- "common": "# Instructions for the AI\n\nPack version: `ac7fb486`\n\nYou will write one short **Egatari file**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both are built and quality-checked automatically; only what is described here is available. Write slides and script in the language the user asks for. Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep it short (5–8 slides). Given an outline and a range of its slides, write exactly that range (at most 6 slides, so they fit).\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and parts, is at least 24 px.**\n- **Charts and figures:** parts draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the part, not the text. A part of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a part when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. No files, canvas or attachments: write both blocks in your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the lesson would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long file made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table (columns `#`, heading, one-line point), one row per slide, all slides in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and script headings without `{#…}`. The editor adds ids after import. When you are given slides that already have ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the slides and script). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- **R-caution** In `.body`: `<div class=\"caution\">…</div>` for caution; add `warn` for warning. Labels are automatic.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. To label a term, use `\\underbrace{…}_{\\text{…}}` or `\\overbrace{…}^{…}`. Never `$$`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole file (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nStandard parts fit any file; a part set after §6 adds the parts for its material. “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations, delays) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Script: <title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step labels `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has script lines** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no labels for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the part’s `cues(k)` (only where a part’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words). Give a reading only to a term misread without one, and then everywhere it appears.\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese script is polite spoken Japanese (です・ます); English script is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small example, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
907
+ "common": "# Instructions for the AI\n\nPack version: `2a06805c`\n\nYou will write one short **Egatari file**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both are built and quality-checked automatically; only what is described here is available. Write slides and script in the language the user asks for. Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep it short (5–8 slides). Given an outline and a range of its slides, write exactly that range (at most 6 slides, so they fit).\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and parts, is at least 24 px.**\n- **Charts and figures:** parts draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the part, not the text. A part of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a part when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. No files, canvas or attachments: write both blocks in your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the lesson would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long file made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table (columns `#`, heading, one-line point), one row per slide, all slides in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and script headings without `{#…}`. The editor adds ids after import. When you are given slides that already have ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the slides and script). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- **R-caution** In `.body`: `<div class=\"caution\">…</div>` for caution; add `warn` for warning. Labels are automatic.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most. Choose how a table appears by how it compares. When the script takes items one at a time, show rows in the order spoken. For a matrix (things compared down the side, criteria across) or a table crossing two axes, show the whole table and then mark the column or cell under discussion, or fill it one axis value at a time. In a research-positioning table, write \"This work\" in your own cell (do not mark it by colour or bold alone).\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. To label a term, use `\\underbrace{…}_{\\text{…}}` or `\\overbrace{…}^{…}`. Never `$$`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole file (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nStandard parts fit any file; a part set after §6 adds the parts for its material. “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations, delays) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Script: <title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step labels `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has script lines** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no labels for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the part’s `cues(k)` (only where a part’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words). Give a reading only to a term misread without one, and then everywhere it appears.\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese script is polite spoken Japanese (です・ます); English script is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small example, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
893
908
  "request": "# What I want\n\n*(Fill in A or B and delete the other; delete fields you leave empty.)*\n\n**A. Make a new file**\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:\n\n**B. From the material and discussion in this chat**\n\nMake the slides and script from the material given in this chat and what we have discussed so far.\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:",
894
909
  "sets": {
895
910
  "stats": "## Part set: stats (statistics charts)\n\nFor classes and talks with data: distributions, box plots, heatmaps, and a distribution updated one observation at a time. Use the `default` theme. Give the source and the size of every data set on the slide or in the script, and never invent data that looks real (R-components).\n\n- **Axis charts** (<!--part:m-hist-->`m-hist`, <!--/part--><!--part:m-boxplot-->`m-boxplot`, <!--/part--><!--part:m-seq-->`m-seq`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
@@ -898,7 +913,7 @@ export const PACK = {
898
913
  "ml": "## Part set: ml (machine learning)\n\nFor machine-learning classes that show a computation one step at a time: a neural network's forward pass, classification boundaries, loss contours and gradient descent. For the values (weights, probabilities, iterates), write the output of a script that actually computed them.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
899
914
  "math": "## Part set: math (arithmetic and mathematics)\n\nFor arithmetic and mathematics lessons: column arithmetic, number lines, tape diagrams, and a function that changes with a parameter. Use the `default` theme.\n\n- **Axis charts** (<!--part:m-sweep-->`m-sweep`, <!--/part--><!--part:m-curves-->`m-curves`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-sweep-->### Worked example: math (English, default theme, m-sweep)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part-->\n\n<!--part:m-sweep-->Steps: the `m-sweep` with 3 values gives steps 1–2.<!--/part-->",
900
915
  "maps": "## Part set: maps\n\nFor classes and guides with maps: geography, history and local information on a map of Japan or of the world. Use the `default` theme. Give the year and the source of every figure (population, area, production) on the slide or in the narration.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
901
- "kokugo": "## Part set: kokugo (Japanese language arts)\n\nFor 国語 lessons: 漢文, 古文 and 現代文. Use the `kokugo` theme. In the script, give the reading of hard words and names with `{display|reading}` (R-reading).\n\n- **Vertical slides:** `<section class=\"slide layout-tate\">` sets the whole slide in vertical writing. The `<h2>` is one vertical column at the right edge (about 14 full-width characters; it does not wrap), the body runs in columns from right to left, and the conclusion line is a vertical column at the left edge (about 19 characters). The body must stay between the two columns (the quality checker reports an overlap). Parts, figures and tables in the body stay horizontal at the full body width: use their vertical option (<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->, <!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->; `m-kanbun` is always vertical<!--/part-->).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### Worked example: kokugo (kokugo theme, m-kanbun)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->Steps: `m-kanbun` gives 訓点 (step 1), then one step per 句 of the reading order, then the 書き下し文: write one `[n]` per 句.<!--/part-->",
916
+ "kokugo": "## Part set: kokugo (Japanese language arts)\n\nFor 国語 lessons: 漢文, 古文 and 現代文. Use the `kokugo` theme. In the script, give the reading of hard words and names with `{display|reading}` (R-reading).\n\n- **Vertical slides:** `<section class=\"slide layout-tate\">` sets the whole slide in vertical writing. The `<h2>` is one vertical column at the right edge (about 14 full-width characters; it does not wrap), the body runs in columns from right to left, and the conclusion line is a vertical column at the left edge (about 19 characters). The body must stay between the two columns (the quality checker reports an overlap). Parts, figures and tables in the body stay horizontal at the full body width: use their vertical option (<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->, <!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->; `m-kanbun` is always vertical<!--/part-->). Keep the body of a vertical slide to 15 columns (about 18 characters each, some 270 in all). An item longer than 18 characters takes two columns. If it does not fit, split the slide.\n- **Keep one direction:** keep one file vertical or horizontal. When the file reads a classical or modern Japanese text, put the explanation slides in vertical writing too. Only slides with a figure or table that works only horizontally (a flow chart, for example) are horizontal; keep them together and do not alternate vertical and horizontal slides\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### Worked example: kokugo (kokugo theme, m-kanbun)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->Steps: `m-kanbun` gives 訓点 (step 1), then one step per 句 of the reading order, then the 書き下し文: write one `[n]` per 句.<!--/part-->",
902
917
  "english": "## Part set: english (English as a foreign language)\n\nFor English lessons taught in Japanese: the structure of English sentences (S V O C M, phrases and clauses, what modifies what) with a Japanese translation. Use the `default` theme. Write the English sentences exactly as the class reads them, and keep the Japanese script short; read the English examples aloud only when the lesson needs it.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
903
918
  "music": "## Part set: music (pitch, scales, chords)\n\nFor music lessons: pitch, scales, intervals and chords on a piano keyboard. Use the `default` theme. Name notes as the class does (ドレミ, C D E, or ハニホ) and keep the same names on the slide and in the narration.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
904
919
  "business": "## Part set: business\n\nFor business and pitch decks: KPI cards, positioning maps, market sizes and money flows. Use the `sumi` theme. Put the fictional label of R-components in a `note` or on the cover, and keep the numbers consistent across slides (parts add up to the totals you state).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kpi-->### Worked example: business (Japanese, sumi theme, m-kpi)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>導入から 3 か月の結果</h2>\n <div class=\"body\">\n <p class=\"note muted\">新しい仕分けの手順を入れた 3 拠点の合計(数字は架空)</p>\n <m-kpi style=\"height:330px\" aria-label=\"1 日の出荷 1,240 件、誤配率 0.8%、残業 32% 減\">\n <script type=\"application/json\">{\"cards\": [\n {\"label\": \"1 日の出荷\", \"value\": 1240, \"unit\": \"件\", \"from\": 980, \"delta\": {\"dir\": \"up\", \"text\": \"導入前から 260 件\"}},\n {\"label\": \"誤配率\", \"value\": 0.8, \"digits\": 1, \"unit\": \"%\", \"from\": 2.1, \"tone\": \"emph\", \"delta\": {\"dir\": \"down\", \"text\": \"導入前は 2.1%\", \"good\": true}},\n {\"label\": \"残業時間\", \"value\": 32, \"unit\": \"%\", \"prefix\": \"−\", \"tone\": \"accent2\", \"note\": \"1 人あたり、月の平均\"}\n ]}</script>\n </m-kpi>\n </div>\n <div class=\"concl\"><span>→ 件数が増えても、誤りと残業は減った</span></div>\n</section>\n```\n\n```narration.md\n## 導入から 3 か月の結果\n[0] 新しい仕分けの手順を入れた、3 つの拠点の合計です。\n[1] 1 日の出荷は 1,240 件になり、導入前より 260 件増えました。\n[2] 誤配率は 2.1% から 0.8% に下がりました。件数が増えても、誤りは減っています。\n[3] 残業時間も、1 人あたり 32% 減っています。\n[concl] 件数が増えても、誤りと残業は減りました。\n```<!--/part-->\n\n<!--part:m-kpi-->Steps: `m-kpi` with 3 cards gives steps 1–3.<!--/part-->",
@@ -919,8 +934,8 @@ export const PACK = {
919
934
  },
920
935
  "m-boxplot": {
921
936
  "set": "stats",
922
- "row": "| `<m-boxplot>` | 箱ひげ図。値を並べ、中央値・四分位数を求める手順のとおりに組み立てる。群を並べて比べる | steps(既定):点 → 中央値 → 第1・第3四分位数 → 箱 → ひげ。whole:群 1 つ = 1 ステップ | `{groups:[{label?,tone?,values?:num[],five?:num[]} (values or five),…]}` — groups [{label, tone, values}] or [{label, five: [min, q1, median, q3, max]}]; axes go in attributes (xr=\"[0,20]\" xl=\"…\") |",
923
- "entry": "### `<m-boxplot>`\n\nData example (child `<script type=\"application/json\">`): `{\"groups\":[{\"label\":\"1 組\",\"values\":[3,5,6,7,8,9,10,12,13,15,18]}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(横向きの箱、値の軸が横)か v(縦向き) |\n| `xr` | json | `null` | 横軸の範囲 |\n| `yr` | json | `null` | 縦軸の範囲 |\n| `xt` | json | `null` | 横軸の目盛り |\n| `yt` | json | `null` | 縦軸の目盛り |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `method` | string | `\"jp\"` | 四分位数の求め方:jp(教科書)・inc・exc(表計算の QUARTILE.INC / EXC) |\n| `outliers` | string | `\"off\"` | on:1.5×四分位範囲の外を外れ値(点)にし、ひげはその内側まで |\n| `dots` | string | `\"off\"` | on:値の点を箱の下に並べる(build=\\ |\n| `build` | string | `\"steps\"` | steps(求める手順のとおり)か whole(群 1 つ = 1 ステップ) |\n| `unit` | string | `\"\"` | 表示する値の後ろに付ける単位 |\n| `digits` | number | | 表示する値の小数桁(書かなければ値の桁+1 まで) |\n\n値の代わりに `\"five\": [最小値, 第1四分位数, 中央値, 第3四分位数, 最大値]` も書ける。\n\n- `orient`:`h`(既定)か `v`\n- `method`:`jp`(既定、教科書)・`inc`・`exc`(表計算の QUARTILE.INC / EXC)\n- `outliers=\"on\"`:1.5×四分位範囲の外を外れ値の点に\n- `dots=\"on\"`:値の点を並べる\n- 群が 1 つの steps では、並べた値の行も出る",
937
+ "row": "| `<m-boxplot>` | 箱ひげ図。値を並べ、中央値・四分位数を求める手順のとおりに組み立てる。群を並べて比べる | steps(既定):点 → 中央値 → 第 1・第 3 四分位数 → 箱 → ひげ。whole:群 1 つ = 1 ステップ | `{groups:[{label?,tone?,values?:num[],five?:num[]} (values or five),…]}` — groups [{label, tone, values}] or [{label, five: [min, q1, median, q3, max]}]; axes go in attributes (xr=\"[0,20]\" xl=\"…\") |",
938
+ "entry": "### `<m-boxplot>`\n\nData example (child `<script type=\"application/json\">`): `{\"groups\":[{\"label\":\"1 組\",\"values\":[3,5,6,7,8,9,10,12,13,15,18]}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(横向きの箱、値の軸が横)か v(縦向き) |\n| `xr` | json | `null` | 横軸の範囲 |\n| `yr` | json | `null` | 縦軸の範囲 |\n| `xt` | json | `null` | 横軸の目盛り |\n| `yt` | json | `null` | 縦軸の目盛り |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | x axis name (`*italic*` `_sub` `^sup`) * |\n| `yl` | string | `\"\"` | y axis name * |\n| `method` | string | `\"jp\"` | 四分位数の求め方:jp(教科書)・inc・exc(表計算の QUARTILE.INC / EXC) |\n| `outliers` | string | `\"off\"` | on:1.5×四分位範囲の外を外れ値(点)にし、ひげはその内側まで |\n| `dots` | string | `\"off\"` | on:値の点を箱の下に並べる(build=\\ |\n| `build` | string | `\"steps\"` | steps(求める手順のとおり)か whole(群 1 つ = 1 ステップ) |\n| `unit` | string | `\"\"` | 表示する値の後ろに付ける単位 |\n| `digits` | number | | 表示する値の小数桁(書かなければ値の桁+1 まで) |\n\n値の代わりに `\"five\": [最小値, 第 1 四分位数, 中央値, 第 3 四分位数, 最大値]` も書ける。\n\n- `orient`:`h`(既定)か `v`\n- `method`:`jp`(既定、教科書)・`inc`・`exc`(表計算の QUARTILE.INC / EXC)\n- `outliers=\"on\"`:1.5×四分位範囲の外を外れ値の点に\n- `dots=\"on\"`:値の点を並べる\n- 群が 1 つの steps では、並べた値の行も出る",
924
939
  "sup": true
925
940
  },
926
941
  "m-callout": {
@@ -1063,6 +1078,12 @@ export const PACK = {
1063
1078
  "row": "| `<m-market>` | 市場規模の入れ子の円(TAM / SAM / SOM)。外の円から 1 つずつ、前の円の大きさから縮んで現れる | rings の数 | `{rings:{key?:str,value:num,basis?:str,tone?}[]}` |",
1064
1079
  "entry": "### `<m-market>`\n\nData example (child `<script type=\"application/json\">`): `{\"rings\":[{\"key\":\"TAM\",\"value\":3000,\"basis\":\"国内の…\"},{\"key\":\"SAM\",\"value\":600,\"basis\":\"…\"},{\"key\":\"SOM\",\"value\":30,\"basis\":\"…\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける) |\n| `digits` | number | `0` | 値の小数桁 |\n| `scale` | string | `\"fixed\"` | fixed(決まった比)か area(面積を値に比例) |\n| `layout` | string | `\"bottom\"` | bottom(下端をそろえる)か center(同心) |\n| `count` | bool | `false` | 値の数字を縮みに合わせて数え上げる |\n\n市場の大きさを、全体(TAM)から手の届く範囲(SAM)、最初に取る範囲(SOM)へ絞り込んで見せるときに使う。\n\n子の JSON の並び:外から順。\n\n- ステップ j で j 番目の円が、1 つ外の円の大きさと位置から縮んで現れる。前の円はそのまま残る\n- 名前(`key`)・値・根拠(`basis`、何を数えたか)は円の右に書き、円の中の点から引き出し線で結ぶ。値は `digits` 桁で 3 桁ごとにカンマを入れ、`unit` を後ろに付ける\n- `scale=\"fixed\"`(既定)は見やすい決まった比(1・0.64・0.34・0.16)。`scale=\"area\"` は面積を値に比例させる(小さすぎる円は最も大きい円の 0.14 倍の半径にする)。面積に比例させると SOM がほとんど見えないことが多いので、既定は fixed にして値を字で示す\n- `layout=\"bottom\"`(既定)は円の下端をそろえ、`layout=\"center\"` は同心にする\n- 色は外の 2 つが `--term`、内の円が `--emph`(`tone` で変えられる:`term`・`emph`・`muted`・`accent2`・`series-1..4`。ほかの値は `term`)\n- `dur`:1 つの円が縮んで現れる秒数(既定 0.9)。数字はそのあと 0.35 秒で出る\n- 値の数字は円が縮みきってから出す。`count=\"true\"` なら縮みに合わせて数え上げる"
1065
1080
  },
1081
+ "m-matrix": {
1082
+ "set": "standard",
1083
+ "row": "| `<m-matrix>` | A positioning table: the cross of two axes (studies in cells, this work framed, empty cells — with a note) or studies × elements (✓ △ × or short text), filled by step | cross: axes → studies → this work → notes (order=\"whole\": 1). attributes: per column or row (order) + frame | `{kind?:\"cross\"\\|\"attributes\",rows?:object\\|any[],cols?:object\\|any[],cells?:(any[]\\|object)[][],marks?:{mark:str,text:str}[],design?:{cols:str[],rows:{label?,self?:bool,cells:str[]}[]},self?:str}` — cross: rows, cols {\"axis\", \"values\"}; cells[r][c] study names, {\"self\": true or \"finding\"} or {\"none\": \"why\"}; design {\"cols\", \"rows\"}. attributes: cols names or {\"name\", \"source\"}, rows {\"label\", \"cells\", \"self\"?} |",
1084
+ "entry": "### `<m-matrix>`\n\nData example (child `<script type=\"application/json\">`): `{\"kind\":\"cross\",\"rows\":{\"axis\":\"Criterion\",\"values\":[\"Error\",\"Bayes risk\"]},\"cols\":{\"axis\":\"Output\",\"values\":[\"Point\",\"Distribution\"]},\"cells\":[[[\"[1]\",\"[2]\"],[\"[3]\"]],[{\"none\":\"Trivial\"},{\"self\":true}]]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `order` | string | `\"\"` | cross build\\|whole; attributes whole\\|col\\|row |\n| `size` | number | `28` | text px (≥ 24) |\n\n`kind`: `cross` (default) or `attributes`.\n\n- cross: `rows`, `cols` = `{\"axis\", \"values\"}` (2–4 each). `cells[r][c]`: study names (1–3), `{\"self\": true}` or `{\"none\": \"why\"}` (— and a note). `marks`: `[{\"mark\": \"†\", \"text\"}]`\n- attributes: `cols` names; `rows` `{\"label\", \"cells\", \"self\"}`, this work first\n- This work is written out and framed in `--emph`",
1085
+ "paidOnly": true
1086
+ },
1066
1087
  "m-menu": {
1067
1088
  "set": "standard",
1068
1089
  "row": "| `<m-menu>` | Grid of slide-link cards (contents); plain <a href=\"#<slide id>\">; visited mark | ceil(cards / per-step) (per-step=\"0\": 0) | child `<a href>` links (not JSON) |",
@@ -1086,12 +1107,12 @@ export const PACK = {
1086
1107
  "m-orbit": {
1087
1108
  "set": "science",
1088
1109
  "row": "| `<m-orbit>` | 月の満ち欠け(金星の満ち欠け)。北極の上から見た図と地球から見た形を並べ、月を位置から位置へ動かす。形は位置から計算する | 動く先の数(既定は 8 つの位置を新月から 1 周 = 8 ステップ。visit で決める) | `{positions?:int,start?:int,visit?:int[],labels?:(str\\|null)[],notes?:(str\\|null)[],eclipse?:bool}` |",
1089
- "entry": "### `<m-orbit>`\n\nData example (child `<script type=\"application/json\">`): `{\"positions\":8,\"visit\":[1,2,3,4,5,6,7,0]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `mode` | string | `\"moon\"` | moon(月の満ち欠け)か venus(金星の満ち欠け) |\n| `hemisphere` | string | `\"north\"` | north(北半球から見た形。満ちていく月は右が光る)か south(南半球。左右が逆) |\n| `sun` | string | `\"right\"` | 月の図で太陽の光が来る側(right か left) |\n| `earth` | number | `0.2` | 地球の半径(月の軌道の半径に対する比。金星の図では地球の軌道に対する比の半分) |\n| `moon` | number | `0.5` | 月の半径(地球の半径に対する比。実際の月は 0.27。金星の図では金星をこの 1.4 倍に) |\n| `observer` | bool | `true` | 月の図で、地球の上の人と、月を見る向きを描く |\n| `size` | number | `28` | 地球から見た形の名前の字の大きさ(px。24 以上) |\n\n月の満ち欠け(中学 3 年・地学基礎)を見せるときに使う。左は北極の上から見た図で、太陽の光が片側から来て、地球のまわりの軌道の上に月がある。月の光っている半分は、いつも太陽の側を向いている。右は、地球から見たときの月の形。2 つの図は同じ位置で動く。\n\n**大きさと距離は実際の比ではない**(教えるための図)。実際は、地球と月の距離は地球の半径のおよそ 60 倍、月の半径は地球のおよそ 0.27 倍。比は `earth` と `moon` で変えられる。\n\n子の JSON(中身は省ける。`{}` で既定の 1 周):`{\"positions\": 8, \"start\": 0, \"visit\": [1, 2, 3, 4, 5, 6, 7, 0], \"labels\": [...], \"notes\": [...], \"eclipse\": false}`(どれも省ける)。\n\n- `positions`:軌道の上の位置の数(4〜24、既定 8)。位置 0 が新月(月が太陽の側)、そこから反時計回りに等しい間隔\n- `start`:ステップ 0 の位置(既定 0)\n- `visit`:ステップごとに動く先の位置。月はいつも反時計回りに進む(2 つ先なら 2 つ分動く)。既定は `start` の次から 1 周して `start` へ戻る\n- `labels`:位置ごとの名前(`null` は既定のまま、`\"\"` は名前なし)。既定は、新月・三日月・上弦の月・満月・下弦の月(英語は new moon, waxing crescent, first quarter, full moon, last quarter)。8 つの位置では、残りの 3 つは名前なし(教科書と同じ)。十三夜などは `labels` で付ける\n- `notes`:位置ごとの説明(右の図の名前の下)。既定は、地球の上の人がその月を見る時刻と空の向き(「夕方・南西の空」など。下)\n- `eclipse`:`true` なら、新月と満月の位置で、太陽・月・地球がそろったときの影を描き、名前に(日食)(月食)を添える\n\n属性:\n\n- `mode`:`moon`(既定)か `venus`(金星の満ち欠け。下)\n- `hemisphere`:`north`(既定。満ちていく月は右側が光る)か `south`(左右が逆)\n- `sun`:太陽の光が来る側(`right` 既定か `left`)。月の図だけ\n- `earth`:地球の半径(月の軌道の半径に対する比、既定 0.2)。`moon`:月の半径(地球の半径に対する比、既定 0.5)\n- `observer`:地球の上の人と、月を見る向きの線(既定 true)\n- `size`:右の図の名前の字の大きさ(既定 28px)。`dur`:となりの位置へ動く秒数(既定 1.2)\n\n地球の上の人の時刻:月が夜の側にあるとき(上弦から下弦まで)は、月が南の空にいちばん高く上る時刻(上弦は夕方、満月は真夜中、下弦は明け方)。三日月のように夕方の側にある月は日の入り、明け方の側にある月は日の出、新月は正午。人はステップの間に、地球が回る向きに動く。空の向きは、人の真上から月への角を 45° ごとに名前にしたもの(南、南西、西…。南半球では北が基準)。教科書と言い方を合わせたいときは `notes` で書く。\n\n`mode=\"venus\"`:太陽を中心に、金星と地球の軌道を描く。地球は下に止めて、金星の位置を外合(太陽の向こう側)から反時計回りに `positions` 個置く(8 つなら位置 3 が東方最大離角に近い「よいの明星」、位置 5 が西方最大離角に近い「明けの明星」)。右の図は地球から見た金星の形で、大きさは地球からの距離に反比例する(地球に近いほど大きく、細く欠ける)。説明は「夕方・西の空」「明け方・東の空」、太陽に近い位置では「太陽に近くて見えない」。軌道の比は実際の値(金星 0.723)。\n\n縦書きの教材でも、横書きの 1 つの図として置く。"
1110
+ "entry": "### `<m-orbit>`\n\nData example (child `<script type=\"application/json\">`): `{\"positions\":8,\"visit\":[1,2,3,4,5,6,7,0]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `mode` | string | `\"moon\"` | moon(月の満ち欠け)か venus(金星の満ち欠け) |\n| `hemisphere` | string | `\"north\"` | north(北半球から見た形。満ちていく月は右が光る)か south(南半球。左右が逆) |\n| `sun` | string | `\"right\"` | 月の図で太陽の光が来る側(right か left) |\n| `earth` | number | `0.2` | 地球の半径(月の軌道の半径に対する比。金星の図では地球の軌道に対する比の半分) |\n| `moon` | number | `0.5` | 月の半径(地球の半径に対する比。実際の月は 0.27。金星の図では金星をこの 1.4 倍に) |\n| `observer` | bool | `true` | 月の図で、地球の上の人と、月を見る向きを描く |\n| `size` | number | `28` | 地球から見た形の名前の字の大きさ(px。24 以上) |\n\n月の満ち欠け(中学 3 年・地学基礎)を見せるときに使う。左は北極の上から見た図で、太陽の光が片側から来て、地球のまわりの軌道の上に月がある。月の光っている半分は、いつも太陽の側を向いている。右は、地球から見たときの月の形。2 つの図は同じ位置で動く。\n\n**大きさと距離は実際の比ではない**(教えるための図)。実際は、地球と月の距離は地球の半径のおよそ 60 倍、月の半径は地球のおよそ 0.27 倍。比は `earth` と `moon` で変えられる。\n\n子の JSON(中身は省ける。`{}` で既定の 1 周):`{\"positions\": 8, \"start\": 0, \"visit\": [1, 2, 3, 4, 5, 6, 7, 0], \"labels\": [...], \"notes\": [...], \"eclipse\": false}`(どれも省ける)。\n\n- `positions`:軌道の上の位置の数(4〜24、既定 8)。位置 0 が新月(月が太陽の側)、そこから反時計回りに等しい間隔\n- `start`:ステップ 0 の位置(既定 0)\n- `visit`:ステップごとに動く先の位置。月はいつも反時計回りに進む(2 つ先なら 2 つ分動く)。既定は `start` の次から 1 周して `start` へ戻る\n- `labels`:位置ごとの名前(`null` は既定のまま、`\"\"` は名前なし)。既定は、新月・三日月・上弦の月・満月・下弦の月(英語は new moon, waxing crescent, first quarter, full moon, last quarter)。8 つの位置では、残りの 3 つは名前なし(教科書と同じ)。十三夜などは `labels` で付ける\n- `notes`:位置ごとの説明(右の図の名前の下)。既定は、地球の上の人がその月を見る時刻と空の向き(「夕方・南西の空」など。下)\n- `eclipse`:`true` なら、新月と満月の位置で、太陽・月・地球がそろったときの影を描き、名前に(日食)(月食)を添える\n\n属性:\n\n- `mode`:`moon`(既定)か `venus`(金星の満ち欠け。下)\n- `hemisphere`:`north`(既定。満ちていく月は右側が光る)か `south`(左右が逆)\n- `sun`:太陽の光が来る側(`right` 既定か `left`)。月の図だけ\n- `earth`:地球の半径(月の軌道の半径に対する比、既定 0.2)。`moon`:月の半径(地球の半径に対する比、既定 0.5)\n- `observer`:地球の上の人と、月を見る向きの線(既定 true)\n- `size`:右の図の名前の字の大きさ(既定 28px)。`dur`:となりの位置へ動く秒数(既定 1.2)\n\n地球の上の人の時刻:月が夜の側にあるとき(上弦から下弦まで)は、月が南の空にいちばん高く上る時刻(上弦は夕方、満月は真夜中、下弦は明け方)。三日月のように夕方の側にある月は日の入り、明け方の側にある月は日の出、新月は正午。人はステップの間に、地球が回る向きに動く。空の向きは、人の真上から月への角を 45° ごとに名前にしたもの(南、南西、西…。南半球では北が基準)。教科書と言い方を合わせたいときは `notes` で書く。\n\n`mode=\"venus\"`:太陽を中心に、金星と地球の軌道を描く。地球は下に止めて、金星の位置を外合(太陽の向こう側)から反時計回りに `positions` 個置く(8 つなら位置 3 が東方最大離角に近い「よいの明星」、位置 5 が西方最大離角に近い「明けの明星」)。右の図は地球から見た金星の形で、大きさは地球からの距離に反比例する(地球に近いほど大きく、細く欠ける)。説明は「夕方・西の空」「明け方・東の空」、太陽に近い位置では「太陽に近くて見えない」。軌道の比は実際の値(金星 0.723)。\n\n縦書きのスライドでも、横書きの 1 つの図として置く。"
1090
1111
  },
1091
1112
  "m-particles": {
1092
1113
  "set": "science",
1093
1114
  "row": "| `<m-particles>` | 状態変化の粒子の並び方と間隔、化学変化で保存される原子の数を見せる | state は states の数 − 1(既定 2)。reaction は反応前→原子に分かれる→反応後の 3 ステップ | `{states?:(\"solid\"\\|\"liquid\"\\|\"gas\")[],substance?:str,labels?:(str\\|null)[]\\|{before?:str,apart?:str,after?:str,atoms?:str},reactants?:{formula:str,n:int,shape?:\"linear\"\\|\"bent\"\\|\"trigonal\"\\|\"tetrahedral\"\\|\"chain\"}[],products?:{formula:str,n:int,shape?:\"linear\"\\|\"bent\"\\|\"trigonal\"\\|\"tetrahedral\"\\|\"chain\"}[]}` |",
1094
- "entry": "### `<m-particles>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `mode` | string | `\"state\"` | state(状態変化)か reaction(化学変化) |\n| `count` | number | `16` | 状態変化で描く粒子の数(6〜30 の整数。数と大きさは一定) |\n| `size` | number | `28` | 名前・式の字の大きさ(px。24 以上) |\n| `volume` | bool | `false` | 状態に合わせて容器の幅を変える(気体は広い) |\n| `motion` | bool | `true` | 状態変化の粒子に静止した運動の印を付ける |\n\n中学 1〜2 年の理科・化学基礎で、状態変化と化学変化を粒子のモデルで説明するときに使う。高さ 440px、幅 1000px 以上を目安に置く。狭くて入らないときは `ctx.report(\"size\", …)` で知らせる。\n\n`mode=\"state\"`(既定):1 つの容器の中で、粒子が固体・液体・気体の並び方へ移る。粒子の数と半径(19px)は途中でも一定。固体は床の上の規則正しい格子(16 個なら 4×4、割り切れない行は中央寄せ)。液体は固体より広く低い層で、床の上から不規則に積む。粒子は重ならず、近い粒子同士が接する。気体は格子を使わず、容器全体に十分な間隔を空けて散らす。振動の印・短い矢印・長い矢印で運動を示すので、静止画でも比較できる。液体の矢印は粒子の縁から約 18px、気体は 24px 伸ばし、同じ線の太さで描く。矢印は粒子の縁から外を向き、他の粒子にも容器の枠にも重ねない。密に接した内部の粒子で矢印が収まらないときは、その矢印を省く。\n\n子の JSON は省略できる。例:\n\n```json\n{\"states\": [\"solid\", \"liquid\", \"gas\"], \"substance\": \"水\", \"labels\": [\"固体(氷)\", null, null]}\n```\n\n- `states`:1 個以上の状態名(`solid`・`liquid`・`gas`)。並び順に移る。逆順や固体↔気体も使える。1 個ならステップなし\n- `substance`:容器の上に出す物質名(省略可)\n- `labels`:各状態の表示名。`null` は既定の固体・液体・気体、`\"\"` は名前なし。英語の教材では Solid・Liquid・Gas\n- ステップ 0 は容器の下に最初の状態名だけを出す。ステップ 1 以降は「液体 → 気体(沸騰)」のように、出発点・到着点・変化名を 1 行で出す。英語は `Liquid → Gas (boiling)`\n- 変化の名前は状態の組から決める(融解・沸騰・凝固・凝縮・昇華)。英語は melting・boiling・freezing・condensation・sublimation\n\n`mode=\"reaction\"`:反応前の分子が現れる(1)、同じ原子が離れる(2)、生成物の分子へ集まる(3)。元素記号と色が原子の種類を表す。原子の半径は図に合わせて 24〜34px(全ステップで同じ)。ステップの見出しは図の上に置く。ステップ 2 は原子の間に少なくとも半径 1 個分の隙間を取り、中央に配置する。最後は左に「反応前」、右に「反応後」を付けて左右の分子の中央に矢印を置く。図全体を縦に中央寄せし、すぐ下に式と「原子の数:H 4 → 4、O 2 → 2」のような数の行を中央揃えで出す。最後は下側にステップ名を重ねない。左の反応前の図は比較のためのコピーで、別の原子が増えたことを意味しない。\n\n```html\n<m-particles mode=\"reaction\" style=\"height:440px\">\n <script type=\"application/json\">{\"reactants\": [{\"formula\": \"H2\", \"n\": 2}, {\"formula\": \"O2\", \"n\": 1}], \"products\": [{\"formula\": \"H2O\", \"n\": 2}]}</script>\n</m-particles>\n```\n\n- `reactants`・`products`:分子のリスト。`formula` は元素記号(大文字+任意の小文字)と正の整数の個数だけ。例:`H2O`・`FeS`・`CO2`。括弧・電荷・式の中の係数は使えない\n- `shape`:各分子に省略可。`\"linear\"`(直線)、`\"bent\"`(3 原子の折れ線)、`\"trigonal\"`(中心+周囲の 3 原子を平面に配置)、`\"tetrahedral\"`(中心+周囲の 4 原子を平面の十字に配置)、`\"chain\"`(コンパクトな列)で指定し、既定の形を上書きする。例:`{\"formula\":\"CO2\",\"n\":1,\"shape\":\"linear\"}`。省略時は既知の分子の形を使い、それ以外の 3 原子分子は直線、より大きい分子はコンパクトな列にする\n- `n`:分子の数(1〜24 の整数)。1 も明記する。式の表示では係数 1 を省き、原子の個数は下付きにする\n- 元素は初出順に最大 6 種、原子は片側で最大 24 個(保存される原子の総数)。上限超過や読めない式は `data` で知らせ、図の代わりに確認を求める文を出す\n- 原子数が一致しない式は変更しない。`data` で全元素の反応前→反応後の数を報告し、不一致を強調した数の表と左右の静止した比較図を描く。原子を作ったり消したりする誤った移動は描かない\n- `labels` は省略可のオブジェクト。`before`・`apart`・`after`・`atoms` で「反応前」「原子に分かれる」「反応後」「原子の数:」を上書きできる\n\n属性:`count` は state の粒子数(6〜30、既定 16)、`size` は名前と式の文字サイズ(24px 以上、既定 28)、`dur` は各ステップの秒数(既定 1.2)。`volume=\"true\"` は気体の容器を広くする(既定 false。固体・液体の幅も粒子の層が入る幅を保つ)。`motion=\"false\"` で state の運動の印を消す(既定 true)。`states` は属性ではなく子の JSON に書く。\n\n要素の言語に従い日本語・英語で表示する。読み上げは最後の状態と保存される数を説明する。作者の `aria-label` があれば保つ。縦書きの教材でも図は横書き。"
1115
+ "entry": "### `<m-particles>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `mode` | string | `\"state\"` | state(状態変化)か reaction(化学変化) |\n| `count` | number | `16` | 状態変化で描く粒子の数(6〜30 の整数。数と大きさは一定) |\n| `size` | number | `28` | 名前・式の字の大きさ(px。24 以上) |\n| `volume` | bool | `false` | 状態に合わせて容器の幅を変える(気体は広い) |\n| `motion` | bool | `true` | 状態変化の粒子に静止した運動の印を付ける |\n\n中学 1〜2 年の理科・化学基礎で、状態変化と化学変化を粒子のモデルで説明するときに使う。高さ 440px、幅 1000px 以上を目安に置く。狭くて入らないときは `ctx.report(\"size\", …)` で知らせる。\n\n`mode=\"state\"`(既定):1 つの容器の中で、粒子が固体・液体・気体の並び方へ移る。粒子の数と半径(19px)は途中でも一定。固体は床の上の規則正しい格子(16 個なら 4×4、割り切れない行は中央寄せ)。液体は固体より広く低い層で、床の上から不規則に積む。粒子は重ならず、近い粒子同士が接する。気体は格子を使わず、容器全体に十分な間隔を空けて散らす。振動の印・短い矢印・長い矢印で運動を示すので、静止画でも比較できる。液体の矢印は粒子の縁から約 18px、気体は 24px 伸ばし、同じ線の太さで描く。矢印は粒子の縁から外を向き、他の粒子にも容器の枠にも重ねない。密に接した内部の粒子で矢印が収まらないときは、その矢印を省く。\n\n子の JSON は省略できる。例:\n\n```json\n{\"states\": [\"solid\", \"liquid\", \"gas\"], \"substance\": \"水\", \"labels\": [\"固体(氷)\", null, null]}\n```\n\n- `states`:1 個以上の状態名(`solid`・`liquid`・`gas`)。並び順に移る。逆順や固体↔気体も使える。1 個ならステップなし\n- `substance`:容器の上に出す物質名(省略可)\n- `labels`:各状態の表示名。`null` は既定の固体・液体・気体、`\"\"` は名前なし。英語のスライドでは Solid・Liquid・Gas\n- ステップ 0 は容器の下に最初の状態名だけを出す。ステップ 1 以降は「液体 → 気体(沸騰)」のように、出発点・到着点・変化名を 1 行で出す。英語は `Liquid → Gas (boiling)`\n- 変化の名前は状態の組から決める(融解・沸騰・凝固・凝縮・昇華)。英語は melting・boiling・freezing・condensation・sublimation\n\n`mode=\"reaction\"`:反応前の分子が現れる(1)、同じ原子が離れる(2)、生成物の分子へ集まる(3)。元素記号と色が原子の種類を表す。原子の半径は図に合わせて 24〜34px(全ステップで同じ)。ステップの見出しは図の上に置く。ステップ 2 は原子の間に少なくとも半径 1 個分の隙間を取り、中央に配置する。最後は左に「反応前」、右に「反応後」を付けて左右の分子の中央に矢印を置く。図全体を縦に中央寄せし、すぐ下に式と「原子の数:H 4 → 4、O 2 → 2」のような数の行を中央揃えで出す。最後は下側にステップ名を重ねない。左の反応前の図は比較のためのコピーで、別の原子が増えたことを意味しない。\n\n```html\n<m-particles mode=\"reaction\" style=\"height:440px\">\n <script type=\"application/json\">{\"reactants\": [{\"formula\": \"H2\", \"n\": 2}, {\"formula\": \"O2\", \"n\": 1}], \"products\": [{\"formula\": \"H2O\", \"n\": 2}]}</script>\n</m-particles>\n```\n\n- `reactants`・`products`:分子のリスト。`formula` は元素記号(大文字+任意の小文字)と正の整数の個数だけ。例:`H2O`・`FeS`・`CO2`。括弧・電荷・式の中の係数は使えない\n- `shape`:各分子に省略可。`\"linear\"`(直線)、`\"bent\"`(3 原子の折れ線)、`\"trigonal\"`(中心+周囲の 3 原子を平面に配置)、`\"tetrahedral\"`(中心+周囲の 4 原子を平面の十字に配置)、`\"chain\"`(コンパクトな列)で指定し、既定の形を上書きする。例:`{\"formula\":\"CO2\",\"n\":1,\"shape\":\"linear\"}`。省略時は既知の分子の形を使い、それ以外の 3 原子分子は直線、より大きい分子はコンパクトな列にする\n- `n`:分子の数(1〜24 の整数)。1 も明記する。式の表示では係数 1 を省き、原子の個数は下付きにする\n- 元素は初出順に最大 6 種、原子は片側で最大 24 個(保存される原子の総数)。上限超過や読めない式は `data` で知らせ、図の代わりに確認を求める文を出す\n- 原子数が一致しない式は変更しない。`data` で全元素の反応前→反応後の数を報告し、不一致を強調した数の表と左右の静止した比較図を描く。原子を作ったり消したりする誤った移動は描かない\n- `labels` は省略可のオブジェクト。`before`・`apart`・`after`・`atoms` で「反応前」「原子に分かれる」「反応後」「原子の数:」を上書きできる\n\n属性:`count` は state の粒子数(6〜30、既定 16)、`size` は名前と式の文字サイズ(24px 以上、既定 28)、`dur` は各ステップの秒数(既定 1.2)。`volume=\"true\"` は気体の容器を広くする(既定 false。固体・液体の幅も粒子の層が入る幅を保つ)。`motion=\"false\"` で state の運動の印を消す(既定 true)。`states` は属性ではなく子の JSON に書く。\n\n要素の言語に従い日本語・英語で表示する。読み上げは最後の状態と保存される数を説明する。作者の `aria-label` があれば保つ。縦書きのスライドでも図は横書き。"
1095
1116
  },
1096
1117
  "m-pie": {
1097
1118
  "set": "standard",
@@ -1123,6 +1144,11 @@ export const PACK = {
1123
1144
  "row": "| `<m-score>` | 楽譜(五線譜)を 1 音・和音ずつ、または 1 小節ずつ出して音も鳴らす。ABC 記譜法で書く | 音符・和音・休符 1 つ=1 ステップ。by=\"measure\" なら 1 小節=1 ステップ(per-step=\"N\" なら N 小節。弱起の小節は次のステップに入る) | `{abc:str}` — write abc only; the build adds abcSvg, abcMap and renderers |",
1124
1145
  "entry": "### `<m-score>`\n\nData example (child `<script type=\"application/json\">`): `{\"abc\":\"X:1\\nM:4/4\\nL:1/4\\nQ:1/4=96\\nK:C\\nC D E F |]\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `by` | string | `\"note\"` | note(1 音・和音ずつ)\\| measure(1 小節ずつ) |\n| `names` | string | `\"none\"` | 符頭の下の名前:solfa(ドレミ)\\| abc \\| iroha(ハニホ)\\| none |\n| `per-step` | number | `1` | by=\\ |\n\n- `abc`:ABC 記譜法。`M:` 拍子、`L:` 基本の長さ、`Q:1/4=96` 速さ、`K:` 調、`[CEG]` 和音、`z` 休符、`-` タイ\n- `names`:符頭の下に `solfa`(ドレミ)・`abc`・`iroha`(ハニホ)。既定は `none`\n- `by=\"measure\"`:1 小節ずつ(音は小節の中で順に鳴る)\n- `per-step=\"N\"`:`by=\"measure\"` で N 小節を 1 ステップにする(既定 1)。ステップの長さは N 小節の長さそのまま\n- `by=\"note\"` は音の名前・高さを 1 つずつ見せるためのもので、各ステップは 1.2 秒以上になりリズムは保たれない。リズムを聞かせるときは `by=\"measure\"`。速い曲は `per-step` で 1 ステップが 1.2 秒以上になるように(弱起の小節は自動で次の小節とまとめる)"
1125
1146
  },
1147
+ "m-scroll": {
1148
+ "set": "tools",
1149
+ "row": "| `<m-scroll>` | A tall figure (SVG, HTML) in a fixed-height frame, scrolled to set places by step; viewers may scroll it | largest child data-scroll-step | attributes only (no JSON child) |",
1150
+ "entry": "### `<m-scroll>`\n\nExample: `<m-scroll style=\"height:440px\" aria-label=\"年表\"><svg viewBox=\"0 0 1000 1300\" width=\"1000\" height=\"1300\">… <g data-scroll-step=\"1\">…</g> …</svg></m-scroll>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `margin` | number | `12` | px above target |\n\nFor a tall timeline, flow or code shown without splitting it.\n\nChild of `<m-scroll style=\"height:440px\" aria-label=\"name\">`: the figure.\n\n- `data-scroll-step=\"k\"` on a child: step k scrolls it to the top\n- Wheel, touch, ↑ ↓, PageUp/Down scroll the frame; ← → and Space move slides\n- A hand-scrolled place stays until the next step"
1151
+ },
1126
1152
  "m-seq": {
1127
1153
  "set": "stats",
1128
1154
  "row": "| `<m-seq>` | 観測を 1 つずつ加え、分布と数値が更新されていく様子を見せる(前の分布は薄く残す) | ceil((steps の数 − 1) / per-step) | `{xs:num[],steps:{dens:num[],readout?:object,mark?:num}[],digits?:object,markLabel?:str}` |",
@@ -1178,7 +1204,7 @@ export const PACK = {
1178
1204
  "extHead": "### `<{name}>`: extension for this part set (the part is described in §3)"
1179
1205
  },
1180
1206
  "ja": {
1181
- "common": "# AI への指示\n\n指示のバージョン:`ac7fb486`\n\n短い **Egatari のスライドと台本**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。スライドと台本は依頼された言語で書きます(どちらも同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、スライドは短くする(5〜8 枚)。指示に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか依頼しないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中もテキストはすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらずテキストを 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 出力は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を依頼されたら(長いものを 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の指示は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のあるスライドを渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` を変えない\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(スライドと台本の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo のセットがあるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- **R-caution** `.body` に注意は `<div class=\"caution\">…</div>`、警告は `class=\"caution warn\"`。ラベルは自動で付く。\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を追加する)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを追加する(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** パーツは一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っているセット)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字のカード・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点はファイル全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどのファイルでも使える標準のパーツ。§6 の後にセットの指示があれば、その種類の材料のパーツが追加される。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは依頼されたときだけ(3 人以上を依頼されても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ追加するか、言い換えを確認して(違えば修正して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の例の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを修正し、ほかは変えず、`id=\"…\"` と `{#…}` をすべて変えず(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 例\n\n小さな例(架空。形を見るためで、中身はコピーしない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかのセットの指示の最後にも例がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
1207
+ "common": "# AI への指示\n\n指示のバージョン:`2a06805c`\n\n短い **Egatari のスライドと台本**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。スライドと台本は依頼された言語で書きます(どちらも同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、スライドは短くする(5〜8 枚)。指示に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか依頼しないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中もテキストはすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらずテキストを 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 出力は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を依頼されたら(長いものを 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の指示は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のあるスライドを渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` を変えない\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(スライドと台本の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo のセットがあるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- **R-caution** `.body` に注意は `<div class=\"caution\">…</div>`、警告は `class=\"caution warn\"`。ラベルは自動で付く。\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を追加する)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで。表は、比べ方で見せ方を選ぶ。項目を 1 つずつ説明するなら行を話す順に出す。行列(縦に比べるもの、横に評価基準)や 2 本の軸の交差の表は、全体を見せてから注目する列・マスに印を付けるか、軸の列ごとに埋める。研究の位置づけの表では、本研究のマスに字で「本研究」と書く(色や太字だけで区別しない)。\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを追加する(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** パーツは一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っているセット)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字のカード・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点はファイル全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどのファイルでも使える標準のパーツ。§6 の後にセットの指示があれば、その種類の材料のパーツが追加される。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは依頼されたときだけ(3 人以上を依頼されても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ追加するか、言い換えを確認して(違えば修正して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の例の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを修正し、ほかは変えず、`id=\"…\"` と `{#…}` をすべて変えず(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 例\n\n小さな例(架空。形を見るためで、中身はコピーしない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかのセットの指示の最後にも例がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
1182
1208
  "request": "# 頼みたいこと\n\n*(A か B を埋め、もう一方は削除します。書かない項目は削除してかまいません)*\n\n**A. 新しく作る**\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:\n\n**B. 渡した資料と話し合いの内容で作る**\n\nこのチャットで渡した資料と、ここまでの話し合いの内容で、スライドと台本を作ってください。\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:",
1183
1209
  "sets": {
1184
1210
  "stats": "## パーツのセット:stats(統計の図)\n\nデータを見せる授業・発表向け。分布、箱ひげ図、ヒートマップ、観測が 1 つずつ加わって変わる分布を見せる。テーマは `default`。データの出どころと数(何人・何件)をスライドか台本に書き、本物らしく見えるデータを作らない(R-components)。\n\n- **軸のある図**(<!--part:m-hist-->`m-hist`・<!--/part--><!--part:m-boxplot-->`m-boxplot`・<!--/part--><!--part:m-seq-->`m-seq`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
@@ -1187,7 +1213,7 @@ export const PACK = {
1187
1213
  "ml": "## パーツのセット:ml(機械学習)\n\n機械学習の授業で、ニューラルネットの順伝播・分類の境界・損失の等高線と勾配降下法などを 1 ステップずつ見せるときに使う。重み・確率・反復の点などの値は、実際に計算したスクリプトの出力を書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1188
1214
  "math": "## パーツのセット:math(算数・数学)\n\n算数・数学の教材向け。筆算、数直線、テープ図、パラメータで形の変わる関数を見せる。テーマは `default`。\n\n- **軸のある図**(<!--part:m-sweep-->`m-sweep`・<!--/part--><!--part:m-curves-->`m-curves`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-sweep-->### 例:算数・数学(英語・default テーマ・m-sweep)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part-->\n\n<!--part:m-sweep-->ステップの数え方:値が 3 つの `m-sweep` はステップ 1〜2。<!--/part-->",
1189
1215
  "maps": "## パーツのセット:maps(地図)\n\n地図を使う授業・案内向け(地理・歴史・地域の案内)。日本地図か世界地図を使う。テーマは `default`。数字(人口・面積・生産量など)には、何年の・どこの数字かをスライドか台本に書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1190
- "kokugo": "## パーツのセット:kokugo(国語)\n\n国語(漢文・古文・現代文)の教材向け。テーマは `kokugo`。台本では、難しい語や名前に読み `{表示|読み}` を付ける(R-reading)。\n\n- **縦書きのスライド:**`<section class=\"slide layout-tate\">` でスライド全体を縦書きにする。`<h2>` は右端の縦 1 列(全角でおよそ 14 字。折り返さない)、本文は右から左へ列を重ね、結論の行は左端の縦 1 列(およそ 19 字)。本文は 2 つの列の間に収める(重なれば品質チェックが指摘する)。本文の中のパーツ・図・表は横書きのまま置かれるので、パーツの縦書きの指定を使う(<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->・<!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->。`m-kanbun` はいつも縦書き<!--/part-->)\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### 例:国語(kokugo テーマ・m-kanbun)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->ステップの数え方:`m-kanbun` は訓点(ステップ 1)、読む順は句ごとに 1 ステップ、最後に書き下し文。`[n]` は句ごとに書く。<!--/part-->",
1216
+ "kokugo": "## パーツのセット:kokugo(国語)\n\n国語(漢文・古文・現代文)の教材向け。テーマは `kokugo`。台本では、難しい語や名前に読み `{表示|読み}` を付ける(R-reading)。\n\n- **縦書きのスライド:**`<section class=\"slide layout-tate\">` でスライド全体を縦書きにする。`<h2>` は右端の縦 1 列(全角でおよそ 14 字。折り返さない)、本文は右から左へ列を重ね、結論の行は左端の縦 1 列(およそ 19 字)。本文は 2 つの列の間に収める(重なれば品質チェックが指摘する)。本文の中のパーツ・図・表は横書きのまま置かれるので、パーツの縦書きの指定を使う(<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->・<!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->。`m-kanbun` はいつも縦書き<!--/part-->)。縦のスライドの本文は 15 列まで(1 列およそ 18 字、合わせて 270 字ほど)。18 字を超える項目は 2 列になる。収まらなければスライドを分ける。\n- **縦と横をそろえる:**1 つの教材では縦か横にそろえる。古文・漢文・現代文の本文を読む教材は、説明のスライドも縦にそろえる。横書きでしか置けない図や表(流れ図など)のスライドだけを横にし、なるべくまとめて置き、縦と横を交互にしない\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### 例:国語(kokugo テーマ・m-kanbun)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->ステップの数え方:`m-kanbun` は訓点(ステップ 1)、読む順は句ごとに 1 ステップ、最後に書き下し文。`[n]` は句ごとに書く。<!--/part-->",
1191
1217
  "english": "## パーツのセット:english(英語:外国語としての英語)\n\n日本語で教える英語の教材向け。英文の構造(S V O C M・句と節・何が何を修飾するか)を和訳と一緒に見せる。テーマは `default`。英文は授業で読むとおりに書き、日本語の台本は短くする。英文の例を読み上げるのは、教材に要るときだけ。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1192
1218
  "music": "## パーツのセット:music(音楽:音の高さ・音階・和音)\n\n音楽の教材向け。音の高さ・音階・音程・和音を、ピアノの鍵盤で見せる。テーマは `default`。音の名前は授業での呼び方(ドレミ・C D E・ハニホ)にそろえ、スライドと台本で同じにする。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
1193
1219
  "business": "## パーツのセット:business(ビジネス)\n\nビジネスの報告・提案の資料向け(KPI・ポジショニングマップ・市場規模・お金とモノの流れ)。テーマは `sumi`。架空の数字の断り(R-components)は `note` か表紙に書き、スライドの間で数字をそろえる(内訳を足すと書いた合計になる)。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kpi-->### 例:ビジネス(日本語・sumi テーマ・m-kpi)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>導入から 3 か月の結果</h2>\n <div class=\"body\">\n <p class=\"note muted\">新しい仕分けの手順を入れた 3 拠点の合計(数字は架空)</p>\n <m-kpi style=\"height:330px\" aria-label=\"1 日の出荷 1,240 件、誤配率 0.8%、残業 32% 減\">\n <script type=\"application/json\">{\"cards\": [\n {\"label\": \"1 日の出荷\", \"value\": 1240, \"unit\": \"件\", \"from\": 980, \"delta\": {\"dir\": \"up\", \"text\": \"導入前から 260 件\"}},\n {\"label\": \"誤配率\", \"value\": 0.8, \"digits\": 1, \"unit\": \"%\", \"from\": 2.1, \"tone\": \"emph\", \"delta\": {\"dir\": \"down\", \"text\": \"導入前は 2.1%\", \"good\": true}},\n {\"label\": \"残業時間\", \"value\": 32, \"unit\": \"%\", \"prefix\": \"−\", \"tone\": \"accent2\", \"note\": \"1 人あたり、月の平均\"}\n ]}</script>\n </m-kpi>\n </div>\n <div class=\"concl\"><span>→ 件数が増えても、誤りと残業は減った</span></div>\n</section>\n```\n\n```narration.md\n## 導入から 3 か月の結果\n[0] 新しい仕分けの手順を入れた、3 つの拠点の合計です。\n[1] 1 日の出荷は 1,240 件になり、導入前より 260 件増えました。\n[2] 誤配率は 2.1% から 0.8% に下がりました。件数が増えても、誤りは減っています。\n[3] 残業時間も、1 人あたり 32% 減っています。\n[concl] 件数が増えても、誤りと残業は減りました。\n```<!--/part-->\n\n<!--part:m-kpi-->ステップの数え方:カードが 3 枚の `m-kpi` はステップ 1〜3。<!--/part-->",
@@ -1208,14 +1234,14 @@ export const PACK = {
1208
1234
  },
1209
1235
  "m-boxplot": {
1210
1236
  "set": "stats",
1211
- "row": "| `<m-boxplot>` | 箱ひげ図。値を並べ、中央値・四分位数を求める手順のとおりに組み立てる。群を並べて比べる | steps(既定):点 → 中央値 → 第1・第3四分位数 → 箱 → ひげ。whole:群 1 つ = 1 ステップ | `{groups:[{label?,tone?,values?:num[],five?:num[]} (values or five),…]}` — groups [{label, tone, values}] か [{label, five: [最小値, 第1四分位数, 中央値, 第3四分位数, 最大値]}]。軸は属性に書く(xr=\"[0,20]\" xl=\"…\") |",
1212
- "entry": "### `<m-boxplot>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"groups\":[{\"label\":\"1 組\",\"values\":[3,5,6,7,8,9,10,12,13,15,18]}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(横向きの箱、値の軸が横)か v(縦向き) |\n| `xr` | json | `null` | 横軸の範囲 |\n| `yr` | json | `null` | 縦軸の範囲 |\n| `xt` | json | `null` | 横軸の目盛り |\n| `yt` | json | `null` | 縦軸の目盛り |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `method` | string | `\"jp\"` | 四分位数の求め方:jp(教科書)・inc・exc(表計算の QUARTILE.INC / EXC) |\n| `outliers` | string | `\"off\"` | on:1.5×四分位範囲の外を外れ値(点)にし、ひげはその内側まで |\n| `dots` | string | `\"off\"` | on:値の点を箱の下に並べる(build=\\ |\n| `build` | string | `\"steps\"` | steps(求める手順のとおり)か whole(群 1 つ = 1 ステップ) |\n| `unit` | string | `\"\"` | 表示する値の後ろに付ける単位 |\n| `digits` | number | | 表示する値の小数桁(書かなければ値の桁+1 まで) |\n\n値の代わりに `\"five\": [最小値, 第1四分位数, 中央値, 第3四分位数, 最大値]` も書ける。\n\n- `orient`:`h`(既定)か `v`\n- `method`:`jp`(既定、教科書)・`inc`・`exc`(表計算の QUARTILE.INC / EXC)\n- `outliers=\"on\"`:1.5×四分位範囲の外を外れ値の点に\n- `dots=\"on\"`:値の点を並べる\n- 群が 1 つの steps では、並べた値の行も出る",
1237
+ "row": "| `<m-boxplot>` | 箱ひげ図。値を並べ、中央値・四分位数を求める手順のとおりに組み立てる。群を並べて比べる | steps(既定):点 → 中央値 → 第 1・第 3 四分位数 → 箱 → ひげ。whole:群 1 つ = 1 ステップ | `{groups:[{label?,tone?,values?:num[],five?:num[]} (values or five),…]}` — groups [{label, tone, values}] か [{label, five: [最小値, 第1四分位数, 中央値, 第3四分位数, 最大値]}]。軸は属性に書く(xr=\"[0,20]\" xl=\"…\") |",
1238
+ "entry": "### `<m-boxplot>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"groups\":[{\"label\":\"1 組\",\"values\":[3,5,6,7,8,9,10,12,13,15,18]}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(横向きの箱、値の軸が横)か v(縦向き) |\n| `xr` | json | `null` | 横軸の範囲 |\n| `yr` | json | `null` | 縦軸の範囲 |\n| `xt` | json | `null` | 横軸の目盛り |\n| `yt` | json | `null` | 縦軸の目盛り |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `method` | string | `\"jp\"` | 四分位数の求め方:jp(教科書)・inc・exc(表計算の QUARTILE.INC / EXC) |\n| `outliers` | string | `\"off\"` | on:1.5×四分位範囲の外を外れ値(点)にし、ひげはその内側まで |\n| `dots` | string | `\"off\"` | on:値の点を箱の下に並べる(build=\\ |\n| `build` | string | `\"steps\"` | steps(求める手順のとおり)か whole(群 1 つ = 1 ステップ) |\n| `unit` | string | `\"\"` | 表示する値の後ろに付ける単位 |\n| `digits` | number | | 表示する値の小数桁(書かなければ値の桁+1 まで) |\n\n値の代わりに `\"five\": [最小値, 第 1 四分位数, 中央値, 第 3 四分位数, 最大値]` も書ける。\n\n- `orient`:`h`(既定)か `v`\n- `method`:`jp`(既定、教科書)・`inc`・`exc`(表計算の QUARTILE.INC / EXC)\n- `outliers=\"on\"`:1.5×四分位範囲の外を外れ値の点に\n- `dots=\"on\"`:値の点を並べる\n- 群が 1 つの steps では、並べた値の行も出る",
1213
1239
  "sup": true
1214
1240
  },
1215
1241
  "m-callout": {
1216
1242
  "set": "tools",
1217
1243
  "row": "| `<m-callout>` | 画面の画像に番号の丸を置き、引き出し線で横の説明につなぐ。ステップごとに 1 つずつ(研修・手引き・操作の説明) | 説明の step の最大(既定は説明 1 つ = 1 ステップ。per-step で n 個ずつ) | `{callouts:{x:num,y:num,text:str,box?:[num,num,num,num],step?,at?}[]}` |",
1218
- "entry": "### `<m-callout>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"callouts\":[{\"x\":0.12,\"y\":0.08,\"text\":\"メニューを開く\"},{\"x\":0.7,\"y\":0.62,\"text\":\"「送る」を押す\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `side` | string | `\"right\"` | 説明を置く側:right・left・both(both は画像の左半分の丸を左に、右半分の丸を右に) |\n| `label-width` | number | `0.32` | 説明の列の幅(要素の幅に対する割合。both なら片側の幅) |\n| `per-step` | number | `1` | 1 ステップに出す説明の数(0 = 全部をステップ 1 で) |\n| `size` | number | `28` | 説明の字の大きさ(px、24 以上) |\n\n研修・職員向けの手引き・アプリの使い方で、画面のどこをどの順に操作するかを 1 つずつ見せる。\n\n画像は子の `<img src=\"screens/apply.png\" alt=\"…\" width=\"1280\" height=\"800\">`(作業フォルダの画像。ビルドのときに教材に埋め込む)。\n\n- **画面の画像に本当の個人の情報を写さない**(名前・番号・住民や患者の記録など)。架空のデータで画面を作るか、ぼかしてから使う\n- `alt`(何の画面か)・`width`・`height`(画像の px)は必ず書く(ないと data)。1 MiB を超える画像は size\n\n- callout:`x`・`y`(丸の位置。画像の幅と高さに対する割合 0〜1)、`text`(説明。`\\n` で改行)、`box`(`[x, y, 幅, 高さ]`、同じ割合。そのステップの間だけ操作する所を `--emph` の枠で囲む)、`step`、`at`\n- 説明は画像の横(`side`:`right`(既定)・`left`・`both`)に、丸の上下の順に並ぶ。重なれば下へずらし、引き出し線どうしは交わらない\n\n注意\n\n- 1 枚に 6 つくらいまで。手順が多ければ画面を分ける\n- 丸が操作する所を隠さず、引き出し線がその上を通らないよう、x・y はボタンや欄の、説明の側の端に置く(side=\"right\" なら右の端)"
1244
+ "entry": "### `<m-callout>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"callouts\":[{\"x\":0.12,\"y\":0.08,\"text\":\"メニューを開く\"},{\"x\":0.7,\"y\":0.62,\"text\":\"「送る」を押す\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `side` | string | `\"right\"` | 説明を置く側:right・left・both(both は画像の左半分の丸を左に、右半分の丸を右に) |\n| `label-width` | number | `0.32` | 説明の列の幅(要素の幅に対する割合。both なら片側の幅) |\n| `per-step` | number | `1` | 1 ステップに出す説明の数(0 = 全部をステップ 1 で) |\n| `size` | number | `28` | 説明の字の大きさ(px、24 以上) |\n\n研修・職員向けの手引き・アプリの使い方で、画面のどこをどの順に操作するかを 1 つずつ見せる。\n\n画像は子の `<img src=\"screens/apply.png\" alt=\"…\" width=\"1280\" height=\"800\">`(作業フォルダの画像。ビルドのときにファイルに埋め込む)。\n\n- **画面の画像に本当の個人の情報を写さない**(名前・番号・住民や患者の記録など)。架空のデータで画面を作るか、ぼかしてから使う\n- `alt`(何の画面か)・`width`・`height`(画像の px)は必ず書く(ないと data)。1 MiB を超える画像は size\n\n- callout:`x`・`y`(丸の位置。画像の幅と高さに対する割合 0〜1)、`text`(説明。`\\n` で改行)、`box`(`[x, y, 幅, 高さ]`、同じ割合。そのステップの間だけ操作する所を `--emph` の枠で囲む)、`step`、`at`\n- 説明は画像の横(`side`:`right`(既定)・`left`・`both`)に、丸の上下の順に並ぶ。重なれば下へずらし、引き出し線どうしは交わらない\n\n注意\n\n- 1 枚に 6 つくらいまで。手順が多ければ画面を分ける\n- 丸が操作する所を隠さず、引き出し線がその上を通らないよう、x・y はボタンや欄の、説明の側の端に置く(side=\"right\" なら右の端)"
1219
1245
  },
1220
1246
  "m-cards": {
1221
1247
  "set": "standard",
@@ -1353,6 +1379,12 @@ export const PACK = {
1353
1379
  "row": "| `<m-market>` | 市場規模の入れ子の円(TAM / SAM / SOM)。外の円から 1 つずつ、前の円の大きさから縮んで現れる | rings の数 | `{rings:{key?:str,value:num,basis?:str,tone?}[]}` |",
1354
1380
  "entry": "### `<m-market>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"rings\":[{\"key\":\"TAM\",\"value\":3000,\"basis\":\"国内の…\"},{\"key\":\"SAM\",\"value\":600,\"basis\":\"…\"},{\"key\":\"SOM\",\"value\":30,\"basis\":\"…\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける) |\n| `digits` | number | `0` | 値の小数桁 |\n| `scale` | string | `\"fixed\"` | fixed(決まった比)か area(面積を値に比例) |\n| `layout` | string | `\"bottom\"` | bottom(下端をそろえる)か center(同心) |\n| `count` | bool | `false` | 値の数字を縮みに合わせて数え上げる |\n\n市場の大きさを、全体(TAM)から手の届く範囲(SAM)、最初に取る範囲(SOM)へ絞り込んで見せるときに使う。\n\n子の JSON の並び:外から順。\n\n- ステップ j で j 番目の円が、1 つ外の円の大きさと位置から縮んで現れる。前の円はそのまま残る\n- 名前(`key`)・値・根拠(`basis`、何を数えたか)は円の右に書き、円の中の点から引き出し線で結ぶ。値は `digits` 桁で 3 桁ごとにカンマを入れ、`unit` を後ろに付ける\n- `scale=\"fixed\"`(既定)は見やすい決まった比(1・0.64・0.34・0.16)。`scale=\"area\"` は面積を値に比例させる(小さすぎる円は最も大きい円の 0.14 倍の半径にする)。面積に比例させると SOM がほとんど見えないことが多いので、既定は fixed にして値を字で示す\n- `layout=\"bottom\"`(既定)は円の下端をそろえ、`layout=\"center\"` は同心にする\n- 色は外の 2 つが `--term`、内の円が `--emph`(`tone` で変えられる:`term`・`emph`・`muted`・`accent2`・`series-1..4`。ほかの値は `term`)\n- `dur`:1 つの円が縮んで現れる秒数(既定 0.9)。数字はそのあと 0.35 秒で出る\n- 値の数字は円が縮みきってから出す。`count=\"true\"` なら縮みに合わせて数え上げる"
1355
1381
  },
1382
+ "m-matrix": {
1383
+ "set": "standard",
1384
+ "row": "| `<m-matrix>` | 研究の位置づけの表。2 本の軸の交差の表(マスに研究の名前、本研究のマスを枠で結論の 1 文と、空きマスは — と注、下に設計の行)か、研究 × 要素の表(✓ △ × や短い字、列の上に要件の出どころ)を、ステップで埋める | cross は 軸と空の表 → 従来の研究(と設計の行の従来)→ 本研究(と設計の行の本研究)→ 注(order=\"whole\" で 1)。attributes は 列・行ごと(order)+本研究の枠 | `{kind?:\"cross\"\\|\"attributes\",rows?:object\\|any[],cols?:object\\|any[],cells?:(any[]\\|object)[][],marks?:{mark:str,text:str}[],design?:{cols:str[],rows:{label?,self?:bool,cells:str[]}[]},self?:str}` — cross:rows・cols は {\"axis\", \"values\"}、cells[r][c] は研究の名前の並び・{\"self\": true か \"結論\"}・{\"none\": \"理由\"}、design は {\"cols\", \"rows\"}。attributes:cols は名前か {\"name\", \"source\"}、rows は {\"label\", \"cells\", \"self\"?} |",
1385
+ "entry": "### `<m-matrix>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"kind\":\"cross\",\"rows\":{\"axis\":\"評価基準\",\"values\":[\"予測誤差\",\"ベイズリスク\"]},\"cols\":{\"axis\":\"予測の形\",\"values\":[\"点予測\",\"分布予測\"]},\"cells\":[[[\"[1]\",\"[2]\"],[\"[3]\"]],[{\"none\":\"自明\"},{\"self\":true}]]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `order` | string | `\"\"` | 出し方:cross は build(既定)・whole、attributes は whole(既定)・col・row |\n| `size` | number | `28` | 字の大きさ(px、24 以上。入らなければ 24 まで縮める) |\n\n`kind`:`cross`(既定、2 本の軸の交差の表)・`attributes`(行に研究、列に要素の表)。子の JSON に書く。\n\n- cross:`rows`・`cols` は `{\"axis\": \"軸の名前\", \"values\": [値, …]}`(どちらも 2〜4 個)。`cells[r][c]` は研究の名前の並び(引用番号か「著者(年)」、1〜3 本)、本研究のマスは `{\"self\": true}`、空きマスは `{\"none\": \"空きの理由\"}`(「—」と注の番号、表の下に注)。3 本目の軸は名前に印(† など)を付け、`marks: [{\"mark\": \"†\", \"text\": \"意味\"}]`\n - `{\"self\": \"分かったことの 1 文\"}` で本研究のマスに結論も書く(40 字まで)\n - `design: {\"cols\": [2〜3 個], \"rows\": [{\"label\", \"cells\"}, {\"self\": true, \"cells\"}]}`:表の下の設計の行(従来と本研究のデータ・識別の設計と、比べられるようになったこと)\n- attributes:`cols` は要素の名前か `{\"name\", \"source\"}`(要件が来た応用の必要)、`rows` は `{\"label\", \"cells\", \"self\"}`(本研究を先頭に)。空のマスは「—」。記号の意味は `marks`(● 満たす・× 満たさない・— 記載なし)\n- 本研究は「本研究」と字で書いて `--emph` の枠で囲む(色だけで分けない)\n\n型の選び方(新しさの在りか):問題の記述(目的・設定・入力・出力・評価基準)なら cross(問いと対象なら結論の 1 文、観測・識別なら design も)、応用の要件を満たす手法なら attributes に出どころと ● × —。答えの値や見方が新しいなら、この表にしない。どれも最も近い従来研究 1〜2 件を表の中で名指しする\n\n注意\n\n- 交差の表の軸は 2〜4 個ずつ。それより多いときは軸の値をまとめるか、attributes の表にする\n- マスの研究は主なものを 3 本まで。全部の文献の一覧は参考文献のスライドに置く\n- 要件を本研究に有利な語で作らない(本研究だけが全部 ● の表は、選び方しだいで必ず作れる)",
1386
+ "paidOnly": true
1387
+ },
1356
1388
  "m-menu": {
1357
1389
  "set": "standard",
1358
1390
  "row": "| `<m-menu>` | スライドへのリンクのカードを格子に並べる(目次・単元の選び方)。カードは <a href=\"#<スライドの id>\">、行ったスライドに「見た」の印 | ceil(カードの数 / per-step)(既定の per-step=\"0\" なら 0:初めから全部) | 子の `<a href>`(JSON ではない) |",
@@ -1376,12 +1408,12 @@ export const PACK = {
1376
1408
  "m-orbit": {
1377
1409
  "set": "science",
1378
1410
  "row": "| `<m-orbit>` | 月の満ち欠け(金星の満ち欠け)。北極の上から見た図と地球から見た形を並べ、月を位置から位置へ動かす。形は位置から計算する | 動く先の数(既定は 8 つの位置を新月から 1 周 = 8 ステップ。visit で決める) | `{positions?:int,start?:int,visit?:int[],labels?:(str\\|null)[],notes?:(str\\|null)[],eclipse?:bool}` |",
1379
- "entry": "### `<m-orbit>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"positions\":8,\"visit\":[1,2,3,4,5,6,7,0]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `mode` | string | `\"moon\"` | moon(月の満ち欠け)か venus(金星の満ち欠け) |\n| `hemisphere` | string | `\"north\"` | north(北半球から見た形。満ちていく月は右が光る)か south(南半球。左右が逆) |\n| `sun` | string | `\"right\"` | 月の図で太陽の光が来る側(right か left) |\n| `earth` | number | `0.2` | 地球の半径(月の軌道の半径に対する比。金星の図では地球の軌道に対する比の半分) |\n| `moon` | number | `0.5` | 月の半径(地球の半径に対する比。実際の月は 0.27。金星の図では金星をこの 1.4 倍に) |\n| `observer` | bool | `true` | 月の図で、地球の上の人と、月を見る向きを描く |\n| `size` | number | `28` | 地球から見た形の名前の字の大きさ(px。24 以上) |\n\n月の満ち欠け(中学 3 年・地学基礎)を見せるときに使う。左は北極の上から見た図で、太陽の光が片側から来て、地球のまわりの軌道の上に月がある。月の光っている半分は、いつも太陽の側を向いている。右は、地球から見たときの月の形。2 つの図は同じ位置で動く。\n\n**大きさと距離は実際の比ではない**(教えるための図)。実際は、地球と月の距離は地球の半径のおよそ 60 倍、月の半径は地球のおよそ 0.27 倍。比は `earth` と `moon` で変えられる。\n\n子の JSON(中身は省ける。`{}` で既定の 1 周):`{\"positions\": 8, \"start\": 0, \"visit\": [1, 2, 3, 4, 5, 6, 7, 0], \"labels\": [...], \"notes\": [...], \"eclipse\": false}`(どれも省ける)。\n\n- `positions`:軌道の上の位置の数(4〜24、既定 8)。位置 0 が新月(月が太陽の側)、そこから反時計回りに等しい間隔\n- `start`:ステップ 0 の位置(既定 0)\n- `visit`:ステップごとに動く先の位置。月はいつも反時計回りに進む(2 つ先なら 2 つ分動く)。既定は `start` の次から 1 周して `start` へ戻る\n- `labels`:位置ごとの名前(`null` は既定のまま、`\"\"` は名前なし)。既定は、新月・三日月・上弦の月・満月・下弦の月(英語は new moon, waxing crescent, first quarter, full moon, last quarter)。8 つの位置では、残りの 3 つは名前なし(教科書と同じ)。十三夜などは `labels` で付ける\n- `notes`:位置ごとの説明(右の図の名前の下)。既定は、地球の上の人がその月を見る時刻と空の向き(「夕方・南西の空」など。下)\n- `eclipse`:`true` なら、新月と満月の位置で、太陽・月・地球がそろったときの影を描き、名前に(日食)(月食)を添える\n\n属性:\n\n- `mode`:`moon`(既定)か `venus`(金星の満ち欠け。下)\n- `hemisphere`:`north`(既定。満ちていく月は右側が光る)か `south`(左右が逆)\n- `sun`:太陽の光が来る側(`right` 既定か `left`)。月の図だけ\n- `earth`:地球の半径(月の軌道の半径に対する比、既定 0.2)。`moon`:月の半径(地球の半径に対する比、既定 0.5)\n- `observer`:地球の上の人と、月を見る向きの線(既定 true)\n- `size`:右の図の名前の字の大きさ(既定 28px)。`dur`:となりの位置へ動く秒数(既定 1.2)\n\n地球の上の人の時刻:月が夜の側にあるとき(上弦から下弦まで)は、月が南の空にいちばん高く上る時刻(上弦は夕方、満月は真夜中、下弦は明け方)。三日月のように夕方の側にある月は日の入り、明け方の側にある月は日の出、新月は正午。人はステップの間に、地球が回る向きに動く。空の向きは、人の真上から月への角を 45° ごとに名前にしたもの(南、南西、西…。南半球では北が基準)。教科書と言い方を合わせたいときは `notes` で書く。\n\n`mode=\"venus\"`:太陽を中心に、金星と地球の軌道を描く。地球は下に止めて、金星の位置を外合(太陽の向こう側)から反時計回りに `positions` 個置く(8 つなら位置 3 が東方最大離角に近い「よいの明星」、位置 5 が西方最大離角に近い「明けの明星」)。右の図は地球から見た金星の形で、大きさは地球からの距離に反比例する(地球に近いほど大きく、細く欠ける)。説明は「夕方・西の空」「明け方・東の空」、太陽に近い位置では「太陽に近くて見えない」。軌道の比は実際の値(金星 0.723)。\n\n縦書きの教材でも、横書きの 1 つの図として置く。"
1411
+ "entry": "### `<m-orbit>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"positions\":8,\"visit\":[1,2,3,4,5,6,7,0]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `mode` | string | `\"moon\"` | moon(月の満ち欠け)か venus(金星の満ち欠け) |\n| `hemisphere` | string | `\"north\"` | north(北半球から見た形。満ちていく月は右が光る)か south(南半球。左右が逆) |\n| `sun` | string | `\"right\"` | 月の図で太陽の光が来る側(right か left) |\n| `earth` | number | `0.2` | 地球の半径(月の軌道の半径に対する比。金星の図では地球の軌道に対する比の半分) |\n| `moon` | number | `0.5` | 月の半径(地球の半径に対する比。実際の月は 0.27。金星の図では金星をこの 1.4 倍に) |\n| `observer` | bool | `true` | 月の図で、地球の上の人と、月を見る向きを描く |\n| `size` | number | `28` | 地球から見た形の名前の字の大きさ(px。24 以上) |\n\n月の満ち欠け(中学 3 年・地学基礎)を見せるときに使う。左は北極の上から見た図で、太陽の光が片側から来て、地球のまわりの軌道の上に月がある。月の光っている半分は、いつも太陽の側を向いている。右は、地球から見たときの月の形。2 つの図は同じ位置で動く。\n\n**大きさと距離は実際の比ではない**(教えるための図)。実際は、地球と月の距離は地球の半径のおよそ 60 倍、月の半径は地球のおよそ 0.27 倍。比は `earth` と `moon` で変えられる。\n\n子の JSON(中身は省ける。`{}` で既定の 1 周):`{\"positions\": 8, \"start\": 0, \"visit\": [1, 2, 3, 4, 5, 6, 7, 0], \"labels\": [...], \"notes\": [...], \"eclipse\": false}`(どれも省ける)。\n\n- `positions`:軌道の上の位置の数(4〜24、既定 8)。位置 0 が新月(月が太陽の側)、そこから反時計回りに等しい間隔\n- `start`:ステップ 0 の位置(既定 0)\n- `visit`:ステップごとに動く先の位置。月はいつも反時計回りに進む(2 つ先なら 2 つ分動く)。既定は `start` の次から 1 周して `start` へ戻る\n- `labels`:位置ごとの名前(`null` は既定のまま、`\"\"` は名前なし)。既定は、新月・三日月・上弦の月・満月・下弦の月(英語は new moon, waxing crescent, first quarter, full moon, last quarter)。8 つの位置では、残りの 3 つは名前なし(教科書と同じ)。十三夜などは `labels` で付ける\n- `notes`:位置ごとの説明(右の図の名前の下)。既定は、地球の上の人がその月を見る時刻と空の向き(「夕方・南西の空」など。下)\n- `eclipse`:`true` なら、新月と満月の位置で、太陽・月・地球がそろったときの影を描き、名前に(日食)(月食)を添える\n\n属性:\n\n- `mode`:`moon`(既定)か `venus`(金星の満ち欠け。下)\n- `hemisphere`:`north`(既定。満ちていく月は右側が光る)か `south`(左右が逆)\n- `sun`:太陽の光が来る側(`right` 既定か `left`)。月の図だけ\n- `earth`:地球の半径(月の軌道の半径に対する比、既定 0.2)。`moon`:月の半径(地球の半径に対する比、既定 0.5)\n- `observer`:地球の上の人と、月を見る向きの線(既定 true)\n- `size`:右の図の名前の字の大きさ(既定 28px)。`dur`:となりの位置へ動く秒数(既定 1.2)\n\n地球の上の人の時刻:月が夜の側にあるとき(上弦から下弦まで)は、月が南の空にいちばん高く上る時刻(上弦は夕方、満月は真夜中、下弦は明け方)。三日月のように夕方の側にある月は日の入り、明け方の側にある月は日の出、新月は正午。人はステップの間に、地球が回る向きに動く。空の向きは、人の真上から月への角を 45° ごとに名前にしたもの(南、南西、西…。南半球では北が基準)。教科書と言い方を合わせたいときは `notes` で書く。\n\n`mode=\"venus\"`:太陽を中心に、金星と地球の軌道を描く。地球は下に止めて、金星の位置を外合(太陽の向こう側)から反時計回りに `positions` 個置く(8 つなら位置 3 が東方最大離角に近い「よいの明星」、位置 5 が西方最大離角に近い「明けの明星」)。右の図は地球から見た金星の形で、大きさは地球からの距離に反比例する(地球に近いほど大きく、細く欠ける)。説明は「夕方・西の空」「明け方・東の空」、太陽に近い位置では「太陽に近くて見えない」。軌道の比は実際の値(金星 0.723)。\n\n縦書きのスライドでも、横書きの 1 つの図として置く。"
1380
1412
  },
1381
1413
  "m-particles": {
1382
1414
  "set": "science",
1383
1415
  "row": "| `<m-particles>` | 状態変化の粒子の並び方と間隔、化学変化で保存される原子の数を見せる | state は states の数 − 1(既定 2)。reaction は反応前→原子に分かれる→反応後の 3 ステップ | `{states?:(\"solid\"\\|\"liquid\"\\|\"gas\")[],substance?:str,labels?:(str\\|null)[]\\|{before?:str,apart?:str,after?:str,atoms?:str},reactants?:{formula:str,n:int,shape?:\"linear\"\\|\"bent\"\\|\"trigonal\"\\|\"tetrahedral\"\\|\"chain\"}[],products?:{formula:str,n:int,shape?:\"linear\"\\|\"bent\"\\|\"trigonal\"\\|\"tetrahedral\"\\|\"chain\"}[]}` |",
1384
- "entry": "### `<m-particles>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `mode` | string | `\"state\"` | state(状態変化)か reaction(化学変化) |\n| `count` | number | `16` | 状態変化で描く粒子の数(6〜30 の整数。数と大きさは一定) |\n| `size` | number | `28` | 名前・式の字の大きさ(px。24 以上) |\n| `volume` | bool | `false` | 状態に合わせて容器の幅を変える(気体は広い) |\n| `motion` | bool | `true` | 状態変化の粒子に静止した運動の印を付ける |\n\n中学 1〜2 年の理科・化学基礎で、状態変化と化学変化を粒子のモデルで説明するときに使う。高さ 440px、幅 1000px 以上を目安に置く。狭くて入らないときは `ctx.report(\"size\", …)` で知らせる。\n\n`mode=\"state\"`(既定):1 つの容器の中で、粒子が固体・液体・気体の並び方へ移る。粒子の数と半径(19px)は途中でも一定。固体は床の上の規則正しい格子(16 個なら 4×4、割り切れない行は中央寄せ)。液体は固体より広く低い層で、床の上から不規則に積む。粒子は重ならず、近い粒子同士が接する。気体は格子を使わず、容器全体に十分な間隔を空けて散らす。振動の印・短い矢印・長い矢印で運動を示すので、静止画でも比較できる。液体の矢印は粒子の縁から約 18px、気体は 24px 伸ばし、同じ線の太さで描く。矢印は粒子の縁から外を向き、他の粒子にも容器の枠にも重ねない。密に接した内部の粒子で矢印が収まらないときは、その矢印を省く。\n\n子の JSON は省略できる。例:\n\n```json\n{\"states\": [\"solid\", \"liquid\", \"gas\"], \"substance\": \"水\", \"labels\": [\"固体(氷)\", null, null]}\n```\n\n- `states`:1 個以上の状態名(`solid`・`liquid`・`gas`)。並び順に移る。逆順や固体↔気体も使える。1 個ならステップなし\n- `substance`:容器の上に出す物質名(省略可)\n- `labels`:各状態の表示名。`null` は既定の固体・液体・気体、`\"\"` は名前なし。英語の教材では Solid・Liquid・Gas\n- ステップ 0 は容器の下に最初の状態名だけを出す。ステップ 1 以降は「液体 → 気体(沸騰)」のように、出発点・到着点・変化名を 1 行で出す。英語は `Liquid → Gas (boiling)`\n- 変化の名前は状態の組から決める(融解・沸騰・凝固・凝縮・昇華)。英語は melting・boiling・freezing・condensation・sublimation\n\n`mode=\"reaction\"`:反応前の分子が現れる(1)、同じ原子が離れる(2)、生成物の分子へ集まる(3)。元素記号と色が原子の種類を表す。原子の半径は図に合わせて 24〜34px(全ステップで同じ)。ステップの見出しは図の上に置く。ステップ 2 は原子の間に少なくとも半径 1 個分の隙間を取り、中央に配置する。最後は左に「反応前」、右に「反応後」を付けて左右の分子の中央に矢印を置く。図全体を縦に中央寄せし、すぐ下に式と「原子の数:H 4 → 4、O 2 → 2」のような数の行を中央揃えで出す。最後は下側にステップ名を重ねない。左の反応前の図は比較のためのコピーで、別の原子が増えたことを意味しない。\n\n```html\n<m-particles mode=\"reaction\" style=\"height:440px\">\n <script type=\"application/json\">{\"reactants\": [{\"formula\": \"H2\", \"n\": 2}, {\"formula\": \"O2\", \"n\": 1}], \"products\": [{\"formula\": \"H2O\", \"n\": 2}]}</script>\n</m-particles>\n```\n\n- `reactants`・`products`:分子のリスト。`formula` は元素記号(大文字+任意の小文字)と正の整数の個数だけ。例:`H2O`・`FeS`・`CO2`。括弧・電荷・式の中の係数は使えない\n- `shape`:各分子に省略可。`\"linear\"`(直線)、`\"bent\"`(3 原子の折れ線)、`\"trigonal\"`(中心+周囲の 3 原子を平面に配置)、`\"tetrahedral\"`(中心+周囲の 4 原子を平面の十字に配置)、`\"chain\"`(コンパクトな列)で指定し、既定の形を上書きする。例:`{\"formula\":\"CO2\",\"n\":1,\"shape\":\"linear\"}`。省略時は既知の分子の形を使い、それ以外の 3 原子分子は直線、より大きい分子はコンパクトな列にする\n- `n`:分子の数(1〜24 の整数)。1 も明記する。式の表示では係数 1 を省き、原子の個数は下付きにする\n- 元素は初出順に最大 6 種、原子は片側で最大 24 個(保存される原子の総数)。上限超過や読めない式は `data` で知らせ、図の代わりに確認を求める文を出す\n- 原子数が一致しない式は変更しない。`data` で全元素の反応前→反応後の数を報告し、不一致を強調した数の表と左右の静止した比較図を描く。原子を作ったり消したりする誤った移動は描かない\n- `labels` は省略可のオブジェクト。`before`・`apart`・`after`・`atoms` で「反応前」「原子に分かれる」「反応後」「原子の数:」を上書きできる\n\n属性:`count` は state の粒子数(6〜30、既定 16)、`size` は名前と式の文字サイズ(24px 以上、既定 28)、`dur` は各ステップの秒数(既定 1.2)。`volume=\"true\"` は気体の容器を広くする(既定 false。固体・液体の幅も粒子の層が入る幅を保つ)。`motion=\"false\"` で state の運動の印を消す(既定 true)。`states` は属性ではなく子の JSON に書く。\n\n要素の言語に従い日本語・英語で表示する。読み上げは最後の状態と保存される数を説明する。作者の `aria-label` があれば保つ。縦書きの教材でも図は横書き。"
1416
+ "entry": "### `<m-particles>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `mode` | string | `\"state\"` | state(状態変化)か reaction(化学変化) |\n| `count` | number | `16` | 状態変化で描く粒子の数(6〜30 の整数。数と大きさは一定) |\n| `size` | number | `28` | 名前・式の字の大きさ(px。24 以上) |\n| `volume` | bool | `false` | 状態に合わせて容器の幅を変える(気体は広い) |\n| `motion` | bool | `true` | 状態変化の粒子に静止した運動の印を付ける |\n\n中学 1〜2 年の理科・化学基礎で、状態変化と化学変化を粒子のモデルで説明するときに使う。高さ 440px、幅 1000px 以上を目安に置く。狭くて入らないときは `ctx.report(\"size\", …)` で知らせる。\n\n`mode=\"state\"`(既定):1 つの容器の中で、粒子が固体・液体・気体の並び方へ移る。粒子の数と半径(19px)は途中でも一定。固体は床の上の規則正しい格子(16 個なら 4×4、割り切れない行は中央寄せ)。液体は固体より広く低い層で、床の上から不規則に積む。粒子は重ならず、近い粒子同士が接する。気体は格子を使わず、容器全体に十分な間隔を空けて散らす。振動の印・短い矢印・長い矢印で運動を示すので、静止画でも比較できる。液体の矢印は粒子の縁から約 18px、気体は 24px 伸ばし、同じ線の太さで描く。矢印は粒子の縁から外を向き、他の粒子にも容器の枠にも重ねない。密に接した内部の粒子で矢印が収まらないときは、その矢印を省く。\n\n子の JSON は省略できる。例:\n\n```json\n{\"states\": [\"solid\", \"liquid\", \"gas\"], \"substance\": \"水\", \"labels\": [\"固体(氷)\", null, null]}\n```\n\n- `states`:1 個以上の状態名(`solid`・`liquid`・`gas`)。並び順に移る。逆順や固体↔気体も使える。1 個ならステップなし\n- `substance`:容器の上に出す物質名(省略可)\n- `labels`:各状態の表示名。`null` は既定の固体・液体・気体、`\"\"` は名前なし。英語のスライドでは Solid・Liquid・Gas\n- ステップ 0 は容器の下に最初の状態名だけを出す。ステップ 1 以降は「液体 → 気体(沸騰)」のように、出発点・到着点・変化名を 1 行で出す。英語は `Liquid → Gas (boiling)`\n- 変化の名前は状態の組から決める(融解・沸騰・凝固・凝縮・昇華)。英語は melting・boiling・freezing・condensation・sublimation\n\n`mode=\"reaction\"`:反応前の分子が現れる(1)、同じ原子が離れる(2)、生成物の分子へ集まる(3)。元素記号と色が原子の種類を表す。原子の半径は図に合わせて 24〜34px(全ステップで同じ)。ステップの見出しは図の上に置く。ステップ 2 は原子の間に少なくとも半径 1 個分の隙間を取り、中央に配置する。最後は左に「反応前」、右に「反応後」を付けて左右の分子の中央に矢印を置く。図全体を縦に中央寄せし、すぐ下に式と「原子の数:H 4 → 4、O 2 → 2」のような数の行を中央揃えで出す。最後は下側にステップ名を重ねない。左の反応前の図は比較のためのコピーで、別の原子が増えたことを意味しない。\n\n```html\n<m-particles mode=\"reaction\" style=\"height:440px\">\n <script type=\"application/json\">{\"reactants\": [{\"formula\": \"H2\", \"n\": 2}, {\"formula\": \"O2\", \"n\": 1}], \"products\": [{\"formula\": \"H2O\", \"n\": 2}]}</script>\n</m-particles>\n```\n\n- `reactants`・`products`:分子のリスト。`formula` は元素記号(大文字+任意の小文字)と正の整数の個数だけ。例:`H2O`・`FeS`・`CO2`。括弧・電荷・式の中の係数は使えない\n- `shape`:各分子に省略可。`\"linear\"`(直線)、`\"bent\"`(3 原子の折れ線)、`\"trigonal\"`(中心+周囲の 3 原子を平面に配置)、`\"tetrahedral\"`(中心+周囲の 4 原子を平面の十字に配置)、`\"chain\"`(コンパクトな列)で指定し、既定の形を上書きする。例:`{\"formula\":\"CO2\",\"n\":1,\"shape\":\"linear\"}`。省略時は既知の分子の形を使い、それ以外の 3 原子分子は直線、より大きい分子はコンパクトな列にする\n- `n`:分子の数(1〜24 の整数)。1 も明記する。式の表示では係数 1 を省き、原子の個数は下付きにする\n- 元素は初出順に最大 6 種、原子は片側で最大 24 個(保存される原子の総数)。上限超過や読めない式は `data` で知らせ、図の代わりに確認を求める文を出す\n- 原子数が一致しない式は変更しない。`data` で全元素の反応前→反応後の数を報告し、不一致を強調した数の表と左右の静止した比較図を描く。原子を作ったり消したりする誤った移動は描かない\n- `labels` は省略可のオブジェクト。`before`・`apart`・`after`・`atoms` で「反応前」「原子に分かれる」「反応後」「原子の数:」を上書きできる\n\n属性:`count` は state の粒子数(6〜30、既定 16)、`size` は名前と式の文字サイズ(24px 以上、既定 28)、`dur` は各ステップの秒数(既定 1.2)。`volume=\"true\"` は気体の容器を広くする(既定 false。固体・液体の幅も粒子の層が入る幅を保つ)。`motion=\"false\"` で state の運動の印を消す(既定 true)。`states` は属性ではなく子の JSON に書く。\n\n要素の言語に従い日本語・英語で表示する。読み上げは最後の状態と保存される数を説明する。作者の `aria-label` があれば保つ。縦書きのスライドでも図は横書き。"
1385
1417
  },
1386
1418
  "m-pie": {
1387
1419
  "set": "standard",
@@ -1414,6 +1446,11 @@ export const PACK = {
1414
1446
  "row": "| `<m-score>` | 楽譜(五線譜)を 1 音・和音ずつ、または 1 小節ずつ出して音も鳴らす。ABC 記譜法で書く | 音符・和音・休符 1 つ=1 ステップ。by=\"measure\" なら 1 小節=1 ステップ(per-step=\"N\" なら N 小節。弱起の小節は次のステップに入る) | `{abc:str}` — abc だけを書く(abcSvg・abcMap・renderers はビルドのときに足す) |",
1415
1447
  "entry": "### `<m-score>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"abc\":\"X:1\\nM:4/4\\nL:1/4\\nQ:1/4=96\\nK:C\\nC D E F |]\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `by` | string | `\"note\"` | note(1 音・和音ずつ)\\| measure(1 小節ずつ) |\n| `names` | string | `\"none\"` | 符頭の下の名前:solfa(ドレミ)\\| abc \\| iroha(ハニホ)\\| none |\n| `per-step` | number | `1` | by=\\ |\n\n- `abc`:ABC 記譜法。`M:` 拍子、`L:` 基本の長さ、`Q:1/4=96` 速さ、`K:` 調、`[CEG]` 和音、`z` 休符、`-` タイ\n- `names`:符頭の下に `solfa`(ドレミ)・`abc`・`iroha`(ハニホ)。既定は `none`\n- `by=\"measure\"`:1 小節ずつ(音は小節の中で順に鳴る)\n- `per-step=\"N\"`:`by=\"measure\"` で N 小節を 1 ステップにする(既定 1)。ステップの長さは N 小節の長さそのまま\n- `by=\"note\"` は音の名前・高さを 1 つずつ見せるためのもので、各ステップは 1.2 秒以上になりリズムは保たれない。リズムを聞かせるときは `by=\"measure\"`。速い曲は `per-step` で 1 ステップが 1.2 秒以上になるように(弱起の小節は自動で次の小節とまとめる)"
1416
1448
  },
1449
+ "m-scroll": {
1450
+ "set": "tools",
1451
+ "row": "| `<m-scroll>` | 縦に長い図(インライン SVG・HTML)を高さの決まった枠に入れ、ステップごとに決めた所まで送る。参加者は枠の中を手でスクロールできる | 子の data-scroll-step の最大(k 番目のステップでその要素の所まで送る) | 属性だけ(JSON の子なし) |",
1452
+ "entry": "### `<m-scroll>`\n\n書き方の例: `<m-scroll style=\"height:440px\" aria-label=\"年表\"><svg viewBox=\"0 0 1000 1300\" width=\"1000\" height=\"1300\">… <g data-scroll-step=\"1\">…</g> …</svg></m-scroll>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `margin` | number | `12` | px:data-scroll-step の要素の上に空ける余白 |\n\n長い年表・長いフロー図・長いコードのように、1 枚のスライドに入らない縦長の図を、分けずに見せるときに使う。\n\n`<m-scroll style=\"height:440px\" aria-label=\"図の名前\">` の子に、図(インライン SVG や `<pre>`)をそのまま書く。\n\n- 子の要素に `data-scroll-step=\"k\"`(1, 2, …)を付けると、k 番目のステップでその要素が枠の上に来るまで送る(上に `margin` px 空ける)。ステップの数は k の最大\n- 枠の中のホイール・タッチ・↑↓・PageUp/PageDown は枠のスクロールで、スライドは送らない。←→ と Space はスライドの操作のまま\n- 参加者が手で動かした所は、次のステップまで保たれる\n\n注意\n\n- 読み上げのために `aria-label` に図の名前を書く(省略すると「縦に送る図」)\n- 印刷・本では枠の中の見えている所しか残らない。全体を読ませたい図は、スライドを分けるか本の側に全体を置く"
1453
+ },
1417
1454
  "m-seq": {
1418
1455
  "set": "stats",
1419
1456
  "row": "| `<m-seq>` | 観測を 1 つずつ加え、分布と数値が更新されていく様子を見せる(前の分布は薄く残す) | ceil((steps の数 − 1) / per-step) | `{xs:num[],steps:{dens:num[],readout?:object,mark?:num}[],digits?:object,markLabel?:str}` |",
@@ -1468,9 +1505,9 @@ export const PACK = {
1468
1505
  "briefNote": "下に説明の節がないパーツは、表の「データの形」のとおりに子の JSON か属性を書き、ほかの属性は既定のままにする。",
1469
1506
  "extHead": "### `<{name}>`:このセットの拡張(パーツの説明は §3)"
1470
1507
  },
1471
- "version": "ac7fb486",
1508
+ "version": "2a06805c",
1472
1509
  "tiers": {
1473
- "catalogue": "2.15.0",
1510
+ "catalogue": "2.18.0",
1474
1511
  "parts": {
1475
1512
  "m-balance": {
1476
1513
  "tier": "specialized",
@@ -1478,6 +1515,14 @@ export const PACK = {
1478
1515
  "purposes": [
1479
1516
  "model"
1480
1517
  ],
1518
+ "subjects": [
1519
+ "statistics",
1520
+ "mathematics"
1521
+ ],
1522
+ "audiences": [
1523
+ "high-school",
1524
+ "university"
1525
+ ],
1481
1526
  "display": {
1482
1527
  "ja": "期待値はつり合いの位置",
1483
1528
  "en": "Expectation as a balance point"
@@ -1498,6 +1543,14 @@ export const PACK = {
1498
1543
  "purposes": [
1499
1544
  "spread",
1500
1545
  "compare"
1546
+ ],
1547
+ "subjects": [
1548
+ "statistics",
1549
+ "mathematics"
1550
+ ],
1551
+ "audiences": [
1552
+ "primary-junior",
1553
+ "high-school"
1501
1554
  ]
1502
1555
  },
1503
1556
  "m-callout": {
@@ -1506,6 +1559,10 @@ export const PACK = {
1506
1559
  "purposes": [
1507
1560
  "process"
1508
1561
  ],
1562
+ "audiences": [
1563
+ "working-adult",
1564
+ "general"
1565
+ ],
1509
1566
  "display": {
1510
1567
  "ja": "画面の手順",
1511
1568
  "en": "Screen steps"
@@ -1524,6 +1581,10 @@ export const PACK = {
1524
1581
  "purposes": [
1525
1582
  "process"
1526
1583
  ],
1584
+ "audiences": [
1585
+ "working-adult",
1586
+ "general"
1587
+ ],
1527
1588
  "display": {
1528
1589
  "ja": "確かめる一覧",
1529
1590
  "en": "Checklist"
@@ -1536,6 +1597,13 @@ export const PACK = {
1536
1597
  "model",
1537
1598
  "spread"
1538
1599
  ],
1600
+ "subjects": [
1601
+ "statistics"
1602
+ ],
1603
+ "audiences": [
1604
+ "high-school",
1605
+ "university"
1606
+ ],
1539
1607
  "display": {
1540
1608
  "ja": "信頼区間の意味",
1541
1609
  "en": "Confidence intervals"
@@ -1548,6 +1616,13 @@ export const PACK = {
1548
1616
  "grouping",
1549
1617
  "model"
1550
1618
  ],
1619
+ "subjects": [
1620
+ "informatics",
1621
+ "statistics"
1622
+ ],
1623
+ "audiences": [
1624
+ "university"
1625
+ ],
1551
1626
  "display": {
1552
1627
  "ja": "2 次元の分類",
1553
1628
  "en": "2-D classification"
@@ -1560,6 +1635,13 @@ export const PACK = {
1560
1635
  "process",
1561
1636
  "model"
1562
1637
  ],
1638
+ "subjects": [
1639
+ "informatics"
1640
+ ],
1641
+ "audiences": [
1642
+ "high-school",
1643
+ "university"
1644
+ ],
1563
1645
  "display": {
1564
1646
  "ja": "コードの解説",
1565
1647
  "en": "Code walkthrough"
@@ -1571,6 +1653,12 @@ export const PACK = {
1571
1653
  "hierarchy",
1572
1654
  "process"
1573
1655
  ],
1656
+ "subjects": [
1657
+ "informatics"
1658
+ ],
1659
+ "audiences": [
1660
+ "high-school"
1661
+ ],
1574
1662
  "display": {
1575
1663
  "ja": "ハフマン木",
1576
1664
  "en": "Huffman tree"
@@ -1595,6 +1683,13 @@ export const PACK = {
1595
1683
  "model",
1596
1684
  "change"
1597
1685
  ],
1686
+ "subjects": [
1687
+ "mathematics",
1688
+ "informatics"
1689
+ ],
1690
+ "audiences": [
1691
+ "university"
1692
+ ],
1598
1693
  "display": {
1599
1694
  "ja": "等高線",
1600
1695
  "en": "Contour plot"
@@ -1606,6 +1701,12 @@ export const PACK = {
1606
1701
  "part-whole",
1607
1702
  "cause-effect"
1608
1703
  ],
1704
+ "subjects": [
1705
+ "statistics"
1706
+ ],
1707
+ "audiences": [
1708
+ "university"
1709
+ ],
1609
1710
  "display": {
1610
1711
  "ja": "計算して埋まる表",
1611
1712
  "en": "Computed table"
@@ -1630,6 +1731,10 @@ export const PACK = {
1630
1731
  "deviation",
1631
1732
  "compare"
1632
1733
  ],
1734
+ "subjects": [
1735
+ "business",
1736
+ "social-studies"
1737
+ ],
1633
1738
  "display": {
1634
1739
  "ja": "ウォーターフォール",
1635
1740
  "en": "Waterfall"
@@ -1654,6 +1759,13 @@ export const PACK = {
1654
1759
  "model",
1655
1760
  "compare"
1656
1761
  ],
1762
+ "subjects": [
1763
+ "informatics",
1764
+ "statistics"
1765
+ ],
1766
+ "audiences": [
1767
+ "university"
1768
+ ],
1657
1769
  "display": {
1658
1770
  "ja": "交差検証",
1659
1771
  "en": "Cross-validation"
@@ -1664,6 +1776,13 @@ export const PACK = {
1664
1776
  "set": "kokugo",
1665
1777
  "purposes": [
1666
1778
  "text-structure"
1779
+ ],
1780
+ "subjects": [
1781
+ "japanese"
1782
+ ],
1783
+ "audiences": [
1784
+ "primary-junior",
1785
+ "high-school"
1667
1786
  ]
1668
1787
  },
1669
1788
  "m-heatmap": {
@@ -1672,6 +1791,14 @@ export const PACK = {
1672
1791
  "purposes": [
1673
1792
  "compare",
1674
1793
  "correlation"
1794
+ ],
1795
+ "subjects": [
1796
+ "statistics",
1797
+ "informatics"
1798
+ ],
1799
+ "audiences": [
1800
+ "high-school",
1801
+ "university"
1675
1802
  ]
1676
1803
  },
1677
1804
  "m-hissan": {
@@ -1679,6 +1806,12 @@ export const PACK = {
1679
1806
  "set": "math",
1680
1807
  "purposes": [
1681
1808
  "process"
1809
+ ],
1810
+ "subjects": [
1811
+ "mathematics"
1812
+ ],
1813
+ "audiences": [
1814
+ "primary-junior"
1682
1815
  ]
1683
1816
  },
1684
1817
  "m-hist": {
@@ -1686,12 +1819,26 @@ export const PACK = {
1686
1819
  "set": "stats",
1687
1820
  "purposes": [
1688
1821
  "spread"
1822
+ ],
1823
+ "subjects": [
1824
+ "statistics",
1825
+ "mathematics"
1826
+ ],
1827
+ "audiences": [
1828
+ "primary-junior",
1829
+ "high-school"
1689
1830
  ]
1690
1831
  },
1691
1832
  "m-kakijun": {
1692
1833
  "tier": "extra",
1693
1834
  "purposes": [
1694
1835
  "process"
1836
+ ],
1837
+ "subjects": [
1838
+ "japanese"
1839
+ ],
1840
+ "audiences": [
1841
+ "primary-junior"
1695
1842
  ]
1696
1843
  },
1697
1844
  "m-kanbun": {
@@ -1699,6 +1846,12 @@ export const PACK = {
1699
1846
  "set": "kokugo",
1700
1847
  "purposes": [
1701
1848
  "text-structure"
1849
+ ],
1850
+ "subjects": [
1851
+ "japanese"
1852
+ ],
1853
+ "audiences": [
1854
+ "high-school"
1702
1855
  ]
1703
1856
  },
1704
1857
  "m-keyboard": {
@@ -1706,6 +1859,12 @@ export const PACK = {
1706
1859
  "set": "music",
1707
1860
  "purposes": [
1708
1861
  "music"
1862
+ ],
1863
+ "subjects": [
1864
+ "music"
1865
+ ],
1866
+ "audiences": [
1867
+ "primary-junior"
1709
1868
  ]
1710
1869
  },
1711
1870
  "m-kobun": {
@@ -1713,6 +1872,12 @@ export const PACK = {
1713
1872
  "set": "kokugo",
1714
1873
  "purposes": [
1715
1874
  "text-structure"
1875
+ ],
1876
+ "subjects": [
1877
+ "japanese"
1878
+ ],
1879
+ "audiences": [
1880
+ "high-school"
1716
1881
  ]
1717
1882
  },
1718
1883
  "m-kpi": {
@@ -1726,6 +1891,13 @@ export const PACK = {
1726
1891
  "set": "maps",
1727
1892
  "purposes": [
1728
1893
  "spatial"
1894
+ ],
1895
+ "subjects": [
1896
+ "social-studies"
1897
+ ],
1898
+ "audiences": [
1899
+ "primary-junior",
1900
+ "high-school"
1729
1901
  ]
1730
1902
  },
1731
1903
  "m-map-world": {
@@ -1733,6 +1905,13 @@ export const PACK = {
1733
1905
  "set": "maps",
1734
1906
  "purposes": [
1735
1907
  "spatial"
1908
+ ],
1909
+ "subjects": [
1910
+ "social-studies"
1911
+ ],
1912
+ "audiences": [
1913
+ "primary-junior",
1914
+ "high-school"
1736
1915
  ]
1737
1916
  },
1738
1917
  "m-mapping": {
@@ -1742,6 +1921,14 @@ export const PACK = {
1742
1921
  "model",
1743
1922
  "grouping"
1744
1923
  ],
1924
+ "subjects": [
1925
+ "statistics",
1926
+ "mathematics"
1927
+ ],
1928
+ "audiences": [
1929
+ "high-school",
1930
+ "university"
1931
+ ],
1745
1932
  "display": {
1746
1933
  "ja": "確率変数の対応",
1747
1934
  "en": "Random variable mapping"
@@ -1752,8 +1939,29 @@ export const PACK = {
1752
1939
  "set": "business",
1753
1940
  "purposes": [
1754
1941
  "part-whole"
1942
+ ],
1943
+ "subjects": [
1944
+ "business"
1945
+ ],
1946
+ "audiences": [
1947
+ "working-adult"
1755
1948
  ]
1756
1949
  },
1950
+ "m-matrix": {
1951
+ "tier": "specialized",
1952
+ "purposes": [
1953
+ "compare",
1954
+ "position"
1955
+ ],
1956
+ "audiences": [
1957
+ "university",
1958
+ "working-adult"
1959
+ ],
1960
+ "display": {
1961
+ "ja": "比較の行列",
1962
+ "en": "Comparison matrix"
1963
+ }
1964
+ },
1757
1965
  "m-menu": {
1758
1966
  "tier": "standard",
1759
1967
  "purposes": [
@@ -1767,6 +1975,13 @@ export const PACK = {
1767
1975
  "process",
1768
1976
  "model"
1769
1977
  ],
1978
+ "subjects": [
1979
+ "informatics",
1980
+ "statistics"
1981
+ ],
1982
+ "audiences": [
1983
+ "university"
1984
+ ],
1770
1985
  "display": {
1771
1986
  "ja": "グラフの探索",
1772
1987
  "en": "Graph search"
@@ -1779,6 +1994,12 @@ export const PACK = {
1779
1994
  "model",
1780
1995
  "process"
1781
1996
  ],
1997
+ "subjects": [
1998
+ "informatics"
1999
+ ],
2000
+ "audiences": [
2001
+ "university"
2002
+ ],
1782
2003
  "display": {
1783
2004
  "ja": "ニューラルネット",
1784
2005
  "en": "Neural network"
@@ -1789,6 +2010,12 @@ export const PACK = {
1789
2010
  "set": "math",
1790
2011
  "purposes": [
1791
2012
  "compare"
2013
+ ],
2014
+ "subjects": [
2015
+ "mathematics"
2016
+ ],
2017
+ "audiences": [
2018
+ "primary-junior"
1792
2019
  ]
1793
2020
  },
1794
2021
  "m-orbit": {
@@ -1797,6 +2024,13 @@ export const PACK = {
1797
2024
  "purposes": [
1798
2025
  "model",
1799
2026
  "cycle"
2027
+ ],
2028
+ "subjects": [
2029
+ "science"
2030
+ ],
2031
+ "audiences": [
2032
+ "primary-junior",
2033
+ "high-school"
1800
2034
  ]
1801
2035
  },
1802
2036
  "m-particles": {
@@ -1807,6 +2041,13 @@ export const PACK = {
1807
2041
  "process",
1808
2042
  "compare"
1809
2043
  ],
2044
+ "subjects": [
2045
+ "science"
2046
+ ],
2047
+ "audiences": [
2048
+ "primary-junior",
2049
+ "high-school"
2050
+ ],
1810
2051
  "display": {
1811
2052
  "ja": "粒子のモデル",
1812
2053
  "en": "Particle model"
@@ -1837,6 +2078,14 @@ export const PACK = {
1837
2078
  "model",
1838
2079
  "spread"
1839
2080
  ],
2081
+ "subjects": [
2082
+ "statistics",
2083
+ "mathematics"
2084
+ ],
2085
+ "audiences": [
2086
+ "high-school",
2087
+ "university"
2088
+ ],
1840
2089
  "display": {
1841
2090
  "ja": "標本抽出",
1842
2091
  "en": "Sampling"
@@ -1853,13 +2102,37 @@ export const PACK = {
1853
2102
  "set": "music",
1854
2103
  "purposes": [
1855
2104
  "music"
2105
+ ],
2106
+ "subjects": [
2107
+ "music"
2108
+ ],
2109
+ "audiences": [
2110
+ "primary-junior"
1856
2111
  ]
1857
2112
  },
2113
+ "m-scroll": {
2114
+ "tier": "specialized",
2115
+ "set": "tools",
2116
+ "purposes": [
2117
+ "process",
2118
+ "timeline"
2119
+ ],
2120
+ "display": {
2121
+ "ja": "縦に送る図",
2122
+ "en": "Scrolling figure"
2123
+ }
2124
+ },
1858
2125
  "m-seq": {
1859
2126
  "tier": "specialized",
1860
2127
  "set": "stats",
1861
2128
  "purposes": [
1862
2129
  "spread"
2130
+ ],
2131
+ "subjects": [
2132
+ "statistics"
2133
+ ],
2134
+ "audiences": [
2135
+ "university"
1863
2136
  ]
1864
2137
  },
1865
2138
  "m-sweep": {
@@ -1867,6 +2140,9 @@ export const PACK = {
1867
2140
  "set": "math",
1868
2141
  "purposes": [
1869
2142
  "parameter"
2143
+ ],
2144
+ "subjects": [
2145
+ "mathematics"
1870
2146
  ]
1871
2147
  },
1872
2148
  "m-syntax": {
@@ -1874,6 +2150,13 @@ export const PACK = {
1874
2150
  "set": "english",
1875
2151
  "purposes": [
1876
2152
  "text-structure"
2153
+ ],
2154
+ "subjects": [
2155
+ "english"
2156
+ ],
2157
+ "audiences": [
2158
+ "primary-junior",
2159
+ "high-school"
1877
2160
  ]
1878
2161
  },
1879
2162
  "m-tape": {
@@ -1882,6 +2165,12 @@ export const PACK = {
1882
2165
  "purposes": [
1883
2166
  "part-whole",
1884
2167
  "compare"
2168
+ ],
2169
+ "subjects": [
2170
+ "mathematics"
2171
+ ],
2172
+ "audiences": [
2173
+ "primary-junior"
1885
2174
  ]
1886
2175
  },
1887
2176
  "m-timeline": {
@@ -1906,8 +2195,13 @@ export const PACK = {
1906
2195
  "m-vector": {
1907
2196
  "tier": "specialized",
1908
2197
  "purposes": [
1909
- "model",
1910
- "spatial"
2198
+ "model"
2199
+ ],
2200
+ "subjects": [
2201
+ "mathematics"
2202
+ ],
2203
+ "audiences": [
2204
+ "university"
1911
2205
  ],
1912
2206
  "display": {
1913
2207
  "ja": "ベクトルと行列",
@@ -1927,7 +2221,8 @@ export const PACK = {
1927
2221
  "label": {
1928
2222
  "ja": "比べる(量・特徴)",
1929
2223
  "en": "Compare (amounts, features)"
1930
- }
2224
+ },
2225
+ "tile": "own"
1931
2226
  },
1932
2227
  {
1933
2228
  "id": "ranking",
@@ -1942,162 +2237,661 @@ export const PACK = {
1942
2237
  "label": {
1943
2238
  "ja": "変化",
1944
2239
  "en": "Change"
1945
- }
2240
+ },
2241
+ "tile": "own"
1946
2242
  },
1947
2243
  {
1948
2244
  "id": "part-whole",
1949
2245
  "label": {
1950
2246
  "ja": "内訳",
1951
2247
  "en": "Part of a whole"
1952
- }
2248
+ },
2249
+ "tile": "own"
1953
2250
  },
1954
2251
  {
1955
2252
  "id": "key-number",
1956
2253
  "label": {
1957
2254
  "ja": "数字を見せる",
1958
2255
  "en": "Key number"
1959
- }
2256
+ },
2257
+ "tile": "own"
1960
2258
  },
1961
2259
  {
1962
2260
  "id": "process",
1963
2261
  "label": {
1964
2262
  "ja": "手順",
1965
2263
  "en": "Steps"
1966
- }
2264
+ },
2265
+ "tile": "own"
1967
2266
  },
1968
2267
  {
1969
2268
  "id": "timeline",
1970
2269
  "label": {
1971
2270
  "ja": "年表・予定",
1972
2271
  "en": "Timeline"
1973
- }
2272
+ },
2273
+ "tile": "own"
1974
2274
  },
1975
2275
  {
1976
2276
  "id": "cause-effect",
1977
2277
  "label": {
1978
2278
  "ja": "原因と結果",
1979
2279
  "en": "Cause and effect"
1980
- }
2280
+ },
2281
+ "tile": "own"
1981
2282
  },
1982
2283
  {
1983
2284
  "id": "cycle",
1984
2285
  "label": {
1985
2286
  "ja": "循環",
1986
2287
  "en": "Cycle"
1987
- }
2288
+ },
2289
+ "tile": "own"
1988
2290
  },
1989
2291
  {
1990
2292
  "id": "hierarchy",
1991
2293
  "label": {
1992
2294
  "ja": "階層・分類",
1993
2295
  "en": "Hierarchy"
1994
- }
2296
+ },
2297
+ "tile": "own"
1995
2298
  },
1996
2299
  {
1997
2300
  "id": "position",
1998
2301
  "label": {
1999
2302
  "ja": "位置づけ",
2000
2303
  "en": "Position"
2001
- }
2304
+ },
2305
+ "tile": "own"
2002
2306
  },
2003
2307
  {
2004
2308
  "id": "overlap",
2005
2309
  "label": {
2006
2310
  "ja": "重なり",
2007
2311
  "en": "Overlap"
2008
- }
2312
+ },
2313
+ "tile": "own"
2009
2314
  },
2010
2315
  {
2011
2316
  "id": "correlation",
2012
2317
  "label": {
2013
2318
  "ja": "2 つの量の関係",
2014
2319
  "en": "Two quantities"
2015
- }
2320
+ },
2321
+ "tile": "own"
2016
2322
  },
2017
2323
  {
2018
2324
  "id": "spread",
2019
2325
  "label": {
2020
2326
  "ja": "ばらつき",
2021
2327
  "en": "Spread"
2022
- }
2328
+ },
2329
+ "tile": "own"
2023
2330
  },
2024
2331
  {
2025
2332
  "id": "grouping",
2026
2333
  "label": {
2027
2334
  "ja": "まとめる・分ける",
2028
2335
  "en": "Grouping"
2029
- }
2336
+ },
2337
+ "tile": "none"
2030
2338
  },
2031
2339
  {
2032
2340
  "id": "text-structure",
2033
2341
  "label": {
2034
2342
  "ja": "文章の構造",
2035
2343
  "en": "Structure of a text"
2036
- }
2344
+ },
2345
+ "tile": "none"
2037
2346
  },
2038
2347
  {
2039
2348
  "id": "contents",
2040
2349
  "label": {
2041
2350
  "ja": "目次",
2042
2351
  "en": "Contents"
2043
- }
2352
+ },
2353
+ "tile": "own"
2044
2354
  },
2045
2355
  {
2046
2356
  "id": "parameter",
2047
2357
  "label": {
2048
2358
  "ja": "パラメータを動かす",
2049
2359
  "en": "Varying a parameter"
2050
- }
2360
+ },
2361
+ "tile": "none"
2051
2362
  },
2052
2363
  {
2053
2364
  "id": "predict",
2054
2365
  "label": {
2055
2366
  "ja": "予想して確かめる",
2056
2367
  "en": "Predict, then check"
2057
- }
2368
+ },
2369
+ "tile": "own"
2058
2370
  },
2059
2371
  {
2060
2372
  "id": "timebox",
2061
2373
  "label": {
2062
2374
  "ja": "時間を区切る",
2063
2375
  "en": "Time-boxing"
2064
- }
2376
+ },
2377
+ "tile": "none"
2065
2378
  },
2066
2379
  {
2067
2380
  "id": "spatial",
2068
2381
  "label": {
2069
2382
  "ja": "場所・地図",
2070
2383
  "en": "Place / map"
2071
- }
2384
+ },
2385
+ "tile": "own"
2072
2386
  },
2073
2387
  {
2074
2388
  "id": "music",
2075
2389
  "label": {
2076
2390
  "ja": "音楽(音の高さ・和音・リズム)",
2077
2391
  "en": "Music (pitch, chords, rhythm)"
2078
- }
2392
+ },
2393
+ "tile": "none"
2079
2394
  },
2080
2395
  {
2081
2396
  "id": "model",
2082
2397
  "label": {
2083
2398
  "ja": "仕組みをモデルで見る",
2084
2399
  "en": "How it works (a model)"
2085
- }
2400
+ },
2401
+ "tile": "none"
2086
2402
  },
2087
2403
  {
2088
2404
  "id": "deviation",
2089
2405
  "label": {
2090
2406
  "ja": "差・増減",
2091
2407
  "en": "Increase / decrease"
2092
- }
2408
+ },
2409
+ "tile": "own"
2093
2410
  },
2094
2411
  {
2095
2412
  "id": "concept-links",
2096
2413
  "label": {
2097
2414
  "ja": "概念のつながり",
2098
2415
  "en": "Concept links"
2416
+ },
2417
+ "reserved": true
2418
+ }
2419
+ ],
2420
+ "subjects": [
2421
+ {
2422
+ "id": "statistics",
2423
+ "label": {
2424
+ "ja": "統計",
2425
+ "en": "Statistics"
2426
+ },
2427
+ "keywords": {
2428
+ "ja": [
2429
+ "分布",
2430
+ "統計",
2431
+ "データ",
2432
+ "ヒストグラム",
2433
+ "箱ひげ",
2434
+ "相関",
2435
+ "ベイズ",
2436
+ "推定",
2437
+ "検定",
2438
+ "交差検証",
2439
+ "信頼区間",
2440
+ "標本抽出",
2441
+ "確率変数",
2442
+ "期待値",
2443
+ "グラフィカルモデル",
2444
+ "パス図",
2445
+ "構造方程式",
2446
+ "ベイジアンネットワーク",
2447
+ "隠れマルコフ",
2448
+ "マルコフ連鎖",
2449
+ "因果ダイアグラム"
2450
+ ],
2451
+ "en": [
2452
+ "distribution",
2453
+ "distributions",
2454
+ "statistics",
2455
+ "statistical",
2456
+ "data",
2457
+ "histogram",
2458
+ "histograms",
2459
+ "box plot",
2460
+ "box plots",
2461
+ "correlation",
2462
+ "Bayes",
2463
+ "Bayesian",
2464
+ "estimation",
2465
+ "hypothesis test",
2466
+ "hypothesis testing",
2467
+ "cross-validation",
2468
+ "confidence interval",
2469
+ "confidence intervals",
2470
+ "sampling",
2471
+ "random variable",
2472
+ "random variables",
2473
+ "expected value",
2474
+ "graphical model",
2475
+ "path diagram",
2476
+ "structural equation",
2477
+ "Bayesian network",
2478
+ "hidden Markov",
2479
+ "Markov chain",
2480
+ "causal diagram"
2481
+ ]
2482
+ }
2483
+ },
2484
+ {
2485
+ "id": "mathematics",
2486
+ "label": {
2487
+ "ja": "数学",
2488
+ "en": "Mathematics"
2489
+ },
2490
+ "keywords": {
2491
+ "ja": [
2492
+ "数学",
2493
+ "算数",
2494
+ "筆算",
2495
+ "わり算",
2496
+ "割り算",
2497
+ "かけ算",
2498
+ "掛け算",
2499
+ "分数",
2500
+ "割合",
2501
+ "数直線",
2502
+ "テープ図",
2503
+ "関数",
2504
+ "ベクトル",
2505
+ "行列"
2506
+ ],
2507
+ "en": [
2508
+ "mathematics",
2509
+ "math",
2510
+ "maths",
2511
+ "arithmetic",
2512
+ "long division",
2513
+ "column addition",
2514
+ "multiplication",
2515
+ "division",
2516
+ "fraction",
2517
+ "fractions",
2518
+ "ratio",
2519
+ "ratios",
2520
+ "percentage",
2521
+ "percentages",
2522
+ "number line",
2523
+ "tape diagram",
2524
+ "function",
2525
+ "functions",
2526
+ "vector",
2527
+ "vectors",
2528
+ "matrix",
2529
+ "matrices"
2530
+ ]
2531
+ }
2532
+ },
2533
+ {
2534
+ "id": "informatics",
2535
+ "label": {
2536
+ "ja": "情報",
2537
+ "en": "Informatics"
2538
+ },
2539
+ "keywords": {
2540
+ "ja": [
2541
+ "情報I",
2542
+ "情報Ⅰ",
2543
+ "プログラミング",
2544
+ "アルゴリズム",
2545
+ "最短経路",
2546
+ "巡回セールスマン",
2547
+ "グラフ理論",
2548
+ "グラフの探索",
2549
+ "幅優先",
2550
+ "ダイクストラ",
2551
+ "機械学習",
2552
+ "ニューラルネット",
2553
+ "パーセプトロン",
2554
+ "深層学習",
2555
+ "ディープラーニング",
2556
+ "活性化関数",
2557
+ "勾配降下",
2558
+ "ロジスティック回帰",
2559
+ "サポートベクター",
2560
+ "SVM",
2561
+ "決定木",
2562
+ "k 平均",
2563
+ "k平均",
2564
+ "k-means",
2565
+ "近傍法",
2566
+ "損失関数",
2567
+ "分類器",
2568
+ "scikit-learn"
2569
+ ],
2570
+ "en": [
2571
+ "programming",
2572
+ "computer science",
2573
+ "algorithm",
2574
+ "algorithms",
2575
+ "graph search",
2576
+ "graph theory",
2577
+ "breadth-first search",
2578
+ "BFS",
2579
+ "shortest path",
2580
+ "traveling salesman",
2581
+ "TSP",
2582
+ "Dijkstra",
2583
+ "machine learning",
2584
+ "neural network",
2585
+ "neural networks",
2586
+ "perceptron",
2587
+ "deep learning",
2588
+ "activation function",
2589
+ "gradient descent",
2590
+ "logistic regression",
2591
+ "support vector",
2592
+ "SVM",
2593
+ "decision tree",
2594
+ "decision trees",
2595
+ "k-means",
2596
+ "nearest neighbor",
2597
+ "nearest neighbors",
2598
+ "loss function",
2599
+ "classifier",
2600
+ "classifiers",
2601
+ "scikit-learn"
2602
+ ]
2603
+ }
2604
+ },
2605
+ {
2606
+ "id": "science",
2607
+ "label": {
2608
+ "ja": "理科",
2609
+ "en": "Science"
2610
+ },
2611
+ "keywords": {
2612
+ "ja": [
2613
+ "理科",
2614
+ "月の満ち欠け",
2615
+ "天体",
2616
+ "惑星",
2617
+ "粒子",
2618
+ "物理",
2619
+ "化学"
2620
+ ],
2621
+ "en": [
2622
+ "science",
2623
+ "physics",
2624
+ "chemistry",
2625
+ "phases of the moon",
2626
+ "moon phases",
2627
+ "planet",
2628
+ "planets",
2629
+ "particle",
2630
+ "particles"
2631
+ ]
2632
+ }
2633
+ },
2634
+ {
2635
+ "id": "social-studies",
2636
+ "label": {
2637
+ "ja": "社会",
2638
+ "en": "Social studies"
2639
+ },
2640
+ "keywords": {
2641
+ "ja": [
2642
+ "地図",
2643
+ "都道府県",
2644
+ "地方",
2645
+ "世界",
2646
+ {
2647
+ "w": "国",
2648
+ "not": [
2649
+ "国語"
2650
+ ]
2651
+ },
2652
+ "人口",
2653
+ "地域",
2654
+ "地理",
2655
+ "歴史"
2656
+ ],
2657
+ "en": [
2658
+ "map",
2659
+ "maps",
2660
+ "prefecture",
2661
+ "prefectures",
2662
+ "region",
2663
+ "regions",
2664
+ "world",
2665
+ "country",
2666
+ "countries",
2667
+ "population",
2668
+ "geography",
2669
+ "history"
2670
+ ]
2671
+ }
2672
+ },
2673
+ {
2674
+ "id": "japanese",
2675
+ "label": {
2676
+ "ja": "国語",
2677
+ "en": "Japanese"
2678
+ },
2679
+ "keywords": {
2680
+ "ja": [
2681
+ "国語",
2682
+ "漢文",
2683
+ "漢詩",
2684
+ "古文",
2685
+ "現代文",
2686
+ "評論",
2687
+ "小説",
2688
+ "書き順",
2689
+ "ひらがな"
2690
+ ],
2691
+ "en": [
2692
+ "kanbun",
2693
+ "kobun",
2694
+ "kanshi",
2695
+ "classical Japanese",
2696
+ "classical Chinese",
2697
+ "stroke order",
2698
+ "hiragana",
2699
+ "katakana",
2700
+ "kanji"
2701
+ ]
2702
+ }
2703
+ },
2704
+ {
2705
+ "id": "english",
2706
+ "label": {
2707
+ "ja": "英語",
2708
+ "en": "English"
2709
+ },
2710
+ "keywords": {
2711
+ "ja": [
2712
+ "英文",
2713
+ "文型",
2714
+ "英語",
2715
+ {
2716
+ "w": "句",
2717
+ "not": [
2718
+ "俳句",
2719
+ "語句",
2720
+ "文句",
2721
+ "句読点"
2722
+ ]
2723
+ },
2724
+ {
2725
+ "w": "節",
2726
+ "not": [
2727
+ "季節",
2728
+ "関節",
2729
+ "節約",
2730
+ "節分",
2731
+ "調節"
2732
+ ]
2733
+ },
2734
+ "関係詞"
2735
+ ],
2736
+ "en": [
2737
+ "English grammar",
2738
+ "sentence structure",
2739
+ "sentence pattern",
2740
+ "sentence patterns",
2741
+ "phrase",
2742
+ "phrases",
2743
+ "clause",
2744
+ "clauses",
2745
+ "relative pronoun",
2746
+ "relative pronouns"
2747
+ ]
2748
+ }
2749
+ },
2750
+ {
2751
+ "id": "music",
2752
+ "label": {
2753
+ "ja": "音楽",
2754
+ "en": "Music"
2755
+ },
2756
+ "keywords": {
2757
+ "ja": [
2758
+ "音楽",
2759
+ "音階",
2760
+ "和音",
2761
+ {
2762
+ "w": "コード",
2763
+ "not": [
2764
+ "ソースコード",
2765
+ "バーコード",
2766
+ "QRコード",
2767
+ "コーディング"
2768
+ ]
2769
+ },
2770
+ "鍵盤",
2771
+ "楽譜"
2772
+ ],
2773
+ "en": [
2774
+ "music",
2775
+ "musical scale",
2776
+ "major scale",
2777
+ "minor scale",
2778
+ "chord",
2779
+ "chords",
2780
+ "keyboard",
2781
+ "piano",
2782
+ "sheet music",
2783
+ "musical score"
2784
+ ]
2785
+ }
2786
+ },
2787
+ {
2788
+ "id": "business",
2789
+ "label": {
2790
+ "ja": "経営",
2791
+ "en": "Business"
2792
+ },
2793
+ "keywords": {
2794
+ "ja": [
2795
+ "市場",
2796
+ "KPI",
2797
+ "売上",
2798
+ "事業",
2799
+ "ピッチ",
2800
+ "経営"
2801
+ ],
2802
+ "en": [
2803
+ "market",
2804
+ "markets",
2805
+ "KPI",
2806
+ "KPIs",
2807
+ "sales",
2808
+ "revenue",
2809
+ "business",
2810
+ "pitch"
2811
+ ]
2812
+ }
2813
+ },
2814
+ {
2815
+ "id": "medicine",
2816
+ "label": {
2817
+ "ja": "医療",
2818
+ "en": "Medicine"
2819
+ },
2820
+ "reserved": true
2821
+ },
2822
+ {
2823
+ "id": "disaster",
2824
+ "label": {
2825
+ "ja": "防災",
2826
+ "en": "Disaster preparedness"
2827
+ },
2828
+ "reserved": true
2829
+ }
2830
+ ],
2831
+ "audiences": [
2832
+ {
2833
+ "id": "primary-junior",
2834
+ "label": {
2835
+ "ja": "小中",
2836
+ "en": "Primary and junior high"
2837
+ }
2838
+ },
2839
+ {
2840
+ "id": "high-school",
2841
+ "label": {
2842
+ "ja": "高校",
2843
+ "en": "High school"
2844
+ }
2845
+ },
2846
+ {
2847
+ "id": "university",
2848
+ "label": {
2849
+ "ja": "大学",
2850
+ "en": "University"
2851
+ }
2852
+ },
2853
+ {
2854
+ "id": "working-adult",
2855
+ "label": {
2856
+ "ja": "社会人",
2857
+ "en": "Working adults"
2858
+ }
2859
+ },
2860
+ {
2861
+ "id": "general",
2862
+ "label": {
2863
+ "ja": "一般",
2864
+ "en": "General public"
2099
2865
  }
2100
2866
  }
2101
- ]
2867
+ ],
2868
+ "usage": {
2869
+ "m-bars": 12,
2870
+ "m-cards": 11,
2871
+ "m-classify2d": 1,
2872
+ "m-compare": 3,
2873
+ "m-contour": 1,
2874
+ "m-curves": 3,
2875
+ "m-flow": 9,
2876
+ "m-folds": 1,
2877
+ "m-gendai": 2,
2878
+ "m-kanbun": 1,
2879
+ "m-keyboard": 1,
2880
+ "m-kobun": 1,
2881
+ "m-kpi": 6,
2882
+ "m-map-japan": 1,
2883
+ "m-market": 1,
2884
+ "m-menu": 1,
2885
+ "m-orbit": 1,
2886
+ "m-pie": 3,
2887
+ "m-predict": 7,
2888
+ "m-quad": 1,
2889
+ "m-score": 1,
2890
+ "m-sweep": 3,
2891
+ "m-syntax": 1,
2892
+ "m-timeline": 1,
2893
+ "m-tree": 1,
2894
+ "m-vector": 1
2895
+ }
2102
2896
  }
2103
2897
  };