source: general/genlib/libpaper.xml@ 0945dd2d

12.0 12.1 kea ken/TL2024 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 0945dd2d was 278f297, checked in by Xi Ruoyao <xry111@…>, 15 months ago

libpaper: Fix a typo ("nudump" should be "nodump")

  • Property mode set to 100644
File size: 5.4 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 <!ENTITY libpaper-download-http "https://github.com/rrthomas/libpaper/releases/download/v&libpaper-version;/libpaper-&libpaper-version;.tar.gz">
8 <!ENTITY libpaper-download-ftp " ">
9 <!ENTITY libpaper-md5sum "39322b429e795e33410db65b6d2fe163">
10 <!ENTITY libpaper-size "1.2 MB">
11 <!ENTITY libpaper-buildsize "11 MB (with tests)">
12 <!ENTITY libpaper-time "0.1 SBU (with tests)">
13]>
14
15<sect1 id="libpaper" xreflabel="libpaper-&libpaper-version;">
16 <?dbhtml filename="libpaper.html"?>
17
18
19 <title>libpaper-&libpaper-version;</title>
20
21 <indexterm zone="libpaper">
22 <primary sortas="a-libpaper">libpaper</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to libpaper</title>
27
28 <para>
29 This package is intended to provide a simple way for applications to take
30 actions based on a system or user-specified paper size.
31 </para>
32
33 &lfs113_checked;
34
35 <bridgehead renderas="sect3">Package Information</bridgehead>
36 <itemizedlist spacing="compact">
37 <listitem>
38 <para>
39 Download (HTTP): <ulink url="&libpaper-download-http;"/>
40 </para>
41 </listitem>
42 <listitem>
43 <para>
44 Download (FTP): <ulink url="&libpaper-download-ftp;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download MD5 sum: &libpaper-md5sum;
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download size: &libpaper-size;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Estimated disk space required: &libpaper-buildsize;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated build time: &libpaper-time;
65 </para>
66 </listitem>
67 </itemizedlist>
68
69 <para condition="html" role="usernotes">
70 User Notes: <ulink url="&blfs-wiki;/libpaper"/>
71 </para>
72
73 </sect2>
74
75 <sect2 role="installation">
76 <title>Installation of libpaper</title>
77
78 <para>
79 Install <application>libpaper</application> by running the following
80 commands:
81 </para>
82
83<screen><userinput>./configure --prefix=/usr \
84 --sysconfdir=/etc \
85 --disable-static \
86 --enable-relocatable \
87 --docdir=/usr/share/doc/paper-&libpaper-version; &amp;&amp;
88make</userinput></screen>
89
90 <para>
91 To test the results, issue: <command>make check</command>.
92 </para>
93
94 <para>
95 Now, as the &root; user:
96 </para>
97
98<screen role="root"><userinput>make install</userinput></screen>
99
100 </sect2>
101
102 <sect2 role="commands">
103 <title>Command Explanations</title>
104
105 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
106 href="../../xincludes/static-libraries.xml"/>
107
108 <para>
109 <option>--enable-relocatable</option>:
110 This option is needed to run the tests.
111 </para>
112
113 </sect2>
114
115 <sect2 role="configuration">
116 <title>Configuring libpaper</title>
117
118 <sect3>
119 <title>Configuration Information</title>
120
121 <para>
122 The paper size is automatically determined from the system locale;
123 see <literal>LC_PAPER</literal> in <filename>locale(7)</filename>.
124 If you want to override it, create a <filename>papersize</filename>
125 file in the user configuration directory. For example:
126 </para>
127
128<screen role="nodump"><userinput>mkdir -pv ~/.config &amp;&amp;
129echo "a4" &gt; ~/.config/papersize</userinput></screen>
130
131 <para>
132 If you want to override the paper size globally (for all users),
133 set up the <envar>PAPERSIZE</envar> environment variable. For
134 example:
135 </para>
136
137<screen role="nodump"><userinput>echo "PAPERSIZE=a4" &gt; /etc/profile.d/libpaper.sh</userinput></screen>
138
139 <para>
140 You may use a different paper size, such as
141 <quote><literal>letter</literal></quote>.
142 </para>
143
144 </sect3>
145
146 </sect2>
147
148 <sect2 role="content">
149 <title>Contents</title>
150
151 <segmentedlist>
152 <segtitle>Installed Programs</segtitle>
153 <segtitle>Installed Library</segtitle>
154 <segtitle>Installed Directories</segtitle>
155
156 <seglistitem>
157 <seg>
158 paper
159 </seg>
160 <seg>
161 libpaper.so
162 </seg>
163 <seg>
164 /usr/share/doc/paper-&libpaper-version;
165 </seg>
166 </seglistitem>
167 </segmentedlist>
168
169 <variablelist>
170 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
171 <?dbfo list-presentation="list"?>
172 <?dbhtml list-presentation="table"?>
173
174 <varlistentry id="paper">
175 <term><command>paper</command></term>
176 <listitem>
177 <para>
178 prints paper configuration information
179 </para>
180 <indexterm zone="libpaper paper">
181 <primary sortas="b-paper">paper</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="libpaper-lib">
187 <term><filename class="libraryfile">libpaper.so</filename></term>
188 <listitem>
189 <para>
190 contains functions for interrogating the paper library
191 </para>
192 <indexterm zone="libpaper libpaper-lib">
193 <primary sortas="c-libpaper">libpaper.so</primary>
194 </indexterm>
195 </listitem>
196 </varlistentry>
197
198 </variablelist>
199
200 </sect2>
201
202</sect1>
Note: See TracBrowser for help on using the repository browser.