From a596a34d9582311d72825430b8705db50acf6eb1 Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Tue, 1 Jan 2019 02:55:59 +0100 Subject: Improving fountain support. Still not perfect, but steadily improving --- rules/rules.go | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'rules') diff --git a/rules/rules.go b/rules/rules.go index 030fcb0..775142f 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -1,12 +1,12 @@ package rules -type Format struct{ +type Format struct { Width float64 - Left float64 - Font string + Left float64 + Font string Style string - Size float64 - Hide bool + Size float64 + Hide bool Align string } @@ -31,51 +31,51 @@ func (s Set) Get(action string) (f Format) { } var Default = Set{ - "action": { - Left: 1.5, + "action": { + Left: 1.5, Width: 6, }, "speaker": { - Left: 4.2, + Left: 4.2, Width: 3.3, }, - "dialog": { - Left: 2.9, + "dialog": { + Left: 2.9, Width: 3.3, }, - "scene": { - Left: 1.5, + "scene": { + Left: 1.5, Width: 6, Style: "b", }, - "paren": { - Left: 3.6, + "paren": { + Left: 3.6, Width: 4, }, - "trans": { - Left: 1.5, + "trans": { + Left: 1.5, Width: 6, Align: "R", }, - "note": { - Left: 1.5, + "note": { + Left: 1.5, Width: 6, }, "allcaps": { - Left: 1.5, + Left: 1.5, Width: 6, }, "empty": { - Left: 1.5, + Left: 1.5, Width: 6, }, "title": { - Left: 1.5, + Left: 1.5, Width: 6, Align: "C", }, "meta": { - Left: 1.5, + Left: 1.5, Width: 3, }, } -- cgit v1.2.3-70-g09d2