lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cairo plans


From: Richard Shann
Subject: Re: Cairo plans
Date: Thu, 02 Sep 2021 15:32:15 +0100

On Wed, 2021-09-01 at 17:47 +0200, Jean Abou Samra wrote:
> Le 01/09/2021 à 17:22, Richard Shann a écrit :
> > > > Denemo uses postscript to generate a title page with a border.
> > > 
> > >   From a glance at the output of
> > > 
> > > git grep "\\\\postscript"
> > > 
> > > in the Denemo repository, that should be easy to convert
> > > to \path as above.
> > 
> > it was this paper block I had in mind specifically
> 
> 
> Similarly, you can convert the \postscript call in that to
> something like this:
> 
> \markup
> \with-dimensions-from \null
> \combine
>    \translate #'(2 . -3)
>    \path #0.2
>          #'((moveto 0 0)
>             (lineto 104 0)
>             (lineto 104 -150)
>             (lineto 0 -150)
>             (closepath))
>    \translate #'(3 . -4)
>    \path #0.1
>          #'((moveto 0 0)
>             (lineto 102 0)
>             (lineto 102 -148)
>             (lineto 0 -148)
>             (closepath))
> 
Thank you! I've managed to get this working, except that the border
drawn runs off the page at right and bottom. I'm now faced with the
challenge of finding out what the page size is in staff spaces - as I
presume the \path command is speaking in staff spaces while the border
box needs to be drawn within the edges of the page ...

Richard




reply via email to

[Prev in Thread] Current Thread [Next in Thread]