本文へスキップ
レシピ番号61

レシピ集 · 第2章 · 文字と本文

映画脚本の書式

US LetterにCourier Primeの12ptで組む撮影台本。各台詞は台詞ブロックに合わせて内側余白を取った枠なしの囲みにし、各シーンには両側の余白に番号を付けます。

このページの内容
出力
Canvas
レベル
中級
Postext
Postext 1.65.0で検証済み
1.25.0以上が必要
ライセンス
2026年10月11日更新
コードMIT · 本文CC BY 4.0

2〜1ページ · 2〜3/5

  • 英語の見本:日本語版はまだありません
  • 仕上がり215.9 × 279.4 mm
  • 1段
  • Courier Prime 12/12
  • Oswald
  • Special Elite
  • 5ページ
  • レベル
  • Postext 1.57.1
  • 組版時間59 ms
  • コード149行

かんたんな説明

映画会社が求めるとおりの形に組んだ短編映画の脚本です。タイプライター風の書体を使い、台詞とシーン番号は紙の端から決まった距離に置きます。

できあがり

架空の3ページの短編映画『Lost Property』の撮影稿を、スタジオの台本と同じ体裁で綴じます。ゴールデンロッドのカードの表紙に真鍮のブラッド2本とタイプしたラベル、表紙の裏にはCOPY 07のスタンプがあり、続いて脚本本体を、パンチ穴を開けたUS Letterに、Courier Primeの12pt、行送り12ptで組みます。行長は脚本ソフトウェアのものと同じです。ト書きは1.5インチから7.5インチ、台詞は3.7インチに置いた人物名の下に2.5インチから6インチ、括弧書きの演技指示は3.1インチから始まり、CUT TO:とFADE OUT.は右の余白で終わります。各シーン見出しは両側の余白に番号が付きます。脚本の1ページ目には番号を付けず、ほかのページは右上に番号をピリオド付きで刷ります。各台詞は枠のない囲みで、人物名を本文と同じ12ptの行送りに置きます。そのためト書きも台詞も1インチ6行を保ちます。

このレシピが答える質問

  • 脚本や戯曲を組むには(柱書き、役名、左右からインデントしたせりふ)?

手短な答え

script.js · 43〜64行コード全体で見る
// Positions from the left edge of the sheet, in inches, as screenwriting software gives them.
const DIALOGUE = { left: 2.5, right: 6 }; // the block of speech, 3.5 inches wide
const CUE = 3.7; // the character's name
const TEXT_RIGHT = 8.5 - MARGIN.right; // 7.5: where action lines end
const dialogue = {
  id: 'dialogue',
  backgroundEnabled: false, // no fill and no border: the box is only a measure
  padding: { top: pt(0), bottom: pt(0),
    left: mm((DIALOGUE.left - MARGIN.left) * IN), // 1 inch in from the action
    right: mm((TEXT_RIGHT - DIALOGUE.right) * IN) }, // 1.5 inches short of it
  // The fence's title is the cue: title="Dora (cont’d)" prints DORA (CONT’D) at 3.7 inches,
  // in the headings' Courier, with no gap under it (the default is half a line). On the
  // body's 12-pt leading (the default is 1.2 times its size, 14.4 pt), the name sits on a
  // grid line and a speech is a whole number of lines.
  titleStyle: { fontWeight: 400, textTransform: 'uppercase', lineHeight: pt(LEAD),
    indent: mm((CUE - DIALOGUE.left) * IN), gap: pt(0) },
  body: { paragraphSpacing: false }, // no blank line before a parenthetical mid-speech
  marginTop: pt(LEAD), marginBottom: pt(LEAD), // one blank line above and below
  // Snapped to the grid, a box keeps its bottom margin and the next speech adds its top
  // margin: two blank lines between speeches. Unsnapped, the two margins collapse into one.
  snapToGrid: false,
};

材料

併用する機能
ローマ数字の前付け
種類
Courier Prime, Oswald (SIL OFL 1.1) · Special Elite (Apache 2.0)
素材
なし:画像はすべてコードで描画

作り方

#1 · 枠のない囲みを台詞ブロックに合わせてパディングする

コードは上の手短な答えにあります。囲みの内側余白は版面から測るので、左に1インチ、右に1.5インチ取ると、紙の端から2.5インチの位置で始まる3.5インチのブロックが残ります(囲みスタイル)。人物名は囲みの題で、開始行にtitle="Dora (cont’d)"と書きます。textTransformでそれを大文字にし、indentで内側余白からさらに1.2インチ、3.7インチの位置まで動かします。gapは0にします。既定値では名前と台詞のあいだに半em、つまり6ptが空くからです。既定では、囲みの題は文字サイズの1.2倍、ここでは14.4ptの行に置かれます。titleStyle.lineHeightでこれを本文と同じ12ptにすると、名前はグリッドの行に乗り、台詞は12ptの行の整数倍になります。既定値のままだと、台詞はそれぞれ後ろのテキストをさらに2.4ptグリッドから押し出します。snapToGridをオフにすると、ある台詞の下のアキと次の台詞の上のアキが重なって1つの空行になります。囲みは既定で分割されないので、収まらなくなった台詞は名前ごと次のページへ移ります。

#2 · ページをインチで設定する

script.js · 33〜39行コード全体で見る
const MARGIN = { top: 1, bottom: 1, left: 1.5, right: 1 }; // inches: the left one takes the brads
const page = { sizePreset: 'custom', width: mm(8.5 * IN), height: mm(11 * IN), dpi: 150,
  margins: { top: mm(MARGIN.top * IN), bottom: mm(MARGIN.bottom * IN),
    left: mm(MARGIN.left * IN), right: mm(MARGIN.right * IN) } };
const bodyText = { fontFamily: TEXT, fontSize: pt(12), lineHeight: pt(LEAD), color: col('ink'),
  textAlign: 'left', firstLineIndent: pt(0), // action: flush left, never justified
  paragraphSpacing: true }; // a blank line between paragraphs

US Letterで、ブラッドを通す左の余白は1.5インチ、ほかの3辺は1インチです。Courier Primeは等幅の書体で、12ptでは1字の幅が10分の1インチになります。そのためト書きの行は60字、台詞は35字を収め、12ptの行送りでページは54行を収めます。本文は左そろえ(行末不ぞろい)で組み、paragraphSpacingで段落のあいだに空行を入れます。行末不ぞろいのテキストは、bodyText.hyphenation.raggedで求めないかぎりハイフネーションされないので、この書式が求めるとおり、脚本の中で分割される語はありません。

#3 · 括弧書きとトランジションを段落スタイルにする

script.js · 68〜72行コード全体で見る
const PAREN = 3.1;
const paragraphStyles = [
  { id: 'paren', firstLineIndent: mm((PAREN - DIALOGUE.left) * IN) }, // inside a speech
  { id: 'transition', textAlign: 'right' }, // CUT TO:, flush with the action's right edge
];

台詞の中の:::paragraphs{style="paren"}コンテナーは、1行目を台詞の端からさらに0.6インチ、3.1インチの位置まで字下げします(段落スタイル)。括弧書きは1行に収めます。このスタイルが字下げするのは1行目だけだからです。台詞のスタイルのbody.paragraphSpacing: falseは、ト書きの段落の空行を囲みの中に持ち込まないので、(then)は前の行のすぐ下に来ます。CUT TO:とFADE OUT.はtransitionコンテナーに入れ、そのtextAlign: 'right'でト書きの行の終わりにそろえます。コンテナーは最後の段落のあとで流れをベースライングリッドに戻します。この脚本はグリッドを外れないので、CUT TO:のあとの見出しは2行の空行を保ちます。

#4 · シーン番号を両側の余白に置く

script.js · 76〜105行コード全体で見る
// Each number sits in a box half an inch wide, text aligned left, so that 9, 12 and an
// inserted 12A start at the same place on both sides.
const NUMBER_W = 0.5; // inches
const number = (id, edge, x) => ({ kind: 'text', id, content: '{number}', fontFamily: TEXT,
  fontSize: pt(12), fontWeight: 700, lineHeight: 1, color: col('ink'), align: 'left',
  placement: { ...at('container', edge, x * IN), size: { width: mm(NUMBER_W * IN) } } });
// The heading's own text is not painted but still measured: at the level's default 15 pt,
// scene 1's heading would wrap and reserve a second line.
const slugline = { level: 2, fontSize: pt(12), lineHeight: pt(LEAD),
  marginTop: pt(2 * LEAD), marginBottom: pt(LEAD), // two blank lines above, one below
  numberingTemplate: '{2}', // the scene count, which {number} prints
  advancedDesign: { enabled: true, slot: { elements: [
    { kind: 'text', id: 'heading', content: '{titleText}', fontFamily: TEXT, fontSize: pt(12),
      fontWeight: 700, lineHeight: 1, color: col('ink'), align: 'left', overflow: 'wrap',
      placement: { ...at('container', 'top-left'), size: { width: 'fill' } } },
    number('left', 'top-left', -0.6), // starts at 0.9 inches from the edge of the sheet
    number('right', 'top-right', 0.25 + NUMBER_W), // starts a quarter inch past the text
  ] } } };
const headings = {
  // The family of the speech titles, and the one the headings' unpainted text is measured
  // in (left unset, a sixth face, Open Sans Bold, would be loaded for nothing).
  fontFamily: TEXT,
  // Script pages end where the last whole speech or paragraph ends. Balancing would add
  // blank lines above the sluglines to fill them.
  balancing: { enabled: false },
  levels: [
    // 'any': the cover, its inside and the title each open the next page, with no blank.
    { level: 1, breakBefore: { enabled: true, parity: 'any' } },
    slugline,
  ] };

numberingTemplate: '{2}'はレベル2の見出しを数え、{number}はその数をデザインの中に印字します(レベルごとの上書き)。詳細デザインを指定した見出しは、段の中の自分の位置を保ったまま、テキストの代わりに要素を描きます(幅と詳細デザイン)。そのため2つの番号を、太字の見出しの横の余白に置けます。番号はどちらも見出し自身のボックスに固定し、そこから外へ押し出します。左は0.6インチ、右はテキストの終わりから4分の1インチ先です。どちらも幅半インチのボックスにテキストを左そろえで入れるので、シーン9を過ぎた脚本でも、1桁と2桁の番号が同じ位置から始まります。見出し自身のテキストは描かれませんが、測られはします。そこでこのレベルの文字サイズを12ptにしています。既定の15ptでは、シーン1の見出しが折り返して2行目を確保してしまいます。段末そろえはオフです。オンにすると、短いページを埋めるためにシーン見出しの上へ空行が加わります。脚本のページは、最後の台詞や段落が終わるところで終わるものです。

#5 · 脚本のページだけに穴を開け、番号を付ける

script.js · 109〜129行コード全体で見る
// Three holes down the bound edge, 4.25 inches apart, as a three-hole punch leaves them.
const HOLES = [1.25, 5.5, 9.75].map((y) => y * IN); // mm: hole centres from the top
const EDGE = 0.375 * IN; // mm: from the bound edge to the centre of each hole
const HOLE = 7; // mm across
const punched = HOLES.map((y, i) => ({ kind: 'box', id: `punch${i}`,
  style: { backgroundColor: col('hole'), borderRadius: mm(HOLE / 2) },
  placement: { ...at('page', 'top-left', EDGE - HOLE / 2, y - HOLE / 2),
    size: { width: mm(HOLE), height: mm(HOLE) } } }));
// The script's first page opens with its title, an H1 that breaks the page, so the page is
// an 'opener' and pages: 'body' leaves it unnumbered, as the format asks.
const folio = { kind: 'text', id: 'folio', content: '{pageNumber}.', pages: 'body',
  fontFamily: TEXT, fontSize: pt(12), color: col('ink'), align: 'right',
  placement: at('page', 'top-right', -MARGIN.right * IN, 0.5 * IN) };
// The title's style carries the header of its section: the pages from the title to the end.
const title = { id: 'script', header: { elements: [...punched, folio] },
  advancedDesign: { enabled: true, slot: { elements: [
    { kind: 'text', id: 'title', content: '{titleText}', fontFamily: TEXT, fontSize: pt(12),
      lineHeight: 1, textTransform: 'uppercase', color: col('ink'), align: 'center',
      placement: { ...at('container', 'top'), size: { width: 'fill' } } },
  ] } }, // H1's own line, 1.2 × 18 pt, would reserve 21.6 pt and drop FADE IN: 9.6 pt
  lineHeight: pt(LEAD), marginBottom: pt(LEAD) };

脚本の題のスタイルは独自のheaderを指定し、題から最後までのそのセクションのページで、文書のヘッダーを置き換えます(見出しスタイル)。文書自身のヘッダーは空なので、穴とページ番号は脚本にだけ刷られます。ページ番号は紙の上端から半インチの位置に固定し、pages: 'body'で章の最初のページには刷りません(テキスト要素)。題は改ページするレベル1の見出しなので、1ページ目は章の最初のページになり、書式が求めるとおり番号が付きません。表紙もレベル1の見出しです。表紙の裏と題のあいだに:::numbering{startAt=1}を置くと、題のページは1になり、次のページに2が刷られます。題のスタイルは12ptの行を指定します。レベル1自身の18ptでは、見出しは21.6ptの行に乗り、FADE IN:を9.6pt押し下げてしまいます。

レシピの全体

Sandbox
// ═══ Postext Cookbook · Nº 061 · Screenplay format ═══════════════════════════════
// https://postext.dev/en/cookbook/screenplay-format
// Code: MIT · Text: original (CC BY 4.0) · Pictures: none
// Fonts: Courier Prime, Oswald (SIL OFL 1.1), Special Elite (Apache 2.0) · Needs postext ≥ 1.25.0
import { buildDocumentWithFonts, renderPageToCanvas } from 'https://esm.sh/postext';

const LANG = 'en'; // @lang: the language of the sample document ('en' | 'es')
const RECIPE = 'screenplay-format';

// ─── 1 · Design ─────────────────────────────────────────────────────────────
const palette = { // black type on white bond, and a card cover in goldenrod
  ink: '#1b1b1b', // every line of the script
  paper: '#ffffff',
  hole: '#e3e1db', // the punched holes down the left edge of each script page
  card: '#e6b84a', // the cover stock
  cardDark: '#b98a2a', // the label's shadow and the rims of the punched holes
  cardInk: '#4a3510', // the small print on the cover (6.3:1 on the card)
  brass: '#a8812f', // the brads
  brassLight: '#e9cf82', // the glint on each brad
  stamp: '#8f231c', // the draft stamp (4.7:1 on the card)
};
// Every colour is linked to its palette entry by id.
const col = (id) => ({ hex: palette[id], model: 'hex', paletteId: id });
// The engine's defaults link to main-color: pointed at the ink, anything left unset prints black.
const colorPalette = Object.entries({ ...palette, 'main-color': palette.ink })
  .map(([id, hex]) => ({ id, name: id, value: { hex, model: 'hex' } }));
const TEXT = 'Courier Prime';
const IN = 25.4; // mm in an inch: the format is specified in inches
const LEAD = 12; // pt: 12-point Courier at six lines to the inch, so one line is one grid line
const at = (to, edge, x = 0, y = 0) => ({ anchor: { to, edge }, offset: { x: mm(x), y: mm(y) } });

// #region page: US Letter, a 1.5-inch binding margin, Courier 12 on 12, ragged right
const MARGIN = { top: 1, bottom: 1, left: 1.5, right: 1 }; // inches: the left one takes the brads
const page = { sizePreset: 'custom', width: mm(8.5 * IN), height: mm(11 * IN), dpi: 150,
  margins: { top: mm(MARGIN.top * IN), bottom: mm(MARGIN.bottom * IN),
    left: mm(MARGIN.left * IN), right: mm(MARGIN.right * IN) } };
const bodyText = { fontFamily: TEXT, fontSize: pt(12), lineHeight: pt(LEAD), color: col('ink'),
  textAlign: 'left', firstLineIndent: pt(0), // action: flush left, never justified
  paragraphSpacing: true }; // a blank line between paragraphs
// #endregion

// #region answer: a speech is a callout with no frame, padded to the 3.5-inch dialogue block
// Positions from the left edge of the sheet, in inches, as screenwriting software gives them.
const DIALOGUE = { left: 2.5, right: 6 }; // the block of speech, 3.5 inches wide
const CUE = 3.7; // the character's name
const TEXT_RIGHT = 8.5 - MARGIN.right; // 7.5: where action lines end
const dialogue = {
  id: 'dialogue',

組み立てたscript.jsはそのまま動きます。任意のページのモジュールスクリプトに貼り付けるか、レシピをCodePenで開いてください。 GitHub上のレシピのフォルダー ↗ (新しいタブで開きます)

アレンジ

#台詞をグリッドに戻す

こうすると各台詞は下のアキを保ち、次の台詞が上のアキを加えます。台詞のあいだに空行が2行(シーン見出しの前では3行)入り、脚本は4ページ目にはみ出します。

-  snapToGrid: false,
 };

#シーン見出しを標準のウェイトで組む

タイプライターで打った脚本では、シーン見出しは飾りのない大文字でした。太字は脚本ソフトウェアとともに広まったものです。

-  fontSize: pt(12), fontWeight: 700, lineHeight: 1, color: col('ink'), align: 'left',
+  fontSize: pt(12), fontWeight: 400, lineHeight: 1, color: col('ink'), align: 'left',
-      fontWeight: 700, lineHeight: 1, color: col('ink'), align: 'left', overflow: 'wrap',
+      fontWeight: 400, lineHeight: 1, color: col('ink'), align: 'left', overflow: 'wrap',

よくあるつまずき

  • Postextは、ページをまたいで分かれる台詞の下に(MORE)を刷ることも、続きの上に名前を繰り返すこともしません。台詞が丸ごと次のページへ移るよう、keepTogetherは既定値のままにしておきます。
  • 脚本ソフトウェアは名前に(CONT'D)を自動で付けます。ここでは開始行のtitleの一部なので、ト書きの行のあとで人物の台詞が再開する箇所には自分で入力します。
  • titleStyle.lineHeightが台詞をグリッドに保てるのは、本文の行送りと同じ値のときだけです。名前を本文より大きく、または小さく組む場合もこの12ptにします。そうしないと、台詞のたびに後ろの行がグリッドから外れます。

クレジット

レシピ
Ignacio Ferro
本文
書き下ろしの文章, CC BY 4.0
フォント
Courier Prime (SIL OFL 1.1) · Special Elite (Apache 2.0) · Oswald (SIL OFL 1.1)
Sandbox