egatari 0.6.13 → 0.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -8,6 +8,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
8
8
 
9
9
  <!-- Unreleased changes are fragments in changes/*.md (see CONTRIBUTING.md "Changelog"); node tools/changelog.mjs --release X.Y.Z moves them here. -->
10
10
 
11
+ ## [0.6.14] - 2026-11-17
12
+
13
+ ### Added
14
+
15
+ - `egatari check --no-browser` (backlog #215 (c)): runs only the checks of the source (build, slide ids, vocabulary, audio, attachments, reference voices) without starting a browser, for sandboxes where none can start. The checks of how slides look and move are skipped: their rules are `skipped` with the reason `noBrowser` (a rule with an error in what was checked is `failed`), `--json` adds `"noBrowser": true`, and the text output says what was skipped and to run the full check with a browser before sharing. The studio skill offers it when running the check outside the sandbox is not allowed. `tools/test-check-no-browser.mjs`
16
+ - The CLI and editor quality checks warn when an embedded image exceeds 1 MiB, suggest cropping or saving as JPEG/WebP about 1600 px wide, and report the lesson's total embedded image size, excluding parts' own images.
17
+ - Parts library tier `local` (local (CLI) only, backlog #213): Studio accepts parts the parts library marks `local`, such as `m-trace`, which shows the record a local tracer writes while code runs. They are never in the chat AI instructions (free or paid), the New… parts list or the purpose tables; the make skill for CLIs such as Claude Code and Codex gets them in `references/parts/local.md` (Japanese and English). An unknown tier still stops the generation, so an older Studio never puts such a part into the instructions by mistake. `tools/test-local-tier.mjs` checks that the instructions stay byte-identical with a local part
18
+ - Quality check: a new R-fit warning `partSvgOut` (command line and editor) when the `<svg>` directly inside a part element sticks out of the element's box by more than 2px, as happens with a working-folder part whose root `<svg>` has no width and height; the studio skill's part-writing section now says to give it a width and height (or `width:100%;height:100%`) (backlog #208)
19
+ - Readable content of parts (format spec §2.1 *Readable content of components*, backlog #216): when a part marks elements with `data-readable` (such as the full source behind the code window of `m-code` 2.2.0, or a table filled in steps), the single-file export copies them, at the final state of the slide, into that slide's article in the readable layer after the steps, keeping only `pre`, `code`, `table`, `thead`, `tbody`, `tr`, `th`, `td`, `caption`, `ol`, `ul`, `li`, `p` and `span` (other elements become their text) and the attributes `colspan`, `rowspan` and `lang`. The book, print and the document without script no longer lose the lines. The command line opens the player in a headless browser only when the lesson has such a mark; the editor asks its preview. The player gets `DECK.readableParts()` (player change; bump at the next rc). A producer that cannot open the player copies nothing and says so. `docs/contract.md` tells part authors how to mark. `tools/test-readable-parts.mjs`
20
+
21
+ ### Changed
22
+
23
+ - The AI instructions say in one line how to label a term in an equation: `\underbrace{…}_{\text{…}}` or `\overbrace{…}^{…}`, inside `\[ … \]`, never `$$` (backlog #225 (a)). Both already pass the math rendering and the quality check, Japanese `\text{}` and `\htmlId` inside included
24
+ - The bundled samples are copied again from egatari/examples 6c59e42: the 羅生門 book's afterword, `parts-showcase` and `sentence-structure` with the 2026-11-15 wording (no coined words such as 札), and the other samples' sources (file contents unchanged)
25
+ - The fix request for the AI (修正依頼) names the part's height when the body overflows at the bottom because of a part with `style="height:…px"`: it adds “in m-tree, change style height:380px to height:370px” (the overflow subtracted, rounded down to 10 px) after the amount to cut (backlog #224). In the nightly evaluation a 1 px overflow of `m-tree` stayed through two rounds of fixes. The editor now keeps which part overflowed (#196) for its fix request too, as the command line already did. `tools/test-fix-part-height.mjs`
26
+ - Egatari Player 1.8.0 (the bundled player that files carry, `player` in the index and `deck-meta`): minor release. New `DECK.readableParts()` returns the HTML of the elements marked `data-readable` inside parts at each slide's last state, which the Egatari file export copies into the readable layer (backlog #216). `DECK.mtext` reads `*` with the same rule as the base text (backlog #199). The Live panel and the key help use the established Japanese words (パネル, 接続, 再接続, 回答, ウィンドウ, ツールバー; backlog #223). Slides look the same; playback, steps and timing are unchanged
27
+ - Japanese wording (backlog #223, owner 2026-11-15): coined Japanese words are replaced with the established terms in everything a reader sees — the editor and Viewer, CLI and quality-check messages, docs, README, the studio and make skills and the AI instructions. Code comments and test names are unchanged. Examples: 板 → パネル (the menu 「パネル」; 横の板 → サイドパネル), 下の帯 → ステータスバー, 発表の帯 → 発表バー, 窓 → ウィンドウ/パネル, スライド(窓) and 舞台 → スライド(表示領域), 写し → コピー, 字体 → フォント, 控え → バックアップ, 実行系 → ランタイム (プレーヤー on screen), 組み立て・組み直す → ビルド・再ビルド (構成 where it meant structure), 書き出す → エクスポート (台本をエクスポート too), 手元 → ローカル, パーツの束 → パーツのセット, 見本 → 例, 道具 → ツール, AI の返事 → 出力, ホストからの返事 → ホストからの回答, 約束事 → 規約, Viewer つなぎ直す → 再接続. 札 and 帯 are said by meaning (カード, タイル, ラベル, ツールチップ, バー, 期間 on a timeline); 帯グラフ stays
28
+ - The AI instructions say the same for the parts' own text (m-kpi and m-menu cards, m-folds 「k 分割交差検証のフォールド」, m-timeline periods) through a Japanese word map in `tools/make-llm-guide.mjs` until the parts library's READMEs change; the New… tile 目次 reads 「カードの格子」
29
+ - Glossary (`docs/terms.json`): stage is スライド(表示領域), presentation-bar 発表バー, export-script 台本をエクスポート, and new entries panel, side-panel, status-bar, bar, card, copy, font, backup, runtime, root, software-test, reconnect, build, local, parts-set and contract. `npm run lint:terms` now flags 札, 帯 and 板 in docs too (`avoidPatterns`), so the old words don't come back
30
+ - The reading dictionary (`tts/yomi.yaml`) no longer turns “AI” into エーアイ (backlog #163): the owner heard raw “AI” read as エーアイ with natural intonation in both voices (bob and gendo), while the kana gave unnatural intonation. Audio made from now on reads “AI” as written
31
+
32
+ ### Fixed
33
+
34
+ - `DECK.mtext` (the player's small SVG text markup for older parts and hand-written SVG) follows the parts library's base 1.2.0 rule for `*` (backlog #199): `*` italicises only as a pair with non-space just inside, as in markdown, so labels such as `A* 探索`, `5*3` and `注*` stay as written instead of turning italic; `\*`, `\_` and `\^` draw the character itself. Sub- and superscripts keep their size. Changes the bundled player (bump at the next rc). `tools/test-deck-mtext.mjs`
35
+
11
36
  ## [0.6.13] - 2026-11-15
12
37
 
13
38
  ### Added
@@ -1563,7 +1588,8 @@ First public release.
1563
1588
  - Docs: README (English and Japanese), the contract (`docs/contract.md`), a reference of every option, syntax and key (`docs/reference.md`, `docs/reference.ja.md`), guides for the dev server and video, CONTRIBUTING, SECURITY, issue forms
1564
1589
  - Tests (`npm test`) and GitHub Actions running them on Node 22 and 24, plus a TTS dry-run through video export
1565
1590
 
1566
- [Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.13...HEAD
1591
+ [Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.14...HEAD
1592
+ [0.6.14]: https://github.com/egatari/egatari-studio/compare/v0.6.13...v0.6.14
1567
1593
  [0.6.13]: https://github.com/egatari/egatari-studio/compare/v0.6.12...v0.6.13
1568
1594
  [0.6.12]: https://github.com/egatari/egatari-studio/compare/v0.6.11...v0.6.12
1569
1595
  [0.6.11]: https://github.com/egatari/egatari-studio/compare/v0.6.10...v0.6.11
package/README.ja.md CHANGED
@@ -18,7 +18,7 @@ Egatari は、授業・研修・公共の案内などの教材を、読み上げ
18
18
 
19
19
  *Egatari Studio(旧 motion-academic-slides)。npm のパッケージ・スキル・コマンドの名前は変わらない。*
20
20
 
21
- ![TMLR 2026 の見本の 1 枚](docs/images/hero.png)
21
+ ![TMLR 2026 のサンプルの 1 枚](docs/images/hero.png)
22
22
 
23
23
  ## はじめる
24
24
 
@@ -40,18 +40,18 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
40
40
  ## できること
41
41
 
42
42
  - **ステップ表示**:`data-step="k"` で話す順に出す。結論の行(`.concl`)は自動で最後
43
- - **数式**:KaTeX でビルド時に組む。`\hlE{…}` `\hlT{…}` `\hlM{…}` で式の一部にテーマの色を付ける
44
- - **パーツ**:[egatari/components](https://github.com/egatari/components) の Web Components のパーツ(写しは `vendor/components/`:`m-sweep` `m-curves` `m-flow` `m-collect` `m-seq`、ビジネス・ピッチ向けの `m-bars` `m-quad` `m-market` `m-kpi`、符号化の授業向けの `m-codetree`(符号の木で系列を復号する)。`m-flow` はお金とサービスの流れも描く)。パーツは教科ごとの束にまとまっている:統計(stats)・情報とデータサイエンス(data。`m-code`・`m-sampling`・`m-ci` など)・数学・地図・国語・英語・音楽・ビジネス・ツール(tools)・理科([パーツの束](docs/llm-parts/))。画面は (スライド, ステップ, 時刻) だけで決まるので、そのままコマ単位で動画に書き出せる
45
- - **スライドへのリンク**:ふつうの `<a href="#<スライドの id>">`(か `#<スライドの id>:<ステップ>`)でそのスライドかステップへ飛び、**戻る**(ボタン・Backspace・Alt+←・ブラウザの戻る)で戻れる。`m-menu` はそのリンクを札の格子に並べる(目次・選ぶ 1 枚)。スクリプトのないふつうのリンクなので、Egatari ファイル(`.ega.html`)は Core のまま。[contract §9](docs/contract.ja.md#9-スライドへのリンク)
43
+ - **数式**:KaTeX でビルド時に描画する。`\hlE{…}` `\hlT{…}` `\hlM{…}` で式の一部にテーマの色を付ける
44
+ - **パーツ**:[egatari/components](https://github.com/egatari/components) の Web Components のパーツ(コピーは `vendor/components/`:`m-sweep` `m-curves` `m-flow` `m-collect` `m-seq`、ビジネス・ピッチ向けの `m-bars` `m-quad` `m-market` `m-kpi`、符号化の授業向けの `m-codetree`(符号の木で系列を復号する)。`m-flow` はお金とサービスの流れも描く)。パーツは教科ごとのセットにまとまっている:統計(stats)・情報とデータサイエンス(data。`m-code`・`m-sampling`・`m-ci` など)・数学・地図・国語・英語・音楽・ビジネス・ツール(tools)・理科([パーツのセット](docs/llm-parts/))。画面は (スライド, ステップ, 時刻) だけで決まるので、そのままコマ単位で動画にエクスポートできる
45
+ - **スライドへのリンク**:ふつうの `<a href="#<スライドの id>">`(か `#<スライドの id>:<ステップ>`)でそのスライドかステップへ飛び、**戻る**(ボタン・Backspace・Alt+←・ブラウザの戻る)で戻れる。`m-menu` はそのリンクをカードの格子に並べる(目次・選ぶ 1 枚)。スクリプトのないふつうのリンクなので、Egatari ファイル(`.ega.html`)は Core のまま。[contract §9](docs/contract.ja.md#9-スライドへのリンク)
46
46
  - **国語**:縦書き(`.tate`)・ルビ・明朝(BIZ UDP明朝)・テーマ `kokugo`。`m-kanbun`(白文 → 返り点と送り仮名 → 読む順を 1 字ずつたどる → 書き下し文)、`m-kobun`(1 文ずつの品詞分解・押すと出る助動詞の活用表・現代語訳)、`m-gendai`(傍線・指示語から指す内容への矢印・段落の役割)。[参照](docs/reference.ja.md#国語kokugo)
47
47
  - **強調**:台本に `{mark:ID|circle}` と書くと、その言葉のところでスライドに手描きの下線・囲み・枠・スポット・レーザーポインターの点が出る
48
48
  - **モーフ**:`data-morph` のスライドでは、前のスライドの式や要素が今の位置へ滑ってくる(Keynote のマジックムーブ)
49
49
  - **1 組のスライドと台本で 2 つのモード**:スライドショー(`?mode=talk`)と動画(`?mode=video`)。先のステップを薄く見せるのはスライドショーの選び(`l`。`?mode=lecture` はこの選びを入れて開く)
50
50
  - **発表のツール**:発表者ビュー(台本がカンペになる・タイマー)、スライド一覧、レーザーポインター、ペン、消えるペン、ツールバー
51
- - **テーマ**:基調色 1 つで切り替える(`themes/<名前>/tokens.css`)。パーツはテーマの変数だけを使う。同梱は 8 つで、新しい教材は 7 つから選ぶ:藍(`default`)・墨(`sumi`)・国語・常盤・江戸紫・焦茶・浅葱。`business` は、それを使った教材を組めるように同梱のまま残す([リファレンス](docs/reference.ja.md#テーマ))
51
+ - **テーマ**:基調色 1 つで切り替える(`themes/<名前>/tokens.css`)。パーツはテーマの変数だけを使う。同梱は 8 つで、新しい教材は 7 つから選ぶ:藍(`default`)・墨(`sumi`)・国語・常盤・江戸紫・焦茶・浅葱。`business` は、それを使った教材をビルドできるように同梱のまま残す([リファレンス](docs/reference.ja.md#テーマ))
52
52
  - **品質管理**:規格(R-fit・R-steps など)が教材の満たすことを決め、品質チェック `kit/check.mjs`(`npm run check`)がはみ出し・文字の大きさ・ステップ・台本の抜け・配色のコントラスト・パーツの再現性・強調・モーフを調べる
53
53
  - **開発サーバー**:ブラウザの上で文言と台本を直し、AI のコーディングツールへのメモを残せる
54
- - **Egatari ファイル(`.ega.html`)**:`--portable` で(教材のフォルダの最上位に、題名から作った名前で。書いた場所は表示される)、オフラインで再生でき、原稿と音声も中に持つ 1 つの HTML を書く。作業フォルダに戻せる(`npm run portable -- unpack|pack`)。`--play-only` は編集できるスライドと台本を入れない写し。Egatari ファイルの公開の形式 **Egatari(絵語り)**([仕様](https://github.com/egatari/egatari-spec)、1.0 の草案)に従う。[参照](docs/reference.ja.md#1-ファイル--portable)
54
+ - **Egatari ファイル(`.ega.html`)**:`--portable` で(教材のフォルダの最上位に、題名から作った名前で。書いた場所は表示される)、オフラインで再生でき、原稿と音声も中に持つ 1 つの HTML を書く。作業フォルダに戻せる(`npm run portable -- unpack|pack`)。`--play-only` は編集できるスライドと台本を入れないコピー。Egatari ファイルの公開の形式 **Egatari(絵語り)**([仕様](https://github.com/egatari/egatari-spec)、1.0 の草案)に従う。[参照](docs/reference.ja.md#1-ファイル--portable)
55
55
  - **出力**:単一の HTML(字・数式と、原稿が参照するローカルの画像・動画・CSS を埋め込み済み、オフラインで開ける)。印刷か `tools/pdf.mjs` で PDF
56
56
 
57
57
  **リファレンス**:選択肢・記法・キー・環境変数をすべて 1 ページに:[docs/reference.ja.md](docs/reference.ja.md)
@@ -74,19 +74,19 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
74
74
  | 作業フォルダ | `deck.html`・`narration.md`・`audio/` … の入ったフォルダ。コマンド・AI のコーディングツール(Claude Code・Codex・Gemini CLI など)・ほかのエディタが読み書きする | 「フォルダで作業する…」(Chrome / Edge)で直す |
75
75
  | Egatari ファイル(`.ega.html`) | 原稿と音声を中に持つ 1 つの HTML(`--portable`)。ブラウザで開けば再生 | 「開く…」で直す(どのブラウザでも) |
76
76
  | 再生専用(`--play-only`) | 原稿を持たない Egatari ファイル | 直せない(元の Egatari ファイルか作業フォルダを開く) |
77
- | 組み立てた HTML(`out/deck.html`) | `node kit/build.mjs` の発表用の出力 | 直せない(作業フォルダを開く) |
77
+ | ビルドした HTML(`out/deck.html`) | `node kit/build.mjs` の発表用の出力 | 直せない(作業フォルダを開く) |
78
78
 
79
- - **開く:** Chrome か Edge で **<https://studio.egatari.org/>** を開く(インストール不要)。または `npm run build:app` で組み、`dist/editor.html`(オフライン版のエディタ、約 10 MB)をダブルクリックで開く
80
- - **Egatari ファイルを開く(フォルダなしで):** 最初の画面の「ファイルを開く(.ega.html)…」(またはファイルをドラッグ&ドロップ)で[Egatari ファイル(`.ega.html`)](docs/reference.ja.md#1-ファイル--portable)を開き、メモリの上で直す。ファイルは動かさずに Worker の中で取り出す。「保存」で同じファイルに(またはダウンロード)、「名前を付けて保存…」で別のファイルに(「新しいファイルとして保存する」にチェックを入れれば、元の教材を記録した新しい識別子の教材に)、「作業フォルダにエクスポート…」で空のフォルダに原稿と音声を出す。教材の識別子と権利の表示は残し、最初の編集の前にライセンスを見せる(改変を認めないライセンスは確認つき)。台本・音声・秒数の編集は組み直さずに保存し、ファイルのその所だけが変わる。スライドを直したら、編集していないスライドの見え方が変わりうると知らせてから組み直す。フォルダを開いているときは「名前を付けて保存…」で Egatari ファイルに。今のどのブラウザでも使える(ファイルを選ぶ画面がなければ保存はダウンロード)
81
- - **直す:** 開発サーバーと同じキー。`e`+ダブルクリックで原稿、`n` で台本、Alt / ⌥ option+クリックで コメント(`comments.json`)、`c` で一覧。控えはフォルダの `.cache/edits/` に残る
79
+ - **開く:** Chrome か Edge で **<https://studio.egatari.org/>** を開く(インストール不要)。または `npm run build:app` でビルドし、`dist/editor.html`(オフライン版のエディタ、約 10 MB)をダブルクリックで開く
80
+ - **Egatari ファイルを開く(フォルダなしで):** 最初の画面の「ファイルを開く(.ega.html)…」(またはファイルをドラッグ&ドロップ)で[Egatari ファイル(`.ega.html`)](docs/reference.ja.md#1-ファイル--portable)を開き、メモリの上で直す。ファイルは動かさずに Worker の中で取り出す。「保存」で同じファイルに(またはダウンロード)、「名前を付けて保存…」で別のファイルに(「新しいファイルとして保存する」にチェックを入れれば、元の教材を記録した新しい識別子の教材に)、「作業フォルダにエクスポート…」で空のフォルダに原稿と音声を出す。教材の識別子と権利の表示は残し、最初の編集の前にライセンスを見せる(改変を認めないライセンスは確認つき)。台本・音声・秒数の編集は再ビルドせずに保存し、ファイルのその所だけが変わる。スライドを直したら、編集していないスライドの見え方が変わりうると知らせてから再ビルドする。フォルダを開いているときは「名前を付けて保存…」で Egatari ファイルに。今のどのブラウザでも使える(ファイルを選ぶ画面がなければ保存はダウンロード)
81
+ - **直す:** 開発サーバーと同じキー。`e`+ダブルクリックで原稿、`n` で台本、Alt / ⌥ option+クリックで コメント(`comments.json`)、`c` で一覧。バックアップはフォルダの `.cache/edits/` に残る
82
82
  - **作業フォルダを開く:** 作業フォルダ(`deck.html` の入ったもの)を画面にドラッグ&ドロップするか「フォルダで作業する…」を押し、そのフォルダの編集を許可する。「新規作成…」はチャットの AI に新しい教材を書いてもらう(新しい作業フォルダはコマンドの `npm run new`)。最近開いた作業フォルダは最初の画面に並ぶ
83
- - **チャットの AI で下書き(コーディングツールなし):** 「新規作成…」で 4 つの問い(使う場面・何について・見た目・AI に渡す指示が軽量か詳細か)に答えると、claude.ai・Gemini・ChatGPT に送る [AI への指示](docs/authoring-with-llms.ja.md) をコピーでき、AI の出力をスライドと台本の 2 つの欄に貼り付ける(出力の全体をどちらかに貼れば 2 つに分ける)。エディタがスライドに id を付け、新しい Egatari ファイルとして作り(出力にスクリプトがあれば、開いたファイルと同じく動かす前に聞く)、品質チェックをかける。品質チェックの板の「AI への修正依頼をコピー」は、指摘・破った規格・今のファイルを同じチャット向けにコピーし、その出力で「修正…」が今の教材のスライドを置き換える(識別子と音声は残す)。「スライドの挿入…」では、選んだスライドの後ろに AI にスライドを足してもらえる
84
- - **台本の音声を 1 ステップずつ:** 「音声」でステップの音声を聞き、作った後に台本が変わっていれば「古い」と示す。マイクから録る(入力の大きさの表示つき)、ファイルから取り込む、AI 音声をこの PC で作る(日本語は読み辞書つきの Irodori-TTS、英語は Kokoro。WebGPU が要り、モデルは初回だけ取得)で作り直すのどれかをして、「この音声を使う」。取り直しは `tts/core.py` と同じく整え(無音を削り −20 LUFS)、出どころと一緒に MP3 で残す([詳しく](docs/editor.ja.md#台本の音声音声の板))。Egatari ファイルでは組み直さずに保存する
85
- - **AI のコーディングツールと一緒に:** ほかのもの(Claude Code・Codex・テキストエディタ)がファイルを変えると、2 秒ほどで気づいて組み直し、同じスライド・ステップのまま表示する。組み立てに失敗したら、直るまでプレビューの上にエラーを出す
83
+ - **チャットの AI で下書き(コーディングツールなし):** 「新規作成…」で 4 つの問い(使う場面・何について・見た目・AI に渡す指示が軽量か詳細か)に答えると、claude.ai・Gemini・ChatGPT に送る [AI への指示](docs/authoring-with-llms.ja.md) をコピーでき、AI の出力をスライドと台本の 2 つの欄に貼り付ける(出力の全体をどちらかに貼れば 2 つに分ける)。エディタがスライドに id を付け、新しい Egatari ファイルとして作り(出力にスクリプトがあれば、開いたファイルと同じく動かす前に聞く)、品質チェックをかける。品質チェックのパネルの「AI への修正依頼をコピー」は、指摘・破った規格・今のファイルを同じチャット向けにコピーし、その出力で「修正…」が今の教材のスライドを置き換える(識別子と音声は残す)。「スライドの挿入…」では、選んだスライドの後ろに AI にスライドを足してもらえる
84
+ - **台本の音声を 1 ステップずつ:** 「音声」でステップの音声を聞き、作った後に台本が変わっていれば「古い」と示す。マイクから録る(入力の大きさの表示つき)、ファイルから取り込む、AI 音声をこの PC で作る(日本語は読み辞書つきの Irodori-TTS、英語は Kokoro。WebGPU が要り、モデルは初回だけ取得)で作り直すのどれかをして、「この音声を使う」。取り直しは `tts/core.py` と同じく整え(無音を削り −20 LUFS)、出どころと一緒に MP3 で残す([詳しく](docs/editor.ja.md#台本の音声音声のパネル))。Egatari ファイルでは再ビルドせずに保存する
85
+ - **AI のコーディングツールと一緒に:** ほかのもの(Claude Code・Codex・テキストエディタ)がファイルを変えると、2 秒ほどで気づいて再ビルドし、同じスライド・ステップのまま表示する。ビルドに失敗したら、直るまでプレビューの上にエラーを出す
86
86
  - **言語:** ふだんはブラウザの言語に合わせる。右上の **English / 日本語** のボタン(または `?lang=en`・`?lang=ja`)で切り替える
87
- - **ツールの列:** ファイル ▾(新規作成…・開く…・保存・名前を付けて保存…・エクスポート ▸ 参加者用(再生専用)…/スライドを印刷/本を印刷(本のない教材は台本を印刷)・ファイルの情報…・フォルダで作業する…)、スライド ▾(スライドの挿入…・複製・削除・修正…)、品質チェック(警告の数)、プレビュー ▾(スライドショー・授業・動画で確かめる、発表者ビュー(台本と次のステップが出る窓)で確かめる)
87
+ - **ツールの列:** ファイル ▾(新規作成…・開く…・保存・名前を付けて保存…・エクスポート ▸ 参加者用(再生専用)…/スライドを印刷/本を印刷(本のない教材は台本を印刷)・ファイルの情報…・フォルダで作業する…)、スライド ▾(スライドの挿入…・複製・削除・修正…)、品質チェック(警告の数)、プレビュー ▾(スライドショー・授業・動画で確かめる、発表者ビュー(台本と次のステップが出るウィンドウ)で確かめる)
88
88
 
89
- できないこと:自分の参照音声での TTS(`tts/synth.py`)・動画・`npm run check`(品質チェックのコマンド版)・`tools/pdf.mjs` はコマンドで行い、プレビューはフォルダの音声を鳴らさない(鳴らすのは音声の板)。ブラウザ版の品質チェックは一部の項目(はみ出し・文字の大きさ・字数・台本の抜け・コントラスト)だけで、目安にとどまる(全部は `npm run check`)。書き出すファイルは、コマンドで組んだものと同じく字を切り出す(切り出しのツール、約 2 MB は初めてのエクスポートで読み込む)。リポジトリのパーツとテーマはアプリを組んだときのもの。作業フォルダの中のパーツ・テーマはフォルダから読む。
89
+ できないこと:自分の参照音声での TTS(`tts/synth.py`)・動画・`npm run check`(品質チェックのコマンド版)・`tools/pdf.mjs` はコマンドで行い、プレビューはフォルダの音声を鳴らさない(鳴らすのは音声のパネル)。ブラウザ版の品質チェックは一部の項目(はみ出し・文字の大きさ・字数・台本の抜け・コントラスト)だけで、目安にとどまる(全部は `npm run check`)。エクスポートするファイルは、コマンドでビルドしたものと同じくフォントをサブセット化する(サブセット化のツール、約 2 MB は初めてのエクスポートで読み込む)。リポジトリのパーツとテーマはアプリをビルドしたときのもの。作業フォルダの中のパーツ・テーマはフォルダから読む。
90
90
 
91
91
  ![編集アプリ](docs/images/editor-app.png)
92
92
 
@@ -97,7 +97,7 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
97
97
 
98
98
  Claude Code や Cowork(Claude のデスクトップアプリ)で教材を作る:[docs/with-claude.ja.md](docs/with-claude.ja.md)([English](docs/with-claude.md))。
99
99
 
100
- 先に、古い入れ方の `~/.claude/skills/motion-*` を削除する(プロジェクトの `.claude/skills/` にも入れていたらそちらも)。教材を書く軽量な `egatari` は make だけを含み、Node は要らない。ローカルの品質チェック・組み立て・パーツ作成・動画には `egatari-studio` も入れる。studio を使う場合は、必ず両方を入れる:
100
+ 先に、古い入れ方の `~/.claude/skills/motion-*` を削除する(プロジェクトの `.claude/skills/` にも入れていたらそちらも)。教材を書く軽量な `egatari` は make だけを含み、Node は要らない。ローカルの品質チェック・ビルド・パーツ作成・動画には `egatari-studio` も入れる。studio を使う場合は、必ず両方を入れる:
101
101
 
102
102
  ```text
103
103
  /plugin marketplace add egatari/egatari-studio
@@ -122,14 +122,14 @@ codex plugin add egatari-studio@egatari
122
122
 
123
123
  入れたら、Studio のリリースのたびに `npx egatari@0.6.x skills update` を実行して Codex を再起動する。スキルの指示と品質チェックは Studio のバージョンごとに変わるので、古いスキルのままだと、新しい決まりや直しが使われない。
124
124
 
125
- 教材を書くだけなら `egatari`(Node.js は要らない)、ローカルの品質チェック・組み立て・パーツ作成・動画には `egatari-studio` も入れる。Codex を再起動して教材を頼む。Codex の workspace-write サンドボックスはネットとブラウザを塞ぐので、`check` と `build` はサンドボックスの外で、またはネットとブラウザを許して動かす。更新は `codex plugin marketplace upgrade egatari` のあと `codex plugin add egatari@egatari` と `codex plugin add egatari-studio@egatari` をもう一度(Codex に更新だけの命令はない)。`npx egatari@0.6.x skills update` なら、Claude Code にも Codex にも同じことをする。入れたスキルが包みより古いときは `npx egatari@0.6.x doctor` が知らせる。
125
+ 教材を書くだけなら `egatari`(Node.js は要らない)、ローカルの品質チェック・ビルド・パーツ作成・動画には `egatari-studio` も入れる。Codex を再起動して教材を頼む。Codex の workspace-write サンドボックスはネットとブラウザを塞ぐので、`check` と `build` はサンドボックスの外で、またはネットとブラウザを許して動かす。更新は `codex plugin marketplace upgrade egatari` のあと `codex plugin add egatari@egatari` と `codex plugin add egatari-studio@egatari` をもう一度(Codex に更新だけの命令はない)。`npx egatari@0.6.x skills update` なら、Claude Code にも Codex にも同じことをする。入れたスキルが包みより古いときは `npx egatari@0.6.x doctor` が知らせる。
126
126
 
127
127
  チャットの AI には `egatari-make-skill.zip` をアップロードする。Studio が新しくなったら、Studio の『AI のスキルをダウンロード』で入れ直す。開発者は `node tools/make-llm-guide.mjs --zip out/release` で作れる。ZIP の `make/` は、生成してコミットする `plugins/egatari/skills/make/` と同じ内容。
128
128
 
129
129
  | スキル | 使いどころ |
130
130
  |---|---|
131
131
  | `egatari:make` | 構成案・原稿・ステップ・台本(Node 不要) |
132
- | `egatari-studio:studio` | ローカルの品質チェック・組み立て、パーツ作成、既存の音声を使った動画の書き出し |
132
+ | `egatari-studio:studio` | ローカルの品質チェック・ビルド、パーツ作成、既存の音声を使った動画のエクスポート |
133
133
 
134
134
  頼み方の例:
135
135
 
@@ -147,15 +147,15 @@ npm の包み `egatari` は、同じツールを 1 つのコマンド `egatari`
147
147
 
148
148
  ```bash
149
149
  npx egatari new mytalk --lang ja # mytalk/deck.html・mytalk/narration.md・mytalk/egatari.json を作る
150
- npx egatari build mytalk/deck.html # -> mytalk/out/deck.html(--portable・--play-only などの組み立ての選択肢もそのまま使える)
150
+ npx egatari build mytalk/deck.html # -> mytalk/out/deck.html(--portable・--play-only などのビルドの選択肢もそのまま使える)
151
151
  npx egatari dev mytalk/deck.html # ブラウザで直す
152
152
  npx egatari check mytalk/deck.html # 最後の行が「エラー 0」になればよい
153
- npx egatari doctor # Node・uv・ffmpeg・ブラウザ・パーツの写しがあるか、ないものの入れ方
153
+ npx egatari doctor # Node・uv・ffmpeg・ブラウザ・パーツのコピーがあるか、ないものの入れ方
154
154
  ```
155
155
 
156
156
  Bun(`bunx egatari`)でも動きます。
157
157
 
158
- ほかのコマンドと設定(`ids-of`・追加の字体・パーツの写し・TTS の環境変数):[docs/cli.ja.md](docs/cli.ja.md)。一覧は `npx egatari --help`。
158
+ ほかのコマンドと設定(`ids-of`・追加のフォント・パーツのコピー・TTS の環境変数):[docs/cli.ja.md](docs/cli.ja.md)。一覧は `npx egatari --help`。
159
159
 
160
160
  ## 動画にする(段 2)
161
161
 
@@ -163,8 +163,8 @@ Bun(`bunx egatari`)でも動きます。
163
163
  D=examples/minimal
164
164
  uv run --project tts python tts/synth.py $D --dry-run # 無音の仮の音声(オフラインで流れを試す)
165
165
  uv run --project tts python tts/synth.py $D # 本番の TTS(サーバーと参照音声が要る)
166
- node kit/build.mjs $D/deck.html # 組み直して、音声の長さをタイムラインに入れる
167
- node render/render.mjs $D/out/deck.html --out $D/video # 1 段階だけなら --only "更新の式:2"(スライド 1 枚分なら --only 更新の式)、1 本にまとめるなら --full
166
+ node kit/build.mjs $D/deck.html # 再ビルドして、音声の長さをタイムラインに入れる
167
+ node render/render.mjs $D/out/deck.html --out $D/video # 1 ステップだけなら --only "更新の式:2"(スライド 1 枚分なら --only 更新の式)、1 本にまとめるなら --full
168
168
  ```
169
169
 
170
170
  - 声:`--voices expert=bob,novice=alice` か `<教材>/voice.json`(`{"expert": "me"}`、または wav のパス)。既定は 1 人なら `bob`、掛け合いなら `bob`(Expert)と `alice`(Novice)で、`tts/voices/<名前>.wav` を探す。英語の教材では `<名前>_en.wav` があればそちらを使う
@@ -224,32 +224,32 @@ printf '{"name": "mylab", "extends": "default"}\n' > themes/mylab/theme.json
224
224
  node kit/build.mjs examples/minimal/deck.html --theme mylab
225
225
  ```
226
226
 
227
- テーマは教材の隣(`<教材>/themes/<名前>/`)にも置ける。自分のテーマのフォルダにも置ける:`EGATARI_THEMES` にフォルダの並び(区切りは `:`、Windows は `;`)を書くか、`~/.egatari/themes`(シンボリックリンクでもよい)を使う。探す順は 作業フォルダ → その `themes/` → 自分のテーマのフォルダ → 同梱の `themes/`([リファレンス](docs/reference.ja.md#テーマ))。編集アプリでは、自分のテーマのフォルダを 1 回だけ選ぶ(「テーマのフォルダを選ぶ…」。読むだけ。[編集アプリ](docs/editor.ja.md))か、テーマを原稿の `themes/` に置く。どちらもなければ、見つからないテーマの名前を言う警告を出して `default` で組む。Egatari ファイルは、そのテーマを中に持つ。同梱:`default`(中立)、`business`(中立。ビジネス・ピッチ向けの紺と橙、ロゴなし)、`kokugo`(明朝。国語向け)。機関のテーマとロゴは同梱しない。
227
+ テーマは教材の隣(`<教材>/themes/<名前>/`)にも置ける。自分のテーマのフォルダにも置ける:`EGATARI_THEMES` にフォルダの並び(区切りは `:`、Windows は `;`)を書くか、`~/.egatari/themes`(シンボリックリンクでもよい)を使う。探す順は 作業フォルダ → その `themes/` → 自分のテーマのフォルダ → 同梱の `themes/`([リファレンス](docs/reference.ja.md#テーマ))。編集アプリでは、自分のテーマのフォルダを 1 回だけ選ぶ(「テーマのフォルダを選ぶ…」。読むだけ。[編集アプリ](docs/editor.ja.md))か、テーマを原稿の `themes/` に置く。どちらもなければ、見つからないテーマの名前を言う警告を出して `default` でビルドする。Egatari ファイルは、そのテーマを中に持つ。同梱:`default`(中立)、`business`(中立。ビジネス・ピッチ向けの紺と橙、ロゴなし)、`kokugo`(明朝。国語向け)。機関のテーマとロゴは同梱しない。
228
228
 
229
- ## 見本
229
+ ## サンプル
230
230
 
231
- | 見本 | 内容 |
231
+ | サンプル | 内容 |
232
232
  |---|---|
233
- | [`examples/minimal`](examples/minimal) | 日本語・6 枚(勾配降下法)。ステップ、KaTeX と `\hlE`、`{mark}`、`data-morph`、`m-sweep`、全ステップの台本。作り込んだ見本(新しい教材のテンプレートは `npm run new` で作る) |
233
+ | [`examples/minimal`](examples/minimal) | 日本語・6 枚(勾配降下法)。ステップ、KaTeX と `\hlE`、`{mark}`、`data-morph`、`m-sweep`、全ステップの台本。作り込んだサンプル(新しい教材のテンプレートは `npm run new` で作る) |
234
234
  | [`examples/tmlr2026-calibration`](examples/tmlr2026-calibration) | 英語・14 枚(TMLR 2026 の論文の紹介)。教材専用のパーツ(`components/`)、スクリプトで作ったデータ(`scripts/` `data/`)、英語の TTS(`voice.json`)、テーマ `default` |
235
235
  | [`examples/pitch-fictional`](examples/pitch-fictional) | 日本語・10 枚(架空の会社「株式会社レポミル」(報告書の下書きを作る SaaS)のピッチ)。`m-kpi`、`m-flow`(お金の流れと `pulse`)、`m-bars`(軸の広がり)、`m-quad`、`m-market`、テーマ `business`、スクリプトで書いたデータ(`scripts/` `data/`)。社名・製品・数字はすべて架空 |
236
- | [`examples/kokugo-kanbun`](examples/kokugo-kanbun) | 日本語・11 枚(国語の授業)。`m-menu` の目次(各部へのリンクと「戻る」)、`m-kanbun` の漢文(『史記』、孟浩然「春暁」、杜甫「春望」、『論語』)、`m-kobun` の『枕草子』、`m-gendai` の現代文(見本のために書いた文章、縦書き)、テーマ `kokugo` |
237
- | [`examples/heikin-chuouchi`](examples/heikin-chuouchi) | 日本語・10 枚と**本**(`article/` の 4 ファイル。章の番号・図・式・引用・本とスライドの行き来)。高校の数学(平均と中央値を、二乗と絶対値のズレの和の底として見る)。`m-curves`、`m-sweep`、`m-bars`、テーマ `default`。[egatari/examples](https://github.com/egatari/examples) からの写し(`SOURCE.json`)。CC BY 4.0 |
238
- | [`examples/rashomon`](examples/rashomon) | 日本語・7 枚(うち縦書き 5 枚)と**本**(`article.md`、縦書き)。高校で芥川龍之介「羅生門」を読む。`m-gendai`、テーマ `kokugo`。本文は青空文庫(著作権の保護期間満了)、読みの手引き・スライド・台本は CC BY 4.0。[egatari/examples](https://github.com/egatari/examples) からの写し(`SOURCE.json`) |
236
+ | [`examples/kokugo-kanbun`](examples/kokugo-kanbun) | 日本語・11 枚(国語の授業)。`m-menu` の目次(各部へのリンクと「戻る」)、`m-kanbun` の漢文(『史記』、孟浩然「春暁」、杜甫「春望」、『論語』)、`m-kobun` の『枕草子』、`m-gendai` の現代文(サンプルのために書いた文章、縦書き)、テーマ `kokugo` |
237
+ | [`examples/heikin-chuouchi`](examples/heikin-chuouchi) | 日本語・10 枚と**本**(`article/` の 4 ファイル。章の番号・図・式・引用・本とスライドの行き来)。高校の数学(平均と中央値を、二乗と絶対値のズレの和の底として見る)。`m-curves`、`m-sweep`、`m-bars`、テーマ `default`。[egatari/examples](https://github.com/egatari/examples) からのコピー(`SOURCE.json`)。CC BY 4.0 |
238
+ | [`examples/rashomon`](examples/rashomon) | 日本語・7 枚(うち縦書き 5 枚)と**本**(`article.md`、縦書き)。高校で芥川龍之介「羅生門」を読む。`m-gendai`、テーマ `kokugo`。本文は青空文庫(著作権の保護期間満了)、読みの手引き・スライド・台本は CC BY 4.0。[egatari/examples](https://github.com/egatari/examples) からのコピー(`SOURCE.json`) |
239
239
 
240
- `examples/tmlr2026-calibration` の `voice.json` は TTS の既定の声を使う。公開しているこの見本の動画は、著者本人の参照音声で読み上げたもの(参照音声はリポジトリに含めていない)。
240
+ `examples/tmlr2026-calibration` の `voice.json` は TTS の既定の声を使う。公開しているこのサンプルの動画は、著者本人の参照音声で読み上げたもの(参照音声はリポジトリに含めていない)。
241
241
 
242
242
  `examples/minimal`:
243
243
 
244
- ![minimal の見本](docs/images/minimal-sheet.png)
244
+ ![minimal のサンプル](docs/images/minimal-sheet.png)
245
245
 
246
246
  `examples/tmlr2026-calibration`:
247
247
 
248
- ![tmlr2026-calibration の見本](docs/images/tmlr-sheet.png)
248
+ ![tmlr2026-calibration のサンプル](docs/images/tmlr-sheet.png)
249
249
 
250
250
  `examples/kokugo-kanbun`(「春暁」の読む順。一二点で、目が鳥から聞へ戻るところ):
251
251
 
252
- ![kokugo-kanbun の見本](docs/images/kokugo-kanbun.png)
252
+ ![kokugo-kanbun のサンプル](docs/images/kokugo-kanbun.png)
253
253
 
254
254
  <a id="clone"></a>
255
255
  ## クローンして使う
@@ -262,7 +262,7 @@ node kit/build.mjs examples/minimal/deck.html --theme mylab
262
262
  **段 1(スライド)**
263
263
 
264
264
  - [Node.js](https://nodejs.org/) 22 以上で、最新のセキュリティ修正を含むバージョン([SECURITY.md](SECURITY.md) 参照)
265
- - Google Chrome か Microsoft Edge:`kit/check.mjs`・`tools/pdf.mjs`・スクリーンショット・テストで使う(`playwright-core` で Chrome、なければ Edge を探す)。組むことと発表には、ファイルを開くブラウザがあればよい。どちらもなければ `npx playwright-core install chromium` を実行する(Playwright の Chromium を代わりに使う)か、`CHROME_PATH=/path/to/chrome-or-chromium` を指定する
265
+ - Google Chrome か Microsoft Edge:`kit/check.mjs`・`tools/pdf.mjs`・スクリーンショット・テストで使う(`playwright-core` で Chrome、なければ Edge を探す)。ビルドと発表には、ファイルを開くブラウザがあればよい。どちらもなければ `npx playwright-core install chromium` を実行する(Playwright の Chromium を代わりに使う)か、`CHROME_PATH=/path/to/chrome-or-chromium` を指定する
266
266
  - あると良い:[uv](https://docs.astral.sh/uv/)。`node tools/get-fonts.mjs` で BIZ UDPゴシック(と BIZ UDP明朝)の TTF を取ってくると、build が uv で `pyftsubset` を動かし、使っている字だけを埋め込む。TTF(または uv)がなければ `@fontsource` の分割ファイル(WOFF2)のうち使う字を含むものを埋め込む。ファイルは大きくなるが見た目は同じ
267
267
 
268
268
  **Windows**
@@ -278,7 +278,7 @@ Edge は最初からあるので、Chrome がなくても品質チェックと P
278
278
 
279
279
  **ブラウザ**
280
280
 
281
- - 組んだ HTML の発表:Chrome/Edge 119 以上、Firefox 128 以上、Safari 18 以上(テーマが `--base` から淡色などを導くのに使う CSS の相対色の記法と `color-mix()` に対応しているもの)。それより古いブラウザでも表示はできるが、色はテーマの `--base` から導いたものではなく、既定のテーマから計算した固定の予備の色になる
281
+ - ビルドした HTML の発表:Chrome/Edge 119 以上、Firefox 128 以上、Safari 18 以上(テーマが `--base` から淡色などを導くのに使う CSS の相対色の記法と `color-mix()` に対応しているもの)。それより古いブラウザでも表示はできるが、色はテーマの `--base` から導いたものではなく、既定のテーマから計算した固定の予備の色になる
282
282
  - PDF(`tools/pdf.mjs`)・動画(`render/`)・`kit/check.mjs`・テストは Google Chrome(または Playwright の Chromium)だけで作り、確かめている(Edge も同じエンジン)
283
283
 
284
284
  **段 2(動画)**
@@ -314,9 +314,9 @@ npm run dev -- talks/mytalk/deck.html # ブラウザで直す
314
314
  npm run check -- talks/mytalk/deck.html # 最後の行が「エラー 0」になればよい
315
315
  ```
316
316
 
317
- `npm run new -- <フォルダ>` は、きれいなテンプレートから `deck.html` と `narration.md` を作る(表紙と、ステップ・数式・強調・パーツの見本のスライド。台本は全ステップぶん)。`"componentsCatalogue": "2"` の `egatari.json` も書く:新しい教材は、チャットの AI への指示が説明するパーツライブラリ 2 で組む(その設定のないフォルダ、たとえば前からの教材は、パーツライブラリ 1 のまま)。選択肢は `--lang en|ja`(既定 `ja`)、`--theme <名前>`(既定 `default`)、`--title "…"`。空でないフォルダには書かない。テーマは後から `<html data-theme="business">` か `--theme business` で変えられる。`<html lang="en">` の教材は本文の字が Source Sans 3 になり、品質チェックも英語の規格になる。もっと作り込んだ見本は `examples/minimal/`。
317
+ `npm run new -- <フォルダ>` は、きれいなテンプレートから `deck.html` と `narration.md` を作る(表紙と、ステップ・数式・強調・パーツの例のスライド。台本は全ステップぶん)。`"componentsCatalogue": "2"` の `egatari.json` も書く:新しい教材は、チャットの AI への指示が説明するパーツライブラリ 2 でビルドする(その設定のないフォルダ、たとえば前からの教材は、パーツライブラリ 1 のまま)。選択肢は `--lang en|ja`(既定 `ja`)、`--theme <名前>`(既定 `default`)、`--title "…"`。空でないフォルダには書かない。テーマは後から `<html data-theme="business">` か `--theme business` で変えられる。`<html lang="en">` の教材は本文の字が Source Sans 3 になり、品質チェックも英語の規格になる。もっと作り込んだサンプルは `examples/minimal/`。
318
318
 
319
- 新しい教材のスライドにはどれも変わらない id(`<section class="slide" id="s-k3f9q2">`)があり、台本の見出しがそれを指す(`## 見出し {#s-k3f9q2}`)。見出しを直しても、台本・音声・秒数の対応は崩れない。id のない頃に作った教材は、一度 `npm run ids -- talks/mytalk` を打つ:id を付け、`narration.md`・`audio/manifest.json`・`timeline.json`・`comments.json` の鍵を付け替える(控えは `.cache/edits/`)。
319
+ 新しい教材のスライドにはどれも変わらない id(`<section class="slide" id="s-k3f9q2">`)があり、台本の見出しがそれを指す(`## 見出し {#s-k3f9q2}`)。見出しを直しても、台本・音声・秒数の対応は崩れない。id のない頃に作った教材は、一度 `npm run ids -- talks/mytalk` を打つ:id を付け、`narration.md`・`audio/manifest.json`・`timeline.json`・`comments.json` のキーを付け替える(バックアップは `.cache/edits/`)。
320
320
 
321
321
  ### ブラウザで直す(開発サーバー)
322
322
 
@@ -343,16 +343,16 @@ node server/dev.mjs path/to/deck.html # http://127.0.0.1:8730/ を開
343
343
 
344
344
  | 場所 | 中身 |
345
345
  |---|---|
346
- | `docs/contract.ja.md` | 約束事(位置と時刻、パーツ、台本、タイムライン、強調、モーフ)。**まずここを読む**([English](docs/contract.md)) |
346
+ | `docs/contract.ja.md` | 規約(位置と時刻、パーツ、台本、タイムライン、強調、モーフ)。**まずここを読む**([English](docs/contract.md)) |
347
347
  | `docs/dev-server.ja.md`、`docs/editor.ja.md`、`docs/video.ja.md`、`docs/distributing.ja.md` | 手引き:開発サーバー、編集アプリ、動画にする、学習者に配る([English](docs/dev-server.md)、[English](docs/editor.md)、[English](docs/video.md)、[English](docs/distributing.md)) |
348
- | `docs/authoring-with-llms.ja.md` | チャットの AI(claude.ai・Gemini・ChatGPT)に初めの下書きを書かせる指示。共通の本体(標準パーツ)。束の指示(stats・data・math・maps・kokugo・english・music・business・tools・science)は `docs/llm-parts/`。`tools/make-llm-guide.mjs` が作り、`node kit/llm-pack.mjs` が組み立てる([English](docs/authoring-with-llms.md)) |
348
+ | `docs/authoring-with-llms.ja.md` | チャットの AI(claude.ai・Gemini・ChatGPT)に初めの下書きを書かせる指示。共通の本体(標準パーツ)。セットの指示(stats・data・math・maps・kokugo・english・music・business・tools・science)は `docs/llm-parts/`。`tools/make-llm-guide.mjs` が作り、`node kit/llm-pack.mjs` がビルドする([English](docs/authoring-with-llms.md)) |
349
349
  | `docs/reference.ja.md` | リファレンス:原稿の記法、台本、長さ、テーマ、キー、URL の引数、すべてのコマンドの選択肢と環境変数([English](docs/reference.md)) |
350
- | `kit/` | 実行系(`deck.js` `presenter.js` `tools.js`)、体裁、ビルド、台本の解析、品質チェック、ブラウザの起動。`kit/core/` は Node と編集アプリが共有する組み立ての本体、`kit/templates/` は新しい教材のテンプレート |
351
- | `vendor/components/` | [egatari/components](https://github.com/egatari/components) のリリース(パーツ)の写し。取り込んだバージョンをすべて残し、既定のバージョンは `components.lock.json` で固定。一覧は `vendor/components/CATALOG.md`。取り込みは `npm run components:update -- vX.Y.Z` |
350
+ | `kit/` | ランタイム(`deck.js` `presenter.js` `tools.js`)、体裁、ビルド、台本の解析、品質チェック、ブラウザの起動。`kit/core/` は Node と編集アプリが共有するビルドの本体、`kit/templates/` は新しい教材のテンプレート |
351
+ | `vendor/components/` | [egatari/components](https://github.com/egatari/components) のリリース(パーツ)のコピー。取り込んだバージョンをすべて残し、既定のバージョンは `components.lock.json` で固定。一覧は `vendor/components/CATALOG.md`。取り込みは `npm run components:update -- vX.Y.Z` |
352
352
  | `themes/` | テーマ |
353
353
  | `server/` | 開発サーバーとブラウザ上の編集 |
354
354
  | `app/` | 編集アプリ(インストール不要)の元。`npm run build:app` で `dist/` に配信版(`dist/index.html`)と オフライン版のエディタ `dist/editor.html` を作る |
355
- | `tts/` `render/` | 段 2:TTS(uv のプロジェクト)、動画の書き出し |
355
+ | `tts/` `render/` | 段 2:TTS(uv のプロジェクト)、動画のエクスポート |
356
356
  | `skills/studio/` | ローカル用の Claude Code studio スキル |
357
357
  | `plugins/egatari/` | make だけを含む、生成した軽量プラグイン |
358
358
  | `tools/` | 新しい教材のテンプレート(`new.mjs`)、テストと補助(`smoke` `test-*` `shot` `pdf` `get-fonts.mjs`) |
@@ -368,7 +368,7 @@ node tools/test-tools.mjs examples/minimal/out/deck.html
368
368
  node tools/test-controls.mjs examples/minimal/out/deck.html
369
369
  node tools/test-links.mjs # スライドへのリンク・戻る・埋め込み・m-menu・品質チェック
370
370
  node tools/test-dev-server.mjs
371
- node tools/test-app.mjs # 編集アプリ(一時フォルダに dist/ を組む)
371
+ node tools/test-app.mjs # 編集アプリ(一時フォルダに dist/ をビルドする)
372
372
  ```
373
373
 
374
374
  ## フィードバックと貢献
@@ -381,11 +381,11 @@ node tools/test-app.mjs # 編集ア
381
381
 
382
382
  ## セキュリティ
383
383
 
384
- 教材はコードとして扱う:スライドのスクリプトとパーツは、ブラウザと、品質チェック・書き出しが使う headless Chrome の中で動き、build は作業フォルダの中のローカルのファイルを読む。信頼できる教材だけを組み、開発サーバーで開くこと。信頼の前提と脆弱性の報告のしかた:[SECURITY.md](SECURITY.md)。
384
+ 教材はコードとして扱う:スライドのスクリプトとパーツは、ブラウザと、品質チェック・エクスポートが使う headless Chrome の中で動き、build は作業フォルダの中のローカルのファイルを読む。信頼できる教材だけをビルドし、開発サーバーで開くこと。信頼の前提と脆弱性の報告のしかた:[SECURITY.md](SECURITY.md)。
385
385
 
386
386
  ## ライセンス
387
387
 
388
388
  - コード:[MIT](LICENSE)、Copyright (c) 2026 Gendo Kumoi。フォントと KaTeX のフォントは [NOTICE](NOTICE) を参照
389
- - 字:BIZ UDPゴシック・BIZ UDP明朝・Source Sans 3 は SIL Open Font License 1.1(BIZ UDPゴシックは [fonts/OFL.txt](fonts/OFL.txt)、BIZ UDP明朝は [fonts/OFL-BIZUDPMincho.txt](fonts/OFL-BIZUDPMincho.txt)、`@fontsource` のパッケージにはそれぞれのライセンスのファイルがある)。組んだ教材はこれらの一部を埋め込む。KaTeX とその字は MIT
389
+ - 字:BIZ UDPゴシック・BIZ UDP明朝・Source Sans 3 は SIL Open Font License 1.1(BIZ UDPゴシックは [fonts/OFL.txt](fonts/OFL.txt)、BIZ UDP明朝は [fonts/OFL-BIZUDPMincho.txt](fonts/OFL-BIZUDPMincho.txt)、`@fontsource` のパッケージにはそれぞれのライセンスのファイルがある)。ビルドした教材はこれらの一部を埋め込む。KaTeX とその字は MIT
390
390
  - ロゴ:Egatari のロゴ([assets/logo/](assets/logo/)、編集アプリのファビコンとアイコン)は MIT ライセンスの対象外。Egatari、または Egatari 互換のソフトウェア(Egatari のファイルを読み書きするもの)を指すためなら、手を加えずに使ってよい。[NOTICE](NOTICE) を参照
391
391
  - 大学などの機関のロゴは含まない(機関のテーマは 0.4.0 の後に外した。[CHANGELOG.md](CHANGELOG.md))。自分で足したテーマとそのロゴは、それぞれの条件に従う
package/bin/egatari.mjs CHANGED
@@ -16,8 +16,8 @@ const PKG = JSON.parse(fs.readFileSync(path.join(ROOT, 'package.json'), 'utf8'))
16
16
  // 名前 → [スクリプト, 説明(日本語 / English), 引数の形]
17
17
  const SCRIPTS = {
18
18
  new: ['tools/new.mjs', '新しい作業フォルダをテンプレートから作る / create a working folder from the template', '<folder> [--lang en|ja] [--theme name] [--title "…"]'],
19
- build: ['kit/build.mjs', 'スライド(deck.html)を 1 つの HTML に組む / build deck.html into one HTML file', '<deck.html> [-o out.html] [--portable] [--play-only] [--scorm] [--embed-audio] [--theme name] …'],
20
- check: ['kit/check.mjs', '品質チェック(ブラウザが要る)/ quality check (needs a browser)', '<deck.html> [--json]'],
19
+ build: ['kit/build.mjs', 'スライド(deck.html)を 1 つの HTML にビルドする / build deck.html into one HTML file', '<deck.html> [-o out.html] [--portable] [--play-only] [--scorm] [--embed-audio] [--theme name] …'],
20
+ check: ['kit/check.mjs', '品質チェック(ブラウザが要る。--no-browser は原稿だけを見る)/ quality check (needs a browser; --no-browser checks the source only)', '<deck.html> [--json] [--no-browser]'],
21
21
  dev: ['server/dev.mjs', '開発サーバー(ブラウザで編集)/ dev server (edit in the browser)', '<deck.html> [--port 8730] [--theme name]'],
22
22
  sheet: ['tools/sheet.mjs', '全スライドの最後のステップを 1 枚の画像に / contact sheet of every slide\'s last step', '<folder | deck.html | .ega.html> [out.png] [--steps] [--tiles] [--cols 4]'],
23
23
  'comment-shots': ['tools/comment-shots.mjs', '開発サーバーのコメントの画面を撮る / screenshots of open dev-server comments', '<folder | deck.html> [id …] [--all]'],
@@ -36,7 +36,7 @@ function help() {
36
36
 
37
37
  ${Object.entries(SCRIPTS).map(([k, [, d, u]]) => line(k, d, u)).join('\n')}
38
38
  ${line('tts', '台本を AI 音声にする(uv が要る)/ make AI voice audio from the script (needs uv)', '<folder> [--dry-run] [--voices expert=bob,novice=alice] …')}
39
- ${line('doctor', 'Node・uv・ffmpeg・ブラウザがあるか、パーツの写しが正しいか、入れたスキルが古くないか調べる / check Node, uv, ffmpeg, a browser, the parts and the installed skills', '')}
39
+ ${line('doctor', 'Node・uv・ffmpeg・ブラウザがあるか、パーツのコピーが正しいか、入れたスキルが古くないか調べる / check Node, uv, ffmpeg, a browser, the parts and the installed skills', '')}
40
40
  ${line('skills', 'Claude Code・Codex に入れたスキルを更新する / update the skills installed in Claude Code and Codex', 'update')}
41
41
 
42
42
  --version 版を出す / print the version
@@ -101,7 +101,7 @@ function skillsCheck() {
101
101
  const old = installedSkills().filter((s) => s.version !== kit);
102
102
  if (!old.length) return;
103
103
  const [major, minor] = PKG.version.split('.');
104
- console.log(`!! skills 入れたスキルの指示の版が、この egatari(${kit})と違う / installed skill instructions differ from this egatari (${kit}):`);
104
+ console.log(`!! skills 入れたスキルの指示のバージョンが、この egatari(${kit})と違う / installed skill instructions differ from this egatari (${kit}):`);
105
105
  for (const s of old) console.log(` ${s.name} ${s.version} ${s.file}`);
106
106
  console.log(` 更新 / update: npx egatari@${major}.${minor}.x skills update`);
107
107
  }
@@ -235,8 +235,8 @@ async function doctor() {
235
235
  }
236
236
  // 部品の写し:組み立てが読む index.js を、固定(components.lock.json)と manifest のファイルごとの sha256 で(kit/vendor-verify.mjs)
237
237
  const vv = verifyVendorIndex(ROOT);
238
- show(!vv.problems.length, 'parts', vv.problems.length ? `パーツの写しが固定と合わない / the vendored parts do not match their pins: ${vv.problems.slice(0, 3).join('; ')}${vv.problems.length > 3 ? ` (+${vv.problems.length - 3})` : ''}`
239
- : `index.js ${vv.versions} 版、固定と manifest の sha256 に合う / ${vv.versions} versions match the lock and the manifests`, '包みを入れ直す / reinstall the package (`npm install egatari`)', true);
238
+ show(!vv.problems.length, 'parts', vv.problems.length ? `パーツのコピーが固定と合わない / the vendored parts do not match their pins: ${vv.problems.slice(0, 3).join('; ')}${vv.problems.length > 3 ? ` (+${vv.problems.length - 3})` : ''}`
239
+ : `index.js ${vv.versions} バージョン、固定と manifest の sha256 に合う / ${vv.versions} versions match the lock and the manifests`, 'パッケージを入れ直す / reinstall the package (`npm install egatari`)', true);
240
240
  try {
241
241
  const dv = defaultVoices();
242
242
  show(!dv.missing, 'voices', dv.missing ? `既定の声 ${dv.missing} 本は初めての egatari tts で取り寄せる / ${dv.missing} default voices are downloaded on the first egatari tts (to ${dv.dir})`
package/kit/build.mjs CHANGED
@@ -218,6 +218,8 @@ export const nodeEnv = {
218
218
  articleTools: async () => ({ ...(await import('./core/article-page.mjs')), ...(await import('./core/article-messages.mjs')), ...(await import('./core/article.mjs')) }),
219
219
  // 本文のステップへのリンクの行き先を再生器で確かめる(§9C.8 の 1。kit/article-steps.mjs。ブラウザを起動するので、リンクがあるときだけ)
220
220
  articleSteps: async (html, links) => (await import('./article-steps.mjs')).resolveStepLinks(html, links),
221
+ // パーツの読める中身(§2.1、#216。kit/readable-parts.mjs。ブラウザを起動するので、印のあるときだけ)
222
+ readableParts: async (html) => (await import('./readable-parts.mjs')).readParts(html),
221
223
  get commit() { return repoCommit(); },
222
224
  katexDir: path.dirname(require.resolve('katex')),
223
225
  fontDir,
@@ -373,7 +375,7 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me
373
375
  const rd = (p, max) => { try { return readRegularText(p, { max }).text; } catch { return null; } };
374
376
  const left = draftLeftovers(rd(src, READ_LIMITS.source), rd(path.join(path.dirname(src), 'narration.md'), READ_LIMITS.narration));
375
377
  const lines = leftoverLines(left);
376
- if (lines.length) { console.error(`portable: warning: ${lines.length} template ${plural(lines.length, 'leftover')}; the file is written anyway / 雛形のままのところ(書き出しはする):`); for (const l of lines) console.error(' ' + l); }
378
+ if (lines.length) { console.error(`portable: warning: ${lines.length} template ${plural(lines.length, 'leftover')}; the file is written anyway / テンプレートのままのところ(エクスポートはする):`); for (const l of lines) console.error(' ' + l); }
377
379
  }
378
380
  let r;
379
381
  try { r = await buildPortable(src, { ...opts }); } catch (e) { console.error(`portable: ${e.code ? `[${e.code}] ` : ''}${e.message}`); process.exit(1); }
@@ -185,7 +185,7 @@ export const MESSAGES = {
185
185
  kickerLong: { rule: 'R-headings', ja: (a) => `肩見出しが長い(${a.n} ${a.latin ? '文字' : '字分'}。${a.latin ? 'ラテン文字は 40 文字まで' : '24 字分まで。全角 1・半角 0.5'}):${quoteJa(a.t)}を短くする`, en: (a) => `the kicker has ${a.n} ${a.latin ? 'characters' : 'units'}, over ${a.max} (${a.latin ? 'Latin script' : 'full-width 1, ASCII 0.5'}): shorten “${a.t}”` },
186
186
  kickerPlace: { rule: 'R-headings', ja: () => '肩見出し(.kicker)はスライドに 1 つだけ、見出しの直前に置く', en: () => 'place just one kicker (.kicker) per slide, immediately before the heading' },
187
187
  cautionEmpty: { rule: 'R-caution', ja: () => '注意・警告の枠(.caution)にラベル以外の本文を書く', en: () => 'write body text besides the label in the caution or warning box (.caution)' },
188
- cautionLabel: { rule: 'R-caution', ja: () => '注意・警告のラベルは組み立てが付けるので、枠の先頭に書いたラベルを消す', en: () => 'remove the label written at the start of the caution or warning box; the build adds it' },
188
+ cautionLabel: { rule: 'R-caution', ja: () => '注意・警告のラベルはビルドが付けるので、枠の先頭に書いたラベルを消す', en: () => 'remove the label written at the start of the caution or warning box; the build adds it' },
189
189
  kickerSlide: { rule: 'R-headings', ja: () => '表紙・章の扉・縦書きのスライド(layout-tate)には肩見出し(.kicker)を置かない', en: () => 'do not use a kicker (.kicker) on a cover, chapter divider or vertical slide (layout-tate)' },
190
190
  titleLong: { rule: 'R-title', ja: (a) => `見出しが ${a.n} 字で長い(26 字まで。全角 1・半角 0.5):${quoteJa(a.t)}を短くするか、要点を結論の行に移す`, en: (a) => `the heading has ${a.n} units, over 26 (full-width 1, ASCII 0.5): shorten “${a.t}” or move the point to the conclusion line` },
191
191
  titleLongEn: { rule: 'R-title', ja: (a) => `見出しが ${a.n} 文字で長い(英文は 60 文字まで):${quoteJa(a.t)}を短くする`, en: (a) => `the heading has ${a.n} characters, over 60: shorten “${a.t}”` },
@@ -207,20 +207,20 @@ export const MESSAGES = {
207
207
  ja: (a) => `テーマ「${a.theme}」の${a.declared ? '寸法の宣言(theme.json の metrics)と描いた体裁の箱が違う' : '体裁の箱が既定の位置から動いているのに、寸法の宣言(theme.json の metrics)がない'}(${driftList(a.items, 'ja')})。本文の場所の限りは${a.declared ? '宣言' : '既定'}の値で決めるので、はみ出しの指摘がずれる:${driftHow(a, 'ja')}`,
208
208
  en: (a) => `the theme “${a.theme}” ${a.declared ? 'renders its layout boxes differently from its declared geometry (metrics in theme.json)' : 'moves layout boxes from their default positions but declares no geometry (metrics in theme.json)'} (${driftList(a.items, 'en')}). The body limits come from the ${a.declared ? 'declared' : 'default'} values, so overflow findings may be off: ${driftHow(a, 'en')}` },
209
209
  metricsFontLoad: {
210
- ja: (a) => `テーマ「${a.theme}」の寸法と描いた箱を比べなかった:同梱の字体(${(a.fonts || []).join('・')})が読み込めず、代わりの字体では測らないため(themeMetricsDrift を確かめていない):npm ci か node tools/get-fonts.mjs で字体をそろえて組み直すか、テーマの --font-sans に同梱の字体を入れる`,
210
+ ja: (a) => `テーマ「${a.theme}」の寸法と描いた箱を比べなかった:同梱のフォント(${(a.fonts || []).join('・')})が読み込めず、代わりのフォントでは測らないため(themeMetricsDrift を確かめていない):npm ci か node tools/get-fonts.mjs でフォントをそろえて再ビルドするか、テーマの --font-sans に同梱のフォントを入れる`,
211
211
  en: (a) => `the theme “${a.theme}” was not compared with its rendered boxes: the bundled fonts (${(a.fonts || []).join(', ')}) did not load, and a fallback font is never measured (themeMetricsDrift was not checked): restore the fonts (npm ci or node tools/get-fonts.mjs) and rebuild, or put a bundled font in the theme's --font-sans` },
212
212
  themeMetricsInvalid: {
213
213
  ja: (a) => `テーマ「${a.theme}」の寸法の宣言(theme.json の metrics)に使えない値がある:${a.list.join(';')}。その値の代わりに親のテーマ(なければ既定)の値で品質チェックした:theme.json の metrics を直す(docs/contract.md §12、node tools/theme-metrics.mjs measure <テーマ> で描いた箱の値を出せる)`,
214
214
  en: (a) => `the theme “${a.theme}” declares geometry (metrics in theme.json) that cannot be used: ${a.list.join('; ')}. The quality check used the parent theme's (or the default) values instead: fix metrics in theme.json (docs/contract.md §12; node tools/theme-metrics.mjs measure <theme> prints the rendered values)` },
215
215
  fontsExtraMissing: {
216
- ja: (a) => `字体(${(a.fonts || []).join('・')})は別の包み ${a.pkg} にあり、入っていないのでファイルに入らない(開く端末の字体で出る):${a.install} で入れて組み直す(npx なら npx -p egatari -p ${a.pkg} egatari …)。または既定の字体のテーマにする`,
216
+ ja: (a) => `フォント(${(a.fonts || []).join('・')})は別のパッケージ ${a.pkg} にあり、入っていないのでファイルに入らない(開く端末のフォントで出る):${a.install} で入れて再ビルドする(npx なら npx -p egatari -p ${a.pkg} egatari …)。または既定のフォントのテーマにする`,
217
217
  en: (a) => `the fonts (${(a.fonts || []).join(', ')}) are in the separate package ${a.pkg}, which is not installed, so they are not embedded (each device shows its own font): install it with ${a.install} and build again (with npx: npx -p egatari -p ${a.pkg} egatari …), or use a theme with the default fonts` },
218
218
  // 埋め込んだ字体のどれにもない字(kit/core/font-coverage.mjs。#178 (4))。where:slides | narration | article
219
219
  fontNotCovered: {
220
- ja: (a) => `ファイルの字体にない字があります(${(a.groups || []).map((g) => `${WHERE_JA[g.where] || g.where}:${g.chars}`).join('、')})。この字は開く端末の字体で表示されるので、端末によって見え方が変わります:どの端末でも同じに見せるには、字体にある字に替える(∎ なら □ や ■、記号なら式の中に書く)`,
220
+ ja: (a) => `ファイルのフォントにない字があります(${(a.groups || []).map((g) => `${WHERE_JA[g.where] || g.where}:${g.chars}`).join('、')})。この字は開く端末のフォントで表示されるので、端末によって見え方が変わります:どの端末でも同じに見せるには、フォントにある字に替える(∎ なら □ や ■、記号なら式の中に書く)`,
221
221
  en: (a) => `Some characters are not in the file's fonts (${(a.groups || []).map((g) => `${WHERE_EN[g.where] || g.where}: ${g.chars}`).join('; ')}). They show in the font of the device that opens the file, so they look different on each device: to look the same everywhere, use characters the fonts have (for ∎, □ or ■; for symbols, write them in math)` },
222
222
  fontNotEmbedded: {
223
- ja: (a) => `ファイルに入っていない字体です(${(a.fonts || []).join('・')})。開く端末によって見え方が変わります:どの端末でも同じに見せるには、ファイルに入る字体(docs/reference.ja.md「字体」の一覧)から選ぶ`,
223
+ ja: (a) => `ファイルに入っていないフォントです(${(a.fonts || []).join('・')})。開く端末によって見え方が変わります:どの端末でも同じに見せるには、ファイルに入るフォント(docs/reference.ja.md「フォント」の一覧)から選ぶ`,
224
224
  en: (a) => `This font is not embedded in the file (${(a.fonts || []).join(', ')}), so it looks different on each device: to look the same everywhere, choose a font that goes into the file (the list in docs/reference.md, “Fonts”)` },
225
225
  secHeading: { ja: (a) => `章の扉の題が h2 で書かれている(${quoteJa(a.t)}):章の扉(<section class="slide sec">)の題は h1 にする`, en: (a) => `the chapter divider's title is written with h2 (“${a.t}”): write the title of a divider (<section class="slide sec">) as h1` },
226
226
  textContrast: { rule: 'R-colors', ja: (a) => `字と地のコントラストが低い(${a.ratio}:1 < ${a.min}:1、<${a.tag}>「${a.t}」):テーマの色に戻す(スライドに書いた色・地の色を消し、テーマの class と変数だけを使う)`, en: (a) => `low contrast between text and background (${a.ratio}:1 < ${a.min}:1, <${a.tag}> “${a.t}”): go back to the theme colors (remove colors and backgrounds written on the slide; use only theme classes and variables)` },
@@ -235,12 +235,16 @@ export const MESSAGES = {
235
235
  outsideBody: { rule: 'R-fit',
236
236
  ja: (a) => `本文(.body)の外に置いた字が${{ slide: `スライドの外に出る(${a.px}px)`, title: '見出しに重なる', concl: '結論の行に重なる', pn: 'ページ番号に重なる' }[a.why] || 'はみ出す'}(「${a.t}」${moreJa(a)}):本文の中に置くか、位置を直す`,
237
237
  en: (a) => `text placed outside the body (.body) ${{ slide: `goes off the slide (${a.px}px)`, title: 'overlaps the heading', concl: 'overlaps the conclusion line', pn: 'overlaps the page number' }[a.why] || 'overflows'} (“${a.t}”${moreEn(a)}): put it inside the body or fix its position` },
238
+ // パーツの直下の <svg> がパーツの要素の箱から出る(backlog #208)。a:tag・index・label(compName)・px・n
239
+ partSvgOut: { rule: 'R-fit',
240
+ ja: (a) => `${compName(a, true)}の図(いちばん外側の <svg>)がパーツの箱からはみ出す(${a.px}px${moreJa(a)}):パーツのコードで、その <svg> に width と height を付ける(または style で width:100%;height:100%)`,
241
+ en: (a) => `the figure (outermost <svg>) of ${compName(a, false)} sticks out of the part's box (${a.px}px${moreEn(a)}): in the part's code, give that <svg> a width and height (or width:100%;height:100% in its style)` },
238
242
  // 字の箱がスライドの外に出る・重なる(どのスライドでも。#64)と、表の短いセルの語が割れる(#65)。警告。表紙と章の扉では置ける子要素を添える
239
243
  textOffSlide: { rule: 'R-fit',
240
244
  ja: (a) => `字がスライドの外に出る(「${a.t}」${moreJa(a)}、${a.px}px):字を短くするか、位置を直して 1280×720 の内に収める${PLACE_JA[a.kind] || ''}`,
241
245
  en: (a) => `text goes off the slide (“${a.t}”${moreEn(a)}, ${a.px}px): shorten it or move it inside the 1280×720 slide${PLACE_EN[a.kind] || ''}` },
242
246
  textOverlap: { rule: 'R-fit',
243
- ja: (a) => `${a.with === 'band' ? `字がスライドの帯(飾り)に重なる(「${a.t}」${moreJa(a)})` : `字の箱がほかの字に重なる(「${a.t}」と「${a.u}」${moreJa(a)})`}:重ならない位置に置き直すか、字を減らす${a.svg ? (a.component === 'm-flow' ? '。m-flow の逆向きの辺には shift を付ける' : a.component === 'm-quad' ? '。m-quad の項目の x/y を変え、象限の名前と重ならない位置に動かす' : a.component ? `。パーツ <${a.component}> のデータを変え、ラベルどうしが重ならないようにする` : '。字の x/y か text-anchor を変えるか、軸の名前を軸の端より外に置く') : ''}${PLACE_JA[a.kind] || ''}`,
247
+ ja: (a) => `${a.with === 'band' ? `文字がスライドの装飾(色の付いた部分)に重なる(「${a.t}」${moreJa(a)})` : `文字の枠がほかの文字に重なる(「${a.t}」と「${a.u}」${moreJa(a)})`}:重ならない位置に置き直すか、字を減らす${a.svg ? (a.component === 'm-flow' ? '。m-flow の逆向きの辺には shift を付ける' : a.component === 'm-quad' ? '。m-quad の項目の x/y を変え、象限の名前と重ならない位置に動かす' : a.component ? `。パーツ <${a.component}> のデータを変え、ラベルどうしが重ならないようにする` : '。字の x/y か text-anchor を変えるか、軸の名前を軸の端より外に置く') : ''}${PLACE_JA[a.kind] || ''}`,
244
248
  en: (a) => `${a.with === 'band' ? `text overlaps the slide's decorative band (“${a.t}”${moreEn(a)})` : `a text box overlaps other text (“${a.t}” and “${a.u}”${moreEn(a)})`}: move it to free space or cut the text${a.svg ? (a.component === 'm-flow' ? '; add shift to the reverse edge in m-flow' : a.component === 'm-quad' ? '; change the item’s x/y in m-quad to move it away from the quadrant name' : a.component ? `; change the data in the part <${a.component}> so the labels do not meet` : '; change the text’s x/y or text-anchor, or put the axis name beyond the axis end') : ''}${PLACE_EN[a.kind] || ''}` },
245
249
  cellWordBreak: { rule: 'R-fit',
246
250
  ja: (a) => `表のセルの短い語が途中で折り返している(「${a.t}」が ${a.lines} 行:${a.split}${moreJa(a)}):表の列を減らすか、語を短くするか、その列を広げる(ほかの列の字を減らす)`,
@@ -340,6 +344,8 @@ export const MESSAGES = {
340
344
  morphLater: { ja: (a) => `モーフ:ステップ 0 で見えないので動かさない:${a.ids}`, en: (a) => `morph: not moved because not visible at step 0: ${a.ids}` },
341
345
  morphDupSrc: { ja: (a) => `モーフ:元のスライドに data-id「${a.id}」が 2 つ以上ある(初めのものだけを使う):1 つにする`, en: (a) => `morph: the source slide has data-id “${a.id}” more than once (only the first is used): keep one` },
342
346
  morphDupDst: { ja: (a) => `モーフ:data-id「${a.id}」が 2 つ以上ある(初めのものだけを使う):1 つにする`, en: (a) => `morph: data-id “${a.id}” appears more than once (only the first is used): keep one` },
347
+ imgTooLarge: { ja: (a) => `教材に埋め込む画像 ${a.image} が 1 MiB を超えている(${mibOf(a.n)}):必要な部分を切り抜くか、幅 1600 px ほどの JPEG・WebP で保存する`, en: (a) => `the lesson’s embedded image ${a.image} is over 1 MiB (${mibOf(a.n)}): crop it or save it as JPEG/WebP about 1600 px wide` },
348
+ imgTotal: { ja: (a) => `教材に埋め込む画像は ${a.count} 枚、合計 ${mibOf(a.n)}(パーツ自身の画像を除く)`, en: (a) => `the lesson has ${a.count} embedded ${plural(a.count, 'image')}, totalling ${mibOf(a.n)} (excluding parts' own images)` },
343
349
  imgAlt: { ja: (a) => `alt の無い画像が ${a.n} 枚(${a.list}):内容を alt="…" に書く(飾りなら alt="")`, en: (a) => `${a.n} ${plural(a.n, 'image')} without alt (${a.list}): describe ${a.n === 1 ? 'it' : 'them'} in alt="…" (alt="" if decorative)` },
344
350
  svgName: { ja: (a) => `名前の無い SVG の図が ${a.n} 個:aria-label="…" か <title>…</title> を付ける(飾りなら aria-hidden="true")`, en: (a) => `${a.n} SVG ${plural(a.n, 'figure')} without a name: add aria-label="…" or <title>…</title> (aria-hidden="true" if decorative)` },
345
351
  compName: { ja: (a) => `名前の無いパーツ:${a.list}(読み上げ用に aria-label="…" を付けられる)`, en: (a) => `parts without a name: ${a.list} (an aria-label="…" helps screen readers)` },