source: pst/typesetting/dvisvgm.xml@ 17aa21c

11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/llvm18 xry111/xf86-video-removal
Last change on this file since 17aa21c was 17aa21c, checked in by Xi Ruoyao <xry111@…>, 15 months ago

Change all http://*.sourceforge.net/ URLs to https

Now all sourceforge.net subdomains have a valid SSL certificate. The
changes are automatically done via a sed. I've reviewed the changes and
reverted the changes in archive/*, pst/xml/docbook-xsl.xml, and
stylesheets/lfs-xsl/lfs-l10n.xml. Other changes should (hopefully) be
fine.

  • Property mode set to 100644
File size: 7.5 KB
Line 
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
7 <!-- his can be accessed via https://dvisvgm.de/Downloads/
8 NOT via the tags at github - those use autogen.sh -->
9 <!ENTITY dvisvgm-download-http "https://github.com/mgieseki/dvisvgm/releases/download/&dvisvgm-version;/dvisvgm-&dvisvgm-version;.tar.gz">
10 <!ENTITY dvisvgm-download-ftp " ">
11 <!ENTITY dvisvgm-md5sum "57f23eefa075556e36de64ea9b61d8fd">
12 <!ENTITY dvisvgm-size "3.0 MB">
13 <!ENTITY dvisvgm-buildsize "280 MB (41 MB installed, add 949 MB for the tests)">
14 <!ENTITY dvisvgm-time "1.2 SBU (add 0.7 SBU for the tests, both using parallelism=4)">
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
35 &lfs112_checked;
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 -->
77 <xref linkend="brotli"/>,
78 <xref linkend="gs"/>, and
79 <xref linkend="potrace"/>
80 </para>
81
82 <bridgehead renderas="sect4">Recommended</bridgehead>
83 <para role="recommended">
84 <xref linkend="woff2"/>
85 </para>
86
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),
92 <ulink url="https://dblatex.sourceforge.net/">dblatex</ulink> (with the above) and
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
95 maybe change to 'a recent version' if that releases faster -->
96 <ulink url="https://github.com/Cyan4973/xxHash/releases/latest">xxHash</ulink>
97 (the current version is included in the tarball)
98 </para>
99
100 <para condition="html" role="usernotes">
101 User Notes: <ulink url="&blfs-wiki;/dvisvgm"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of dvisvgm</title>
107
108<!-- Editors: This is in the book for svg output from asymptote. tested in
109 https://www.linuxfromscratch.org/~ken/asy-nontex-testfiles/asy-test-20200123.tar.xz
110 Can also be tested with texlive including tikz
111 https://www.linuxfromscratch.org/~ken/tex-testfiles/ https://www.linuxfromscratch.org/~ken/
112 Or, use use it to convert first or specified page(s) of a PDF to SVG - see the man page
113-->
114 <para>
115 To enable the build system to link to
116 <filename class="libraryfile">libkpathsea.so</filename>, as the
117 <systemitem class="username">root</systemitem> user create a symlink from
118 <filename class="directory">/usr/lib</filename>:
119 </para>
120
121<screen role="root"><userinput>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</userinput></screen>
122
123 <para>
124 Fix an issue introduced by ghostscript-10.0.0:
125 </para>
126
127<screen><userinput>sed "s/gs_error_names\[/error_names[/" -i src/Ghostscript.cpp</userinput></screen>
128
129 <para>
130 The test suite assumes that a modern version of <application>Python</application>
131 has been installed as plain <command>python</command>. Changing this to use
132 <command>python3</command> requires a sed to one <filename>Makefile.in</filename>
133 file.
134 </para>
135
136 <para>
137 Install <application>dvisvgm</application> by running the following
138 commands:
139 </para>
140
141<screen><userinput>sed -i 's/python/&amp;3/' tests/Makefile.in &amp;&amp;
142./configure \
143 --bindir=$TEXLIVE_PREFIX/bin/${TEXARCH} \
144 --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man \
145 --with-kpathsea=$TEXLIVE_PREFIX &amp;&amp;
146make</userinput></screen>
147
148 <para>
149 To test the results, issue: <command>make check</command>.
150 </para>
151
152 <para>
153 Now, as the <systemitem class="username">root</systemitem> user:
154 </para>
155
156<screen role="root"><userinput>make install</userinput></screen>
157
158 </sect2>
159
160 <sect2 role="commands">
161 <title>Command Explanations</title>
162
163 <para>
164 <command>ln -svf $TEXLIVE_PREFIX/lib/libkpathsea.so /usr/lib</command>:
165 Without this, the program will not link correctly,
166 </para>
167
168<!-- The autoreconf command is not used above anymore.
169 <para>
170 <command>autoreconf -fiv</command>: The versions of
171 <application>autoconf</application> and <application>automake</application>
172 used when this package was created are older than the current versions in
173 LFS. That causes 'make' to fail when it reaches the 'tests' subdirectory
174 unless autoreconf is forced to install missing (i.e. newer) auxiliary
175 files.
176 </para>
177-->
178
179 <!-- EDITORS: the doc target to rebuild the manpage (make man) is not
180 recognised unless invoked from the doc directory (unlike make pdf which
181 can be invoked from top-level but needs dblatex), and I see no utility
182 in explaining how to regenerate it. ken -->
183 <para>
184 <parameter>--with-kpathsea=$TEXLIVE_PREFIX</parameter>: This allows
185 the build system to find the headers for <filename
186 class="libraryfile">kpathsea</filename>
187 </para>
188
189 </sect2>
190
191 <sect2 role="content">
192 <title>Contents</title>
193
194 <segmentedlist>
195 <segtitle>Installed Programs</segtitle>
196 <segtitle>Installed Libraries</segtitle>
197 <segtitle>Installed Directories</segtitle>
198
199 <seglistitem>
200 <seg>
201 dvisvgm
202 </seg>
203 <seg>
204 None
205 </seg>
206 <seg>
207 None
208 </seg>
209 </seglistitem>
210 </segmentedlist>
211
212 <variablelist>
213 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
214 <?dbfo list-presentation="list"?>
215 <?dbhtml list-presentation="table"?>
216
217 <varlistentry id="dvisvgm-prog">
218 <term><command>dvisvgm</command></term>
219 <listitem>
220 <para>
221 converts DVI, EPS and PDF files to the SVG format
222 </para>
223 <indexterm zone="dvisvgm dvisvgm-prog">
224 <primary sortas="b-dvisvgm">dvisvgm</primary>
225 </indexterm>
226 </listitem>
227 </varlistentry>
228
229 </variablelist>
230 </sect2>
231
232</sect1>
Note: See TracBrowser for help on using the repository browser.