Your message dated Wed, 14 Sep 2016 08:58:01 +0200
with message-id <5879.1473836281@manetheren>
has caused the   report #837168,
regarding dblatex: should use vector graphics when possible
to be marked as having been forwarded to the upstream software
author(s) "Benoit Guillon" <ben.guil...@gmail.com>

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
837168: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=837168
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
W. Martin Borgert <deba...@debian.org> wrote:

> Quoting Andreas Hoenen <andr...@hoenen-terstappen.de>:
> > please refer to "User Manual", "Chapter 4. Customization", "XML
> > Configuration File Format", first example [1].  The XML element
> > /config/imagedata/converter gives you full control over the inkscape
> > command used for PDF image creation.
> >
> > [1] file:///usr/share/doc/dblatex-doc/xhtml/manual/sec-specs.html
>
> OK, this is very different from the outdated documentation I was
> looking at:
> http://dblatex.sourceforge.net/doc/manual/sec-specs.html
> Good to have the current one in Debian!
>
> However, I'm not sure how to control the destination file type
> using this configuration. I can tell inkscape to generate PDF
> instead of PNG, but the filenames still refer to e.g.
> "fig<n>.png", leading to xelatex compilation failure.
>
> It seems, I can tell dblatex how to do something, but not
> what to do...
>

Hi BenoƮt,

I want to notify you about Debian BTS report #837168 [1]:

There doesn't seem to be a way of including an SVG graphic (vector
graphics) into the final PDF document (vector graphics) without
converting it to an intermediate PNG image (raster graphics).  Attached
is a minimal example demonstrating the problem: Docbook file [2],
configuration file [3] (BTW, thanks for this new configuration
possibility), SVG graphics file [4].

I would expect the configuration element /config/imagedata/@dst with the
value "pdf" to trigger conversion of the SVG file to a PDF file, however
dblatex insists on transforming into PNG, thus ignoring the configured
conversion command.

One could even argue that dblatex should choose PDF as target format for
any vector graphics source format *automatically*.  PNG is a good choice
for raster graphics source formats.

What do you think?

[1] https://bugs.debian.org/837168
[2] 
<?xml version="1.0"?>
<!DOCTYPE article
          PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
                 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd";>
<article lang="en">
  <title>Gapless support for vector graphics</title>
  <para>
    It would be nice if the SVG graphic below could be integrated into the final
    PDF document without an intermediate raster graphics file:
  </para>
  <figure>
    <title>SVG logo</title>
    <graphic scale="314" fileref="SVG_logo.svg"/>
  </figure>
</article>
[3] 
<?xml version="1.0"?>
<config xmlns="http://dblatex.sourceforge.net/config"; version="1.0">
  <latex>
    <backend use="xetex"/>
  </latex>
  <imagedata>
    <converter src="svg" dst="pdf" docformat="pdf">
      <command>
        inkscape -z -D --export-%(dst)s=%(output)s %(input)s
      </command>
    </converter>
  </imagedata>
</config>
[4] 
Title: SVG Logo
SVG
Regards, Andreas
-- 
Andreas Hoenen <andr...@hoenen-terstappen.de>
GPG: 1024D/B888D2CE
     A4A6 E8B5 593A E89B 496B
     82F0 728D 8B7E B888 D2CE

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to