pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Peter Eisentraut <peter@eisentraut.org>
Subject: [PATCH] FOP font configuration
Date: Wed, 29 Apr 2020 19:48:22 +0200
---
doc/src/sgml/Makefile | 1 +
doc/src/sgml/fop.xml | 12 ++++++++++++
doc/src/sgml/stylesheet-fo.xsl | 2 ++
doc/src/sgml/syntax.sgml | 4 ++--
4 files changed, 17 insertions(+), 2 deletions(-)
create mode 100644 doc/src/sgml/fop.xml
inline patch 1: doc/src/sgml/Makefile, doc/src/sgml/fop.xml, doc/src/sgml/stylesheet-fo.xsl and 1 more (+17/-2 lines) download inline-1.patch diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index 0401a515df..b8212b3f62 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -38,6 +38,7 @@ endif
ifndef FOP
FOP = $(missing) fop
endif
+FOP += -c $(srcdir)/fop.xml
XMLINCLUDE = --path .
diff --git a/doc/src/sgml/fop.xml b/doc/src/sgml/fop.xml
new file mode 100644
index 0000000000..1b0fb16782
--- /dev/null
+++ b/doc/src/sgml/fop.xml
@@ -0,0 +1,12 @@
+<fop version="1.0">
+
+ <renderers>
+ <renderer mime="application/pdf">
+ <fonts>
+ <!-- automatically detect operating system installed fonts -->
+ <auto-detect/>
+ </fonts>
+ </renderer>>
+ </renderers>
+
+</fop>
diff --git a/doc/src/sgml/stylesheet-fo.xsl b/doc/src/sgml/stylesheet-fo.xsl
index 2f2517d8ce..0b53835782 100644
--- a/doc/src/sgml/stylesheet-fo.xsl
+++ b/doc/src/sgml/stylesheet-fo.xsl
@@ -6,6 +6,8 @@
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/ ;
<xsl:include href="stylesheet-common.xsl" />
+<xsl:param name="body.font.family">DejaVu Serif</xsl:param>
+
<xsl:param name="fop1.extensions" select="1"></xsl:param>
<xsl:param name="tablecolumns.extension" select="0"></xsl:param>
<xsl:param name="toc.max.depth">3</xsl:param>
diff --git a/doc/src/sgml/syntax.sgml b/doc/src/sgml/syntax.sgml
index e134877798..930abbb462 100644
--- a/doc/src/sgml/syntax.sgml
+++ b/doc/src/sgml/syntax.sgml
@@ -230,7 +230,7 @@ <title>Identifiers and Key Words</title>
U&"d\0061t\+000061"
</programlisting>
The following less trivial example writes the Russian
- word <quote>slon</quote> (elephant) in Cyrillic letters:
+ word <quote>слон</quote>/<quote>slon</quote> (elephant) in Cyrillic letters:
<programlisting>
U&"\0441\043B\043E\043D"
</programlisting>
@@ -494,7 +494,7 @@ <title>String Constants with Unicode Escapes</title>
U&'d\0061t\+000061'
</programlisting>
The following less trivial example writes the Russian
- word <quote>slon</quote> (elephant) in Cyrillic letters:
+ word <quote>слон</quote>/<quote>slon</quote> (elephant) in Cyrillic letters:
<programlisting>
U&'\0441\043B\043E\043D'
</programlisting>
--
2.26.2
--------------D0194110BC97551D68DA6A7E--
Message-ID: <no-message-id-5951@localhost>
Permalink: ../no-message-id-5951@localhost/
Also on: postgresql.org/message-id/no-message-id-5951@localhost
copy link · copy postgr.es · copy git am
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: [PATCH] FOP font configuration
In-Reply-To: <no-message-id-5951@localhost>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox