summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/doc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2023-11-16 03:01:15 +0000
committerNorbert Preining <norbert@preining.info>2023-11-16 03:01:15 +0000
commite0db3f0709a737e7258fd40a7cbfe9a461ea0756 (patch)
treee81cfc35b6602ffceefa73b8971ce3b94312820a /dviware/dvisvgm/doc
parentf5460c92605f1b3b17448b27ce53375157c3e4b1 (diff)
CTAN sync 202311160301
Diffstat (limited to 'dviware/dvisvgm/doc')
-rw-r--r--dviware/dvisvgm/doc/conf-dblatex-man.xsl26
-rw-r--r--dviware/dvisvgm/doc/conf-dblatex-pdf.xsl112
-rw-r--r--dviware/dvisvgm/doc/dvisvgm.152
-rw-r--r--dviware/dvisvgm/doc/dvisvgm.txt.in26
-rw-r--r--dviware/dvisvgm/doc/tweak-db-refentry.xsl84
-rw-r--r--dviware/dvisvgm/doc/tweak-dblatex-pdf.xsl42
6 files changed, 178 insertions, 164 deletions
diff --git a/dviware/dvisvgm/doc/conf-dblatex-man.xsl b/dviware/dvisvgm/doc/conf-dblatex-man.xsl
index 23fb9ff2c4..a1e336376c 100644
--- a/dviware/dvisvgm/doc/conf-dblatex-man.xsl
+++ b/dviware/dvisvgm/doc/conf-dblatex-man.xsl
@@ -2,18 +2,18 @@
<!-- This file is part of dvisvgm -->
<!-- Copyright (C) 2015-2023 Martin Gieseking <martin.gieseking@uos.de> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <!-- output monospaced text in bold -->
- <xsl:template match="literal">
- <xsl:text>\fB</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>\fR</xsl:text>
- </xsl:template>
+ <!-- output monospaced text in bold -->
+ <xsl:template match="literal">
+ <xsl:text>\fB</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>\fR</xsl:text>
+ </xsl:template>
- <!-- append URL to hyperlinked text pointing to external targets -->
- <xsl:template match="ulink[not(contains(., '://')) and not(contains(@url, 'mailto:'))]">
- <xsl:apply-templates/>
- <xsl:text> (\m[blue]</xsl:text>
- <xsl:value-of select="@url"/>
- <xsl:text>\m[])</xsl:text>
- </xsl:template>
+ <!-- append URL to hyperlinked text pointing to external targets -->
+ <xsl:template match="ulink[not(contains(., '://')) and not(contains(@url, 'mailto:'))]">
+ <xsl:apply-templates/>
+ <xsl:text> (\m[blue]</xsl:text>
+ <xsl:value-of select="@url"/>
+ <xsl:text>\m[])</xsl:text>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/dviware/dvisvgm/doc/conf-dblatex-pdf.xsl b/dviware/dvisvgm/doc/conf-dblatex-pdf.xsl
index d39e03c3a3..98a630d849 100644
--- a/dviware/dvisvgm/doc/conf-dblatex-pdf.xsl
+++ b/dviware/dvisvgm/doc/conf-dblatex-pdf.xsl
@@ -2,67 +2,67 @@
<!-- This file is part of dvisvgm -->
<!-- Copyright (C) 2015-2023 Martin Gieseking <martin.gieseking@uos.de> -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <xsl:param name="xetex.font">
- <xsl:text>\setmainfont{Source Serif Pro}&#10;</xsl:text>
- <xsl:text>\setsansfont{Source Sans Pro}&#10;</xsl:text>
- <xsl:text>\setmonofont[Scale=0.9]{Source Code Pro}&#10;</xsl:text>
- </xsl:param>
+ <xsl:param name="xetex.font">
+ <xsl:text>\setmainfont{Source Serif 4}&#10;</xsl:text>
+ <xsl:text>\setsansfont{Source Sans 3}&#10;</xsl:text>
+ <xsl:text>\setmonofont[Scale=0.9]{Source Code Pro}&#10;</xsl:text>
+ </xsl:param>
- <xsl:param name="doc.toc.show">0</xsl:param>
- <xsl:param name="refentry.numbered">0</xsl:param>
- <xsl:param name="figure.caution">caution</xsl:param>
- <xsl:param name="figure.note">note</xsl:param>
- <xsl:param name="literal.layout.options"/>
- <xsl:param name="table.default.tabstyle">tabular</xsl:param>
- <xsl:param name="table.in.float">0</xsl:param>
- <xsl:param name="term.breakline">1</xsl:param>
+ <xsl:param name="doc.toc.show">0</xsl:param>
+ <xsl:param name="refentry.numbered">0</xsl:param>
+ <xsl:param name="figure.caution">caution</xsl:param>
+ <xsl:param name="figure.note">note</xsl:param>
+ <xsl:param name="literal.layout.options"/>
+ <xsl:param name="table.default.tabstyle">tabular</xsl:param>
+ <xsl:param name="table.in.float">0</xsl:param>
+ <xsl:param name="term.breakline">1</xsl:param>
- <xsl:param name="literal.layout.options">
- <xsl:text>basicstyle=\ttfamily\small,backgroundcolor=\color[gray]{0.9},columns=fullflexible,frame=single</xsl:text>
- </xsl:param>
+ <xsl:param name="literal.layout.options">
+ <xsl:text>basicstyle=\ttfamily\small,backgroundcolor=\color[gray]{0.9},columns=fullflexible,frame=single</xsl:text>
+ </xsl:param>
- <!-- ensure processing of refmiscinfo elements -->
- <xsl:template match="refentry">
- <xsl:apply-templates select="refmeta/refmiscinfo"/>
- <xsl:apply-imports/>
- </xsl:template>
+ <!-- ensure processing of refmiscinfo elements -->
+ <xsl:template match="refentry">
+ <xsl:apply-templates select="refmeta/refmiscinfo"/>
+ <xsl:apply-imports/>
+ </xsl:template>
- <!-- put refmiscinfo data into the TeX file -->
- <xsl:template match="refmiscinfo[@class]">
- <xsl:value-of select="concat('\def\refmiscinfo', @class, '{', ., '}&#10;')"/>
- </xsl:template>
+ <!-- put refmiscinfo data into the TeX file -->
+ <xsl:template match="refmiscinfo[@class]">
+ <xsl:value-of select="concat('\def\refmiscinfo', @class, '{', ., '}&#10;')"/>
+ </xsl:template>
- <!-- output TOC before synopsis section -->
- <xsl:template match="refsynopsisdiv">
- <xsl:text>\tableofcontents&#10;</xsl:text>
- <xsl:call-template name="makeheading">
- <xsl:with-param name="level">2</xsl:with-param>
- <xsl:with-param name="num">1</xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </xsl:template>
+ <!-- output TOC before synopsis section -->
+ <xsl:template match="refsynopsisdiv">
+ <xsl:text>\tableofcontents&#10;</xsl:text>
+ <xsl:call-template name="makeheading">
+ <xsl:with-param name="level">2</xsl:with-param>
+ <xsl:with-param name="num">1</xsl:with-param>
+ </xsl:call-template>
+ <xsl:apply-templates/>
+ </xsl:template>
- <!-- force non-star \subsection commands -->
- <xsl:template match="refsect1">
- <xsl:call-template name="makeheading">
- <xsl:with-param name="level">2</xsl:with-param>
- <xsl:with-param name="num">1</xsl:with-param>
- </xsl:call-template>
- <xsl:apply-templates/>
- </xsl:template>
+ <!-- force non-star \subsection commands -->
+ <xsl:template match="refsect1">
+ <xsl:call-template name="makeheading">
+ <xsl:with-param name="level">2</xsl:with-param>
+ <xsl:with-param name="num">1</xsl:with-param>
+ </xsl:call-template>
+ <xsl:apply-templates/>
+ </xsl:template>
- <!-- add named list items (e.g. command-line options, specials) to PDF bookmarks -->
- <xsl:template match="refsect1/variablelist/varlistentry/term[emphasis]">
- <xsl:text>\phantomsection\pdfbookmark[3]{</xsl:text>
- <xsl:choose>
- <xsl:when test="contains(emphasis, '--')">
- <xsl:value-of select="substring-after(emphasis, '--')"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="emphasis"/>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:value-of select="concat('}{', generate-id(emphasis), '}&#10;')"/>
- <xsl:apply-imports/>
- </xsl:template>
+ <!-- add named list items (e.g. command-line options, specials) to PDF bookmarks -->
+ <xsl:template match="refsect1/variablelist/varlistentry/term[emphasis]">
+ <xsl:text>\phantomsection\pdfbookmark[3]{</xsl:text>
+ <xsl:choose>
+ <xsl:when test="contains(emphasis, '--')">
+ <xsl:value-of select="substring-after(emphasis, '--')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="emphasis"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ <xsl:value-of select="concat('}{', generate-id(emphasis), '}&#10;')"/>
+ <xsl:apply-imports/>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/dviware/dvisvgm/doc/dvisvgm.1 b/dviware/dvisvgm/doc/dvisvgm.1
index b4bb1cb3c8..430a1de890 100644
--- a/dviware/dvisvgm/doc/dvisvgm.1
+++ b/dviware/dvisvgm/doc/dvisvgm.1
@@ -1,13 +1,13 @@
'\" t
-.\" Title: dvisvgm Manual
+.\" Title: dvisvgm
.\" Author: Martin Gieseking <martin.gieseking@uos.de>
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
-.\" Date: 2023-07-05
+.\" Date: 2023-09-12
.\" Manual: dvisvgm Manual
-.\" Source: dvisvgm 3.1
+.\" Source: dvisvgm 3.1.2
.\" Language: English
.\"
-.TH "DVISVGM MANUAL" "1" "2023\-07\-05" "dvisvgm 3\&.1" "dvisvgm Manual"
+.TH "DVISVGM" "1" "2023\-09\-12" "dvisvgm 3\&.1\&.2" "dvisvgm Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
@@ -309,7 +309,7 @@ which holds the current foreground color set by CSS property
The optional argument of
\fB\-\-currentcolor\fR
specifies the RGB color value to be replaced and must be given as either
-three or six digit hex color value (\m[blue]https://www.w3.org/TR/css-color/#typedef-hex-color\m[])
+six or three digit hex color value (\m[blue]https://www.w3.org/TR/css-color/#typedef-hex-color\m[])
preceded by character
\fB#\fR, e\&.g\&.
\fB#0000ff\fR
@@ -619,7 +619,15 @@ By default, dvisvgm creates CSS styles and class attributes to reference fonts\&
\fB\-O, \-\-optimize\fR[=\fImodules\fR]
.RS 4
Applies several optimizations on the generated SVG tree to reduce the file size\&. The optimizations are performed by running separate optimizer modules specified by optional argument
-\fImodules\fR\&. It may consist of a single module name or a comma\-separated list of several module names\&. The corresponding modules are executed one by one in the given order and thus transform the XML tree gradually\&.
+\fImodules\fR\&. It may consist of a single module name or a comma\-separated list of several module names\&. The corresponding modules are executed one by one in the given order and thus transform the XML tree gradually\&. A leading hyphen (\fB\-\fR) can be used to exclude a module from processing\&. For example
+\fB\-Oall,\-collapse\-groups\fR
+performs all optimizations except
+\fBcollapse\-groups\fR\&. If the first module name in the list starts with a hyphen, dvisvgm automatically inserts
+\fBall\fR
+at the beginning, i\&.e\&.
+\fB\-O\-collapse\-groups\fR
+is identical to
+\fB\-Oall,\-collapse\-groups\fR\&.
.sp
The following list describes the currently available optimizer modules\&.
.PP
@@ -639,9 +647,9 @@ can\(cqt be combined with other module names\&.
.RS 4
Performs all optimizations listed below\&. This is also the default if option
\fB\-\-optimize\fR
-is used without argument\&. The modules are executed in a predefined order that usually leads to the best results\&.
+is used without any arguments\&. The modules are executed in a predefined order that usually leads to the best results\&.
\fBall\fR
-can\(cqt be combined with other module names\&.
+must be the only or the first entry in the list of module names\&.
.RE
.PP
\fBcollapse\-groups\fR
@@ -879,7 +887,9 @@ special command which is forwarded to dvisvgm\(cqs PostScript special handler\&.
for further information\&.
.sp
As of Ghostscript 10\&.01\&.0, this will no longer work due to the introduction of a new PDF interpreter\&. Therefore, an alternative conversion module based on
-\fImutool\fR, a utility which is part of the [MuPDF](\m[blue]\fBhttps://mupdf\&.com\fR\m[]) package, has been introduced\&. It\(cqs automatically invoked if Ghostscript can\(cqt be used and if a working
+\fImutool\fR, a utility which is part of the
+MuPDF (\m[blue]https://mupdf.com\m[])
+package, has been introduced\&. It\(cqs automatically invoked if Ghostscript can\(cqt be used and if a working
\fBmutool\fR
executable is present in a directory which is part of the system\(cqs search path\&.
.sp
@@ -1251,7 +1261,7 @@ attributes are omitted\&.
.sp
dvisvgm supports several \fIspecial commands\fR that enrich the DVI command set with additional instructions for features, like color, graphics, and hyperlinks\&. The term \fIspecial command\fR, or just \fIspecial\fR, originates from the TeX command \fB\especial{\&...}\fR which does almost nothing\&. TeX only forwards the whole command to the DVI file and delegates its execution to the DVI driver\&. The DVI driver can then decide to either process or ignore it, depending on the supported statements\&. The parameter of TeX\(cqs \fB\especial\fR command is given in curly braces and may consist of an arbitrary character sequence representing the actual instruction, for example \fBcolor Red\fR\&.
.sp
-+ dvisvgm delegates the evaluation of special commands to dedicated handlers\&. Each handler is responsible for all special statements of the same command set, i\&.e\&. commands usually \(en but not necessarily \(en beginning with a common prefix\&. For example, all PDF specials start with the prefix \fBpdf:\fR, while the TPIC special set consists of 13 different commands without common identifier\&. The PDF specials are processed by dvisvgm\(cqs \fIpdf\fR handler, the TPIC ones by the \fItpic\fR handler\&. To get a list of the actually provided special handlers, use option \fB\-\-list\-specials\fR (see above)\&. The following list gives an overview of the special sets currently supported\&. The names of the handlers can also be used to disable the processing of individual sets of specials\&. For further information on this, see option \fB\-\-no\-specials\fR\&.
+dvisvgm delegates the evaluation of special commands to dedicated handlers\&. Each handler is responsible for all special statements of the same command set, i\&.e\&. commands usually \(en but not necessarily \(en beginning with a common prefix\&. For example, all PDF specials start with the prefix \fBpdf:\fR, while the TPIC special set consists of 13 different commands without common identifier\&. The PDF specials are processed by dvisvgm\(cqs \fIpdf\fR handler, the TPIC ones by the \fItpic\fR handler\&. To get a list of the actually provided special handlers, use option \fB\-\-list\-specials\fR (see above)\&. The following list gives an overview of the special sets currently supported\&. The names of the handlers can also be used to disable the processing of individual sets of specials\&. For further information on this, see option \fB\-\-no\-specials\fR\&.
.PP
\fBbgcolor\fR
.RS 4
@@ -1423,16 +1433,6 @@ allows for applying the current transformation matrix to the bounding box\&.
This variant of the bbox special assigns an absolute (final) bounding box to the resulting SVG\&. After executing this command, dvisvgm doesn\(cqt further alter the bounding box coordinates, except this special is called again later\&. The points (\fIx1\fR,\fIy1\fR) and (\fIx2\fR,\fIy2\fR) denote the absolute coordinates of two diagonal corners of the rectangle\&. As with the relative special variant described above, the optional modifier
\fBtransform\fR
allows for applying the current transformation matrix to the bounding box\&.
-.RE
-.PP
-\fBdvisvgm:message\fR \fImsg\fR
-.RS 4
-Prints the given text
-\fImsg\fR
-to the console\&. It may also contain the macros
-\fI{?\&...}\fR
-mentioned above (see
-\fBdvisvgm:raw\fR)\&.
.sp
The following TeX snippet adds two raw SVG elements to the output and updates the bounding box accordingly:
.sp
@@ -1464,6 +1464,16 @@ but doesn\(cqt require an explicit color argument\&. Instead, it takes the curre
functionality \(en can be omitted\&. When called with argument
\fBoff\fR, the functionality is deactivated again\&.
.RE
+.PP
+\fBdvisvgm:message\fR \fImsg\fR
+.RS 4
+Prints the given text
+\fImsg\fR
+to the console\&. It may also contain the macros
+\fI{?\&...}\fR
+mentioned above (see
+\fBdvisvgm:raw\fR)\&.
+.RE
.RE
.PP
\fBem\fR
@@ -1502,7 +1512,7 @@ pdfTeX and dvipdfmx introduced several special commands related to the generatio
\fIpdf:pagesize\fR
is similar to the
\fIpapersize\fR
-special (see above) which specifies the size of the current and all folowing pages\&. In order to actually apply the extents to the generated SVG files, option
+special (see above) which specifies the size of the current and all following pages\&. In order to actually apply the extents to the generated SVG files, option
\fB\-\-bbox=papersize\fR
must be given\&.
.sp
diff --git a/dviware/dvisvgm/doc/dvisvgm.txt.in b/dviware/dvisvgm/doc/dvisvgm.txt.in
index 5b31c8d092..8060b53aa9 100644
--- a/dviware/dvisvgm/doc/dvisvgm.txt.in
+++ b/dviware/dvisvgm/doc/dvisvgm.txt.in
@@ -22,7 +22,7 @@ Martin Gieseking <@PACKAGE_BUGREPORT@>
:man source: dvisvgm
:man version: @VERSION@
:man manual: dvisvgm Manual
-:revdate: 2023-07-05 10:37 +0200
+:revdate: 2023-09-12 16:36 +0200
Name
----
@@ -212,7 +212,7 @@ holds the current foreground color set by CSS property `color`. This way an appl
can change the color via CSS without the need to modify the SVG code.
+
The optional argument of `--currentcolor` specifies the RGB color value to be replaced and must
-be given as either https://www.w3.org/TR/css-color/#typedef-hex-color[three or six digit hex color value]
+be given as either https://www.w3.org/TR/css-color/#typedef-hex-color[six or three digit hex color value]
preceded by character `#`, e.g. `#0000ff` or `#00f` for blue. If the optional argument is omitted, black
is assumed.
@@ -430,6 +430,10 @@ are performed by running separate optimizer modules specified by optional argume
It may consist of a single module name or a comma-separated list of several module names.
The corresponding modules are executed one by one in the given order and thus transform the
XML tree gradually.
+A leading hyphen (+-+) can be used to exclude a module from processing. For example
++-Oall,-collapse-groups+ performs all optimizations except +collapse-groups+. If the first
+module name in the list starts with a hyphen, dvisvgm automatically inserts +all+ at the
+beginning, i.e. +-O-collapse-groups+ is identical to +-Oall,-collapse-groups+.
+
The following list describes the currently available optimizer modules.
@@ -442,8 +446,8 @@ The following list describes the currently available optimizer modules.
*all*;;
Performs all optimizations listed below. This is also the default if option *--optimize* is
- used without argument. The modules are executed in a predefined order that usually leads to the
- best results. *all* can't be combined with other module names.
+ used without any arguments. The modules are executed in a predefined order that usually leads
+ to the best results. *all* must be the only or the first entry in the list of module names.
*collapse-groups*;;
Combines nested group elements (+<g>+...+</g>+) that contain only a single group each. If possible,
@@ -590,7 +594,7 @@ See option *--libgs* for further information.
+
As of Ghostscript 10.01.0, this will no longer work due to the introduction of a new PDF interpreter.
Therefore, an alternative conversion module based on _mutool_, a utility which is part of the
-[MuPDF](https://mupdf.com) package, has been introduced. It's automatically invoked if Ghostscript
+https://mupdf.com[MuPDF] package, has been introduced. It's automatically invoked if Ghostscript
can't be used and if a working +mutool+ executable is present in a directory which is part of the
system's search path.
+
@@ -773,7 +777,7 @@ DVI file and delegates its execution to the DVI driver. The DVI driver can then
ignore it, depending on the supported statements. The parameter of TeX's +\special+ command is given in curly
braces and may consist of an arbitrary character sequence representing the actual instruction, for example
+color Red+.
-+
+
dvisvgm delegates the evaluation of special commands to dedicated handlers. Each handler is responsible for
all special statements of the same command set, i.e. commands usually &#x2013; but not necessarily &#x2013;
beginning with a common prefix. For example, all PDF specials start with the prefix +pdf:+, while the TPIC
@@ -880,10 +884,6 @@ dvisvgm offers its own small set of specials. The following list gives a brief o
The points ('x1','y1') and ('x2','y2') denote the absolute coordinates of two diagonal corners of the rectangle.
As with the relative special variant described above, the optional modifier +transform+ allows for applying the
current transformation matrix to the bounding box.
-
- *dvisvgm:message* 'msg';;
- Prints the given text 'msg' to the console. It may also contain the macros '{?...}' mentioned above
- (see *dvisvgm:raw*).
+
The following TeX snippet adds two raw SVG elements to the output and updates the bounding box accordingly:
+
@@ -903,6 +903,10 @@ The following TeX snippet adds two raw SVG elements to the output and updates th
placement of the special and the preceding color changes. Argument `on` &#x2013; which activates the 'currentColor'
functionality &#x2013; can be omitted. When called with argument `off`, the functionality is deactivated again.
+ *dvisvgm:message* 'msg';;
+ Prints the given text 'msg' to the console. It may also contain the macros '{?...}' mentioned above
+ (see *dvisvgm:raw*).
+
*em*::
These specials were introduced with the 'emTeX' distribution by Eberhard Mattes. They provide line drawing
statements, instructions for embedding MSP, PCX, and BMP image files, as well as two PCL commands.
@@ -931,7 +935,7 @@ only 'pdf:mapfile', 'pdf:mapline', 'pdf:pagesize', and PDF hyperlink specials ar
The latter are the PDF pendants to the HTML HyperTeX specials generated by the hyperref package in PDF mode.
+
'pdf:pagesize' is similar to the 'papersize' special (see above) which specifies the size of the current
-and all folowing pages. In order to actually apply the extents to the generated SVG files,
+and all following pages. In order to actually apply the extents to the generated SVG files,
option *--bbox=papersize* must be given.
+
'pdf:mapfile' and 'pdf:mapline' allow for modifying the font map tree while processing the DVI file.
diff --git a/dviware/dvisvgm/doc/tweak-db-refentry.xsl b/dviware/dvisvgm/doc/tweak-db-refentry.xsl
index f47e18d93d..24e4343f14 100644
--- a/dviware/dvisvgm/doc/tweak-db-refentry.xsl
+++ b/dviware/dvisvgm/doc/tweak-db-refentry.xsl
@@ -2,51 +2,51 @@
<!-- This file is part of dvisvgm -->
<!-- Copyright (C) 2015-2023 Martin Gieseking <martin.gieseking@uos.de> -->
<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:date="http://exslt.org/dates-and-times"
- xmlns:func="http://exslt.org/functions"
- xmlns:my="my-namespace"
- exclude-result-prefixes="my"
- extension-element-prefixes="date func">
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:date="http://exslt.org/dates-and-times"
+ xmlns:func="http://exslt.org/functions"
+ xmlns:my="my-namespace"
+ exclude-result-prefixes="my"
+ extension-element-prefixes="date func">
- <xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
+ <xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
- <!-- adapt ISO date created by keyword expansion -->
- <xsl:template match="refentryinfo/date | revision[1]/date">
- <date>
- <xsl:value-of select="my:extract-date(.)"/>
- </date>
- </xsl:template>
+ <!-- adapt ISO date created by keyword expansion -->
+ <xsl:template match="refentryinfo/date | revision[1]/date">
+ <date>
+ <xsl:value-of select="my:extract-date(.)"/>
+ </date>
+ </xsl:template>
- <!-- add date to refmeta element -->
- <xsl:template match="refmeta">
- <xsl:copy>
- <xsl:copy-of select="*"/>
- <refmiscinfo class="date">
- <xsl:value-of select="my:extract-date(../refentryinfo/date)"/>
- </refmiscinfo>
- </xsl:copy>
- </xsl:template>
+ <!-- add date to refmeta element -->
+ <xsl:template match="refmeta">
+ <xsl:copy>
+ <xsl:copy-of select="*"/>
+ <refmiscinfo class="date">
+ <xsl:value-of select="my:extract-date(../refentryinfo/date)"/>
+ </refmiscinfo>
+ </xsl:copy>
+ </xsl:template>
- <func:function name="my:extract-date">
- <xsl:param name="isodate"/>
- <xsl:variable name="shortdate" select="substring($isodate, 1, 10)"/>
- <xsl:choose>
- <xsl:when test="translate($shortdate, '0123456789', '##########') = '####-##-##'">
- <!-- use date part of expanded keyword -->
- <func:result select="$shortdate"/>
- </xsl:when>
- <xsl:otherwise>
- <!-- use current date as fallback -->
- <func:result select="substring(date:date(), 1, 10)"/>
- </xsl:otherwise>
- </xsl:choose>
- </func:function>
+ <func:function name="my:extract-date">
+ <xsl:param name="isodate"/>
+ <xsl:variable name="shortdate" select="substring($isodate, 1, 10)"/>
+ <xsl:choose>
+ <xsl:when test="translate($shortdate, '0123456789', '##########') = '####-##-##'">
+ <!-- use date part of expanded keyword -->
+ <func:result select="$shortdate"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- use current date as fallback -->
+ <func:result select="substring(date:date(), 1, 10)"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </func:function>
- <!-- copy everything else unchanged -->
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
+ <!-- copy everything else unchanged -->
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
</xsl:stylesheet>
diff --git a/dviware/dvisvgm/doc/tweak-dblatex-pdf.xsl b/dviware/dvisvgm/doc/tweak-dblatex-pdf.xsl
index 15523e3a20..406d771ca2 100644
--- a/dviware/dvisvgm/doc/tweak-dblatex-pdf.xsl
+++ b/dviware/dvisvgm/doc/tweak-dblatex-pdf.xsl
@@ -2,28 +2,28 @@
<!-- This file is part of dvisvgm -->
<!-- Copyright (C) 2015-2023 Martin Gieseking <martin.gieseking@uos.de> -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
- <xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
+ <xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd"/>
- <!-- replace default document title -->
- <xsl:template match="refentrytitle[. != ../refmiscinfo[@class='manual']]">
- <xsl:copy>
- <xsl:value-of select="../refmiscinfo[@class='manual']"/>
- </xsl:copy>
- </xsl:template>
+ <!-- replace default document title -->
+ <xsl:template match="refentrytitle[. != ../refmiscinfo[@class='manual']]">
+ <xsl:copy>
+ <xsl:value-of select="../refmiscinfo[@class='manual']"/>
+ </xsl:copy>
+ </xsl:template>
- <!-- add static title to the synopsis section to prevent creating a dynamic one -->
- <xsl:template match="refsynopsisdiv[not(title)]">
- <xsl:copy>
- <xsl:copy-of select="@*"/>
- <title>Synopsis</title>
- <xsl:apply-templates/>
- </xsl:copy>
- </xsl:template>
+ <!-- add static title to the synopsis section to prevent creating a dynamic one -->
+ <xsl:template match="refsynopsisdiv[not(title)]">
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
+ <title>Synopsis</title>
+ <xsl:apply-templates/>
+ </xsl:copy>
+ </xsl:template>
- <!-- copy everything else unchanged -->
- <xsl:template match="@*|node()">
- <xsl:copy>
- <xsl:apply-templates select="@*|node()"/>
- </xsl:copy>
- </xsl:template>
+ <!-- copy everything else unchanged -->
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
</xsl:stylesheet>