Develop and Download Open Source Software

Browse Subversion Repository

Contents of /sandbox/lv.hlp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 86 - (show annotations) (download)
Mon Nov 4 13:00:10 2013 UTC (10 years, 4 months ago) by nishimoto
File size: 6056 byte(s)
added lv.hlp and nkf32
1 # lv: a Powerful Multilingual File Viewer
2 # All rights reserved. Copyright (C) 1994,1997 by NARITA Tomio
3
4 OOppttiioonnss aabboouutt CCooddiinngg ssyysstteemmss:
5 -A<coding-system>: Set all coding systems to coding-system.
6 -I<coding-system>: Set input coding system to coding-system.
7 -K<coding-system>: Set keyboard coding system to coding-system.
8 -O<coding-system>: Set output coding system to coding-system.
9
10 coding-system:
11 a: auto-select (input only)
12 c: iso-2022-cn
13 j: iso-2022-jp
14 k: iso-2022-kr
15 e: Extended Unix Code
16 ec: euc-china
17 ej: euc-japan
18 ek: euc-korea
19 et: euc-taiwan
20 u: UCS transformation format
21 u7: UTF-7
22 u8: UTF-8
23 l: iso-8859-*
24 l1..9: iso-8859-1..9
25 s: shift-jis
26 b: big5
27 r: raw mode
28
29 Examples:
30 -Il2: input coding system is iso-8859-2
31 -Ks: keyboard coding system is shift-jis
32 -Oek: output coding system is euc-korea
33 -Ab: all coding systems are big5
34
35 Conversions:
36 iso-2022-cn, -jp, -kr can be converted into euc-china or -taiwan,
37 euc-japan, euc-korea, respectively, and vice versa. shift-jis uses
38 the same internal code-points as iso-2022-jp and euc-japan. Similarly,
39 big5 can be handled like iso-2022-cn and euc-taiwan inside lv.
40 You can convert charsets among these coding systems from input to output.
41
42 OOtthheerr ooppttiioonnss:
43 -W<number> Screen width
44 -H<number> Screen height
45 -z Assert there is no delete/insert-lines control.
46 Please set this option on MSDOS ANSI terminals which do not
47 have control to delete and/or insert lines. Meanwhile, as to
48 termcap and terminfo version, it will be set automatically.
49
50 -Ss<seq> Set ANSI Standout sequence to <seq> (default "7")
51 -Sr<seq> Set ANSI Reverse sequence to <seq> (default "7")
52 -Sb<seq> Set ANSI Blink sequence to <seq> (default "5")
53 -Su<seq> Set ANSI Underline sequence to <seq> (default "4")
54 -Sh<seq> Set ANSI Highlight sequence to <seq> (default "1")
55
56 -T<number> Set Threshold-code which divides Unicode code-points in
57 two regions. Characters belonging to the lower region are
58 assumed to have a width of one, and the higher characters
59 are equated to a width of two. (Default: 12288)
60 -m Force Unicode code-points which have the same glyphs as
61 iso-8859-* to be Mapped iso-8859-* in a conversion from
62 Unicode to another character set which also has the
63 corresponding code-points, in particular, Asian charsets.
64
65 -c Allow ANSI escape sequences for text decoration (Color)
66 -d Make regexp-searches ignore case (case folD search)
67 -f Substitute Fixed strings for regular expressions
68 -p Force non-regular files to be Printed immediately
69 -s Force old pages to be swept out from the screen Smoothly
70 -u Unify several character sets, eg. JIS X0208 and C6226.
71 In addition, lv equates ISO 646 variants and unknown
72 charsets with ASCII.
73
74 -@ Clear all options
75 You can also turn OFF specified options,
76 using ``+<option>'' like +c, +d, ... +z.
77
78 - Treat the following arguments as filenames
79
80 -v Show lv version
81 -h Show this help
82
83 CCoonnffiigguurraattiioonn:
84 Options can be described in configuration file ``.lv'' (``_lv'' on MSDOS)
85 located at you HOME directory and/or current working directory.
86 They can be also described in the environment variable LV. All
87 configuration is overloaded in this order if there is. Command line
88 options are always read finally.
89
90 Environment examples:
91 UNIX: setenv LV '-Kej -Oej'
92 MSDOS: set LV=-Im -H25
93
94 CCoommmmaanndd kkeeyy bbiinnddiinnggss:
95 0-9: Argument
96 g, <: Jump to the line number (default: top of the file)
97 G, >: Jump to the line number (default: bottom of the file)
98 p: Jump to the percentage position in line numbers (0-100)
99
100 b, C-b: Previous page
101 u, C-u: Previous half page
102 k, C-k, y, C-y, C-p: Previous line
103
104 j, C-j, e, C-e, C-n, CR: Next line
105 d, C-d: Next half page
106 f, C-f, C-v, SP: Next page
107
108 /<string>: Find a string in the forward direction (regular expression)
109 ?<string>: Find a string in the backward direction (regular expression)
110
111 n: Repeat previous search in forward direction
112 N: Repeat previous search in backward direction (not REVERSE)
113
114 C-l: Redisplay all lines
115 r, C-r: Refresh screen and memory
116 R: Reload the current file
117
118 C-g: Show file information (filename, position, coding system)
119 V: Show LV version
120
121 C-z: Suspend (call SHELL or ``command.com'' on MSDOS)
122 q, Q: Quit
123
124 SSttrriinngg iinnppuutt kkeeyy bbiinnddiinnggss:
125 C-m, CR: Enter the current string
126 C-h, BS: Delete one character (backspace)
127 C-u: Cancel the current string and try again
128 C-p: Restore a few old strings incrementally (history)
129 C-g: Quit
130
131 RReegguullaarr eexxpprreessssiioonnss:
132 Special characters are ^, $, ., *, +, ?, [, ^, -, ], \.
133 \| specifies an alternative. \(, \) is a grouping construct.
134 \1 and \2 matches any charset consists of one- or two- column(s)
135 characters respectively. Mutually overlapping ranges (or charset)
136 are not guaranteed.
137
138 NNootteess:
139 MMSSDDOOSS VVEERRSSIIOONN OOFF LLVV HHAASS NNOONNEE OOFF TTHHEE UUNNIICCOODDEE FFAACCIILLIITTYY AATT AALLLL.
140
141 The search function of lv does not work correctly when lv additionally
142 performs ``code'' conversion (not ``coding system conversion''),
143 because visible codes and internal codes are different from each other.
144 This problem happens when you output CNS characters through big5,
145 or in other conversions, especially, via Unicode. In such case,
146 however, you can avoid such problem by reading a pre-converted stream.
147 For example, when you wish to read a big5 stream on a UTF-8 terminal,
148 you can use a pipe like this: ``lv -Ib foo.big5 -Ou | lv -Au''
149
150 You can redirect this help message to a file. 'Q' or 'q' terminates lv.
151
152 Happy lv'ing!

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26