[347e59c] | 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 |
|
---|
[75b1a338] | 7 | <!ENTITY xindy-download-http "https://tug.ctan.org/support/xindy/base/xindy-&xindy-version;.tar.gz">
|
---|
[347e59c] | 8 | <!ENTITY xindy-download-ftp " ">
|
---|
| 9 | <!ENTITY xindy-md5sum "221acfeeb0f6f8388f89a59c56491041">
|
---|
| 10 | <!ENTITY xindy-size "506 KB">
|
---|
| 11 | <!ENTITY xindy-buildsize "15 MB">
|
---|
| 12 | <!ENTITY xindy-time "less than 0.1 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="xindy" xreflabel="xindy-&xindy-version;">
|
---|
| 16 | <?dbhtml filename="xindy.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>xindy-&xindy-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="xindy">
|
---|
| 22 | <primary sortas="a-xindy">xindy</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to xindy</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | <!-- LaTeX for the system, but just latex for the command -->
|
---|
| 30 | <application>Xindy</application> is an index processor that can be used
|
---|
| 31 | to generate book-like indexes for arbitrary document-preparation systems.
|
---|
[d28648d] | 32 | This includes systems such as TeX and LaTeX, the roff-family, and
|
---|
[347e59c] | 33 | SGML/XML-based systems (e.g., HTML) that process some kind of text and
|
---|
| 34 | generate indexing information.
|
---|
| 35 | </para>
|
---|
| 36 |
|
---|
[5e378588] | 37 | &lfs113_checked;
|
---|
[347e59c] | 38 |
|
---|
| 39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 40 | <itemizedlist spacing="compact">
|
---|
| 41 | <listitem>
|
---|
| 42 | <para>
|
---|
| 43 | Download (HTTP): <ulink url="&xindy-download-http;"/>
|
---|
| 44 | </para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>
|
---|
| 48 | Download (FTP): <ulink url="&xindy-download-ftp;"/>
|
---|
| 49 | </para>
|
---|
| 50 | </listitem>
|
---|
| 51 | <listitem>
|
---|
| 52 | <para>
|
---|
| 53 | Download MD5 sum: &xindy-md5sum;
|
---|
| 54 | </para>
|
---|
| 55 | </listitem>
|
---|
| 56 | <listitem>
|
---|
| 57 | <para>
|
---|
| 58 | Download size: &xindy-size;
|
---|
| 59 | </para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>
|
---|
| 63 | Estimated disk space required: &xindy-buildsize;
|
---|
| 64 | </para>
|
---|
| 65 | </listitem>
|
---|
| 66 | <listitem>
|
---|
| 67 | <para>
|
---|
| 68 | Estimated build time: &xindy-time;
|
---|
| 69 | </para>
|
---|
| 70 | </listitem>
|
---|
| 71 | </itemizedlist>
|
---|
| 72 |
|
---|
[5e61060f] | 73 | <bridgehead renderas="sect3">Required Additional Downloads</bridgehead>
|
---|
| 74 | <itemizedlist spacing="compact">
|
---|
| 75 | <listitem>
|
---|
[fa3edfef] | 76 | <para>
|
---|
| 77 | Required patch: <ulink
|
---|
[1715682] | 78 | url="&patch-root;/xindy-&xindy-version;-upstream_fixes-2.patch"/>
|
---|
[fa3edfef] | 79 | </para>
|
---|
[5e61060f] | 80 | </listitem>
|
---|
| 81 | </itemizedlist>
|
---|
| 82 |
|
---|
[347e59c] | 83 | <bridgehead renderas="sect3">Xindy Dependencies</bridgehead>
|
---|
| 84 |
|
---|
| 85 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 86 | <para role="required">
|
---|
[d28648d] | 87 | <xref linkend="clisp"/> and
|
---|
[347e59c] | 88 | <xref linkend="texlive"/>
|
---|
| 89 | </para>
|
---|
| 90 |
|
---|
| 91 | <para condition="html" role="usernotes">
|
---|
| 92 | User Notes: <ulink url="&blfs-wiki;/xindy"/>
|
---|
| 93 | </para>
|
---|
| 94 | </sect2>
|
---|
| 95 |
|
---|
| 96 | <sect2 role="installation">
|
---|
| 97 | <title>Installation of xindy</title>
|
---|
| 98 |
|
---|
| 99 | <para>
|
---|
| 100 | Install <application>xindy</application> by running the following
|
---|
| 101 | commands:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
[5e61060f] | 105 |
|
---|
[5ac40fda] | 106 | sed -i "s/ grep -v '^;'/ awk NF/" make-rules/inputenc/Makefile.in &&
|
---|
[5e61060f] | 107 |
|
---|
[75da3e08] | 108 | sed -i 's%\(indexentry\)%\1\\%' make-rules/inputenc/make-inp-rules.pl &&
|
---|
| 109 |
|
---|
[1715682] | 110 | patch -Np1 -i ../xindy-&xindy-version;-upstream_fixes-2.patch &&
|
---|
[5e61060f] | 111 |
|
---|
[ed3707e] | 112 | ./configure --prefix=$TEXLIVE_PREFIX \
|
---|
| 113 | --bindir=$TEXLIVE_PREFIX/bin/$TEXARCH \
|
---|
| 114 | --datarootdir=$TEXLIVE_PREFIX \
|
---|
| 115 | --includedir=/usr/include \
|
---|
| 116 | --libdir=$TEXLIVE_PREFIX/texmf-dist \
|
---|
| 117 | --mandir=$TEXLIVE_PREFIX/texmf-dist/doc/man &&
|
---|
[5e61060f] | 118 |
|
---|
[068a163] | 119 | make LC_ALL=POSIX</userinput></screen>
|
---|
[347e59c] | 120 |
|
---|
| 121 | <para>
|
---|
[48771ae] | 122 | This package does not have a test suite.
|
---|
[347e59c] | 123 | </para>
|
---|
| 124 |
|
---|
| 125 | <para>
|
---|
| 126 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 127 | </para>
|
---|
| 128 |
|
---|
| 129 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 130 |
|
---|
| 131 | </sect2>
|
---|
| 132 |
|
---|
| 133 | <sect2 role="commands">
|
---|
| 134 | <title>Command Explanations</title>
|
---|
| 135 |
|
---|
[5ac40fda] | 136 | <para>
|
---|
[1a518e97] | 137 | <command>sed -i "s/ grep -v '^;'/ awk NF/" ...</command>: The build
|
---|
[5ac40fda] | 138 | sorts files in latin{1..3} encodings to create latin.xdy, and unicode
|
---|
| 139 | versions of these to create utf8.xdy after using
|
---|
| 140 | <command>grep -v '^;'</command> to remove blank lines. With
|
---|
| 141 | <application>grep-2.23</application> any data not in the expected
|
---|
| 142 | encoding is treated as binary, resulting in a useless file. This
|
---|
| 143 | command uses an alternative way of removing blank lines.
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
[75da3e08] | 146 | <para>
|
---|
| 147 | <command>sed -i 's%\(indexentry\)%\1\\%' ...</command>: A regexp
|
---|
| 148 | contains <literal>indexentry{</literal> - perl has warned about the
|
---|
| 149 | unescaped left brace for some time and now treats it as illegal.
|
---|
| 150 | Change it to <literal>indexentry\{</literal>, doubling the backslash
|
---|
| 151 | for <command>sed</command>.
|
---|
| 152 | </para>
|
---|
| 153 |
|
---|
[5e61060f] | 154 | <para>
|
---|
[1715682] | 155 | <command>patch -Np1 -i ../xindy-&xindy-version;-upstream_fixes-2.patch</command>:
|
---|
[5e61060f] | 156 | <application>Xindy</application> is now maintained at CTAN. This patch
|
---|
[75da3e08] | 157 | updates the source with some of the changes made there (but ignoring
|
---|
| 158 | changes which were only made to allow for spaces in pathnames and some trivial
|
---|
| 159 | recent changes).
|
---|
[5e61060f] | 160 | </para>
|
---|
| 161 |
|
---|
| 162 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 163 | href="../../xincludes/tex-prefix.xml"/>
|
---|
| 164 |
|
---|
[fa3edfef] | 165 | <para>
|
---|
| 166 | <parameter>--includedir=/usr/include</parameter>:
|
---|
| 167 | This parameter ensures that the <filename>kpathsea</filename>
|
---|
| 168 | headers from <xref linkend="texlive"/> will be found.
|
---|
| 169 | </para>
|
---|
[068a163] | 170 |
|
---|
[2cbfee09] | 171 | <para>
|
---|
[1a518e97] | 172 | <command>make LC_ALL=POSIX</command>: with the current version of
|
---|
[2cbfee09] | 173 | <application>coreutils</application> it is essential to build
|
---|
| 174 | <application>xindy</application> in the POSIX (or C) locale because in a
|
---|
| 175 | UTF-8 locale the file <filename>latin.xdy</filename> will contain only a
|
---|
| 176 | heading and then a line '<literal>Binary file (standard input)
|
---|
| 177 | matches</literal>' instead of the many lines of
|
---|
| 178 | <application>lisp</application> merge-rule commands it ought to contain.
|
---|
| 179 | </para>
|
---|
| 180 |
|
---|
[347e59c] | 181 | </sect2>
|
---|
| 182 |
|
---|
| 183 | <sect2 role="content">
|
---|
| 184 | <title>Contents</title>
|
---|
| 185 |
|
---|
| 186 | <segmentedlist>
|
---|
| 187 | <segtitle>Installed Programs</segtitle>
|
---|
| 188 | <segtitle>Installed Libraries</segtitle>
|
---|
| 189 | <segtitle>Installed Directory</segtitle>
|
---|
| 190 |
|
---|
| 191 | <seglistitem>
|
---|
| 192 | <seg>
|
---|
| 193 | tex2xindy, texindy, xindy
|
---|
| 194 | </seg>
|
---|
| 195 | <seg>
|
---|
| 196 | None
|
---|
| 197 | </seg>
|
---|
| 198 | <seg>
|
---|
[ed3707e] | 199 | $TEXLIVE_PREFIX/texmf-dist/xindy
|
---|
[347e59c] | 200 | </seg>
|
---|
| 201 | </seglistitem>
|
---|
| 202 | </segmentedlist>
|
---|
| 203 |
|
---|
| 204 | <variablelist>
|
---|
| 205 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 206 | <?dbfo list-presentation="list"?>
|
---|
| 207 | <?dbhtml list-presentation="table"?>
|
---|
| 208 |
|
---|
| 209 | <varlistentry id="tex2xindy">
|
---|
| 210 | <term><command>tex2xindy</command></term>
|
---|
| 211 | <listitem>
|
---|
| 212 | <para>
|
---|
[4c24eb0a] | 213 | transforms a LaTeX index file into a xindy raw index file
|
---|
[347e59c] | 214 | </para>
|
---|
| 215 | <indexterm zone="xindy tex2xindy">
|
---|
| 216 | <primary sortas="b-tex2xindy">tex2xindy</primary>
|
---|
| 217 | </indexterm>
|
---|
| 218 | </listitem>
|
---|
| 219 | </varlistentry>
|
---|
| 220 |
|
---|
| 221 | <varlistentry id="texindy">
|
---|
| 222 | <term><command>texindy</command></term>
|
---|
| 223 | <listitem>
|
---|
| 224 | <para>
|
---|
[4c24eb0a] | 225 | is a wrapper for xindy that turns on many LaTeX conventions by default
|
---|
[347e59c] | 226 | </para>
|
---|
| 227 | <indexterm zone="xindy texindy">
|
---|
| 228 | <primary sortas="b-texindy">texindy</primary>
|
---|
| 229 | </indexterm>
|
---|
| 230 | </listitem>
|
---|
| 231 | </varlistentry>
|
---|
| 232 |
|
---|
| 233 | <varlistentry id="xindy-prog">
|
---|
| 234 | <term><command>xindy</command></term>
|
---|
| 235 | <listitem>
|
---|
| 236 | <para>
|
---|
[4c24eb0a] | 237 | creates a sorted and tagged index from a raw LaTeX index
|
---|
[347e59c] | 238 | </para>
|
---|
| 239 | <indexterm zone="xindy xindy">
|
---|
| 240 | <primary sortas="b-xindy">xindy</primary>
|
---|
| 241 | </indexterm>
|
---|
| 242 | </listitem>
|
---|
| 243 | </varlistentry>
|
---|
| 244 |
|
---|
| 245 | </variablelist>
|
---|
| 246 |
|
---|
| 247 | </sect2>
|
---|
| 248 |
|
---|
| 249 | </sect1>
|
---|