diff options
author | Joop Kiefte <ikojba@gmail.com> | 2020-11-24 20:28:05 +0200 |
---|---|---|
committer | Joop Kiefte <ikojba@gmail.com> | 2020-11-24 20:28:42 +0200 |
commit | d196fe0d713a82945a1427a9f77be39a90087467 (patch) | |
tree | 61c2dfa8541d4982cd1adfb580bef75fe324def8 /rules/rules.go | |
parent | 1e07880757bf8818c711f7563b5939b58d55cf0f (diff) |
Add inline markup support
Diffstat (limited to 'rules/rules.go')
-rw-r--r-- | rules/rules.go | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/rules/rules.go b/rules/rules.go index 67db125..ee84dbb 100644 --- a/rules/rules.go +++ b/rules/rules.go @@ -2,7 +2,7 @@ package rules type Format struct { - Width float64 + Right float64 Left float64 Font string Style string @@ -36,59 +36,59 @@ func (s Set) Get(action string) (f Format) { var Default = Set{ "action": { Left: 1.5, - Width: 6, + Right: 1, }, "speaker": { Left: 3.7, - Width: 6.5-3.7, + Right: 1.5, }, "dialog": { Left: 2.5, - Width: 6.5-2.5, + Right: 1.5, }, "scene": { Left: 1.5, - Width: 6, + Right: 1, Style: "b", }, "paren": { Left: 3.1, - Width: 6.5-3.1, + Right: 1.5, }, "trans": { Left: 1.5, - Width: 6, + Right: 1, Align: "R", }, "note": { Left: 1.5, - Width: 6, + Right: 1, }, "allcaps": { Left: 1.5, - Width: 6, + Right: 1, }, "empty": { Left: 1.5, - Width: 6, + Right: 1, }, "title": { Left: 1.5, - Width: 6, + Right: 1, Align: "C", }, "meta": { Left: 1.5, - Width: 6, + Right: 1, }, "center": { Left: 1.5, - Width: 6, + Right: 1, Align: "C", }, "lyrics": { Left: 2, - Width: 5, + Right: 2, Style: "i", Font: "Helvetica", }, |