diff options
author | Joop Kiefte <ikojba@gmail.com> | 2021-10-15 00:11:12 +0100 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2021-10-15 00:11:12 +0100 |
commit | 3509ac11c07477c86c67aedfed31ed22a18c5022 (patch) | |
tree | 63321074fbf189ac093d2015c5765ff5148e7db0 /rules/rules.go | |
parent | 7bf1944b6d142e11886b685da3cb235571264310 (diff) |
Correct paths
Diffstat (limited to 'rules/rules.go')
-rw-r--r-- | rules/rules.go | 60 |
1 files changed, 7 insertions, 53 deletions
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", - }, } |