Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate pi_logipat.txt #177

Merged
merged 1 commit into from
Feb 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
79 changes: 35 additions & 44 deletions doc/pi_logipat.jax
Original file line number Diff line number Diff line change
Expand Up @@ -20,88 +20,79 @@ Copyright: (c) 2004-2013 by Charles E. Campbell *logipat-copyright*


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

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

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

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

:ELP {boolean-logic pattern} *:ELP*
No search is done, but the conversion from the
boolean logic pattern to the regular expression
is performed and echoed onto the display.
検索は行いませんが論理集合演算パターンから
正規表現への変換を行い画面に表示します。

:LogiPatFlags {search flags} *LogiPat-flags*
:LogiPatFlags {search flags}
LogiPat uses the |search()| command. The flags
passed to that call to search() may be specified
by the :LogiPatFlags command.
LogiPat は |search()| コマンドを使用します。search()
に指定されるフラグを :LogiPatFlags に渡します。

:LPF {search flags} *:LPF*
:LPF is a shorthand version of :LogiPatFlags.
:LPF :LogiPatFlags の省略形式です。

:let pat=LogiPat({boolean-logic pattern}) *LogiPat()*
If one calls LogiPat() directly, no search
is done, but the transformation from the boolean
logic pattern into a regular expression pattern
is performed and returned.
LogiPat() を直接呼び出す場合は検索は行いません。
しかし論理集合演算パターンから正規表現への変換が
行われ返却されます。

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

==============================================================================
3. LogiPat 使用例 *logipat-examples*

LogiPat takes Boolean logic arguments and produces a regular
expression which implements the choices. A series of examples
follows:
LogiPat は論理集合演算を引数に取り抜き出す為の正規表現を提供します。
以下に例を列挙します:
>
:LogiPat "abc"
< will search for lines containing the string :abc:
文字列 :abc: を含む行を検索します
>
:LogiPat "ab""cd"
< will search for lines containing the string :ab"c:
文字列 :ab"c: を含む行を検索します
>
:LogiPat !"abc"
< will search for lines which don't contain the string :abc:
文字列 :abc: を含まない行を検索します
>
:LogiPat "abc"|"def"
< will search for lines which contain either the string
:abc: or the string :def:
文字列 :abc: もしくは :def: のどちらかを含む行を検索します
>
:LogiPat !("abc"|"def")
< will search for lines which don't contain either
of the strings :abc: or :def:
文字列 :abc: または :def: をどちらも含まない行を検索します
>
:LogiPat "abc"&"def"
< will search for lines which contain both of the strings
:abc: and :def:
文字列 :abc: と :def: を両方含む行を検索します
>
:let pat= LogiPat('!"abc"')
< will return the regular expression which will match
all lines not containing :abc: . The double quotes
are needed to pass normal patterns to LogiPat, and
differentiate such patterns from boolean logic
operators.
文字列 :abc: を含む全ての行にマッチする正規表現を返します。
ダブルクオートを通常のパターンとして LogiPat へ渡すには
論理集合オペレータと区別する為にネストして渡します。


==============================================================================
4. 注意 *logipat-caveat*

The "not" operator may be fragile; ie. it may not always play well
with the & (logical-and) and | (logical-or) operators. Please try out
your patterns, possibly with :set hls, to insure that what is matching
is what you want.
"not" オペレータは脆いかもしれません; つまり + (論理積)と | (論理和)の
オペレータ と合わせた場合に上手く動作しないのです。
期待通りにマッチさせる為には出来れば :set hls でパターンを良く試して下
さい。

==============================================================================
5. LogiPat 変更履歴 *logipat-history*
Expand Down