bug-lilypond
[Top][All Lists]
Advanced

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

Re: PostScript circle printed with unwanted line


From: pls
Subject: Re: PostScript circle printed with unwanted line
Date: Wed, 6 May 2015 12:12:12 +0200

Hi Arnold,

thank you very much for your explanations. newpath helped me to get rid of the 
unwanted line in LilyPond output. So it’s not really a bug. One simply needs to 
know quite a bit about PostScript to make use of the \postscript markup in 
LilyPond.

Thanks again!
patrick
On 06.05.2015, at 09:32, ArnoldTheresius <address@hidden> wrote:

> Hello,
> 
> at first I want to explain the 'concept' of the \postscript markup:
> * It is a low level output command. (similar to an 'assembler subroutine
> called from a high level programming language')
> * The string defined there will only be output into a postscript file (if
> you select a PS file to be created or any other output format which is
> created via an intermediate postscript file, e.g. PDF or PNG). On other
> output formats (e.g. SVG) it will be ignored.
> * There is no processing of the string before it's written into the PS file,
> e.g. you have to set its extent manually if lilypond should take care of it.
> * Your string will be embedded into the PS file with the postscript commands
> 'gsave currentpoint translate 0.1 setlinewidth' before and 'grestore' after
> it. After these preceeding commands (i.e. 'currentpoint translate') the
> origin of the current transformation is the reference point of your
> \postscript markup, scale and rotation of the current transformation reflect
> the global staff line distance and (if applied) other transformation markup
> command (e.g. \scale and \rotate) encapsulating your \postscript markup. The
> current point is set to the coordinate 0 0 (it is not undefined!).
> 
> 
> pls-2 wrote
>> Hi Arnold,
>> ...
>> True!  But why is the result correct in Ghostscript (but not in LilyPond)
>> when I compile the following example?  It doesn’t even contain a moveto
>> command:
>> ...
>> patrick
>> 
>> _______________________________________________
>> bug-lilypond mailing list
> 
>> bug-lilypond@
> 
>> https://lists.gnu.org/mailman/listinfo/bug-lilypond
> 
> Your definiton of /square includes a 'newpath' and a 'moveto' at the
> beginning, while your definition of /doACircle does not.
> If you consult the desctiption of the 'arc' postscript command, you'll find
> the arc command not only creates the arc geometry, it also creates a line
> geometry to the start point of this arc if appropriate. This can be used to
> create a rounded rectangle with one 'moveto' and four 'arc' commands.
> 
> ArnoldTheresius
> 
> 
> 
> --
> View this message in context: 
> http://lilypond.1069038.n5.nabble.com/PostScript-circle-printed-with-unwanted-line-tp175881p176210.html
> Sent from the Bugs mailing list archive at Nabble.com.
> 
> _______________________________________________
> bug-lilypond mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/bug-lilypond




reply via email to

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