lilypond-user
[Top][All Lists]
Advanced

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

Re: dashed lines in \path


From: Patrick McCarty
Subject: Re: dashed lines in \path
Date: Tue, 11 Sep 2012 20:53:28 -0700

On Mon, Sep 10, 2012 at 8:20 PM, luis jure <address@hidden> wrote:
>
> on 2012-09-10 at 22:49 luis jure wrote:
>
>>\tweak #'Y-extent #'(0 . 0)
>
> YES! i'm saved, now the translation from postscript code to \path code is
> quite straightforward. sorry for the noise.
>
> one problem remains, though: in the postscript code i used some dashed
> lines, but i can't find the equivalent in \path. is it possible?

Not in the current implementation.  It would be a nice feature to have
added though...

For now, you could edit the SVG directly as a workaround and use the
postscript code for the PDF output.  You need to add a
stroke-dasharray attribute to the <path> element that \path creates.
In your example, the <path> element looks something like the
following:

<path transform="translate(22.9264, 3.9703)" stroke-width="0.2500"
stroke-linejoin="round" stroke-linecap="round" stroke="currentColor"
fill="none" d="m-1.5 0l5 0l0 10l-5 0z"/>

Modify it by adding stroke-dasharray="0.5 0.5" (substituting values
that work for you):

<path transform="translate(22.9264, 3.9703)" stroke-width="0.2500"
stroke-linejoin="round" stroke-linecap="round" stroke="currentColor"
stroke-dasharray="0.5 0.5" fill="none" d="m-1.5 0l5 0l0 10l-5 0z"/>

The stroke-dasharray attribute is documented here:
http://www.w3.org/TR/SVG/painting.html#StrokeDasharrayProperty


Hope this helps,

Regards,
Patrick



reply via email to

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