Compare commits
	
		
			1 Commits
		
	
	
		
			ede5568962
			...
			0fcfaf450c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0fcfaf450c | 
@@ -44,6 +44,8 @@
 | 
			
		||||
              (year_melody (chain-assoc-get 'songinfo:year_melody props #f))
 | 
			
		||||
              (poet-with-year (if (and poet-maybe-with-composer year_text) (string-append poet-maybe-with-composer ", " year_text) poet-maybe-with-composer))
 | 
			
		||||
              (composer-with-year (if (and composer year_melody) (string-append composer ", " year_melody) composer))
 | 
			
		||||
              (poet-and-composer-oneliner (if (and poet-with-year composer-with-year) (markup poet-with-year between-poet-and-composer-markup composer-with-year) #f))
 | 
			
		||||
              (current-line-width (chain-assoc-get 'line-width props (ly:output-def-lookup layout 'line-width)))
 | 
			
		||||
              (string-with-paragraphs->markuplist (lambda (prefix text)
 | 
			
		||||
                (if text
 | 
			
		||||
                  (apply append
 | 
			
		||||
@@ -52,20 +54,16 @@
 | 
			
		||||
                        (make-wordwrap-internal-markup-list #t
 | 
			
		||||
                          #{ \markuplist { $(ly:parser-include-string paragraph) } #}))
 | 
			
		||||
                      (ly:regex-split (ly:make-regex "\n[ \t\n]*\n[ \t\n]*") (string-append prefix text))))
 | 
			
		||||
                  '())))
 | 
			
		||||
              (poet-and-composer-markup-list
 | 
			
		||||
                (string-with-paragraphs->markuplist "" (string-append
 | 
			
		||||
                  (if poet-with-year (string-append "\n\n" poet-with-year) "")
 | 
			
		||||
                  (if composer-with-year (string-append "\n\n" composer-with-year) "")
 | 
			
		||||
                )))
 | 
			
		||||
              (poet-and-composer-oneliner (if (and poet-with-year composer-with-year) (make-line-markup (cons (cadr poet-and-composer-markup-list) (cons between-poet-and-composer-markup (cddr poet-and-composer-markup-list)))) #f))
 | 
			
		||||
              (current-line-width (chain-assoc-get 'line-width props (ly:output-def-lookup layout 'line-width))))
 | 
			
		||||
                  '()))))
 | 
			
		||||
          (stack-lines DOWN 0.0 (chain-assoc-get 'baseline-skip props)
 | 
			
		||||
            (interpret-markup-list layout props
 | 
			
		||||
              (append
 | 
			
		||||
                (if (and poet-and-composer-oneliner (< (interval-length (ly:stencil-extent (interpret-markup layout props poet-and-composer-oneliner) X)) current-line-width))
 | 
			
		||||
                  (list poet-and-composer-oneliner)
 | 
			
		||||
                  poet-and-composer-markup-list)
 | 
			
		||||
                  (string-with-paragraphs->markuplist "" poet-and-composer-oneliner)
 | 
			
		||||
                  (string-with-paragraphs->markuplist "" (string-append
 | 
			
		||||
                    (if poet-with-year (string-append "\n\n" poet-with-year) "")
 | 
			
		||||
                    (if composer-with-year (string-append "\n\n" composer-with-year) "")
 | 
			
		||||
                  )))
 | 
			
		||||
                (string-with-paragraphs->markuplist "" (string-append
 | 
			
		||||
                  (if copyright (string-append "\n\n© " copyright) "")))
 | 
			
		||||
                (string-with-paragraphs->markuplist "" infotext)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user