Imported upstream version 1.5
[manpages-zh.git] / src / man1 / sq.1
blob2c7574a5c034ffd3a8167bf4f6c9b63e4cf72009
1 .\"
2 .\" Copyright 1992, 1993, Geoff Kuenning, Granada Hills, CA
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\"
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\" 3. All modifications to the source code must be clearly marked as
15 .\"    such.  Binary redistributions based on modified source code
16 .\"    must be clearly marked as modified versions in the documentation
17 .\"    and/or other materials provided with the distribution.
18 .\" 4. All advertising materials mentioning features or use of this software
19 .\"    must display the following acknowledgment:
20 .\"      This product includes software developed by Geoff Kuenning and
21 .\"      other unpaid contributors.
22 .\" 5. The name of Geoff Kuenning may not be used to endorse or promote
23 .\"    products derived from this software without specific prior
24 .\"    written permission.
25 .\"
26 .\" THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
27 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 .\" ARE DISCLAIMED.  IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
30 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .\" SUCH DAMAGE.
37 .\"
38 .TH SQ 1 LOCAL
39 .SH NAME
40 sq \- 压缩一个排过序的单词列表
41 unsq \- 解压一个排过序的单词列表
43 .SH "总览 (SYNOPSIS)"
44 .B sq
45 < infile > outfile
46 .PP
47 .B unsq
48 < infile > outfile
50 .SH "描述 (DESCRIPTION)"
51 .I sq
52 压缩 一个 排过序的 单词 列表 (一个 字典). 比如:
53 .RS
54 sort /usr/dict/words | sq | compress > words.sq.Z
55 .RE
56 会 大概 以 4 为 因数 压缩 字典.
57 .PP
58 .I unsq
59 解压
60 .I sq
61 的 输出. 比如:
62 .RS
63 compress -d < words.sq.Z | unsq | sort -f -o words
64 .RE
65 会 解压 
66 .I sq
67 压缩 的 字典.
69 根据 文档 描述, 它 通过 省略 相同 的 词头 来 压缩, 用 一个 单独 的 字符 取代
70 这个 词头, 这个 字符 对 与 前一个词 相同的 字符数 进行 编码.
71 词头 的 大小 用 一个 编了码 的 可打印 的 字符 表示:
72 0-9 代表 0-9, A-Z 代表 10-35, a-z 代表 36-61.
74 .SH "作者 (AUTHOR)"
75 Mike Wexler
77 .SH "参见 (SEE ALSO)"
78 compress(1), sort(1).
80 .SH "[中文版维护人]"
81 .B 唐友 \<tony_ty@263.net\>
82 .SH "[中文版最新更新]"
83 .BR 2001/9/20
84 .SH "[中国Linux论坛man手册页翻译计划]"
85 .BI http://cmpp.linuxforum.net