egatari 0.6.15 → 0.6.17
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 +36 -1
- package/README.ja.md +65 -64
- package/README.md +40 -39
- package/bin/egatari.mjs +3 -3
- package/kit/check-messages.mjs +95 -70
- package/kit/check.mjs +17 -11
- package/kit/core/article-messages.mjs +15 -15
- package/kit/core/check-parity.mjs +1 -1
- package/kit/core/check-rules.mjs +11 -6
- package/kit/core/colab-core.mjs +2 -2
- package/kit/core/export-name.mjs +2 -2
- package/kit/core/geometry-check.mjs +363 -25
- package/kit/core/layout-scan.mjs +8 -3
- package/kit/core/live-policy.mjs +2 -2
- package/kit/core/live.mjs +2 -2
- package/kit/core/llm-fix.mjs +12 -12
- package/kit/core/llm-insert.mjs +11 -11
- package/kit/core/llm-outline.mjs +7 -7
- package/kit/core/llm-pack-data.mjs +10 -10
- package/kit/core/parts2.mjs +5 -5
- package/kit/core/portable.mjs +5 -5
- package/kit/core/purposes.mjs +2 -2
- package/kit/core/ref-voice.mjs +1 -1
- package/kit/core/scorm.mjs +1 -1
- package/kit/core/sound-preferences.mjs +1 -1
- package/kit/core/theme-derive.mjs +209 -0
- package/kit/core/themes-list.mjs +1 -1
- package/kit/core/themes-lock.mjs +1 -1
- package/kit/core/tier-a.mjs +7 -7
- package/kit/deck.js +7 -4
- package/kit/instruction-version.json +1 -1
- package/kit/live.js +20 -20
- package/kit/player.json +1 -1
- package/kit/player.lock.json +2 -2
- package/kit/presenter.js +2 -2
- package/kit/templates/new-deck.mjs +6 -6
- package/kit/tools.js +5 -5
- package/kit/track.js +1 -1
- package/package.json +1 -1
- package/server/editor-ui.js +20 -17
- package/tts/yomi.yaml +8 -0
- package/vendor/egatari-spec/SOURCE.json +2 -2
- package/vendor/egatari-spec/schema/deck-meta.schema.json +1 -1
- package/vendor/egatari-spec/schema/egatari-metadata.schema.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,39 @@ 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.17] - 2026-11-20
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- Editor app: a font file the build fetches from the site (a subset of a theme's font) is fetched again up to twice (after 0.5 s and 1.5 s) when the request fails, the server answers 5xx, 408 or 429, or the body breaks off; one passing network or CDN failure among the files fetched at once no longer stops the build, and at most four are fetched at once (the 国語 theme, whose body text is in mincho, fetches about 144 files, twice as many as 藍; handoff #68). If it still fails, the message names the font file and says to check the connection and try again, instead of “font not found: /repo/fonts/…”. `tools/test-lazy-fetch.mjs`
|
|
16
|
+
|
|
17
|
+
## [0.6.16] - 2026-11-20
|
|
18
|
+
|
|
19
|
+
### Added
|
|
20
|
+
|
|
21
|
+
- Editor: **Copy slide image and check request** in the quality check panel puts a PNG of the current slide at its last step and a short request for an AI chatbot (check that the figure and the conclusion line agree, that the figure is not squashed or cut off, and what to change in the slides HTML) on the clipboard in one go. The picture is drawn inside the preview and nothing is uploaded; browsers that cannot copy images get **Save image** and **Copy request** instead (backlog #227, handoff Issue #44)
|
|
22
|
+
- Quality check: a shape marked `data-within="name"` must stay inside the frame marked `data-frame="name"`. Only declared shapes are measured, by their rendered outline at every step of the slide, so a shape that sticks out only at a middle step is found too. The new R-geometry warning `geoOutsideFrame` (command line and editor) names the shape, the step, by how many px it sticks out, and the other steps where it is outside; the AI fix request carries the same. The value is one name (`[a-z][a-z0-9-]*`); any other value is not measured and gets the R-geometry warning `geoBadMarkName` (command line, editor and AI fix request), once per element, naming the element and the value, so a typo does not silently turn the check off (handoff Issue #46)
|
|
23
|
+
- Logo: a looping stroke-drawing version, `assets/logo/egatari-draw-loop-{light,dark}.svg` (draw 2.5 s → hold about 1 s → fade about 0.4 s, repeated; final state with reduced motion), for waits of unknown length, as self-contained SVG files that can be used as they are (owner 2026-11-19, handoff #56). The editor's waiting logo (waits over about 1 s: opening, building, creating from the pasted output) now uses it, so it no longer stops after one drawing while still waiting. The draw-once version stays for splashes
|
|
24
|
+
- Quality check: a shape's stroke cut off at the edge of an inline SVG is reported. Every stroked shape in a clipping SVG (author figures and part figures; not `overflow="visible"`) is measured at the end of every step, by its bounding box grown by half the stroke width, in the same pass as `geoOutsideFrame`. Only the accident shape is reported: more than 1px cut on some edge while at least 90% of it is inside; `data-overlap="ok"` and `data-clip` leave a shape out. The new R-geometry warning `geoClippedStroke` (command line and editor) names the shape, the edge and px, and the step; the AI fix request carries the same. A lesson with inline SVGs and no parts now runs R-geometry (handoff Issue #52)
|
|
25
|
+
- New…, step ③: **Custom** opens a theme builder (display prototype, backlog #58). Pick one main colour (or colours from a logo image) and a font; the other colours are derived from it, a cover and a body slide preview the result, and background checks (contrast, colour vision, greyscale, washed-out projection, cover title over the background image) speak up only when something fails, with the nearest passing colour. **More** edits the derived colours and adds a cover background image, stored in `tokens.css` as a `data:` URI (so it is in the theme hash and the file). **Save theme** puts it into My themes; **Download as ZIP file** gives the theme folder (`kit/core/theme-derive.mjs`, `app/theme-workshop.js`).
|
|
26
|
+
- Egatari Viewer: handwriting. 「手書き」 makes the slide and a memo area below it one surface for Apple Pencil or a mouse, with three fixed pen colours, an eraser and undo; the memo area takes the slide's background. Strokes stay on this device, per lesson and slide, and are not kept on a shared device. Handwriting works in the slides view only: turning it on asks the player for that view, and choosing the book or slides-and-book view closes it (the strokes are kept). New test `tools/test-viewer-ink.mjs` (Chromium and WebKit).
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- Bundled samples synced to egatari/examples 4a02065: the samples use the same words as Studio (Egatari ファイル, 対話型の生成AI, AI への指示; handoff #36), and two steps of egatari-intro have their narration audio made again
|
|
31
|
+
- Quality check: R-geometry measures `<circle>` boxes by their shape; an edge may name a point (`data-part="mark"`) as an end, and is then not checked against that point's label or the box that holds the point; `data-overlap="ok"` on a marked element or an ancestor `<g>` leaves its overlap findings out (`geoEdgeThroughBox`, `geoLineOverLabel`, `geoLabelOverlap`) (handoff Issue #45); `geoLabelOutsideBox` compares a label with the shape of a `<circle>`, `<ellipse>`, `<polygon>` or `<path>` box, not its bounding box (handoff Issue #46)
|
|
32
|
+
- Egatari Player 1.9.1 (the bundled player that files carry, `player` in the index and `deck-meta`): patch release. The words the player shows (the Live panel, the sound and key help, the presenter view) follow the Studio glossary of 0.6.16 (handoff #36); a lesson shown and hidden again while its fonts were loading no longer mounts its parts at zero size (which made m-folds write a negative `rx`). Slides look the same; playback, steps and timing are unchanged
|
|
33
|
+
- Wording (handoff #36 and the Japanese UI audit of 2026-11-19): what people make and share is an **Egatari file** (“file” where the context is clear) instead of a lesson / 教材; ChatGPT, Gemini and Claude are an **AI chatbot** (対話型の生成AI → 対話型AI), Claude Code and Codex are **AI agents** (AIエージェント), both together **generative AI** (生成AI). Studio, Egatari Viewer, quality-check findings, the player's own text, the AI instructions, docs and skills follow. The instructions version changes with the text only; no rule (R-…) changes.
|
|
34
|
+
- Japanese UI: established terms instead of softened native verbs (修正・編集・確認・削除・破棄・追加・挿入・送信・依頼・配布・録音), スタート画面, 一時保存 for the unsaved changes kept in the browser, 読み取り専用, and the recording-mode buttons 連続録音・確定して次へ・再録音・タイミング設定. The glossary (`docs/terms.json`) gains egatari-file, ai-chatbot, ai-agent, generative-ai, subject (題材), reader (読み手), discard, delete, read-only, start-screen, send and draft-autosave; lesson and chat-ai are retired. A file saved without a title is named `untitled.ega.html`.
|
|
35
|
+
- Reading dictionary (`tts/yomi.yaml`, used by local audio and the editor's browser TTS; handoff #48): “Egatari” is read as 絵語り (the kana reading gave an unnatural intonation; the reading is placed as written, so kanji works), and SCORM → スコーム, LMS → エルエムエス, CSS → シーエスエス and HTML → エイチティーエムエル (PDF and URL are left as written: they sound more natural without a reading). As before, English-only lines and longer English words that contain them are left alone
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- Player: a lesson whose frame is shown and then hidden again while its fonts are still loading (a window opened and closed at once, a replaced preview) no longer mounts its parts at zero size; it waits until it is shown again. Before, m-folds drew its cells with a negative corner radius and the console logged `<rect> attribute rx: A negative value is not valid`.
|
|
40
|
+
- Editor app and dev server: after saving a script, 「保存しました」 (with 「ほかのステップの N か所にも読み方を付けました」 for a reading
|
|
41
|
+
applied to every step) stayed for only about 50 ms: the reload of the preview after the save rebuilt the script panel. It now stays until the next edit
|
|
42
|
+
- Viewer: in Chrome on iPad, turning to landscape no longer leaves a dark band above the slide with its bottom cut off and a page that scrolls back to the top; the page and the lesson's frame now take the visible height (visualViewport) instead of 100dvh. test-viewer-webkit checks it with a visible height shorter than the layout viewport.
|
|
43
|
+
|
|
11
44
|
## [0.6.15] - 2026-11-19
|
|
12
45
|
|
|
13
46
|
### Added
|
|
@@ -1620,7 +1653,9 @@ First public release.
|
|
|
1620
1653
|
- 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
|
|
1621
1654
|
- Tests (`npm test`) and GitHub Actions running them on Node 22 and 24, plus a TTS dry-run through video export
|
|
1622
1655
|
|
|
1623
|
-
[Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.
|
|
1656
|
+
[Unreleased]: https://github.com/egatari/egatari-studio/compare/v0.6.17...HEAD
|
|
1657
|
+
[0.6.17]: https://github.com/egatari/egatari-studio/compare/v0.6.16...v0.6.17
|
|
1658
|
+
[0.6.16]: https://github.com/egatari/egatari-studio/compare/v0.6.15...v0.6.16
|
|
1624
1659
|
[0.6.15]: https://github.com/egatari/egatari-studio/compare/v0.6.14...v0.6.15
|
|
1625
1660
|
[0.6.14]: https://github.com/egatari/egatari-studio/compare/v0.6.13...v0.6.14
|
|
1626
1661
|
[0.6.13]: https://github.com/egatari/egatari-studio/compare/v0.6.12...v0.6.13
|
package/README.ja.md
CHANGED
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
[English](README.md) | 日本語
|
|
14
14
|
|
|
15
|
-
Egatari
|
|
15
|
+
Egatari は、スライド・台本・音声・本を 1 つの HTML ファイルにまとめる形式です。ブラウザーで再生でき、生成AIで作成・修正できます。Egatari Studio は、その Egatari ファイルを作成・編集するツール。
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Egatari ファイルは自己完結した 1 つの HTML で、ステップ表示とパーツで説明の順を見せる。1 組のスライドと台本(`deck.html` と `narration.md`)から、スライドショー(先のステップを薄く見せることもできる)・PDF、そして必要なら TTS の動画まで作る。[Claude Code](https://claude.com/claude-code) のスキル(`skills/`)で動かす前提で作ってあるが、どの手順も Node のコマンドなので、Claude Code なしでも使える。
|
|
18
18
|
|
|
19
19
|
*Egatari Studio(旧 motion-academic-slides)。npm のパッケージ・スキル・コマンドの名前は変わらない。*
|
|
20
20
|
|
|
@@ -24,8 +24,9 @@ Egatari は、授業・研修・公共の案内などの教材を、読み上げ
|
|
|
24
24
|
|
|
25
25
|
次のどれか 1 つで始められる。
|
|
26
26
|
|
|
27
|
-
- **編集アプリ(インストール不要)**:Chrome か Edge で <https://studio.egatari.org/>
|
|
28
|
-
-
|
|
27
|
+
- **編集アプリ(インストール不要)**:Chrome か Edge で <https://studio.egatari.org/> を開き、その場で Egatari ファイルを作成する・開く([編集アプリ](#editor-app))。
|
|
28
|
+
- **対話型AIと**:対話型の生成AI(ChatGPT・Gemini・Claude など)に make のスキル(`egatari-make-skill.zip`)を追加し、作成を依頼する([Codex で使う](#codex) の末尾)。
|
|
29
|
+
- **AIエージェントと**:Claude Code・Codex にスキルをインストールし、自動で更新されるようにして(Claude Code は `/plugin` → Marketplaces → egatari → Enable auto-update、Codex は Studio のリリースのたびに `npx egatari@0.6.x skills update`)、作成を依頼する([Claude Code で使う](#claude-code)、[Codex で使う](#codex))。
|
|
29
30
|
- **コマンドライン**:
|
|
30
31
|
|
|
31
32
|
```bash
|
|
@@ -48,10 +49,10 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
|
|
|
48
49
|
- **モーフ**:`data-morph` のスライドでは、前のスライドの式や要素が今の位置へ滑ってくる(Keynote のマジックムーブ)
|
|
49
50
|
- **1 組のスライドと台本で 2 つのモード**:スライドショー(`?mode=talk`)と動画(`?mode=video`)。先のステップを薄く見せるのはスライドショーの選び(`l`。`?mode=lecture` はこの選びを入れて開く)
|
|
50
51
|
- **発表のツール**:発表者ビュー(台本がカンペになる・タイマー)、スライド一覧、レーザーポインター、ペン、消えるペン、ツールバー
|
|
51
|
-
- **テーマ**:基調色 1 つで切り替える(`themes/<名前>/tokens.css`)。パーツはテーマの変数だけを使う。同梱は 8
|
|
52
|
-
- **品質管理**:規格(R-fit・R-steps
|
|
53
|
-
-
|
|
54
|
-
- **Egatari ファイル(`.ega.html`)**:`--portable`
|
|
52
|
+
- **テーマ**:基調色 1 つで切り替える(`themes/<名前>/tokens.css`)。パーツはテーマの変数だけを使う。同梱は 8 つで、新しいファイルは 7 つから選ぶ:藍(`default`)・墨(`sumi`)・国語・常盤・江戸紫・焦茶・浅葱。`business` は、それを使ったファイルをビルドできるように同梱のまま残す([リファレンス](docs/reference.ja.md#テーマ))
|
|
53
|
+
- **品質管理**:規格(R-fit・R-steps など)がスライドと台本の満たすことを決め、品質チェック `kit/check.mjs`(`npm run check`)がはみ出し・文字の大きさ・ステップ・台本の抜け・配色のコントラスト・パーツの再現性・強調・モーフを調べる
|
|
54
|
+
- **開発サーバー**:ブラウザの上で文言と台本を編集し、AIエージェントへのメモを保存できる
|
|
55
|
+
- **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
56
|
- **出力**:単一の HTML(字・数式と、原稿が参照するローカルの画像・動画・CSS を埋め込み済み、オフラインで開ける)。印刷か `tools/pdf.mjs` で PDF
|
|
56
57
|
|
|
57
58
|
**リファレンス**:選択肢・記法・キー・環境変数をすべて 1 ページに:[docs/reference.ja.md](docs/reference.ja.md)
|
|
@@ -67,24 +68,24 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
|
|
|
67
68
|
<a id="editor-app"></a>
|
|
68
69
|
## 編集アプリ(インストール不要)
|
|
69
70
|
|
|
70
|
-
開発サーバーと同じ編集を、Egatari ファイル(`.ega.html`)か作業フォルダを直接開くウェブページでできる。Node もターミナルも要らない。Egatari
|
|
71
|
+
開発サーバーと同じ編集を、Egatari ファイル(`.ega.html`)か作業フォルダを直接開くウェブページでできる。Node もターミナルも要らない。Egatari ファイルはどのブラウザでも開いて編集でき、作業フォルダには**パソコンの Google Chrome か Microsoft Edge** が要る(File System Access API を使う。Safari と Firefox にはない)。
|
|
71
72
|
|
|
72
73
|
| 形 | 中身 | ここで |
|
|
73
74
|
|---|---|---|
|
|
74
|
-
| 作業フォルダ | `deck.html`・`narration.md`・`audio/` … の入ったフォルダ。コマンド・AI
|
|
75
|
-
| Egatari ファイル(`.ega.html`) | 原稿と音声を中に持つ 1 つの HTML(`--portable`)。ブラウザで開けば再生 |
|
|
76
|
-
| 再生専用(`--play-only`) | 原稿を持たない Egatari ファイル |
|
|
77
|
-
| ビルドした HTML(`out/deck.html`) | `node kit/build.mjs` の発表用の出力 |
|
|
75
|
+
| 作業フォルダ | `deck.html`・`narration.md`・`audio/` … の入ったフォルダ。コマンド・AIエージェント(Claude Code・Codex・Gemini CLI など)・ほかのエディタが読み書きする | 「フォルダで作業する…」(Chrome / Edge)で編集する |
|
|
76
|
+
| Egatari ファイル(`.ega.html`) | 原稿と音声を中に持つ 1 つの HTML(`--portable`)。ブラウザで開けば再生 | 「開く…」で編集する(どのブラウザでも) |
|
|
77
|
+
| 再生専用(`--play-only`) | 原稿を持たない Egatari ファイル | 編集できない(元の Egatari ファイルか作業フォルダを開く) |
|
|
78
|
+
| ビルドした HTML(`out/deck.html`) | `node kit/build.mjs` の発表用の出力 | 編集できない(作業フォルダを開く) |
|
|
78
79
|
|
|
79
80
|
- **開く:** Chrome か Edge で **<https://studio.egatari.org/>** を開く(インストール不要)。または `npm run build:app` でビルドし、`dist/editor.html`(オフライン版のエディタ、約 10 MB)をダブルクリックで開く
|
|
80
|
-
- **Egatari ファイルを開く(フォルダなしで):**
|
|
81
|
-
-
|
|
82
|
-
- **作業フォルダを開く:** 作業フォルダ(`deck.html`
|
|
83
|
-
-
|
|
84
|
-
- **台本の音声を 1 ステップずつ:**
|
|
85
|
-
- **AI
|
|
81
|
+
- **Egatari ファイルを開く(フォルダなしで):** スタート画面の「ファイルを開く(.ega.html)…」(またはファイルをドラッグ&ドロップ)で[Egatari ファイル(`.ega.html`)](docs/reference.ja.md#1-ファイル--portable)を開き、メモリの上で編集する。ファイルは動かさずに Worker の中で取り出す。「保存」で同じファイルに(またはダウンロード)、「名前を付けて保存…」で別のファイルに(「新しいファイルとして保存する」にチェックを入れれば、元のファイルを記録した新しい識別子のファイルに)、「作業フォルダにエクスポート…」で空のフォルダに原稿と音声をエクスポートする。ファイルの識別子と権利の表示は変えず、最初の編集の前にライセンスを見せる(改変を認めないライセンスは確認つき)。台本・音声・秒数の編集は再ビルドせずに保存し、ファイルのその所だけが変わる。スライドを編集したら、編集していないスライドの見え方が変わりうると知らせてから再ビルドする。フォルダを開いているときは「名前を付けて保存…」で Egatari ファイルに。今のどのブラウザでも使える(ファイルを選ぶダイアログがなければ保存はダウンロード)
|
|
82
|
+
- **編集する:** 開発サーバーと同じキー。`e`+ダブルクリックで原稿、`n` で台本、Alt / ⌥ option+クリックで コメント(`comments.json`)、`c` で一覧。バックアップはフォルダの `.cache/edits/` に保存する
|
|
83
|
+
- **作業フォルダを開く:** 作業フォルダ(`deck.html` の入ったもの)を画面にドラッグ&ドロップするか「フォルダで作業する…」を押し、そのフォルダの編集を許可する。「新規作成…」は対話型AIで新しい Egatari ファイルを作成する(新しい作業フォルダはコマンドの `npm run new`)。最近開いた作業フォルダはスタート画面に並ぶ
|
|
84
|
+
- **対話型AIで下書き(AIエージェントなし):** 「新規作成…」で 4 つの問い(使う場面・何について・見た目・AI に渡す指示が軽量か詳細か)に答えると、ChatGPT・Gemini・claude.ai に送信する [AI への指示](docs/authoring-with-llms.ja.md) をコピーでき、AI の出力をスライドと台本の 2 つの欄に貼り付ける(出力の全体をどちらかに貼れば 2 つに分ける)。エディタがスライドに id を付け、新しい Egatari ファイルとして作り(出力にスクリプトがあれば、開いたファイルと同じく動かす前に確認する)、品質チェックを実行する。品質チェックのパネルの「AI への修正依頼をコピー」は、指摘・破った規格・今のファイルを同じチャット向けにコピーし、その出力で「修正…」が今のファイルのスライドを置き換える(識別子と音声は変えない)。「スライドの挿入…」では、選んだスライドの後ろに AI で作成したスライドを挿入できる
|
|
85
|
+
- **台本の音声を 1 ステップずつ:** 「音声」でステップの音声を聞き、作った後に台本が変わっていれば「古い」と示す。マイクから録音する(入力レベルの表示つき)、ファイルから取り込む、AI 音声をこの PC で作る(日本語は読み辞書つきの Irodori-TTS、英語は Kokoro。WebGPU が要り、モデルは初回だけ取得)で作り直すのどれかをして、「この音声を使う」。録音し直した音声は `tts/core.py` と同じく整え(無音を削り −20 LUFS)、出どころと一緒に MP3 で保存する([詳しく](docs/editor.ja.md#台本の音声音声のパネル))。Egatari ファイルでは再ビルドせずに保存する
|
|
86
|
+
- **AIエージェントと一緒に:** ほかのもの(Claude Code・Codex・テキストエディタ)がファイルを変えると、2 秒ほどで気づいて再ビルドし、同じスライド・ステップのまま表示する。ビルドに失敗したら、修正されるまでプレビューの上にエラーを表示する
|
|
86
87
|
- **言語:** ふだんはブラウザの言語に合わせる。右上の **English / 日本語** のボタン(または `?lang=en`・`?lang=ja`)で切り替える
|
|
87
|
-
- **ツールの列:** ファイル ▾(新規作成…・開く…・保存・名前を付けて保存…・エクスポート ▸
|
|
88
|
+
- **ツールの列:** ファイル ▾(新規作成…・開く…・保存・名前を付けて保存…・エクスポート ▸ 参加者用(再生専用)…/スライドを印刷/本を印刷(本のないファイルは台本を印刷)・ファイルの情報…・フォルダで作業する…)、スライド ▾(スライドの挿入…・複製・削除・修正…)、品質チェック(警告の数)、プレビュー ▾(スライドショー・動画で確認、発表者ビュー(台本と次のステップを表示するウィンドウ)で確認)
|
|
88
89
|
|
|
89
90
|
できないこと:自分の参照音声での TTS(`tts/synth.py`)・動画・`npm run check`(品質チェックのコマンド版)・`tools/pdf.mjs` はコマンドで行い、プレビューはフォルダの音声を鳴らさない(鳴らすのは音声のパネル)。ブラウザ版の品質チェックは一部の項目(はみ出し・文字の大きさ・字数・台本の抜け・コントラスト)だけで、目安にとどまる(全部は `npm run check`)。エクスポートするファイルは、コマンドでビルドしたものと同じくフォントをサブセット化する(サブセット化のツール、約 2 MB は初めてのエクスポートで読み込む)。リポジトリのパーツとテーマはアプリをビルドしたときのもの。作業フォルダの中のパーツ・テーマはフォルダから読む。
|
|
90
91
|
|
|
@@ -95,9 +96,9 @@ Node.js 22.23.4 以上が要る([要るもの](#requirements))。ほかの
|
|
|
95
96
|
<a id="claude-code"></a>
|
|
96
97
|
## Claude Code で使う
|
|
97
98
|
|
|
98
|
-
Claude Code
|
|
99
|
+
Claude Code・Cowork(Claude のデスクトップアプリ)で作る:[docs/with-claude.ja.md](docs/with-claude.ja.md)([English](docs/with-claude.md))。
|
|
99
100
|
|
|
100
|
-
先に、古い入れ方の `~/.claude/skills/motion-*` を削除する(プロジェクトの `.claude/skills/`
|
|
101
|
+
先に、古い入れ方の `~/.claude/skills/motion-*` を削除する(プロジェクトの `.claude/skills/` にもインストールしていたらそちらも)。スライドと台本を書く軽量な `egatari` は make だけを含み、Node は要らない。ローカルの品質チェック・ビルド・パーツ作成・動画には `egatari-studio` もインストールする。studio を使う場合は、必ず両方をインストールする:
|
|
101
102
|
|
|
102
103
|
```text
|
|
103
104
|
/plugin marketplace add egatari/egatari-studio
|
|
@@ -105,9 +106,9 @@ Claude Code や Cowork(Claude のデスクトップアプリ)で教材を作
|
|
|
105
106
|
/plugin install egatari-studio@egatari
|
|
106
107
|
```
|
|
107
108
|
|
|
108
|
-
|
|
109
|
+
インストールしたら、自動更新を有効にする:`/plugin` → Marketplaces → egatari → Enable auto-update。Marketplaces のタブで egatari を選んで Enter を押し、開いた画面で Enable auto-update を選ぶ(一覧や Installed のタブにはない)。見つからないときは、リリースのたびに手で更新する:`claude plugin marketplace update egatari` のあと、`claude plugin update egatari@egatari` と `claude plugin update egatari-studio@egatari`。Claude Code が初めから自動で更新するのは Anthropic の公式のマーケットプレイスだけで、egatari のようなほかのマーケットプレイスは初めは自動更新が切れている。スキルの指示と品質チェックは Studio のバージョンごとに変わるので、古いスキルのままだと、新しい決まりや修正が使われない。スキルが古いとわかれば、スキル自身が 1 回だけ通知する(作業は止めない)。
|
|
109
110
|
|
|
110
|
-
studio スキルはコマンドを npm の包み egatari(`npx egatari@0.6.x …`、[npm で使う(clone しない)](#npm))で動かす。リポジトリの clone も `npm ci` も要らず、Node.js があればよい(初めに `npx egatari@0.6.x doctor`
|
|
111
|
+
studio スキルはコマンドを npm の包み egatari(`npx egatari@0.6.x …`、[npm で使う(clone しない)](#npm))で動かす。リポジトリの clone も `npm ci` も要らず、Node.js があればよい(初めに `npx egatari@0.6.x doctor` で足りないものとインストールの方法を確認する)。更新は `/plugin update egatari@egatari` と `/plugin update egatari-studio@egatari`。インストールしているツール(Claude Code・Codex)すべてをまとめて更新するには `npx egatari@0.6.x skills update` を実行し、ツールを再起動する。make だけを使う場合は、書き終えた作業フォルダを Chrome か Edge の <https://studio.egatari.org/> で開く。Mac の Safari は Egatari ファイル(.ega.html)で開く手順を使う。
|
|
111
112
|
|
|
112
113
|
<a id="codex"></a>
|
|
113
114
|
## Codex で使う
|
|
@@ -120,22 +121,22 @@ codex plugin add egatari@egatari
|
|
|
120
121
|
codex plugin add egatari-studio@egatari
|
|
121
122
|
```
|
|
122
123
|
|
|
123
|
-
|
|
124
|
+
インストールしたら、Studio のリリースのたびに `npx egatari@0.6.x skills update` を実行して Codex を再起動する。スキルの指示と品質チェックは Studio のバージョンごとに変わるので、古いスキルのままだと、新しい決まりや修正が使われない。
|
|
124
125
|
|
|
125
|
-
|
|
126
|
+
スライドと台本を書くだけなら `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
127
|
|
|
127
|
-
|
|
128
|
+
対話型の生成AI(ChatGPT・Gemini・Claude など)には `egatari-make-skill.zip` をアップロードする。Studio を更新したら、Studio の『AI のスキルをダウンロード』で追加し直す。開発者は `node tools/make-llm-guide.mjs --zip out/release` で作れる。ZIP の `make/` は、生成してコミットする `plugins/egatari/skills/make/` と同じ内容。
|
|
128
129
|
|
|
129
130
|
| スキル | 使いどころ |
|
|
130
131
|
|---|---|
|
|
131
132
|
| `egatari:make` | 構成案・原稿・ステップ・台本(Node 不要) |
|
|
132
133
|
| `egatari-studio:studio` | ローカルの品質チェック・ビルド、パーツ作成、既存の音声を使った動画のエクスポート |
|
|
133
134
|
|
|
134
|
-
|
|
135
|
+
依頼の例:
|
|
135
136
|
|
|
136
137
|
- 「`paper/main.tex` から 10 分の発表の HTML スライドを egatari:make で作って。テーマは default、1 人で話す」
|
|
137
138
|
- 「学習率で損失の下がり方が変わる様子を m-sweep で見せるスライドを足して」
|
|
138
|
-
- 「コメントを反映して」(開発サーバーで Alt / ⌥ option
|
|
139
|
+
- 「コメントを反映して」(開発サーバーで Alt / ⌥ option+クリックのメモを保存した後。スキルが `comments.json` を読む)
|
|
139
140
|
- 「`talks/intro` (音声入り)を egatari-studio:studio で動画にして」
|
|
140
141
|
|
|
141
142
|
スキルはまず構成案を見せ、承認を得てから HTML を書く。
|
|
@@ -148,9 +149,9 @@ npm の包み `egatari` は、同じツールを 1 つのコマンド `egatari`
|
|
|
148
149
|
```bash
|
|
149
150
|
npx egatari new mytalk --lang ja # mytalk/deck.html・mytalk/narration.md・mytalk/egatari.json を作る
|
|
150
151
|
npx egatari build mytalk/deck.html # -> mytalk/out/deck.html(--portable・--play-only などのビルドの選択肢もそのまま使える)
|
|
151
|
-
npx egatari dev mytalk/deck.html #
|
|
152
|
+
npx egatari dev mytalk/deck.html # ブラウザで編集する
|
|
152
153
|
npx egatari check mytalk/deck.html # 最後の行が「エラー 0」になればよい
|
|
153
|
-
npx egatari doctor # Node・uv・ffmpeg
|
|
154
|
+
npx egatari doctor # Node・uv・ffmpeg・ブラウザ・パーツのコピーがあるか、ないもののインストールの方法
|
|
154
155
|
```
|
|
155
156
|
|
|
156
157
|
Bun(`bunx egatari`)でも動きます。
|
|
@@ -167,10 +168,10 @@ node kit/build.mjs $D/deck.html # 再ビルドして、
|
|
|
167
168
|
node render/render.mjs $D/out/deck.html --out $D/video # 1 ステップだけなら --only "更新の式:2"(スライド 1 枚分なら --only 更新の式)、1 本にまとめるなら --full
|
|
168
169
|
```
|
|
169
170
|
|
|
170
|
-
- 声:`--voices expert=bob,novice=alice` か
|
|
171
|
+
- 声:`--voices expert=bob,novice=alice` か `<作業フォルダ>/voice.json`(`{"expert": "me"}`、または wav のパス)。既定は 1 人なら `bob`、掛け合いなら `bob`(Expert)と `alice`(Novice)で、`tts/voices/<名前>.wav` を探す。英語のファイルでは `<名前>_en.wav` があればそちらを使う
|
|
171
172
|
- サーバーが動いていない、参照音声がないときは、`synth.py` がその URL やファイルを示して止まる
|
|
172
173
|
- Mac がなければ:`synth.py` は同じ要求を受け付ける OpenAI 互換の TTS サーバーならどれとでも動く([docs/video.ja.md](docs/video.ja.md#tts-のサーバーmacwindowslinux))。編集アプリでもステップごとに音声を作る・録音できる
|
|
173
|
-
- **音声入りの HTML**:`node kit/build.mjs $D/deck.html --embed-audio` で台本の音声を HTML
|
|
174
|
+
- **音声入りの HTML**:`node kit/build.mjs $D/deck.html --embed-audio` で台本の音声を HTML の中に埋め込む。1 つのファイルだけで、どこでも `a`(自動再生)で音声付きで進む。音声は AAC(64 kbps・モノラル)に圧縮する(5 分で約 4.5 MB。WAV のままだと約 30 MB)。今の主要なブラウザはすべて再生できる。`--embed-audio` を付けなければ、HTML は `audio/` の WAV を参照するだけで変換しない。ffmpeg がなければ WAV のまま埋め込み、build が警告する
|
|
174
175
|
- 詳しく(キャッシュ、`timeline.json` での長さの調整、読み辞書):[docs/video.ja.md](docs/video.ja.md)([English](docs/video.md))
|
|
175
176
|
|
|
176
177
|
動画に要るもの(ffmpeg・uv・TTS のサーバー・参照音声)は [要るもの](#requirements) の「段 2」にある。段 1 と段 2 の違いは次の「2 つの使い方」。
|
|
@@ -200,7 +201,7 @@ node render/render.mjs $D/out/deck.html --out $D/video # 1 ステップだけ
|
|
|
200
201
|
| s / Shift+s | 字幕(台本を 2 行ほどずつ)/ 字幕の大きさ S・M・L |
|
|
201
202
|
| o | スライド一覧(矢印で選んで Enter) |
|
|
202
203
|
| x / d / v | レーザーポインター / ペン / 消えるペン。Shift+d(またはツールバーの色のボタン)でペンの色 |
|
|
203
|
-
| Backspace(Shift+Backspace) |
|
|
204
|
+
| Backspace(Shift+Backspace) | ペンを使っている間:このスライドの書き込みを削除(全部削除) |
|
|
204
205
|
| Esc | ツールを解除 |
|
|
205
206
|
| ? | キーの一覧 |
|
|
206
207
|
|
|
@@ -224,14 +225,14 @@ printf '{"name": "mylab", "extends": "default"}\n' > themes/mylab/theme.json
|
|
|
224
225
|
node kit/build.mjs examples/minimal/deck.html --theme mylab
|
|
225
226
|
```
|
|
226
227
|
|
|
227
|
-
|
|
228
|
+
テーマは作業フォルダの中(`<作業フォルダ>/themes/<名前>/`)にも置ける。自分のテーマのフォルダにも置ける:`EGATARI_THEMES` にフォルダの並び(区切りは `:`、Windows は `;`)を書くか、`~/.egatari/themes`(シンボリックリンクでもよい)を使う。探す順は 作業フォルダ → その `themes/` → 自分のテーマのフォルダ → 同梱の `themes/`([リファレンス](docs/reference.ja.md#テーマ))。編集アプリでは、自分のテーマのフォルダを 1 回だけ選ぶ(「テーマのフォルダを選ぶ…」。読み込むだけ。[編集アプリ](docs/editor.ja.md))か、テーマを原稿の `themes/` に置く。どちらもなければ、見つからないテーマの名前を言う警告を出して `default` でビルドする。Egatari ファイルは、そのテーマを中に持つ。同梱:`default`(中立)、`business`(中立。ビジネス・ピッチ向けの紺と橙、ロゴなし)、`kokugo`(明朝。国語向け)。機関のテーマとロゴは同梱しない。
|
|
228
229
|
|
|
229
230
|
## サンプル
|
|
230
231
|
|
|
231
232
|
| サンプル | 内容 |
|
|
232
233
|
|---|---|
|
|
233
|
-
| [`examples/minimal`](examples/minimal) | 日本語・6 枚(勾配降下法)。ステップ、KaTeX と `\hlE`、`{mark}`、`data-morph`、`m-sweep
|
|
234
|
-
| [`examples/tmlr2026-calibration`](examples/tmlr2026-calibration) | 英語・14 枚(TMLR 2026
|
|
234
|
+
| [`examples/minimal`](examples/minimal) | 日本語・6 枚(勾配降下法)。ステップ、KaTeX と `\hlE`、`{mark}`、`data-morph`、`m-sweep`、全ステップの台本。作り込んだサンプル(新しいスライドのテンプレートは `npm run new` で作る) |
|
|
235
|
+
| [`examples/tmlr2026-calibration`](examples/tmlr2026-calibration) | 英語・14 枚(TMLR 2026 の論文の紹介)。その作業フォルダだけのパーツ(`components/`)、スクリプトで作ったデータ(`scripts/` `data/`)、英語の TTS(`voice.json`)、テーマ `default` |
|
|
235
236
|
| [`examples/pitch-fictional`](examples/pitch-fictional) | 日本語・10 枚(架空の会社「株式会社レポミル」(報告書の下書きを作る SaaS)のピッチ)。`m-kpi`、`m-flow`(お金の流れと `pulse`)、`m-bars`(軸の広がり)、`m-quad`、`m-market`、テーマ `business`、スクリプトで書いたデータ(`scripts/` `data/`)。社名・製品・数字はすべて架空 |
|
|
236
237
|
| [`examples/kokugo-kanbun`](examples/kokugo-kanbun) | 日本語・11 枚(国語の授業)。`m-menu` の目次(各部へのリンクと「戻る」)、`m-kanbun` の漢文(『史記』、孟浩然「春暁」、杜甫「春望」、『論語』)、`m-kobun` の『枕草子』、`m-gendai` の現代文(サンプルのために書いた文章、縦書き)、テーマ `kokugo` |
|
|
237
238
|
| [`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 |
|
|
@@ -254,7 +255,7 @@ node kit/build.mjs examples/minimal/deck.html --theme mylab
|
|
|
254
255
|
<a id="clone"></a>
|
|
255
256
|
## クローンして使う
|
|
256
257
|
|
|
257
|
-
ここから先は、このリポジトリを clone してツールを動かすときの手順(Studio
|
|
258
|
+
ここから先は、このリポジトリを clone してツールを動かすときの手順(Studio 自体を修正するときや、`node` のスクリプトを直接使うとき)。clone しない使い方は [npm で使う(clone しない)](#npm)。
|
|
258
259
|
|
|
259
260
|
<a id="requirements"></a>
|
|
260
261
|
### 要るもの
|
|
@@ -267,26 +268,26 @@ node kit/build.mjs examples/minimal/deck.html --theme mylab
|
|
|
267
268
|
|
|
268
269
|
**Windows**
|
|
269
270
|
|
|
270
|
-
|
|
271
|
+
インストールしたばかりの Windows には Node.js も Git もない。PowerShell で:
|
|
271
272
|
|
|
272
273
|
```powershell
|
|
273
|
-
winget install OpenJS.NodeJS.LTS Git.Git #
|
|
274
|
+
winget install OpenJS.NodeJS.LTS Git.Git # インストールしたら端末を開き直す
|
|
274
275
|
winget install astral-sh.uv Gyan.FFmpeg # 任意:uv(字を小さくする)・ffmpeg(動画)
|
|
275
276
|
```
|
|
276
277
|
|
|
277
|
-
Edge は最初からあるので、Chrome がなくても品質チェックと PDF は動く。下のコマンドは PowerShell か Git Bash で打つ(`open` は `start` に読み替える)。Git がなければ GitHub から ZIP を落とす(Code → Download ZIP)。読み上げ音声を作る(ステップ 2)には TTS
|
|
278
|
+
Edge は最初からあるので、Chrome がなくても品質チェックと PDF は動く。下のコマンドは PowerShell か Git Bash で打つ(`open` は `start` に読み替える)。Git がなければ GitHub から ZIP を落とす(Code → Download ZIP)。読み上げ音声を作る(ステップ 2)には TTS のサーバーが要る。確認している mlx-audio は Apple silicon の Mac でしか動かない。Windows では、ほかの OpenAI 互換の TTS サーバーを使うか、編集アプリでステップごとに音声を作る・録音する([docs/video.ja.md](docs/video.ja.md#tts-のサーバーmacwindowslinux))。
|
|
278
279
|
|
|
279
280
|
**ブラウザ**
|
|
280
281
|
|
|
281
282
|
- ビルドした HTML の発表:Chrome/Edge 119 以上、Firefox 128 以上、Safari 18 以上(テーマが `--base` から淡色などを導くのに使う CSS の相対色の記法と `color-mix()` に対応しているもの)。それより古いブラウザでも表示はできるが、色はテーマの `--base` から導いたものではなく、既定のテーマから計算した固定の予備の色になる
|
|
282
|
-
- PDF(`tools/pdf.mjs`)・動画(`render/`)・`kit/check.mjs`・テストは Google Chrome(または Playwright の Chromium
|
|
283
|
+
- PDF(`tools/pdf.mjs`)・動画(`render/`)・`kit/check.mjs`・テストは Google Chrome(または Playwright の Chromium)だけで作り、確認している(Edge も同じエンジン)
|
|
283
284
|
|
|
284
285
|
**段 2(動画)**
|
|
285
286
|
|
|
286
287
|
- ffmpeg と ffprobe(`PATH` に置く)
|
|
287
288
|
- uv(`tts/` の小さな Python プロジェクトを動かす)
|
|
288
289
|
- OpenAI 互換の音声合成 API を持つ TTS のサーバー。たとえば [mlx-audio](https://github.com/Blaizzy/mlx-audio) で `mlx-community/Irodori-TTS-v4.1-Small-fp16`(日本語)か `mlx-community/VoxCPM2-8bit`(英語など)を動かす。場所は `IRODORI_URL`(既定 `http://localhost:8882`)。mlx-audio は Apple silicon の Mac でだけ動く。Windows・Linux では[ほかの TTS サーバー](docs/video.ja.md#tts-のサーバーmacwindowslinux)
|
|
289
|
-
- 参照音声:既定の声 `bob` と `alice`(合成した声。日本語と英語)はリポジトリの `tts/voices/` にある([詳しく](tts/voices/README.md))。npm
|
|
290
|
+
- 参照音声:既定の声 `bob` と `alice`(合成した声。日本語と英語)はリポジトリの `tts/voices/` にある([詳しく](tts/voices/README.md))。npm の包みには含めていない。使う声がなければ、初めての `egatari tts` がこのリポジトリの決まったタグから取り寄せ、`tts/voices.json` の sha256 と比べて利用者のキャッシュのフォルダ(macOS は `~/Library/Caches/egatari/voices/`、Linux は `~/.cache/egatari/voices/`、Windows は `%LOCALAPPDATA%\egatari\voices\`)に置く。自分の声は `<名前>.wav` としてそこ(git 管理外)か `IRODORI_REF_DIR` に置く
|
|
290
291
|
|
|
291
292
|
### はじめ方(段 1:スライド)
|
|
292
293
|
|
|
@@ -305,35 +306,35 @@ npm run sheet -- examples/minimal # 全スライドの最
|
|
|
305
306
|
node server/dev.mjs examples/minimal/deck.html # 開発サーバー http://127.0.0.1:8730/(Ctrl+C で止める)
|
|
306
307
|
```
|
|
307
308
|
|
|
308
|
-
####
|
|
309
|
+
#### 自分のスライドを作る
|
|
309
310
|
|
|
310
311
|
```bash
|
|
311
312
|
npm run new -- talks/mytalk --theme default --title "発表の題名"
|
|
312
313
|
npm run build -- talks/mytalk/deck.html # -> talks/mytalk/out/deck.html
|
|
313
|
-
npm run dev -- talks/mytalk/deck.html #
|
|
314
|
+
npm run dev -- talks/mytalk/deck.html # ブラウザで編集する
|
|
314
315
|
npm run check -- talks/mytalk/deck.html # 最後の行が「エラー 0」になればよい
|
|
315
316
|
```
|
|
316
317
|
|
|
317
|
-
`npm run new -- <フォルダ>` は、きれいなテンプレートから `deck.html` と `narration.md` を作る(表紙と、ステップ・数式・強調・パーツの例のスライド。台本は全ステップぶん)。`"componentsCatalogue": "2"` の `egatari.json`
|
|
318
|
+
`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
319
|
|
|
319
|
-
|
|
320
|
+
新しいスライドにはどれも変わらない 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
321
|
|
|
321
|
-
###
|
|
322
|
+
### ブラウザで編集する(開発サーバー)
|
|
322
323
|
|
|
323
|
-
`deck.html`
|
|
324
|
+
`deck.html` を手で開いて書き換える必要はほとんどない。開発サーバーを起動して、スライドの上で編集する。
|
|
324
325
|
|
|
325
326
|
```bash
|
|
326
327
|
node server/dev.mjs path/to/deck.html # http://127.0.0.1:8730/ を開く(Ctrl+C で止める)
|
|
327
328
|
```
|
|
328
329
|
|
|
329
|
-
画面はいつもの発表画面(矢印・`p`・`a` などはそのまま使える)で、編集のツールはその外側に出る。スライドは sandbox
|
|
330
|
+
画面はいつもの発表画面(矢印・`p`・`a` などはそのまま使える)で、編集のツールはその外側に出る。スライドは sandbox の枠の中で動き、「どこを修正したいか」を示すことしかできず、編集のツールで「保存」を押すまで何も書き込まれない。スライドのファイルが変わると自動で読み込み直し、スライドとステップはそのまま残る。
|
|
330
331
|
|
|
331
|
-
1.
|
|
332
|
-
2.
|
|
333
|
-
3.
|
|
334
|
-
4. **元に戻す:** 書き換える前の `deck.html`・`narration.md` は `.cache/edits/`
|
|
332
|
+
1. **文字を編集する:`e` → ダブルクリック。** 編集できる要素に点線の枠が出る。ダブルクリックでその部分の原稿(HTML と `\( … \)` の式)が開くので、編集して ⌘/Ctrl+Enter。`deck.html` のその要素だけが書き換わる
|
|
333
|
+
2. **台本を編集する:`n`。** 右に今のステップの台本が出る。編集して保存(発言の追加・削除・話者の変更もできる)。`narration.md` のそのステップだけが書き換わる
|
|
334
|
+
3. **コメントを保存する:Alt+クリック(Mac は ⌥ option キーを押したままクリック)。** 修正したいことを書く(「この図を大きく」「このスライドを 2 枚に分けて」)。メモは `comments.json` に貯まり、`c` で一覧。AIエージェント(Claude Code・Codex・Gemini CLI など)に「comments.json のメモを反映して」と依頼すると修正され、保存した時点で表示される
|
|
335
|
+
4. **元に戻す:** 書き換える前の `deck.html`・`narration.md` は `.cache/edits/` に保存される(新しい 30 個)
|
|
335
336
|
|
|
336
|
-
| `e
|
|
337
|
+
| `e`+ダブルクリック:原稿を編集 | `n`:台本を編集 | Alt / ⌥ option+クリック:コメント |
|
|
337
338
|
|---|---|---|
|
|
338
339
|
|  |  |  |
|
|
339
340
|
|
|
@@ -344,10 +345,10 @@ node server/dev.mjs path/to/deck.html # http://127.0.0.1:8730/ を開
|
|
|
344
345
|
| 場所 | 中身 |
|
|
345
346
|
|---|---|
|
|
346
347
|
| `docs/contract.ja.md` | 規約(位置と時刻、パーツ、台本、タイムライン、強調、モーフ)。**まずここを読む**([English](docs/contract.md)) |
|
|
347
|
-
| `docs/dev-server.ja.md`、`docs/editor.ja.md`、`docs/video.ja.md`、`docs/distributing.ja.md` |
|
|
348
|
-
| `docs/authoring-with-llms.ja.md` |
|
|
348
|
+
| `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)) |
|
|
349
|
+
| `docs/authoring-with-llms.ja.md` | 対話型の生成AI(ChatGPT・Gemini・Claude など)で初めの下書きを作成する指示。共通の本体(標準パーツ)。セットの指示(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
350
|
| `docs/reference.ja.md` | リファレンス:原稿の記法、台本、長さ、テーマ、キー、URL の引数、すべてのコマンドの選択肢と環境変数([English](docs/reference.md)) |
|
|
350
|
-
| `kit/` | ランタイム(`deck.js` `presenter.js` `tools.js`)、体裁、ビルド、台本の解析、品質チェック、ブラウザの起動。`kit/core/` は Node と編集アプリが共有するビルドの本体、`kit/templates/`
|
|
351
|
+
| `kit/` | ランタイム(`deck.js` `presenter.js` `tools.js`)、体裁、ビルド、台本の解析、品質チェック、ブラウザの起動。`kit/core/` は Node と編集アプリが共有するビルドの本体、`kit/templates/` は新しいスライドのテンプレート |
|
|
351
352
|
| `vendor/components/` | [egatari/components](https://github.com/egatari/components) のリリース(パーツ)のコピー。取り込んだバージョンをすべて残し、既定のバージョンは `components.lock.json` で固定。一覧は `vendor/components/CATALOG.md`。取り込みは `npm run components:update -- vX.Y.Z` |
|
|
352
353
|
| `themes/` | テーマ |
|
|
353
354
|
| `server/` | 開発サーバーとブラウザ上の編集 |
|
|
@@ -355,7 +356,7 @@ node server/dev.mjs path/to/deck.html # http://127.0.0.1:8730/ を開
|
|
|
355
356
|
| `tts/` `render/` | 段 2:TTS(uv のプロジェクト)、動画のエクスポート |
|
|
356
357
|
| `skills/studio/` | ローカル用の Claude Code studio スキル |
|
|
357
358
|
| `plugins/egatari/` | make だけを含む、生成した軽量プラグイン |
|
|
358
|
-
| `tools/` |
|
|
359
|
+
| `tools/` | 新しいスライドのテンプレート(`new.mjs`)、テストと補助(`smoke` `test-*` `shot` `pdf` `get-fonts.mjs`) |
|
|
359
360
|
| `CHANGELOG.md` | バージョンごとの変更(英語) |
|
|
360
361
|
|
|
361
362
|
テスト(Chrome が要る):
|
|
@@ -373,19 +374,19 @@ node tools/test-app.mjs # 編集ア
|
|
|
373
374
|
|
|
374
375
|
## フィードバックと貢献
|
|
375
376
|
|
|
376
|
-
-
|
|
377
|
+
- 再生中のファイルで `?` を押し、「**フィードバックを送信**」を押す(発表者ビューにもある)。バージョン・ブラウザ・OS・言語・モードだけを入れた [フィードバックの form](https://github.com/egatari/egatari-studio/issues/new?template=feedback.yml) が開く。スライドの中身は送信しない。`<html data-feedback="off">` で非表示にできる
|
|
377
378
|
- Claude Code では「感想を送って」と言う。スキルが作業中に困ったことを issue の下書きにまとめ、確認を取ってから作る
|
|
378
|
-
-
|
|
379
|
+
- 新しい図が欲しいときは、まずスライドの中で書く(インライン SVG か、その作業フォルダだけのパーツ)。パーツライブラリに入れたいときは [egatari/components に提案](https://github.com/egatari/components/issues/new?template=proposal.yml)
|
|
379
380
|
- 質問は [Discussions](https://github.com/egatari/egatari-studio/discussions) へ。貢献の仕方は [CONTRIBUTING.ja.md](CONTRIBUTING.ja.md)
|
|
380
381
|
- バージョンごとの変更は [CHANGELOG.md](CHANGELOG.md)(英語)
|
|
381
382
|
|
|
382
383
|
## セキュリティ
|
|
383
384
|
|
|
384
|
-
|
|
385
|
+
Egatari ファイルはコードとして扱う:スライドのスクリプトとパーツは、ブラウザと、品質チェック・エクスポートが使う headless Chrome の中で動き、build は作業フォルダの中のローカルのファイルを読む。信頼できるファイルだけをビルドし、開発サーバーで開くこと。信頼の前提と脆弱性の報告のしかた:[SECURITY.md](SECURITY.md)。
|
|
385
386
|
|
|
386
387
|
## ライセンス
|
|
387
388
|
|
|
388
389
|
- コード:[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`
|
|
390
|
+
- 字: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
391
|
- ロゴ:Egatari のロゴ([assets/logo/](assets/logo/)、編集アプリのファビコンとアイコン)は MIT ライセンスの対象外。Egatari、または Egatari 互換のソフトウェア(Egatari のファイルを読み書きするもの)を指すためなら、手を加えずに使ってよい。[NOTICE](NOTICE) を参照
|
|
391
|
-
- 大学などの機関のロゴは含まない(機関のテーマは 0.4.0 の後に外した。[CHANGELOG.md](CHANGELOG.md)
|
|
392
|
+
- 大学などの機関のロゴは含まない(機関のテーマは 0.4.0 の後に外した。[CHANGELOG.md](CHANGELOG.md))。自分で追加したテーマとそのロゴは、それぞれの条件に従う
|