Skip to content
Snippets Groups Projects
Commit 6ce08a2ab384 authored by Lasse Collin's avatar Lasse Collin
Browse files

xz: Avoid the abbreviation "e.g." on the man page.

A few are simply omitted, most are converted to "for example"
and surrounded with commas. Sounds like that this is better
style, for example, man-pages(7) recommends avoiding such
abbreviations except in parenthesis.

Thanks to Bjarni Ingi Gislason.
parent a71001c7063d
No related branches found
No related tags found
No related merge requests found
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
.\" This file has been put into the public domain. .\" This file has been put into the public domain.
.\" You can do whatever you want with this file. .\" You can do whatever you want with this file.
.\" .\"
.TH XZ 1 "2020-03-23" "Tukaani" "XZ Utils" .TH XZ 1 "2020-11-01" "Tukaani" "XZ Utils"
. .
.SH NAME .SH NAME
xz, unxz, xzcat, lzma, unlzma, lzcat \- Compress or decompress .xz and .lzma files xz, unxz, xzcat, lzma, unlzma, lzcat \- Compress or decompress .xz and .lzma files
...@@ -221,7 +221,7 @@ ...@@ -221,7 +221,7 @@
has a built-in memory usage limiter, which is disabled by default. has a built-in memory usage limiter, which is disabled by default.
While some operating systems provide ways to limit While some operating systems provide ways to limit
the memory usage of processes, relying on it the memory usage of processes, relying on it
wasn't deemed to be flexible enough (e.g. using wasn't deemed to be flexible enough (for example, using
.BR ulimit (1) .BR ulimit (1)
to limit virtual memory tends to cripple to limit virtual memory tends to cripple
.BR mmap (2)). .BR mmap (2)).
...@@ -231,7 +231,7 @@ ...@@ -231,7 +231,7 @@
Often it is more convenient to enable the limiter Often it is more convenient to enable the limiter
by default by setting the environment variable by default by setting the environment variable
.BR XZ_DEFAULTS , .BR XZ_DEFAULTS ,
e.g.\& for example,
.BR XZ_DEFAULTS=\-\-memlimit=150MiB . .BR XZ_DEFAULTS=\-\-memlimit=150MiB .
It is possible to set the limits separately It is possible to set the limits separately
for compression and decompression for compression and decompression
...@@ -256,7 +256,7 @@ ...@@ -256,7 +256,7 @@
or \fB\-\-no\-adjust\fR). or \fB\-\-no\-adjust\fR).
This way the operation won't fail unless the limit is very small. This way the operation won't fail unless the limit is very small.
The scaling of the settings is done in steps that don't The scaling of the settings is done in steps that don't
match the compression level presets, e.g. if the limit is match the compression level presets, for example, if the limit is
only slightly less than the amount required for only slightly less than the amount required for
.BR "xz \-9" , .BR "xz \-9" ,
the settings will be scaled down only a little, the settings will be scaled down only a little,
...@@ -276,7 +276,7 @@ ...@@ -276,7 +276,7 @@
or after the last part. or after the last part.
The padding must consist of null bytes and the size The padding must consist of null bytes and the size
of the padding must be a multiple of four bytes. of the padding must be a multiple of four bytes.
This can be useful e.g. if the This can be useful, for example, if the
.B .xz .B .xz
file is stored on a medium that measures file sizes file is stored on a medium that measures file sizes
in 512-byte blocks. in 512-byte blocks.
...@@ -373,7 +373,7 @@ ...@@ -373,7 +373,7 @@
twice, but note that this may be slow, because getting all the extra twice, but note that this may be slow, because getting all the extra
information requires many seeks. information requires many seeks.
The width of verbose output exceeds The width of verbose output exceeds
80 characters, so piping the output to e.g.\& 80 characters, so piping the output to, for example,
.B "less\ \-S" .B "less\ \-S"
may be convenient if the terminal isn't wide enough. may be convenient if the terminal isn't wide enough.
.IP "" .IP ""
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
decompressor memory usage reasonable even for old systems. decompressor memory usage reasonable even for old systems.
.B \-6 .B \-6
is the default, which is usually a good choice is the default, which is usually a good choice
e.g. for distributing files that need to be decompressible for distributing files that need to be decompressible
even on systems with only 16\ MiB RAM. even on systems with only 16\ MiB RAM.
.RB ( \-5e .RB ( \-5e
or or
...@@ -1253,7 +1253,7 @@ ...@@ -1253,7 +1253,7 @@
.I lc .I lc
bits of the previous uncompressed byte correlate bits of the previous uncompressed byte correlate
with the next byte. with the next byte.
E.g. in typical English text, an upper-case letter is For example, in typical English text, an upper-case letter is
often followed by a lower-case letter, and a lower-case often followed by a lower-case letter, and a lower-case
letter is usually followed by another lower-case letter. letter is usually followed by another lower-case letter.
In the US-ASCII character set, the highest three bits are 010 In the US-ASCII character set, the highest three bits are 010
...@@ -1268,7 +1268,7 @@ ...@@ -1268,7 +1268,7 @@
.BR lc=4 . .BR lc=4 .
Sometimes it helps a little, and Sometimes it helps a little, and
sometimes it makes compression worse. sometimes it makes compression worse.
If it makes it worse, test e.g.\& If it makes it worse, test
.B lc=2 .B lc=2
too. too.
.TP .TP
...@@ -1297,7 +1297,7 @@ ...@@ -1297,7 +1297,7 @@
When the alignment is known, setting When the alignment is known, setting
.I pb .I pb
accordingly may reduce the file size a little. accordingly may reduce the file size a little.
E.g. with text files having one-byte For example, with text files having one-byte
alignment (US-ASCII, ISO-8859-*, UTF-8), setting alignment (US-ASCII, ISO-8859-*, UTF-8), setting
.B pb=0 .B pb=0
can improve compression slightly. can improve compression slightly.
...@@ -1551,7 +1551,7 @@ ...@@ -1551,7 +1551,7 @@
.RS .RS
.IP \(bu 3 .IP \(bu 3
Some types of files containing executable code Some types of files containing executable code
(e.g. object files, static libraries, and Linux kernel modules) (for example, object files, static libraries, and Linux kernel modules)
have the addresses in the instructions filled with filler values. have the addresses in the instructions filled with filler values.
These BCJ filters will still do the address conversion, These BCJ filters will still do the address conversion,
which will make the compression worse with these files. which will make the compression worse with these files.
...@@ -1625,8 +1625,8 @@ ...@@ -1625,8 +1625,8 @@
in the filter chain. in the filter chain.
.IP "" .IP ""
Currently only simple byte-wise delta calculation is supported. Currently only simple byte-wise delta calculation is supported.
It can be useful when compressing e.g. uncompressed bitmap images It can be useful when compressing, for example, uncompressed bitmap images
or uncompressed PCM audio. or uncompressed PCM audio.
However, special purpose algorithms may give significantly better However, special purpose algorithms may give significantly better
results than Delta + LZMA2. results than Delta + LZMA2.
This is true especially with audio, This is true especially with audio,
...@@ -1629,8 +1629,8 @@ ...@@ -1629,8 +1629,8 @@
or uncompressed PCM audio. or uncompressed PCM audio.
However, special purpose algorithms may give significantly better However, special purpose algorithms may give significantly better
results than Delta + LZMA2. results than Delta + LZMA2.
This is true especially with audio, This is true especially with audio,
which compresses faster and better e.g. with which compresses faster and better, for example, with
.BR flac (1). .BR flac (1).
.IP "" .IP ""
Supported Supported
...@@ -1701,7 +1701,7 @@ ...@@ -1701,7 +1701,7 @@
.B xz .B xz
started processing the file. started processing the file.
The time is shown in a less precise format which The time is shown in a less precise format which
never has any colons, e.g. 2 min 30 s. never has any colons, for example, 2 min 30 s.
.RE .RE
.IP "" .IP ""
When standard error is not a terminal, When standard error is not a terminal,
...@@ -1714,7 +1714,7 @@ ...@@ -1714,7 +1714,7 @@
decompressing the file. decompressing the file.
The speed and elapsed time are included only when The speed and elapsed time are included only when
the operation took at least a few seconds. the operation took at least a few seconds.
If the operation didn't finish, e.g. due to user interruption, If the operation didn't finish, for example, due to user interruption,
also the completion percentage is printed also the completion percentage is printed
if the size of the input file is known. if the size of the input file is known.
.TP .TP
...@@ -1916,7 +1916,7 @@ ...@@ -1916,7 +1916,7 @@
.IP 5. 4 .IP 5. 4
Uncompressed size of the file Uncompressed size of the file
.IP 6. 4 .IP 6. 4
Compression ratio, for example Compression ratio, for example,
.BR 0.123 . .BR 0.123 .
If ratio is over 9.999, three dashes If ratio is over 9.999, three dashes
.RB ( \-\-\- ) .RB ( \-\-\- )
...@@ -2168,5 +2168,5 @@ ...@@ -2168,5 +2168,5 @@
when it is not possible to set the options directly on the when it is not possible to set the options directly on the
.B xz .B xz
command line. command line.
This is the case e.g. when This is the case when
.B xz .B xz
...@@ -2172,5 +2172,5 @@ ...@@ -2172,5 +2172,5 @@
.B xz .B xz
is run by a script or tool, e.g. GNU is run by a script or tool, for example, GNU
.BR tar (1): .BR tar (1):
.RS .RS
.RS .RS
...@@ -2184,7 +2184,7 @@ ...@@ -2184,7 +2184,7 @@
.RE .RE
.IP "" .IP ""
Scripts may use Scripts may use
.B XZ_OPT .BR XZ_OPT ,
e.g. to set script-specific default compression options. for example, to set script-specific default compression options.
It is still recommended to allow users to override It is still recommended to allow users to override
.B XZ_OPT .B XZ_OPT
...@@ -2189,6 +2189,7 @@ ...@@ -2189,6 +2189,7 @@
It is still recommended to allow users to override It is still recommended to allow users to override
.B XZ_OPT .B XZ_OPT
if that is reasonable, e.g. in if that is reasonable.
For example, in
.BR sh (1) .BR sh (1)
scripts one may use something like this: scripts one may use something like this:
.RS .RS
...@@ -2284,7 +2285,7 @@ ...@@ -2284,7 +2285,7 @@
and use end-of-payload marker to indicate and use end-of-payload marker to indicate
where the decompressor should stop. where the decompressor should stop.
LZMA Utils uses this method when uncompressed size isn't known, LZMA Utils uses this method when uncompressed size isn't known,
which is the case for example in pipes. which is the case, for example, in pipes.
.PP .PP
.B xz .B xz
supports decompressing supports decompressing
...@@ -2480,7 +2481,7 @@ ...@@ -2480,7 +2481,7 @@
with the preset with the preset
.B \-4e .B \-4e
.RB ( "\-4 \-\-extreme" ), .RB ( "\-4 \-\-extreme" ),
which is slower than e.g. the default which is slower than the default
.BR \-6 , .BR \-6 ,
but needs less memory for compression and decompression (48\ MiB but needs less memory for compression and decompression (48\ MiB
and 5\ MiB, respectively): and 5\ MiB, respectively):
...@@ -2634,6 +2635,6 @@ ...@@ -2634,6 +2635,6 @@
.RE .RE
.PP .PP
If you know that a file requires If you know that a file requires
somewhat big dictionary (e.g. 32 MiB) to compress well, somewhat big dictionary (for example, 32\ MiB) to compress well,
but you want to compress it quicker than but you want to compress it quicker than
.B "xz \-8" .B "xz \-8"
...@@ -2638,6 +2639,6 @@ ...@@ -2638,6 +2639,6 @@
but you want to compress it quicker than but you want to compress it quicker than
.B "xz \-8" .B "xz \-8"
would do, a preset with a low CompCPU value (e.g. 1) would do, a preset with a low CompCPU value (for example, 1)
can be modified to use a bigger dictionary: can be modified to use a bigger dictionary:
.RS .RS
.PP .PP
...@@ -2687,9 +2688,8 @@ ...@@ -2687,9 +2688,8 @@
so the above command isn't useful for small files. so the above command isn't useful for small files.
.PP .PP
Sometimes the compression time doesn't matter, Sometimes the compression time doesn't matter,
but the decompressor memory usage has to be kept low but the decompressor memory usage has to be kept low, for example,
e.g. to make it possible to decompress the file on to make it possible to decompress the file on an embedded system.
an embedded system.
The following command uses The following command uses
.B \-6e .B \-6e
.RB ( "\-6 \-\-extreme" ) .RB ( "\-6 \-\-extreme" )
...@@ -2720,7 +2720,7 @@ ...@@ -2720,7 +2720,7 @@
and and
.I pb .I pb
are more important. are more important.
E.g. a source code archive contains mostly US-ASCII text, For example, a source code archive contains mostly US-ASCII text,
so something like the following might give so something like the following might give
slightly (like 0.1\ %) smaller file than slightly (like 0.1\ %) smaller file than
.B "xz \-6e" .B "xz \-6e"
...@@ -2737,7 +2737,7 @@ ...@@ -2737,7 +2737,7 @@
.PP .PP
Using another filter together with LZMA2 can improve Using another filter together with LZMA2 can improve
compression with certain file types. compression with certain file types.
E.g. to compress a x86-32 or x86-64 shared library For example, to compress a x86-32 or x86-64 shared library
using the x86 BCJ filter: using the x86 BCJ filter:
.RS .RS
.PP .PP
...@@ -2766,6 +2766,6 @@ ...@@ -2766,6 +2766,6 @@
delta but uses Deflate for the actual compression. delta but uses Deflate for the actual compression.
.PP .PP
The image has to be saved in uncompressed format, The image has to be saved in uncompressed format,
e.g. as uncompressed TIFF. for example, as uncompressed TIFF.
The distance parameter of the Delta filter is set The distance parameter of the Delta filter is set
to match the number of bytes per pixel in the image. to match the number of bytes per pixel in the image.
...@@ -2770,6 +2770,6 @@ ...@@ -2770,6 +2770,6 @@
The distance parameter of the Delta filter is set The distance parameter of the Delta filter is set
to match the number of bytes per pixel in the image. to match the number of bytes per pixel in the image.
E.g. 24-bit RGB bitmap needs For example, 24-bit RGB bitmap needs
.BR dist=3 , .BR dist=3 ,
and it is also good to pass and it is also good to pass
.B pb=0 .B pb=0
...@@ -2783,7 +2783,7 @@ ...@@ -2783,7 +2783,7 @@
.fi .fi
.RE .RE
.PP .PP
If multiple images have been put into a single archive (e.g.\& If multiple images have been put into a single archive (for example,
.BR .tar ), .BR .tar ),
the Delta filter will work on that too as long as all images the Delta filter will work on that too as long as all images
have the same number of bytes per pixel. have the same number of bytes per pixel.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment