egatari 0.6.20-rc.3 → 0.6.21-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,34 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
8
8
 
9
9
  <!-- Unreleased changes are fragments in changes/*.md (see CONTRIBUTING.md "Changelog"); node tools/changelog.mjs --release X.Y.Z moves them here. -->
10
10
 
11
+ ## [0.6.20] - 2026-11-26
12
+
13
+ ### Added
14
+
15
+ - Studio: the start screen and **? (Help)** link to the guidebook 「Studio で始める絵語り」 for first-time users (it plays in the egatari.org gallery; in Japanese, and the English link says so).
16
+ - Studio: the quality check lists **Slides that will look different after saving** when the next Save of an Egatari file rebuilds the slides: slides you did not edit whose final step looks different in the file as it was opened (its own player and parts) and in this editor's rebuild. It does not block saving; click an entry to go to the slide.
17
+ - Touch screens: a swipe across the slide, or a tap on its left or right edge (15 % of its width), goes to the step before or after, as the toolbar's previous and next do; a tap in the middle still shows the toolbar. Not on links, parts, the book, the toolbar, while pinch-zoomed, in a blackout, or when a host hides the controls.
18
+
19
+ ### Changed
20
+
21
+ - Editor: **Slide ▾ → Add bookmark…** now suggests the slide's heading, cut to 20 characters, instead of **Q&A**, so a second bookmark no longer gets the same name (a number is added if another slide already has it; a slide without a heading gets "Slide 3"). The dialog text and the docs describe the two uses: jump to the final state of an important slide in the talk and back, and jump to the appendix divider (handoff #89)
22
+ - Parts library 2.22.0 is now the default (release 98ee1af, tarball e5860e13…, manifest 7d18a779…), imported beside 2.21.0: README corrections only (m-bars error bars are explained under the figure, m-code colours only python, r, shell and js, m-flow box spacing, m-kobun and m-callout notes; handoff #92). In the free English pack the new m-flow spacing note is shortened to stay under the paste limit. The parts gallery is re-synced to the 2.22.0 release
23
+ - Studio: in a browser that cannot choose where to save (Safari, Firefox), the first save of an Egatari file says once, before downloading, that each save makes a new file in the downloads and that Chrome or Edge overwrite the same file (**Saving downloads the file**; Cancel does not save).
24
+ - The feedback steps now live in one text (docs/llm-feedback.md and .ja.md) that both the make skill (ja and en) and the studio skill read, so the two cannot drift. The skills gather nothing for a report until the user agrees to send, look for the same issue first (`gh issue list --state all`) and suggest commenting there, include the Studio, instruction and parts library versions, say once that the report becomes a public issue, and, without gh, give a form URL with the fields filled in by field id (falling back to the draft and the empty form over 6,000 characters). The feedback form gains the type Insight / うまくいったこと with fields for what was being made, what worked, what did not and why; What you did and What happened are no longer required (handoff #91)
25
+ - AI instructions: the light (free-plan) instructions are shorter, so more parts get a full description when part sets are added. They keep only the common worked example (the part-set examples are in the detailed instructions only); in the "data shape" column, items that take all of `step` `at` `tone` no longer list them and are marked † (one line above the catalog says so; `label` is always listed); and the kicker, morph and research-positioning-table notes are in the detailed instructions only. English standard: 30,994 → 30,036 paste units; Japanese standard: 39,431 → 38,361 bytes. The detailed instructions are unchanged (handoff #95)
26
+ - Egatari Player 1.13.0 (the bundled player that files carry, `player` in the index and `deck-meta`): minor release. When the bookmark buttons do not fit the toolbar, they collapse into one **Bookmarks ▾** button that opens a list of the names (handoff #90). On a touch screen, a sideways swipe on the stage or a tap near its left or right edge goes to the previous or next step (handoff #97). The presenter view has **Previous** and **Next** buttons under the current slide, so it can be moved on with a click, an Apple Pencil (Sidecar on an iPad) or a finger; during a blackout they only end it, as the keys do (handoff #104). In Japanese, the blackout is now called 暗転: the presenter view says 暗転中 (was 黒い画面中), and so do the corner notice, the key list and the docs; the English wording is unchanged (handoff #105). The items of the presenter view's top bar no longer wrap inside: when they do not fit on one line, the bar drops only as many words as it must, in this order: Close presenter view becomes an icon, then Autoplay, then the words “Slide” and “Step” (showing 2 / 6 · 0 / 4); the names stay as tooltips, and if that is still too wide it wraps onto a second row (handoff #105)
27
+ - README (en and ja): a 30-second introduction video (Japanese) at the top, as a poster linking to the video on egatari.org
28
+ - Studio: ⌘S / Ctrl+S saves the open Egatari file, as **File ▾ → Save** does (also while typing in a field), instead of the browser's “Save page”.
29
+ - Studio: **File ▾ → Export ▸ → Print slides** is now **Print slides / Save as PDF**. The editor guide says how to make handouts (several slides on one sheet): save as PDF, then print the PDF from a PDF viewer with several pages per sheet.
30
+ - The `scriptUnclosed` finding now reads as two sentences (what is missing, then why the later slides are lost, then how to fix it), and the narration sections of the slides an unclosed `<script>` swallows are no longer also reported as "slide not found" (R-headings) — in the command-line check, the editor's build warnings and the AI fix request alike — so the fix request asks only to close the `<script>`. Other sections that match no slide are still reported (handoff #96)
31
+ - Studio: the script fields and the book text are spell-checked in the file's language (the HTML source field still is not).
32
+
33
+ ### Fixed
34
+
35
+ - Player: with many bookmarks the toolbar no longer runs off the screen (20 bookmarks on a portrait iPad overflowed by about 90 px). When the bookmark buttons do not fit, they collapse into one **Bookmarks ▾** menu button with a list of the names; whether they fit is measured, not counted, and measured again when the window is resized. The list items, `q` and **Back to where you were** work as before, and the menu works from the keyboard (Enter or Space opens, arrow keys move, Esc closes). The presenter view keeps its buttons (handoff #90)
36
+ - Studio: the comments of an Egatari file are no longer lost when the file is closed. They are not saved in the file, so Studio keeps them in this browser for each file (by its `docId`) and brings them back when the same file is opened again, also after it was saved. Comments not changed for 90 days are deleted; **? → Comments kept in this browser** shows how many files have them, with **Delete all**.
37
+ - Editor: a dialog or panel opened from a toolbar menu now puts focus on its first field however it was opened (click, double click, Enter, Enter twice), so text typed right away lands there. **File info…** no longer leaves focus on the page, the menu button or the preview, and a second Enter no longer reopens the **File ▾** menu on **New…**; a double click no longer moves focus to the dialog itself (**Add bookmark…**, **Change theme…**, **For an LMS (SCORM)…**, **Save as…**, the rights confirmation); the bookmark name opens with its suggested value selected, so typing replaces it. A menu item that opens nothing still returns keyboard focus to the menu button (handoff #98). An item that only shows a notice (such as **For an LMS (SCORM)…** with unsaved changes) also ignores a quick second Enter, so it no longer reopens the **File ▾** menu on **New…** (handoff #98)
38
+
11
39
  ## [0.6.19] - 2026-11-23
12
40
 
13
41
  ### Added
@@ -1718,7 +1746,8 @@ First public release.
1718
1746
  - Docs: README (English and Japanese), the contract (`docs/contract.md`), a reference of every option, syntax and key (`docs/reference.md`, `docs/reference.ja.md`), guides for the dev server and video, CONTRIBUTING, SECURITY, issue forms
1719
1747
  - Tests (`npm test`) and GitHub Actions running them on Node 22 and 24, plus a TTS dry-run through video export
1720
1748
 
1721
- [Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.19...HEAD
1749
+ [Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.20...HEAD
1750
+ [0.6.20]: https://github.com/egatari/egatari-studio/compare/v0.6.19...v0.6.20
1722
1751
  [0.6.19]: https://github.com/egatari/egatari-studio/compare/v0.6.18...v0.6.19
1723
1752
  [0.6.18]: https://github.com/egatari/egatari-studio/compare/v0.6.17...v0.6.18
1724
1753
  [0.6.17]: https://github.com/egatari/egatari-studio/compare/v0.6.16...v0.6.17
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "source": "https://github.com/egatari/components",
3
- "default": "2.22.0",
3
+ "default": "2.23.0",
4
4
  "catalogues": {
5
5
  "2.0.0": {
6
6
  "tag": "v2.0.0",
@@ -2245,6 +2245,157 @@
2245
2245
  "venn": "218d88998b70f0732c18d91ccc238b2d63f6b0aaa483883b83685a25468f214a"
2246
2246
  }
2247
2247
  },
2248
+ "2.23.0": {
2249
+ "tag": "v2.23.0",
2250
+ "tarballSha256": "5d442c2d77edb2ebe2444b75443467af935e32182178cbad6e6fa1f3c7600199",
2251
+ "manifestSha256": "02a06cf22a1cf853de409720f4d4b30eec5c5151c9a830ba34bdcc74d4e2f5bd",
2252
+ "parts": {
2253
+ "balance": "2.0.2",
2254
+ "bars": "2.1.1",
2255
+ "base": "1.3.0",
2256
+ "boxplot": "2.0.7",
2257
+ "boxplot-core": "1.0.0",
2258
+ "callout": "2.1.0",
2259
+ "cards": "2.1.0",
2260
+ "checklist": "2.0.1",
2261
+ "ci": "2.0.2",
2262
+ "classify2d": "2.0.1",
2263
+ "code": "2.2.1",
2264
+ "code-core": "1.0.1",
2265
+ "codetree": "2.1.0",
2266
+ "codetree-core": "1.0.0",
2267
+ "collect": "2.1.0",
2268
+ "compare": "2.0.5",
2269
+ "contour": "2.0.1",
2270
+ "contour-core": "1.0.0",
2271
+ "contrast": "2.0.0",
2272
+ "ctable": "2.0.1",
2273
+ "curves": "2.4.0",
2274
+ "cycle": "2.1.0",
2275
+ "diverge": "2.0.1",
2276
+ "expr": "1.0.0",
2277
+ "fishbone": "2.1.2",
2278
+ "flow": "2.1.2",
2279
+ "folds": "2.1.2",
2280
+ "gendai": "2.0.4",
2281
+ "heatmap": "2.1.3",
2282
+ "heatmap-core": "1.0.0",
2283
+ "hissan": "2.0.4",
2284
+ "hist": "2.0.7",
2285
+ "hist-core": "1.0.0",
2286
+ "icons": "1.0.0",
2287
+ "kakijun": "2.1.0",
2288
+ "kanbun": "2.0.4",
2289
+ "kanbun-core": "1.0.0",
2290
+ "keyboard": "2.0.6",
2291
+ "kobun": "2.0.4",
2292
+ "kpi": "2.0.6",
2293
+ "map-japan": "2.3.0",
2294
+ "map-world": "2.3.0",
2295
+ "mapping": "2.1.0",
2296
+ "market": "2.1.0",
2297
+ "markup-reader": "1.0.3",
2298
+ "matrix": "2.1.0",
2299
+ "menu": "2.0.5",
2300
+ "network": "2.2.0",
2301
+ "nnet": "2.1.0",
2302
+ "numberline": "2.1.0",
2303
+ "orbit": "2.0.7",
2304
+ "particles": "2.0.3",
2305
+ "pie": "2.1.0",
2306
+ "plot": "1.1.3",
2307
+ "predict": "2.3.0",
2308
+ "quad": "2.1.2",
2309
+ "sampling": "2.0.2",
2310
+ "scatter": "2.1.0",
2311
+ "score": "2.1.3",
2312
+ "scroll": "2.0.0",
2313
+ "seq": "2.2.0",
2314
+ "shape": "1.0.0",
2315
+ "sweep": "2.2.0",
2316
+ "syntax": "2.0.4",
2317
+ "tape": "2.1.0",
2318
+ "timeline": "2.1.0",
2319
+ "timer": "2.0.7",
2320
+ "trace": "2.0.1",
2321
+ "tree": "2.2.0",
2322
+ "vector": "2.1.0",
2323
+ "venn": "2.1.0"
2324
+ },
2325
+ "content": {
2326
+ "balance": "5521b5b40a43c48c5ae5a50ce87afb3d47bb23b133b16841086d8322364cdd5e",
2327
+ "bars": "ad4d42a34eff125d8ccd7caf9ac329b7a8092960e7ee872fdeb853bd9c57942f",
2328
+ "base": "aeb0b9b5991a5c1df7191c397780a699f2c7310123ca210a58486c0a23e44006",
2329
+ "boxplot": "beeb180c0e2250bb04490b092c0a235cae47fca2ed1de2d9ef078a5c14b1a963",
2330
+ "boxplot-core": "728576c57a5ccb39531ad4cb8074fce95480f01603a77dbf57dca0e52199f7c4",
2331
+ "callout": "b35d01e480a203dc27aa18b0d341cc1cbc2dcca69235e909919484f1545b371f",
2332
+ "cards": "7a5adf73fc053b9f2ca56643b5683b42589edb0f63c845ecb7ae7e6b87eccc30",
2333
+ "checklist": "8db9c936c36b79b9e3b2be37639487b15502a6937f411ed714621a8091437e9b",
2334
+ "ci": "832556ea9c82c292a3ba9e1b332f2405c5c2f969ff8157c91ed80226ec8ac62e",
2335
+ "classify2d": "7ab483e7fb05f646b062340d70f2749d070b4f64fed7acc0b8a7754d9ef9fded",
2336
+ "code": "8a9215c7fea15265c2f3038f3d01a2f72441fc1e931245dee46dcaacf3548a98",
2337
+ "code-core": "631f4c4b90c9a41c0f26c9600d5cf2d6447251d04a20f08f48a85aeb4cb0f6fb",
2338
+ "codetree": "b9443e1cdac4850b1ead9f8449a3061678bbb77fbc53eb9b23d01e1cf50750c3",
2339
+ "codetree-core": "da267bc65fde0a9279127d5a82f6c253ad74984da6fb11391f00604ad9ffe80d",
2340
+ "collect": "4c8cae404d551a1bb021e8345af5aa45d4f412f13497aa84b142f11a29a365dc",
2341
+ "compare": "a744049fc56e0a5d5b1638bef597a4e65f99d0776a35d830a389f216f314f1bc",
2342
+ "contour": "fa6442fa3c5082cf161c29308fe0ecbd85fa33e8e4bad08c12e7961b46b1365b",
2343
+ "contour-core": "a1c2b2fa06e4229815ab82a9202c266ec887a67632a175854c7d136a92389ca3",
2344
+ "contrast": "277ac772315f93737a094cd0f0842726f2435d352d9a90822aebfe0d5d7e79a1",
2345
+ "ctable": "3a7962fa87c670447eed54aca08604ef03cd26bf2c334b4667190060e6a17965",
2346
+ "curves": "3be5f64deb1951327b614b29a9b632878fab362687c76e3f48f3af1d1ebbb1cf",
2347
+ "cycle": "000cc8b85d22854d93587d53fe07585e0d9f0abee86d863c5ed1f6c53967912b",
2348
+ "diverge": "f4100076a37dbde6046d85969d651feffc925bd984ffe9f333ea9bd2b6816918",
2349
+ "expr": "c5fd7713e55e96d75824a21146c0251896d7d9dd028b4d169191433135a97981",
2350
+ "fishbone": "3f2f66da34496213cf6140ae041122c31f13c77e5ee18ad11a3390fbc4a6ecca",
2351
+ "flow": "91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955",
2352
+ "folds": "2787e410e533e4ad48b0a3c2b652579cf5797f9c51fcf32f5478212a7acef95f",
2353
+ "gendai": "13c9ce43396b2f5693ce430a924dae4ddcd1e8a4ad0c9b9e724ff52acb874d0c",
2354
+ "heatmap": "8e5e90c90cb6b06a790b0420e43d79d7da663f1cc19ff06d381ec849b4a8fc57",
2355
+ "heatmap-core": "711cf58fa946c9c0abc953b2f695d02bf5a5a7f73851b09f834e894baf88be38",
2356
+ "hissan": "e27d517f39eb554c7a9ecea7b59fcf1d347c4deeb3fe2250797aa233bfb7e2b0",
2357
+ "hist": "701f1deef79fe05eeb18e1119e5a5c4d60a9dfe265e93a4dff79223bc598dbf0",
2358
+ "hist-core": "8a4b6dce84d7a69aaafeb75c1c572fe7904fd49e3169c1c85851ccaeae2a7b11",
2359
+ "icons": "b10183a66b58b827a1410cf8b0117af567647684464d5777529dc66f0cea343a",
2360
+ "kakijun": "0dd302b82925f35743a893d5c271898ada3659aa0de2d3249ef45936aad10ae0",
2361
+ "kanbun": "b53bfa03d1e9feb3cb492f440bf9d100c96eb4fe6b76c42b512a56e9158829cd",
2362
+ "kanbun-core": "df3fdb2aed487d4f6e60a8abab1fe0d1e9fa2a4193fd162edf3c384ea8db5a1b",
2363
+ "keyboard": "af3355efd6739a56c6cb53990100f41703361c475c123b9b2762421c68509036",
2364
+ "kobun": "9a426812105a44446e8b3f98e0ccfdb6701e8386c08e8aa201b69cb5b52a4c1f",
2365
+ "kpi": "ce0a52fa13ae579020d1172845647daee9ba78e070736e47740f2d2feabffe7e",
2366
+ "map-japan": "0c25d49d23529879054737aa181951519fe585c4728fd505e0e3c8869953eac7",
2367
+ "map-world": "2a011338d0fc3c77e102eaa57cde2b6e3726bc279f133174b0b8c9a654263cbc",
2368
+ "mapping": "6749f44ed6476a05d4e3026373c188a0e1a19b77a5836579813f62a1477ac35e",
2369
+ "market": "208175d05b37d326855fad792b10137f785e5d05d91a2cde119d0dbd69d2ed98",
2370
+ "markup-reader": "8bb511cb90902bc7721e59ca08685b26adbf33539e36a4a45172485d6d3d455b",
2371
+ "matrix": "a5b032657720d3beb64f0b3699954e13b0eb985f36161b9ae046c83fd6048ff5",
2372
+ "menu": "109c302247e0c62720872be35392a73bea72804b0ed421ef8ced3f030f72e537",
2373
+ "network": "2579bcb46b6525902763cd15a2e08fc5ebd9a2695cdaba63438e5b47907a47e0",
2374
+ "nnet": "e31f6b058503f7980597c89b3e964c512ee08de7cba3fa99904d499abbb5d0e8",
2375
+ "numberline": "b348ea64cc19632df96a91dfd7c435e4a62095aede72b504d03537be70d6d930",
2376
+ "orbit": "1a0f21def0efbbdef64461cafa40f3883bc7f7122adf79d01f09ca4a245e5dcb",
2377
+ "particles": "c61987e9994940fc668ed8a010e575ee52027b54ed9c5dd1cc9fdf67649092b3",
2378
+ "pie": "42450c6b36404d66641568f6d6f55e42a4a036d4d9cdf308f709464913b32fe9",
2379
+ "plot": "2fce5ab0c31dca0aa1586a2c69237870a9cce46c0bc6ab7392c27968d016bd15",
2380
+ "predict": "4e7384be4e55ae5fef362e776b52c9a20013a8d540a26cf9b4acded876c4d85b",
2381
+ "quad": "47f7ea3e2551abb250a9f5883716791026f0f54ae9cca6d82fabdb92478c69ae",
2382
+ "sampling": "0840322bf51eeb3c8188ce21ad70af17c13974ac0151065a39c430a3813ee07f",
2383
+ "scatter": "7c7b0373cfd38fd5ecb4169021e0b908f0a17be1a29b14f85dd89fdb92e7bf81",
2384
+ "score": "7dea2c3728b85122b04515aa06ab198657529e7cd101b9ab34d4ecb2905ce94e",
2385
+ "scroll": "7af6e5e6dffb618b39f27d883c691ca128f3af06040ee505e75c79c678bfdcfe",
2386
+ "seq": "12ef6a11055407f5cddc40154a49cf2737b0786429fe0fcc94ee1d8245597b40",
2387
+ "shape": "76bdb63c3e5e14fbb4816bc9f235490817bb5d7be990a826f5077aa08226702c",
2388
+ "sweep": "038f9d32c89c8212ab25d6e3180023b6fe024a53053ab2ef1443ecab92e3ce43",
2389
+ "syntax": "dea36cd7010991a572ef394ee32b5e17564aeff09d3ec4ed3820d7e43c9a58be",
2390
+ "tape": "aac2f8a23cb1b606e9635061cb288f006588c80a7258540cae846ae677f55ff5",
2391
+ "timeline": "b28d136dffb03a3e855b2ff959712a143da9a84c3a4fd13a1126d7711083a2d6",
2392
+ "timer": "bc1e2a02c959ac203819d03c0d25b3776a6a9a4290aae860b26cbbe3d29e876d",
2393
+ "trace": "45cea6c1abfb3467e3e3dbe7fec58647716999a0c39cf7163531ae389f898d29",
2394
+ "tree": "9c5dd0bc0c3279c5f0fea3fdb9d0735870880aef96e8bbf9ecdd77dff0f5ddc8",
2395
+ "vector": "0e9e92df8d70eb6d9fcf10916c361769c7cd37baacece8d7eb96bbbc7fbcf942",
2396
+ "venn": "218d88998b70f0732c18d91ccc238b2d63f6b0aaa483883b83685a25468f214a"
2397
+ }
2398
+ },
2248
2399
  "2.3.0": {
2249
2400
  "tag": "v2.3.0",
2250
2401
  "tarballSha256": "46480ea715b73ef01bed807501316df96f5aacb63a96fa01af5cf14ede7f0f39",
@@ -11,7 +11,7 @@
11
11
  // plan:お使いの AI のプラン。'free'(既定)では、標準の部品のうち中核の 4 つ(FREE_CORE)だけを詳しく書き、ほかの標準の部品は一覧の 1 行だけにする
12
12
  // (標準すべてが無料のプランの上限に収まるように。backlog #125)。'paid' はどの部品も詳しく書く。専門の部品はどちらのプランでも詳しく書く
13
13
  // short:無料のプランで、中核の 4 つも一覧の 1 行だけにする(束を足して上限を越えたとき、新規作成が外す候補より先に使う。kit/core/new-deck.mjs の fitPlan)
14
- // full:無料のプランで詳しく書く標準の部品(既定は中核の 4 つ。short なら [])。渡せば short より先に読む
14
+ // full:無料のプランで詳しく書く標準の部品(既定は中核の 4 つ。short なら [])。渡せば short より先に読む。授業・研修のときは freeFull が m-predict も足す(handoff #108)
15
15
  // named:順位で組む指示(新規作成 ④。handoff #43)。配列なら、exclude にない部品はどれも詳しく書き(プランで paidOnly を除かず、一覧の 1 行だけにしない)、
16
16
  // named の部品は言いたいことの表に名前だけ載せる(説明・一覧の行はない。表の下の 1 文が「使わない」と言う)。rankedPack が順位から決める
17
17
  import { purposesTable } from './purposes.mjs';
@@ -49,9 +49,16 @@ export function fitSize(text, plan = 'free') {
49
49
  // 標準の部品の段の名前(材料の部品の set)
50
50
  export const STANDARD = 'standard';
51
51
  export const PLANS = Object.freeze(['free', 'paid']);
52
- // 中核の 4 つ:無料のプランでも詳しく書く標準の部品
53
- export const FREE_CORE = Object.freeze(['m-bars', 'm-flow', 'm-menu', 'm-predict']);
52
+ // 中核の 4 つ:無料のプランでも詳しく書く標準の部品(作者の決定 2026-10-21・2026-11-26:棒グラフ・流れ図・比べる表と、共通の部品の目次。handoff #108)
53
+ export const FREE_CORE = Object.freeze(['m-bars', 'm-compare', 'm-flow', 'm-menu']);
54
54
  export const planName = (plan) => (plan === 'paid' ? 'paid' : 'free');
55
+ // 授業のときだけ詳しく書く標準の部品(handoff #108、作者の決定 2026-11-26):予想と答え(m-predict)。SCORM の確認問題に使うので、説明は今の詳しさのまま。
56
+ // 新規作成の ① が授業・研修(category 'teaching')か、④ の伝えたいこと「予想してから確かめる」('predict')に印があるとき。ほかは一覧の 1 行だけ
57
+ export const TEACHING_FULL = Object.freeze(['m-predict']);
58
+ export const PREDICT_PURPOSE = 'predict';
59
+ export const teachingFull = ({ category = null, purposes = [] } = {}) => category === 'teaching' || (Array.isArray(purposes) && purposes.includes(PREDICT_PURPOSE));
60
+ // 無料のプランで詳しく書く標準の部品(briefParts・packOptsOf の full に渡す):中核の 4 つと、teachingFull なら TEACHING_FULL。short のときは渡さない(中核の 4 つと同じに短くする)
61
+ export const freeFull = (choice = {}) => [...new Set([...FREE_CORE, ...(teachingFull(choice) ? TEACHING_FULL : [])])].sort();
55
62
  // 一覧の 1 行だけにする部品(無料のプランの、中核の 4 つ以外の標準の部品。short なら中核の 4 つも)
56
63
  export function briefParts(data, plan = 'free', short = false, full = null) {
57
64
  if (planName(plan) === 'paid') return [];
@@ -188,7 +195,7 @@ export function trimCandidates(ticked, { sizeOf, capBytes, keep = new Set() }) {
188
195
  return out;
189
196
  }
190
197
 
191
- // 目安に収める(backlog #125):無料のプランで目安を越えたら、まず中核の 4 つ(棒グラフ・流れ図・目次・予想と答え)の説明も短くする(short)。
198
+ // 目安に収める(backlog #125):無料のプランで目安を越えたら、まず中核の 4 つ(棒グラフ・比べる表・流れ図・目次)の説明も短くする(short)。
192
199
  // それでも越えるなら、束が 1 つのときは中核の 4 つのほかの標準のパーツを SINGLE_SET_DROP_ORDER の順に(選んだ束のパーツは外さない)、
193
200
  // 束が 2 つ以上のときは印の付いた専門のパーツだけ(外したときに減る大きさの大きい順。標準のパーツは候補にしない)。
194
201
  // sizeOf(tags, short) は選んだパーツで組んだ指示のバイト数。keep:ほかに候補にしないパーツ(サンプルから引き継いだパーツ。backlog #130。束が 1 つのときも外さない)。→ {short, candidates}
@@ -201,7 +208,8 @@ export function fitPlan(data, ticked, plan, { sizeOf, capBytes, keep: also = []
201
208
  }
202
209
 
203
210
  // 束を 1 つだけ選んだ無料のプランの指示で、中核の 4 つを短くしても越えるときに外す標準のパーツと、その順(maintainers の決定、2026-11-06)。
204
- // 選んだ束のパーツと中核の 4 つ(FREE_CORE。この並びの m-menu は飛ばす)は外さない。この順に 1 つずつ外し、収まったところで止める。
211
+ // 選んだ束のパーツと中核の 4 つ(FREE_CORE。この並びの m-menu・m-compare は飛ばす)は外さない。この順に 1 つずつ外し、収まったところで止める。
212
+ // m-predict(TEACHING_FULL)は並びにない:中核だったころと同じに外さない(handoff #108 で中核を出た。外すかどうかは決めていない)
205
213
  // 図表(m-pie・m-scatter・m-curves)を最後にするのは、教科の束(stats・data・math・maps・science)が図表に頼るから(stats では m-scatter と m-curves が
206
214
  // m-hist の隣で使われる)。m-kpi はビジネスの札なので早めに、m-cards は何にでも使う形なので図表のすぐ前に。
207
215
  // maintainers の順の 1 番目「選んでいない束のパーツを先に外す」は、今は起きない(新規作成もコマンドも、指示に入る専門のパーツはどれも選んだ束のもの)
@@ -911,9 +911,9 @@ export const PACK = {
911
911
  "m-collect",
912
912
  "m-kakijun"
913
913
  ],
914
- "partsSrc": "https://github.com/egatari/components/blob/v2.22.0/components/",
914
+ "partsSrc": "https://github.com/egatari/components/blob/v2.23.0/components/",
915
915
  "en": {
916
- "common": "# Instructions for the AI\n\nPack version: `79c82ff6`\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<!--paid-->- On a slide that uses numbers, a figure or a quotation, write a source line above the conclusion (`<p class=\"source\">Source: …</p>`)\n<!--/paid--><!--paid-->- 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<!--/paid-->- 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)<!--paid-->, and the `data-morph` attribute (§2.5)<!--/paid-->.\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.<!--paid--> In a research-positioning table, write \"This work\" in your own cell (do not mark it by colour or bold alone).<!--/paid-->\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{…}{…}`<!--paid-->, `\\morph{ID}{…}`<!--/paid-->. 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<!--paid--> and morphs<!--/paid-->\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<!--paid-->- 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<!--/paid-->\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<!--paid-->- Where a photo is needed, write a figure box (the Figure template) with a description of the photo; the author adds the image later<!--/paid-->\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.<!--paid--> Some part sets end with an example of their own.<!--/paid-->\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```",
916
+ "common": "# Instructions for the AI\n\nPack version: `da7ac17a`\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<!--paid-->- On a slide that uses numbers, a figure or a quotation, write a source line above the conclusion (`<p class=\"source\">Source: …</p>`)\n<!--/paid--><!--paid-->- 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<!--/paid-->- 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)<!--paid-->, and the `data-morph` attribute (§2.5)<!--/paid-->.\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.<!--paid--> In a research-positioning table, write \"This work\" in your own cell (do not mark it by colour or bold alone).<!--/paid-->\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{…}{…}`<!--paid-->, `\\morph{ID}{…}`<!--/paid-->. 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<!--paid--> and morphs<!--/paid-->\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<!--paid-->- 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<!--/paid-->\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<!--paid-->- Where a photo is needed, write a figure box (the Figure template) with a description of the photo; the author adds the image later<!--/paid-->\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.<!--paid--> Some part sets end with an example of their own.<!--/paid-->\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```",
917
917
  "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:",
918
918
  "sets": {
919
919
  "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}}",
@@ -1146,7 +1146,7 @@ export const PACK = {
1146
1146
  "m-predict": {
1147
1147
  "set": "standard",
1148
1148
  "row": "| `<m-predict>` | Predict, reveal; votes as bars, answer framed | 0 question, 1 bars, answer-step (2) | `{question?:str,choices:{label,tone?}[],answer:int,counts?:int[],note?,labels?:{correct?:str}}` — choices are objects {\"label\": …} (not strings); answer is the 0-based index of the right choice; counts (optional) has one whole number ≥ 0 per choice |",
1149
- "entry": "### `<m-predict>`\n\nData example (child `<script type=\"application/json\">`): `{\"question\":\"Which falls first?\",\"choices\":[{\"label\":\"Heavy\"},{\"label\":\"Light\"},{\"label\":\"Same\"}],\"answer\":2,\"counts\":[14,3,9],\"note\":\"No air: same\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `answer-step` | number | `2` | 2 or more (default 2); after the step-1 count |\n| `unit` | string | `\"\"` | count unit |\n| `poll` | string | `\"\"` | poll id (no live counts yet) |\n| `ticks` | bool | `true` | grid |\n\n- 2–6 choices. Video/print/start show `counts` (or 0)\n- Script uses `counts`; vote at `{note:hands up}` (parens get read)\n- `poll=\"p1\"`: reserved; no live reveals yet (`ctx.live.poll(id)` is null), so viewer/author counts are used"
1149
+ "entry": "### `<m-predict>`\n\nData example (child `<script type=\"application/json\">`): `{\"question\":\"Which falls first?\",\"choices\":[{\"label\":\"Heavy\"},{\"label\":\"Light\"},{\"label\":\"Same\"}],\"answer\":2,\"counts\":[14,3,9],\"note\":\"No air: same\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `answer-step` | number | `2` | 2 or more (default 2); after the step-1 count |\n| `unit` | string | `\"\"` | count unit |\n| `poll` | string | `\"\"` | poll id (no live counts yet) |\n| `ticks` | bool | `true` | grid |\n\n- Only for a real vote or guess; not asides or answer-only\n- 2–6 choices. Video/print/start show `counts` (or 0)\n- Script uses `counts`; vote at `{note:hands up}` (parens get read)\n- `poll=\"p1\"`: reserved; no live reveals yet (`ctx.live.poll(id)` is null), so viewer/author counts are used"
1150
1150
  },
1151
1151
  "m-quad": {
1152
1152
  "set": "standard",
@@ -1233,7 +1233,7 @@ export const PACK = {
1233
1233
  "extHead": "### `<{name}>`: extension for this part set (the part is described in §3)"
1234
1234
  },
1235
1235
  "ja": {
1236
- "common": "# AI への指示\n\n指示のバージョン:`79c82ff6`\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- 数字・図・引用を使ったスライドには、結論の行の上に出典の行(`<p class=\"source\">出典:…</p>`)を書く\n<!--paid-->- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n<!--/paid-->- 表紙:`<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 のセットがあるときだけ)<!--paid-->、属性 `data-morph`(§2.5)<!--/paid-->\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 本の軸の交差の表は、全体を見せてから注目する列・マスに印を付けるか、軸の列ごとに埋める。<!--paid-->研究の位置づけの表では、本研究のマスに字で「本研究」と書く(色や太字だけで区別しない)。<!--/paid-->\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{…}{…}`<!--paid-->、`\\morph{ID}{…}`<!--/paid-->。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調<!--paid-->とモーフ<!--/paid-->\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<!--paid-->- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n<!--/paid-->\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<!--paid-->- 写真が要る所は、図の枠(テンプレートの「図」)と内容の説明を書き、画像は作成者が後で入れる<!--/paid-->\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-->。<!--paid-->いくつかのセットの指示の最後にも例がある。<!--/paid-->\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```",
1236
+ "common": "# AI への指示\n\n指示のバージョン:`da7ac17a`\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- 数字・図・引用を使ったスライドには、結論の行の上に出典の行(`<p class=\"source\">出典:…</p>`)を書く\n<!--paid-->- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n<!--/paid-->- 表紙:`<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 のセットがあるときだけ)<!--paid-->、属性 `data-morph`(§2.5)<!--/paid-->\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 本の軸の交差の表は、全体を見せてから注目する列・マスに印を付けるか、軸の列ごとに埋める。<!--paid-->研究の位置づけの表では、本研究のマスに字で「本研究」と書く(色や太字だけで区別しない)。<!--/paid-->\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{…}{…}`<!--paid-->、`\\morph{ID}{…}`<!--/paid-->。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調<!--paid-->とモーフ<!--/paid-->\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<!--paid-->- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n<!--/paid-->\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<!--paid-->- 写真が要る所は、図の枠(テンプレートの「図」)と内容の説明を書き、画像は作成者が後で入れる<!--/paid-->\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-->。<!--paid-->いくつかのセットの指示の最後にも例がある。<!--/paid-->\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```",
1237
1237
  "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- そのほかの希望:",
1238
1238
  "sets": {
1239
1239
  "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}}",
@@ -1467,7 +1467,7 @@ export const PACK = {
1467
1467
  "m-predict": {
1468
1468
  "set": "standard",
1469
1469
  "row": "| `<m-predict>` | 予想してから答えを開く。選択肢ごとの人数を棒で見せ、答えのステップで正解に枠 | 0 問いと選択肢、1 人数の棒、answer-step(既定 2)で答え | `{question?:str,choices:{label,tone?}[],answer:int,counts?:int[],note?,labels?:{correct?:str}}` — choices は {\"label\": …} の並び(字の並びではない)。answer は正しい選択肢の番号(0 から数える)。counts(省略可)は選択肢ごとに 0 以上の整数を 1 つずつ |",
1470
- "entry": "### `<m-predict>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"question\":\"重い球と軽い球、どちらが先に落ちる?\",\"choices\":[{\"label\":\"重い球\"},{\"label\":\"軽い球\"},{\"label\":\"同時\"}],\"answer\":2,\"counts\":[14,3,9],\"note\":\"空気の抵抗を除けば同時に落ちる\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `answer-step` | number | `2` | 2 以上(既定 2)。人数を数えるステップ 1 のあとに答えを開く |\n| `unit` | string | `\"\"` | 数の単位(人 など) |\n| `poll` | string | `\"\"` | 投票の id(今は見る人・作者の数を使う) |\n| `ticks` | bool | `true` | 数の軸の目盛りと格子 |\n\n「A だと思う人〜」と手を挙げてもらい、先生が −1・+1 で数える(数を打ち込んでもよい)。一人で自習する学習者は、選択肢を押すと自分の予想になる。\n\n- 選択肢は 2〜6。動画・印刷・最初の表示は `counts`(無ければ 0)。同じスライドにいるあいだは数が残る(答えのステップでも、戻っても)\n- 台本は `counts` の数で書き、数える所は `{note:ここで手を挙げてもらう}` と書く(丸かっこは読み上げられる)\n- `poll=\"p1\"`:v0.6.3 は結果公開の送信元がなく、`ctx.live.poll(id)` は null。見る人・作者の数を使う\n- `labels.correct`(省略可):正解の印の文字を変える(既定「✓ 正解」)"
1470
+ "entry": "### `<m-predict>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"question\":\"重い球と軽い球、どちらが先に落ちる?\",\"choices\":[{\"label\":\"重い球\"},{\"label\":\"軽い球\"},{\"label\":\"同時\"}],\"answer\":2,\"counts\":[14,3,9],\"note\":\"空気の抵抗を除けば同時に落ちる\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `answer-step` | number | `2` | 2 以上(既定 2)。人数を数えるステップ 1 のあとに答えを開く |\n| `unit` | string | `\"\"` | 数の単位(人 など) |\n| `poll` | string | `\"\"` | 投票の id(今は見る人・作者の数を使う) |\n| `ticks` | bool | `true` | 数の軸の目盛りと格子 |\n\n聞き手に実際に手を挙げてもらう・予想させるときだけ使う。説明の途中の問いかけや、答えを見せるだけのときは使わない。\n\n「A だと思う人〜」と手を挙げてもらい、先生が −1・+1 で数える(数を打ち込んでもよい)。一人で自習する学習者は、選択肢を押すと自分の予想になる。\n\n- 選択肢は 2〜6。動画・印刷・最初の表示は `counts`(無ければ 0)。同じスライドにいるあいだは数が残る(答えのステップでも、戻っても)\n- 台本は `counts` の数で書き、数える所は `{note:ここで手を挙げてもらう}` と書く(丸かっこは読み上げられる)\n- `poll=\"p1\"`:v0.6.3 は結果公開の送信元がなく、`ctx.live.poll(id)` は null。見る人・作者の数を使う\n- `labels.correct`(省略可):正解の印の文字を変える(既定「✓ 正解」)"
1471
1471
  },
1472
1472
  "m-quad": {
1473
1473
  "set": "standard",
@@ -1554,9 +1554,9 @@ export const PACK = {
1554
1554
  "briefNote": "下に説明の節がないパーツは、表の「データの形」のとおりに子の JSON か属性を書き、ほかの属性は既定のままにする。",
1555
1555
  "extHead": "### `<{name}>`:このセットの拡張(パーツの説明は §3)"
1556
1556
  },
1557
- "version": "79c82ff6",
1557
+ "version": "da7ac17a",
1558
1558
  "tiers": {
1559
- "catalogue": "2.22.0",
1559
+ "catalogue": "2.23.0",
1560
1560
  "parts": {
1561
1561
  "m-balance": {
1562
1562
  "tier": "specialized",
@@ -20,6 +20,8 @@
20
20
  // packSize(text) UTF-8 のバイト数
21
21
  // kbOf(bytes)・packKb(text) 大きさの表示(KB、小数 1 桁。CLI の --list と編集アプリが同じ計算)
22
22
  // PLANS・FREE_CORE・BRIEF お使いの AI のプラン・無料のプランでも詳しく書く中核の 4 つ・無料のプランで一覧の 1 行だけの標準の部品
23
+ // TEACHING_FULL・teachingFull({category, purposes})・freeFull(choice) 授業・研修か「予想してから確かめる」に印のときだけ詳しく書く標準の部品(m-predict)・
24
+ // そのときか・無料のプランで詳しく書く標準の部品(中核の 4 つ+授業なら m-predict。partsPackOpts の full に渡す。handoff #108)
23
25
  // PACK_CAP_KB・PAID_PACK_KB 指示の大きさの上限({free, paid}。kit/core/llm-pack-assemble.mjs)
24
26
  // FREE_PASTE_UNITS・pasteUnits(text) 無料のプランのもう 1 つの上限:貼り付けの長さ(UTF-16 の単位の数+改行の数)が 31,000 まで
25
27
  // fitSize(text, plan) 目安に収める物差し(fitPlan・fitPack の sizeOf に使う):無料のプランは 45 KB と 31,000 の近いほう(バイトに換算)
@@ -32,9 +34,9 @@
32
34
  // partsPackOpts(tags, plan, {short, full}) 選んだパーツだけの指示の組み立ての引数 {sets, exclude, plan, short?, full?}(buildPack・packWithRequest に渡す。
33
35
  // 選んだ専門のパーツの束を入れ、選ばないパーツは除く。プランは詳しさだけを変える。short:無料のプランで中核の 4 つも短く)
34
36
  import { PACK } from './llm-pack-data.mjs';
35
- import { assemble, normalizeSets as norm, commonOf, partOf, requestOf, membersOf, langOf, partSpans, PACK_CAP_KB, PAID_PACK_KB, FREE_PASTE_UNITS, pasteUnits, fitSize, PLANS, FREE_CORE, STANDARD, briefParts, planName, trimCandidates as trimCandidatesOf, SINGLE_SET_DROP_ORDER, fitPlan as fitPlanOf, fitPack as fitPackOf, packOptsOf, rankedOpts as rankedOptsOf, rankedPack as rankedPackOf } from './llm-pack-assemble.mjs';
37
+ import { assemble, normalizeSets as norm, commonOf, partOf, requestOf, membersOf, langOf, partSpans, PACK_CAP_KB, PAID_PACK_KB, FREE_PASTE_UNITS, pasteUnits, fitSize, PLANS, FREE_CORE, TEACHING_FULL, teachingFull, freeFull, STANDARD, briefParts, planName, trimCandidates as trimCandidatesOf, SINGLE_SET_DROP_ORDER, fitPlan as fitPlanOf, fitPack as fitPackOf, packOptsOf, rankedOpts as rankedOptsOf, rankedPack as rankedPackOf } from './llm-pack-assemble.mjs';
36
38
 
37
- export { assemble, PACK_CAP_KB, PAID_PACK_KB, FREE_PASTE_UNITS, pasteUnits, fitSize, PLANS, FREE_CORE, STANDARD, SINGLE_SET_DROP_ORDER };
39
+ export { assemble, PACK_CAP_KB, PAID_PACK_KB, FREE_PASTE_UNITS, pasteUnits, fitSize, PLANS, FREE_CORE, TEACHING_FULL, teachingFull, freeFull, STANDARD, SINGLE_SET_DROP_ORDER };
38
40
  export const BRIEF = briefParts(PACK, 'free'); // 無料のプランで一覧の 1 行だけの標準の部品
39
41
  export const SETS = PACK.sets;
40
42
  export const TIERS = PACK.tiers;
@@ -95,7 +95,7 @@ export function sampleChoice(sample, { title = '', content = '', lang = 'en' } =
95
95
  const purposes = Array.isArray(sample.purposes) ? [...sample.purposes] : [];
96
96
  const school = asksSchool(sample.category, sample.subcategory ?? null) ? (Array.isArray(sample.audiences) ? sample.audiences : []).find((a) => SCHOOL_AUDIENCES.includes(a)) || null : null;
97
97
  const audience = audienceOf(sample.category, sample.subcategory ?? null, school);
98
- return { purposes, subjects, school, audience, order: rankParts({ purposes, subjects, audience, first: Array.isArray(sample.parts) ? sample.parts : [] }) };
98
+ return { purposes, subjects, school, audience, order: rankParts({ purposes, subjects, audience, first: Array.isArray(sample.parts) ? sample.parts : [], category: sample.category }) };
99
99
  }
100
100
 
101
101
  // 「このサンプルを参考に作る」:① ③ ④ はサンプルから、② は second(タイトルと内容。ほかの項目は AI に任せる。言語は画面の言語、話す人は 1 人)。