Skip to content

PDF (Hollywood): left margin should be 1.5" (3.81cm), not 3cm #37

@stultus

Description

@stultus

Problem

Hollywood spec calls for a 1.5″ (3.81cm) left margin. Scriptty uses 3cm (~1.18″), which is ~8mm too narrow. Every downstream indent was tuned against the wrong baseline, so dialogue isn't at 2.5″ from paper edge and character cues aren't at 3.7″.

Current state

  • src-tauri/src/screenplay/pdf.rs:699 — embedded Hollywood left: 3cm
  • src-tauri/src/screenplay/pdf.rs:1546 — standalone Hollywood left: 3cm

Character cue padding pad(left: 6cm), dialogue pad(left: 3.5cm, right: 3cm), parenthetical pad(left: 4.5cm, right: 3.5cm) are all computed relative to the 3cm text box.

Suggested fix

  1. Change page margin to left: 3.81cm.
  2. Reduce each pad(left: ...) by 0.81cm to preserve the intended positions from the page edge:
    • character cue pad(left: 6cm)pad(left: 5.19cm)
    • dialogue pad(left: 3.5cm, right: 3cm)pad(left: 2.69cm, right: 3cm)
    • parenthetical pad(left: 4.5cm, right: 3.5cm)pad(left: 3.69cm, right: 3.5cm)
  3. Update the unit tests in pdf.rs that assert on pad(left: 6cm) etc. (around line 1909+).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions