[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
max and min operators in draw_round_box (was: Lilypond not rendering PDF
From: |
Tyler Mitchell |
Subject: |
max and min operators in draw_round_box (was: Lilypond not rendering PDF on Mac) |
Date: |
Wed, 9 Jan 2019 10:34:45 -0800 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Wed, Jan 09, 2019 at 12:27:13PM +0000, Stephen Wilkinson wrote:
> [...] it seems to be a struggle to get the postscript file to
> open in anything at all.
I looked at this and it seems the culprit is the draw_round_box
procedure which uses 'max' and 'min' operators, which are not part
of standard PostScript, but are available in Ghostscript:
https://en.wikibooks.org/wiki/PostScript_FAQ#Where_are_min_and_max_functions?
Adding this to the PostScript output (before draw_round_box is
defined) makes it double-clickable in OS X:
/min { 2 copy gt { exch } if pop } bind def
/max { 2 copy lt { exch } if pop } bind def
Is it possible to include these in music-drawing-routines.ps so
that the .ps output could be processed with non-Ghostscript
interpreters?
Cheers,
Tyler
- Re: Lilypond not rendering PDF on Mac, (continued)
- Re: Lilypond not rendering PDF on Mac, Tyler Mitchell, 2019/01/09
- max and min operators in draw_round_box (was: Lilypond not rendering PDF on Mac),
Tyler Mitchell <=
- Re: max and min operators in draw_round_box, David Kastrup, 2019/01/09
- Re: max and min operators in draw_round_box, David Kastrup, 2019/01/09
- Re: Lilypond not rendering PDF on Mac, Hans Ã…berg, 2019/01/09
Re: Lilypond not rendering PDF on Mac, Stan Sanderson, 2019/01/09
Re: Lilypond not rendering PDF on Mac, Mark Probert, 2019/01/10