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

Petter Reinholdtsen pere at hungry.com
Mon Jun 12 12:03:53 UTC 2017


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?

-- 
Happy hacking
Petter Reinholdtsen



More information about the Debian-handbook-translators mailing list