Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 03ce0cfd30 |
@@ -7,7 +7,6 @@
|
|||||||
poetAndComposerEqualPrefix = "Worte und Weise:"
|
poetAndComposerEqualPrefix = "Worte und Weise:"
|
||||||
voicePrefix = "Stimme:"
|
voicePrefix = "Stimme:"
|
||||||
versePrefix = "Strophe:"
|
versePrefix = "Strophe:"
|
||||||
refPrefix = "Refrain:"
|
|
||||||
translationAuthorPrefix = "Übersetzung:"
|
translationAuthorPrefix = "Übersetzung:"
|
||||||
translationPrefix = "Übersetzung:"
|
translationPrefix = "Übersetzung:"
|
||||||
pronunciationPrefix = "Aussprache:"
|
pronunciationPrefix = "Aussprache:"
|
||||||
@@ -40,7 +39,6 @@
|
|||||||
(versePoetData '())
|
(versePoetData '())
|
||||||
(composerIds '())
|
(composerIds '())
|
||||||
(verseComposerData '())
|
(verseComposerData '())
|
||||||
(refComposerIds '())
|
|
||||||
(voiceComposerData '())
|
(voiceComposerData '())
|
||||||
(compositionIds '())
|
(compositionIds '())
|
||||||
(adaptionTextIds '())
|
(adaptionTextIds '())
|
||||||
@@ -50,7 +48,6 @@
|
|||||||
(year_text #f)
|
(year_text #f)
|
||||||
(year_translation #f)
|
(year_translation #f)
|
||||||
(year_melody #f)
|
(year_melody #f)
|
||||||
(year_melody_meloref #f)
|
|
||||||
(year_composition #f)
|
(year_composition #f)
|
||||||
(year_adaption_text #f)
|
(year_adaption_text #f)
|
||||||
(year_adaption_music #f)
|
(year_adaption_music #f)
|
||||||
@@ -63,14 +60,12 @@
|
|||||||
(adaptionTextPrefix "")
|
(adaptionTextPrefix "")
|
||||||
(adaptionMusicPrefix "")
|
(adaptionMusicPrefix "")
|
||||||
(bridgePrefix "")
|
(bridgePrefix "")
|
||||||
(interludePrefix "")
|
(interludePrefix ""))
|
||||||
(refPrefix ""))
|
|
||||||
(if (and
|
(if (and
|
||||||
(equal? poetIds composerIds)
|
(equal? poetIds composerIds)
|
||||||
(null? translatorIds)
|
(null? translatorIds)
|
||||||
(null? versePoetData)
|
(null? versePoetData)
|
||||||
(null? verseComposerData)
|
(null? verseComposerData)
|
||||||
(null? refComposerIds)
|
|
||||||
(null? voiceComposerData)
|
(null? voiceComposerData)
|
||||||
(null? compositionIds)
|
(null? compositionIds)
|
||||||
(null? adaptionTextIds)
|
(null? adaptionTextIds)
|
||||||
@@ -109,7 +104,6 @@
|
|||||||
(null? compositionIds)
|
(null? compositionIds)
|
||||||
(null? adaptionMusicIds)
|
(null? adaptionMusicIds)
|
||||||
(null? verseComposerData)
|
(null? verseComposerData)
|
||||||
(null? refComposerIds)
|
|
||||||
(null? voiceComposerData)
|
(null? voiceComposerData)
|
||||||
(null? bridgeIds)
|
(null? bridgeIds)
|
||||||
(null? interludeIds)) #f
|
(null? interludeIds)) #f
|
||||||
@@ -122,10 +116,6 @@
|
|||||||
year_melody
|
year_melody
|
||||||
) ", ")
|
) ", ")
|
||||||
(render-partial-contribution-group 'versePrefix verseComposerData)
|
(render-partial-contribution-group 'versePrefix verseComposerData)
|
||||||
(join-present (list
|
|
||||||
(render-contribution-group refPrefix refComposerIds)
|
|
||||||
year_melody_meloref
|
|
||||||
) ", ")
|
|
||||||
(render-partial-contribution-group 'voicePrefix voiceComposerData)
|
(render-partial-contribution-group 'voicePrefix voiceComposerData)
|
||||||
(join-present (list
|
(join-present (list
|
||||||
(render-contribution-group compositionPrefix compositionIds)
|
(render-contribution-group compositionPrefix compositionIds)
|
||||||
|
|||||||
@@ -101,7 +101,6 @@
|
|||||||
#:versePoetData (find-author-id-with-part-numbers 'verse authors)
|
#:versePoetData (find-author-id-with-part-numbers 'verse authors)
|
||||||
#:composerIds (find-author-ids-by 'melody authors)
|
#:composerIds (find-author-ids-by 'melody authors)
|
||||||
#:verseComposerData (find-author-id-with-part-numbers 'meloverse authors)
|
#:verseComposerData (find-author-id-with-part-numbers 'meloverse authors)
|
||||||
#:refComposerIds (find-author-ids-by 'meloref authors)
|
|
||||||
#:voiceComposerData (find-author-id-with-part-numbers 'voice authors)
|
#:voiceComposerData (find-author-id-with-part-numbers 'voice authors)
|
||||||
#:compositionIds (find-author-ids-by 'composition authors)
|
#:compositionIds (find-author-ids-by 'composition authors)
|
||||||
#:adaptionTextIds (find-author-ids-by 'adaption_text authors)
|
#:adaptionTextIds (find-author-ids-by 'adaption_text authors)
|
||||||
@@ -111,7 +110,6 @@
|
|||||||
#:year_text (chain-assoc-get 'header:year_text props #f)
|
#:year_text (chain-assoc-get 'header:year_text props #f)
|
||||||
#:year_translation (chain-assoc-get 'header:year_translation props #f)
|
#:year_translation (chain-assoc-get 'header:year_translation props #f)
|
||||||
#:year_melody (chain-assoc-get 'header:year_melody props #f)
|
#:year_melody (chain-assoc-get 'header:year_melody props #f)
|
||||||
#:year_melody_meloref (chain-assoc-get 'header:year_melody_meloref props #f)
|
|
||||||
#:year_composition (chain-assoc-get 'header:year_composition props #f)
|
#:year_composition (chain-assoc-get 'header:year_composition props #f)
|
||||||
#:year_adaption_text (chain-assoc-get 'header:year_adaption_text props #f)
|
#:year_adaption_text (chain-assoc-get 'header:year_adaption_text props #f)
|
||||||
#:year_adaption_music (chain-assoc-get 'header:year_adaption_music props #f)
|
#:year_adaption_music (chain-assoc-get 'header:year_adaption_music props #f)
|
||||||
@@ -125,7 +123,7 @@
|
|||||||
#:adaptionMusicPrefix (ly:output-def-lookup layout 'adaptionMusicPrefix)
|
#:adaptionMusicPrefix (ly:output-def-lookup layout 'adaptionMusicPrefix)
|
||||||
#:bridgePrefix (ly:output-def-lookup layout 'bridgePrefix)
|
#:bridgePrefix (ly:output-def-lookup layout 'bridgePrefix)
|
||||||
#:interludePrefix (ly:output-def-lookup layout 'interludePrefix)
|
#:interludePrefix (ly:output-def-lookup layout 'interludePrefix)
|
||||||
#:refPrefix (ly:output-def-lookup layout 'refPrefix))
|
)
|
||||||
(list #f #f)
|
(list #f #f)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -145,7 +143,7 @@
|
|||||||
(translation (chain-assoc-get 'header:translation props #f))
|
(translation (chain-assoc-get 'header:translation props #f))
|
||||||
(pronunciation (chain-assoc-get 'header:pronunciation props #f))
|
(pronunciation (chain-assoc-get 'header:pronunciation props #f))
|
||||||
(year_text (if (string? (car poet-and-composers)) #f (chain-assoc-get 'header:year_text props #f)))
|
(year_text (if (string? (car poet-and-composers)) #f (chain-assoc-get 'header:year_text props #f)))
|
||||||
(year_melody (if (string? (cadr poet-and-composers)) #f (chain-assoc-get 'header:year_melody props #f))))
|
(year_melody (if (string? (car poet-and-composers)) #f (chain-assoc-get 'header:year_melody props #f))))
|
||||||
(markup
|
(markup
|
||||||
#:override (cons 'songinfo:poet-maybe-with-composer
|
#:override (cons 'songinfo:poet-maybe-with-composer
|
||||||
(if (and poet-maybe-with-composer (not (and (string? poet-maybe-with-composer) (string-null? poet-maybe-with-composer)))) poet-maybe-with-composer #f))
|
(if (and poet-maybe-with-composer (not (and (string? poet-maybe-with-composer) (string-null? poet-maybe-with-composer)))) poet-maybe-with-composer #f))
|
||||||
|
|||||||
@@ -283,14 +283,16 @@ headerToTOC = #(define-music-function (parser location header label) (ly:book? s
|
|||||||
(versePoetData (find-author-id-with-part-numbers 'verse authors))
|
(versePoetData (find-author-id-with-part-numbers 'verse authors))
|
||||||
(composerIds (find-author-ids-by 'melody authors))
|
(composerIds (find-author-ids-by 'melody authors))
|
||||||
(verseComposerData (find-author-id-with-part-numbers 'meloverse authors))
|
(verseComposerData (find-author-id-with-part-numbers 'meloverse authors))
|
||||||
(refComposerIds (find-author-ids-by 'meloref authors))
|
|
||||||
(voiceComposerData (find-author-id-with-part-numbers 'voice authors))
|
(voiceComposerData (find-author-id-with-part-numbers 'voice authors))
|
||||||
(compositionIds (find-author-ids-by 'composition authors))
|
(compositionIds (find-author-ids-by 'composition authors))
|
||||||
(adaptionIds (find-author-ids-by 'adaption authors))
|
(adaptionIds (find-author-ids-by 'adaption authors))
|
||||||
(bridgeIds (find-author-ids-by 'bridge authors))
|
(bridgeIds (find-author-ids-by 'bridge authors))
|
||||||
(interludeIds (find-author-ids-by 'interlude authors)))
|
(interludeIds (find-author-ids-by 'interlude authors))
|
||||||
(delete-duplicates
|
(realAuthorIds (map car AUTHOR_DATA)))
|
||||||
(append poetIds translatorIds (map car versePoetData) composerIds (map car verseComposerData) refComposerIds (map car voiceComposerData) compositionIds adaptionIds bridgeIds interludeIds))
|
(lset-intersection
|
||||||
|
equal?
|
||||||
|
realAuthorIds
|
||||||
|
(append poetIds translatorIds (map car versePoetData) composerIds (map car verseComposerData) (map car voiceComposerData) compositionIds adaptionIds bridgeIds interludeIds))
|
||||||
))
|
))
|
||||||
(let*
|
(let*
|
||||||
(
|
(
|
||||||
@@ -378,7 +380,6 @@ headerToTOC = #(define-music-function (parser location header label) (ly:book? s
|
|||||||
(versePoetData (find-author-id-with-part-numbers 'verse authors))
|
(versePoetData (find-author-id-with-part-numbers 'verse authors))
|
||||||
(composerIds (find-author-ids-by 'melody authors))
|
(composerIds (find-author-ids-by 'melody authors))
|
||||||
(verseComposerData (find-author-id-with-part-numbers 'meloverse authors))
|
(verseComposerData (find-author-id-with-part-numbers 'meloverse authors))
|
||||||
(refComposerIds (find-author-ids-by 'meloref authors))
|
|
||||||
(voiceComposerData (find-author-id-with-part-numbers 'voice authors))
|
(voiceComposerData (find-author-id-with-part-numbers 'voice authors))
|
||||||
(compositionIds (find-author-ids-by 'composition authors))
|
(compositionIds (find-author-ids-by 'composition authors))
|
||||||
(adaptionTextIds (find-author-ids-by 'adaption_text authors))
|
(adaptionTextIds (find-author-ids-by 'adaption_text authors))
|
||||||
@@ -400,7 +401,7 @@ headerToTOC = #(define-music-function (parser location header label) (ly:book? s
|
|||||||
(headervar-or-empty 'categories)
|
(headervar-or-empty 'categories)
|
||||||
(format-authors (append poetIds adaptionTextIds (map car versePoetData)))
|
(format-authors (append poetIds adaptionTextIds (map car versePoetData)))
|
||||||
(format-authors translatorIds)
|
(format-authors translatorIds)
|
||||||
(format-authors (append composerIds compositionIds adaptionMusicIds bridgeIds interludeIds (map car voiceComposerData) (map car verseComposerData) refComposerIds))
|
(format-authors (append composerIds compositionIds adaptionMusicIds bridgeIds interludeIds (map car voiceComposerData) (map car verseComposerData)))
|
||||||
(headervar-or-empty 'year_text)
|
(headervar-or-empty 'year_text)
|
||||||
(headervar-or-empty 'year_melody)
|
(headervar-or-empty 'year_melody)
|
||||||
(headervar-or-empty 'year_translation)
|
(headervar-or-empty 'year_translation)
|
||||||
|
|||||||
Reference in New Issue
Block a user