[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: \epsfile and SVG output
From: |
Jean Abou Samra |
Subject: |
Re: \epsfile and SVG output |
Date: |
Wed, 10 Apr 2024 16:03:33 +0200 |
User-agent: |
Evolution 3.50.4 (3.50.4-1.fc39) |
> Many thanks for the clarification that this approach will not work and
> alternative suggestions.
>
> I presume that /image will only include PNGs in a SVG output and not EPS (the
> documentation reads a little unclearly on this as the section on backends is
> elided with comments on coloured backgrounds)?
In fact, PNG in \image works in all output formats/backends
(it is only if you want transparency that it has limitations,
but the default is to add a white background, so there is no
limitation in the default settings).
> For context I am using SVG output because my display target is a custom IOS
> app that uses skia as a backend. SKIA can be used to display SVGs easily
> within the context that I am working. SKIA does have a pdf backend but it
> isn’t exposed directly by the framework I’m using.
>
> The reason to use EPS is that I want to bring in vector graphics made in
> Inkscape using a graphics tablet. It is a little frustrating that I can’t get
> these vector graphics into Lilypond SVG output, as they are basically SVG in
> the first place, but from what I understand so far that isn’t possible.
Yes, unfortunately the SVG backend isn't as well-developed as the
other backends and in particular doesn't support including SVG
(which it could easily do). The Cairo backend also supports outputting
SVG, but doesn't support including SVG either.
> Therefore, if I understand correctly my current options would be:
>
> - render to pdf and work on a system to render pdfs within the framework I’m
> using (this is probably possible, but involves lots of unknowns)
> - rasterise the images and display as PNG, thus include the rasterised version
> in the SVG (not optimal in terms of file size or speed of render, but
> possible)
> - work on a system to convert SVG paths to Lilypond/Scheme paths in order to
> be able to draw in a vector within Lilypond to any backend.
That sounds right. Alternatively, you might be able to add a tag
with a specific id using the output-attributes property, then post-process
the file to replace the tag with that id with your custom content or
something like that.
signature.asc
Description: This is a digitally signed message part