2014-08-28 22:44:20 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2023-03-10 03:57:26 +08:00
|
|
|
<!ENTITY libpaper-download-http "https://github.com/rrthomas/libpaper/releases/download/v&libpaper-version;/libpaper-&libpaper-version;.tar.gz">
|
2017-11-05 06:26:51 +08:00
|
|
|
<!ENTITY libpaper-download-ftp " ">
|
2023-10-19 10:29:00 +08:00
|
|
|
<!ENTITY libpaper-md5sum "0acc7c74c962f1bdebdc414e85cc35fc">
|
2023-03-10 03:57:26 +08:00
|
|
|
<!ENTITY libpaper-size "1.2 MB">
|
|
|
|
<!ENTITY libpaper-buildsize "11 MB (with tests)">
|
|
|
|
<!ENTITY libpaper-time "0.1 SBU (with tests)">
|
2014-08-28 22:44:20 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="libpaper" xreflabel="libpaper-&libpaper-version;">
|
|
|
|
<?dbhtml filename="libpaper.html"?>
|
|
|
|
|
|
|
|
|
|
|
|
<title>libpaper-&libpaper-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="libpaper">
|
|
|
|
<primary sortas="a-libpaper">libpaper</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to libpaper</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This package is intended to provide a simple way for applications to take
|
|
|
|
actions based on a system or user-specified paper size.
|
|
|
|
</para>
|
|
|
|
|
2023-08-20 04:19:27 +08:00
|
|
|
&lfs120_checked;
|
2014-08-28 22:44:20 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&libpaper-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&libpaper-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &libpaper-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &libpaper-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &libpaper-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &libpaper-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of libpaper</title>
|
|
|
|
|
|
|
|
<para>
|
2020-03-10 22:12:43 +08:00
|
|
|
Install <application>libpaper</application> by running the following
|
|
|
|
commands:
|
2014-08-28 22:44:20 +08:00
|
|
|
</para>
|
|
|
|
|
2023-03-10 03:57:26 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--disable-static \
|
|
|
|
--enable-relocatable \
|
2023-05-07 11:19:40 +08:00
|
|
|
--docdir=/usr/share/doc/libpaper-&libpaper-version; &&
|
2014-09-18 12:56:07 +08:00
|
|
|
make</userinput></screen>
|
2014-08-28 22:44:20 +08:00
|
|
|
|
2020-03-10 22:12:43 +08:00
|
|
|
<para>
|
2023-03-10 03:57:26 +08:00
|
|
|
To test the results, issue: <command>make check</command>.
|
2020-03-10 22:12:43 +08:00
|
|
|
</para>
|
2014-08-28 22:44:20 +08:00
|
|
|
|
|
|
|
<para>
|
2023-03-10 03:57:26 +08:00
|
|
|
Now, as the &root; user:
|
2014-08-28 22:44:20 +08:00
|
|
|
</para>
|
|
|
|
|
2023-03-10 03:57:26 +08:00
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
2014-08-28 22:44:20 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/static-libraries.xml"/>
|
|
|
|
|
2020-03-10 22:12:43 +08:00
|
|
|
<para>
|
2023-12-09 05:03:47 +08:00
|
|
|
<parameter>--enable-relocatable</parameter>:
|
|
|
|
This switch is needed to run the tests.
|
2020-03-10 22:12:43 +08:00
|
|
|
</para>
|
2023-03-10 03:57:26 +08:00
|
|
|
|
2014-09-01 07:10:20 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="configuration">
|
|
|
|
<title>Configuring libpaper</title>
|
|
|
|
|
|
|
|
<sect3>
|
|
|
|
<title>Configuration Information</title>
|
|
|
|
|
2020-03-10 22:12:43 +08:00
|
|
|
<para>
|
2023-03-11 12:05:54 +08:00
|
|
|
The paper size is automatically determined from the system locale;
|
|
|
|
see <literal>LC_PAPER</literal> in <filename>locale(7)</filename>.
|
|
|
|
If you want to override it, create a <filename>papersize</filename>
|
|
|
|
file in the user configuration directory. For example:
|
2020-03-10 22:12:43 +08:00
|
|
|
</para>
|
2014-09-01 07:10:20 +08:00
|
|
|
|
2023-03-11 15:41:46 +08:00
|
|
|
<screen role="nodump"><userinput>mkdir -pv ~/.config &&
|
2023-03-11 12:05:54 +08:00
|
|
|
echo "a4" > ~/.config/papersize</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
If you want to override the paper size globally (for all users),
|
|
|
|
set up the <envar>PAPERSIZE</envar> environment variable. For
|
|
|
|
example:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="nodump"><userinput>echo "PAPERSIZE=a4" > /etc/profile.d/libpaper.sh</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
You may use a different paper size, such as
|
|
|
|
<quote><literal>letter</literal></quote>.
|
|
|
|
</para>
|
2014-09-01 07:10:20 +08:00
|
|
|
|
|
|
|
</sect3>
|
|
|
|
|
2014-08-28 22:44:20 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
2023-04-19 04:39:58 +08:00
|
|
|
paper and
|
|
|
|
paperconf
|
2014-08-28 22:44:20 +08:00
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libpaper.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
2023-05-07 11:19:40 +08:00
|
|
|
/usr/share/doc/libpaper-&libpaper-version;
|
2014-08-28 22:44:20 +08:00
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
2023-03-10 03:57:26 +08:00
|
|
|
<varlistentry id="paper">
|
|
|
|
<term><command>paper</command></term>
|
2014-08-28 22:44:20 +08:00
|
|
|
<listitem>
|
2020-03-10 22:12:43 +08:00
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
prints paper configuration information
|
2020-03-10 22:12:43 +08:00
|
|
|
</para>
|
2023-03-10 03:57:26 +08:00
|
|
|
<indexterm zone="libpaper paper">
|
|
|
|
<primary sortas="b-paper">paper</primary>
|
2014-08-28 22:44:20 +08:00
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2023-04-19 04:39:58 +08:00
|
|
|
<varlistentry id="paperconf">
|
|
|
|
<term><command>paperconf</command></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
prints paper configuration information in a compatibility mode
|
|
|
|
</para>
|
|
|
|
<indexterm zone="libpaper paperconf">
|
|
|
|
<primary sortas="b-paperconf">paperconf</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2014-08-28 22:44:20 +08:00
|
|
|
<varlistentry id="libpaper-lib">
|
|
|
|
<term><filename class="libraryfile">libpaper.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains functions for interrogating the paper library
|
2014-08-28 22:44:20 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="libpaper libpaper-lib">
|
|
|
|
<primary sortas="c-libpaper">libpaper.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|