2 .\" Japanese Version Copyright (c) 1999-2000 Yuichi SATO
3 .\" all rights reserved.
4 .\" Translated Fri Sep 17 03:26:44 JST 1999
5 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
6 .\" Modified Wed Jun 28 01:55:54 JST 2000
7 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
8 .\" Updated Tue Oct 10 22:29:13 JST 2000
9 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
10 .\" Updated Wed Nov 22 05:26:31 JST 2000
11 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
12 .\" Modified Fri Dec 1 18:58:22 JST 2000
13 .\" by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
16 .\"WORD: pound sign シャープ記号
18 .TH LESSKEY 1 "Version 358: 08 Jul 2000"
21 .\"O lesskey \- specify key bindings for less
22 lesskey \- less のキー割り当てを指定する
25 .B "lesskey [-o output] [--] [input]"
27 .B "lesskey [--output=output] [--] [input]"
31 .B "lesskey --version"
35 .\"O is used to specify a set of key bindings to be used by
37 .\"O The input file is a text file which describes the key bindings,
38 .\"O If the input file is "-", standard input is read.
39 .\"O If no input file is specified, a standard filename is used
40 .\"O as the name of the input file, which depends on the system being used:
44 で使われるキー割り当てのセットを指定するために使われる。
45 入力ファイルはキー割り当てを記述したテキストファイルである。
46 入力ファイルが "-" のときは、標準入力が読まれる。
49 標準のファイル名が入力ファイルの名前として使われる。
50 .\"O On Unix systems, $HOME/.lesskey is used;
51 .\"O on MS-DOS systems, $HOME/_lesskey is used;
52 .\"O and on OS/2 systems $HOME/lesskey.ini is used,
53 .\"O or $INIT/lesskey.ini if $HOME is undefined.
54 .\"O The output file is a binary file which is used by
56 Unix では $HOME/.lesskey が使われる。
57 MS-DOS では $HOME/_lesskey が使われる。
58 OS/2 では $HOME/lesskey.ini が使われ、
59 $HOME が定義されないときは $INIT/lesskey.ini が使われる。
63 .\"O If no output file is specified,
64 .\"O and the environment variable LESSKEY is set,
65 .\"O the value of LESSKEY is used as the name of the output file.
66 .\"O Otherwise, a standard filename is used as the name of the output file,
67 .\"O which depends on the system being used:
68 .\"O On Unix and OS-9 systems, $HOME/.less is used;
69 .\"O on MS-DOS systems, $HOME/_less is used;
70 .\"O and on OS/2 systems, $HOME/less.ini is used,
71 .\"O or $INIT/less.ini if $HOME is undefined.
72 .\"O If the output file already exists,
74 .\"O will overwrite it.
76 環境変数 LESSKEY が設定されている場合、
77 LESSKEY の値が出力ファイルの名前として使われる。
80 標準のファイル名が出力ファイルの名前として使われる。
81 UNIX と OS-9 では $HOME/.less が使われる。
82 MS-DOS では $HOME/_less が使われる。
83 OS/2 では $HOME/less.ini が使われ、
84 $HOME が定義されないときは $INIT/less.ini が使われる。
89 .\"O The -V or --version option causes
91 .\"O to print its version number and immediately exit.
92 .\"O If -V or --version is present, other options and arguments are ignored.
93 -V と --version オプションは、
95 にバージョン番号を表示させて、すぐに終了させる。
96 -V または --version オプションが指定された場合、
99 .\"O The input file consists of one or more
101 .\"O Each section starts with a line that identifies the type of section.
102 .\"O Possible sections are:
104 .\"O Defines new command keys.
106 .\"O Defines new line-editing keys.
108 .\"O Defines environment variables.
112 各セクションは、セクションのタイプを識別する行から始まる。
121 .\"O Blank lines and lines which start with a pound sign (#) are ignored,
122 .\"O except for the special section header lines.
124 シャープ記号 (#) から始まる行は無視される。
126 .\"O .SH "COMMAND SECTION"
128 .\"O The command section begins with the line
133 .\"O If the command section is the first section in the file,
134 .\"O this line may be omitted.
135 .\"O The command section consists of lines of the form:
136 コマンドセクションがファイルの中での最初のセクションである場合、
138 コマンドラインセクションは次の形式の行から構成される。
140 \fIstring\fP <whitespace> \fIaction\fP [extra-string] <newline>
142 .\"O Whitespace is any sequence of one or more spaces and/or tabs.
143 .\"O The \fIstring\fP is the command key(s) which invoke the action.
144 .\"O The \fIstring\fP may be a single command key, or a sequence of up to 15 keys.
145 .\"O The \fIaction\fP is the name of the less action, from the list below.
146 .\"O The characters in the \fIstring\fP may appear literally, or be
147 .\"O prefixed by a caret to indicate a control key.
148 .\"O A backslash followed by one to three octal digits may be used to
149 .\"O specify a character by its octal value.
150 .\"O A backslash followed by certain characters specifies input
151 .\"O characters as follows:
152 whitespace (空白) とはスペースとタブを 1 つ以上並べたものである。
153 \fIstring\fP はアクションを起こすコマンドキーである。
154 \fIstring\fP は 1 つのコマンドキー、または 15 個までのキーである。
155 \fIaction\fP は下のリストにある less のアクションである。
156 \fIstring\fP 中の文字はコマンドの文字通り、もしくは、
157 コントロールキーを示すためにキャレット (^) を前において表す。
158 バックスラッシュと、それに続く 3 桁までの 8 進数は、
159 文字を 8 進数で指定するために使われる。
160 .\"A backslash followed by certain characters specifies input
161 .\"characters as follows:
162 バックスラッシュとその後に続く文字により、次のような入力文字を指定する。
192 .\"O A backslash followed by any other character indicates that character is
193 .\"O to be taken literally.
194 .\"O Characters which must be preceded by backslash include
195 .\"O caret, space, tab and the backslash itself.
196 バックスラッシュの後に続く上に挙げた以外の文字は、
197 その文字が特殊文字としてでなく、文字通りに使われることを意味している。
198 バックスラッシュを前に置かなければならない文字は、
199 キャレット・スペース・タブ・バックスラッシュ自身である。
201 .\"O An action may be followed by an "extra" string.
202 .\"O When such a command is entered while running
204 .\"O the action is performed, and then the extra
205 .\"O string is parsed, just as if it were typed in to
207 .\"O This feature can be used in certain cases to extend
208 .\"O the functionality of a command.
209 .\"O For example, see the "{" and ":t" commands in the example below.
210 .\"O The extra string has a special meaning for the "quit" action:
213 .\"O quits, first character of the extra string is used as its exit status.
214 アクションの後に "extra" string を続けることもできる。
216 が実行されているときにそのようなコマンドが入力されると、
217 アクションが実行された後、extra string が
220 この特色はコマンドの機能を拡張する場合に使われる。
221 下の "{" と ":t" コマンドの例を参照すること。
222 アクションが "quit" の場合、extra string は特別な意味を持つ。
224 が終了するとき、extra string の最初の 1 文字が終了ステータスとして使われる。
228 .\"O The following input file describes the set of
229 .\"O default command keys used by less:
230 下の入力ファイルは、less で使われるデフォルトの
265 \ee\e40 forw-screen-force
300 \een repeat-search-all
302 \eeN reverse-search-all
343 .\"O Commands specified by
345 .\"O take precedence over the default commands.
346 .\"O A default command key may be disabled by including it in the
347 .\"O input file with the action "invalid".
348 .\"O Alternatively, a key may be defined
349 .\"O to do nothing by using the action "noaction".
350 .\"O "noaction" is similar to "invalid", but
352 .\"O will give an error beep for an "invalid" command,
353 .\"O but not for a "noaction" command.
354 .\"O In addition, ALL default commands may be disabled by
355 .\"O adding this control line to the input file:
359 .\"O This will cause all default commands to be ignored.
360 .\"O The #stop line should be the last line in that section of the file.
362 で指定されるコマンドは、デフォルトのコマンドより優先される。
363 action を "invalid" としたコマンドを入力ファイルに入れておくと、
364 デフォルトのコマンドキーを使用不可にすることができる。
365 また、action のところを "noaction" と記述することで、
367 "noaction" は "invalid" に似ているが、
369 は "invalid" コマンドに対してエラーのビープ音を鳴らすが、
370 "noaction" コマンドに対しては何もしない。
371 さらに、次のコントロール行を入力ファイルに追加すると、
372 全てのデフォルトのコマンドが不可にできる。
376 これにより、全てのデフォルトコマンドは無視される。
377 #stop 行は、ファイルのそのセクションの最後の行に置かれなければならない。
379 .\"O Be aware that #stop can be dangerous.
380 .\"O Since all default commands are disabled,
381 .\"O you must provide sufficient commands before the #stop line
382 .\"O to enable all necessary actions.
383 .\"O For example, failure to provide a "quit" command can lead to frustration.
384 #stop は危険であることを理解しておかなければならない。
385 #stop により全てのデフォルトコマンドが不可にされるので、
386 必要な全てのアクションを可能にするためには
387 #stop 行の前に必要なコマンドを指定しなければならない。
388 例えば、"quit" コマンドを指定しないと使いづらくなる。
390 .\"O .SH "LINE EDITING SECTION"
392 .\"O The line-editing section begins with the line:
396 .\"O This section specifies new key bindings for the line editing commands,
397 .\"O in a manner similar to the way key bindings for
398 .\"O ordinary commands are specified in the #command section.
399 .\"O The line-editing section consists of a list of keys and actions,
400 .\"O one per line as in the example below.
401 ラインエディットセクションは次の行で始まる。
405 このセクションは、#command セクションで一般のコマンドの新しいキー割り当てを
407 ラインエディットコマンドの新しいキー割り当てを指定する。
408 ラインエディットセクションは、下の例のように 1 行毎の
413 .\"O The following input file describes the set of
414 .\"O default line-editing keys used by less:
416 デフォルトのラインエディットキーのセットを記述している。
439 \ee\eb word-backspace
450 .\"O .SH "LESS ENVIRONMENT VARIABLES"
452 .\"O The environment variable section begins with the line
457 .\"O Following this line is a list of environment variable assignments.
458 .\"O Each line consists of an environment variable name, an equals sign (=)
459 .\"O and the value to be assigned to the environment variable.
460 .\"O White space before and after the equals sign is ignored.
461 .\"O Variables assigned in this way are visible only to
463 .\"O If a variable is specified in the system environment and also in a
464 .\"O lesskey file, the value in the lesskey file takes precedence.
465 .\"O Although the lesskey file can be used to override variables set in the
466 .\"O environment, the main purpose of assigning variables in the lesskey file
467 .\"O is simply to have all
469 .\"O configuration information stored in one file.
470 この行の後には、環境変数の割り当てリストが続く。
471 各行は、環境変数名・イコール記号 (=)・環境変数に割り当てる値、
477 ある変数がシステム環境でも lesskey ファイルでも指定されている場合、
478 lesskey ファイルでの値が優先される。
479 lesskey ファイルは環境変数を上書きするために使うこともできるが、
480 lesskey ファイルで環境変数を設定する主な目的は、
482 の全ての設定情報を 1 つのファイルに収めることである。
486 .\"O The following input file sets the -i option whenever
488 .\"O is run, and specifies the character set to be "latin1":
492 文字セットを "latin1" にするように指定している。
507 .\"O It is not possible to specify special keys, such as uparrow,
508 .\"O in a keyboard-independent manner.
509 .\"O The only way to specify such keys is to specify the escape sequence
510 .\"O which a particular keyboard sends when such a keys is pressed.
511 上矢印のような特殊キーをキーボードに依存しない方法で指定することは
513 そのような特殊キーを指定する唯一の方法は、
514 そのキーが押されたときにキーボードが送るエスケープシーケンスを
517 .\"O On MS-DOS and OS/2 systems, certain keys send a sequence of characters
518 .\"O which start with a NUL character (0).
519 .\"O This NUL character should be represented as \e340 in a lesskey file.
520 MS-DOS と OS/2 では、NUL 文字 (0) で始まる文字列を送るキーがある。
521 この NUL 文字は、lesskey ファイルで \e340 と表される。
524 Copyright (C) 2000 Mark Nudelman
526 lesskey is part of the GNU project and is free software;
527 you can redistribute it and/or modify it
528 under the terms of the GNU General Public License as published by
529 the Free Software Foundation;
530 either version 2, or (at your option) any later version.
532 lesskey is distributed in the hope that it will be useful, but
533 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
534 or FITNESS FOR A PARTICULAR PURPOSE.
535 See the GNU General Public License for more details.
537 You should have received a copy of the GNU General Public License
538 along with lesskey; see the file COPYING.
539 If not, write to the Free Software Foundation, 59 Temple Place,
540 Suite 330, Boston, MA 02111-1307, USA.
545 .\"O Mark Nudelman <marknu@flash.net>
547 .\"O Send bug reports or comments to the above address or to bug-less@gnu.org.
548 Mark Nudelman <marknu@flash.net>
550 バグの報告やコメントは、上のアドレスか bug-less@gnu.org へ送って下さい。
554 Copyright (c) 1994-2000 Kazushi (Jam) Marukawa, Japanized routines only
556 Comments to: jam@pobox.com
558 You may distribute under the terms of the Less License.
562 Copyright (c) 1994-2000 Kazushi (Jam) Marukawa, 日本語化ルーチンのみ。
564 コメントは jam@pobox.com へ送って下さい。
566 このパッチは Less ライセンスの下で配布できる。