[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[fbbe92f] | 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 | <!ENTITY uchardet-download-http "https://www.freedesktop.org/software/uchardet/releases/uchardet-&uchardet-version;.tar.xz">
|
---|
| 8 | <!ENTITY uchardet-download-ftp " ">
|
---|
[b83e9c8] | 9 | <!ENTITY uchardet-md5sum "9e267be7aee81417e5875086dd9d44fd">
|
---|
| 10 | <!ENTITY uchardet-size "217 KB">
|
---|
| 11 | <!ENTITY uchardet-buildsize "4.6 MB (with test)">
|
---|
| 12 | <!ENTITY uchardet-time "less than 0.1 SBU (with test)">
|
---|
[fbbe92f] | 13 |
|
---|
| 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="uchardet" xreflabel="uchardet-&uchardet-version;">
|
---|
| 17 | <?dbhtml filename="uchardet.html"?>
|
---|
| 18 |
|
---|
| 19 |
|
---|
| 20 | <title>Uchardet-&uchardet-version;</title>
|
---|
| 21 |
|
---|
| 22 | <indexterm zone="uchardet">
|
---|
| 23 | <primary sortas="a-uchardet">uchardet</primary>
|
---|
| 24 | </indexterm>
|
---|
| 25 |
|
---|
| 26 | <sect2 role="package">
|
---|
| 27 | <title>Introduction to Uchardet</title>
|
---|
| 28 |
|
---|
| 29 | <para>
|
---|
| 30 | The <application>Uchardet</application> package contains an encoding
|
---|
[7ef2fd34] | 31 | detector library which takes a sequence of bytes in an unknown character
|
---|
[fbbe92f] | 32 | encoding and attempts to determine the encoding of the text.
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[7426e905] | 35 | &lfs122_checked;
|
---|
[fbbe92f] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&uchardet-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&uchardet-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &uchardet-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &uchardet-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &uchardet-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: &uchardet-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">Uchardet Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
| 75 | <xref linkend="cmake"/>
|
---|
| 76 | </para>
|
---|
| 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2 role="installation">
|
---|
| 81 | <title>Installation of Uchardet</title>
|
---|
| 82 |
|
---|
| 83 | <para>
|
---|
| 84 | Install <application>Uchardet</application> by running the following
|
---|
| 85 | commands:
|
---|
| 86 | </para>
|
---|
| 87 |
|
---|
| 88 | <screen><userinput>mkdir build &&
|
---|
| 89 | cd build &&
|
---|
[8558044] | 90 |
|
---|
[cbfa153] | 91 | cmake -D CMAKE_INSTALL_PREFIX=/usr \
|
---|
| 92 | -D BUILD_STATIC=OFF \
|
---|
| 93 | -W no-dev .. &&
|
---|
[fbbe92f] | 94 | make</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | <para>
|
---|
| 97 | To test the results, issue: <command>make test</command>.
|
---|
| 98 | </para>
|
---|
| 99 |
|
---|
| 100 | <para>
|
---|
| 101 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 102 | </para>
|
---|
| 103 |
|
---|
| 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2 role="commands">
|
---|
| 108 | <title>Command Explanations</title>
|
---|
| 109 |
|
---|
| 110 | <para>
|
---|
[cbfa153] | 111 | <parameter>-D BUILD_STATIC=OFF</parameter>: This switch disables building
|
---|
[fbbe92f] | 112 | the static version of the library.
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | </sect2>
|
---|
| 116 |
|
---|
| 117 | <sect2 role="content">
|
---|
| 118 | <title>Contents</title>
|
---|
| 119 |
|
---|
| 120 | <segmentedlist>
|
---|
| 121 | <segtitle>Installed Programs</segtitle>
|
---|
| 122 | <segtitle>Installed Libraries</segtitle>
|
---|
| 123 | <segtitle>Installed Directories</segtitle>
|
---|
| 124 |
|
---|
| 125 | <seglistitem>
|
---|
| 126 | <seg>
|
---|
| 127 | uchardet
|
---|
| 128 | </seg>
|
---|
| 129 | <seg>
|
---|
| 130 | libuchardet.so
|
---|
| 131 | </seg>
|
---|
| 132 | <seg>
|
---|
| 133 | /usr/include/uchardet
|
---|
| 134 | </seg>
|
---|
| 135 | </seglistitem>
|
---|
| 136 | </segmentedlist>
|
---|
| 137 |
|
---|
| 138 | <variablelist>
|
---|
| 139 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 140 | <?dbfo list-presentation="list"?>
|
---|
| 141 | <?dbhtml list-presentation="table"?>
|
---|
| 142 |
|
---|
| 143 | <varlistentry id="uchardet-prog">
|
---|
| 144 | <term><command>uchardet</command></term>
|
---|
| 145 | <listitem>
|
---|
| 146 | <para>
|
---|
[4c24eb0a] | 147 | detects what character set is used inside of a file
|
---|
[fbbe92f] | 148 | </para>
|
---|
| 149 | <indexterm zone="uchardet uchardet-prog">
|
---|
| 150 | <primary sortas="b-uchardet">uchardet</primary>
|
---|
| 151 | </indexterm>
|
---|
| 152 | </listitem>
|
---|
| 153 | </varlistentry>
|
---|
| 154 |
|
---|
| 155 | <varlistentry id="libuchardet">
|
---|
| 156 | <term><filename class="libraryfile">libuchardet.so</filename></term>
|
---|
| 157 | <listitem>
|
---|
| 158 | <para>
|
---|
[4c24eb0a] | 159 | provides an API for detecting the encoding of text in a file
|
---|
[fbbe92f] | 160 | </para>
|
---|
| 161 | <indexterm zone="uchardet libuchardet">
|
---|
| 162 | <primary sortas="c-libuchardet">libuchardet.so</primary>
|
---|
| 163 | </indexterm>
|
---|
| 164 | </listitem>
|
---|
| 165 | </varlistentry>
|
---|
| 166 | </variablelist>
|
---|
| 167 | </sect2>
|
---|
[4c24eb0a] | 168 |
|
---|
[fbbe92f] | 169 | </sect1>
|
---|