From 3509ac11c07477c86c67aedfed31ed22a18c5022 Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Fri, 15 Oct 2021 00:11:12 +0100 Subject: Correct paths --- rules/rules.go | 60 +++++++--------------------------------------------------- 1 file changed, 7 insertions(+), 53 deletions(-) (limited to 'rules/rules.go') diff --git a/rules/rules.go b/rules/rules.go index ee84dbb..4a86820 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -1,4 +1,4 @@ -// The rules package of Lexington provides the tools around configuration of how a screenplay should look. The default should work but can be adjusted for a personal touch.. +// The rules package of PrintDraftFast provides the tools around configuration of how a draft should look. The default should work but can be adjusted for a personal touch.. package rules type Format struct { @@ -15,10 +15,10 @@ type Format struct { type Set map[string]Format -func (s Set) Get(action string) (f Format) { - f, ok := s[action] +func (s Set) Get(style string) (f Format) { + f, ok := s[style] if !ok { - f = s["action"] + f = s["default"] f.Hide = true } if f.Font == "" { @@ -34,62 +34,16 @@ func (s Set) Get(action string) (f Format) { } var Default = Set{ - "action": { + "default": { Left: 1.5, Right: 1, }, - "speaker": { - Left: 3.7, - Right: 1.5, - }, - "dialog": { - Left: 2.5, - Right: 1.5, - }, - "scene": { - Left: 1.5, - Right: 1, - Style: "b", - }, - "paren": { - Left: 3.1, - Right: 1.5, - }, - "trans": { - Left: 1.5, - Right: 1, - Align: "R", - }, - "note": { - Left: 1.5, - Right: 1, - }, - "allcaps": { - Left: 1.5, - Right: 1, - }, - "empty": { - Left: 1.5, - Right: 1, - }, - "title": { - Left: 1.5, - Right: 1, - Align: "C", - }, - "meta": { - Left: 1.5, - Right: 1, + "h1": { + Size: 2, }, "center": { Left: 1.5, Right: 1, Align: "C", }, - "lyrics": { - Left: 2, - Right: 2, - Style: "i", - Font: "Helvetica", - }, } -- cgit v1.2.3-70-g09d2