gibt nur noch default style, alles andere in Liederbuchrepos
This commit is contained in:
@@ -3,20 +3,26 @@
|
||||
#(make-on-the-fly-markup
|
||||
(lambda (layout props m)
|
||||
(let ((name (chain-assoc-get 'author:name props #f))
|
||||
(trail_name (chain-assoc-get 'author:trail_name props #f))
|
||||
(birth_year (chain-assoc-get 'author:birth_year props #f))
|
||||
(death_year (chain-assoc-get 'author:death_year props #f))
|
||||
(organization (chain-assoc-get 'author:organization props #f)))
|
||||
(trail_name (chain-assoc-get 'author:trail_name props #f))
|
||||
(birth_year (chain-assoc-get 'author:birth_year props #f))
|
||||
(death_year (chain-assoc-get 'author:death_year props #f))
|
||||
(organization (chain-assoc-get 'author:organization props #f))
|
||||
(string-present (lambda (str) (and str (not (and (string? str) (string-null? str))))))
|
||||
(render_informations (lambda (infolist) (string-append (car infolist) (if (null? (cdr infolist)) "" (string-append " (" (string-join (cdr infolist) ", ") ")")))))
|
||||
)
|
||||
(interpret-markup layout props
|
||||
(string-append
|
||||
name
|
||||
(if trail_name (ly:format " (~a)" trail_name) "")
|
||||
(if (and birth_year death_year)
|
||||
(ly:format ", (~a‒~a)" birth_year death_year)
|
||||
(if birth_year
|
||||
(ly:format ", (*~a)" birth_year)
|
||||
(if death_year (ly:format ", (†~a)" death_year) "")))
|
||||
(if organization (ly:format ", ~a" organization) "")
|
||||
(if (or (string-present trail_name) (string-present name))
|
||||
(render_informations (filter string-present (list
|
||||
trail_name
|
||||
name
|
||||
(if (and (string-present birth_year) (string-present death_year))
|
||||
(ly:format "~a‒~a" birth_year death_year)
|
||||
(if (string-present birth_year)
|
||||
(ly:format "*~a" birth_year)
|
||||
(if (string-present death_year) (ly:format "†~a" death_year) "")))
|
||||
organization
|
||||
)))
|
||||
""
|
||||
))))
|
||||
(make-null-markup)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user