pgsql: Add XSL stylesheet to fix up SVG files

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add XSL stylesheet to fix up SVG files
Date: 2019-06-19 19:31:23
Message-ID: E1hdgIl-0005rU-IN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Add XSL stylesheet to fix up SVG files

The SVG output produced by external tools needs some postprocessing.
This is implemented by this new XSL stylesheet.

Issues are:

- SVG produced by Ditaa does not add a viewBox attribute to the svg
element, needed to make the image scalable.

- SVG produced by Graphviz uses a stroke="transparent" attribute,
which is not valid SVG. It appears to mostly work, but FOP
complains.

Other tweaks can be added over time.

This reverts 7dc78d8ef3e62f7e06d7767c63dcede048377b9a and
29046c44f36099f4c979b1491fcf27db2f9184f9, which applied these fixes
manually.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ac5bb8f275dd9b2746fe6d433f1c08c1c3bd3d61

Modified Files
--------------
.gitattributes | 1 -
doc/src/sgml/images/Makefile | 12 +++++--
doc/src/sgml/images/README | 11 +++----
doc/src/sgml/images/fixup-svg.xsl | 44 +++++++++++++++++++++++++
doc/src/sgml/images/gin.svg | 65 ++++++++++++++++++-------------------
doc/src/sgml/images/pagelayout.svg | 66 +++++++++++++++++---------------------
6 files changed, 119 insertions(+), 80 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2019-06-19 19:37:50 pgsql: Update list of combining characters
Previous Message Oleksii Kliukin 2019-06-19 14:08:31 Re: pgsql: Avoid spurious deadlocks when upgrading a tuple lock