[47d5a9e5] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[7a9a7b26] | 7 | <!-- his can be accessed via https://dvisvgm.de/Downloads/
|
---|
[c87a311a] | 8 | NOT via the tags at github - those use autogen.sh -->
|
---|
[47d5a9e5] | 9 | <!ENTITY dvisvgm-download-http "https://github.com/mgieseki/dvisvgm/releases/download/&dvisvgm-version;/dvisvgm-&dvisvgm-version;.tar.gz">
|
---|
| 10 | <!ENTITY dvisvgm-download-ftp " ">
|
---|
[9aa6fdb] | 11 | <!ENTITY dvisvgm-md5sum "88cad21f5bab4df105645f1c039fc800">
|
---|
| 12 | <!ENTITY dvisvgm-size "2.8 MB">
|
---|
| 13 | <!ENTITY dvisvgm-buildsize "312 MB (45 MB installed, add 959 MB for the tests)">
|
---|
| 14 | <!ENTITY dvisvgm-time "0.8 SBU (add 0.5 SBU for the tests, both using parallelism=4)">
|
---|
[47d5a9e5] | 15 | ]>
|
---|
| 16 |
|
---|
| 17 | <sect1 id="dvisvgm" xreflabel="dvisvgm-&dvisvgm-version;">
|
---|
| 18 | <?dbhtml filename="dvisvgm.html"?>
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | <title>dvisvgm-&dvisvgm-version;</title>
|
---|
| 22 |
|
---|
| 23 | <indexterm zone="dvisvgm">
|
---|
| 24 | <primary sortas="a-dvisvgm">dvisvgm</primary>
|
---|
| 25 | </indexterm>
|
---|
| 26 |
|
---|
| 27 | <sect2 role="package">
|
---|
| 28 | <title>Introduction to dvisvgm</title>
|
---|
| 29 |
|
---|
| 30 | <para>
|
---|
| 31 | The <application>dvisvgm</application> package converts DVI, EPS and
|
---|
| 32 | PDF files to SVG format.
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[c6fc0cb5] | 35 | &lfs120_checked;
|
---|
[47d5a9e5] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&dvisvgm-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&dvisvgm-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &dvisvgm-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &dvisvgm-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &dvisvgm-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: &dvisvgm-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">dvisvgm Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
| 75 | <!-- EDITORS: the docs say it needs clipper, but it uses an internal
|
---|
| 76 | modified version and cannot be built with system clipper -->
|
---|
[8a3826d] | 77 | <xref linkend="brotli"/>,
|
---|
[f51350a6] | 78 | <xref linkend="gs"/>, and
|
---|
[47d5a9e5] | 79 | <xref linkend="potrace"/>
|
---|
| 80 | </para>
|
---|
| 81 |
|
---|
[8a3826d] | 82 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 83 | <para role="recommended">
|
---|
| 84 | <xref linkend="woff2"/>
|
---|
| 85 | </para>
|
---|
| 86 |
|
---|
[47d5a9e5] | 87 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 88 | <para role="optional">
|
---|
| 89 | <xref linkend="asciidoc"/> with
|
---|
| 90 | <xref linkend="xmlto"/> and
|
---|
| 91 | <xref linkend="libxslt"/> (see command explanations),
|
---|
[17aa21c] | 92 | <ulink url="https://dblatex.sourceforge.net/">dblatex</ulink> (with the above) and
|
---|
[a4188ba] | 93 | <!-- version checked for dvisvgm-2.9, 0.7.3 is mentioned in the
|
---|
| 94 | news and is the latest version at 2020-03-21
|
---|
[3942811] | 95 | maybe change to 'a recent version' if that releases faster -->
|
---|
[041a1e0] | 96 | <ulink url="https://github.com/Cyan4973/xxHash/releases/latest">xxHash</ulink>
|
---|
[47d5a9e5] | 97 | (the current version is included in the tarball)
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | </sect2>
|
---|
| 101 |
|
---|
| 102 | <sect2 role="installation">
|
---|
| 103 | <title>Installation of dvisvgm</title>
|
---|
| 104 |
|
---|
[e99822d] | 105 | <!-- Editors: This is in the book for svg output from asymptote. tested in
|
---|
[c9aa980] | 106 | https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
|
---|
[c87a311a] | 107 | Can also be tested with texlive including tikz
|
---|
| 108 | https://www.linuxfromscratch.org/~ken/tex-testfiles/ https://www.linuxfromscratch.org/~ken/
|
---|
[0539191] | 109 | Or, use use it to convert first or specified page(s) of a PDF to SVG - see the man page
|
---|
[e99822d] | 110 | -->
|
---|
[47d5a9e5] | 111 |
|
---|
[2eac7f7] | 112 | <!-- symlink for kpathsea moved to texlive so that if it already exists for
|
---|
| 113 | evince from a previous year it will be recreated -->
|
---|
[47d5a9e5] | 114 |
|
---|
[3942811] | 115 | <para>
|
---|
[48771ae] | 116 | The test suite assumes that a modern version of <application>Python</application>
|
---|
[df50655] | 117 | has been installed as plain <command>python</command>. Changing this to use
|
---|
[c87a311a] | 118 | <command>python3</command> requires a sed to one <filename>Makefile.in</filename>
|
---|
| 119 | file.
|
---|
[df50655] | 120 | </para>
|
---|
| 121 |
|
---|
[47d5a9e5] | 122 | <para>
|
---|
[df50655] | 123 | Install <application>dvisvgm</application> by running the following
|
---|
[47d5a9e5] | 124 | commands:
|
---|
| 125 | </para>
|
---|
| 126 |
|
---|
[ed3707e] | 127 | <screen><userinput>sed -i 's/python/&3/' tests/Makefile.in &&
|
---|
| 128 | ./configure \
|
---|
| 129 | --bindir=$TEXLIVE_PREFIX/bin/${TEXARCH} \
|
---|
| 130 | --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
|
---|
| 131 | --with-kpathsea=$TEXLIVE_PREFIX &&
|
---|
[47d5a9e5] | 132 | make</userinput></screen>
|
---|
| 133 |
|
---|
| 134 | <para>
|
---|
| 135 | To test the results, issue: <command>make check</command>.
|
---|
| 136 | </para>
|
---|
| 137 |
|
---|
| 138 | <para>
|
---|
| 139 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 140 | </para>
|
---|
| 141 |
|
---|
[a4188ba] | 142 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[47d5a9e5] | 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | <sect2 role="commands">
|
---|
| 147 | <title>Command Explanations</title>
|
---|
| 148 |
|
---|
[db36f5a] | 149 | <!-- This is now done in Texlive
|
---|
[47d5a9e5] | 150 | <para>
|
---|
[ed3707e] | 151 | <command>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</command>:
|
---|
[47d5a9e5] | 152 | Without this, the program will not link correctly,
|
---|
| 153 | </para>
|
---|
[db36f5a] | 154 | -->
|
---|
[641597d] | 155 | <!-- The autoreconf command is not used above anymore.
|
---|
[3942811] | 156 | <para>
|
---|
[2a89030b] | 157 | <command>autoreconf -fiv</command>: The versions of
|
---|
| 158 | <application>autoconf</application> and <application>automake</application>
|
---|
| 159 | used when this package was created are older than the current versions in
|
---|
| 160 | LFS. That causes 'make' to fail when it reaches the 'tests' subdirectory
|
---|
| 161 | unless autoreconf is forced to install missing (i.e. newer) auxiliary
|
---|
| 162 | files.
|
---|
[3942811] | 163 | </para>
|
---|
[641597d] | 164 | -->
|
---|
[2a89030b] | 165 |
|
---|
[47d5a9e5] | 166 | <!-- EDITORS: the doc target to rebuild the manpage (make man) is not
|
---|
| 167 | recognised unless invoked from the doc directory (unlike make pdf which
|
---|
| 168 | can be invoked from top-level but needs dblatex), and I see no utility
|
---|
| 169 | in explaining how to regenerate it. ken -->
|
---|
| 170 | <para>
|
---|
[f51350a6] | 171 | <parameter>--with-kpathsea=$TEXLIVE_PREFIX</parameter>: This allows
|
---|
[47d5a9e5] | 172 | the build system to find the headers for <filename
|
---|
| 173 | class="libraryfile">kpathsea</filename>
|
---|
| 174 | </para>
|
---|
| 175 |
|
---|
| 176 | </sect2>
|
---|
| 177 |
|
---|
| 178 | <sect2 role="content">
|
---|
| 179 | <title>Contents</title>
|
---|
| 180 |
|
---|
| 181 | <segmentedlist>
|
---|
[d8321785] | 182 | <segtitle>Installed Programs</segtitle>
|
---|
| 183 | <segtitle>Installed Libraries</segtitle>
|
---|
| 184 | <segtitle>Installed Directories</segtitle>
|
---|
[47d5a9e5] | 185 |
|
---|
| 186 | <seglistitem>
|
---|
| 187 | <seg>
|
---|
| 188 | dvisvgm
|
---|
| 189 | </seg>
|
---|
| 190 | <seg>
|
---|
[d8321785] | 191 | None
|
---|
[47d5a9e5] | 192 | </seg>
|
---|
| 193 | <seg>
|
---|
[d8321785] | 194 | None
|
---|
[47d5a9e5] | 195 | </seg>
|
---|
| 196 | </seglistitem>
|
---|
| 197 | </segmentedlist>
|
---|
| 198 |
|
---|
| 199 | <variablelist>
|
---|
| 200 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 201 | <?dbfo list-presentation="list"?>
|
---|
| 202 | <?dbhtml list-presentation="table"?>
|
---|
| 203 |
|
---|
| 204 | <varlistentry id="dvisvgm-prog">
|
---|
| 205 | <term><command>dvisvgm</command></term>
|
---|
| 206 | <listitem>
|
---|
| 207 | <para>
|
---|
| 208 | converts DVI, EPS and PDF files to the SVG format
|
---|
| 209 | </para>
|
---|
| 210 | <indexterm zone="dvisvgm dvisvgm-prog">
|
---|
| 211 | <primary sortas="b-dvisvgm">dvisvgm</primary>
|
---|
| 212 | </indexterm>
|
---|
| 213 | </listitem>
|
---|
| 214 | </varlistentry>
|
---|
| 215 |
|
---|
| 216 | </variablelist>
|
---|
| 217 | </sect2>
|
---|
[4c24eb0a] | 218 |
|
---|
[47d5a9e5] | 219 | </sect1>
|
---|