Skip to content

Commit 7c5cb66

Browse files
committed
Merge pull request #177 from vim-jp/logipat
Translate pi_logipat.txt
2 parents 1930c77 + 3d39a54 commit 7c5cb66

File tree

1 file changed

+35
-44
lines changed

1 file changed

+35
-44
lines changed

doc/pi_logipat.jax

Lines changed: 35 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -20,88 +20,79 @@ Copyright: (c) 2004-2013 by Charles E. Campbell *logipat-copyright*
2020

2121

2222
*logipat-arg* *logipat-input* *logipat-pattern* *logipat-operators*
23-
Boolean logic patterns are composed of
23+
Boolean-logic pattern(論理集合演算パターン)は以下によって構成される
2424

25-
operators ! = not
26-
| = logical-or
27-
& = logical-and
28-
grouping ( ... )
29-
patterns "pattern"
25+
オペレータ ! = 否定
26+
| = 論理和
27+
& = 論理積
28+
グルーピング ( ... )
29+
パターン "pattern"
3030

3131
:LogiPat {boolean-logic pattern} *:LogiPat*
32-
:LogiPat is a command which takes a boolean-logic
33-
argument (|logipat-arg|).
32+
:LogiPat は論理集合演算を引数に取るコマンドです
33+
(|logipat-arg|)
3434

3535
:LP {boolean-logic pattern} *:LP*
36-
:LP is a shorthand command version of :LogiPat
37-
(|:LogiPat|).
36+
:LP :LogiPat の省略形式コマンドです
37+
(|:LogiPat|)
3838

3939
: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+
正規表現への変換を行い画面に表示します。
4342

4443
:LogiPatFlags {search flags} *LogiPat-flags*
4544
: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 に渡します。
4947

5048
:LPF {search flags} *:LPF*
51-
:LPF is a shorthand version of :LogiPatFlags.
49+
:LPF :LogiPatFlags の省略形式です。
5250

5351
: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+
行われ返却されます。
5855

59-
To get a " inside a pattern, as opposed to having it delimit
60-
the pattern, double it.
56+
パターン内部で " をマッチしたい場合はパターンにデリミタを
57+
用いるのではなく2重打ちします。
6158

6259
==============================================================================
6360
3. LogiPat 使用例 *logipat-examples*
6461

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+
以下に例を列挙します:
6864
>
6965
:LogiPat "abc"
70-
< will search for lines containing the string :abc:
66+
文字列 :abc: を含む行を検索します
7167
>
7268
:LogiPat "ab""cd"
73-
< will search for lines containing the string :ab"c:
69+
文字列 :ab"c: を含む行を検索します
7470
>
7571
:LogiPat !"abc"
76-
< will search for lines which don't contain the string :abc:
72+
文字列 :abc: を含まない行を検索します
7773
>
7874
:LogiPat "abc"|"def"
79-
< will search for lines which contain either the string
80-
:abc: or the string :def:
75+
文字列 :abc: もしくは :def: のどちらかを含む行を検索します
8176
>
8277
:LogiPat !("abc"|"def")
83-
< will search for lines which don't contain either
84-
of the strings :abc: or :def:
78+
文字列 :abc: または :def: をどちらも含まない行を検索します
8579
>
8680
:LogiPat "abc"&"def"
87-
< will search for lines which contain both of the strings
88-
:abc: and :def:
81+
文字列 :abc: と :def: を両方含む行を検索します
8982
>
9083
: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+
論理集合オペレータと区別する為にネストして渡します。
9687
9788
9889
==============================================================================
9990
4. 注意 *logipat-caveat*
10091

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+
さい。
10596

10697
==============================================================================
10798
5. LogiPat 変更履歴 *logipat-history*

0 commit comments

Comments
 (0)