Communitygithub.com

ShotSketch

Turn a video idea into a filming storyboard: a shot-by-shot script, a hand sketch of pose, angle, props, and on-screen text, and one phone page to film from.

What is ShotSketch?

ShotSketch writes the reel shot by shot in Syrian Arabic, English, German, or French, then draws a sketch for each shot and publishes a single page you can hold while filming. Pose, camera angle, props, and words on screen are decided before the camera rolls.

Works with✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/wajihalkhiami-tech/ShotSketch/tree/HEAD

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

What does ShotSketch do?

Wajih Alkhiami films talking-to-camera reels (computers, phones, AI tools). Before filming he wants one page he can open on his phone: the script split into shots, and for every shot a hand-drawn sketch of how to sit, where the camera is, what is in his hands, and the text that appears on screen. Chat with him in Syrian Shami whatever language the board is in.

1. Topic and language

If he gave the topic, start right away; otherwise ask one short question. Defaults (don't ask): vertical reel 9:16, 25–45 seconds, filmed on his phone at a desk. If he names a length, platform or place, use it.

Board language → lang in the JSON:

  • ar (default): script in Syrian Shami, spoken and simple.
  • en: natural, casual English for Reels/Shorts.
  • de: casual German, "du"-Form, as German creators speak.
  • fr: casual French, "tu". Pick the language he names («بالإنجليزي», "in German", «بالفرنساوي»…). Everything he reads on the page (script, on-screen text, actions, setup tips, shot names, title) is written in that language; the interface labels switch by themselves. If he asks for two languages, make one board per language.

2. Write the script, shot by shot

  • Spoken, short sentences. Each shot 2–7 seconds = one or two sentences.
  • Shot 1 is the hook (≤3 s): a surprise, a promise or a question. Close framing, rays: true, move: "zoom-in".
  • 5–9 shots. Change framing or camera every shot (close → medium → top → wide…), never the same framing twice in a row.
  • Use a top view (view:"top") whenever he shows something on the keyboard, phone screen or paper.
  • Last shot: a clear call to action (save / follow / comment), in the board language.
  • Facts about software (shortcuts, menus, prices) must be correct; search the web when unsure. Use the menu names of that language's software version when they differ.

3. Fill the board JSON

{
  "lang": "ar",
  "title": "ريل: …",
  "platform": "ريلز / شورتس عمودي",
  "setup": ["where to put the phone", "light", "props to prepare", "one filming tip"],
  "shots": [
    {"name":"الهوك","seconds":3,"view":"front","framing":"close","pose":"talk","mood":"surprised","rays":true,
     "onscreen":"ما حدا قلك!","say":"…what he says…","action":"…how to sit / what to do…","move":"zoom-in","edit":"optional editing note"}
  ],
  "footer": "Wajih Alkhiami · ShotSketch"
}

Allowed values (anything else breaks the build):

  • lang: ar · en · de · fr
  • view: front (default) · top (camera above the desk, hands + object only)
  • camera (label only, front view): front · side · low · ots
  • framing (front view): close (face) · medium (half body, default) · wide (whole desk)
  • pose: rest · talk · point (points up at on-screen text) · point-down (points at desk) · phone (holds phone to camera) · laptop (hands on the closed laptop) · hands-up · chin (thinking)
  • mood: smile · surprised · serious · thinking
  • props: laptop-closed · laptop-open · phone · mug · plant · paper
  • move: none · zoom-in · zoom-out · pan-left · pan-right · tilt-down · handheld
  • onscreen: ≤ 16 characters, it is drawn big on the sketch. glasses: true, beard: false are optional. setup is 3–5 practical lines (phone height, light from the window in front, props, film each shot 2–3 times with a second of silence at each end).

4. Build the page

Write the template below to template.html (exactly, it is tested) and the builder to build.py, both in the working folder, then:

python3 build.py board.json storyboard.html

The builder checks language, poses and props and fails with the allowed list; fix the JSON and rerun. If a browser is available, screenshot the page once at phone width (≈420px) and look: sketches drawn, text direction right (Arabic right-to-left, others left-to-right), nothing cut off.

Fonts: Cairo for titles, the spoken line and on-screen text; IBM Plex Sans Arabic for body text (both cover Latin too). Keep them; Wajih found decorative fonts hard to read.

Publish storyboard.html as an artifact titled «ShotSketch · », icon video. Each shot has a checkbox he ticks while filming (saved in his browser only).

5. Reply

Two or three lines in Shami: topic, language, number of shots, total seconds, and that after filming he can send the clips and you'll edit them. Don't repeat the script in chat.

Builder: build.py

#!/usr/bin/env python3
"""Fill the storyboard template with a board JSON.
Usage: python3 build.py board.json out.html
"""
import json, sys, pathlib, html

here = pathlib.Path(__file__).resolve().parent
tpl = (here / "template.html").read_text(encoding="utf-8")
board = json.loads(pathlib.Path(sys.argv[1]).read_text(encoding="utf-8"))

LANGS = {"ar", "en", "de", "fr"}
if board.get("lang", "ar") not in LANGS:
    sys.exit(f"unknown lang {board.get('lang')} (use {sorted(LANGS)})")
POSES = {"rest", "point", "point-down", "talk", "phone", "laptop", "hands-up", "chin"}
PROPS = {"laptop", "laptop-open", "laptop-closed", "phone", "mug", "plant", "paper"}
for i, s in enumerate(board["shots"], 1):
    if s.get("pose", "rest") not in POSES:
        sys.exit(f"shot {i}: unknown pose {s.get('pose')} (use {sorted(POSES)})")
    bad = set(s.get("props", [])) - PROPS
    if bad:
        sys.exit(f"shot {i}: unknown props {bad} (use {sorted(PROPS)})")

data = json.dumps(board, ensure_ascii=False).replace("</", "<\\/")
out = tpl.replace("__BOARD_JSON__", data).replace("__TITLE__", html.escape(board["title"]))
pathlib.Path(sys.argv[2]).write_text(out, encoding="utf-8")
print("ok", sys.argv[2], len(board["shots"]), "shots")

Template: template.html

<!DOCTYPE html>
<html lang="ar" dir="rtl">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>__TITLE__</title>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cairo:wght@600;800;900&family=IBM+Plex+Sans+Arabic:wght@400;500;700&display=swap">
<style>
  :root{color-scheme:light;--paper:#f6f1e7;--ink:#1d1d1f;--accent:#f08a3c;--blue:#2c5fa8;--card:#fffdf8;--muted:#7a7266}
  *{box-sizing:border-box}
  body{margin:0;background:var(--paper);color:var(--ink);font-family:"IBM Plex Sans Arabic","Cairo","Tajawal",system-ui,sans-serif;line-height:1.75;font-size:16px}
  header{padding:22px 18px 8px;max-width:760px;margin:auto}
  h1,h2,h3,.num,.say,.ost{font-family:"Cairo","IBM Plex Sans Arabic",system-ui,sans-serif}
  h1{font-size:26px;margin:0 0 4px;line-height:1.4}
  .meta{color:var(--muted);font-size:14px}
  .box{background:var(--card);border:2px solid var(--ink);border-radius:14px;padding:12px 14px;margin:14px 0;box-shadow:4px 4px 0 var(--ink)}
  .box h2{font-size:17px;margin:0 0 6px}
  .box ul{margin:0;padding-inline-start:20px}
  main{max-width:760px;margin:auto;padding:0 14px 40px}
  .shot{background:var(--card);border:2px solid var(--ink);border-radius:16px;margin:22px 0;box-shadow:5px 5px 0 var(--ink);overflow:hidden}
  .shot.done{opacity:.55}
  .shot-head{display:flex;align-items:center;gap:10px;padding:10px 14px;border-bottom:2px dashed #cfc6b6}
  .num{background:var(--accent);color:#fff;font-weight:900;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;flex:none}
  .shot-head h3{margin:0;font-size:17px;flex:1}
  .dur{font-size:13px;color:var(--muted);white-space:nowrap}
  .shot-body{display:grid;grid-template-columns:minmax(150px,210px) 1fr;gap:14px;padding:14px}
  @media(max-width:520px){.shot-body{grid-template-columns:1fr}.sketch{max-width:240px;margin:auto}}
  .sketch svg{width:100%;height:auto;display:block;background:#fff;border:2px solid var(--ink);border-radius:10px}
  .chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;justify-content:center}
  .chip{font-size:13px;background:#efe7d8;border-radius:20px;padding:2px 10px}
  .say{font-size:18px;font-weight:700;background:#fff6ea;border-inline-start:5px solid var(--accent);padding:8px 12px;border-radius:8px}
  .label{font-size:12px;color:var(--muted);margin-top:10px}
  .ost{font-weight:800;color:var(--blue)}
  .tip{font-size:16px}
  label.check{display:flex;gap:8px;align-items:center;margin-top:12px;font-size:14px;cursor:pointer}
  label.check input{width:20px;height:20px;accent-color:var(--accent)}
  footer{text-align:center;color:var(--muted);font-size:12px;padding-bottom:30px}
</style>
</head>
<body>
<header>
  <h1 id="t"></h1>
  <div class="meta" id="m"></div>
  <div class="box" id="setup"></div>
</header>
<main id="shots"></main>
<footer id="f"></footer>

<script>
/* ======== DATA: Claude fills ONLY this object ======== */
const BOARD = __BOARD_JSON__;
/* ===================================================== */

const NS="http://www.w3.org/2000/svg";
const W=270,H=480,CX=135;
const ink="#1d1d1f",accent="#f08a3c";
function el(tag,attrs,parent){const e=document.createElementNS(NS,tag);for(const k in attrs)e.setAttribute(k,attrs[k]);if(parent)parent.appendChild(e);return e}
function path(g,d,o={}){return el("path",{d,fill:o.fill||"none",stroke:o.stroke||ink,"stroke-width":o.w||3,"stroke-linecap":"round","stroke-linejoin":"round",...(o.dash?{"stroke-dasharray":o.dash}:{})},g)}

function rays(g,cx,cy){
  for(let i=0;i<9;i++){
    const a=Math.PI*(1+i/8);const r1=58,r2=r1+30+(i%2)*14;
    path(g,`M${cx+Math.cos(a)*r1},${cy+Math.sin(a)*r1} L${cx+Math.cos(a)*r2},${cy+Math.sin(a)*r2}`,{stroke:accent,w:10});
  }
}
function head(g,cx,cy,o){
  const r=32;
  el("circle",{cx,cy,r,fill:"#fff",stroke:ink,"stroke-width":3},g);
  path(g,`M${cx-r+2},${cy-8} Q${cx-r+4},${cy-r-10} ${cx},${cy-r-6} Q${cx+r-4},${cy-r-10} ${cx+r-2},${cy-8} Q${cx+12},${cy-r+4} ${cx-r+2},${cy-8}`,{fill:ink,w:2});
  if(o.beard!==false)path(g,`M${cx-r+3},${cy+4} Q${cx-r+6},${cy+r+12} ${cx},${cy+r+12} Q${cx+r-6},${cy+r+12} ${cx+r-3},${cy+4}`,{w:3});
  el("circle",{cx:cx-11,cy:cy-2,r:2.6,fill:ink},g);el("circle",{cx:cx+11,cy:cy-2,r:2.6,fill:ink},g);
  if(o.glasses){el("circle",{cx:cx-11,cy:cy-2,r:8,fill:"none",stroke:ink,"stroke-width":2},g);el("circle",{cx:cx+11,cy:cy-2,r:8,fill:"none",stroke:ink,"stroke-width":2},g);path(g,`M${cx-3},${cy-2} L${cx+3},${cy-2}`,{w:2})}
  const mood=o.mood||"smile";
  if(mood==="smile")path(g,`M${cx-10},${cy+12} Q${cx},${cy+21} ${cx+10},${cy+12}`,{w:2.5});
  else if(mood==="surprised")el("ellipse",{cx,cy:cy+15,rx:5,ry:7,fill:"none",stroke:ink,"stroke-width":2.5},g);
  else if(mood==="serious")path(g,`M${cx-9},${cy+15} L${cx+9},${cy+15}`,{w:2.5});
  else if(mood==="thinking"){path(g,`M${cx-8},${cy+15} Q${cx+2},${cy+11} ${cx+9},${cy+16}`,{w:2.5});path(g,`M${cx-17},${cy-14} L${cx-5},${cy-11}`,{w:2})}
}
function body(g,cx,y){ // y = shoulder line
  path(g,`M${cx-8},${y-16} L${cx-8},${y-4} M${cx+8},${y-16} L${cx+8},${y-4}`,{w:2.5});
  path(g,`M${cx-78},${y+95} Q${cx-74},${y+6} ${cx-22},${y-4} L${cx+22},${y-4} Q${cx+74},${y+6} ${cx+78},${y+95}`,{fill:"#fff"});
  path(g,`M${cx-14},${y-4} L${cx},${y+16} L${cx+14},${y-4}`,{w:2.5});
}
function hand(g,x,y){el("ellipse",{cx:x,cy:y,rx:10,ry:8,fill:"#fff",stroke:ink,"stroke-width":3},g)}
function phone(g,x,y,s=1){el("rect",{x:x-11*s,y:y-19*s,width:22*s,height:38*s,rx:4*s,fill:"#fff",stroke:ink,"stroke-width":3},g);path(g,`M${x-4*s},${y+14*s} L${x+4*s},${y+14*s}`,{w:2})}
function arms(g,cx,y,pose,tableY){
  const Ls=[cx-58,y+14],Rs=[cx+58,y+14];
  const rest=(s,hx)=>{path(g,`M${s[0]},${s[1]} Q${s[0]+(hx<cx?-12:12)},${tableY-30} ${hx},${tableY-4}`);hand(g,hx,tableY-4)};
  switch(pose){
    case "point": rest(Ls,cx-48);
      path(g,`M${Rs[0]},${Rs[1]} L${cx+92},${y-30} L${cx+104},${y-78}`);hand(g,cx+104,y-84);path(g,`M${cx+106},${y-92} L${cx+112},${y-112}`,{w:4});break;
    case "point-down": rest(Ls,cx-48);
      path(g,`M${Rs[0]},${Rs[1]} Q${cx+70},${tableY-20} ${cx+40},${tableY+4}`);hand(g,cx+40,tableY+6);path(g,`M${cx+34},${tableY+12} L${cx+26},${tableY+26}`,{w:4});break;
    case "talk": rest(Ls,cx-48);
      path(g,`M${Rs[0]},${Rs[1]} Q${cx+86},${y+60} ${cx+60},${y+38}`);el("ellipse",{cx:cx+56,cy:y+30,rx:11,ry:13,fill:"#fff",stroke:ink,"stroke-width":3},g);
      path(g,`M${cx+76},${y+18} l8,-6 M${cx+78},${y+30} l10,0`,{w:2.5,stroke:accent});break;
    case "phone":
      path(g,`M${Ls[0]},${Ls[1]} Q${cx-50},${y+70} ${cx-20},${y+52}`);path(g,`M${Rs[0]},${Rs[1]} Q${cx+50},${y+70} ${cx+20},${y+52}`);
      phone(g,cx,y+40,1.2);hand(g,cx-18,y+54);hand(g,cx+18,y+54);break;
    case "laptop": path(g,`M${Ls[0]},${Ls[1]} Q${cx-84},${tableY-10} ${cx-64},${tableY+22}`);hand(g,cx-64,tableY+24);path(g,`M${Rs[0]},${Rs[1]} Q${cx+84},${tableY-10} ${cx+64},${tableY+22}`);hand(g,cx+64,tableY+24);break;
    case "hands-up":
      path(g,`M${Ls[0]},${Ls[1]} L${cx-92},${y-20} L${cx-96},${y-60}`);hand(g,cx-96,y-66);
      path(g,`M${Rs[0]},${Rs[1]} L${cx+92},${y-20} L${cx+96},${y-60}`);hand(g,cx+96,y-66);break;
    case "chin": rest(Ls,cx-48);
      path(g,`M${Rs[0]},${Rs[1]} Q${cx+60},${y+40} ${cx+26},${y-14}`);hand(g,cx+24,y-18);break;
    default: rest(Ls,cx-48);rest(Rs,cx+48);
  }
}
function table(g,y){path(g,`M-300,${y} L${W+300},${y} L${W+300},${H+300} L-300,${H+300} Z`,{fill:"#efe7d8",w:0});path(g,`M-300,${y} L${W+300},${y}`,{w:3.5})}
function laptopClosed(g,cx,y){path(g,`M${cx-70},${y+12} L${cx+70},${y+12} L${cx+86},${y+34} L${cx-86},${y+34} Z`,{fill:"#d9d4cc"});el("circle",{cx,cy:y+23,r:4,fill:ink},g)}
function laptopOpen(g,cx,y){path(g,`M${cx-70},${y-66} L${cx+70},${y-66} L${cx+70},${y+6} L${cx-70},${y+6} Z`,{fill:"#d9d4cc"});el("circle",{cx,cy:y-30,r:5,fill:ink},g);path(g,`M${cx-84},${y+6} L${cx+84},${y+6} L${cx+92},${y+16} L${cx-92},${y+16} Z`,{fill:"#bdb6aa"})}
function mug(g,x,y){path(g,`M${x-12},${y-26} L${x+12},${y-26} L${x+10},${y} L${x-10},${y} Z`,{fill:"#fff"});path(g,`M${x+12},${y-20} q10,4 0,12`,{w:2.5});path(g,`M${x-4},${y-34} q-3,-6 0,-10 M${x+4},${y-34} q-3,-6 0,-10`,{w:2,stroke:"#999"})}
function plant(g,x,y){path(g,`M${x-12},${y-20} L${x+12},${y-20} L${x+9},${y} L${x-9},${y} Z`,{fill:"#fff"});path(g,`M${x},${y-20} q-14,-20 -4,-40 M${x},${y-20} q12,-18 6,-36 M${x},${y-20} q-2,-24 2,-30`,{w:2.5,stroke:"#4a8a4a"})}
function paper(g,x,y){path(g,`M${x-22},${y-30} L${x+18},${y-30} L${x+24},${y-22} L${x+24},${y} L${x-22},${y} Z`,{fill:"#fff",w:2.5});for(let i=0;i<3;i++)path(g,`M${x-14},${y-20+i*7} L${x+14},${y-20+i*7}`,{w:1.5})}

function topView(g,s){
  path(g,`M0,0 L${W},0 L${W},${H} L0,${H} Z`,{fill:"#efe7d8",w:0});
  const p=s.props||[];
  if(p.includes("laptop-open")||p.includes("laptop"))path(g,`M${CX-80},150 L${CX+80},150 L${CX+80},260 L${CX-80},260 Z`,{fill:"#d9d4cc"});
  else if(p.includes("laptop-closed"))path(g,`M${CX-80},140 L${CX+80},140 L${CX+80},250 L${CX-80},250 Z`,{fill:"#d9d4cc"});
  if(p.includes("phone"))phone(g,CX,200,2);
  if(p.includes("paper"))paper(g,CX,230);
  if(p.includes("mug"))el("circle",{cx:CX+95,cy:110,r:20,fill:"#fff",stroke:ink,"stroke-width":3},g);
  path(g,`M${CX-110},${H+10} Q${CX-90},360 ${CX-55},300`,{w:3});hand(g,CX-52,292);
  path(g,`M${CX+110},${H+10} Q${CX+90},360 ${CX+55},300`,{w:3});hand(g,CX+52,292);
}

function frontView(g,s){
  const shoulder=250,tableY=345;
  const p=s.props||[];
  if(s.rays)rays(g,CX,170);
  if(p.includes("plant"))plant(g,40,tableY-2);
  head(g,CX,170,s);
  body(g,CX,shoulder);
  table(g,tableY);
  if(p.includes("laptop-open"))laptopOpen(g,CX,tableY);
  const lc=p.includes("laptop-closed")||p.includes("laptop");
  if(lc)laptopClosed(g,CX,tableY);
  arms(g,CX,shoulder,s.pose||"rest",tableY);
  if(p.includes("phone")&&s.pose!=="phone")phone(g,CX+95,tableY+36,0.9);
  if(p.includes("mug"))mug(g,CX-100,tableY+40);
  if(p.includes("paper"))paper(g,CX+20,tableY+52);
}

function moveMarks(svg,move){
  const g=el("g",{},svg);const o={stroke:accent,w:4};
  if(move==="zoom-in"){[[22,96,1,1],[W-22,96,-1,1],[22,H-22,1,-1],[W-22,H-22,-1,-1]].forEach(([x,y,a,b])=>{path(g,`M${x},${y} l${26*a},${26*b}`,o);path(g,`M${x+26*a},${y+26*b} l${-10*a},0 M${x+26*a},${y+26*b} l0,${-10*b}`,o)})}
  else if(move==="zoom-out"){[[48,48,-1,-1],[W-48,48,1,-1],[48,H-48,-1,1],[W-48,H-48,1,1]].forEach(([x,y,a,b])=>{path(g,`M${x},${y} l${20*a},${20*b}`,o);path(g,`M${x+20*a},${y+20*b} l${-10*a},0 M${x+20*a},${y+20*b} l0,${-10*b}`,o)})}
  else if(move==="pan-left"||move==="pan-right"){const d=move==="pan-left"?-1:1;path(g,`M${CX-60*d},${H-30} L${CX+60*d},${H-30}`,o);path(g,`M${CX+60*d},${H-30} l${-14*d},-10 M${CX+60*d},${H-30} l${-14*d},10`,o)}
  else if(move==="tilt-down"){path(g,`M${W-26},60 L${W-26},170`,o);path(g,`M${W-26},170 l-10,-14 M${W-26},170 l10,-14`,o)}
  else if(move==="handheld"){path(g,`M20,${H-34} q10,-10 20,0 t20,0 t20,0`,o)}
}

function drawShot(s){
  const svg=el("svg",{viewBox:`0 0 ${W} ${H}`,xmlns:NS});
  const defs=el("defs",{},svg);
  const f=el("filter",{id:"rough"+s.n,x:"-5%",y:"-5%",width:"110%",height:"110%"},defs);
  el("feTurbulence",{type:"fractalNoise",baseFrequency:"0.035",numOctaves:"2",seed:String(s.n*7),result:"n"},f);
  el("feDisplacementMap",{in:"SourceGraphic",in2:"n",scale:"3"},f);
  const clip=el("clipPath",{id:"c"+s.n},defs);el("rect",{x:0,y:0,width:W,height:H},clip);
  const outer=el("g",{"clip-path":`url(#c${s.n})`},svg);
  const g=el("g",{filter:`url(#rough${s.n})`},outer);
  const fr=s.framing||"medium";
  if(s.view==="top"){topView(g,s)}
  else{
    const inner=el("g",{},g);
    if(fr==="close")inner.setAttribute("transform",`translate(${CX},${235}) scale(1.75) translate(${-CX},${-185})`);
    else if(fr==="wide")inner.setAttribute("transform",`translate(${CX},${300}) scale(.72) translate(${-CX},${-260})`);
    frontView(inner,s);
  }
  if(s.onscreen){
    const ltr=LANG!=="ar"||/^[\x00-\x7F]*$/.test(s.onscreen);const t=el("text",{x:CX,y:62,direction:ltr?"ltr":"rtl","unicode-bidi":"plaintext","text-anchor":"middle","font-size":s.onscreen.length>14?22:28,"font-weight":"900",fill:"#fff",stroke:ink,"stroke-width":5,"paint-order":"stroke","font-family":"Cairo,'IBM Plex Sans Arabic',sans-serif"},outer);
    t.textContent=s.onscreen;
  }
  moveMarks(outer,s.move);
  return svg;
}

const LANG=(BOARD.lang||"ar").slice(0,2);
const T={
 ar:{dir:"rtl",cam:{front:"الكاميرا من قدّام",top:"الكاميرا من فوق",side:"الكاميرا من الجنب",low:"الكاميرا من تحت لفوق",ots:"من ورا الكتف"},fr:{close:"لقطة قريبة (وجه)",medium:"لقطة متوسطة (لنص الجسم)",wide:"لقطة بعيدة (كل القعدة)"},mv:{"zoom-in":"زوم لجوّا","zoom-out":"زوم لبرّا","pan-left":"حركة لليسار","pan-right":"حركة لليمين","tilt-down":"نزول لتحت",handheld:"باليد",none:"ثابتة"},shots:"لقطات",about:"حوالي",sec:"ثانية",s:"ث",setup:"قبل ما تبلّش",say:"شو بتحكي",ost:"النص ع الشاشة",act:"كيف تقعد وشو تعمل",edit:"بالمونتاج",done:"صوّرتها"},
 en:{dir:"ltr",cam:{front:"Camera in front",top:"Camera from above",side:"Camera from the side",low:"Low angle",ots:"Over the shoulder"},fr:{close:"Close-up (face)",medium:"Medium shot (waist up)",wide:"Wide shot (whole desk)"},mv:{"zoom-in":"Zoom in","zoom-out":"Zoom out","pan-left":"Pan left","pan-right":"Pan right","tilt-down":"Tilt down",handheld:"Handheld",none:"Static"},shots:"shots",about:"about",sec:"seconds",s:"s",setup:"Before you start",say:"What you say",ost:"On-screen text",act:"How to sit & what to do",edit:"In the edit",done:"Filmed"},
 de:{dir:"ltr",cam:{front:"Kamera von vorne",top:"Kamera von oben",side:"Kamera von der Seite",low:"Untersicht",ots:"Über die Schulter"},fr:{close:"Nahaufnahme (Gesicht)",medium:"Halbnah (ab Hüfte)",wide:"Totale (ganzer Tisch)"},mv:{"zoom-in":"Reinzoomen","zoom-out":"Rauszoomen","pan-left":"Schwenk links","pan-right":"Schwenk rechts","tilt-down":"Nach unten neigen",handheld:"Aus der Hand",none:"Statisch"},shots:"Einstellungen",about:"ca.",sec:"Sekunden",s:"s",setup:"Bevor du anfängst",say:"Was du sagst",ost:"Text im Bild",act:"Wie du sitzt & was du tust",edit:"Im Schnitt",done:"Gedreht"},
 fr:{dir:"ltr",cam:{front:"Caméra de face",top:"Caméra au-dessus",side:"Caméra de côté",low:"Contre-plongée",ots:"Par-dessus l’épaule"},fr:{close:"Gros plan (visage)",medium:"Plan taille",wide:"Plan large (tout le bureau)"},mv:{"zoom-in":"Zoom avant","zoom-out":"Zoom arrière","pan-left":"Panoramique gauche","pan-right":"Panoramique droite","tilt-down":"Bascule vers le bas",handheld:"Caméra à l’épaule",none:"Fixe"},shots:"plans",about:"environ",sec:"secondes",s:"s",setup:"Avant de commencer",say:"Ce que tu dis",ost:"Texte à l’écran",act:"Position & action",edit:"Au montage",done:"Tourné"}
}[LANG]||null;
const L=T||{};const CAM=L.cam,FR=L.fr,MV=L.mv;
document.documentElement.lang=LANG;document.documentElement.dir=L.dir;

function store(k,v){try{if(v===undefined)return localStorage.getItem(k);localStorage.setItem(k,v)}catch(e){return null}}

document.getElementById("t").textContent=BOARD.title;
document.title=BOARD.title;
const total=BOARD.shots.reduce((a,s)=>a+(s.seconds||0),0);
document.getElementById("m").textContent=`${BOARD.shots.length} ${L.shots} · ${L.about} ${total} ${L.sec}${BOARD.platform?" · "+BOARD.platform:""}`;
const setup=document.getElementById("setup");
const h2=document.createElement("h2");h2.textContent=L.setup;setup.appendChild(h2);
const ul=document.createElement("ul");(BOARD.setup||[]).forEach(x=>{const li=document.createElement("li");li.textContent=x;ul.appendChild(li)});setup.appendChild(ul);
document.getElementById("f").textContent=BOARD.footer||"";

const main=document.getElementById("shots");
BOARD.shots.forEach((s,i)=>{
  s.n=i+1;
  const card=document.createElement("section");card.className="shot";
  const key="sb:"+BOARD.title+":"+s.n;
  if(store(key)==="1")card.classList.add("done");
  card.innerHTML=`<div class="shot-head"><div class="num">${s.n}</div><h3></h3><div class="dur">${s.seconds||"?"} ${L.s}</div></div>
  <div class="shot-body"><div class="sketch"></div><div class="info"></div></div>`;
  card.querySelector("h3").textContent=s.name||"";
  const sk=card.querySelector(".sketch");sk.appendChild(drawShot(s));
  const chips=document.createElement("div");chips.className="chips";
  [CAM[s.view==="top"?"top":(s.camera||"front")],s.view==="top"?null:FR[s.framing||"medium"],MV[s.move||"none"]].filter(Boolean).forEach(c=>{const d=document.createElement("span");d.className="chip";d.textContent=c;chips.appendChild(d)});
  sk.appendChild(chips);
  const info=card.querySelector(".info");
  const add=(cls,label,txt)=>{if(!txt)return;const l=document.createElement("div");l.className="label";l.textContent=label;info.appendChild(l);const d=document.createElement("div");d.className=cls;d.dir="auto";d.textContent=txt;info.appendChild(d)};
  add("say",L.say,s.say);
  add("ost",L.ost,s.onscreen);
  add("tip",L.act,s.action);
  add("tip",L.edit,s.edit);
  const lab=document.createElement("label");lab.className="check";lab.innerHTML=`<input type="checkbox"> <span></span>`;lab.querySelector("span").textContent=L.done;
  const cb=lab.querySelector("input");cb.checked=card.classList.contains("done");
  cb.onchange=()=>{card.classList.toggle("done",cb.checked);store(key,cb.checked?"1":"0")};
  info.appendChild(lab);
  main.appendChild(card);
});
</script>
</body>
</html>

Related Skills