2019-11-02 07:56:02 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2022-04-20 21:36:11 +08:00
|
|
|
<!-- his can be accessed via https://dvisvgm.de/Downloads/
|
2022-02-11 04:43:26 +08:00
|
|
|
NOT via the tags at github - those use autogen.sh -->
|
2019-11-02 07:56:02 +08:00
|
|
|
<!ENTITY dvisvgm-download-http "https://github.com/mgieseki/dvisvgm/releases/download/&dvisvgm-version;/dvisvgm-&dvisvgm-version;.tar.gz">
|
|
|
|
<!ENTITY dvisvgm-download-ftp " ">
|
2022-05-01 09:39:22 +08:00
|
|
|
<!ENTITY dvisvgm-md5sum "5f41b3d26fa41be9ca8bd73447308fce">
|
|
|
|
<!ENTITY dvisvgm-size "3.0 MB">
|
|
|
|
<!ENTITY dvisvgm-buildsize "276 MB (41 MB installed, add 920 MB for the tests)">
|
|
|
|
<!ENTITY dvisvgm-time "0.8 SBU (add 0.6 SBU for the tests, both using parallelism=4)">
|
2019-11-02 07:56:02 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="dvisvgm" xreflabel="dvisvgm-&dvisvgm-version;">
|
|
|
|
<?dbhtml filename="dvisvgm.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>dvisvgm-&dvisvgm-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="dvisvgm">
|
|
|
|
<primary sortas="a-dvisvgm">dvisvgm</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to dvisvgm</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>dvisvgm</application> package converts DVI, EPS and
|
|
|
|
PDF files to SVG format.
|
|
|
|
</para>
|
|
|
|
|
2022-02-27 13:13:23 +08:00
|
|
|
&lfs111_checked;
|
2019-11-02 07:56:02 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&dvisvgm-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&dvisvgm-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &dvisvgm-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &dvisvgm-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &dvisvgm-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &dvisvgm-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">dvisvgm Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
|
|
|
<!-- EDITORS: the docs say it needs clipper, but it uses an internal
|
|
|
|
modified version and cannot be built with system clipper -->
|
2020-08-15 07:26:45 +08:00
|
|
|
<xref linkend="brotli"/>,
|
2020-02-28 05:05:33 +08:00
|
|
|
<xref linkend="gs"/> and
|
2019-11-02 07:56:02 +08:00
|
|
|
<xref linkend="potrace"/>
|
|
|
|
</para>
|
|
|
|
|
2020-08-15 07:26:45 +08:00
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="woff2"/>
|
|
|
|
</para>
|
|
|
|
|
2019-11-02 07:56:02 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="asciidoc"/> with
|
|
|
|
<xref linkend="xmlto"/> and
|
|
|
|
<xref linkend="libxslt"/> (see command explanations),
|
|
|
|
<ulink url="http://dblatex.sourceforge.net/">dblatex</ulink> (with the above) and
|
2020-03-22 09:53:31 +08:00
|
|
|
<!-- version checked for dvisvgm-2.9, 0.7.3 is mentioned in the
|
|
|
|
news and is the latest version at 2020-03-21
|
2022-02-09 03:12:04 +08:00
|
|
|
maybe change to 'a recent version' if that releases faster -->
|
2020-02-28 05:05:33 +08:00
|
|
|
<ulink url="https://github.com/Cyan4973/xxHash/releases/latest">xxHash</ulink>
|
2019-11-02 07:56:02 +08:00
|
|
|
(the current version is included in the tarball)
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/dvisvgm"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of dvisvgm</title>
|
|
|
|
|
2020-01-24 03:45:59 +08:00
|
|
|
<!-- Editors: This is in the book for svg output from asymptote. tested in
|
2021-04-23 19:00:10 +08:00
|
|
|
https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
|
2022-02-11 04:43:26 +08:00
|
|
|
Can also be tested with texlive including tikz
|
|
|
|
https://www.linuxfromscratch.org/~ken/tex-testfiles/ https://www.linuxfromscratch.org/~ken/
|
2020-01-24 03:45:59 +08:00
|
|
|
-->
|
2019-11-02 07:56:02 +08:00
|
|
|
<para>
|
|
|
|
To enable the build system to link to
|
|
|
|
<filename class="libraryfile">libkpathsea.so</filename>, as the
|
|
|
|
<systemitem class="username">root</systemitem> user create a symlink from
|
|
|
|
<filename class="directory">/usr/lib</filename>:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>ln -svf /opt/texlive/&texlive-year;/lib/libkpathsea.so /usr/lib</userinput></screen>
|
|
|
|
|
2022-02-09 03:12:04 +08:00
|
|
|
<para>
|
2021-01-31 03:56:52 +08:00
|
|
|
The testsuite assumes that a modern version of <application>Python</application>
|
|
|
|
has been installed as plain <command>python</command>. Changing this to use
|
2022-02-11 04:43:26 +08:00
|
|
|
<command>python3</command> requires a sed to one <filename>Makefile.in</filename>
|
|
|
|
file.
|
2021-01-31 03:56:52 +08:00
|
|
|
</para>
|
|
|
|
|
2019-11-02 07:56:02 +08:00
|
|
|
<para>
|
2021-01-31 03:56:52 +08:00
|
|
|
Install <application>dvisvgm</application> by running the following
|
2019-11-02 07:56:02 +08:00
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2022-02-11 04:43:26 +08:00
|
|
|
<screen><userinput>sed -i 's/python/&3/' tests/Makefile.in &&
|
2021-01-30 02:42:32 +08:00
|
|
|
./configure \
|
2019-11-02 07:56:02 +08:00
|
|
|
--bindir=/opt/texlive/&texlive-year;/bin/${TEXARCH} \
|
|
|
|
--mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
|
|
|
--with-kpathsea=/opt/texlive/&texlive-year; &&
|
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To test the results, issue: <command>make check</command>.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2020-03-22 09:53:31 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
2019-11-02 07:56:02 +08:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
<command>ln -svf /opt/texlive/&texlive-year;/lib/libkpathsea.so /usr/lib</command>:
|
|
|
|
Without this, the program will not link correctly,
|
|
|
|
</para>
|
|
|
|
|
2022-02-09 03:12:04 +08:00
|
|
|
<para>
|
2021-01-30 02:42:32 +08:00
|
|
|
<command>autoreconf -fiv</command>: The versions of
|
|
|
|
<application>autoconf</application> and <application>automake</application>
|
|
|
|
used when this package was created are older than the current versions in
|
|
|
|
LFS. That causes 'make' to fail when it reaches the 'tests' subdirectory
|
|
|
|
unless autoreconf is forced to install missing (i.e. newer) auxiliary
|
|
|
|
files.
|
2022-02-09 03:12:04 +08:00
|
|
|
</para>
|
2021-01-30 02:42:32 +08:00
|
|
|
|
2019-11-02 07:56:02 +08:00
|
|
|
<!-- EDITORS: the doc target to rebuild the manpage (make man) is not
|
|
|
|
recognised unless invoked from the doc directory (unlike make pdf which
|
|
|
|
can be invoked from top-level but needs dblatex), and I see no utility
|
|
|
|
in explaining how to regenerate it. ken -->
|
|
|
|
<para>
|
|
|
|
<command>--with-kpathsea=/opt/texlive/&texlive-year;</command>: This allows
|
|
|
|
the build system to find the headers for <filename
|
|
|
|
class="libraryfile">kpathsea</filename>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
2020-06-03 11:33:11 +08:00
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
2019-11-02 07:56:02 +08:00
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
dvisvgm
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2020-06-03 11:33:11 +08:00
|
|
|
None
|
2019-11-02 07:56:02 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
2020-06-03 11:33:11 +08:00
|
|
|
None
|
2019-11-02 07:56:02 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="dvisvgm-prog">
|
|
|
|
<term><command>dvisvgm</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
converts DVI, EPS and PDF files to the SVG format
|
|
|
|
</para>
|
|
|
|
<indexterm zone="dvisvgm dvisvgm-prog">
|
|
|
|
<primary sortas="b-dvisvgm">dvisvgm</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
2021-02-19 23:20:16 +08:00
|
|
|
|
2019-11-02 07:56:02 +08:00
|
|
|
</sect1>
|