Each spoken line says whether it is the book's words

This commit is contained in:
gator 2026-09-20 03:49:46 +00:00
parent 7e820a021d
commit 1c54c73075

View file

@ -838,7 +838,9 @@
+ (Number(meta.iteration) > 1 ? ' · revision ' + meta.iteration : '')
+ ' · ' + shots.length + ' shots · '
+ Math.floor(secs / 60) + ':' + String(Math.round(secs % 60)).padStart(2, "0")
+ ' &middot; ' + cast.length + ' characters</p>'
+ ' &middot; ' + cast.length + ' characters'
+ (PKG.book_words ? ' &middot; spoken lines: <b>' + PKG.book_words.quote + '</b> from the book, <b>' + PKG.book_words.close
+ '</b> close to it, <b>' + PKG.book_words["new"] + '</b> written for the trailer' : '') + '</p>'
+ timingHtml();
var probs = draft.problems
@ -1194,6 +1196,11 @@
+ '<div class="say"><span class="who">' + esc(who.name || a.character_id) + '</span> '
+ (a.lip_sync ? '<span class="lip">on camera</span>' : '<span class="vobadge">voice over</span>')
+ '<br>' + esc(a.text || "")
+ (a.from_book ? ' <span title="' + esc(a.from_book.near ? "The book says: " + a.from_book.near : "") + '" style="font-size:11px;border-radius:9px;padding:1px 7px;'
+ (a.from_book.kind === "quote" ? 'background:#e3f3e6;color:#1f7a3a">your words, from the book'
: a.from_book.kind === "close" ? 'background:#fdf1dc;color:#8a5a00">close to the book'
: 'background:#f1e7e2;color:#b4531f">written for the trailer') + '</span>'
+ (a.from_book.near ? '<br><span class="dir">the book: “' + esc(a.from_book.near) + '”</span>' : '') : '')
+ ' <details style="display:inline"><summary style="cursor:pointer;color:var(--muted);font-size:12px;display:inline">change the words or when they are said</summary>'
+ '<input type="text" maxlength="400" style="width:100%;margin:4px 0" data-linetext="' + esc(s.id) + '|' + ai + '" value="' + esc(a.text || "") + '">'
+ (a.lip_sync ? '<label style="display:block;font-size:12px;color:var(--muted);margin:2px 0 4px">Said '