keys: move key definitions into translation includes
[sheet.git] / less.eng.inc.pl
1 use utf8;
2
3 {
4 # less v418
5
6 key => {
7         "\e"=> "alt<>/meta",
8
9         'b' => "page up",
10         'd' => 'scroll down',
11         'f' => "page down",
12         'F' => "follow\nForward Forever",
13         'g' => "(first) line",
14         'G' => "last line",
15         'h' => "help",
16         'j' => "<down>",
17         'k' => "<up>",
18         'm' => "mark pos<>ition",
19         'n' => "next find",
20         'N' => "prev find",
21         'p' => "reset position\nbeginning or Percentage",
22         'q' => "quit",
23         'r' => "redraw",
24         'R' => "refresh",
25         's' => "save to file",
26         't' => "next tag",
27         'T' => "prev tag",
28         'u' => 'scroll up',
29         'v' => "edit",
30         'V' => "version",
31         'w' => "page up and set window",
32         '^x'=> "emacs aliases",
33         'z' => "set page down",
34
35         '!' => "shell command",
36         '|' => "pipe till mark",
37         ':' => "com<>mand",
38         '/' => "find",
39         '?' => "find rev.",
40         '&' => "filter match<>es",
41         "'" => "goto mark",
42         '-' => "toggle option",
43         '_' => "show option",
44         '=' => "file name",
45         '+' => "initial cmd",
46
47         '(' => "closing",
48
49         "^[\e"=> "noop",
50         '^[n' => "any next find",
51         '^[N' => "any prev find",
52         '^[u' => "mark search\nUndo",
53         '^[(' => "scroll left",
54         '^[)' => "scroll right",
55
56         ":\e"=> "noop",
57         ':d' => "drop file",
58         ':e' => "open file",
59         ':n' => "next file",
60         ':p' => "prev file",
61         ':x' => "first file",
62
63         "-\e"=> "noop",
64         '-a' => "advance find page",
65         '-b' => "buffer space",
66         '-B' => "static buffer for pipes",
67         '-c' => "clear on scroll",
68         '-d' => "dumb term<>inal",
69         '-D' => "dos colours",
70         '-e' => "exit after eof",
71         '-E' => "exit at eof",
72         '-f' => "force open",
73         '-F' => "exit if 1 page",
74         '-g' => "hilight last match",
75         '-h' => "scroll back limit",
76         '-i' => "ignore lower<>c<>ase",
77         '-I' => "ignore case",
78         '-j' => "top offset",
79         '-J' => "status column",
80         '-k' => "key bind<>ing<>s",
81         '-L' => qq[ignore <span style="font-variant:small-caps">lesso<>pen</span> filter],
82         '-m' => "med. promp<>t tog<>gle",
83         '-M' => "long promp<>t tog<>gle",
84         '-n' => "count line num<>ber<>s",
85         '-N' => "show line n<>um<>ber<>s",
86         '-o' => "stdin to log",
87         '-O' => "log over<>wr<>ite",
88         '-p' => "initial search",
89         '-P' => "status line\nPrompt",
90         '-q' => "no info bell\nQuiet",
91         '-Q' => "no warn bell\nQuiet!",
92         '-r' => "raw chars",
93         '-R' => "ansi chars",
94         '-s' => "squeeze blank lines",
95         '-S' => "no line wrap",
96         '-t' => "find tag",
97         '-T' => "tags file",
98         '-u' => 'parse \b \r',
99         '-U' => 'escape \t \b \r',
100         '-w' => "hilight page d<>own",
101         '-W' => "hilight forw<>ard",
102         '-x' => "tab stops",
103         '-X' => "no termcap init",
104         '-y' => "scroll limit fw<>d",
105         '-z' => "page size",
106         '-"' => "shell quotes",
107         '-~' => "outside tildes toggle",
108         '-#' => "col shift",
109         '--' => "option name",
110         '-+' => "reset option",
111 },
112
113 mode => {
114         ''   => 'normal pager',
115         '^[' => 'escape keys (hold meta/alt)',
116         '-'  => 'flag identifiers',
117         ':'  => 'colon commands',
118 },
119
120 flag => {
121         g1 => [info   => 'Temporary message display (or related option).'],
122         g2 => [move   => 'Regular file position panning (or option).'],
123         g3 => [jump   => 'Other file position manipulation (").'],
124         g4 => [search => 'Go to matching content (").'],
125         g7 => [file   => 'Alter open file buffer (").'],
126         g8 => [misc   => 'Other commands and options.'],
127
128         arg  => ["key<arg>" => "Commands with a dot need a char argument afterwards."],
129         more => [more => "A small subset is compatible with `more`."],
130 },
131
132 def => {
133         '' => {
134                 "\e"=> 'g7 mode^[',
135
136                 'b' => 'g2 more',
137                 '^b'=> '=b',
138                 'd' => 'g2 more',
139                 '^d'=> '=d',
140                 'e' => '=j',
141                 '^e'=> '=j',
142                 'f' => 'g2 more',
143                 '^f'=> '=f',
144                 'F' => 'g7',
145                 'g' => 'g2',
146                 '^g'=> '==',
147                 'G' => 'g2',
148                 'h' => 'g7 more',
149                 'H' => '=h',
150                 'j' => 'g2',
151                 'k' => 'g2',
152                 '^k'=> '=k',
153                 '^l'=> '=r', # more
154                 'm' => 'g3 arg',
155                 '^m'=> '=j',
156                 'n' => 'g4 more',
157                 'N' => 'g4',
158                 '^n'=> '=j',
159                 'p' => 'g2',
160                 '^p'=> '=k',
161                 'q' => 'g8 more',
162                 'Q' => '=q',
163                 'r' => 'g1',
164                 '^r'=> '=r',
165                 'R' => 'g1',
166                 's' => 'g8 arg',
167                 't' => 'g4',
168                 'T' => 'g4',
169                 'u' => 'g2',
170                 '^u'=> '=u',
171                 'v' => 'g8 linkvi more',
172                 '^v'=> '=f',
173                 'V' => 'g1',
174                 'w' => 'g2',
175                 '^x'=> 'g8 arg mode^x',
176                 'y' => '=k',
177                 '^y'=> '=k',
178                 'z' => 'g2 more',
179
180                 '!' => 'g8 more',
181                 '|' => 'g8 arg',
182                 ':' => 'g8 arg mode:',
183                 '/' => 'g4 arg more',
184                 '?' => 'g4 arg',
185                 '%' => '=p',
186                 '&' => 'g4 arg',
187                 "'" => 'g3 arg',
188                 '-' => 'g8 arg mode-',
189                 '_' => 'g1 arg mode-',
190                 '=' => 'g1 more',
191                 '+' => 'g7',
192
193                 '(' => 'g4',
194                 '<' => '=g',
195                 '>' => '=G',
196         },
197
198         '^[' => { # esc
199                 "\e"=> 'g7 mode',
200                 'n' => 'g4',
201                 'N' => 'g4',
202                 'u' => 'g1',
203                 'v' => '=b',
204                 '(' => 'g2',
205                 ')' => 'g2',
206                 '<' => '=g',
207                 '>' => '=G',
208         },
209
210         #'^x' => {
211         #       "\e"=> 'g7 mode',
212         #       '^x' => "='",
213         #       '^v' => '=:e',
214         #},
215
216         ':' => {
217                 "\e"=> 'g7 mode',
218                 'd' => 'g7',
219                 'e' => 'g7',
220                 'f' => '==',
221                 'n' => 'g7 more',
222                 'p' => 'g7 more',
223                 'q' => '=q',
224                 'Q' => '=:q',
225                 'x' => 'g7',
226         },
227
228         '-' => {
229                 "\e"=> 'g7 mode',
230                 'a' => 'g4',
231                 'b' => 'g7 arg',
232                 'B' => 'g7',
233                 'c' => 'g2',
234                 'd' => 'g8',
235                 'D' => 'g8 arg ext',
236                 'e' => 'g7',
237                 'E' => 'g7',
238                 'f' => 'g7',
239                 'F' => 'g7',
240                 'g' => 'g4',
241                 'h' => 'g2 arg',
242                 'i' => 'g4',
243                 'I' => 'g4',
244                 'j' => 'g3 arg',
245                 'J' => 'g1',
246                 'k' => 'g8 arg',
247                 'L' => 'g8',
248                 'm' => 'g1',
249                 'M' => 'g1',
250                 'n' => 'g8',
251                 'N' => 'g1',
252                 'o' => 'g8 arg',
253                 'O' => 'g8 arg',
254                 'p' => 'g4 arg',
255                 'P' => 'g1 arg',
256                 'q' => 'g8',
257                 'Q' => 'g8',
258                 'r' => 'g8',
259                 'R' => 'g8',
260                 's' => 'g8',
261                 'S' => 'g8',
262                 't' => 'g4 arg',
263                 'T' => 'g4 arg',
264                 'u' => 'g8',
265                 'U' => 'g8',
266                 'V' => '=V',
267                 'w' => 'g8',
268                 'W' => 'g8',
269                 'x' => 'g8 arg',
270                 'X' => 'g8',
271                 'y' => 'g2 arg',
272                 'z' => 'g2 arg',
273                 '"' => 'g8 arg',
274                 '~' => 'g8',
275                 '#' => 'g2 arg',
276                 '-' => 'g8 arg',
277                 '+' => 'g8 arg',
278         },
279 },
280 }