Re: Cairo plans
On Thu, Sep 2, 2021 at 8:33 PM Kevin Barry wrote: > > > This use case continues to be supported with > > Cairo. Just convert \postscript to \path, wich > > works both in the current PS backend and with Cairo. > > Is this something that can be done automatically with convert-ly? If > not then does it justify a major version bump? Postscript is a turing-complete, full fledged programming language. Specific (and common) use-cases like drawing paths can be converted (by hand!), but for a general solution, you'd have to run the command through Ghostscript, dumping to PDF and then somehow translate the PDF back in to lilypond commands. It's not completely impossible, but a lot of work. -- Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen
Re: Cairo plans
> This use case continues to be supported with > Cairo. Just convert \postscript to \path, wich > works both in the current PS backend and with Cairo. Is this something that can be done automatically with convert-ly? If not then does it justify a major version bump? Kevin
Re: Cairo plans
On Thu, Sep 2, 2021 at 4:32 PM Richard Shann wrote: > 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 ... The standard staff size is 20pt, so 5pt to a staffspace, which is 1.757mm -- Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen
Re: Cairo plans
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
PATCHES - Countdown for September 1st
Hello, Here is the current patch countdown list. The next countdown will be on September 3rd. A list of all merge requests can be found here: https://gitlab.com/lilypond/lilypond/-/merge_requests?sort=label_priority Push: !900 binaries: Minor updates to scripts - Jonas Hahnfeld https://gitlab.com/lilypond/lilypond/-/merge_requests/900 !899 cairo: ignore page links without page number - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/899 !898 Move utf-8-string special casing to stencil-interpret.cc - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/898 !896 More Moment cleaning - Dan Eble https://gitlab.com/lilypond/lilypond/-/merge_requests/896 !895 framework-svg: remove output-classic-framework - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/895 !894 Drop framework-null, framework-scm - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/894 !893 Website maintenance - Jonas Hahnfeld https://gitlab.com/lilypond/lilypond/-/merge_requests/893 !888 Page stencil cleanups - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/888 Countdown: No patches in Countdown at this time. Review: !904 AmbitusAccidental doesn't have the side-position-interface - Jean Abou-Samra https://gitlab.com/lilypond/lilypond/-/merge_requests/904 !903 Split out TrillPitchParentheses from TrillPitchGroup - Jean Abou-Samra https://gitlab.com/lilypond/lilypond/-/merge_requests/903 !902 Doc: Jean's take on camel-case hyphenation - Jean Abou-Samra https://gitlab.com/lilypond/lilypond/-/merge_requests/902 !901 cairo: fix FT_Face reference counting - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/901 New: No patches in New at this time. Waiting: !897 Draft: support cairo backend in lilypond-book - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/897 !892 Draft: Implement crop/preview/clip systems generically, supporting it for cairo. - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/892 !889 Draft: consolidate backend APIs - Han-Wen Nienhuys https://gitlab.com/lilypond/lilypond/-/merge_requests/889 *** -- Regards James OpenPGP_0xAAC8D177A7F5A364.asc Description: OpenPGP public key