[Debian-handbook-translators] Vector drawings in the PDF?

AYANOKOUZI, Ryuunosuke i38w7i3 at yahoo.co.jp
Sat Jun 17 12:34:49 UTC 2017


Dear Petter,

We, Japanese translation team, made the change
to achieve sufficient printing quality.

At Mon, 12 Jun 2017 14:03:53 +0200,
Petter Reinholdtsen <pere at hungry.com> wrote:
> 
> 
> Looking at the jessie/print-ja branch to try to learn how to make a
> nb-NO paper edition, I discovered something expected.  The DocBook XML
> files are changed to use PDF versions of the dia drawings instead of the
> PNG ones.  Here is one example:
> 
> diff --git a/en-US/01_the-debian-project.xml b/en-US/01_the-debian-project.xml
> index 6601874..0d0fbd3 100644
> --- a/en-US/01_the-debian-project.xml
> +++ b/en-US/01_the-debian-project.xml
> @@ -1833,7 +1834,10 @@
>        <figure>
>          <title>Compilation of a package by the autobuilders</title>
>          <mediaobject>
> -          <imageobject>
> +          <imageobject condition="pdf">
> +            <imagedata fileref="images/autobuilder.pdf" scalefit="1" width="75%"/>
> +          </imageobject>
> +          <imageobject condition="none">
>              <imagedata fileref="images/autobuilder.png" scalefit="1" width="75%"/>
>            </imageobject>
>          </mediaobject>
> 
> Why isn't this done in the master branch for all translations to use?  I
> am unable to find any build rules to create the PDFs from the .dia
> files.  I would like to do the same for the nb-NO PDF, to get vector
> graphics in the PDF and hopefully shave some bytes from the file size.
> Anyone know how the PDFs in images/ were created?

Raphael and We have discussed a possibility to use vector images
before publishing Japanese paperback (by personal mail).

You can generate pdf images by hand
(from *.dia to *.svg by Dia, from *.svg to *.pdf by Inkscape [1]).
But, sometime these conversion is not good (space characters leading text are ignored),
since the svg file converted by Dia is not good for reproducing the same image from Inkscape.
So, this conversion can't be automatically done.

[1] Image conversion from *.dia to *.pdf (through intermediate *.svg)
$ dia --filter svg --export "${_SVG_FILE}" images/autobuilder.dia;
$ inkscape --file="${_SVG_FILE}" --without-gui --export-area-drawing --export-pdf=images/autobuilder.pdf;

We made a proposal to convert all dia files to Inkscape svg files
and tried to use po4a for extracting and managing messages.
But, message translation of Inkscape svg have another disadvantages.
1. Paragraph layout has not preserved.
2. Translator must set suitable fonts by hand.

For these reasons,
We have stooped to migrate the change into 'jessie/master' branch
and to implement automatic update of image translation using gettext tool-chain.

According to conversation with Raphael, Raphael think that...
1. High resolution raster image exported from Dia is sufficient for printing.
2. But, if it is possible to export all image files (png for html and pdf for pdf)
   from SINGLE image source file, we are willing change drawing software.

Sincerely yours,
Ryuunosuke Ayanokouzi
-- 
AYANOKOUZI, Ryuunosuke <i38w7i3 at yahoo.co.jp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/debian-handbook-translators/attachments/20170617/a965664e/attachment.sig>


More information about the Debian-handbook-translators mailing list