On Mon, Sep 10, 2012 at 8:20 PM, luis jure <l...@internet.com.uy> 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

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to