Skip to content

選択キャラのセリフを txt で書き出す機能を追加#3

Merged
radish2951 merged 1 commit into
mainfrom
feature/export-dialogue-txt
Jun 6, 2026
Merged

選択キャラのセリフを txt で書き出す機能を追加#3
radish2951 merged 1 commit into
mainfrom
feature/export-dialogue-txt

Conversation

@radish2951

Copy link
Copy Markdown
Owner

概要

選択中のキャラ(ボイス不要でないもの)のセリフを、1 セリフ 1 行のプレーンテキストとして txt で書き出す機能を追加しました。FAB に「txt」ボタンを配置しています。

ポイント

  • 元の台本にある 「」 の中身を変換せずそのまま書き出す要件のため、toZenKaku 変換前の生テキスト rawTextDialogue に追加し、書き出しはこれを参照します(表示用の text は従来どおり全角化済み)
  • 書き出し対象の判定はハイライト条件 isHighlighted を共有し、件数集計・表示・連番付与と同じ基準に統一
  • 書き出しロジックは src/lib/exportDialogue.ts の純粋関数 buildDialogueText / exportFileName に集約し、Vitest でカバー

確認

  • pnpm typecheck / pnpm lint / pnpm test:run(51 passed)/ pnpm build すべて green

🤖 Generated with Claude Code

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 6, 2026

Copy link
Copy Markdown

Deploying script-printer with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1f2999e
Status: ✅  Deploy successful!
Preview URL: https://6c674d17.scriptprinter.pages.dev
Branch Preview URL: https://feature-export-dialogue-txt.scriptprinter.pages.dev

View logs

@radish2951
radish2951 force-pushed the feature/export-dialogue-txt branch from 9fbe569 to 2565bb3 Compare June 6, 2026 04:12
元の台本にある「」の中身を変換せずそのまま書き出すため、Dialogue に
全角化前の生テキスト rawText を持たせ、書き出しは isHighlighted を共有する
純粋関数 buildDialogueText に集約。FAB に txt ボタンを追加した。

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@radish2951
radish2951 force-pushed the feature/export-dialogue-txt branch from 2565bb3 to 1f2999e Compare June 6, 2026 04:13
@radish2951
radish2951 merged commit 89cda44 into main Jun 6, 2026
3 checks passed
@radish2951
radish2951 deleted the feature/export-dialogue-txt branch June 6, 2026 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant