Scene grouping: a variant set (farmyard ~2) is the same place

This commit is contained in:
gator 2026-09-24 21:34:03 +00:00
parent 84fd6b257d
commit 1d8896e8c4

View file

@ -1480,7 +1480,7 @@
// filmed and current, red when it still needs work - so nobody scrolls // filmed and current, red when it still needs work - so nobody scrolls
// through seventy cards to find one. // through seventy cards to find one.
function hasScenes(shots) { return shots.length > 8 && shots.filter(function (x) { return x.scene; }).length > shots.length / 2; } function hasScenes(shots) { return shots.length > 8 && shots.filter(function (x) { return x.scene; }).length > shots.length / 2; }
function sceneKey(s) { return String(s.place || s.scene || s.setting || "").toLowerCase().replace(/^(int|ext)\.?\s*\/?\s*(int|ext)?\.?\s*/, "").replace(/\s*[-–—]\s*(day|night|dawn|dusk|morning|evening|afternoon|late afternoon|continuous|the storm|the tornado).*$/, "").replace(/[^a-z0-9]+/g, " ").trim(); } function sceneKey(s) { return String(s.place || s.scene || s.setting || "").replace(/\s*~\d+$/, "").toLowerCase().replace(/^(int|ext)\.?\s*\/?\s*(int|ext)?\.?\s*/, "").replace(/\s*[-–—]\s*(day|night|dawn|dusk|morning|evening|afternoon|late afternoon|continuous|the storm|the tornado).*$/, "").replace(/[^a-z0-9]+/g, " ").trim(); }
// Two keys name one place when one begins with the other ("farmyard", // Two keys name one place when one begins with the other ("farmyard",
// "farmyard gravel drive"). And a scene that cuts between the kitchen and // "farmyard gravel drive"). And a scene that cuts between the kitchen and
// the doorstep is ONE scene: a place that comes back within two groups // the doorstep is ONE scene: a place that comes back within two groups