[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[036821b] | 2 | <!DOCTYPE sect2 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 |
|
---|
[301c411] | 7 | <!ENTITY charset-normalizer-download-http "https://files.pythonhosted.org/packages/source/c/charset-normalizer/charset-normalizer-&charset-normalizer-version;.tar.gz">
|
---|
[036821b] | 8 | <!ENTITY charset-normalizer-download-ftp " ">
|
---|
[569925c7] | 9 | <!ENTITY charset-normalizer-md5sum "&charset-normalizer-md5sum;">
|
---|
[234bc845] | 10 | <!ENTITY charset-normalizer-size "104 KB">
|
---|
| 11 | <!ENTITY charset-normalizer-buildsize "1.1 MB (add 19 MB for tests)">
|
---|
[72c62e4] | 12 | <!ENTITY charset-normalizer-time "less than 0.1 SBU (with tests)">
|
---|
[036821b] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect2 id="charset-normalizer" xreflabel="charset-normalizer-&charset-normalizer-version;">
|
---|
| 16 |
|
---|
[b3e18015] | 17 | <title>Charset-normalizer-&charset-normalizer-version;</title>
|
---|
[036821b] | 18 |
|
---|
| 19 | <indexterm zone="charset-normalizer">
|
---|
| 20 | <primary sortas="a-charset-normalizer">charset-normalizer</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect3 role="package">
|
---|
[b3e18015] | 24 | <title>Introduction to charset-normalizer Module</title>
|
---|
[036821b] | 25 |
|
---|
| 26 | <para>
|
---|
[301c411] | 27 | The <application>charset-normalizer</application> library helps
|
---|
[e343b67] | 28 | with reading text from an unknown character encoding.
|
---|
[036821b] | 29 | </para>
|
---|
| 30 |
|
---|
[09ddf35a] | 31 | &lfs122_checked;
|
---|
[036821b] | 32 |
|
---|
| 33 | <bridgehead renderas="sect4">Package Information</bridgehead>
|
---|
| 34 | <itemizedlist spacing="compact">
|
---|
| 35 | <listitem>
|
---|
| 36 | <para>
|
---|
| 37 | Download (HTTP): <ulink url="&charset-normalizer-download-http;"/>
|
---|
| 38 | </para>
|
---|
| 39 | </listitem>
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>
|
---|
| 42 | Download (FTP): <ulink url="&charset-normalizer-download-ftp;"/>
|
---|
| 43 | </para>
|
---|
| 44 | </listitem>
|
---|
| 45 | <listitem>
|
---|
| 46 | <para>
|
---|
| 47 | Download MD5 sum: &charset-normalizer-md5sum;
|
---|
| 48 | </para>
|
---|
| 49 | </listitem>
|
---|
| 50 | <listitem>
|
---|
| 51 | <para>
|
---|
| 52 | Download size: &charset-normalizer-size;
|
---|
| 53 | </para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>
|
---|
| 57 | Estimated disk space required: &charset-normalizer-buildsize;
|
---|
| 58 | </para>
|
---|
| 59 | </listitem>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>
|
---|
| 62 | Estimated build time: &charset-normalizer-time;
|
---|
| 63 | </para>
|
---|
| 64 | </listitem>
|
---|
| 65 | </itemizedlist>
|
---|
| 66 |
|
---|
[ef6402e] | 67 | <bridgehead renderas="sect4">Charset-normalizer Dependencies</bridgehead>
|
---|
| 68 |
|
---|
| 69 | <bridgehead renderas="sect5">Optional (for testing)</bridgehead>
|
---|
| 70 | <para role="optional">
|
---|
[6bc171b2] | 71 | <xref linkend="pytest"/>,
|
---|
| 72 | <xref linkend="python3"/> (rebuilt after installing
|
---|
[9ddc81e] | 73 | <xref role="nodep" linkend="sqlite"/>), and
|
---|
[ef6402e] | 74 | <ulink url="https://pypi.org/project/pytest-cov/">pytest-cov</ulink>
|
---|
| 75 | </para>
|
---|
| 76 |
|
---|
[036821b] | 77 | </sect3>
|
---|
| 78 |
|
---|
| 79 | <sect3 role="installation">
|
---|
[301c411] | 80 | <title>Installation of Charset-normalizer</title>
|
---|
[036821b] | 81 |
|
---|
| 82 | <para> Build the module: </para>
|
---|
| 83 |
|
---|
[082e722] | 84 | &build-wheel;
|
---|
[036821b] | 85 |
|
---|
| 86 | <para>
|
---|
[ef6402e] | 87 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
[036821b] | 88 | </para>
|
---|
| 89 |
|
---|
[082e722] | 90 | <screen role="root"><userinput>&install-wheel; charset-normalizer</userinput></screen>
|
---|
[ef6402e] | 91 |
|
---|
[036821b] | 92 | <para>
|
---|
[ef6402e] | 93 | Assuming <xref linkend="pytest"/> is installed, but the other optional
|
---|
| 94 | dependencies are not, the installation can be tested with the following
|
---|
| 95 | commands:
|
---|
[036821b] | 96 | </para>
|
---|
| 97 |
|
---|
[ef6402e] | 98 | <screen remap="test"><userinput>python3 -m venv --system-site-packages testenv &&
|
---|
| 99 | source testenv/bin/activate &&
|
---|
| 100 | pip3 install pytest-cov &&
|
---|
| 101 | python3 /usr/bin/pytest<!-- no && because of a possible error -->
|
---|
| 102 | deactivate</userinput></screen>
|
---|
[036821b] | 103 |
|
---|
| 104 | </sect3>
|
---|
| 105 |
|
---|
| 106 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 107 | href="../../../xincludes/pip3-cmd-explain.xml"/>
|
---|
| 108 |
|
---|
| 109 | <sect3 role="content">
|
---|
| 110 | <title>Contents</title>
|
---|
| 111 |
|
---|
| 112 | <segmentedlist>
|
---|
| 113 | <segtitle>Installed Programs</segtitle>
|
---|
| 114 | <segtitle>Installed Libraries</segtitle>
|
---|
| 115 | <segtitle>Installed Directories</segtitle>
|
---|
| 116 |
|
---|
| 117 | <seglistitem>
|
---|
[b3e18015] | 118 | <seg>normalizer</seg>
|
---|
[036821b] | 119 | <seg>None</seg>
|
---|
| 120 | <seg>
|
---|
[b3e18015] | 121 | /usr/lib/python&python3-majorver;/site-packages/charset_normalizer and
|
---|
| 122 | /usr/lib/python&python3-majorver;/site-packages/charset_normalizer-&charset-normalizer-version;.dist-info
|
---|
[036821b] | 123 | </seg>
|
---|
| 124 | </seglistitem>
|
---|
| 125 | </segmentedlist>
|
---|
| 126 |
|
---|
[b3e18015] | 127 | <variablelist>
|
---|
| 128 | <bridgehead renderas="sect5">Short Descriptions</bridgehead>
|
---|
| 129 | <?dbfo list-presentation="list"?>
|
---|
| 130 | <?dbhtml list-presentation="table"?>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="normalizer">
|
---|
| 133 | <term><command>normalizer</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>
|
---|
| 136 | is a Universal Charset Detector (discovers originating encoding
|
---|
| 137 | and normalizes text to unicode)
|
---|
| 138 | </para>
|
---|
| 139 | <indexterm zone="charset-normalizer normalizer">
|
---|
| 140 | <primary sortas="b-normalizer">normalizer</primary>
|
---|
| 141 | </indexterm>
|
---|
| 142 | </listitem>
|
---|
| 143 | </varlistentry>
|
---|
| 144 |
|
---|
| 145 | </variablelist>
|
---|
[036821b] | 146 | </sect3>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|