@@ -20,88 +20,79 @@ Copyright: (c) 2004-2013 by Charles E. Campbell *logipat-copyright*
20
20
21
21
22
22
*logipat-arg* *logipat-input* *logipat-pattern* *logipat-operators*
23
- Boolean logic patterns are composed of
23
+ Boolean- logic pattern(論理集合演算パターン)は以下によって構成される
24
24
25
- operators ! = not
26
- | = logical-or
27
- & = logical-and
28
- grouping ( ... )
29
- patterns "pattern"
25
+ オペレータ ! = 否定
26
+ | = 論理和
27
+ & = 論理積
28
+ グルーピング ( ... )
29
+ パターン "pattern"
30
30
31
31
:LogiPat {boolean-logic pattern} *:LogiPat*
32
- :LogiPat is a command which takes a boolean-logic
33
- argument (| logipat-arg | ).
32
+ :LogiPat は論理集合演算を引数に取るコマンドです
33
+ (| logipat-arg | )。
34
34
35
35
:LP {boolean-logic pattern} *:LP*
36
- :LP is a shorthand command version of :LogiPat
37
- (| :LogiPat | ).
36
+ :LP は :LogiPat の省略形式コマンドです
37
+ (| :LogiPat | )。
38
38
39
39
:ELP {boolean-logic pattern} *:ELP*
40
- No search is done, but the conversion from the
41
- boolean logic pattern to the regular expression
42
- is performed and echoed onto the display.
40
+ 検索は行いませんが論理集合演算パターンから
41
+ 正規表現への変換を行い画面に表示します。
43
42
44
43
:LogiPatFlags {search flags} *LogiPat-flags*
45
44
:LogiPatFlags {search flags}
46
- LogiPat uses the | search() | command. The flags
47
- passed to that call to search() may be specified
48
- by the :LogiPatFlags command.
45
+ LogiPat は | search() | コマンドを使用します。search()
46
+ に指定されるフラグを :LogiPatFlags に渡します。
49
47
50
48
:LPF {search flags} *:LPF*
51
- :LPF is a shorthand version of :LogiPatFlags.
49
+ :LPF は :LogiPatFlags の省略形式です。
52
50
53
51
:let pat=LogiPat({boolean-logic pattern}) *LogiPat()*
54
- If one calls LogiPat() directly, no search
55
- is done, but the transformation from the boolean
56
- logic pattern into a regular expression pattern
57
- is performed and returned.
52
+ LogiPat() を直接呼び出す場合は検索は行いません。
53
+ しかし論理集合演算パターンから正規表現への変換が
54
+ 行われ返却されます。
58
55
59
- To get a " inside a pattern, as opposed to having it delimit
60
- the pattern, double it.
56
+ パターン内部で " をマッチしたい場合はパターンにデリミタを
57
+ 用いるのではなく2重打ちします。
61
58
62
59
==============================================================================
63
60
3. LogiPat 使用例 *logipat-examples*
64
61
65
- LogiPat takes Boolean logic arguments and produces a regular
66
- expression which implements the choices. A series of examples
67
- follows:
62
+ LogiPat は論理集合演算を引数に取り抜き出す為の正規表現を提供します。
63
+ 以下に例を列挙します:
68
64
>
69
65
:LogiPat "abc"
70
- < will search for lines containing the string :abc:
66
+ 文字列 :abc: を含む行を検索します
71
67
>
72
68
:LogiPat "ab""cd"
73
- < will search for lines containing the string :ab"c:
69
+ 文字列 :ab"c: を含む行を検索します
74
70
>
75
71
:LogiPat !"abc"
76
- < will search for lines which don't contain the string :abc:
72
+ 文字列 :abc: を含まない行を検索します
77
73
>
78
74
:LogiPat "abc"|"def"
79
- < will search for lines which contain either the string
80
- :abc: or the string :def:
75
+ 文字列 :abc: もしくは :def: のどちらかを含む行を検索します
81
76
>
82
77
:LogiPat !("abc"|"def")
83
- < will search for lines which don't contain either
84
- of the strings :abc: or :def:
78
+ 文字列 :abc: または :def: をどちらも含まない行を検索します
85
79
>
86
80
:LogiPat "abc"&"def"
87
- < will search for lines which contain both of the strings
88
- :abc: and :def:
81
+ 文字列 :abc: と :def: を両方含む行を検索します
89
82
>
90
83
:let pat= LogiPat('!"abc"')
91
- < will return the regular expression which will match
92
- all lines not containing :abc: . The double quotes
93
- are needed to pass normal patterns to LogiPat, and
94
- differentiate such patterns from boolean logic
95
- operators.
84
+ 文字列 :abc: を含む全ての行にマッチする正規表現を返します。
85
+ ダブルクオートを通常のパターンとして LogiPat へ渡すには
86
+ 論理集合オペレータと区別する為にネストして渡します。
96
87
97
88
98
89
==============================================================================
99
90
4. 注意 *logipat-caveat*
100
91
101
- The "not" operator may be fragile; ie. it may not always play well
102
- with the & (logical-and) and | (logical-or) operators. Please try out
103
- your patterns, possibly with :set hls, to insure that what is matching
104
- is what you want.
92
+ "not" オペレータは脆いかもしれません; つまり + (論理積)と | (論理和)の
93
+ オペレータ と合わせた場合に上手く動作しないのです。
94
+ 期待通りにマッチさせる為には出来れば :set hls でパターンを良く試して下
95
+ さい。
105
96
106
97
==============================================================================
107
98
5. LogiPat 変更履歴 *logipat-history*
0 commit comments