Hi Timothy,
thanks again! That's my solution now:
includeoptional = #(define-scheme-function (fname) (string?)
(if (ly:find-file fname)
(ly:parser-include-string (format "\\include \"~a\"" fname))
(display (format "File ~a could not be included" fname))))
>From a quick test, this does what I want:
- Include a stylesheet if it is available and silently ignore it if not
(a warning is shown without alerting lilypond)
- For my case it's enough, if a user bothers to take my stylesheet and
set it up to use it, he can also put the fonts in place.
So my original question is answered sufficiently (without error handling).
Would such an optional include function be of interest for lilypond?
Cheers,
Joram
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user