On Mon, Apr 8, 2013 at 10:20 AM, José Matos <jama...@lyx.org> wrote:
> The sgmltools (that I don't have installed) will most probably use the latex
> way so I agree with you that the ps backend is the way to go (even if in the
> end it is the same transformation path).

OK, it sounds like it makes sense to add support for PostScript as a backend.

Can you or Richard check the attached patch? I do not have confidence
in editing configure.py. I did test it and it works for me.

Scott
From fb7c59c175303c35f3bd18603779ec0db7cd19a3 Mon Sep 17 00:00:00 2001
From: Scott Kostyshak <skost...@lyx.org>
Date: Wed, 10 Apr 2013 21:56:18 -0400
Subject: [PATCH] Add a DocBook -> PS converter

Before, the converter chain for DocBook -> PDF (ps2pdf) was:

  docbook -> DVI
  DVI -> Postscript
  Postscript -> PDF (ps2pdf)

sgmltools has a backend for PostScript so the first two
steps in the above converter chain are now condensed into
one by adding the following converter for docbook -> Postscript:

  sgmltools -b ps $$i
---
 lib/configure.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/configure.py b/lib/configure.py
index 62ed2b9..7687aff 100644
--- a/lib/configure.py
+++ b/lib/configure.py
@@ -962,7 +962,8 @@ def checkDocBook():
     path, DOCBOOK = checkProg('SGML-tools 2.x (DocBook), db2x scripts or 
xsltproc', ['sgmltools', 'db2dvi', 'xsltproc'],
         rc_entry = [
             r'''\converter docbook    dvi        "sgmltools -b dvi $$i"        
""
-\converter docbook    html       "sgmltools -b html $$i"       ""''',
+\converter docbook    html       "sgmltools -b html $$i"       ""
+\converter docbook    ps         "sgmltools -b ps $$i" ""''',
             r'''\converter docbook    dvi        "db2dvi $$i"  ""
 \converter docbook    html       "db2html $$i" ""''',
             r'''\converter docbook    dvi        ""    ""
-- 
1.7.9.5

Reply via email to