From d196fe0d713a82945a1427a9f77be39a90087467 Mon Sep 17 00:00:00 2001 From: Joop Kiefte Date: Tue, 24 Nov 2020 20:28:05 +0200 Subject: Add inline markup support --- rules/rules.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'rules/rules.go') 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", }, -- cgit v1.2.3-70-g09d2