egatari 0.6.19 → 0.6.20-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +7 -2
- package/README.md +7 -2
- package/components.lock.json +6 -3
- package/components2.lock.json +172 -1
- package/kit/check-messages.mjs +2 -2
- package/kit/check.mjs +5 -3
- package/kit/core/bookmark.mjs +13 -0
- package/kit/core/llm-pack-assemble.mjs +13 -8
- package/kit/core/llm-pack-data.mjs +48 -20
- package/kit/core/llm-pack.mjs +2 -1
- package/kit/core/script-unclosed.mjs +25 -8
- package/kit/instruction-version.json +1 -1
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/templates/new-deck.mjs +1 -1
- package/kit/tools.js +136 -4
- package/package.json +1 -1
- package/server/script-field.js +1 -1
- package/vendor/components/CATALOG.md +3 -3
- package/vendor/components/sha256/8a9215c7fea15265c2f3038f3d01a2f72441fc1e931245dee46dcaacf3548a98/README.en.md +38 -0
- package/vendor/components/sha256/8a9215c7fea15265c2f3038f3d01a2f72441fc1e931245dee46dcaacf3548a98/index.js +414 -0
- package/vendor/components/sha256/91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955/README.en.md +40 -0
- package/vendor/components/sha256/91be5c714c046244436569ecac24d9d1eb84504b3e28d8899fc89a5865e8d955/index.js +355 -0
- package/vendor/components/sha256/9a426812105a44446e8b3f98e0ccfdb6701e8386c08e8aa201b69cb5b52a4c1f/index.js +278 -0
- package/vendor/components/sha256/ad4d42a34eff125d8ccd7caf9ac329b7a8092960e7ee872fdeb853bd9c57942f/README.en.md +54 -0
- package/vendor/components/sha256/ad4d42a34eff125d8ccd7caf9ac329b7a8092960e7ee872fdeb853bd9c57942f/index.js +470 -0
- package/vendor/components/sha256/b35d01e480a203dc27aa18b0d341cc1cbc2dcca69235e909919484f1545b371f/README.en.md +23 -0
- package/vendor/components/sha256/b35d01e480a203dc27aa18b0d341cc1cbc2dcca69235e909919484f1545b371f/index.js +150 -0
- package/vendor/components-2/manifest-2.22.0.json +3240 -0
|
@@ -911,21 +911,21 @@ export const PACK = {
|
|
|
911
911
|
"m-collect",
|
|
912
912
|
"m-kakijun"
|
|
913
913
|
],
|
|
914
|
-
"partsSrc": "https://github.com/egatari/components/blob/v2.
|
|
914
|
+
"partsSrc": "https://github.com/egatari/components/blob/v2.22.0/components/",
|
|
915
915
|
"en": {
|
|
916
|
-
"common": "# Instructions for the AI\n\nPack version: `027f5293`\n\nYou will write one short **Egatari file**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both are built and quality-checked automatically; only what is described here is available. Write slides and script in the language the user asks for. Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep it short (5–8 slides). Given an outline and a range of its slides, write exactly that range (at most 6 slides, so they fit).\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and parts, is at least 24 px.**\n- **Charts and figures:** parts draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the part, not the text. A part of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a part when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. No files, canvas or attachments: write both blocks in your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the lesson would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long file made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table (columns `#`, heading, one-line point), one row per slide, all slides in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and script headings without `{#…}`. The editor adds ids after import. When you are given slides that already have ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the slides and script). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n<!--paid-->- On a slide that uses numbers, a figure or a quotation, write a source line above the conclusion (`<p class=\"source\">Source: …</p>`)<!--/paid-->\n- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it), and the `data-morph` attribute (§2.5).\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- **R-caution** In `.body`: `<div class=\"caution\">…</div>` for caution; add `warn` for warning. Labels are automatic.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most. Choose how a table appears by how it compares. When the script takes items one at a time, show rows in the order spoken. For a matrix (things compared down the side, criteria across) or a table crossing two axes, show the whole table and then mark the column or cell under discussion, or fill it one axis value at a time. In a research-positioning table, write \"This work\" in your own cell (do not mark it by colour or bold alone).\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`, `\\morph{ID}{…}`. No `\\newcommand`, no `\\color`. To label a term, use `\\underbrace{…}_{\\text{…}}` or `\\overbrace{…}^{…}`. Never `$$`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks and morphs\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n<!--paid-->- Where a photo is needed, write a figure box (the Figure template) with a description of the photo; the author adds the image later<!--/paid-->\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole file (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nStandard parts fit any file; a part set after §6 adds the parts for its material. “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations, delays) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Script: <title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step labels `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has script lines** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no labels for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the part’s `cues(k)` (only where a part’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words). Give a reading only to a term misread without one, and then everywhere it appears.\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese script is polite spoken Japanese (です・ます); English script is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small example, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only. 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```",
|
|
916
|
+
"common": "# Instructions for the AI\n\nPack version: `79c82ff6`\n\nYou will write one short **Egatari file**: HTML slides with step-by-step reveals (`deck.html`) and a spoken script for it (`narration.md`). Both are built and quality-checked automatically; only what is described here is available. Write slides and script in the language the user asks for. Standards have ids such as **R-fit**; a fix request names the standards a draft broke. The user's request is in **What I want** at the end (or in the conversation before it): choose sensibly for any field that is empty or missing, and if both A and B are left, follow the one with content.\n\n**Before you start (the most common failures):**\n\n- **Both code blocks must be complete and closed.** Never stop in the middle of a block (R-output). Without an outline, keep it short (5–8 slides). Given an outline and a range of its slides, write exactly that range (at most 6 slides, so they fit).\n- **Sizes on the 1280×720 slide** (the quality checker measures them, R-fit): the body area is 1184 × 443 px (to 565 px; 1184 × 558 with `noconcl`). Body text is 32 px with 46 px per line, so about **8 lines** fit; every overflowing 46 px is one line to cut. **All text, also inside figures and parts, is at least 24 px.**\n- **Charts and figures:** parts draw their labels at 24–28 px whatever their size (their SVG uses their own pixels), so size the part, not the text. A part of 380 px leaves room for one short line; with two lines, use 330 px.\n- **Inline `<svg>`:** its text is scaled by displayed width ÷ viewBox width, so write the viewBox in the pixels it is shown at, e.g. `<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`, with `font-size` ≥ 24. Never combine `width:100%` with another viewBox width (a 600-wide viewBox shown 580 px wide turns 24 into 23.2 px). Prefer a part when one fits.\n\n## 1. Output format\n\n- **R-output** Reply with **exactly two fenced code blocks**, in this order, labelled `deck.html` and `narration.md` (the opening lines are ```` ```deck.html ```` and ```` ```narration.md ````). Put nothing between them; a one-line note before or after is fine. Never split a file over several blocks. No files, canvas or attachments: write both blocks in your chat message. Do not reference other files (no images, no `{{FIG:…}}`, no `{{JSON:…}}`, no external URLs, no `<link>`), and never stop in the middle of a block: if the lesson would be too long, make fewer slides (but for a range of an outline, write exactly the requested slides).\n- **R-outline** When the request asks for an **outline only** (a long file made in two passes), reply with exactly one fenced code block labelled `outline` (the opening line is ```` ```outline ````) and no `deck.html` or `narration.md`: a Markdown table (columns `#`, heading, one-line point), one row per slide, all slides in order. Each later request names a range (“slides 7–12 of the outline”): write exactly those slides, following their headings and points.\n- **R-noids** Do **not** write slide ids. Write `<section class=\"slide\">` without `id`, and script headings without `{#…}`. The editor adds ids after import. When you are given slides that already have ids (a fix request), keep every existing `id=\"…\"` and `{#…}` exactly as it is.\n\n## 2. deck.html\n\n### 2.1 Skeleton\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>Title</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`: `en`, `ja`, … (the language of the slides and script). `data-theme`: `sumi` for business and pitch decks, `kokugo` for Japanese language arts, otherwise `default`.\n- No `<script>` except part data (§2.6), no `<link>`. A `<style>` block is allowed only for layout (sizes, gaps), never colors.\n\n### 2.2 Slides\n\n- Normal slide: `<h2>` heading, `<div class=\"body\">…</div>`, then `<div class=\"concl\"><span>…</span></div>` (the conclusion line: one short sentence).\n<!--paid-->- On a slide that uses numbers, a figure or a quotation, write a source line above the conclusion (`<p class=\"source\">Source: …</p>`)\n<!--/paid--><!--paid-->- Optional kicker (a short line above the heading): one `<p class=\"kicker\">` just before the `<h2>` (ordinary slides only, not `layout-tate`); shown at step 0, not part of the heading. Type it normally, not in capitals (the theme capitalizes English).\n<!--/paid-->- Cover: `<section class=\"slide cover noconcl static\">` with optional `<div class=\"venue\">…</div>`, `<h1>title</h1>`, optional `<div class=\"au\">…</div>`.\n- Chapter divider: `<section class=\"slide sec noconcl static\"><h1>chapter title</h1></section>`.\n- Classes on `<section>`: `noconcl` (no conclusion line), `static` (no steps), `nostep` (all list items visible from the start), `layout-tate` (Japanese vertical writing; only with the kokugo part set, which describes it)<!--paid-->, and the `data-morph` attribute (§2.5)<!--/paid-->.\n- Inside `.body`: `<p class=\"sub\">` sub-heading, `<div class=\"big\">` main equation, `<p class=\"note\">` note, `<div class=\"thm\">` theorem box, `<div class=\"cols\">` side-by-side columns, ordinary `<p>`, `<ul>`, `<ol>`, `<table>`.\n- **R-caution** In `.body`: `<div class=\"caution\">…</div>` for caution; add `warn` for warning. Labels are automatic.\n- Inline emphasis (the only way to color text): `term` (term or question), `emph` (conclusion, problem, goal), `muted` (known result, de-emphasized), `b` (bold).\n- **R-headings** Every slide heading (`h1` on the cover and dividers, `h2` elsewhere) is **different** from all the others (add a word if two would be the same), and the script section of that slide starts with `## ` followed by **exactly the same heading text** (tags such as `<br>` dropped).\n- **R-colors** Colors only through the theme: the classes above and the math macros `\\hlE` `\\hlT` `\\hlM`; no hex, `rgb()`, named colors, `\\color` or `\\textcolor`. In a part or inline SVG: **Use only the theme's CSS variables for colors**: `var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`. In SVG write `style=\"stroke:var(--emph)\"` rather than an attribute (`DECK.el` moves `fill` and `stroke` into style automatically when they contain `var(`)\n\n### 2.3 Steps (reveal order = speaking order)\n\n- **R-steps** Step 0 is the slide as it first appears: context only (heading, sub-heading, one framing sentence). An element with `data-step=\"k\"` (k = 1, 2, …) appears at step k; material (list items, equations, table rows, figure parts) appears in the order you talk about it. An equation and the sentence that introduces it share one step (wrap both in `<div data-step=\"k\">`). About 5 steps per slide at most. Choose how a table appears by how it compares. When the script takes items one at a time, show rows in the order spoken. For a matrix (things compared down the side, criteria across) or a table crossing two axes, show the whole table and then mark the column or cell under discussion, or fill it one axis value at a time.<!--paid--> In a research-positioning table, write \"This work\" in your own cell (do not mark it by colour or bold alone).<!--/paid-->\n- The conclusion line automatically becomes the **last step**, `concl`; never put `data-step` on it.\n- If a slide has **no** `data-step` anywhere, its top-level list items (`.body > ul > li`, `.body > ol > li`) are numbered 1, 2, … automatically. As soon as any element has `data-step`, nothing is automatic: give every revealed element its `data-step`.\n- A part adds its own steps (§3), starting at its `data-from` (default 1).\n- So the steps of a slide are `0 … max` plus `concl` if it has a conclusion line. A `static` slide has only step 0.\n\n### 2.4 Math (KaTeX, rendered at build time)\n\n- **R-math** Inline `\\( … \\)`, display `\\[ … \\]`. Write `<` as `\\lt` and `>` as `\\gt` inside math. Allowed macros besides standard KaTeX: `\\hlE{…}` (emph) `\\hlT{…}` (term) `\\hlM{…}` (muted), `\\htmlId{ID}{…}`, `\\htmlData{mark=ID}{…}`, `\\htmlClass{…}{…}`<!--paid-->, `\\morph{ID}{…}`<!--/paid-->. No `\\newcommand`, no `\\color`. To label a term, use `\\underbrace{…}_{\\text{…}}` or `\\overbrace{…}^{…}`. Never `$$`. Define each symbol where it is first used (`\\(\\mu\\)`: the mean).\n\n### 2.5 Attention marks<!--paid--> and morphs<!--/paid-->\n\n- **R-marks** The script’s `{mark:ID}` (§4) marks a target on the **same slide**. Targets: an element in the slide with `id=\"ID\"` or `data-mark=\"ID\"`. For part of an equation, KaTeX's `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}` (the build allows only these two and `\\htmlClass`). If the same ID is used on several slides, use `data-mark` (ids must be unique in the document)\n<!--paid-->- Morph (optional): `<section class=\"slide\" data-morph>` slides elements from the previous slide into place; pair elements with the same `data-id=\"…\"` on both slides, or equation parts with `\\morph{ID}{…}` on both. Only elements visible at step 0 move.\n<!--/paid-->\n### 2.6 Parts\n\n- **R-components** Animated figures are the Web Components `<m-…>` of the catalog (§3), used inside `.body`. Give each a height (`style=\"height:380px\"`) and an `aria-label`. Data goes in **one** child `<script type=\"application/json\">…</script>` written inline (never `{{JSON:…}}`). **Numbers in figures must be correct** (compute them; never invent values for looks; label made-up business figures as fictional). Formulas are arithmetic only (`Math.exp(x)`, `x**2`), never run as code. Use parts only where motion explains something; most slides need none.\n<!--paid-->- Where a photo is needed, write a figure box (the Figure template) with a description of the photo; the author adds the image later<!--/paid-->\n\n### 2.7 Choosing a representation\n\n- **R-purpose** Choose the representation from what the slide must say, not from habit. If the author names a chart type, use it. The table names every part, but use only those described here (§3 and the included part sets). If a part that is not included would fit better, say so in a one-line note.\n\n{{PURPOSES}}\n\n- **R-whole** Lists, KPI cards and pies are shown whole; do not reveal them line by line unless the script discusses each item in turn (for a list, give it one `data-step` or put `nostep` on the slide).\n\n### 2.8 Fitting the slide (1280×720; the quality checker reports errors)\n\n- **R-title** Heading: Japanese at most 26 units (full-width character = 1, ASCII = 0.5); English at most 60 characters. Never ends with a colon.\n- **R-concl** Conclusion line: Japanese at most 35 units; English at most 70 characters. One line.\n- **R-fit** The body must end above 565 px (680 px with `noconcl`): about 8 lines / 100 Japanese characters / 60 English words per slide, or one `big` equation and 3 short bullets, or a part of height ≤ 380 px and one short line (≤ 330 px with two). If it does not fit, split the slide; never shrink text and never set font sizes.\n- **R-style** Japanese slides: plain style (だ・である, 体言止め), no です・ます on slides, one punctuation style in the whole file (`、。` or `,.`). English slides: short phrases, sentence case.\n\n## 3. Part catalog\n\nStandard parts fit any file; a part set after §6 adds the parts for its material. “steps” is how many slide steps a part uses (from `data-from`, default 1). Timing attributes (durations, delays) are not listed; their defaults fit the narration. Attribute values of type json are written as JSON in the attribute (`values=\"[0.1,0.5]\"`). In “data shape”, `?` marks an optional field; where no type is written, label, tex, note and tone are str, step is int and at is num. In a name or label, `*…*` is italic and `_` `^` make only the next character a subscript or superscript; to show the symbol itself, write the full-width _ ^ *.\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# Script: <title>\n\n## The decay law\n[0] Here is the decay law. We follow how many atoms are left.\n[1] The number left is the starting number times a shrinking exponential.\n[2] {mark:n0|circle}{N₀|N naught} is the number at the start, at time zero.\n[concl] The half-life depends only on the decay constant.\n```\n\n- One section per slide, **in slide order, for every slide (cover included)**: `## <slide heading>` (R-headings), no `{#id}` (R-noids).\n- **R-narr-steps** Step labels `[0]`, `[1]`, … and `[concl]`. **Every step of every slide has script lines** (step 0 to max, and `[concl]` if the slide has a conclusion line), and there are **no labels for steps that do not exist** (a `static` cover has only `[0]`; a slide without a conclusion line has no `[concl]`; never `[01]`). Within a step, talk only about what appears at that step.\n- **R-dialogue** **One narrator by default**: write no speaker names. Write a dialogue only when asked (if asked for three or more speakers, keep two roles and say so first): lines start with `Expert:` or `Novice:` (continuation lines indented; a line without a speaker is Expert), shaped as a cognitive apprenticeship:\n - Novice is never a mere backchannel: Novice voices the question a learner is likely to have, or paraphrases (“So …, is that right?”)\n - Expert answers and adds one example or analogy, or confirms (or corrects) the paraphrase and takes one step further\n - Only at a comprehension fork (where learners tend to misunderstand, or a “why” remains): at most one exchange per slide, 2–3 turns. Elsewhere Expert alone\n - Never a turn that is only “I see”, or that repeats the previous turn. Example: `Novice: So a larger rate always gets there faster?` `Expert: Not always. Too large, and each step jumps across the valley, like striding downhill onto the opposite slope.`\n- `{note:…}`: presenter directions.\n- `{cue}`: a sync point inside a step, one per entry of the part’s `cues(k)` (only where a part’s README asks for it; otherwise omit).\n- `{mark:ID}`, `{mark:ID|effect}`, `{mark:ID|effect|hold=seconds}`, `{mark:clear}`: placed **right before** the words about the target; at most 1–2 per step; still say the thing in words. Effects: `underline` (default; a hand-drawn underline from left to right), `circle` (a hand-drawn circle), `box` (a rounded frame), `spot` (dims everything except the area around the target with the background color), `laser` (a dot of light slides to below the target and stays briefly)\n- **R-reading** `{display|reading}` gives the reading of **one symbol or one term**: `{θ|theta}`, `{N₀|N naught}`, `{x̄|x bar}`, `{論語|ろんご}`. One symbol may carry a star, a prime, a subscript or superscript, or a hat/bar/tilde (`{Q*|Q star}`, `{x′|x prime}`, `{θ̂|theta hat}`). Write the display part in plain Unicode, not LaTeX, and never as an expression or several symbols (`{1-η|…}`, `{a*b|…}` and `{θとη|…}` are wrong: give each symbol its own reading and say the relation in words). Give a reading only to a term misread without one, and then everywhere it appears.\n- **R-formula** **Never read an equation aloud**: no LaTeX, no `\\`, `^`, `_`, and no strings such as `a + b = c` in the narration. Say what the equation means (“the number left is the starting number times a shrinking exponential”).\n- Japanese script is polite spoken Japanese (です・ます); English script is plain spoken English. About 5 Japanese characters or 2.5 English words per second; 1–3 sentences per turn.\n\n## 5. Fix requests\n\nWhen the user pastes a **fix request** (a list of findings with the ids of the standards, followed by the current files), fix exactly those findings, keep everything else, keep every `id=\"…\"` and `{#…}` unchanged (R-noids), and reply again with the two blocks (R-output). If the request contains only some slides, return only those `<section>` elements in the `deck.html` block (no `<html>`) and only their sections in the `narration.md` block; the editor puts them back in place by id.\n\n## 6. Worked example\n\nA small example, fictional, showing the structure only (do not copy its content). Note how the steps add up: the list of 2 items gives steps 1–2 and `[concl]`<!--part:m-flow-->; the `m-flow` with 4 boxes gives steps 1–4<!--/part-->. The static cover has `[0]` only.<!--paid--> Some part sets end with an example of their own.<!--/paid-->\n\n### Common (English, default theme, marks<!--part:m-flow-->, m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
|
|
917
917
|
"request": "# What I want\n\n*(Fill in A or B and delete the other; delete fields you leave empty.)*\n\n**A. Make a new file**\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:\n\n**B. From the material and discussion in this chat**\n\nMake the slides and script from the material given in this chat and what we have discussed so far.\n\n- Title (used as is on the cover):\n- Audience:\n- Length (slides or minutes):\n- Language:\n- Speakers: one narrator\n- Other wishes:",
|
|
918
918
|
"sets": {
|
|
919
919
|
"stats": "## Part set: stats (statistics charts)\n\nFor classes and talks with data: distributions, box plots, heatmaps, and a distribution updated one observation at a time. Use the `default` theme. Give the source and the size of every data set on the slide or in the script, and never invent data that looks real (R-components).\n\n- **Axis charts** (<!--part:m-hist-->`m-hist`, <!--/part--><!--part:m-boxplot-->`m-boxplot`, <!--/part--><!--part:m-seq-->`m-seq`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
920
920
|
"data": "## Part set: data (data science and code)\n\nFor information and data-science lessons (Information I, data science, programming). Give the source and the size of every data set on the slide or in the script (R-components). <!--part:m-code-->Show code with `m-code`.<!--/part-->\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
921
921
|
"algo": "## Part set: algo (algorithms)\n\nFor classes in computing or operations research that show a procedure one step at a time: graph search, shortest paths, tours. For the states and totals, write the output of a script that actually ran the procedure.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
922
922
|
"ml": "## Part set: ml (machine learning)\n\nFor machine-learning classes that show a computation one step at a time: a neural network's forward pass, classification boundaries, loss contours and gradient descent. For the values (weights, probabilities, iterates), write the output of a script that actually computed them.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
923
|
-
"math": "## Part set: math (arithmetic and mathematics)\n\nFor arithmetic and mathematics lessons: column arithmetic, number lines, tape diagrams, and a function that changes with a parameter. Use the `default` theme.\n\n- **Axis charts** (<!--part:m-sweep-->`m-sweep`, <!--/part--><!--part:m-curves-->`m-curves`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-sweep-->### Worked example: math (English, default theme, m-sweep)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part-->\n\n<!--part:m-sweep-->Steps: the `m-sweep` with 3 values gives steps 1–2.<!--/part-->",
|
|
923
|
+
"math": "## Part set: math (arithmetic and mathematics)\n\nFor arithmetic and mathematics lessons: column arithmetic, number lines, tape diagrams, and a function that changes with a parameter. Use the `default` theme.\n\n- **Axis charts** (<!--part:m-sweep-->`m-sweep`, <!--/part--><!--part:m-curves-->`m-curves`, <!--/part-->and the like) reserve 86 px at the left and 80 px in all at the top and bottom for ticks and axis names: give them a height of **300–380 px** and a width of **at least 560 px** (in `<div class=\"cols\">`, give the chart column at least 55%).\n- Make the axis ranges contain every plotted value (computed as R-components says).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--paid--><!--part:m-sweep-->### Worked example: math (English, default theme, m-sweep)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part--><!--/paid-->\n\n<!--part:m-sweep-->Steps: the `m-sweep` with 3 values gives steps 1–2.<!--/part-->",
|
|
924
924
|
"maps": "## Part set: maps\n\nFor classes and guides with maps: geography, history and local information on a map of Japan or of the world. Use the `default` theme. Give the year and the source of every figure (population, area, production) on the slide or in the narration.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
925
|
-
"kokugo": "## Part set: kokugo (Japanese language arts)\n\nFor 国語 lessons: 漢文, 古文 and 現代文. Use the `kokugo` theme. In the script, give the reading of hard words and names with `{display|reading}` (R-reading).\n\n- **Vertical slides:** `<section class=\"slide layout-tate\">` sets the whole slide in vertical writing. The `<h2>` is one vertical column at the right edge (about 14 full-width characters; it does not wrap), the body runs in columns from right to left, and the conclusion line is a vertical column at the left edge (about 19 characters). The body must stay between the two columns (the quality checker reports an overlap). Parts, figures and tables in the body stay horizontal at the full body width: use their vertical option (<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->, <!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->; `m-kanbun` is always vertical<!--/part-->). Keep the body of a vertical slide to 15 columns (about 18 characters each, some 270 in all). An item longer than 18 characters takes two columns. If it does not fit, split the slide.\n- **Keep one direction:** keep one file vertical or horizontal. When the file reads a classical or modern Japanese text, put the explanation slides in vertical writing too. Only slides with a figure or table that works only horizontally (a flow chart, for example) are horizontal; keep them together and do not alternate vertical and horizontal slides\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### Worked example: kokugo (kokugo theme, m-kanbun)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->Steps: `m-kanbun` gives 訓点 (step 1), then one step per 句 of the reading order, then the 書き下し文: write one `[n]` per 句.<!--/part-->",
|
|
925
|
+
"kokugo": "## Part set: kokugo (Japanese language arts)\n\nFor 国語 lessons: 漢文, 古文 and 現代文. Use the `kokugo` theme. In the script, give the reading of hard words and names with `{display|reading}` (R-reading).\n\n- **Vertical slides:** `<section class=\"slide layout-tate\">` sets the whole slide in vertical writing. The `<h2>` is one vertical column at the right edge (about 14 full-width characters; it does not wrap), the body runs in columns from right to left, and the conclusion line is a vertical column at the left edge (about 19 characters). The body must stay between the two columns (the quality checker reports an overlap). Parts, figures and tables in the body stay horizontal at the full body width: use their vertical option (<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->, <!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->; `m-kanbun` is always vertical<!--/part-->). Keep the body of a vertical slide to 15 columns (about 18 characters each, some 270 in all). An item longer than 18 characters takes two columns. If it does not fit, split the slide.\n- **Keep one direction:** keep one file vertical or horizontal. When the file reads a classical or modern Japanese text, put the explanation slides in vertical writing too. Only slides with a figure or table that works only horizontally (a flow chart, for example) are horizontal; keep them together and do not alternate vertical and horizontal slides\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--paid--><!--part:m-kanbun-->### Worked example: kokugo (kokugo theme, m-kanbun)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part--><!--/paid-->\n\n<!--part:m-kanbun-->Steps: `m-kanbun` gives 訓点 (step 1), then one step per 句 of the reading order, then the 書き下し文: write one `[n]` per 句.<!--/part-->",
|
|
926
926
|
"english": "## Part set: english (English as a foreign language)\n\nFor English lessons taught in Japanese: the structure of English sentences (S V O C M, phrases and clauses, what modifies what) with a Japanese translation. Use the `default` theme. Write the English sentences exactly as the class reads them, and keep the Japanese script short; read the English examples aloud only when the lesson needs it.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
927
927
|
"music": "## Part set: music (pitch, scales, chords)\n\nFor music lessons: pitch, scales, intervals and chords on a piano keyboard. Use the `default` theme. Name notes as the class does (ドレミ, C D E, or ハニホ) and keep the same names on the slide and in the narration.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
928
|
-
"business": "## Part set: business\n\nFor business and pitch decks: KPI cards, positioning maps, market sizes and money flows. Use the `sumi` theme. Put the fictional label of R-components in a `note` or on the cover, and keep the numbers consistent across slides (parts add up to the totals you state).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kpi-->### Worked example: business (Japanese, sumi theme, m-kpi)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>導入から 3 か月の結果</h2>\n <div class=\"body\">\n <p class=\"note muted\">新しい仕分けの手順を入れた 3 拠点の合計(数字は架空)</p>\n <m-kpi style=\"height:330px\" aria-label=\"1 日の出荷 1,240 件、誤配率 0.8%、残業 32% 減\">\n <script type=\"application/json\">{\"cards\": [\n {\"label\": \"1 日の出荷\", \"value\": 1240, \"unit\": \"件\", \"from\": 980, \"delta\": {\"dir\": \"up\", \"text\": \"導入前から 260 件\"}},\n {\"label\": \"誤配率\", \"value\": 0.8, \"digits\": 1, \"unit\": \"%\", \"from\": 2.1, \"tone\": \"emph\", \"delta\": {\"dir\": \"down\", \"text\": \"導入前は 2.1%\", \"good\": true}},\n {\"label\": \"残業時間\", \"value\": 32, \"unit\": \"%\", \"prefix\": \"−\", \"tone\": \"accent2\", \"note\": \"1 人あたり、月の平均\"}\n ]}</script>\n </m-kpi>\n </div>\n <div class=\"concl\"><span>→ 件数が増えても、誤りと残業は減った</span></div>\n</section>\n```\n\n```narration.md\n## 導入から 3 か月の結果\n[0] 新しい仕分けの手順を入れた、3 つの拠点の合計です。\n[1] 1 日の出荷は 1,240 件になり、導入前より 260 件増えました。\n[2] 誤配率は 2.1% から 0.8% に下がりました。件数が増えても、誤りは減っています。\n[3] 残業時間も、1 人あたり 32% 減っています。\n[concl] 件数が増えても、誤りと残業は減りました。\n```<!--/part-->\n\n<!--part:m-kpi-->Steps: `m-kpi` with 3 cards gives steps 1–3.<!--/part-->",
|
|
928
|
+
"business": "## Part set: business\n\nFor business and pitch decks: KPI cards, positioning maps, market sizes and money flows. Use the `sumi` theme. Put the fictional label of R-components in a `note` or on the cover, and keep the numbers consistent across slides (parts add up to the totals you state).\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--paid--><!--part:m-kpi-->### Worked example: business (Japanese, sumi theme, m-kpi)\n\n(only the slides with the part; the rest of `deck.html` is as in §6)\n\n```deck.html\n<section class=\"slide\">\n <h2>導入から 3 か月の結果</h2>\n <div class=\"body\">\n <p class=\"note muted\">新しい仕分けの手順を入れた 3 拠点の合計(数字は架空)</p>\n <m-kpi style=\"height:330px\" aria-label=\"1 日の出荷 1,240 件、誤配率 0.8%、残業 32% 減\">\n <script type=\"application/json\">{\"cards\": [\n {\"label\": \"1 日の出荷\", \"value\": 1240, \"unit\": \"件\", \"from\": 980, \"delta\": {\"dir\": \"up\", \"text\": \"導入前から 260 件\"}},\n {\"label\": \"誤配率\", \"value\": 0.8, \"digits\": 1, \"unit\": \"%\", \"from\": 2.1, \"tone\": \"emph\", \"delta\": {\"dir\": \"down\", \"text\": \"導入前は 2.1%\", \"good\": true}},\n {\"label\": \"残業時間\", \"value\": 32, \"unit\": \"%\", \"prefix\": \"−\", \"tone\": \"accent2\", \"note\": \"1 人あたり、月の平均\"}\n ]}</script>\n </m-kpi>\n </div>\n <div class=\"concl\"><span>→ 件数が増えても、誤りと残業は減った</span></div>\n</section>\n```\n\n```narration.md\n## 導入から 3 か月の結果\n[0] 新しい仕分けの手順を入れた、3 つの拠点の合計です。\n[1] 1 日の出荷は 1,240 件になり、導入前より 260 件増えました。\n[2] 誤配率は 2.1% から 0.8% に下がりました。件数が増えても、誤りは減っています。\n[3] 残業時間も、1 人あたり 32% 減っています。\n[concl] 件数が増えても、誤りと残業は減りました。\n```<!--/part--><!--/paid-->\n\n<!--part:m-kpi-->Steps: `m-kpi` with 3 cards gives steps 1–3.<!--/part-->",
|
|
929
929
|
"tools": "## Part set: tools (classroom tools)\n\nTools for running a class or workshop, such as a timer for an exercise or group work. Use them only where the request asks for one (an exercise time, a workshop), on the slide where the class does that activity.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
930
930
|
"science": "## Part set: science\n\nFor science lessons with models that move, such as the phases of the Moon. Use the `default` theme. Say on the slide or in the script when sizes and distances are not to scale.\n\nAlso usable as a colour, besides those of R-colors: `--lit`, light and what it lights, a fill with an outline.\n\nParts of this set, in addition to those of §3:\n\n{{CATALOG}}\n\n{{EXTENSIONS}}"
|
|
931
931
|
},
|
|
@@ -938,6 +938,7 @@ export const PACK = {
|
|
|
938
938
|
"m-bars": {
|
|
939
939
|
"set": "standard",
|
|
940
940
|
"row": "| `<m-bars>` | Bars grow from 0 by step (vertical, horizontal, grouped, stacked); the axis max can widen by step | max group/scale step (default 1 group = 1 step) | `{groups:[{label?,value?:num,values?:num[],err?:num\\|any[],step?,at?,tone?} (value or values),…],sig?:{from:int,to:int,group?:int,label?,step?}[],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
|
|
941
|
+
"freeRow": "| `<m-bars>` | Bars grow from 0 by step (vertical, horizontal, grouped, stacked); the axis max can widen by step | max group/scale step (default 1 group = 1 step) | `{groups:[{label?,value?:num,values?:num[],err?:num\\|any[]}† (value or values),…],sig?:{from:int,to:int,group?:int,label?,step?}[],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
|
|
941
942
|
"entry": "### `<m-bars>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"Sales\"}],\"groups\":[{\"label\":\"Year 1\",\"value\":1.2},{\"label\":\"Year 2\",\"value\":3.4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v or h |\n| `max` | number | `0` | axis max (0 = auto) |\n| `unit` | string | `\"\"` | value unit |\n| `digits` | number | `0` | decimals |\n| `per-step` | number | `1` | groups per step (0 = all) |\n| `count` | bool | `false` | count values up |\n| `ticks` | bool | `true` | ticks and grid |\n| `al` | string | `\"\"` | axis title |\n| `stack` | bool | `false` | stack values; \"percent\" = 100 % |\n| `mark` | string | `\"bar\"` | bar or dot (a point with its error bar) |\n\nFor quantities shown and compared one at a time: yearly sales, ranked answers, before/after.\n\n- group: `label` (`\\n` = 2 lines), `value` or `values` (one per series), `step`, `at` (start s), `tone` (bar and value colour)\n- err: ± number or `[low, high]`; per series for `values`\n- sig: `[{\"from\": 0, \"to\": 2, \"label\": \"**\"}]` brackets groups 0 and 2 (`group`: series in a group); vertical, unstacked only\n- series: `label` (2+ series: on the first group's bars; no legend), `tone` (default `--series-1..4`)\n- scale: `[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`: the max moves to `max` over `zoom` s; the old range stays as a faint band; taller bars stop at the top and grow as it widens\n- `orient=\"h\"`: names left, values right; `ticks=\"false\"` for ranks\n- `stack=\"true\"` (`\"percent\"` = 100 %): a group's `values` in one bar; total at the end, values inside segments; values ≥ 0\n\nNotes\n\n- Values appear once a bar is fully grown; `count=\"true\"` counts them up\n- Series names sit on the first group's bars: keep to 2–3 series",
|
|
942
943
|
"free": "### `<m-bars>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"Sales\"}],\"groups\":[{\"label\":\"Year 1\",\"value\":1.2},{\"label\":\"Year 2\",\"value\":3.4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v or h |\n| `max` | number | `0` | axis max (0 = auto) |\n| `unit` | string | `\"\"` | value unit |\n| `digits` | number | `0` | decimals |\n| `per-step` | number | `1` | groups per step (0 = all) |\n| `count` | bool | `false` | count values up |\n| `ticks` | bool | `true` | ticks and grid |\n| `al` | string | `\"\"` | axis title |\n| `stack` | bool | `false` | stack values; \"percent\" = 100 % |\n| `mark` | string | `\"bar\"` | bar or dot (a point with its error bar) |\n\nFor quantities shown and compared one at a time: yearly sales, ranked answers, before/after.\n\n- group: `label` (`\\n` = 2 lines), `value` or `values` (one per series), `step`, `at` (start s), `tone` (bar and value colour)\n- series: `label` (2+ series: on the first group's bars; no legend), `tone` (default `--series-1..4`)\n- scale: `[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`: the max moves to `max` over `zoom` s; the old range stays as a faint band; taller bars stop at the top and grow as it widens\n- `orient=\"h\"`: names left, values right; `ticks=\"false\"` for ranks\n- `stack=\"true\"` (`\"percent\"` = 100 %): a group's `values` in one bar; total at the end, values inside segments; values ≥ 0\n\nNotes\n\n- Values appear once a bar is fully grown; `count=\"true\"` counts them up\n- Series names sit on the first group's bars: keep to 2–3 series"
|
|
943
944
|
},
|
|
@@ -950,7 +951,7 @@ export const PACK = {
|
|
|
950
951
|
"m-callout": {
|
|
951
952
|
"set": "tools",
|
|
952
953
|
"row": "| `<m-callout>` | Screen steps: numbered circles on a screenshot, joined by leader lines to labels beside it, one per step | max callout step (default 1 callout = 1 step) | `{callouts:{x:num,y:num,text:str,box?:[num,num,num,num],step?,at?}[]}` |",
|
|
953
|
-
"entry": "### `<m-callout>`\n\nData example (child `<script type=\"application/json\">`): `{\"callouts\":[{\"x\":0.12,\"y\":0.08,\"text\":\"Open the menu\"},{\"x\":0.7,\"y\":0.62,\"text\":\"Press Send\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `side` | string | `\"right\"` | labels on right, left or both |\n| `label-width` | number | `0.32` | label column (share of width) |\n| `per-step` | number | `1` | callouts per step (0 = all) |\n| `size` | number | `28` | label px (≥ 24) |\n\nFor training and how-to guides: where to click, in order.\n\nThe screenshot is a child `<img src alt width height>` (
|
|
954
|
+
"entry": "### `<m-callout>`\n\nData example (child `<script type=\"application/json\">`): `{\"callouts\":[{\"x\":0.12,\"y\":0.08,\"text\":\"Open the menu\"},{\"x\":0.7,\"y\":0.62,\"text\":\"Press Send\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `side` | string | `\"right\"` | labels on right, left or both |\n| `label-width` | number | `0.32` | label column (share of width) |\n| `per-step` | number | `1` | callouts per step (0 = all) |\n| `size` | number | `28` | label px (≥ 24) |\n\nFor training and how-to guides: where to click, in order.\n\nThe screenshot is a child `<img src=\"figs/…\" alt width height>` (inlined at build) or a `data:` URL. Without the screenshot, write a figure frame and the steps instead; place circles once it is in.\n\n- **Never show real personal data on a screenshot** (names, ID numbers, resident or patient records). Use made-up data, or blur it.\n- `alt`, `width` and `height` (px) are required (else data); an image over 1 MiB is size.\n\n; callout: `x`, `y` (0–1 of the image), `text`, `box` (`[x, y, w, h]`, highlighted during its step), `step`, `at`."
|
|
954
955
|
},
|
|
955
956
|
"m-cards": {
|
|
956
957
|
"set": "standard",
|
|
@@ -975,7 +976,7 @@ export const PACK = {
|
|
|
975
976
|
"m-code": {
|
|
976
977
|
"set": "data",
|
|
977
978
|
"row": "| `<m-code>` | Code notes | Code → notes → output (n+1/+2) | `{code:str,lang?:str,output?:str,steps:{lines:(int\\|[int,int])[],note}[]}` |",
|
|
978
|
-
"entry": "### `<m-code>`\n\nData example (child `<script type=\"application/json\">`): `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"Load pandas\"},{\"lines\":[2],\"note\":\"Read CSV\"},{\"lines\":[3],\"note\":\"Mean\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `0` | Text px |\n| `outputPos` | enum | `\"auto\"` | Output |\n\n`<m-code>` child JSON.\n\n- `code`: 440px shows 9 lines of 76 chars; longer lines wrap, more scroll in a window (≤16; else split).\n- `lang
|
|
979
|
+
"entry": "### `<m-code>`\n\nData example (child `<script type=\"application/json\">`): `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"Load pandas\"},{\"lines\":[2],\"note\":\"Read CSV\"},{\"lines\":[3],\"note\":\"Mean\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `0` | Text px |\n| `outputPos` | enum | `\"auto\"` | Output |\n\n`<m-code>` child JSON.\n\n- `code`: 440px shows 9 lines of 76 chars; longer lines wrap, more scroll in a window (≤16; else split).\n- `lang` (colours for python, r, shell, js only); `steps[{lines,note}]`: `[3]`, range `[3,4]`, or 3+ lines `[2,5,9]`; notes ≤30 chars.\n- `output`: ≤8 lines.\n\nScript: explain each line; never read code aloud."
|
|
979
980
|
},
|
|
980
981
|
"m-compare": {
|
|
981
982
|
"set": "standard",
|
|
@@ -1002,27 +1003,32 @@ export const PACK = {
|
|
|
1002
1003
|
"m-curves": {
|
|
1003
1004
|
"set": "standard",
|
|
1004
1005
|
"row": "| `<m-curves>` | Lines drawn one at a time on shared axes, each named at its end (no legend) | largest step (default: number of series) | `[{label?,f?:str,pts?:[num,num][],tone?,step?,labelAt?:num,color?:str,dash?:bool,xr?:[num,num],area?:any[],areaLabel?:str\\|any[],at?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num} (f or pts),…]` — the data is the array itself, not {\"series\": […]}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); the expression field is f in x (not fn, not u) |",
|
|
1006
|
+
"freeRow": "| `<m-curves>` | Lines drawn one at a time on shared axes, each named at its end (no legend) | largest step (default: number of series) | `[{label?,f?:str,pts?:[num,num][],labelAt?:num,color?:str,dash?:bool,xr?:[num,num],area?:any[],areaLabel?:str\\|any[],anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num}† (f or pts),…]` — the data is the array itself, not {\"series\": […]}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); the expression field is f in x (not fn, not u) |",
|
|
1005
1007
|
"entry": "### `<m-curves>`\n\nData example (child `<script type=\"application/json\">`): `[{\"label\":\"Demand D\",\"f\":\"10 - x\"},{\"label\":\"Supply S\",\"f\":\"2 + x\"},{\"label\":\"Equilibrium\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | x range |\n| `yr` | json | `[0, 1]` | y range |\n| `xt` | json | `[]` | x ticks |\n| `yt` | json | `[]` | y ticks |\n| `xf` | number | | x tick decimals |\n| `yf` | number | | y tick decimals |\n| `xl` | string | `\"\"` | x title |\n| `yl` | string | `\"\"` | y title |\n| `n` | number | `300` | samples |\n| `lw` | number | `3.5` | line width |\n| `size` | number | `0` | text px (≥ 24; 0 = default) |\n\nOne comparison at a time: mean, median, quantiles; losses.\n\nSeries: a JSON array in a child script. One series = one step; same `step` = together.\n\n| Field | Meaning |\n|---|---|\n| `label` | line name |\n| `f` | expression in x (see below) |\n| `pts` | points `[[x, y], …]` |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4` |\n| `dash` | dashed |\n| `area` / `areaLabel` | shaded span `[a, b]` (several; null = edge), labels |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | name at x = `labelAt` (default: end); `anchor` `right` `left` `above` `below`; `ly` = y |\n\nText ticks: `xt='[\"Apr\",\"May\"]'` (x = 1, 2) or `[[0, \"FY2023\"], …]`.\n\n`f` is arithmetic, not code: numbers, `x`, `Math` functions/constants (`sin(x)`, `PI`; no `random`), `N(x, mean, sd)`, `+ - * / % **`, comparisons, `&& || !`, `? :`. Powers: `**`. An unreadable `f` shows a card."
|
|
1006
1008
|
},
|
|
1007
1009
|
"m-cycle": {
|
|
1008
1010
|
"set": "standard",
|
|
1009
1011
|
"row": "| `<m-cycle>` | Cycle diagram: stage boxes on a circle clockwise from 12, joined by arc arrows (last back to first too) | number of stages (default 1 per step; per-step n each; node step wins) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,step?,at?}[],center?:{label?,tex?,note?,tone?,step?,at?},edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` |",
|
|
1012
|
+
"freeRow": "| `<m-cycle>` | Cycle diagram: stage boxes on a circle clockwise from 12, joined by arc arrows (last back to first too) | number of stages (default 1 per step; per-step n each; node step wins) | `{nodes:{id?:str\\|int,label?,tex?,note?}†[],center?:{label?,tex?,note?}†,edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[]}` |",
|
|
1010
1013
|
"entry": "### `<m-cycle>`\n\nData example (child `<script type=\"application/json\">`): `{\"center\":{\"label\":\"PDCA\"},\"nodes\":[{\"label\":\"Plan\"},{\"label\":\"Do\"},{\"label\":\"Check\"},{\"label\":\"Act\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `per-step` | number | `1` | stages per step (0 = all) |\n| `size` | number | `26` | box text px (shrinks to 24) |\n\nStages that repeat in order: PDCA, water cycle, cell cycle. No coordinates; list stages in order (conventions §2).\n\n(`center`, `edges` optional).\n\n- `nodes`: stages (3–8), in order clockwise from 12; arcs to the next, last→first automatic\n - `label` (`\\n`) or `tex` (KaTeX), `note` (small 2nd line, `--muted`), `tone` (`term` default, `emph`, `muted`, `accent2`, `series-1..4`), `step`, `at`, `id`\n- <!--part:m-pie-->`center`: middle name, an object (`{\"label\": \"PDCA\", \"note\": \"…\"}`); appears with stage 1 (`center.step`). `m-pie`'s `center` is a string<!--/part-->\n - same fields as nodes, no `id`; `tone: emph` box: `--emph-tint` fill, `--emph` frame/text\n- `edges`: extra links (`from` `to` = node `id`s, `label` `tone` `dash` `step`); dashed arrows edge to edge\n- Arrows `--muted`, 3 px\n\nLayout:\n\n- Wide spaces: ellipse up to 1.9× wider (never taller); sized to fit the element\n- Incoming arrow appears with its box; last→first after the last box\n- `variant`: `fade` (default), `draw` (arrows first), `grow`; same steps and end\n- `cues(k)`: start times of 2nd+ boxes in one step"
|
|
1011
1014
|
},
|
|
1012
1015
|
"m-diverge": {
|
|
1013
1016
|
"set": "business",
|
|
1014
1017
|
"row": "| `<m-diverge>` | Waterfall: a baseline bar, then increases and decreases stacked from the previous bar's end, then a total bar | max item step (default 1 bar = 1 step) | `{items:{label,value?:num,total?:bool,tone?,step?,at?}[]}` |",
|
|
1018
|
+
"freeRow": "| `<m-diverge>` | Waterfall: a baseline bar, then increases and decreases stacked from the previous bar's end, then a total bar | max item step (default 1 bar = 1 step) | `{items:{label,value?:num,total?:bool}†[]}` |",
|
|
1015
1019
|
"entry": "### `<m-diverge>`\n\nData example (child `<script type=\"application/json\">`): `{\"items\":[{\"label\":\"Last year\",\"value\":120,\"total\":true},{\"label\":\"Sales\",\"value\":45},{\"label\":\"Costs\",\"value\":-30},{\"label\":\"This year\",\"total\":true}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `unit` | string | `\"\"` | value unit |\n| `digits` | number | `0` | decimals |\n| `per-step` | number | `1` | bars per step (0 = all) |\n| `min` | number | `0` | axis start (0 = from 0; > 0 cuts the axis, with a break mark) |\n| `ticks` | bool | `true` | ticks and grid |\n| `links` | bool | `true` | dotted links between bars |\n| `al` | string | `\"\"` | axis title |\n\nFor what was added and taken away between a baseline and a total: profit bridges, budget against actual, population change.\n\n- item: `label` (`\\n` = 2 lines), `value`, `total` (true = a total bar from 0), `tone`, `step`, `at`\n- The first total's `value` is the baseline; change bars start at the running total; a later total's `value` is checked (data)\n- `min`: axis start for small changes on large values (break mark)"
|
|
1016
1020
|
},
|
|
1017
1021
|
"m-fishbone": {
|
|
1018
1022
|
"set": "standard",
|
|
1019
1023
|
"row": "| `<m-fishbone>` | Fishbone (cause-and-effect) diagram, one main bone at a time, head last; auto layout | bones + 1 (head), or the largest step | `{effect:{label?,tex?,note?,tone?,step?,at?},nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — nodes without parent are main bones (categories); their children are causes, grandchildren finer causes (3 levels max) |",
|
|
1024
|
+
"freeRow": "| `<m-fishbone>` | Fishbone (cause-and-effect) diagram, one main bone at a time, head last; auto layout | bones + 1 (head), or the largest step | `{effect:{label?,tex?,note?}†,nodes:{id:str\\|int,label?,tex?,note?,parent?:str\\|int}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[]}` — nodes without parent are main bones (categories); their children are causes, grandchildren finer causes (3 levels max) |",
|
|
1020
1025
|
"entry": "### `<m-fishbone>`\n\nData example (child `<script type=\"application/json\">`): `{\"effect\":{\"label\":\"Late delivery\"},\"nodes\":[{\"id\":\"p\",\"label\":\"People\"},{\"id\":\"p1\",\"label\":\"Short-staffed\",\"parent\":\"p\"},{\"id\":\"m\",\"label\":\"Machines\"},{\"id\":\"m1\",\"label\":\"Truck breakdown\",\"parent\":\"m\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `order` | string | `\"causes-first\"` | causes-first (default) or effect-first |\n| `size` | number | `0` | box text px (0 = 27, shrink to 24) |\n\nGrouped causes of one effect (e.g. 4M: people, machines, methods, materials). No coordinates.\n\n(`edges` optional).\n\n- effect (head): `label` (`\\n`) or `tex`, `note` (under box), `tone` (default `emph`), `step`, `at`\n- node: `id`, `label` (or `tex`), `note`, `parent`, `tone`, `step`, `at`. No `parent` = main bone; child = cause; grandchild = sub-cause (3 levels)\n - Bones in array order, left to right, top/bottom alternating; name boxed at the outer end (`note` outside)\n - Cause `tex` = KaTeX; `note` small after the name (`--muted`)\n - `tone`: bone = box and bone; cause = text and line (`emph` bold)\n- edge: extra cause links (`from` `to` `label` `tone` `dash` `step`), dashed arrow bulging left of text; best within one bone\n- `order`: `causes-first` or `effect-first` (head, spine first); node `step` wins\n- `variant`: `fade` (default), `draw` (lines first), `grow` (boxes grow in); moves ≤ 12 px\n- Fit (1280×720 body, ~440 px high): ≤ 3 rows (causes + sub-causes) per bone (4 if short), 4–6 bones, causes ≤ ~10 chars. Text ≥ 24 px; overflow spills and is reported. Too many: split or shorten"
|
|
1021
1026
|
},
|
|
1022
1027
|
"m-flow": {
|
|
1023
1028
|
"set": "standard",
|
|
1024
1029
|
"row": "| `<m-flow>` | Flow chart: boxes and arrows by step | largest node/edge 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}[]}` |",
|
|
1025
|
-
"
|
|
1030
|
+
"freeRow": "| `<m-flow>` | Flow chart: boxes and arrows by step | largest node/edge step | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,shape?:str}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],pulseAt?:num,offset?:num,loop?:bool\\|str}†[]}` |",
|
|
1031
|
+
"entry": "### `<m-flow>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"a\",\"label\":\"Observe\",\"x\":20,\"y\":40,\"w\":200,\"h\":70,\"step\":1},{\"id\":\"b\",\"label\":\"Update\",\"x\":320,\"y\":40,\"w\":200,\"h\":70,\"step\":2}],\"edges\":[{\"from\":\"a\",\"to\":\"b\",\"step\":2}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | box text px |\n| `pulse-n` | number | `3` | pulse dots |\n| `label-gap` | number | `12` | min label–box gap px |\n\n; px; `x`, `y` = box top-left, `w`, `h` = size; 40+ px gaps.\n\n- node: `id`, `label` (`\\n`) or `tex` (KaTeX), `step`, `tone` (`term`/`emph`/`muted`), `at` (start s), `shape:\"diamond\"` (decision, ~2× text width)\n- edge: `from` `to` `step` (default: later end), `label`, `tone`, `dash`, `offset` (label gap), `at`, `loop` (back edge: `\"left\"` `\"right\"` `\"top\"` `\"bottom\"` or `true` = auto)",
|
|
1026
1032
|
"ext": {
|
|
1027
1033
|
"business": "Business-model edges:\n\n- `kind`: `money` (thick), `service`, `data` (dashed); `tone`/`dash` win\n- `amount`: bold figure\n- `shift`: px right of travel; both directions = 2 parallel lines\n- `pulse`: `pulse-n` dots run start→end in `pulse-dur` s; `true` = once after drawing; `[step, …]` = once per step; pulse steps count"
|
|
1028
1034
|
}
|
|
@@ -1066,21 +1072,24 @@ export const PACK = {
|
|
|
1066
1072
|
"m-kobun": {
|
|
1067
1073
|
"set": "kokugo",
|
|
1068
1074
|
"row": "| `<m-kobun>` | 古文を語に切り(スラッシュ)、品詞で色を分けて 1 文ずつ見せ、最後に現代語訳と並べる。助動詞を押すと活用表と意味 | 文の数(現代語訳があれば +1) | text inside the element (not JSON) |",
|
|
1069
|
-
"entry": "### `<m-kobun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後のステップで並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。ステップ 0
|
|
1075
|
+
"entry": "### `<m-kobun>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後のステップで並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。ステップ 0 は切っていない本文。1 枚に 2 文まで(縦書きで 3 文を詰めると、現代語訳がスライドの結論の列にかかる)。長い段は文の切れ目でスライドを分ける。\n\n#### 書き方\n\n1 行が 1 文(1 ステップ)。語は `/` で切り、語の後ろの `[ ]` に品詞(と、`・` で区切って詳しいこと)を書く。`[ ]` の後ろの字(`、` `。`)は語に付けて出す。\n\n```\n春[名]/は[係助]/あけぼの[名]。\n= 春は明け方(がよい)。\n紫だち[動・タ四・連用]/たる[助動・たり・存続・連体]/雲[名]/の[格助]/…\n```\n\n- 品詞:`名` `代` `動` `補動` `形` `形動` `副` `連体` `接` `感` `助動` `格助` `係助` `副助` `接助` `終助` `間助` `接頭` `接尾`\n- 助動詞:`[助動・基本形・この文での意味・活用形]` の 4 つを必ず書く。例:`けり[助動・けり・過去・終止]`、`ず[助動・ず・打消・連用]`。基本形を抜いた `[助動・過去・終止]` は誤り。基本形は文語の助動詞 28 語の表から引く(`なり`・`たり` は意味で分ける)。表にないものは知らせる\n- `= …` の行:直前の文の現代語訳(最後のステップで、本文の下、縦書きでは左に出す)\n- `{漢字|かな}`:振り仮名\n\n#### 属性\n\n- `tate`:縦書き(品詞は語の左)\n- `detail`:品詞の下に `[ ]` の中をすべて出す(活用の種類・活用形まで。語の間が広がる)\n - `detail` がなければ、助動詞の意味・活用形は押したときのポップアップにだけ出る(印刷には出ない)。印刷や動画で見せるなら `detail` を付ける\n- `yaku=\"false\"`:現代語訳のステップを作らない"
|
|
1070
1076
|
},
|
|
1071
1077
|
"m-kpi": {
|
|
1072
1078
|
"set": "standard",
|
|
1073
1079
|
"row": "| `<m-kpi>` | KPI cards by step; count-up, change arrow, note | largest card step (default 1 card = 1 step) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,tone?,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?,step?,at?}[]}` |",
|
|
1080
|
+
"freeRow": "| `<m-kpi>` | KPI cards by step; count-up, change arrow, note | largest card step (default 1 card = 1 step) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?}†[]}` |",
|
|
1074
1081
|
"entry": "### `<m-kpi>`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `cols` | number | `0` | cards per row (0 = count, ≤ 4) |\n| `digits` | number | `0` | decimals (card wins) |\n| `per-step` | number | `1` | cards per step (0 = all) |\n| `count` | bool | `true` | count up |\n| `size` | number | `0` | number px (0 = auto) |\n\n- `label`: above. `value` (`digits`, commas). `unit`: after. `prefix`: before (`+`, `~`). Negative `value` has its own −: no `prefix` `−` (−−12); `prefix: \"−\"` only with a positive decrease\n- `from`: count start (default 0; may count down)\n- `tone`: number, top band (`term`, `emph`, `accent2`, `series-1..4`)\n- `delta`: `{\"dir\": \"up\" | \"down\", \"text\": \"+4\", \"good\": true}`: ▲/▼ + text; good (default `up`) `--term`, bad `--emph`\n- `note`: bottom line\n- `variant`: `count` (default), `rise`, `flip`, `underline`; `count=\"false\"` → `rise`\n- `cues(k)`: start times of 2nd+ cards in a step (for `{cue}`)"
|
|
1075
1082
|
},
|
|
1076
1083
|
"m-map-japan": {
|
|
1077
1084
|
"set": "maps",
|
|
1078
1085
|
"row": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きをステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?,tone?,step?,at?} (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — prefectures by JIS code \"01\"–\"47\" (or \"JP-13\", \"東京都\") in regions[].id; the 8 regions (hokkaido, tohoku, kanto, chubu, kinki, chugoku, shikoku, kyushu) in regions[].group; values is an object {code: number}; classes are the lower bounds of the classes (default 4, at most 5); points, shapes and flows[].via use lon/lat in degrees |",
|
|
1086
|
+
"freeRow": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きをステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?}† (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"}† (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,value?:num,bend?:num,via?:any[][],labelAt?:any[]}†[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],dash?:bool}† (polygon or line),…]}` — prefectures by JIS code \"01\"–\"47\" (or \"JP-13\", \"東京都\") in regions[].id; the 8 regions (hokkaido, tohoku, kanto, chubu, kinki, chugoku, shikoku, kyushu) in regions[].group; values is an object {code: number}; classes are the lower bounds of the classes (default 4, at most 5); points, shapes and flows[].via use lon/lat in degrees |",
|
|
1079
1087
|
"entry": "### `<m-map-japan>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `territory-islands` | string | `\"auto\"` | 島の名前:auto(必要なときだけ)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限。最初はいちばん小さい値以下に。書かなければ四分位で 4 階級。5 つまで)で塗り分け。凡例に階級を書く。塗り分けのステップは `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線が値で太くなる)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(本当の位置)"
|
|
1080
1088
|
},
|
|
1081
1089
|
"m-map-world": {
|
|
1082
1090
|
"set": "maps",
|
|
1083
1091
|
"row": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印をステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str,group?:str,label?,tone?,step?,at?} (id or group),…],categories?:{label,ids:str[],tone?,step?,at?}[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — countries by ISO alpha-3 or Natural Earth code (\"JPN\", \"USA\") or Japanese name; the six regions (asia, europe, africa, north-america, south-america, oceania) in regions[].group and categories[].ids; values is an object {code: number}; classes are the lower bounds (default 4, at most 5); points, shapes and [lon, lat] in flows use degrees |",
|
|
1092
|
+
"freeRow": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印をステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str,group?:str,label?}† (id or group),…],categories?:{label,ids:str[]}†[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"}† (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,value?:num,bend?:num,via?:any[][],labelAt?:any[]}†[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],dash?:bool}† (polygon or line),…]}` — countries by ISO alpha-3 or Natural Earth code (\"JPN\", \"USA\") or Japanese name; the six regions (asia, europe, africa, north-america, south-america, oceania) in regions[].group and categories[].ids; values is an object {code: number}; classes are the lower bounds (default 4, at most 5); points, shapes and [lon, lat] in flows use degrees |",
|
|
1084
1093
|
"entry": "### `<m-map-world>`\n\nData example (child `<script type=\"application/json\">`): `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `territory-islands` | string | `\"auto\"` | 島の点:auto(描かない)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けのステップは `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。"
|
|
1085
1094
|
},
|
|
1086
1095
|
"m-mapping": {
|
|
@@ -1142,6 +1151,7 @@ export const PACK = {
|
|
|
1142
1151
|
"m-quad": {
|
|
1143
1152
|
"set": "standard",
|
|
1144
1153
|
"row": "| `<m-quad>` | 2-axis positioning map (4 quadrants); points one per step | largest step / to.step (1 point = 1 step) | `{x?:{lo?:str,hi?:str},y?:{lo?:str,hi?:str},quads?:{tr?:str,tl?:str,bl?:str,br?:str,fill?:str},items:{label?,x:num,y:num,step?,at?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\",r?:num,self?:bool,to?:{x:num,y:num,label?,step?,at?}}[]}` |",
|
|
1154
|
+
"freeRow": "| `<m-quad>` | 2-axis positioning map (4 quadrants); points one per step | largest step / to.step (1 point = 1 step) | `{x?:{lo?:str,hi?:str},y?:{lo?:str,hi?:str},quads?:{tr?:str,tl?:str,bl?:str,br?:str,fill?:str},items:{label?,x:num,y:num,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\",r?:num,self?:bool,to?:{x:num,y:num,label?,step?,at?}}†[]}` |",
|
|
1145
1155
|
"entry": "### `<m-quad>`\n\nData example (child `<script type=\"application/json\">`): `{\"x\":{\"lo\":\"Manual\",\"hi\":\"Auto\"},\"y\":{\"lo\":\"Costly\",\"hi\":\"Cheap\"},\"items\":[{\"label\":\"Co. A\",\"x\":0.25,\"y\":0.7},{\"label\":\"Us\",\"x\":0.8,\"y\":0.82,\"self\":true}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `size` | number | `26` | label px |\n| `quads-step` | number | `0` | quadrant-name step (0 = start) |\n\nPositioning, effect×effort, SWOT: show the empty space.\n\n- `x` `y`: axis end words (step 0)\n- `quads`: names (tr = top-right, tl, bl, br); `fill: \"tr\"` tints one; names at `quads-step`\n- item: `label`, `x` `y` (0–1; 0.5 = axis cross), `step` (default next), `at`, `tone` (`term`/`fg`; default muted), `anchor` (`right`, `left`, `above`, `below`), `r`\n- `self: true`: big `--emph` point, ring pulse\n- `to: {\"x\", \"y\", \"label\", \"step\", \"at\"}`: slides at `to.step` (default next), dashed trail; `label` on arrival\n- `cues(k)`: start times of 2nd+ points in a step, for `{cue}`\n\nNotes\n\n- Quadrant names avoid points and labels (else labels move, or `ctx.report`)\n- Label overlaps not fixed: change `anchor` or shift"
|
|
1146
1156
|
},
|
|
1147
1157
|
"m-sampling": {
|
|
@@ -1152,6 +1162,7 @@ export const PACK = {
|
|
|
1152
1162
|
"m-scatter": {
|
|
1153
1163
|
"set": "standard",
|
|
1154
1164
|
"row": "| `<m-scatter>` | Scatter plot; point series by step, then a trend line (least squares or 2 points) | series + trend (default 1 series = 1 step, lines 1 step) | `{series:{label?,tone?,step?,at?,points:([num,num]\\|{x:num,y:num,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",tone?})[]}[],trend?:str\\|{fit?:\"linear\",pts?:[[num,num],[num,num]],series?:int\\|any[],label?,tone?,dash?:bool,step?,at?,digits?:int}\\|[the same {…},…]}` — points are [x, y] or {\"x\", \"y\", \"label\"}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); trend is \"linear\" or {\"fit\": \"linear\", \"label\": \"…\"} or {\"pts\": [[x0, y0], [x1, y1]]} |",
|
|
1165
|
+
"freeRow": "| `<m-scatter>` | Scatter plot; point series by step, then a trend line (least squares or 2 points) | series + trend (default 1 series = 1 step, lines 1 step) | `{series:{label?,points:([num,num]\\|{x:num,y:num,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",tone?})[]}†[],trend?:str\\|{fit?:\"linear\",pts?:[[num,num],[num,num]],series?:int\\|any[],label?,dash?:bool,digits?:int}†\\|[the same {…},…]}` — points are [x, y] or {\"x\", \"y\", \"label\"}; axes go in attributes (xr=\"[0,10]\" xl=\"…\"); trend is \"linear\" or {\"fit\": \"linear\", \"label\": \"…\"} or {\"pts\": [[x0, y0], [x1, y1]]} |",
|
|
1155
1166
|
"entry": "### `<m-scatter>`\n\nData example (child `<script type=\"application/json\">`): `{\"series\":[{\"label\":\"Sunny\",\"points\":[[24,210],[28,380],[31,560],{\"x\":34,\"y\":690,\"label\":\"Heatwave\"}]}],\"trend\":\"linear\"}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `xr` | json | `null` | x range |\n| `yr` | json | `null` | y range |\n| `xt` | json | `null` | x ticks |\n| `yt` | json | `null` | y ticks |\n| `xf` | number | | x tick decimals |\n| `yf` | number | | y tick decimals |\n| `xl` | string | `\"\"` | x title |\n| `yl` | string | `\"\"` | y title |\n| `r` | number | `9` | point radius px |\n\nRelation of two quantities (heat vs sales). Points, then trend.\n\n- series: `points` (`[x, y]` or `{\"x\", \"y\", \"label\", \"anchor\", \"tone\"}`), `label` (series name, top with marker), `tone` (`term` `emph` `accent2` `muted` `fg` `series-1..4`), `step` (1 series = 1 step; same = together), `at` (start s)\n - Point `label` placed clear of overlaps (`anchor` = first try: `right` `left` `above` `below`); outliers only\n - Marker shape per series; repeats after 4, so ≤ 4 series\n- trend: `\"linear\"` (least squares on all points), or `{\"fit\": \"linear\", \"series\": 0, \"label\", \"tone\", \"dash\", \"step\", \"at\", \"digits\"}`, or `{\"pts\": [[x0, y0], [x1, y1]]}` (segment; exactly 2 points; vertical OK); several = array\n - `series`: fitted series index from 0, or array (default all)\n - `label`: `{r}` correlation, `{a}` slope, `{b}` intercept (`digits`, default 2), e.g. `\"Trend (r = {r})\"`\n - `step`: default after the last series\n - Clipped to the plot; lines outside reported. Vertical `pts`: `{a}` `{b}` empty; `{r}` only for fits\n- Axes: `xr` `yr` range, `xt` `yt` ticks, `xf` `yf` decimals, `xl` `yl` titles; range/ticks auto if omitted\n- `variant`: `fade`, `sweep`, `grow`\n- Show later steps faintly (`ctx.preview`): later points and lines faint"
|
|
1156
1167
|
},
|
|
1157
1168
|
"m-score": {
|
|
@@ -1189,6 +1200,7 @@ export const PACK = {
|
|
|
1189
1200
|
"m-timeline": {
|
|
1190
1201
|
"set": "standard",
|
|
1191
1202
|
"row": "| `<m-timeline>` | Timeline; events one by one; periods drawn along the axis, overlaps stacked; end exclusive (\"1912\" = start of 1912) | event count (default 1 per step in time order; per-step n each; node step wins) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
|
|
1203
|
+
"freeRow": "| `<m-timeline>` | Timeline; events one by one; periods drawn along the axis, overlaps stacked; end exclusive (\"1912\" = start of 1912) | event count (default 1 per step in time order; per-step n each; node step wins) | `{nodes:{id?:str\\|int,label?,tex?,note?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,after?:(str\\|int)[],progress?:num}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
|
|
1192
1204
|
"entry": "### `<m-timeline>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"a\",\"label\":\"Meiji Restoration\",\"when\":\"1868\",\"whenLabel\":\"Meiji 1\"},{\"id\":\"b\",\"label\":\"Constitution\",\"when\":\"1889\",\"note\":\"Feb 11\"},{\"id\":\"c\",\"label\":\"Sino-Japanese War\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h or v |\n| `scale` | string | `\"time\"` | time or even |\n| `per-step` | number | `1` | events per step (0 = all) |\n| `size` | number | `26` | label px (shrinks to 24) |\n| `unit` | string | `\"\"` | ticks: day, week, month |\n| `today` | string | `\"\"` | today line (YYYY-MM-DD) |\n\nHistory, lives, schedules. No coordinates; content and times only.\n\n(`edges` optional).\n\n- `when`: number (`1868`, `-500`, `0.5`) or `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`; shown as the date line\n- `whenLabel`: text replacing the date (\"Meiji 1\"); `when` still sets position\n- `label` (`\\n`) or `tex` (KaTeX)\n- `note`: small last line in the box (`--muted`); after the name for periods/milestones\n- `tone`: `term` (default), `emph`, `muted`, `accent2`, `series-1..4`\n- `end`: a period, drawn along the axis below it; name inside (or beside); `\\n` names thicken it\n- `end` is exclusive: Meiji 1868–1912 and Taishō 1912–1926 share a row; through December = next month (`\"2027-01\"`)\n- `lane`: named group of rows (\"Eras\", \"Authors\"); overlaps stack within; `lane` without `end` = milestone (◆)\n- `step`, `at` (start s)\n- `edges`: extra links (`from` `to` `label` `tone` `dash` `step`); dashed arrows (`dash: false` solid)\n- Schedules: `after: [\"id\", …]` (arrow end→start), `progress` (0–100 %); `today` line; tick `unit`\n - `after` only between periods and milestones; `today` needs a period\n\nLayout:\n\n- `orient`: `h` (default) or `v`; `scale`: `time` (default) or `even` (very uneven gaps)\n- Events (no `end` or `lane`): axis dot plus date-and-name box, alternating sides (`v`: left/right); 2 rows when crowded\n- With periods: round ticks; event boxes all above the axis\n- Steps: time order, periods and events together; the axis comes with the first\n- `variant`: `fade` (default), `draw` (lines first, periods drawn), `grow` (boxes grow, periods stretch); same steps and end\n- Show later steps faintly (`ctx.preview`): later items faint\n- `cues(k)`: start times of 2nd+ items in a step (for `{cue}`)"
|
|
1193
1205
|
},
|
|
1194
1206
|
"m-timer": {
|
|
@@ -1199,6 +1211,7 @@ export const PACK = {
|
|
|
1199
1211
|
"m-tree": {
|
|
1200
1212
|
"set": "standard",
|
|
1201
1213
|
"row": "| `<m-tree>` | Hierarchy tree (org chart, taxonomy), built level by level from the root; auto layout | depth (by=\"level\") or node count (by=\"node\"); or the largest step | `{nodes:{id:str\\|int,label?,tex?,note?,tone?,dash?:bool,parent?:str\\|int,branch?:str,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — exactly one node without parent (the root) |",
|
|
1214
|
+
"freeRow": "| `<m-tree>` | Hierarchy tree (org chart, taxonomy), built level by level from the root; auto layout | depth (by=\"level\") or node count (by=\"node\"); or the largest step | `{nodes:{id:str\\|int,label?,tex?,note?,dash?:bool,parent?:str\\|int,branch?:str}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — exactly one node without parent (the root) |",
|
|
1202
1215
|
"entry": "### `<m-tree>`\n\nData example (child `<script type=\"application/json\">`): `{\"nodes\":[{\"id\":\"r\",\"label\":\"Animals\"},{\"id\":\"a\",\"label\":\"Vertebrates\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"Invertebrates\",\"parent\":\"r\"}]}`\n\n| prop | type | default | meaning |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down (default) or right |\n| `by` | string | `\"level\"` | level (default) or node (depth-first) |\n| `link` | string | `\"elbow\"` | elbow (default) or straight |\n| `size` | number | `0` | box text px (0 = 27, shrink to 24) |\n\nParent–child structures (org charts, taxonomies, outlines). No coordinates; laid out without overlaps.\n\n(`edges` optional).\n\n- node: `id`, `label` (`\\n`) or `tex` (KaTeX), `parent` (parent `id`; exactly one root without `parent`), `note` (small, **under** box), `tone` (`term` default, `emph`, `muted`, `accent2`, `series-1..4`), `dash: true` (dashed, unfilled), `step`, `at` (start s)\n- Children in array order; parent centred over them\n- edge: extra links (`from` `to` `label` `tone` `dash` `step`), dashed arrow outside the tree; best at same depth; step: later end\n- Child `branch`: line text (e.g. probability). `path`: root-first `id`s highlighted in turn (default 1 step per line, after the tree; `pathStep`: in one step; `pathNote`: end note)\n- `orient=\"right\"` for wide taxonomies. `by=\"node\"`: one at a time, depth-first (to follow a branch). Node `step` wins\n- Lines `--muted`, 3 px; `tone: emph` box: `--emph-tint` fill\n- Fit (~440 px high): ~8 four-character boxes per level (`down`), ~7 (`right`); ~5 levels. More leaves: 2 staggered rows (~16 / ~11), then 2-line names. Text ≥ 24 px; overflow spills, reported. Too many: split\n- `variant`: `fade`, `draw`, `grow`\n- Show later steps faintly (`ctx.preview`): later parts faint\n\nPremise contrast (positioning): root the question, children the positions (this work `emph`), then premises, then what each can say; a dropped premise `dash: true`."
|
|
1203
1216
|
},
|
|
1204
1217
|
"m-vector": {
|
|
@@ -1215,23 +1228,24 @@ export const PACK = {
|
|
|
1215
1228
|
},
|
|
1216
1229
|
"tableHead": "| part | what it shows | steps | data shape |\n|---|---|---|---|",
|
|
1217
1230
|
"supNote": "(* = description added by this guide)",
|
|
1231
|
+
"fieldsNote": "Items marked † also take step, at and tone.",
|
|
1218
1232
|
"briefNote": "For a part without a section below, write the child JSON or attributes as its “data shape” column says and leave the other attributes at their defaults.",
|
|
1219
1233
|
"extHead": "### `<{name}>`: extension for this part set (the part is described in §3)"
|
|
1220
1234
|
},
|
|
1221
1235
|
"ja": {
|
|
1222
|
-
"common": "# AI への指示\n\n指示のバージョン:`027f5293`\n\n短い **Egatari のスライドと台本**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。スライドと台本は依頼された言語で書きます(どちらも同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、スライドは短くする(5〜8 枚)。指示に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか依頼しないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中もテキストはすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらずテキストを 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 出力は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を依頼されたら(長いものを 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の指示は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のあるスライドを渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` を変えない\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(スライドと台本の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 数字・図・引用を使ったスライドには、結論の行の上に出典の行(`<p class=\"source\">出典:…</p>`)を書く\n- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo のセットがあるときだけ)、属性 `data-morph`(§2.5)\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- **R-caution** `.body` に注意は `<div class=\"caution\">…</div>`、警告は `class=\"caution warn\"`。ラベルは自動で付く。\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を追加する)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで。表は、比べ方で見せ方を選ぶ。項目を 1 つずつ説明するなら行を話す順に出す。行列(縦に比べるもの、横に評価基準)や 2 本の軸の交差の表は、全体を見せてから注目する列・マスに印を付けるか、軸の列ごとに埋める。研究の位置づけの表では、本研究のマスに字で「本研究」と書く(色や太字だけで区別しない)。\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを追加する(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`、`\\morph{ID}{…}`。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調とモーフ\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n\n### 2.6 パーツ\n\n- **R-components** パーツは一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n<!--paid-->- 写真が要る所は、図の枠(テンプレートの「図」)と内容の説明を書き、画像は作成者が後で入れる<!--/paid-->\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っているセット)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字のカード・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点はファイル全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどのファイルでも使える標準のパーツ。§6 の後にセットの指示があれば、その種類の材料のパーツが追加される。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは依頼されたときだけ(3 人以上を依頼されても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ追加するか、言い換えを確認して(違えば修正して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の例の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを修正し、ほかは変えず、`id=\"…\"` と `{#…}` をすべて変えず(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 例\n\n小さな例(架空。形を見るためで、中身はコピーしない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。いくつかのセットの指示の最後にも例がある。\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
|
|
1236
|
+
"common": "# AI への指示\n\n指示のバージョン:`79c82ff6`\n\n短い **Egatari のスライドと台本**を 1 つ書いてください。ステップごとに出る HTML のスライド(`deck.html`)と台本(`narration.md`)で、どちらも自動で組まれ、品質チェックを受けます。ここにないものは使えません。スライドと台本は依頼された言語で書きます(どちらも同じ言語)。規格には **R-fit** のような名前があり、修正依頼は破った規格を名前で示します。依頼は最後の **頼みたいこと**(かその前の会話)にあります。空の項目やない項目はほどよく決め、A と B が両方残っていれば書き込みのある方に従います。\n\n**よくある失敗:**\n\n- **2 つの灰色の枠(コードブロック)はどちらも最後まで書いて閉じる。**コードブロックの途中で終わらない(R-output)。構成案がなければ、スライドは短くする(5〜8 枚)。指示に構成案とその範囲があれば、その範囲のスライドをちょうどその枚数だけ書く(エディタは 1 回に 6 枚までしか依頼しないので、収まる)\n- **1280×720 のスライドの大きさ**(品質チェックが測る。R-fit):本文の場所は 1184 × 443 px(565 px まで。`noconcl` なら 1184 × 558)。字は 32 px・1 行 46 px で、入るのは**およそ 8 行**。はみ出す 46 px ごとに 1 行を削る。**図やパーツの中もテキストはすべて 24 px 以上**\n- **グラフと図:**パーツは大きさによらずテキストを 24〜28 px で描くので、決めるのはパーツの大きさ(R-fit)\n- **その場で書く `<svg>`:**字は「表示の幅 ÷ viewBox の幅」で縮むので、viewBox を表示の画素で書く(`<svg viewBox=\"0 0 560 320\" width=\"560\" height=\"320\">`)。`font-size` は 24 以上。`width:100%` と別の幅の viewBox を組み合わせない。合うパーツがあればパーツを使う\n\n## 1. 出力の形\n\n- **R-output** 出力は**ちょうど 2 つのコードブロック**にし、この順で、名前を `deck.html` と `narration.md` にする(始まりの行は ```` ```deck.html ```` と ```` ```narration.md ````)。間には何も書かない(前後に 1 行の添え書きはよい)。1 つのファイルを複数のコードブロックに分けない。ファイル・キャンバス・添付にせず、本文に書く。ほかのファイルを参照しない(画像・`{{FIG:…}}`・`{{JSON:…}}`・外の URL・`<link>` は使わない)。コードブロックの途中で終わらない(長すぎるなら枚数を減らす。ただし構成案の範囲を頼まれたら、ちょうどその枚数)\n- **R-outline** **構成案だけ**を依頼されたら(長いものを 2 回に分けて作るとき)、`outline` という名前のコードブロック 1 つ(始まりの行は ```` ```outline ````)だけで返し、`deck.html` と `narration.md` は書かない:列が「番号」「見出し」「要点(1 行)」の Markdown の表で、スライドごとに 1 行、全スライドを順に。その後の指示は範囲を示す(「構成案の 7〜12 枚目」)ので、その見出しと要点のとおりに、ちょうどそのスライドを書く\n- **R-noids** スライドの id を**書かない**。`<section class=\"slide\">` に `id` を付けず、台本の見出しにも `{#…}` を付けない。id は取り込みでエディタが付ける。id のあるスライドを渡されたとき(修正依頼)は、今ある `id=\"…\"` と `{#…}` を変えない\n\n## 2. deck.html\n\n### 2.1 骨組み\n\n```html\n<!DOCTYPE html>\n<html lang=\"ja\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>題名</title>\n</head>\n<body>\n<div id=\"stage\">\n <section class=\"slide cover noconcl static\"> … </section>\n <section class=\"slide\"> … </section>\n</div>\n</body>\n</html>\n```\n\n- `lang`:`ja`・`en` など(スライドと台本の言語)。`data-theme`:ビジネス・ピッチは `sumi`、国語は `kokugo`、ほかは `default`\n- `<script>` はパーツのデータ(§2.6)だけ。`<style>` は配置(大きさ・間隔)だけに使い、色は書かない\n\n### 2.2 スライド\n\n- 普通のスライド:`<h2>` の見出し、`<div class=\"body\">…</div>`、`<div class=\"concl\"><span>…</span></div>`(結論の行。短い 1 文)\n- 数字・図・引用を使ったスライドには、結論の行の上に出典の行(`<p class=\"source\">出典:…</p>`)を書く\n<!--paid-->- 肩見出し(見出しの上の短い言葉)を添えるなら、`<h2>` の直前に `<p class=\"kicker\">` を 1 つ置く(普通のスライドだけ。`layout-tate` には置かない)。見出しには含めず、ステップ 0 で見せる。英語はテーマが大文字で表示するので、大文字で書かない。\n<!--/paid-->- 表紙:`<section class=\"slide cover noconcl static\">` に、あれば `<div class=\"venue\">…</div>`、`<h1>題名</h1>`、あれば `<div class=\"au\">…</div>`\n- 章の扉:`<section class=\"slide sec noconcl static\"><h1>章の題</h1></section>`\n- `<section>` の class:`noconcl`(結論の行なし)、`static`(ステップなし)、`nostep`(箇条書きも初めから全部)、`layout-tate`(縦書き。kokugo のセットがあるときだけ)<!--paid-->、属性 `data-morph`(§2.5)<!--/paid-->\n- `.body` の中:`<p class=\"sub\">` 小見出し、`<div class=\"big\">` 主要な式、`<p class=\"note\">` 補足、`<div class=\"thm\">` 定理の枠、`<div class=\"cols\">` 横並び、普通の `<p>` `<ul>` `<ol>` `<table>`\n- **R-caution** `.body` に注意は `<div class=\"caution\">…</div>`、警告は `class=\"caution warn\"`。ラベルは自動で付く。\n- 字の強調(色を付ける唯一の方法):`term`(用語・問い)、`emph`(結論・問題・目標)、`muted`(既知の結果・控えめ)、`b`(太字)\n- **R-headings** スライドの見出し(表紙と扉は `h1`、ほかは `h2`)は**すべて違う**ものにする(同じなら語を追加する)。そのスライドの台本の節は `## ` に続けて**見出しとまったく同じ文字列**で始める(`<br>` などのタグは除く)\n- **R-colors** 色はテーマだけで:上の class と式のマクロ `\\hlE` `\\hlT` `\\hlM`。16 進・`rgb()`・色の名前・`\\color`・`\\textcolor` は使わない。パーツや SVG の中では:**色はテーマの CSS 変数だけ**を使う:`var(--fg)` `var(--term)` `var(--emph)` `var(--muted)` `var(--accent2)` `var(--line)`。SVG では属性ではなく `style=\"stroke:var(--emph)\"` で書く(`DECK.el` は `fill` `stroke` に `var(` があれば自動で style に回す)\n\n### 2.3 ステップ(出す順 = 話す順)\n\n- **R-steps** ステップ 0 は現れたときの姿で、文脈だけ(見出し・小見出し・導入の 1 文)。`data-step=\"k\"`(k = 1, 2, …)の要素はステップ k で現れる。材料(箇条書きの項目・式・表の行・図の部分)は話す順に出す。式とそれを導く 1 文は同じステップ(`<div data-step=\"k\">` で一緒に囲む)。1 枚のステップの数は 5 前後まで。表は、比べ方で見せ方を選ぶ。項目を 1 つずつ説明するなら行を話す順に出す。行列(縦に比べるもの、横に評価基準)や 2 本の軸の交差の表は、全体を見せてから注目する列・マスに印を付けるか、軸の列ごとに埋める。<!--paid-->研究の位置づけの表では、本研究のマスに字で「本研究」と書く(色や太字だけで区別しない)。<!--/paid-->\n- 結論の行は自動で**最後のステップ** `concl` になる(`data-step` を付けない)\n- `data-step` が 1 つもないスライドでは、上の階層の箇条書きの項目(`.body > ul > li`・`.body > ol > li`)に 1, 2, … が自動で付く。1 つでもあれば自動にならないので、出すものすべてに付ける\n- パーツは自分のステップを追加する(§3)。`data-from`(既定 1)から始まる\n- つまりステップは `0 … max` と、結論の行があれば `concl`。`static` のスライドはステップ 0 だけ\n\n### 2.4 数式(KaTeX)\n\n- **R-math** 行内は `\\( … \\)`、別行は `\\[ … \\]`。式の中の `<` は `\\lt`、`>` は `\\gt`。標準のほかに使えるマクロ:`\\hlE{…}`(emph)`\\hlT{…}`(term)`\\hlM{…}`(muted)、`\\htmlId{ID}{…}`、`\\htmlData{mark=ID}{…}`、`\\htmlClass{…}{…}`<!--paid-->、`\\morph{ID}{…}`<!--/paid-->。`\\newcommand` と `\\color` は使わない。項の説明は `\\underbrace{…}_{\\text{…}}`・`\\overbrace{…}^{…}`。`$$` は使わない。記号は最初に使う所で定義する(`\\(\\mu\\)`:母平均)\n\n### 2.5 強調<!--paid-->とモーフ<!--/paid-->\n\n- **R-marks** 台本の `{mark:ID}`(§4)は、**同じスライド**の目印に印を付ける。目印:スライドの中の `id=\"ID\"` か `data-mark=\"ID\"` の要素。式の一部は KaTeX の `\\htmlId{ID}{…}` / `\\htmlData{mark=ID}{…}`(build はこの 2 つと `\\htmlClass` だけを許す)。同じ ID を何枚かで使うなら `data-mark` にする(id は文書の中で一意に)\n<!--paid-->- モーフ(なくてよい):`<section class=\"slide\" data-morph>` は前のスライドの要素を今の位置へ滑らせる。両方のスライドの要素に同じ `data-id=\"…\"`、式の一部は両方に `\\morph{ID}{…}`。ステップ 0 で見えている要素だけが動く\n<!--/paid-->\n### 2.6 パーツ\n\n- **R-components** パーツは一覧(§3)の Web Components `<m-…>` で、`.body` の中に置く。どれにも高さ(`style=\"height:380px\"`)と `aria-label` を付ける。データは子の `<script type=\"application/json\">…</script>` **1 つ**にその場で書く。**図の数字は正しく**(計算する。見た目のために値を作らない。架空の数字は架空と書く)。関数の式は算術の式だけで、コードとしては実行されない(`Math.exp(x)`・`x**2`)。動きが説明になる所だけに使う(たいていのスライドには要らない)\n<!--paid-->- 写真が要る所は、図の枠(テンプレートの「図」)と内容の説明を書き、画像は作成者が後で入れる<!--/paid-->\n\n### 2.7 表し方を選ぶ\n\n- **R-purpose** 表し方は習慣でなく、そのスライドで言いたいことから選ぶ。作者がグラフの種類を言っていればそれに従う。表は全パーツの一覧を兼ねる。使うのは渡された文章にあるパーツだけ(§3 と、入っているセット)。入っていないパーツの方が合うときは、1 行のメモでそう伝える\n\n{{PURPOSES}}\n\n- **R-whole** 箇条書き・数字のカード・円グラフは全体を一度に見せる。台本が 1 つずつ取り上げるときだけ 1 行ずつ出す(箇条書きなら全体に 1 つの `data-step` を付けるか、スライドに `nostep`)\n\n### 2.8 スライドに収める(品質チェックのエラー)\n\n- **R-title** 見出し:日本語は 26 字まで(全角 1・半角 0.5)、英語は 60 文字まで。コロンで終えない\n- **R-concl** 結論の行:日本語は 35 字まで、英語は 70 文字まで。1 行\n- **R-fit** 本文は 565 px(`noconcl` なら 680 px)より上で終える:1 枚におよそ 8 行・100 字・英語 60 語、または `big` の式 1 つと短い箇条書き 3 つ、または高さ 380 px までのパーツと短い 1 行(2 行なら 330 px まで)。入らなければスライドを分ける。字を縮めず、字の大きさを書かない\n- **R-style** 日本語のスライドは常体(だ・である、体言止め)で、です・ます を使わない。句読点はファイル全体で 1 つの組(`、。` か `,.`)。英語のスライドは短い句で\n\n## 3. パーツの一覧\n\nどのファイルでも使える標準のパーツ。§6 の後にセットの指示があれば、その種類の材料のパーツが追加される。「steps」はパーツが使うスライドのステップの数(`data-from` から。既定 1)。秒で測る属性(動きの長さ・ずれ)は載せない(既定で台本に合う)。型が json の属性は、値に JSON を書く(`values=\"[0.1,0.5]\"`)。「データの形」の `?` は省略できる欄。型を書いていない label・tex・note・tone は str、step は int、at は num。名前やラベルの `*…*` は斜体、`_` `^` は次の 1 字だけ下付き・上付き。記号のまま出すなら全角の _ ^ *。\n\n{{CATALOG}}\n\n## 4. narration.md\n\n```markdown\n# 台本:<題名>\n\n## 減衰の式\n[0] 減衰の式です。時刻ごとに残っている原子の数を考えます。\n[1] 残る数は、はじめの数に、時間とともに小さくなる指数関数を掛けたものです。\n[2] {mark:n0|circle}{N₀|エヌゼロ} は、時刻ゼロのときの、はじめの数です。\n[concl] 半分になるまでの時間は、崩壊定数だけで決まります。\n```\n\n- スライドごとに 1 つの節を、**スライドの順に、すべてのスライド(表紙も)について**:`## <スライドの見出し>`(R-headings)。`{#id}` は付けない(R-noids)\n- **R-narr-steps** ステップの指定は `[0]` `[1]` … と `[concl]`。**どのスライドのどのステップにも台本を書き**(ステップ 0 から max まで、結論の行があれば `[concl]`)、**ないステップの指定は書かない**(`static` の表紙は `[0]` だけ。結論の行がなければ `[concl]` もない。`[01]` とは書かない)。ステップの中では、そのステップで現れるものだけを話す\n- **R-dialogue** **既定は話者 1 人**で、話者名を書かない。掛け合いは依頼されたときだけ(3 人以上を依頼されても 2 役にし、最初にそう書く):行を `Expert:` か `Novice:` で始め(続きの行は字下げ。話者なしは Expert)、認知的徒弟制の形にする:\n - Novice は相づち役にせず、学習者の疑問を代弁するか、「つまり〜ということですか」と言い換える\n - Expert は答えて具体例か比喩を 1 つ追加するか、言い換えを確認して(違えば修正して)1 歩進める\n - 理解の分かれ目(誤解しやすい所、「なぜ」が残る所)にだけ、1 枚に 1 回・2〜3 発言まで。ほかは Expert 1 人\n - 「なるほど」だけの発言、前の発言のくり返しは書かない。例:`Novice: つまり、大きいほど早く着くのですか。` `Expert: いつもではありません。大きすぎると谷を飛び越えます。大股で坂を下りすぎて、向こうの斜面に足が着くように。`\n- `{note:…}` 発表者用\n- `{cue}`:ステップの中の同期点。パーツの `cues(k)` の 1 つに 1 つ(パーツの説明が求めるときだけ)\n- `{mark:ID}`・`{mark:ID|効果}`・`{mark:ID|効果|hold=秒}`・`{mark:clear}`:目印のことを言う言葉の**すぐ前**に置く。1 ステップに 1〜2 個まで。言葉でも言う。効果:`underline`(既定。手描きの下線を左から右へ)、`circle`(手描きの囲み)、`box`(角丸の枠)、`spot`(対象のまわり以外を背景色で薄くする)、`laser`(光の点が対象の下へ滑ってきて少し留まる)\n- **R-reading** `{表示|読み}` は **1 つの記号か 1 つの用語**の読み:`{θ|シータ}`、`{N₀|エヌゼロ}`、`{論語|ろんご}`。1 つの記号に星・プライム・添え字・ハットやバーが付いていてもよい(`{Q*|キュースター}`、`{θ̂|シータハット}`)。表示は普通の文字で書き、LaTeX にせず、式やいくつもの記号にしない(`{1-η|…}`・`{θとη|…}` は誤り:記号ごとに読みを付け、関係は言葉で言う)。読みは読みなしで読み違える語にだけ付ける(かなの読みは抑揚を崩しやすい)。読みは書いた所にだけ当たるので、付けた語がまた出てくるなら、出てくる所ごとに付ける\n- **R-formula** **式を読み上げない**:台本に LaTeX・`\\`・`^`・`_`・`a + b = c` のような文字列を書かない。式の意味を言葉で言う(§4 の例の [1])\n- 日本語の台本は話し言葉の です・ます。英語は話し言葉の英語。目安は 1 秒に日本語 5 字・英語 2.5 語。1 回の発言は 1〜3 文\n\n## 5. 修正依頼\n\n利用者が**修正依頼**(規格の名前の付いた指摘の一覧と、今のファイル)を貼り付けたら、その指摘だけを修正し、ほかは変えず、`id=\"…\"` と `{#…}` をすべて変えず(R-noids)、また 2 つのコードブロックで返す(R-output)。依頼に一部のスライドしかなければ、そのスライドの `<section>` だけ(`<html>` なし)とその節だけを 2 つのコードブロックで返す(エディタが id で元の場所に戻す)。\n\n## 6. 例\n\n小さな例(架空。形を見るためで、中身はコピーしない)。ステップの数え方:2 項目の箇条書きはステップ 1〜2 と `[concl]`<!--part:m-flow-->、箱が 4 つの `m-flow` はステップ 1〜4<!--/part-->。<!--paid-->いくつかのセットの指示の最後にも例がある。<!--/paid-->\n\n### 共通(英語・default テーマ・強調<!--part:m-flow-->・m-flow<!--/part-->)\n\n```deck.html\n<!DOCTYPE html>\n<html lang=\"en\" data-theme=\"default\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<title>How a web page arrives</title>\n</head>\n<body>\n<div id=\"stage\">\n\n<section class=\"slide cover noconcl static\">\n <div class=\"venue\">Computing basics, lesson 1 (a fictional course)</div>\n <h1>How a web page arrives</h1>\n</section>\n\n<section class=\"slide\">\n <h2>Two programs take part</h2>\n <div class=\"body\">\n <p>Opening a page is a conversation between two programs.</p>\n <ul>\n <li id=\"browser\">The <span class=\"term\">browser</span> asks for the page and draws it</li>\n <li id=\"server\">The <span class=\"term\">server</span> keeps the page and sends it back</li>\n </ul>\n </div>\n <div class=\"concl\"><span>Every page load is a request and a reply</span></div>\n</section><!--part:m-flow-->\n\n<section class=\"slide\">\n <h2>From the address to the screen</h2>\n <div class=\"body\">\n <m-flow style=\"height:300px\" aria-label=\"Four stages: type the address, send a request, send the page back, draw the page\">\n <script type=\"application/json\">{\"nodes\": [\n {\"id\": \"a\", \"label\": \"Type the\\naddress\", \"x\": 10, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 1},\n {\"id\": \"b\", \"label\": \"Send a\\nrequest\", \"x\": 315, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 2},\n {\"id\": \"c\", \"label\": \"Send the\\npage back\", \"x\": 620, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 3, \"tone\": \"term\"},\n {\"id\": \"d\", \"label\": \"Draw the\\npage\", \"x\": 925, \"y\": 100, \"w\": 250, \"h\": 110, \"step\": 4, \"tone\": \"emph\"}\n ], \"edges\": [\n {\"from\": \"a\", \"to\": \"b\"}, {\"from\": \"b\", \"to\": \"c\"}, {\"from\": \"c\", \"to\": \"d\"}\n ]}</script>\n </m-flow>\n </div>\n <div class=\"concl\"><span>A slow page is slow in one of these four stages</span></div>\n</section><!--/part-->\n\n</div>\n</body>\n</html>\n```\n\n```narration.md\n# Narration: How a web page arrives\n\n## How a web page arrives\n[0] Today we follow a web page on its way from a server to your screen.\n\n## Two programs take part\n[0] Opening a page is a conversation between two programs.\n[1] {mark:browser}The browser is the program you look at. It asks for the page and then draws it.\n[2] {mark:server}The server is a program on another computer. It keeps the page and sends it back when asked.\n[concl] Every page load is a request and a reply.<!--part:m-flow-->\n\n## From the address to the screen\n[0] Let us put the steps in order.\n[1] First you type the address of the page.\n[2] The browser turns it into a request and sends it to the server.\n[3] The server finds the page and sends it back.\n[4] The browser draws the page on the screen.\n[concl] When a page is slow, one of these four stages is taking the time.<!--/part-->\n```",
|
|
1223
1237
|
"request": "# 頼みたいこと\n\n*(A か B を埋め、もう一方は削除します。書かない項目は削除してかまいません)*\n\n**A. 新しく作る**\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:\n\n**B. 渡した資料と話し合いの内容で作る**\n\nこのチャットで渡した資料と、ここまでの話し合いの内容で、スライドと台本を作ってください。\n\n- タイトル(表紙にそのまま使う):\n- 対象(だれ向け):\n- 長さ(枚数か分):\n- 言語:\n- 話者:1 人\n- そのほかの希望:",
|
|
1224
1238
|
"sets": {
|
|
1225
1239
|
"stats": "## パーツのセット:stats(統計の図)\n\nデータを見せる授業・発表向け。分布、箱ひげ図、ヒートマップ、観測が 1 つずつ加わって変わる分布を見せる。テーマは `default`。データの出どころと数(何人・何件)をスライドか台本に書き、本物らしく見えるデータを作らない(R-components)。\n\n- **軸のある図**(<!--part:m-hist-->`m-hist`・<!--/part--><!--part:m-boxplot-->`m-boxplot`・<!--/part--><!--part:m-seq-->`m-seq`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1226
1240
|
"data": "## パーツのセット:data(情報・データサイエンス)\n\n情報・データサイエンスの教材向け(情報I・データサイエンス・プログラミング)。データの出どころと数(何人・何件)をスライドか台本に書く(R-components)。<!--part:m-code-->コードは `m-code` で見せる。<!--/part-->\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1227
1241
|
"algo": "## パーツのセット:algo(アルゴリズム)\n\n情報や経営工学(オペレーションズ・リサーチ)の授業で、グラフの探索・最短経路・巡回路などの手順を 1 ステップずつ見せるときに使う。状態と合計は、手順を実際に実行したスクリプトの出力を書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1228
1242
|
"ml": "## パーツのセット:ml(機械学習)\n\n機械学習の授業で、ニューラルネットの順伝播・分類の境界・損失の等高線と勾配降下法などを 1 ステップずつ見せるときに使う。重み・確率・反復の点などの値は、実際に計算したスクリプトの出力を書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1229
|
-
"math": "## パーツのセット:math(算数・数学)\n\n算数・数学の教材向け。筆算、数直線、テープ図、パラメータで形の変わる関数を見せる。テーマは `default`。\n\n- **軸のある図**(<!--part:m-sweep-->`m-sweep`・<!--/part--><!--part:m-curves-->`m-curves`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-sweep-->### 例:算数・数学(英語・default テーマ・m-sweep)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part-->\n\n<!--part:m-sweep-->ステップの数え方:値が 3 つの `m-sweep` はステップ 1〜2。<!--/part-->",
|
|
1243
|
+
"math": "## パーツのセット:math(算数・数学)\n\n算数・数学の教材向け。筆算、数直線、テープ図、パラメータで形の変わる関数を見せる。テーマは `default`。\n\n- **軸のある図**(<!--part:m-sweep-->`m-sweep`・<!--/part--><!--part:m-curves-->`m-curves`・<!--/part-->など)は目盛りと軸の名前に左 86 px、上下合わせて 80 px を使うので、高さ **300〜380 px**、幅 **560 px 以上**にする(`<div class=\"cols\">` なら図の列を 55% 以上に)\n- 軸の範囲には、図の値(R-components のとおり計算したもの)がすべて入るようにする\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--paid--><!--part:m-sweep-->### 例:算数・数学(英語・default テーマ・m-sweep)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>A larger λ decays faster</h2>\n <div class=\"body\">\n <div class=\"cols\" style=\"gap:24px\">\n <div style=\"flex:0 0 36%\">\n <div class=\"big\">\\[ \\frac{N(t)}{N_0}=e^{-\\lambda t} \\]</div>\n <ul class=\"nostep\"><li>Grey: the previous \\(\\lambda\\)</li></ul>\n </div>\n <m-sweep f=\"Math.exp(-c*u)\" values=\"[0.2,0.5,1.0]\" param=\"λ\" xr=\"[0,6]\" yr=\"[0,1]\" xt=\"[0,2,4,6]\" yt=\"[0,0.5,1]\"\n xl=\"*t*\" yl=\"share left\" digits=\"1\" style=\"height:380px\" aria-label=\"Share of atoms left over time for three decay constants\"></m-sweep>\n </div>\n </div>\n <div class=\"concl\"><span>Raising λ shortens the half-life</span></div>\n</section>\n```\n\n```narration.md\n## A larger λ decays faster\n[0] Let us change the decay constant and watch the share of atoms left.\n[1] Raising it from 0.2 to 0.5 makes the curve fall faster.\n[2] At 1.0 it falls faster still.\n[concl] A larger decay constant means a shorter half-life.\n```<!--/part--><!--/paid-->\n\n<!--part:m-sweep-->ステップの数え方:値が 3 つの `m-sweep` はステップ 1〜2。<!--/part-->",
|
|
1230
1244
|
"maps": "## パーツのセット:maps(地図)\n\n地図を使う授業・案内向け(地理・歴史・地域の案内)。日本地図か世界地図を使う。テーマは `default`。数字(人口・面積・生産量など)には、何年の・どこの数字かをスライドか台本に書く。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1231
|
-
"kokugo": "## パーツのセット:kokugo(国語)\n\n国語(漢文・古文・現代文)の教材向け。テーマは `kokugo`。台本では、難しい語や名前に読み `{表示|読み}` を付ける(R-reading)。\n\n- **縦書きのスライド:**`<section class=\"slide layout-tate\">` でスライド全体を縦書きにする。`<h2>` は右端の縦 1 列(全角でおよそ 14 字。折り返さない)、本文は右から左へ列を重ね、結論の行は左端の縦 1 列(およそ 19 字)。本文は 2 つの列の間に収める(重なれば品質チェックが指摘する)。本文の中のパーツ・図・表は横書きのまま置かれるので、パーツの縦書きの指定を使う(<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->・<!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->。`m-kanbun` はいつも縦書き<!--/part-->)。縦のスライドの本文は 15 列まで(1 列およそ 18 字、合わせて 270 字ほど)。18 字を超える項目は 2 列になる。収まらなければスライドを分ける。\n- **縦と横をそろえる:**1 つの教材では縦か横にそろえる。古文・漢文・現代文の本文を読む教材は、説明のスライドも縦にそろえる。横書きでしか置けない図や表(流れ図など)のスライドだけを横にし、なるべくまとめて置き、縦と横を交互にしない\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kanbun-->### 例:国語(kokugo テーマ・m-kanbun)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part-->\n\n<!--part:m-kanbun-->ステップの数え方:`m-kanbun` は訓点(ステップ 1)、読む順は句ごとに 1 ステップ、最後に書き下し文。`[n]` は句ごとに書く。<!--/part-->",
|
|
1245
|
+
"kokugo": "## パーツのセット:kokugo(国語)\n\n国語(漢文・古文・現代文)の教材向け。テーマは `kokugo`。台本では、難しい語や名前に読み `{表示|読み}` を付ける(R-reading)。\n\n- **縦書きのスライド:**`<section class=\"slide layout-tate\">` でスライド全体を縦書きにする。`<h2>` は右端の縦 1 列(全角でおよそ 14 字。折り返さない)、本文は右から左へ列を重ね、結論の行は左端の縦 1 列(およそ 19 字)。本文は 2 つの列の間に収める(重なれば品質チェックが指摘する)。本文の中のパーツ・図・表は横書きのまま置かれるので、パーツの縦書きの指定を使う(<!--part:m-kobun-->`m-kobun tate`<!--/part--><!--part:m-kobun,m-gendai-->・<!--/part--><!--part:m-gendai-->`m-gendai tate`<!--/part--><!--part:m-kanbun-->。`m-kanbun` はいつも縦書き<!--/part-->)。縦のスライドの本文は 15 列まで(1 列およそ 18 字、合わせて 270 字ほど)。18 字を超える項目は 2 列になる。収まらなければスライドを分ける。\n- **縦と横をそろえる:**1 つの教材では縦か横にそろえる。古文・漢文・現代文の本文を読む教材は、説明のスライドも縦にそろえる。横書きでしか置けない図や表(流れ図など)のスライドだけを横にし、なるべくまとめて置き、縦と横を交互にしない\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--paid--><!--part:m-kanbun-->### 例:国語(kokugo テーマ・m-kanbun)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>学びて時に之を習ふ</h2>\n <div class=\"body\">\n <m-kanbun style=\"height:440px\" aria-label=\"『論語』学而篇の冒頭の白文、訓点、読む順、書き下し文\">\n 学(ビテ)而{-}時(ニ)習(フ)[レ]之(ヲ)、\n 不{=ず}[二]亦(タ)説(バシカラ)[一]乎{=や}。\n </m-kanbun>\n </div>\n <div class=\"concl\"><span>一二点は、一を読んでから二へ戻る</span></div>\n</section>\n```\n\n```narration.md\n## 学びて時に之を習ふ\n[0] 返り点も送り仮名もない、白文です。\n[1] 返り点と送り仮名を付けます。而は、読まない置き字です。\n[2] 読む順に字をたどります。一句目は、レ点で之から習へ戻ります。\n[3] 二句目は、一二点で説から不へ戻ります。\n[4] 書き下し文にすると、学びて時に之を習ふ、亦た説ばしからずや、となります。\n[concl] 一二点は、一の字を読んでから、二の字へ戻ります。\n```<!--/part--><!--/paid-->\n\n<!--part:m-kanbun-->ステップの数え方:`m-kanbun` は訓点(ステップ 1)、読む順は句ごとに 1 ステップ、最後に書き下し文。`[n]` は句ごとに書く。<!--/part-->",
|
|
1232
1246
|
"english": "## パーツのセット:english(英語:外国語としての英語)\n\n日本語で教える英語の教材向け。英文の構造(S V O C M・句と節・何が何を修飾するか)を和訳と一緒に見せる。テーマは `default`。英文は授業で読むとおりに書き、日本語の台本は短くする。英文の例を読み上げるのは、教材に要るときだけ。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1233
1247
|
"music": "## パーツのセット:music(音楽:音の高さ・音階・和音)\n\n音楽の教材向け。音の高さ・音階・音程・和音を、ピアノの鍵盤で見せる。テーマは `default`。音の名前は授業での呼び方(ドレミ・C D E・ハニホ)にそろえ、スライドと台本で同じにする。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1234
|
-
"business": "## パーツのセット:business(ビジネス)\n\nビジネスの報告・提案の資料向け(KPI・ポジショニングマップ・市場規模・お金とモノの流れ)。テーマは `sumi`。架空の数字の断り(R-components)は `note` か表紙に書き、スライドの間で数字をそろえる(内訳を足すと書いた合計になる)。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--part:m-kpi-->### 例:ビジネス(日本語・sumi テーマ・m-kpi)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>導入から 3 か月の結果</h2>\n <div class=\"body\">\n <p class=\"note muted\">新しい仕分けの手順を入れた 3 拠点の合計(数字は架空)</p>\n <m-kpi style=\"height:330px\" aria-label=\"1 日の出荷 1,240 件、誤配率 0.8%、残業 32% 減\">\n <script type=\"application/json\">{\"cards\": [\n {\"label\": \"1 日の出荷\", \"value\": 1240, \"unit\": \"件\", \"from\": 980, \"delta\": {\"dir\": \"up\", \"text\": \"導入前から 260 件\"}},\n {\"label\": \"誤配率\", \"value\": 0.8, \"digits\": 1, \"unit\": \"%\", \"from\": 2.1, \"tone\": \"emph\", \"delta\": {\"dir\": \"down\", \"text\": \"導入前は 2.1%\", \"good\": true}},\n {\"label\": \"残業時間\", \"value\": 32, \"unit\": \"%\", \"prefix\": \"−\", \"tone\": \"accent2\", \"note\": \"1 人あたり、月の平均\"}\n ]}</script>\n </m-kpi>\n </div>\n <div class=\"concl\"><span>→ 件数が増えても、誤りと残業は減った</span></div>\n</section>\n```\n\n```narration.md\n## 導入から 3 か月の結果\n[0] 新しい仕分けの手順を入れた、3 つの拠点の合計です。\n[1] 1 日の出荷は 1,240 件になり、導入前より 260 件増えました。\n[2] 誤配率は 2.1% から 0.8% に下がりました。件数が増えても、誤りは減っています。\n[3] 残業時間も、1 人あたり 32% 減っています。\n[concl] 件数が増えても、誤りと残業は減りました。\n```<!--/part-->\n\n<!--part:m-kpi-->ステップの数え方:カードが 3 枚の `m-kpi` はステップ 1〜3。<!--/part-->",
|
|
1248
|
+
"business": "## パーツのセット:business(ビジネス)\n\nビジネスの報告・提案の資料向け(KPI・ポジショニングマップ・市場規模・お金とモノの流れ)。テーマは `sumi`。架空の数字の断り(R-components)は `note` か表紙に書き、スライドの間で数字をそろえる(内訳を足すと書いた合計になる)。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}\n\n<!--paid--><!--part:m-kpi-->### 例:ビジネス(日本語・sumi テーマ・m-kpi)\n\n(そのパーツを使うスライドだけ。`deck.html` の骨組みは §6 の例と同じ)\n\n```deck.html\n<section class=\"slide\">\n <h2>導入から 3 か月の結果</h2>\n <div class=\"body\">\n <p class=\"note muted\">新しい仕分けの手順を入れた 3 拠点の合計(数字は架空)</p>\n <m-kpi style=\"height:330px\" aria-label=\"1 日の出荷 1,240 件、誤配率 0.8%、残業 32% 減\">\n <script type=\"application/json\">{\"cards\": [\n {\"label\": \"1 日の出荷\", \"value\": 1240, \"unit\": \"件\", \"from\": 980, \"delta\": {\"dir\": \"up\", \"text\": \"導入前から 260 件\"}},\n {\"label\": \"誤配率\", \"value\": 0.8, \"digits\": 1, \"unit\": \"%\", \"from\": 2.1, \"tone\": \"emph\", \"delta\": {\"dir\": \"down\", \"text\": \"導入前は 2.1%\", \"good\": true}},\n {\"label\": \"残業時間\", \"value\": 32, \"unit\": \"%\", \"prefix\": \"−\", \"tone\": \"accent2\", \"note\": \"1 人あたり、月の平均\"}\n ]}</script>\n </m-kpi>\n </div>\n <div class=\"concl\"><span>→ 件数が増えても、誤りと残業は減った</span></div>\n</section>\n```\n\n```narration.md\n## 導入から 3 か月の結果\n[0] 新しい仕分けの手順を入れた、3 つの拠点の合計です。\n[1] 1 日の出荷は 1,240 件になり、導入前より 260 件増えました。\n[2] 誤配率は 2.1% から 0.8% に下がりました。件数が増えても、誤りは減っています。\n[3] 残業時間も、1 人あたり 32% 減っています。\n[concl] 件数が増えても、誤りと残業は減りました。\n```<!--/part--><!--/paid-->\n\n<!--part:m-kpi-->ステップの数え方:カードが 3 枚の `m-kpi` はステップ 1〜3。<!--/part-->",
|
|
1235
1249
|
"tools": "## パーツのセット:tools(ツール)\n\n授業・研修を進めるためのツール(演習やグループワークのタイマーなど)。依頼に演習の時間やワークショップがあるときだけ、その活動をするスライドに使う。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}",
|
|
1236
1250
|
"science": "## パーツのセット:science(理科)\n\n動くモデルで見せる理科の教材向け(月の満ち欠けなど)。テーマは `default`。大きさや距離が実際の比でないときは、スライドか台本でそう断る。\n\n色は R-colors のものに加えて `--lit` も使える:光と、光が照らすもの。輪郭線を付けた塗りに使う。\n\nこのセットのパーツ(§3 のパーツに加えて):\n\n{{CATALOG}}\n\n{{EXTENSIONS}}"
|
|
1237
1251
|
},
|
|
@@ -1244,7 +1258,8 @@ export const PACK = {
|
|
|
1244
1258
|
"m-bars": {
|
|
1245
1259
|
"set": "standard",
|
|
1246
1260
|
"row": "| `<m-bars>` | 棒をステップごとに 0 から伸ばす(縦棒・横棒・組の棒・積み上げ棒)。値の軸の上限をステップで広げて「軸を突き抜ける伸び」も見せられる | 組の step と scale の step の最大(既定は組 1 つ = 1 ステップ。per-step で n 組ずつ) | `{groups:[{label?,value?:num,values?:num[],err?:num\\|any[],step?,at?,tone?} (value or values),…],sig?:{from:int,to:int,group?:int,label?,step?}[],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
|
|
1247
|
-
"
|
|
1261
|
+
"freeRow": "| `<m-bars>` | 棒をステップごとに 0 から伸ばす(縦棒・横棒・組の棒・積み上げ棒)。値の軸の上限をステップで広げて「軸を突き抜ける伸び」も見せられる | 組の step と scale の step の最大(既定は組 1 つ = 1 ステップ。per-step で n 組ずつ) | `{groups:[{label?,value?:num,values?:num[],err?:num\\|any[]}† (value or values),…],sig?:{from:int,to:int,group?:int,label?,step?}[],series?:{label?,tone?}[],scale?:{step,max?:num,at?}[],max?:num}` |",
|
|
1262
|
+
"entry": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す組の数(0 = 全部をステップ 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n| `mark` | string | `\"bar\"` | bar(棒)か dot(点。平均と誤差棒を、0 からの棒にせずに見せる) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`err`(誤差棒)、`step`(既定は per-step から)、`at`(ステップの中の開始秒。既定は同じステップの中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。そのステップの at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄く塗って残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- `err`:± 数か `[下, 上]`(区間の端)。`values` の組では系列ごと。何の区間かは見出しか図の下の文に書く(スライドに脚注はない)\n- `mark=\"dot\"`:棒の代わりに点(平均と誤差棒)\n- `sig`:`[{\"from\": 0, \"to\": 2, \"label\": \"**\"}]` で組 0 と組 2 を括弧でつなぐ(`group` で組の中の系列どうし)。縦棒の、積み上げでない棒だけ\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(ステップの長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする",
|
|
1248
1263
|
"free": "### `<m-bars>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"売上\"}],\"groups\":[{\"label\":\"1 年目\",\"value\":1.2},{\"label\":\"2 年目\",\"value\":3.4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"v\"` | v(縦棒)か h(横棒。順位や比較に) |\n| `max` | number | `0` | 値の軸の上限(0 = 自動。scale があれば最初の上限) |\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、%、社 など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す組の数(0 = 全部をステップ 1 で) |\n| `count` | bool | `false` | 値の数字を伸びに合わせて数え上げる |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `al` | string | `\"\"` | 値の軸の名前 |\n| `stack` | bool | `false` | 組の値を 1 本に積み上げる(積み上げ棒)。\\ |\n| `mark` | string | `\"bar\"` | bar(棒)か dot(点。平均と誤差棒を、0 からの棒にせずに見せる) |\n\n年ごとの売上・費用、聞き取りの結果の順位、導入の前と後の比較など、量を 1 つずつ見せて比べるときに使う。\n\n- group:`label`(`\\n` で 2 行)、`value`(系列が 1 つ)か `values`(系列の数だけ)、`err`(誤差棒)、`step`(既定は per-step から)、`at`(ステップの中の開始秒。既定は同じステップの中で stagger ずつずらす)、`tone`(`emph` などテーマの変数の名前。その組の棒をすべてその色にし、値の数字も同じ色にする)\n- series:`label`(系列が 2 つ以上のとき、最初の組の棒に直接書く。縦棒は棒の上、横棒は値の数字の右(負の棒は下・左)。凡例は作らない)、`tone`(既定は `--series-1..4` の順。系列が 1 つなら `--term`)\n- scale:`[{\"step\": 3, \"max\": 27, \"at\": 0.4}]`。そのステップの at 秒から zoom 秒かけて、値の軸の上限を max へ動かす(対数で補間)。動く間は前の上限までの範囲を薄く塗って残し、目盛りは前の組と次の組を入れ替える。上限を超える棒は軸の上端で止まり、上限が広がるにつれて伸びる\n- `mark=\"dot\"`:棒の代わりに点(平均と誤差棒)\n- 横棒(`orient=\"h\"`)は組の名前を左に、値を棒の右に書く。順位を見せるなら `ticks=\"false\"` で目盛りを消してよい\n- 積み上げ棒(`stack=\"true\"`、`\"percent\"` なら各組 100 %):組の `values` を横に並べず 1 本に積み上げる(全体と内訳を組ごとに見せるとき)。合計を棒の端に、それぞれの値を区切りの中に書く。軸の上限は合計から決まる。組の `tone` は合計の数字の色。値は 0 以上にする(負の値は 0 として描く)\n\n注意\n\n- 値の数字は既定で棒が伸びきってから出す。伸びる途中の値は読めてしまうと「データ」に見えるため。数え上げたいときだけ `count=\"true\"`。積み上げ棒で `count=\"true\"` にすると数え上げるのは端の合計だけで、区切りの値と系列の名前は伸びきってから出る(ステップの長さはその分 0.35 秒長い)\n- 系列の名前は最初の組の棒に書くので、組の棒が細いと隣の系列の名前と重なる。系列は 2〜3 つまでにする"
|
|
1249
1264
|
},
|
|
1250
1265
|
"m-boxplot": {
|
|
@@ -1256,7 +1271,7 @@ export const PACK = {
|
|
|
1256
1271
|
"m-callout": {
|
|
1257
1272
|
"set": "tools",
|
|
1258
1273
|
"row": "| `<m-callout>` | 画面の画像に番号の丸を置き、引き出し線で横の説明につなぐ。ステップごとに 1 つずつ(研修・手引き・操作の説明) | 説明の step の最大(既定は説明 1 つ = 1 ステップ。per-step で n 個ずつ) | `{callouts:{x:num,y:num,text:str,box?:[num,num,num,num],step?,at?}[]}` |",
|
|
1259
|
-
"entry": "### `<m-callout>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"callouts\":[{\"x\":0.12,\"y\":0.08,\"text\":\"メニューを開く\"},{\"x\":0.7,\"y\":0.62,\"text\":\"「送る」を押す\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `side` | string | `\"right\"` | 説明を置く側:right・left・both(both は画像の左半分の丸を左に、右半分の丸を右に) |\n| `label-width` | number | `0.32` | 説明の列の幅(要素の幅に対する割合。both なら片側の幅) |\n| `per-step` | number | `1` | 1 ステップに出す説明の数(0 = 全部をステップ 1 で) |\n| `size` | number | `28` | 説明の字の大きさ(px、24 以上) |\n\n研修・職員向けの手引き・アプリの使い方で、画面のどこをどの順に操作するかを 1 つずつ見せる。\n\n画像は子の `<img src=\"
|
|
1274
|
+
"entry": "### `<m-callout>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"callouts\":[{\"x\":0.12,\"y\":0.08,\"text\":\"メニューを開く\"},{\"x\":0.7,\"y\":0.62,\"text\":\"「送る」を押す\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `side` | string | `\"right\"` | 説明を置く側:right・left・both(both は画像の左半分の丸を左に、右半分の丸を右に) |\n| `label-width` | number | `0.32` | 説明の列の幅(要素の幅に対する割合。both なら片側の幅) |\n| `per-step` | number | `1` | 1 ステップに出す説明の数(0 = 全部をステップ 1 で) |\n| `size` | number | `28` | 説明の字の大きさ(px、24 以上) |\n\n研修・職員向けの手引き・アプリの使い方で、画面のどこをどの順に操作するかを 1 つずつ見せる。\n\n画像は子の `<img src=\"figs/apply.png\" alt=\"…\" width=\"1280\" height=\"800\">`(作業フォルダの figs/ の画像はビルドのときにファイルに埋め込む。編集アプリで本文に入れる画像と同じ `data:` でもよい)。画面の画像をまだ見ていないとき(作成者が後で入れるとき)は使わない:図の枠と、どこをどの順に押すかの説明を書いておき、画像が入ってから丸の位置を決める。\n\n- **画面の画像に本当の個人の情報を写さない**(名前・番号・住民や患者の記録など)。架空のデータで画面を作るか、ぼかしてから使う\n- `alt`(何の画面か)・`width`・`height`(画像の px)は必ず書く(ないと data)。1 MiB を超える画像は size\n\n- callout:`x`・`y`(丸の位置。画像の幅と高さに対する割合 0〜1)、`text`(説明。`\\n` で改行)、`box`(`[x, y, 幅, 高さ]`、同じ割合。そのステップの間だけ操作する所を `--emph` の枠で囲む)、`step`、`at`\n- 説明は画像の横(`side`:`right`(既定)・`left`・`both`)に、丸の上下の順に並ぶ。重なれば下へずらし、引き出し線どうしは交わらない\n\n注意\n\n- 1 枚に 6 つくらいまで。手順が多ければ画面を分ける\n- 丸が操作する所を隠さず、引き出し線がその上を通らないよう、x・y はボタンや欄の、説明の側の端に置く(side=\"right\" なら右の端)"
|
|
1260
1275
|
},
|
|
1261
1276
|
"m-cards": {
|
|
1262
1277
|
"set": "standard",
|
|
@@ -1281,7 +1296,7 @@ export const PACK = {
|
|
|
1281
1296
|
"m-code": {
|
|
1282
1297
|
"set": "data",
|
|
1283
1298
|
"row": "| `<m-code>` | 短いコードを行ごとに説明し、最後に出力を見せる | コード全体→説明を順に→出力(説明数+1、出力ありは+2) | `{code:str,lang?:str,output?:str,steps:{lines:(int\\|[int,int])[],note}[]}` |",
|
|
1284
|
-
"entry": "### `<m-code>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"pandas を読み込む\"},{\"lines\":[2],\"note\":\"CSV を表として読む\"},{\"lines\":[3],\"note\":\"店ごとの平均\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は既定) |\n| `outputPos` | enum | `\"auto\"` | 出力の位置 |\n\n`<m-code style=\"height:440px\">` の子に JSON を置く。\n\n- `code`:440px で 9 行・1 行 76 字まで全部見える。長い行は折り返し、行が多ければステップごとにスクロールして見せる(16 行まで。超すなら分ける)\n- `lang
|
|
1299
|
+
"entry": "### `<m-code>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"lang\":\"python\",\"code\":\"import pandas as pd\\ndf = pd.read_csv(\\\"sales.csv\\\")\\ndf.groupby(\\\"store\\\")[\\\"sales\\\"].mean()\",\"steps\":[{\"lines\":[1],\"note\":\"pandas を読み込む\"},{\"lines\":[2],\"note\":\"CSV を表として読む\"},{\"lines\":[3],\"note\":\"店ごとの平均\"}],\"output\":\"store\\nA 120.5\\nB 98.0\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `0` | 文字 px(0 は既定) |\n| `outputPos` | enum | `\"auto\"` | 出力の位置 |\n\n`<m-code style=\"height:440px\">` の子に JSON を置く。\n\n- `code`:440px で 9 行・1 行 76 字まで全部見える。長い行は折り返し、行が多ければステップごとにスクロールして見せる(16 行まで。超すなら分ける)\n- `lang`:言語名(色分けは python・r・shell・js だけ、ほかは色なし)。`steps[{lines,note}]`:行は 1 始まり、`[3]`、範囲 `[3,4]`、飛び飛びは 3 つ以上 `[2,5,9]`。説明は 30 字まで\n- `output`:省略可の出力文字列(8 行まで)\n\n台本はコードを読み上げない。その行が何をするかを言葉で言う(変数名や記号は 1 つずつなら書いてよい)。"
|
|
1285
1300
|
},
|
|
1286
1301
|
"m-compare": {
|
|
1287
1302
|
"set": "standard",
|
|
@@ -1308,28 +1323,33 @@ export const PACK = {
|
|
|
1308
1323
|
"m-curves": {
|
|
1309
1324
|
"set": "standard",
|
|
1310
1325
|
"row": "| `<m-curves>` | 同じ座標軸に線を 1 本ずつ引く(線の名前は凡例でなく線の端に直接書く) | step の最大(既定は系列の数) | `[{label?,f?:str,pts?:[num,num][],tone?,step?,labelAt?:num,color?:str,dash?:bool,xr?:[num,num],area?:any[],areaLabel?:str\\|any[],at?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num} (f or pts),…]` — データは配列そのもの({\"series\": […]} ではない)。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。式の欄は f で、変数は x(fn・u ではない) |",
|
|
1326
|
+
"freeRow": "| `<m-curves>` | 同じ座標軸に線を 1 本ずつ引く(線の名前は凡例でなく線の端に直接書く) | step の最大(既定は系列の数) | `[{label?,f?:str,pts?:[num,num][],labelAt?:num,color?:str,dash?:bool,xr?:[num,num],area?:any[],areaLabel?:str\\|any[],anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"\\|\"start\"\\|\"middle\"\\|\"end\",dx?:num,dy?:num,ly?:num}† (f or pts),…]` — データは配列そのもの({\"series\": […]} ではない)。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。式の欄は f で、変数は x(fn・u ではない) |",
|
|
1311
1327
|
"entry": "### `<m-curves>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `[{\"label\":\"需要 D\",\"f\":\"10 - x\"},{\"label\":\"供給 S\",\"f\":\"2 + x\"},{\"label\":\"均衡\",\"pts\":[[4,0],[4,6]],\"dash\":true}]`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `[0, 1]` | 横軸の範囲 |\n| `yr` | json | `[0, 1]` | 縦軸の範囲 |\n| `xt` | json | `[]` | 横軸の目盛りの値 * |\n| `yt` | json | `[]` | 縦軸の目盛りの値 * |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `n` | number | `300` | f を描く分割数 |\n| `lw` | number | `3.5` | 線の太さ |\n| `size` | number | `0` | 字の大きさ(24 以上。0 = 既定) |\n\n同じ予測分布に平均・中央値・分位点を順に引く、損失関数を 1 つずつ重ねる、など\n「一つの図で比較の軸を一つずつ見せる」ときに使う。\n\n系列は子の `<script type=\"application/json\">` に配列で書く。\n1 系列 = 1 ステップ(書いた順)。`step` で変えられ、同じ `step` の系列は一緒に引く。台本の [n] はこのステップに合わせる。\n\n| 欄 | 意味 |\n|---|---|\n| `label` | 線の名前 |\n| `f` | x の算術の式(`exp(…)` `sqrt(…)` `PI` などの `Math` の関数と定数、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較と `? :`。下を見よ)。`xr` で描く範囲を狭められる |\n| `pts` | 点列 `[[x, y], …]`(縦線や実測の折れ線) |\n| `tone` | `term` `emph` `accent2` `muted` `fg` `series-1..4`(既定は `series-1..4` の順) |\n| `dash` | 破線 |\n| `area` / `areaLabel` | 塗る区間 `[a, b]`(複数可、null は端)とラベル |\n| `labelAt` / `anchor` / `dx` / `dy` / `ly` | 名前の位置:横軸の値 `labelAt` の点に置く(既定は線の端)。`anchor` は向き(`right` `left` `above` `below`)。`ly` は縦軸の値で高さを決める |\n\n`size=\"40\"`:字の大きさ(24 以上)。`xt` に字の目盛り:`xt='[\"4月\",\"5月\",\"6月\"]'`(x = 1, 2, 3)か `[[0, \"2023年度\"], …]`。\n\n`f` は算術の式で、コードとしては実行しない:数、`x`、`Math` の関数と定数(`sin(x)` とも `Math.sin(x)` とも書ける。`Math.random` は使えない)、`N(x, 平均, 標準偏差)`、`+ - * / % **`、比較(`< <= > >= == !=`)、`&& || !`、`? :`、括弧。べき乗は `**`(`^` は書けない)。書けない式はエラーの表示になる。",
|
|
1312
1328
|
"sup": true
|
|
1313
1329
|
},
|
|
1314
1330
|
"m-cycle": {
|
|
1315
1331
|
"set": "standard",
|
|
1316
1332
|
"row": "| `<m-cycle>` | 循環の図。項目の箱を円の上に 12 時から時計回りに並べ、円に沿った矢印でつなぐ(最後から最初へ戻る矢印も) | ステップの数(既定は 1 つ = 1 ステップ。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,step?,at?}[],center?:{label?,tex?,note?,tone?,step?,at?},edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` |",
|
|
1333
|
+
"freeRow": "| `<m-cycle>` | 循環の図。項目の箱を円の上に 12 時から時計回りに並べ、円に沿った矢印でつなぐ(最後から最初へ戻る矢印も) | ステップの数(既定は 1 つ = 1 ステップ。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?}†[],center?:{label?,tex?,note?}†,edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[]}` |",
|
|
1317
1334
|
"entry": "### `<m-cycle>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"center\":{\"label\":\"PDCA\"},\"nodes\":[{\"label\":\"計画\"},{\"label\":\"実行\"},{\"label\":\"評価\"},{\"label\":\"改善\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `per-step` | number | `1` | 1 ステップに出す箱の数(0 = 全部をステップ 1 で) |\n| `size` | number | `26` | 箱の字の大きさ(px。入らなければ 24 まで縮める) |\n\nPDCA、水の循環、細胞周期、学習のサイクルなど、同じ順で回り続ける流れを見せるときに使う。\n座標は書かない。項目の中身を配列の順に書けば、パーツが並べる(共通の決まり §2)。\n\n子の JSON の並び:`center` と `edges` は省ける。\n\n- `nodes`:項目(3〜8 個を想定)。配列の順に回る。12 時の位置から時計回りに置き、となりの項目へ円に沿った矢印を引く。最後から最初へ戻る矢印は自動で引く\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の中の 2 行目に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`、`id`\n- `center`:真ん中の名前(`{\"label\": \"PDCA\", \"note\": \"…\"}`)。最初の項目と一緒に出る(`center.step` で変えられる)。`center` はオブジェクト。<!--part:m-pie-->`m-pie` の `center` は字(文字列)なので取り違えない<!--/part-->\n - `label`(`\\n` で改行)か `tex`(KaTeX)、`note`(箱の**中**の最後の行に小さく、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`\n - `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- `edges`:ほかのつながり(`from` `to` は項目の `id`、`label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印\n- 矢印の色は `--muted`、3 px(`edges` も `tone` がなければ `--muted`)\n\n並べ方:\n\n- 横に長い場所では円を横に伸ばした楕円にする(縦の 1.9 倍まで。縦に長くはしない)。箱と矢印が要素の箱に入る大きさにする\n- ステップ:既定は 1 ステップに 1 つ。入ってくる矢印はそのステップの箱と一緒に出る。最後から最初へ戻る矢印は、最後のステップの箱が出たあとに引く\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る。大きさは 0.92 倍から、`fade` と同じ)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 先のステップを薄く見せる表示(`ctx.preview`):後のステップの箱と矢印をテーマの薄さで見せる\n- `cues(k)`:同じステップに 2 つ以上の箱があれば、2 つ目からの開始時刻を返す"
|
|
1318
1335
|
},
|
|
1319
1336
|
"m-diverge": {
|
|
1320
1337
|
"set": "business",
|
|
1321
1338
|
"row": "| `<m-diverge>` | 基準の棒から始め、増減の棒を前の棒の端から上下に積んで、最後に合計の棒を立てる(ウォーターフォール) | 棒の step の最大(既定は棒 1 本 = 1 ステップ。per-step で n 本ずつ) | `{items:{label,value?:num,total?:bool,tone?,step?,at?}[]}` |",
|
|
1339
|
+
"freeRow": "| `<m-diverge>` | 基準の棒から始め、増減の棒を前の棒の端から上下に積んで、最後に合計の棒を立てる(ウォーターフォール) | 棒の step の最大(既定は棒 1 本 = 1 ステップ。per-step で n 本ずつ) | `{items:{label,value?:num,total?:bool}†[]}` |",
|
|
1322
1340
|
"entry": "### `<m-diverge>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"items\":[{\"label\":\"前年\",\"value\":120,\"total\":true},{\"label\":\"増加\",\"value\":45},{\"label\":\"減少\",\"value\":-30},{\"label\":\"今年\",\"total\":true}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `unit` | string | `\"\"` | 値の単位(数字の後ろに付ける。億円、人、% など) |\n| `digits` | number | `0` | 値の小数桁 |\n| `per-step` | number | `1` | 1 ステップに出す棒の数(0 = 全部をステップ 1 で) |\n| `min` | number | `0` | 値の軸の始まり(0 = 0 から。正の値なら軸をそこから始め、切れ目の印を付ける。棒の端がすべてそれ以上のときだけ) |\n| `ticks` | bool | `true` | 値の軸の目盛りと格子 |\n| `links` | bool | `true` | 隣の棒を累計の高さの点線でつなぐ |\n| `al` | string | `\"\"` | 値の軸の名前 |\n\n前年の利益から今年の利益までの増減の内訳、予算と実績の差の要因、人口の増減(生まれた・亡くなった・転入・転出)など、\n基準から合計までの増減を 1 つずつ見せるときに使う。高さ 400px 以上を目安に置く。\n\n- item:`label`(`\\n` で 2 行)、`value`、`total`(`true` なら合計の棒)、`tone`(`emph` などテーマの変数の名前。棒と値の数字の色)、`step`(既定は per-step から)、`at`(ステップの中の開始秒)\n- 合計の棒(`\"total\": true`)は 0 から伸びる。最初の棒が合計の棒なら、その `value` が基準になる\n- 増減の棒は、前の棒の端(それまでの累計)から `value` の分だけ上(正)か下(負)へ伸びる\n- `min=\"50000\"`:軸の始まり(大きな値の小さな増減のとき。切れ目の印が付く)\n- 後の合計の棒は累計で描く。`value` を書くと累計と合うかを確かめる(合わなければ data)\n\n注意\n\n- 棒が多いと名前が詰まる。10 本くらいまでにし、名前は短く(2 行まで)する\n- 増加と減少の色は良し悪しを表さない(費用の減少も `--emph`)。良し悪しを示したい棒は `tone` で色を変える"
|
|
1323
1341
|
},
|
|
1324
1342
|
"m-fishbone": {
|
|
1325
1343
|
"set": "standard",
|
|
1326
1344
|
"row": "| `<m-fishbone>` | 原因と結果の図(特性要因図・フィッシュボーン図)を、大骨 1 本ずつ組み立て、最後に結果(頭)を出す。座標は書かず、配置はパーツが決める | 大骨の数 + 1(頭)。節と edges の step があればその最大 | `{effect:{label?,tex?,note?,tone?,step?,at?},nodes:{id:str\\|int,label?,tex?,note?,tone?,parent?:str\\|int,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — parent のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで) |",
|
|
1345
|
+
"freeRow": "| `<m-fishbone>` | 原因と結果の図(特性要因図・フィッシュボーン図)を、大骨 1 本ずつ組み立て、最後に結果(頭)を出す。座標は書かず、配置はパーツが決める | 大骨の数 + 1(頭)。節と edges の step があればその最大 | `{effect:{label?,tex?,note?}†,nodes:{id:str\\|int,label?,tex?,note?,parent?:str\\|int}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[]}` — parent のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで) |",
|
|
1327
1346
|
"entry": "### `<m-fishbone>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"effect\":{\"label\":\"配送の遅れ\"},\"nodes\":[{\"id\":\"p\",\"label\":\"人\"},{\"id\":\"p1\",\"label\":\"人手が足りない\",\"parent\":\"p\"},{\"id\":\"m\",\"label\":\"機械\"},{\"id\":\"m1\",\"label\":\"車の故障\",\"parent\":\"m\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `order` | string | `\"causes-first\"` | ステップの順:causes-first(大骨 1 本ずつ、最後に頭、既定)か effect-first(頭と背骨が先) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n品質管理の 4M(人・機械・方法・材料)で不良や遅れの原因を洗い出すとき、理科で「なぜうまくいかないのか」を分けて考えるときなど、\n1 つの結果に効く原因を分類して見せるときに使う。座標は書かない(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- effect:結果(頭)。`label`(`\\n` で改行)か `tex`、`note`(箱の下の一言)、`tone`(既定 `emph`)、`step`、`at`\n- node:`id`、`label`(または `tex`)、`note`、`parent`、`tone`、`step`、`at`。`parent` のない節が大骨(分類)、その子が原因、孫が細かい原因(3 段まで)\n - 大骨は配列の順に、左から、上・下・上・下と交互に付く。分類の名前は大骨の外の端の箱に書く(`note` は箱の**外側**に小さく)\n - 原因と細かい原因の `tex` は式(KaTeX)として線の上に、`note` は名前の後ろに続けて小さく(`--muted`)書く\n - 原因は大骨に付く横の線の上に、細かい原因は原因の線から大骨と平行に下ろした線に付く横の線の上に書く\n - `tone`:大骨なら箱と骨の色、原因なら字と線の色(`emph` は太字)。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n - 線の色は `--muted`。背骨は 5 px(図の中心の線)、大骨は 3.5 px、原因の線は 2.5 px\n- edge:原因どうしのほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、字の左へふくらむ。同じ大骨の原因どうしに向く\n- `order`:`causes-first`(既定。大骨 1 本ずつ(その原因と一緒に)、最後に頭)か `effect-first`(頭と背骨を先に出し、それから大骨 1 本ずつ)。節の `step` が勝つ(原因だけ後のステップにもできる)\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱と字が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):大骨 1 本あたりの行(原因と細かい原因の数)は 3 つまで(短ければ 4 つ)、大骨は 4〜6 本、原因は 10 字ほどまで。字は 24 px より小さくならず、入らない分は要素の箱から上下・左右にはみ出す(足りない px を `ctx.report` で知らせ、Studio の品質チェックに出る)。多いときは図を分けるか、原因を短く言い換える\n- 先のステップを薄く見せる表示(`ctx.preview`)では、後のステップの骨と字をテーマの薄さで出しておく"
|
|
1328
1347
|
},
|
|
1329
1348
|
"m-flow": {
|
|
1330
1349
|
"set": "standard",
|
|
1331
1350
|
"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}[]}` |",
|
|
1332
|
-
"
|
|
1351
|
+
"freeRow": "| `<m-flow>` | 流れ図の箱と矢印をステップごとに出して、図を組み立てる | nodes と edges の step の最大 | `{nodes:{id:str\\|int,label?,tex?,x:num,y:num,w:num,h:num,shape?:str}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool,kind?:\"money\"\\|\"service\"\\|\"data\",amount?:str\\|num,shift?:num,pulse?:bool\\|any[],pulseAt?:num,offset?:num,loop?:bool\\|str}†[]}` |",
|
|
1352
|
+
"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` は大きさ)。箱どうしは 40 px 以上空ける(重なれば layout を知らせる)。\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- 箱は薄く拡大しながら現れ、矢印は同じステップの箱が出てから引く",
|
|
1333
1353
|
"ext": {
|
|
1334
1354
|
"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}」に合わせて流れる"
|
|
1335
1355
|
}
|
|
@@ -1373,21 +1393,24 @@ export const PACK = {
|
|
|
1373
1393
|
"m-kobun": {
|
|
1374
1394
|
"set": "kokugo",
|
|
1375
1395
|
"row": "| `<m-kobun>` | 古文を語に切り(スラッシュ)、品詞で色を分けて 1 文ずつ見せ、最後に現代語訳と並べる。助動詞を押すと活用表と意味 | 文の数(現代語訳があれば +1) | 要素の中の字(JSON ではない) |",
|
|
1376
|
-
"entry": "### `<m-kobun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後のステップで並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。ステップ 0
|
|
1396
|
+
"entry": "### `<m-kobun>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `34` | 本文の字の大きさ(px) |\n| `tate` | bool | `false` | 縦書きにする(品詞は語の左、現代語訳は文の左に) |\n| `yaku` | bool | `true` | 現代語訳(= の行)があれば、最後のステップで並べる |\n| `detail` | bool | `false` | 品詞の下に [ ] の中をすべて(活用の種類・活用形など)出す |\n\n古文の品詞分解を、板書のように 1 文ずつ見せるときに使う。ステップ 0 は切っていない本文。1 枚に 2 文まで(縦書きで 3 文を詰めると、現代語訳がスライドの結論の列にかかる)。長い段は文の切れ目でスライドを分ける。\n\n#### 書き方\n\n1 行が 1 文(1 ステップ)。語は `/` で切り、語の後ろの `[ ]` に品詞(と、`・` で区切って詳しいこと)を書く。`[ ]` の後ろの字(`、` `。`)は語に付けて出す。\n\n```\n春[名]/は[係助]/あけぼの[名]。\n= 春は明け方(がよい)。\n紫だち[動・タ四・連用]/たる[助動・たり・存続・連体]/雲[名]/の[格助]/…\n```\n\n- 品詞:`名` `代` `動` `補動` `形` `形動` `副` `連体` `接` `感` `助動` `格助` `係助` `副助` `接助` `終助` `間助` `接頭` `接尾`\n- 助動詞:`[助動・基本形・この文での意味・活用形]` の 4 つを必ず書く。例:`けり[助動・けり・過去・終止]`、`ず[助動・ず・打消・連用]`。基本形を抜いた `[助動・過去・終止]` は誤り。基本形は文語の助動詞 28 語の表から引く(`なり`・`たり` は意味で分ける)。表にないものは知らせる\n- `= …` の行:直前の文の現代語訳(最後のステップで、本文の下、縦書きでは左に出す)\n- `{漢字|かな}`:振り仮名\n\n#### 属性\n\n- `tate`:縦書き(品詞は語の左)\n- `detail`:品詞の下に `[ ]` の中をすべて出す(活用の種類・活用形まで。語の間が広がる)\n - `detail` がなければ、助動詞の意味・活用形は押したときのポップアップにだけ出る(印刷には出ない)。印刷や動画で見せるなら `detail` を付ける\n- `yaku=\"false\"`:現代語訳のステップを作らない"
|
|
1377
1397
|
},
|
|
1378
1398
|
"m-kpi": {
|
|
1379
1399
|
"set": "standard",
|
|
1380
1400
|
"row": "| `<m-kpi>` | 大きな数字のカード(KPI)をステップごとに出す。数字は数え上げ、下に増減の矢印と一言 | カードの step の最大(既定はカード 1 枚 = 1 ステップ。per-step で n 枚ずつ) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,tone?,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?,step?,at?}[]}` |",
|
|
1401
|
+
"freeRow": "| `<m-kpi>` | 大きな数字のカード(KPI)をステップごとに出す。数字は数え上げ、下に増減の矢印と一言 | カードの step の最大(既定はカード 1 枚 = 1 ステップ。per-step で n 枚ずつ) | `{cards:{label?,value:num,digits?:int,unit?:str,prefix?:str,from?:num,delta?:{dir?:\"up\"\\|\"down\",text?:str,good?:bool},note?}†[]}` |",
|
|
1381
1402
|
"entry": "### `<m-kpi>`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `cols` | number | `0` | 1 行のカードの数(0 = カードの数、4 まで) |\n| `digits` | number | `0` | 数字の小数桁(カードの digits が優先) |\n| `per-step` | number | `1` | 1 ステップに出すカードの数(0 = 全部をステップ 1 で) |\n| `count` | bool | `true` | 数字を数え上げる |\n| `size` | number | `0` | 数字の字の大きさ(px。0 = カードの高さから) |\n\n表紙の直後の「掴みの数字」、試験導入の結果、市場規模の要約など、少数の数字を大きく見せるときに使う。\n\nカードごとに `step`・`at` も書ける。\n\n- `label`:カードの上の名前。`value`:数字(`digits` 桁、3 桁ごとにカンマ)。`unit`:数字の後ろの単位(小さめの字)。`prefix`:数字の前の記号(`+` `約` など)。負の `value` は自分で − が付くので、`prefix` に `−` を重ねない(`\"prefix\": \"−\"` と `-12` は「−−12」)。減った量を正の数で見せるときだけ `value` を正にして `prefix: \"−\"`\n- `from`:数え上げを始める値(既定 0。「20 分 → 7.5 分」のように減らす数も見せられる)\n- `tone`:数字とカードの上の線の色(`term`(既定)・`emph`・`accent2`・`series-1..4`)\n- `delta`:`{\"dir\": \"up\" | \"down\", \"text\": \"前の期から 4 社\", \"good\": true}`。▲ / ▼ と一言を数字の下に出す。良い向き(`good`、既定は `up` なら良い)なら `--term`、悪い向きなら `--emph`\n- `note`:カードの下端の一言(`--muted`)\n- 見せ方(`variant`):`count`・`rise`・`flip`・`underline`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- カードの並び:`cols`(既定はカードの数、4 まで)列で、行が足りなければ折り返す\n- `cues(k)`:同じステップに 2 枚以上のカードがあれば、2 枚目からの開始時刻を返す(台本の `{cue}` に合わせられる)"
|
|
1382
1403
|
},
|
|
1383
1404
|
"m-map-japan": {
|
|
1384
1405
|
"set": "maps",
|
|
1385
1406
|
"row": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きをステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?,tone?,step?,at?} (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — 都道府県は regions[].id に JIS の番号 \"01\"〜\"47\"(\"JP-13\"・\"東京都\" も可)、八地方区分は regions[].group(hokkaido・tohoku・kanto・chubu・kinki・chugoku・shikoku・kyushu)。values は {番号: 数} のオブジェクト、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows[].via は経度・緯度(度) |",
|
|
1407
|
+
"freeRow": "| `<m-map-japan>` | 日本の 47 都道府県の地図。地域の強調、統計の塗り分け、点、矢印、経度・緯度の重ね描きをステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str\\|int,group?:str,label?}† (id or group),…],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str\\|int,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"}† (lon + lat or code),…],flows?:{from:str\\|int\\|any[],to:str\\|int\\|any[],label?,value?:num,bend?:num,via?:any[][],labelAt?:any[]}†[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],dash?:bool}† (polygon or line),…]}` — 都道府県は regions[].id に JIS の番号 \"01\"〜\"47\"(\"JP-13\"・\"東京都\" も可)、八地方区分は regions[].group(hokkaido・tohoku・kanto・chubu・kinki・chugoku・shikoku・kyushu)。values は {番号: 数} のオブジェクト、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows[].via は経度・緯度(度) |",
|
|
1386
1408
|
"entry": "### `<m-map-japan>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"regions\":[{\"id\":\"13\",\"tone\":\"emph\",\"step\":1},{\"group\":\"kinki\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":135.5,\"lat\":34.69,\"label\":\"大阪\",\"step\":3}],\"flows\":[{\"from\":\"13\",\"to\":\"27\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `layout` | string | `\"inset\"` | inset(南西諸島を枠に入れて描く)か true(本当の位置。日本が小さくなる) |\n| `islands` | string | `\"main\"` | main か all(inset で小笠原諸島の枠も描く) |\n| `labels` | string | `\"focus\"` | 地域の名前:focus(regions に書いた地域だけ)・all(名前が中に入る都道府県すべて)・none |\n| `show` | string | `\"none\"` | 塗り分けた地域の上に値を書くか:none(書かない、既定)・value(中に入る地域だけ値を書く) |\n| `territory-islands` | string | `\"auto\"` | 島の名前:auto(必要なときだけ)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"01\"`〜`\"47\"`)か `group`(`hokkaido` `tohoku` `kanto` `chubu` `kinki` `chugoku` `shikoku` `kyushu`)。`label`\n- `values`:`{\"13\": 1406, …}` と `classes`(階級の下限。最初はいちばん小さい値以下に。書かなければ四分位で 4 階級。5 つまで)で塗り分け。凡例に階級を書く。塗り分けのステップは `valuesStep`(既定 1。`values` は `step` を持てない)\n- `points`:`lon` `lat`(または `code` で県庁の位置)、`label`、`anchor`\n- `flows`:`from` `to`(番号か `[経度, 緯度]`)の矢印。`via`(通る点 `[[経度, 緯度], …]`。海の道は沖に)、`label` `labelAt` `value`(数。線が値で太くなる)\n- `shapes`:`polygon` か `line`(`[[経度, 緯度], …]`)。`label` `dash`\n\n`labels`:`focus`(既定)・`all`・`none`。`show=\"value\"` で入る地域に値を書く(既定は書かない)。\n\n日本の範囲・東西南北の端・排他的経済水域を見せるときは layout=\"true\"(本当の位置)"
|
|
1387
1409
|
},
|
|
1388
1410
|
"m-map-world": {
|
|
1389
1411
|
"set": "maps",
|
|
1390
1412
|
"row": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印をステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str,group?:str,label?,tone?,step?,at?} (id or group),…],categories?:{label,ids:str[],tone?,step?,at?}[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",step?,at?} (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,tone?,value?:num,bend?:num,via?:any[][],labelAt?:any[],step?,at?}[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],tone?,dash?:bool,step?,at?} (polygon or line),…]}` — 国・地域は ISO の 3 文字か Natural Earth の符号(\"JPN\"・\"USA\")か日本語の名前。六州(asia・europe・africa・north-america・south-america・oceania)は regions[].group と categories[].ids に。values は {符号: 数}、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows の [経度, 緯度] は度 |",
|
|
1413
|
+
"freeRow": "| `<m-map-world>` | 世界の国・地域の地図(太平洋が中央)。国や州の強調、区分と値の塗り分け、点、矢印をステップごとに出す | 項目の step の最大(既定 1)。地図そのものはステップ 0 から出ている | `{regions?:[{id?:str,group?:str,label?}† (id or group),…],categories?:{label,ids:str[]}†[],values?:object,classes?:num[],valuesStep?:int,points?:[{lon?:num,lat?:num,code?:str,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\"}† (lon + lat or code),…],flows?:{from:str\\|any[],to:str\\|any[],label?,value?:num,bend?:num,via?:any[][],labelAt?:any[]}†[],shapes?:[{polygon?:any[][],line?:any[][],label?,labelAt?:any[],dash?:bool}† (polygon or line),…]}` — 国・地域は ISO の 3 文字か Natural Earth の符号(\"JPN\"・\"USA\")か日本語の名前。六州(asia・europe・africa・north-america・south-america・oceania)は regions[].group と categories[].ids に。values は {符号: 数}、classes は階級の下限(既定は 4 階級、5 つまで)。points・shapes・flows の [経度, 緯度] は度 |",
|
|
1391
1414
|
"entry": "### `<m-map-world>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"regions\":[{\"id\":\"JPN\",\"tone\":\"emph\",\"step\":1},{\"group\":\"africa\",\"tone\":\"series-2\",\"step\":2}],\"points\":[{\"lon\":139.69,\"lat\":35.69,\"label\":\"東京\",\"step\":3}],\"flows\":[{\"from\":[139.69,35.69],\"to\":\"AUS\",\"step\":4}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `labels` | string | `\"focus\"` | 名前:focus(regions に書いた地域だけ)・all(名前が中に入る国すべて)・none |\n| `grid` | string | `\"none\"` | none・equator(赤道)・graticule(30° ごとの経線・緯線と赤道) |\n| `show` | string | `\"none\"` | 塗り分けた国の上に値を書くか:none(既定)・value(中に入る国だけ) |\n| `territory-islands` | string | `\"auto\"` | 島の点:auto(描かない)・show・hide |\n| `unit` | string | `\"\"` | 値の単位(凡例の見出しに書く) |\n| `digits` | number | `0` | 値の小数桁 |\n| `legend` | string | `\"\"` | 凡例の見出し(例:人口)。unit があれば後ろに(単位)を足す |\n\n子の JSON(どれも `step` `at` `tone` を持てる):\n\n- `regions`:`id`(`\"JPN\"` など ISO の 3 文字か国名)か `group`(六州)。`label`\n- `categories`:`label` と `ids`(国か州)。凡例に出す。4 区分まで\n- `values`:`{\"JPN\": 72, …}` と `classes`(階級の下限)。塗り分けのステップは `valuesStep`(既定 1)\n- `points`:`lon` `lat`、`label`、`anchor`\n- `flows`:`from` `to`(`[経度, 緯度]` か国)、`via` `label` `bend`、`value`(数。線の太さが値で変わる:いちばん大きい値で 10 px)、`labelAt`(名前を置く `[経度, 緯度]`)\n- `shapes`:重ね描き。`polygon`(3 点以上の `[[経度, 緯度], …]`、薄く塗る)か `line`(2 点以上)。`label` `labelAt` `dash`\n\n継ぎ目は 30°W(大西洋を横切る矢印は描けない)。"
|
|
1392
1415
|
},
|
|
1393
1416
|
"m-mapping": {
|
|
@@ -1449,6 +1472,7 @@ export const PACK = {
|
|
|
1449
1472
|
"m-quad": {
|
|
1450
1473
|
"set": "standard",
|
|
1451
1474
|
"row": "| `<m-quad>` | 2 軸の位置づけ(ポジショニングマップ・SWOT 風の 4 象限)に、点をステップごとに 1 つずつ置く | 点の step と to.step の最大(既定は点 1 つ = 1 ステップ) | `{x?:{lo?:str,hi?:str},y?:{lo?:str,hi?:str},quads?:{tr?:str,tl?:str,bl?:str,br?:str,fill?:str},items:{label?,x:num,y:num,step?,at?,tone?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\",r?:num,self?:bool,to?:{x:num,y:num,label?,step?,at?}}[]}` |",
|
|
1475
|
+
"freeRow": "| `<m-quad>` | 2 軸の位置づけ(ポジショニングマップ・SWOT 風の 4 象限)に、点をステップごとに 1 つずつ置く | 点の step と to.step の最大(既定は点 1 つ = 1 ステップ) | `{x?:{lo?:str,hi?:str},y?:{lo?:str,hi?:str},quads?:{tr?:str,tl?:str,bl?:str,br?:str,fill?:str},items:{label?,x:num,y:num,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\",r?:num,self?:bool,to?:{x:num,y:num,label?,step?,at?}}†[]}` |",
|
|
1452
1476
|
"entry": "### `<m-quad>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"x\":{\"lo\":\"手作業\",\"hi\":\"自動\"},\"y\":{\"lo\":\"高い\",\"hi\":\"安い\"},\"items\":[{\"label\":\"A 社\",\"x\":0.25,\"y\":0.7},{\"label\":\"自社\",\"x\":0.8,\"y\":0.82,\"self\":true}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `size` | number | `26` | 点の名前の字の大きさ(px) |\n| `quads-step` | number | `0` | 象限の名前を出すステップ(0 = 初めから) |\n\n競合と自社の位置づけ、施策の分類(効果×手間)、SWOT のように、2 つの軸の上に項目を 1 つずつ置いて\n「空いている場所」を見せるときに使う。\n\n- `x` `y`:軸の両端の言葉(横軸は軸の下の両端、縦軸は軸の上端と下端の外)。軸と言葉はステップ 0 から見える\n- `quads`:象限の名前(tr = 右上、tl = 左上、bl = 左下、br = 右下)。`fill` に象限の名前(`\"tr\"` など)を書くとその象限を淡く塗り、名前を `--term` で書く。名前は `quads-step` のステップで現れる(既定 0 = 初めから)\n- item:`label`、`x` `y`(0〜1。0.5 が軸の交わるところ)、`step`(既定は前の点の次のステップ)、`at`(ステップの中の開始秒)、`tone`(`term` / `fg`、既定は `--muted`)、`anchor`(名前の位置:`right`(既定)・`left`・`above`・`below`)、`r`(丸の半径)\n- `self: true` の点は `--emph` で大きく描き、現れたときに輪が 1 回広がる(最終状態では輪は出ない)\n- `to: {\"x\", \"y\", \"label\", \"step\", \"at\"}`:移動先。`to.step`(既定は点の次のステップ)に、点が破線の跡を引きながら滑り、着いたら移動先の上に `label` を出す\n- `cues(k)`:同じステップに 2 つ以上の点があれば、2 つ目からの開始時刻(at)を返す。台本の `{cue}` の数と合えば、点が言葉に合わせて現れる\n\n注意\n\n- 象限の名前は、点・点の名前・軸の言葉にかからない隅に置く。どの隅もかかるときは点の名前を置き直す(置き場がなければ `ctx.report` で知らせる)\n- 点の名前どうし・移動先の名前との重なりは置き直さない。近い点の名前は重なることがあるので、`anchor` を変えるか座標をずらす"
|
|
1453
1477
|
},
|
|
1454
1478
|
"m-sampling": {
|
|
@@ -1459,6 +1483,7 @@ export const PACK = {
|
|
|
1459
1483
|
"m-scatter": {
|
|
1460
1484
|
"set": "standard",
|
|
1461
1485
|
"row": "| `<m-scatter>` | 散布図。点の組(系列)をステップごとに出し、そのあと傾向の線(最小二乗の直線か、書いた 2 点)を引く | 系列の数 + 傾向の線(既定は系列 1 つ = 1 ステップ、そのあと線をまとめて 1 ステップ。系列・線の step で直接) | `{series:{label?,tone?,step?,at?,points:([num,num]\\|{x:num,y:num,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",tone?})[]}[],trend?:str\\|{fit?:\"linear\",pts?:[[num,num],[num,num]],series?:int\\|any[],label?,tone?,dash?:bool,step?,at?,digits?:int}\\|[the same {…},…]}` — 点は [x, y] か {\"x\", \"y\", \"label\"}。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。trend は \"linear\" か {\"fit\": \"linear\", \"label\": \"…\"} か {\"pts\": [[x0, y0], [x1, y1]]} |",
|
|
1486
|
+
"freeRow": "| `<m-scatter>` | 散布図。点の組(系列)をステップごとに出し、そのあと傾向の線(最小二乗の直線か、書いた 2 点)を引く | 系列の数 + 傾向の線(既定は系列 1 つ = 1 ステップ、そのあと線をまとめて 1 ステップ。系列・線の step で直接) | `{series:{label?,points:([num,num]\\|{x:num,y:num,label?,anchor?:\"right\"\\|\"left\"\\|\"above\"\\|\"below\"\\|\"top\"\\|\"bottom\",tone?})[]}†[],trend?:str\\|{fit?:\"linear\",pts?:[[num,num],[num,num]],series?:int\\|any[],label?,dash?:bool,digits?:int}†\\|[the same {…},…]}` — 点は [x, y] か {\"x\", \"y\", \"label\"}。軸は属性に書く(xr=\"[0,10]\" xl=\"…\")。trend は \"linear\" か {\"fit\": \"linear\", \"label\": \"…\"} か {\"pts\": [[x0, y0], [x1, y1]]} |",
|
|
1462
1487
|
"entry": "### `<m-scatter>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"series\":[{\"label\":\"晴れ\",\"points\":[[24,210],[28,380],[31,560],{\"x\":34,\"y\":690,\"label\":\"猛暑日\"}]}],\"trend\":\"linear\"}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `xr` | json | `null` | 横軸の範囲(書かなければデータから) |\n| `yr` | json | `null` | 縦軸の範囲(書かなければデータから) |\n| `xt` | json | `null` | 横軸の目盛り(書かなければ自動) |\n| `yt` | json | `null` | 縦軸の目盛り(書かなければ自動) |\n| `xf` | number | | 横軸の目盛りの小数桁 |\n| `yf` | number | | 縦軸の目盛りの小数桁 |\n| `xl` | string | `\"\"` | 横軸の名前(`*斜体*` `_下付き` `^上付き`) * |\n| `yl` | string | `\"\"` | 縦軸の名前 * |\n| `r` | number | `9` | 点の半径(px) |\n\n気温と売上、勉強時間と点数、価格と販売数など、2 つの量の関係を見せるときに使う。\n点を出してから傾向の線を引く(共通の決まり §3 の「点、それから傾向」)。\n\n- series:`points`(点の並び。`[x, y]` か `{\"x\", \"y\", \"label\", \"anchor\", \"tone\"}`)、`label`(系列の名前。図の上に印と一緒に書く)、`tone`(`term` `emph` `accent2` `muted` `fg` `series-1..4`。既定は `series-1..4` の順)、`step`(1 系列 = 1 ステップ(書いた順)。同じ `step` の系列は一緒に出す)、`at`(ステップの中の開始秒)\n - 点の `label` は点の横に書く(右 → 左 → 上 → 下の順に、ほかの点・字・軸と重ならない所。`anchor`(`right` `left` `above` `below`)で最初に試す向きを決められる)。外れた点や目立つ点だけに付ける\n - 系列ごとに印の形が変わる(丸・四角・三角・ひし形)。色だけに頼らない。形と既定の色は 4 系列までで、5 つ目からは同じ組がくり返すので、系列は 4 つまでにする\n- trend:`\"linear\"`(全部の点の最小二乗の直線)、または `{\"fit\": \"linear\", \"series\": 0, \"label\", \"tone\", \"dash\", \"step\", \"at\", \"digits\"}`、または `{\"pts\": [[x0, y0], [x1, y1]]}`(書いた 2 点を結ぶ線分。ちょうど 2 つの `[x, y]`。縦の線も書ける)。2 本以上は配列にする\n - `series`:当てはめに使う系列の番号(0 から数える。1 つ目の系列が 0。数か番号の配列。既定は全部)\n - `label`:線の名前(図の上に書く)。`{r}` は相関係数、`{a}` は傾き、`{b}` は切片に置き換わる(`digits` 桁、既定 2)。例:`\"傾向(r = {r})\"`\n - `step`:既定は最後の系列の次のステップ(線が何本あっても同じステップ)\n - 当てはめた直線は当てはめた点の x の範囲に、`pts` の線は書いた 2 点の間に引き、軸の枠の中で切る。枠の外に出る線は描かず、`ctx.report` で知らせる\n - `pts` の縦の線では `{a}` `{b}`(傾き・切片)は空になる。`{r}` は当てはめた直線だけ\n- 軸の属性:`xr` `yr`(範囲)、`xt` `yt`(目盛り)、`xf` `yf`(目盛りの小数桁)、`xl` `yl`(軸の名前)。`xr` `yr` を書かなければデータから切りのよい範囲を、`xt` `yt` を書かなければ目盛りを決める\n- 見せ方(`variant`):`fade`・`sweep`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 先のステップを薄く見せる表示(`ctx.preview`)では、先のステップの点と線をテーマの薄さで見せる",
|
|
1463
1488
|
"sup": true
|
|
1464
1489
|
},
|
|
@@ -1497,6 +1522,7 @@ export const PACK = {
|
|
|
1497
1522
|
"m-timeline": {
|
|
1498
1523
|
"set": "standard",
|
|
1499
1524
|
"row": "| `<m-timeline>` | 年表。出来事を時間の軸の上に 1 つずつ出す。期間は軸に沿って長さのとおりに描き、重なれば段を分ける。end は含まない(\"1912\" は 1912 年の初め) | 出来事の数(既定は時刻の順に 1 つ = 1 ステップ。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,tone?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,step?,at?,after?:(str\\|int)[],progress?:num}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
|
|
1525
|
+
"freeRow": "| `<m-timeline>` | 年表。出来事を時間の軸の上に 1 つずつ出す。期間は軸に沿って長さのとおりに描き、重なれば段を分ける。end は含まない(\"1912\" は 1912 年の初め) | 出来事の数(既定は時刻の順に 1 つ = 1 ステップ。per-step で n 個ずつ、node の step が優先) | `{nodes:{id?:str\\|int,label?,tex?,note?,when:num\\|str,whenLabel?:str,end?:num\\|str,lane?:str,after?:(str\\|int)[],progress?:num}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[]}` — when / end: a number or \"YYYY\", \"YYYY-MM\", \"YYYY-MM-DD\"; end is exclusive (\"1912\" is the start of 1912). whenLabel: the date text shown instead of the computed one (when still sets the position). A node with end is a period (a band); lane groups bands into named lanes |",
|
|
1500
1526
|
"entry": "### `<m-timeline>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"nodes\":[{\"id\":\"a\",\"label\":\"明治維新\",\"when\":\"1868\",\"whenLabel\":\"明治元年\"},{\"id\":\"b\",\"label\":\"憲法の発布\",\"when\":\"1889\",\"note\":\"2 月 11 日\"},{\"id\":\"c\",\"label\":\"日清戦争\",\"when\":\"1894\",\"end\":\"1895\",\"tone\":\"emph\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"h\"` | h(左から右へ)か v(上から下へ) |\n| `scale` | string | `\"time\"` | time(時間に比例した間隔)か even(等間隔。間がとても不ぞろいなとき) |\n| `per-step` | number | `1` | 1 ステップに出す出来事の数(0 = 全部をステップ 1 で) |\n| `size` | number | `26` | 名前の字の大きさ(px。入らなければ 24 まで縮める) |\n| `unit` | string | `\"\"` | 目盛り:day・week・month |\n| `today` | string | `\"\"` | 今日の線(YYYY-MM-DD) |\n\n歴史の年表、人物の生涯の重なり、計画の日程など、出来事を時間の順に見せるときに使う。\n座標は書かない。中身と時刻だけを書けば、パーツが並べる(共通の決まり §2)。\n\n子の JSON の並び:`edges` は省ける。\n\n- `when`:時刻。数(`1868`、`-500`、`0.5` など)か、文字列 `\"YYYY\"` `\"YYYY-MM\"` `\"YYYY-MM-DD\"`。箱の上の行に日付として出る(日本語の資料なら「1868年」「2026年10月」)\n- `whenLabel`:日付の行に、計算した日付の代わりに書く字(「明治元年」「平成の終わり」など)。位置は `when` で決まる\n- `label`:名前(`\\n` で改行)。または `tex`(KaTeX)\n- `note`:箱の**中**の最後の行に小さく(`--muted`)。期間と節目では名前の後ろに続けて。例:「2 月 11 日」「新橋〜横浜」\n- `tone`:`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`。`emph` の箱は地が `--emph-tint`、枠と字が `--emph`\n- `end`:あれば期間。軸の下の段に長さのとおり描く。名前は期間の中(入らなければ左右)。`\\n` で何行かにすると期間が太くなる\n- `end` は含まない(終わりの時点)。`\"1912\"` は 1912 年の初め。明治 1868–1912 と大正 1912–1926 は同じ段に並ぶ。12 月まで含めるなら次の月(`\"2027-01\"`)を書く。\n- `lane`:期間を名前の付いた段のまとまりに分ける(「時代」「作家」「設計」など)。まとまりの名前を左に書き、まとまりの間に薄い線を引く。重なる期間は、まとまりの中で自動で別の段に積む。`end` のない node に `lane` を書くと、その段の中の節目(◆)になる\n- `step`・`at`:出るステップと、ステップの中の開始秒\n- `edges`:ほかのつながり(`from` `to` `label` `tone` `dash` `step`)。箱の縁から縁への破線の矢印(`dash: false` で実線)\n- 工程表:`after: [\"id\", …]`(前の作業の終わりから始まりへ矢印)、`progress`(0–100 %。濃く塗る)。今日の線は `today`、目盛りの単位は `unit`\n - `after` の矢印は期間(`end` のある node)か節目(`lane` のある node)のあいだだけ。`lane` のない出来事を指すと引かない。`today` の線は期間が 1 つ以上あるときだけ出る\n\n並べ方:\n\n- `orient`:`h`(既定、左から右へ)か `v`(上から下へ)\n- `scale`:`time`(既定、時間に比例した間隔)か `even`(使った時刻を等間隔に。間がとても不ぞろいなとき)\n- 出来事(`end` も `lane` もない node)は軸の上の点と、日付と名前の箱。箱は軸の上と下に交互に置く(`v` なら左と右)。混んでいて箱が点から離れすぎるときは 2 段にする\n- 期間があるときは、軸に切りのよい目盛り(年・月・数)を付け、出来事の箱はすべて軸の上に置く(下は期間の段)\n- ステップ:既定は時刻の順に 1 つずつ(期間も出来事も同じ列で数える)。軸は最初の出来事と一緒に引かれる\n- 線:軸は `--muted` の 5 px(図の中心の線として 1 本だけ太い)。軸の目盛りと目盛りの字(図の字の大きさ)も `--muted`。段のまとまりの間の区切りの線だけ `--line`。箱から軸への線と `edges` は `--muted` の 3 px\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 先のステップを薄く見せる表示(`ctx.preview`):後のステップの出来事・期間をテーマの薄さで見せる\n- `cues(k)`:同じステップに 2 つ以上あれば、2 つ目からの開始時刻を返す(台本の `{cue}` に合わせられる)"
|
|
1501
1527
|
},
|
|
1502
1528
|
"m-timer": {
|
|
@@ -1507,6 +1533,7 @@ export const PACK = {
|
|
|
1507
1533
|
"m-tree": {
|
|
1508
1534
|
"set": "standard",
|
|
1509
1535
|
"row": "| `<m-tree>` | 階層・分類の木(組織図、生物の分類など)を、根から 1 段ずつ組み立てる。座標は書かず、配置はパーツが決める | 節の深さの数(by=\"level\"、既定)か節の数(by=\"node\")。節と edges の step があればその最大 | `{nodes:{id:str\\|int,label?,tex?,note?,tone?,dash?:bool,parent?:str\\|int,branch?:str,step?,at?}[],edges?:{from:str\\|int,to:str\\|int,label?,tone?,dash?:bool,step?,at?}[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — parent のない節(根)はちょうど 1 つ |",
|
|
1536
|
+
"freeRow": "| `<m-tree>` | 階層・分類の木(組織図、生物の分類など)を、根から 1 段ずつ組み立てる。座標は書かず、配置はパーツが決める | 節の深さの数(by=\"level\"、既定)か節の数(by=\"node\")。節と edges の step があればその最大 | `{nodes:{id:str\\|int,label?,tex?,note?,dash?:bool,parent?:str\\|int,branch?:str}†[],edges?:{from:str\\|int,to:str\\|int,label?,dash?:bool}†[],path?:(str\\|int)[],pathStep?:int,pathNote?:str}` — parent のない節(根)はちょうど 1 つ |",
|
|
1510
1537
|
"entry": "### `<m-tree>`\n\nデータ(子の `<script type=\"application/json\">`)の例: `{\"nodes\":[{\"id\":\"r\",\"label\":\"動物\"},{\"id\":\"a\",\"label\":\"脊椎動物\",\"parent\":\"r\"},{\"id\":\"b\",\"label\":\"無脊椎動物\",\"parent\":\"r\"}]}`\n\n| 値 | 型 | 既定 | 意味 |\n|---|---|---|---|\n| `orient` | string | `\"down\"` | down(上から下、既定)か right(左から右) |\n| `by` | string | `\"level\"` | ステップの分け方:level(深さごと、既定)か node(1 つずつ、深さ優先の順) |\n| `link` | string | `\"elbow\"` | 親子の線:elbow(かぎ形、既定)か straight(まっすぐ) |\n| `size` | number | `0` | 箱の字の大きさ(px。0 = 27 から入るまで 24 まで縮める) |\n\n組織図、生物や物質の分類、概念の上位と下位、章と節の構成など、親子の関係で並ぶものを上から順に見せるときに使う。\n座標は書かない(共通の決まり §2)。中身とつながりだけを書けば、パーツが重ならないように並べる。\n\n子の JSON の並び:`edges` は省いてよい。\n\n- node:`id`、`label`(`\\n` で改行)か `tex`(KaTeX)、`parent`(親の `id`。`parent` のない節(根)はちょうど 1 つ)、`note`(箱の**下**に小さな一言、`--muted`)、`tone`(`term`(既定)・`emph`・`muted`・`accent2`・`series-1..4`)、`step`、`at`(ステップの中の開始秒)\n- node の `dash: true`:箱の枠を破線にし、地を塗らない(外した前提・まだないものなど。意味は `note` か本文で言う)\n- 子は配列の順に並ぶ。親は子の並びの中央に置く\n- edge:親子のほかのつながり(`from` `to` `label` `tone` `dash` `step`)。破線で矢印つき、木の外側(`down` は下、`right` は右)へふくらむ。同じ深さの節どうしに向く。ステップは既定で両端の遅いほう\n- 子の `branch`:線の字(確率など)。`path`:根からの `id` の道を順に強調(`pathStep` で一度に。`pathNote`:末尾の一言)\n- `orient`:`down`(既定、上から下)か `right`(左から右。分類を横に広げるとき)\n- `by`:`level`(既定。根、それから深さごとに 1 段)か `node`(深さ優先の順に 1 つずつ。1 つの枝をたどって話すとき)。節の `step` が勝つ\n- `link`:親子の線。`elbow`(既定、かぎ形)か `straight`(まっすぐ)。線の色は `--muted`、3 px\n- `tone: emph` の箱は、地が `--emph-tint`、枠と字が `--emph`\n- 入る大きさの目安(1280×720 の本文、高さ 440 px ほど):`down` は 1 段に 4 字ほどの箱が 8 個、`right` は 7 個ほど。深さは 5 段ほど。\n それより多い葉(子のない節)が 1 つの親に並ぶと、子を 2 段に互い違いに並べる(`down` で 16 個ほど、`right` で 11 個ほどまで)。\n さらに入らなければ名前を 2 行に折る。字は 24 px より小さくならず、入らない分は要素の箱からはみ出す(足りない px を `ctx.report` で知らせ、Studio の品質チェックに出る)。多いときは木を分ける\n- 見せ方(`variant`):`fade`・`draw`・`grow`。書かなければ資料のシード値で選ばれる(書かなくてよい)\n- 動きの上限:どの見せ方でも箱が動くのは 12 px まで(箱の中心で測る)、時間も `fade` の長さの中(共通の決まり §1.2)\n- 先のステップを薄く見せる表示(`ctx.preview`)では、後のステップの箱と線をテーマの薄さで出しておく\n\n前提の対比(研究の位置づけ):根に問い、子に立場(本研究は `tone: emph`)、その下に前提、さらに下に言えること(`note` に「前提」「言えること」)。本研究が外した前提は `dash: true` に `note: \"外した前提\"`。"
|
|
1511
1538
|
},
|
|
1512
1539
|
"m-vector": {
|
|
@@ -1523,12 +1550,13 @@ export const PACK = {
|
|
|
1523
1550
|
},
|
|
1524
1551
|
"tableHead": "| パーツ | 内容 | steps | データの形 |\n|---|---|---|---|",
|
|
1525
1552
|
"supNote": "(* はこの指示が補った説明)",
|
|
1553
|
+
"fieldsNote": "† の項目には step・at・tone も書ける。",
|
|
1526
1554
|
"briefNote": "下に説明の節がないパーツは、表の「データの形」のとおりに子の JSON か属性を書き、ほかの属性は既定のままにする。",
|
|
1527
1555
|
"extHead": "### `<{name}>`:このセットの拡張(パーツの説明は §3)"
|
|
1528
1556
|
},
|
|
1529
|
-
"version": "
|
|
1557
|
+
"version": "79c82ff6",
|
|
1530
1558
|
"tiers": {
|
|
1531
|
-
"catalogue": "2.
|
|
1559
|
+
"catalogue": "2.22.0",
|
|
1532
1560
|
"parts": {
|
|
1533
1561
|
"m-balance": {
|
|
1534
1562
|
"tier": "specialized",
|