egatari 0.6.11 → 0.6.12-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.
Files changed (134) hide show
  1. package/bin/egatari.mjs +4 -3
  2. package/components.lock.json +30 -15
  3. package/components2.lock.json +201 -1
  4. package/fonts/@fontsource/fraunces/400.css +29 -0
  5. package/fonts/@fontsource/fraunces/700.css +29 -0
  6. package/fonts/@fontsource/fraunces/LICENSE +93 -0
  7. package/fonts/@fontsource/fraunces/files/fraunces-latin-400-normal.woff2 +0 -0
  8. package/fonts/@fontsource/fraunces/files/fraunces-latin-700-normal.woff2 +0 -0
  9. package/fonts/@fontsource/fraunces/files/fraunces-latin-ext-400-normal.woff2 +0 -0
  10. package/fonts/@fontsource/fraunces/files/fraunces-latin-ext-700-normal.woff2 +0 -0
  11. package/fonts/@fontsource/fraunces/files/fraunces-vietnamese-400-normal.woff2 +0 -0
  12. package/fonts/@fontsource/fraunces/files/fraunces-vietnamese-700-normal.woff2 +0 -0
  13. package/fonts/@fontsource/fraunces/package.json +6 -0
  14. package/kit/check-messages.mjs +18 -7
  15. package/kit/check.mjs +12 -4
  16. package/kit/core/article-render.mjs +5 -5
  17. package/kit/core/build-core.mjs +25 -9
  18. package/kit/core/check-parity.mjs +1 -1
  19. package/kit/core/check-rules.mjs +2 -2
  20. package/kit/core/check-source.mjs +3 -0
  21. package/kit/core/colab-core.mjs +1 -1
  22. package/kit/core/kicker.mjs +42 -0
  23. package/kit/core/layout-scan.mjs +19 -7
  24. package/kit/core/llm-pack-data.mjs +8 -8
  25. package/kit/core/llm-pack.mjs +2 -2
  26. package/kit/core/theme-shapes.mjs +3 -1
  27. package/kit/core/themes-list.mjs +2 -0
  28. package/kit/instruction-version.json +1 -1
  29. package/kit/layouts.css +8 -0
  30. package/kit/player.json +1 -1
  31. package/kit/player.lock.json +2 -2
  32. package/package.json +2 -1
  33. package/themes/asagi/theme.json +1 -1
  34. package/themes/asagi/tokens.css +6 -0
  35. package/themes/bengara/theme.json +13 -0
  36. package/themes/bengara/tokens.css +66 -0
  37. package/themes/business/theme.json +1 -1
  38. package/themes/business/tokens.css +6 -0
  39. package/themes/default/theme.json +1 -1
  40. package/themes/default/tokens.css +9 -0
  41. package/themes/kogecha/theme.json +1 -1
  42. package/themes/kogecha/tokens.css +6 -0
  43. package/themes/kokugo/theme.json +1 -1
  44. package/themes/kokugo/tokens.css +6 -0
  45. package/themes/murasaki/theme.json +1 -1
  46. package/themes/murasaki/tokens.css +6 -0
  47. package/themes/sumi/theme.json +1 -1
  48. package/themes/sumi/tokens.css +8 -0
  49. package/themes/tokiwa/theme.json +1 -1
  50. package/themes/tokiwa/tokens.css +6 -0
  51. package/themes.lock.json +90 -24
  52. package/vendor/components/CATALOG.md +11 -11
  53. package/vendor/components/sha256/04626b77b3c683fd4c8e549339eca153615e021eb0e649c31291deb2dab30667/README.en.md +38 -0
  54. package/vendor/components/sha256/04626b77b3c683fd4c8e549339eca153615e021eb0e649c31291deb2dab30667/index.js +289 -0
  55. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/ABCJS-ADAPTER.md +101 -0
  56. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/LICENSE-abcjs.txt +21 -0
  57. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/chords.json +89 -0
  58. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/doremi.json +261 -0
  59. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/extras.json +192 -0
  60. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/kaeru.json +521 -0
  61. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/rhythm.json +248 -0
  62. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/fixtures/ties.json +360 -0
  63. package/vendor/components/sha256/0c4eb83646ab8027d40697db161eb952425db78c42b36291626214d5064b9498/index.js +508 -0
  64. package/vendor/components/sha256/0dc2a0945e7a4004278fcc9b8f02223bbb87f6269bffe3dd3ebeb3a78ce23d34/index.js +404 -0
  65. package/vendor/components/sha256/0e2e45b024bb2f37e82c83a4d9cd9f9c16b5dc4924dde81735c268a3d49f9d7f/index.js +97 -0
  66. package/vendor/components/sha256/0ef62e33d330f8e31ccb1f480b5e3b349769a142cc2737a9e6583d5eff9f56ca/index.js +919 -0
  67. package/vendor/components/sha256/1b33a252d51091e2d8cdea176f10268f128640bed3aa46da88d7de31ced59b44/README.en.md +48 -0
  68. package/vendor/components/sha256/1b33a252d51091e2d8cdea176f10268f128640bed3aa46da88d7de31ced59b44/index.js +384 -0
  69. package/vendor/components/sha256/1b767b6cf1855156872f87981a7c99f0161013499d6c4b21785624435db92078/README.en.md +34 -0
  70. package/vendor/components/sha256/1b767b6cf1855156872f87981a7c99f0161013499d6c4b21785624435db92078/index.js +244 -0
  71. package/vendor/components/sha256/3ace61e46a4555eab46ca8053db2fb76a874d4d5409bc5891cc449f43ef7e0bd/README.en.md +44 -0
  72. package/vendor/components/sha256/3ace61e46a4555eab46ca8053db2fb76a874d4d5409bc5891cc449f43ef7e0bd/index.js +304 -0
  73. package/vendor/components/sha256/4079077e03343995edc5e34b8bda0cf200dc6d854a52486fe0a6a4ceaf0d4b6f/README.en.md +44 -0
  74. package/vendor/components/sha256/4079077e03343995edc5e34b8bda0cf200dc6d854a52486fe0a6a4ceaf0d4b6f/index.js +203 -0
  75. package/vendor/components/sha256/40aaaaf988e7c32460ffaf5f18b5690ee28fd1fe7e879d8434d58283992bc554/README.en.md +37 -0
  76. package/vendor/components/sha256/40aaaaf988e7c32460ffaf5f18b5690ee28fd1fe7e879d8434d58283992bc554/index.js +438 -0
  77. package/vendor/components/sha256/442be174439d106ef462c19d598c407e86d5de3fcd4700ed54ae4147c4b9969c/README.en.md +24 -0
  78. package/vendor/components/sha256/442be174439d106ef462c19d598c407e86d5de3fcd4700ed54ae4147c4b9969c/index.js +103 -0
  79. package/vendor/components/sha256/48a776e7683e1aba8cad5aa4067914c017681efaa74f175066e0ab081bf3d013/index.js +351 -0
  80. package/vendor/components/sha256/4a9331635c2dd28e4b46108eaffe49c6d29cf626ecb900ac6e9029552be0cf49/index.js +607 -0
  81. package/vendor/components/sha256/5458baef7a30298cf4b0029331f13233d162403e686f9c20085dd2104cad7141/README.en.md +23 -0
  82. package/vendor/components/sha256/5458baef7a30298cf4b0029331f13233d162403e686f9c20085dd2104cad7141/index.js +120 -0
  83. package/vendor/components/sha256/586063d3a4e24e2995923811b2b9466bde86dbaafb3bcf103546d3f28159205a/index.js +812 -0
  84. package/vendor/components/sha256/5acc5f87e29f1170bc35dbee08087d0d03c1023969c6c1b1367a0f559d60e5ee/index.js +198 -0
  85. package/vendor/components/sha256/5c032594230fe688f661b6ccf27070c84f8c0e38611186280fb9c56d89ac3319/README.en.md +32 -0
  86. package/vendor/components/sha256/5c032594230fe688f661b6ccf27070c84f8c0e38611186280fb9c56d89ac3319/index.js +222 -0
  87. package/vendor/components/sha256/603de10f0ee50d07ec610e21b45b9db78d69376b4dfd2baba78595c1002e27ec/README.en.md +50 -0
  88. package/vendor/components/sha256/603de10f0ee50d07ec610e21b45b9db78d69376b4dfd2baba78595c1002e27ec/index.js +171 -0
  89. package/vendor/components/sha256/609e45a826d07a54cbbcbf4ce2ad6b5474dca1d0be394eb9fad895db4a73422f/README.en.md +51 -0
  90. package/vendor/components/sha256/609e45a826d07a54cbbcbf4ce2ad6b5474dca1d0be394eb9fad895db4a73422f/index.js +228 -0
  91. package/vendor/components/sha256/6364043cb31bbd86aacb7432af1a8affef8cae5c6efdbe13fbebd116fd51b91f/index.js +233 -0
  92. package/vendor/components/sha256/6f9f7283226d3534aa1cb4a47ba258204aa286ead01b25cdbde14119260bc702/README.en.md +66 -0
  93. package/vendor/components/sha256/6f9f7283226d3534aa1cb4a47ba258204aa286ead01b25cdbde14119260bc702/index.js +920 -0
  94. package/vendor/components/sha256/72edfd6678b22be0bb3e32b0d8cb0dfee403767e1eacac354d278d7318d03826/README.en.md +35 -0
  95. package/vendor/components/sha256/72edfd6678b22be0bb3e32b0d8cb0dfee403767e1eacac354d278d7318d03826/index.js +179 -0
  96. package/vendor/components/sha256/7482c50bea5ef7d72dc5d4afaddb8c4e725b5a83fa0c6175f9a9c556f23a4e10/LICENSE-tabler.txt +21 -0
  97. package/vendor/components/sha256/7482c50bea5ef7d72dc5d4afaddb8c4e725b5a83fa0c6175f9a9c556f23a4e10/index.js +4868 -0
  98. package/vendor/components/sha256/7482c50bea5ef7d72dc5d4afaddb8c4e725b5a83fa0c6175f9a9c556f23a4e10/names.txt +4808 -0
  99. package/vendor/components/sha256/7cb8948c550b66bf4b34a62e7b61385aaa79896e09d82ccb1846c0ac499ad352/README.en.md +40 -0
  100. package/vendor/components/sha256/7cb8948c550b66bf4b34a62e7b61385aaa79896e09d82ccb1846c0ac499ad352/index.js +348 -0
  101. package/vendor/components/sha256/87cc60da38d209cda449dd7c24171e287ac8184c5036ca04548ef9e2015c2d9e/README.en.md +42 -0
  102. package/vendor/components/sha256/87cc60da38d209cda449dd7c24171e287ac8184c5036ca04548ef9e2015c2d9e/index.js +268 -0
  103. package/vendor/components/sha256/8cb367c71c002c689defddc6f075be911d5485421715119b5515181e962a2401/index.js +121 -0
  104. package/vendor/components/sha256/97bfd6e79c7278c55153bf4c2330da0432cf0ee312baa11650e07cdd7912831d/index.js +354 -0
  105. package/vendor/components/sha256/a426e6a3f8f4593403ba63ecc4a3f1f41064f4016fd9fb8d51e7876bf8c6f573/README.en.md +40 -0
  106. package/vendor/components/sha256/a426e6a3f8f4593403ba63ecc4a3f1f41064f4016fd9fb8d51e7876bf8c6f573/index.js +348 -0
  107. package/vendor/components/sha256/c108119117042cacc65a35ec73fcab95a2a92b2a2797129f66e326783f8db178/index.js +465 -0
  108. package/vendor/components/sha256/c3fad2047cec6a2bd8a5b907f752e2addeeea2f373fd8115914552dcee0b2f6f/README.en.md +23 -0
  109. package/vendor/components/sha256/c3fad2047cec6a2bd8a5b907f752e2addeeea2f373fd8115914552dcee0b2f6f/index.js +289 -0
  110. package/vendor/components/sha256/c59f1ac3132fdf6f56e8880c866570cd7443f09eb8802b6e7af32675ad358edf/README.en.md +31 -0
  111. package/vendor/components/sha256/c59f1ac3132fdf6f56e8880c866570cd7443f09eb8802b6e7af32675ad358edf/index.js +236 -0
  112. package/vendor/components/sha256/d3a75f67160490db1831aaa8ac58ebc5f7ffb6a6fd21e2bdeaa6fe979bfaff7f/README.en.md +42 -0
  113. package/vendor/components/sha256/d3a75f67160490db1831aaa8ac58ebc5f7ffb6a6fd21e2bdeaa6fe979bfaff7f/index.js +488 -0
  114. package/vendor/components/sha256/d998b5db828427505e39cdae67676dc6480c791d6037152dec222ae81cdbba1f/index.js +484 -0
  115. package/vendor/components/sha256/ea17602aaecca64b672b3bc827965ff378cb460250177f7b66f73081a48d4e81/index.js +278 -0
  116. package/vendor/components/sha256/f9cef6dd9580a4f19aa09d47f736ab2391f5f585b20b16a62bd781398cb6b8ac/README.en.md +22 -0
  117. package/vendor/components/sha256/f9cef6dd9580a4f19aa09d47f736ab2391f5f585b20b16a62bd781398cb6b8ac/index.js +145 -0
  118. package/vendor/components-2/manifest-2.8.0.json +2199 -0
  119. package/vendor/themes/asagi/1.2.0/theme.json +14 -0
  120. package/vendor/themes/asagi/1.2.0/tokens.css +30 -0
  121. package/vendor/themes/business/1.2.0/theme.json +5 -0
  122. package/vendor/themes/business/1.2.0/tokens.css +41 -0
  123. package/vendor/themes/default/1.4.0/theme.json +4 -0
  124. package/vendor/themes/default/1.4.0/tokens.css +86 -0
  125. package/vendor/themes/kogecha/1.2.0/theme.json +10 -0
  126. package/vendor/themes/kogecha/1.2.0/tokens.css +29 -0
  127. package/vendor/themes/kokugo/1.2.0/theme.json +5 -0
  128. package/vendor/themes/kokugo/1.2.0/tokens.css +25 -0
  129. package/vendor/themes/murasaki/1.2.0/theme.json +10 -0
  130. package/vendor/themes/murasaki/1.2.0/tokens.css +25 -0
  131. package/vendor/themes/sumi/1.2.0/theme.json +10 -0
  132. package/vendor/themes/sumi/1.2.0/tokens.css +49 -0
  133. package/vendor/themes/tokiwa/1.2.0/theme.json +10 -0
  134. package/vendor/themes/tokiwa/1.2.0/tokens.css +27 -0
@@ -198,7 +198,7 @@ export const PACK = {
198
198
  },
199
199
  "steps": {
200
200
  "en": "One stage at a time",
201
- "ja": "1 つの段階ずつ"
201
+ "ja": "順を追って 1 つずつ"
202
202
  },
203
203
  "icon": "cycle"
204
204
  },
@@ -791,9 +791,9 @@ export const PACK = {
791
791
  "m-collect",
792
792
  "m-kakijun"
793
793
  ],
794
- "partsSrc": "https://github.com/egatari/components/blob/v2.7.0/components/",
794
+ "partsSrc": "https://github.com/egatari/components/blob/v2.8.0/components/",
795
795
  "en": {
796
- "common": "# Instructions for the AI\n\nPack version: `67a95271`\n\nYou will write one short **Egatari lesson**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both files are built and quality-checked automatically; anything not described here is not available. Write the lesson in the language the user asks for (slides and script in the same language). 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 the lesson short (5–8 slides). When the request gives an outline and a range of its slides, write exactly the slides of that range: the editor asks for at most 6 at a time, 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. Do not output files, a canvas or attachments: write both code blocks in the body of 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 lesson 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 with the columns `#`, heading and point (one line), one row per slide, every slide of the lesson 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 a lesson that already has 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>Lesson 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 lesson). `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- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Function formulas are arithmetic expressions only (`Math.exp(x)`, `x**2`); they are never run as code. Use parts only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table lists every part; use only those in the text you were given (§3, and the part sets included). 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. Text in figures is at least 24 px.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole lesson (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nThese standard parts may be used in any lesson; a part set, when it is included after §6, adds the parts of its kind of material. Generated from the part READMEs (their notes are in Japanese). “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations and delays in seconds) 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: <lesson 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 lesson, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
796
+ "common": "# Instructions for the AI\n\nPack version: `f086a47b`\n\nYou will write one short **Egatari lesson**: 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 the lesson 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 lesson 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 a lesson that already has 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>Lesson 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 lesson). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most.\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole lesson (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nThese standard parts may be used in any lesson; a part set, when it is included after §6, adds the parts of its kind of material. Generated from the part READMEs (their notes are in Japanese). “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations and delays in seconds) 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: <lesson 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 lesson, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. Some part sets end with an example of their own.\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
797
797
  "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 lesson**\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 lesson 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:",
798
798
  "sets": {
799
799
  "stats": "## Part set: stats (statistics charts)\n\nFor lessons 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}}",
@@ -1032,7 +1032,7 @@ export const PACK = {
1032
1032
  "extHead": "### `<{name}>`: extension for this part set (the part is described in §3)"
1033
1033
  },
1034
1034
  "ja": {
1035
- "common": "# AI への指示\n\n指示の版:`67a95271`\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- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo の束があるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を足す)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを足す(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** 動く図は一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っている束)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字の札・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない。図の中の字は 24 px 以上\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点は教材全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどの教材でも使える標準のパーツ。§6 の後に束の指示があれば、その種類の材料のパーツが加わる。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<教材の題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは頼まれたときだけ(3 人以上を頼まれても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ足すか、言い換えを確かめて(違えば直して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の見本の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを直し、ほかは変えず、`id=\"…\"` と `{#…}` をすべてそのまま残し(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 見本\n\n小さな教材の見本(架空。形を見るためで、中身は写さない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかの束の指示の最後にも見本がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
1035
+ "common": "# AI への指示\n\n指示のバージョン:`f086a47b`\n\n短い **Egatari の教材**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。教材は頼まれた言語で書きます(スライドと台本は同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、教材は短くする(5〜8 枚)。頼む文に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか頼まないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中も含め、字はすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらず字を 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 返事は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、返事の本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を頼まれたら(長い教材を 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の頼む文は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のある教材を渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` をそのまま残す\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>教材の題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(教材の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo の束があるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を足す)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを足す(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** 動く図は一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っている束)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字の札・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点は教材全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどの教材でも使える標準のパーツ。§6 の後に束の指示があれば、その種類の材料のパーツが加わる。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<教材の題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは頼まれたときだけ(3 人以上を頼まれても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ足すか、言い換えを確かめて(違えば直して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の見本の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを直し、ほかは変えず、`id=\"…\"` と `{#…}` をすべてそのまま残し(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 見本\n\n小さな教材の見本(架空。形を見るためで、中身は写さない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかの束の指示の最後にも見本がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
1036
1036
  "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- そのほかの希望:",
1037
1037
  "sets": {
1038
1038
  "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}}",
@@ -1104,7 +1104,7 @@ export const PACK = {
1104
1104
  "row": "| `<m-flow>` | 流れ図の箱と矢印をステップごとに出して、図を組み立てる | nodes と edges の step の最大 | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,step?,tone?,at?,shape?:str}[],edges?:{from:str\\|int,to:str\\|int,step?,label?,tone?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],pulseAt?:num,offset?:num,at?,loop?:bool\\|str}[]}` |",
1105
1105
  "entry": "### `<m-flow>`\n\nデータ(子の `<script type=\"application/json\">`)の見本: `{\"nodes\":[{\"id\":\"a\",\"label\":\"観測\",\"x\":20,\"y\":40,\"w\":200,\"h\":70,\"step\":1},{\"id\":\"b\",\"label\":\"更新\",\"x\":320,\"y\":40,\"w\":200,\"h\":70,\"step\":2}],\"edges\":[{\"from\":\"a\",\"to\":\"b\",\"step\":2}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 箱の字の大きさ(px) |\n| `pulse-n` | number | `3` | pulse で流れる点の数 |\n| `label-gap` | number | `12` | 辺の名前・金額と箱との最小の間(px)。近ければ線から離す |\n\n証明や手法の各ステップに合わせて箱と矢印を出し、文と図の対応を見せるときに使う。\n\n座標は要素の箱の px(`x`, `y` は箱の左上、`w`, `h` は大きさ)。\n\n- node:`id` `label`(`\\n` で改行)または `tex`(KaTeX)、`step`、`tone`(`term` / `emph` / `muted`)、`at`(ステップの中の開始秒)、`shape:\"diamond\"`(判断)\n- edge:`from` `to` `step`(既定は両端の箱の遅いほう)、`label`、`tone`、`dash`、`offset`(名前と線の距離)、`at`、`loop`(前の箱へ外側を回って戻る辺。回る側は `\"left\"` `\"right\"` `\"top\"` `\"bottom\"`、`true` なら両端が縦に並ぶとき右・横に並ぶとき下)\n- 色:線と線の名前は `--fg`(`tone` があればその色)。`muted` の箱は枠が `--muted`、地が `--bg`、字は `--fg`\n- 箱は薄く拡大しながら現れ、矢印は同じステップの箱が出てから引く",
1106
1106
  "ext": {
1107
- "business": "お金・モノの流れ(ビジネスモデルの図)のための edge の欄(書かなければこれまでと同じ):\n\n- `kind`:`money`(`--emph` の太線)・`service`(`--term`)・`data`(`--muted` の破線)。`tone` と `dash` を書けばそちらが勝つ\n- `amount`:金額などを太字で添える。`label` もあれば線の反対の側に書く\n- `shift`:線に垂直に(進む向きの右へ)ずらす px。同じ 2 つの箱の行きと帰りを `shift` を同じ値にして 2 本並べる。字はずらした側に書く\n- `pulse`:点の列(`pulse-n` 個、0.22 秒おき)が始点から終点へ `pulse-dur` 秒で流れる。`true` なら辺のステップに(引き終わってから)1 回、`[段階, …]` ならそのステップごとに 1 回(辺のステップでなければ `pulseAt` 秒、既定 0.2 秒から)。位置は (k, t) だけで決まり、流れ終わると消える(最終状態には出ない)。`pulse` のステップは図のステップの数にも数える\n- `cues(k)`:pulse の開始時刻を返す(pulse のない図はこれまでどおり null)。台本の `{cue}` の数と合えば、「お金は〜から〜へ{cue}」に合わせて流れる"
1107
+ "business": "お金・モノの流れ(ビジネスモデルの図)のための edge の欄(書かなければこれまでと同じ):\n\n- `kind`:`money`(`--emph` の太線)・`service`(`--term`)・`data`(`--muted` の破線)。`tone` と `dash` を書けばそちらが勝つ\n- `amount`:金額などを太字で添える。`label` もあれば線の反対の側に書く\n- `shift`:線に垂直に(進む向きの右へ)ずらす px。同じ 2 つの箱の行きと帰りを `shift` を同じ値にして 2 本並べる。字はずらした側に書く\n- `pulse`:点の列(`pulse-n` 個、0.22 秒おき)が始点から終点へ `pulse-dur` 秒で流れる。`true` なら辺のステップに(引き終わってから)1 回、`[ステップ, …]` ならそのステップごとに 1 回(辺のステップでなければ `pulseAt` 秒、既定 0.2 秒から)。位置は (k, t) だけで決まり、流れ終わると消える(最終状態には出ない)。`pulse` のステップは図のステップの数にも数える\n- `cues(k)`:pulse の開始時刻を返す(pulse のない図はこれまでどおり null)。台本の `{cue}` の数と合えば、「お金は〜から〜へ{cue}」に合わせて流れる"
1108
1108
  }
1109
1109
  },
1110
1110
  "m-folds": {
@@ -1176,7 +1176,7 @@ export const PACK = {
1176
1176
  "m-menu": {
1177
1177
  "set": "standard",
1178
1178
  "row": "| `<m-menu>` | スライドへのリンクの札を格子に並べる(目次・単元の選び方)。札はふつうの <a href=\"#<スライドの id>\">、行ったスライドの札に「見た」の印 | ceil(札の数 / per-step)(既定の per-step=\"0\" なら 0:初めから全部) | 子の `<a href>`(JSON ではない) |",
1179
- "entry": "### `<m-menu>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 列の数(0 なら札の数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列) |\n| `per-step` | number | `0` | 1 ステップに出す札の数(0 なら初めから全部出し、ステップを使わない) |\n| `size` | number | `34` | 札の題の字の大きさ(px)。副題はその 0.8 倍(本文の下限の 27px より小さくしない) |\n| `visited` | bool | `true` | このセッションで行き先のスライドを開いた札に「見た」の印を付ける |\n\n目次、授業の単元の選び方、「どこから見るか」を選ばせる 1 枚に使う。目次は取り込んだ後に足す。初稿では普通の箇条書き。\n```html\n<m-menu cols=\"3\" aria-label=\"今日の内容\">\n <a href=\"#s-njd4kp\" data-icon=\"一\" data-sub=\"孟浩然\">春暁</a>\n <a href=\"#s-uhqygr:2\" data-icon=\"二\" data-sub=\"読む順から\">春望</a>\n</m-menu>\n```\n\n- 子の `<a href>` 1 つが札 1 枚。`href` は `#<スライドの id>`(そのステップ 0)か `#<id>:<段階の鍵>`(`0`・`1`・… か `concl`)。id は取り込みのときに付く。中身(文字・`<b>` など)が札の題になる\n- `data-icon`:題の左の丸に入れる短い字(`一`・`1`・`A` など。色は `--term`)。`data-sub`:題の下の副題(`--muted`)\n- ステップ:`per-step=\"n\"` なら札が n 枚ずつステップごとに出る(`data-from` から。同じステップの中は `stagger` 秒ずつずれる)。まだ出ていない札は押せず、Tab でも選べず、読み上げない。\n `per-step=\"0\"`(既定)なら初めから全部(ステップを使わない)。ステップは (k, t) だけで決まる\n- 並び:`cols`(既定は札の数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列)。札の高さの下限は CSS の `--mm-h`(既定 104px)、間は `--mm-gap`(18px)。\n 本文いっぱいに置いて縦の真ん中にそろえるなら `style=\"height:100%;align-content:center;--mm-h:150px\"`"
1179
+ "entry": "### `<m-menu>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 列の数(0 なら札の数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列) |\n| `per-step` | number | `0` | 1 ステップに出す札の数(0 なら初めから全部出し、ステップを使わない) |\n| `size` | number | `34` | 札の題の字の大きさ(px)。副題はその 0.8 倍(本文の下限の 27px より小さくしない) |\n| `visited` | bool | `true` | このセッションで行き先のスライドを開いた札に「見た」の印を付ける |\n\n目次、授業の単元の選び方、「どこから見るか」を選ばせる 1 枚に使う。目次は取り込んだ後に足す。初稿では普通の箇条書き。\n```html\n<m-menu cols=\"3\" aria-label=\"今日の内容\">\n <a href=\"#s-njd4kp\" data-icon=\"一\" data-sub=\"孟浩然\">春暁</a>\n <a href=\"#s-uhqygr:2\" data-icon=\"二\" data-sub=\"読む順から\">春望</a>\n</m-menu>\n```\n\n- 子の `<a href>` 1 つが札 1 枚。`href` は `#<スライドの id>`(そのステップ 0)か `#<id>:<ステップの鍵>`(`0`・`1`・… か `concl`)。id は取り込みのときに付く。中身(文字・`<b>` など)が札の題になる\n- `data-icon`:題の左の丸に入れる短い字(`一`・`1`・`A` など。色は `--term`)。`data-sub`:題の下の副題(`--muted`)\n- ステップ:`per-step=\"n\"` なら札が n 枚ずつステップごとに出る(`data-from` から。同じステップの中は `stagger` 秒ずつずれる)。まだ出ていない札は押せず、Tab でも選べず、読み上げない。\n `per-step=\"0\"`(既定)なら初めから全部(ステップを使わない)。ステップは (k, t) だけで決まる\n- 並び:`cols`(既定は札の数から:3 枚までは 1 行、4 枚は 2 列、それより多ければ 3 列)。札の高さの下限は CSS の `--mm-h`(既定 104px)、間は `--mm-gap`(18px)。\n 本文いっぱいに置いて縦の真ん中にそろえるなら `style=\"height:100%;align-content:center;--mm-h:150px\"`"
1180
1180
  },
1181
1181
  "m-numberline": {
1182
1182
  "set": "math",
@@ -1272,9 +1272,9 @@ export const PACK = {
1272
1272
  "briefNote": "下に説明の節がないパーツは、表の「データの形」のとおりに子の JSON か属性を書き、ほかの属性は既定のままにする。",
1273
1273
  "extHead": "### `<{name}>`:この束の拡張(パーツの説明は §3)"
1274
1274
  },
1275
- "version": "67a95271",
1275
+ "version": "f086a47b",
1276
1276
  "tiers": {
1277
- "catalogue": "2.7.0",
1277
+ "catalogue": "2.8.0",
1278
1278
  "parts": {
1279
1279
  "m-balance": {
1280
1280
  "tier": "specialized",
@@ -8,7 +8,7 @@
8
8
  // buildPack({sets, lang, plan, exclude, off}) → 文字列 sets:束の名前の配列([] なら共通の本体だけ)か 'all'(全部。比べる・CI 用)か 'a,b'。
9
9
  // plan:'free'(既定。中核の 4 つのほかの標準の部品は一覧の 1 行だけ)| 'paid'(どの部品も詳しく)
10
10
  // SETS 束の名前(決まった順)
11
- // PACK_VERSION 指示の版(材料の SHA-256 の先頭 8 字。指示のはじめの行に出る)
11
+ // PACK_VERSION 指示のバージョン(材料の SHA-256 の先頭 8 字。指示のはじめの行に出る)
12
12
  // commonBody(lang, opts?)・setPart(name, lang, opts?) 共通の本体・1 つの束の部分(docs/authoring-with-llms*.md・docs/llm-parts/*.md と同じ中身は plan: 'paid'。
13
13
  // opts:{exclude, sets, off, plan})
14
14
  // PURPOSES 言いたいこと(新規作成の札と指示の表の材料。kit/core/purposes.mjs)
@@ -51,7 +51,7 @@ export const fitPlan = (ticked, plan, opts) => fitPlanOf(PACK, ticked, plan, opt
51
51
  export const fitPack = (ticked, plan, opts) => fitPackOf(PACK, ticked, plan, opts);
52
52
  export const fitSample = (ticked, plan, opts) => fitSampleOf(PACK, ticked, plan, opts);
53
53
 
54
- export const PACK_VERSION = PACK.version; // 指示の版(指示のはじめの「Pack version」の行と同じ。tools/make-llm-guide.mjs が材料から決める)
54
+ export const PACK_VERSION = PACK.version; // 指示のバージョン(指示のはじめの「Pack version」の行と同じ。tools/make-llm-guide.mjs が材料から決める)
55
55
 
56
56
  export const buildPack = (opts) => assemble(PACK, opts);
57
57
  // sets:入っている束(表が指す部品。省くと [] = 標準だけ)。off:外した札。plan:'free'(既定)| 'paid'
@@ -26,7 +26,7 @@ export const SHAPES = Object.freeze({
26
26
  // 淡い地の角丸、下線なし(浅葱)
27
27
  soft: `${H}{border-bottom:0;background:var(--base-wash);border-radius:16px;padding:8px 22px}`,
28
28
  // 基調色の帯に白抜き、下に --rule の線(墨)
29
- band: `${H}{left:0;right:0;top:0;padding:26px 48px 18px;background:var(--base);color:var(--sec-fg,#fff);border-bottom:4px solid var(--rule)}`,
29
+ band: `${H}{left:0;right:0;top:0;padding:26px 48px 18px;background:var(--base);color:var(--sec-fg,#fff);border-bottom:4px solid var(--rule)}\n.slide:not(.cover):not(.sec):not(.layout-tate) > .kicker{--kicker-color:var(--sec-fg,#fff);z-index:1}\n.slide:not(.cover):not(.sec):not(.layout-tate) > .kicker + h2{padding-top:48px;padding-bottom:4px}`,
30
30
  }),
31
31
  cover: Object.freeze({
32
32
  // 中央・上に細い帯(既定。kit/layouts.css のまま)
@@ -54,6 +54,8 @@ export const SHAPES = Object.freeze({
54
54
  'left-rule': '',
55
55
  // 角丸の枠(浅葱)
56
56
  rounded: '.slide:not(.layout-tate) .concl{border:2.3px solid var(--emph);border-radius:36px;padding-left:24px}',
57
+ // 枠も地もなく、上に --emph の線だけ(生成。#195)。左寄せ、太字と線で示す(色だけに頼らない)
58
+ rule: '.slide:not(.layout-tate) .concl{left:48px;border:0;border-top:2px solid var(--emph);border-radius:0;background:transparent;justify-content:flex-start;padding-left:0}',
57
59
  }),
58
60
  });
59
61
  // 名前のない形(look を書かないテーマ)は既定の形
@@ -9,6 +9,8 @@ export const CHOOSABLE = Object.freeze([
9
9
  { name: 'murasaki', label: { ja: '江戸紫', en: 'Edo purple' }, note: { ja: '研究・一般の講演向け', en: 'For research and public talks' } },
10
10
  { name: 'kogecha', label: { ja: '焦茶', en: 'Dark brown' }, note: { ja: '人文・歴史・地域向け', en: 'For humanities, history and local studies' } },
11
11
  { name: 'asagi', label: { ja: '浅葱', en: 'Teal' }, note: { ja: '小学校・広報・案内向け', en: 'For primary schools, publicity and guides' } },
12
+ // 弁柄(bengara):名前と向きは d5 が 2026-11-14 に決めた(同梱のテーマの名前は強調の色の名前。生成は「生成 AI」と読まれるので避けた)
13
+ { name: 'bengara', label: { ja: '弁柄', en: 'Red ochre' }, note: { ja: '講演・読み物・式典向け', en: 'For talks, reading and ceremonies' } },
12
14
  ].map((t) => Object.freeze(t)));
13
15
  export const RETIRED = Object.freeze(['business']);
14
16
  // 選べなくしたテーマの見せる名前(その教材を開いたときの「テーマを変更…」の今のテーマ)
@@ -1,3 +1,3 @@
1
1
  {
2
- "instruction": "67a95271"
2
+ "instruction": "f086a47b"
3
3
  }
package/kit/layouts.css CHANGED
@@ -4,6 +4,14 @@
4
4
  結論の行は上端 571px・高さ 72px。色はテーマの変数だけを使う */
5
5
  .slide h2{position:absolute;left:48px;right:48px;top:40px;margin:0;font-size:43px;line-height:1.25;font-weight:700;
6
6
  padding-bottom:10px;border-bottom:2px solid var(--rule);color:var(--title)}
7
+ /* 肩見出し(kicker):見出しの上の短い言葉。本文の位置は変えず、同じステップ 0 で見せる */
8
+ .kicker{position:absolute;left:48px;right:48px;top:16px;margin:0 0 8px;font-size:var(--kicker-size,24px);line-height:1;
9
+ color:var(--kicker-color,var(--muted));font-weight:var(--kicker-weight,700)}
10
+ :lang(en) .kicker{text-transform:uppercase;letter-spacing:.08em}
11
+ /* 表紙・章の扉には置かない(kickerSlide)が、置かれても上端の帯(.cover::before、10px)に重ねない */
12
+ .cover > .kicker,.sec > .kicker{top:24px}
13
+ /* 肩見出しのあるスライドだけ、見出しを 8px 下げる(肩見出し 16〜40px、見出しは 48px から。本文の位置 122px は変えない)。位置はテーマでなくここで決める(d5 2026-11-14) */
14
+ .slide > .kicker + h2{top:48px}
7
15
  .body{position:absolute;left:48px;right:48px;top:122px;bottom:160px;font-size:32px;line-height:1.45}
8
16
  .slide.noconcl .body{bottom:64px}
9
17
  .sub{font-size:32px;font-weight:700;color:var(--emph);margin:0 0 8px}
package/kit/player.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "egatari-player",
3
- "version": "1.5.2",
3
+ "version": "1.6.0",
4
4
  "title": "Egatari Player"
5
5
  }
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.5.2",
3
- "sha256": "90372777bb28769e515a11dd1844762e0a9bfd2f25085808a138a0dd15251895"
2
+ "version": "1.6.0",
3
+ "sha256": "9814f1675dd36341257e965535069c335bcf761f94cf46a904a8ca42146b266a"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "egatari",
3
- "version": "0.6.11",
3
+ "version": "0.6.12-rc.1",
4
4
  "license": "MIT",
5
5
  "homepage": "https://studio.egatari.org/",
6
6
  "repository": {
@@ -114,6 +114,7 @@
114
114
  "@fontsource/atkinson-hyperlegible-next": "5.3.0",
115
115
  "@fontsource/biz-udpgothic": "5.3.0",
116
116
  "@fontsource/biz-udpmincho": "5.3.0",
117
+ "@fontsource/fraunces": "5.3.0",
117
118
  "@fontsource/klee-one": "5.3.1",
118
119
  "@fontsource/shippori-mincho": "5.3.0",
119
120
  "@fontsource/source-code-pro": "5.3.1",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "asagi",
3
3
  "extends": "default",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "fonts": {
6
6
  "body": "Zen Maru Gothic",
7
7
  "heading": "Zen Maru Gothic"
@@ -18,6 +18,12 @@
18
18
  --obj-pink: #F58CBC;
19
19
  --obj-orange: #F59A23;
20
20
  --obj-gray: #949494;
21
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 8.0:1(3:1 以上)。分類や意味には使わない。1.3.0 */
22
+ --ramp-1: #D5ECF7;
23
+ --ramp-2: #9DC9DB;
24
+ --ramp-3: #62A2BD;
25
+ --ramp-4: #277C9A;
26
+ --ramp-5: #02556E;
21
27
  }
22
28
  /* look heading: soft */
23
29
  .slide:not(.cover):not(.sec):not(.layout-tate) > h2{border-bottom:0;background:var(--base-wash);border-radius:16px;padding:8px 22px}
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "bengara",
3
+ "extends": "default",
4
+ "version": "1.0.0",
5
+ "fonts": {
6
+ "heading": "Fraunces"
7
+ },
8
+ "look": {
9
+ "heading": "underline",
10
+ "cover": "top-band",
11
+ "concl": "rule"
12
+ }
13
+ }
@@ -0,0 +1,66 @@
1
+ /* 弁柄(bengara):暖かい紙の地に深い墨の字、強調は弁柄の 1 色だけ。見出しは表示用のセリフ Fraunces(OFL。ラテン文字)と
2
+ BIZ UDP明朝(日本語)、本文は既定の BIZ UDPゴシック。飾りは細い線だけにして余白を広く見せる(箱の位置と大きさは既定のまま)。
3
+ 結論の行は枠も地もなく、上に弁柄の線(look concl: rule)。のちの背景の画像(#141)の字の下に敷く半透明の地 --scrim を持つ。#195 */
4
+ :root{
5
+ --base: #26364A; /* 墨の藍。用語・補足(紙の地 11.0:1) */
6
+ --emph: #A3361C; /* 弁柄。結論・問題(紙の地 6.1:1)。強調はこの 1 色だけ */
7
+ --accent2: #3F6468; /* 2 つ目の系列。くすんだ青緑(紙の地 5.8:1) */
8
+ --fg: #24211D; /* 深い墨(紙の地 14.4:1) */
9
+ --bg: #F7F2E7; /* 暖かい紙 */
10
+ --muted: #5E574E; /* 温かい灰(紙の地 6.4:1) */
11
+ --line: #D6CCBA;
12
+ --title: #24211D;
13
+ --rule: #3A352E; /* 見出しの下の線は墨(強調の色を飾りに使わない) */
14
+ --cover-bg: #F1EADB;
15
+ --sec-bg: #26364A;
16
+ --sec-fg: #F7F2E7;
17
+ --concl-bg: #F7F2E7; /* 結論の行は地のまま(枠も地もない。上の線と太字で示す) */
18
+ --base-tint: #D9DCDD;
19
+ --base-wash: #EFEBE2;
20
+ --term-tint: #EFEBE2;
21
+ --emph-tint: #F2E2D8;
22
+ --comp-tint: #E6DCC9;
23
+ --series-1: var(--base);
24
+ --series-2: var(--emph);
25
+ --series-3: var(--accent2);
26
+ --series-4: #8C8478;
27
+ --kicker-color: var(--emph);
28
+ --font-display: "Fraunces", var(--font-mincho);
29
+ /* 背景の画像(#141)の上の字の下に敷く、紙の色の半透明の地(強いほうは小さな字や細い線の下に) */
30
+ --scrim: rgba(247, 242, 231, .86);
31
+ --scrim-strong: rgba(247, 242, 231, .94);
32
+ --lit: #F2B705; /* 光と照らされる側。山吹(紙の地 1.7:1。字の色ではなく、輪郭線と一緒に描く) */
33
+ /* 物の色(format spec §8.4):内容そのものである色。default と同じ値(どのテーマでも赤い玉は同じ赤)。名前か頭文字を添え、白・黒と地に近い色には輪郭線 */
34
+ --obj-white: #FFFFFF;
35
+ --obj-black: #222222;
36
+ --obj-red: #E0242B;
37
+ --obj-green: #2E9E44;
38
+ --obj-yellow: #F5D90A;
39
+ --obj-blue: #1E6FD9;
40
+ --obj-brown: #8B5A2B;
41
+ --obj-purple: #8E44AD;
42
+ --obj-pink: #F27BB0;
43
+ --obj-orange: #F28C1A;
44
+ --obj-gray: #8C8C8C;
45
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 7.5:1(3:1 以上)。分類や意味には使わない。1.0.0 */
46
+ --ramp-1: #E2E9F2;
47
+ --ramp-2: #B6C2D2;
48
+ --ramp-3: #899AB0;
49
+ --ramp-4: #60738C;
50
+ --ramp-5: #3B4F67;
51
+ }
52
+ @supports (color: color-mix(in oklch, red 10%, white)){
53
+ :root{
54
+ --base-tint: color-mix(in oklch, var(--base) 16%, var(--bg));
55
+ --base-wash: color-mix(in oklch, var(--base) 5%, var(--bg));
56
+ --term-tint: color-mix(in oklch, var(--base) 5%, var(--bg));
57
+ --emph-tint: color-mix(in oklch, var(--emph) 10%, var(--bg));
58
+ --scrim: color-mix(in srgb, var(--bg) 86%, transparent);
59
+ --scrim-strong: color-mix(in srgb, var(--bg) 94%, transparent);
60
+ }
61
+ }
62
+ /* 見出しの字:ラテン文字は Fraunces、日本語は BIZ UDP明朝(字ごとに後ろの字体へ) */
63
+ .slide h2,.cover h1,.sec h1,.sec h2{font-family:var(--font-display);font-variant-numeric:lining-nums} /* Fraunces の既定の数字は高さのそろわない形:見出しの「3」が沈まないように */
64
+ /* look concl: rule */
65
+ .slide:not(.layout-tate) .concl{left:48px;border:0;border-top:2px solid var(--emph);border-radius:0;background:transparent;justify-content:flex-start;padding-left:0}
66
+ /* /look */
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "business",
3
3
  "extends": "default",
4
- "version": "1.2.0"
4
+ "version": "1.3.0"
5
5
  }
@@ -31,6 +31,12 @@
31
31
  --obj-pink: #F27BB0;
32
32
  --obj-orange: #F28C1A;
33
33
  --obj-gray: #8C8C8C;
34
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 8.4:1(3:1 以上)。分類や意味には使わない。1.3.0 */
35
+ --ramp-1: #DDE9F8;
36
+ --ramp-2: #ADC3DE;
37
+ --ramp-3: #7C9BC0;
38
+ --ramp-4: #50749E;
39
+ --ramp-5: #2A4F78;
34
40
  }
35
41
  @supports (color: color-mix(in oklch, red 10%, white)){
36
42
  :root{
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "default",
3
- "version": "1.4.0"
3
+ "version": "1.5.0"
4
4
  }
@@ -40,6 +40,12 @@
40
40
  --obj-pink: #F27BB0;
41
41
  --obj-orange: #F28C1A;
42
42
  --obj-gray: #8C8C8C;
43
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 8.6:1(3:1 以上)。分類や意味には使わない。1.5.0 */
44
+ --ramp-1: #DAE9FF;
45
+ --ramp-2: #A1C3F3;
46
+ --ramp-3: #6A9ADC;
47
+ --ramp-4: #3A71BD;
48
+ --ramp-5: #0A4A97;
43
49
 
44
50
  /* 先のステップを薄く見せるときの濃さ(format spec §8.4 の --preview-opacity。プレーヤーも部品もこれを読む) */
45
51
  --preview-opacity: .45;
@@ -53,6 +59,9 @@
53
59
  /* 字 */
54
60
  --font-sans: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
55
61
  --weight-body: 400;
62
+ --kicker-size: 24px;
63
+ --kicker-color: var(--muted);
64
+ --kicker-weight: 700;
56
65
 
57
66
  /* 字幕(s):字の大きさ・下端からの距離・左右の余白・1 まとまりの行数の上限。読む速さ(字/秒)は --cap-rate(既定 ja 7、en 15) */
58
67
  --cap-size: 27px;
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kogecha",
3
3
  "extends": "default",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "look": {
6
6
  "heading": "double",
7
7
  "cover": "frame",
@@ -20,6 +20,12 @@
20
20
  --obj-pink: #DC86AE;
21
21
  --obj-orange: #D9822B;
22
22
  --obj-gray: #8A8782;
23
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 8.2:1(3:1 以上)。分類や意味には使わない。1.3.0 */
24
+ --ramp-1: #EEE5E6;
25
+ --ramp-2: #CBBDBE;
26
+ --ramp-3: #A79394;
27
+ --ramp-4: #816B6D;
28
+ --ramp-5: #5C4748;
23
29
  }
24
30
  /* look heading: double */
25
31
  .slide:not(.cover):not(.sec):not(.layout-tate) > h2{border-bottom:6px double var(--base)}
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "kokugo",
3
3
  "extends": "default",
4
- "version": "1.2.0"
4
+ "version": "1.3.0"
5
5
  }
@@ -22,4 +22,10 @@
22
22
  --obj-pink: #F27BB0;
23
23
  --obj-orange: #F28C1A;
24
24
  --obj-gray: #8C8C8C;
25
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 8.4:1(3:1 以上)。分類や意味には使わない。1.3.0 */
26
+ --ramp-1: #DAE9FE;
27
+ --ramp-2: #A9C3E8;
28
+ --ramp-3: #769ACE;
29
+ --ramp-4: #4973AD;
30
+ --ramp-5: #224C87;
25
31
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "murasaki",
3
3
  "extends": "default",
4
- "version": "1.2.0",
4
+ "version": "1.3.0",
5
5
  "look": {
6
6
  "heading": "left-bar",
7
7
  "cover": "bottom-band",
@@ -15,6 +15,12 @@
15
15
  --obj-pink: #F27BB0;
16
16
  --obj-orange: #F28C1A;
17
17
  --obj-gray: #8C8C8C;
18
+ /* 量の色の段(format spec §8.4。#200):低→高の 5 段(ヒートマップ・密度・速さ)。基調色の色相で、OKLCH の明るさが単調に下がり、--ramp-5 は地と 9.1:1(3:1 以上)。分類や意味には使わない。1.3.0 */
19
+ --ramp-1: #EAE3FF;
20
+ --ramp-2: #C6B6F0;
21
+ --ramp-3: #A088D9;
22
+ --ramp-4: #7B5CBA;
23
+ --ramp-5: #583393;
18
24
  }
19
25
  /* look heading: left-bar */
20
26
  .slide:not(.cover):not(.sec):not(.layout-tate) > h2{border-bottom:0;border-left:10px solid var(--base);padding:4px 0 4px 18px}