Skip to content

Commit 5148a4d

Browse files
committed
Merge pull request #196 from vim-jp/syntax
Translate remainings in syntax.jax
2 parents 44c9c88 + 4f80c1f commit 5148a4d

File tree

1 file changed

+56
-73
lines changed

1 file changed

+56
-73
lines changed

doc/syntax.jax

+56-73
Original file line numberDiff line numberDiff line change
@@ -725,14 +725,14 @@ Note: UTF-32 か UTF-16 でエンコードされたドキュメントはいく
725725
ウザで互換性の問題があることが知られている。
726726

727727
*g:html_font*
728-
Default: "monospace"
729-
You can specify the font or fonts used in the converted document using
730-
g:html_font. If this option is set to a string, then the value will be
731-
surrounded with single quotes. If this option is set to a list then each list
732-
item is surrounded by single quotes and the list is joined with commas. Either
733-
way, "monospace" is added as the fallback generic family name and the entire
734-
result used as the font family (using CSS) or font face (if not using CSS).
735-
Examples: >
728+
初期設定: "monospace"
729+
g:html_font を使って1つないしは複数のフォントを変換されたドキュメントに対して
730+
指定出来る。このオプションに文字列を設定した場合はシングルクォートで囲まれる。
731+
またオプションにリストを設定した場合は全てのリストアイテムがシングルクォートで
732+
囲まれ、リストはコンマで結合される。どちらの場合でも、一般的なフォントファミ
733+
リ名、(CSSを使っての)フォントファミリ名、(CSSを使わない場合の)フォントフェイ
734+
ス名を補う為に "monospace" が追加される。
735+
: >
736736
737737
" font-family: 'Consolas', monospace;
738738
:let g:html_font = "Consolas"
@@ -1408,39 +1408,26 @@ Fortran のソースコードには固定形式と自由形式が有る。形式
14081408
:let fortran_fixed_source=1
14091409
これも.vimrcでコマンド:syntaxを実行する前に行う必要がある。
14101410

1411-
If the form of the source code depends, in a non-standard way, upon the file
1412-
extension, then it is most convenient to set fortran_free_source in a ftplugin
1413-
file. For more information on ftplugin files, see |ftplugin|. Note that this
1414-
will work only if the "filetype plugin indent on" command precedes the "syntax
1415-
on" command in your .vimrc file.
1416-
1417-
When you edit an existing fortran file, the syntax script will assume free
1418-
source form if the fortran_free_source variable has been set, and assumes
1419-
fixed source form if the fortran_fixed_source variable has been set. If
1420-
neither of these variables have been set, the syntax script attempts to
1421-
determine which source form has been used by examining the file extension
1422-
using conventions common to the ifort, gfortran, Cray, NAG, and PathScale
1423-
compilers (.f, .for, .f77 for fixed-source, .f90, .f95, .f03, .f08 for
1424-
free-source). If none of this works, then the script examines the first five
1425-
columns of the first 500 lines of your file. If no signs of free source form
1426-
are detected, then the file is assumed to be in fixed source form. The
1427-
algorithm should work in the vast majority of cases. In some cases, such as a
1428-
file that begins with 500 or more full-line comments, the script may
1429-
incorrectly decide that the fortran code is in fixed form. If that happens,
1430-
just add a non-comment statement beginning anywhere in the first five columns
1431-
of the first twenty five lines, save (:w) and then reload (:e!) the file.
1432-
{参考用の旧訳:
1433-
既存のFortranファイルを編集する時には、変数fortran_free_sourceが設定されていれ
1434-
ば構文ファイルは自由形式のソースであると仮定し、変数fortran_fixed_sourceが設定
1435-
されていれば固定形式のソースであると仮定する。どちらも設定されていないときに
1436-
は、ファイルの先頭250行の行頭5カラムを調べて、その形式が固定なのか自由なのかを
1437-
決定しようと試みる。自由形式コードの兆候が見られない場合には、ファイルは固定形
1438-
式コードとして取り扱われる。このアルゴリズムはほとんどのケースにおいて有効に機
1439-
能する。しかしいくつかのケース、例えば先頭250行以上が行コメントで占められてい
1440-
るようなファイルでは、構文ファイルが固定形式コードであると誤った判断をしてしま
1441-
うだろう。そのような場合には、ファイルの先頭250行の行頭5桁のどこかに、コメント
1442-
以外の命令文を追加し、ファイルの保存 (:w) そして再読込 (:e!) を行えば良い。
1443-
:旧訳ここまで}
1411+
ソースコードの形式もしくは標準的な方法ではないがファイルの拡張子に依存する場
1412+
合、もっとも簡単な方法は ftplugin の中で fortran_free_source を設定する。
1413+
ftplugin ファイルのより詳細な情報は |ftplugin| を参照。
1414+
Note あなたの .vimrc ファイルで "filetype plugin indent on" コマンドを "syntax
1415+
on" よりも前に実行した場合にのみ動作する事に注意する。
1416+
1417+
既存の Fortran ファイルを編集する時には、変数 fortran_free_source が設定されて
1418+
いれば構文ファイルは自由形式のソースであると仮定し、変数
1419+
fortran_fixed_source が設定されていれば固定形式のソースであると仮定する。ど
1420+
ちらも設定されていない場合は、ifort, gfortran Cray, NAG, PathScale コンパイ
1421+
ラ(.f, .for, 固定形式の .f77, .f90, .f95, .f03, 自由形式の .f08)の共通的な拡
1422+
張子の変換を試みてどのソースが使われているのかを判定する。それでもうまく行かな
1423+
い場合はファイルの先頭250行の行頭5カラムを調べて、その形式が固定形式なのか自
1424+
由形式なのかの判定を試みる。自由形式のコードの兆候が見られない場合には、固
1425+
定形式であると見なされる。このアルゴリズムはほとんどのケースにおいて有効に機
1426+
能する。しかしいくつかのケース、例えば先頭500行以上が行コメントで占められてい
1427+
るようなファイルでは、構文ファイルが固定形式の fortran のコードであると誤った
1428+
判断をしてしまうかもしれない。そのような場合には、ファイルの先頭 500行 の行頭5
1429+
桁のどこかに、コメント以外の命令文を追加し、ファイルの保存 (:w) そして再読込
1430+
(:e!) を行う。
14441431

14451432
Fortranファイル内のタブ文字 ~
14461433
標準のFortranではタブ文字は認識されない。固定桁位置での境界を必要とする固定形
@@ -3236,27 +3223,26 @@ xpm.vimは編集中のXPMファイルの内容から、動的に構文要素を
32363223
YAML *yaml.vim* *ft-yaml-syntax*
32373224

32383225
*g:yaml_schema* *b:yaml_schema*
3239-
A YAML schema is a combination of a set of tags and a mechanism for resolving
3240-
non-specific tags. For user this means that YAML parser may, depending on
3241-
plain scalar contents, treat plain scalar (which can actually be only string
3242-
and nothing else) as a value of the other type: null, boolean, floating-point,
3243-
integer. `g:yaml_schema` option determines according to which schema values
3244-
will be highlighted specially. Supported schemas are
3226+
YAML スキーマとはタグのコンビネーションと、特定されないタグを解決する為のメカ
3227+
ニズムである。ユーザにとってはこれはプレーンなスカラーのコンテンツに依存してそ
3228+
の簡素なスカラー(実際は文字列もしくはそれ以外の何か)をそれぞれ異なる値として
3229+
扱う YAML パーサを意味しているかもしれない: null, boolean, floating-point,
3230+
integer. `g:yaml_schema` オプションは特別にハイライトさせるスキーマの値を特定
3231+
する為のオプション。サポートしているスキーマは
32453232

32463233
Schema Description ~
3247-
failsafe No additional highlighting.
3248-
json Supports JSON-style numbers, booleans and null.
3249-
core Supports more number, boolean and null styles.
3250-
pyyaml In addition to core schema supports highlighting timestamps,
3251-
but there are some differences in what is recognized as
3252-
numbers and many additional boolean values not present in core
3253-
schema.
3234+
failsafe 追加されるハイライトはない。
3235+
json JSON スタイルの number や boolean, null をサポートする。
3236+
core number や boolean、null をよりサポートする。
3237+
pyyaml timestamp のハイライトをサポートをコアスキーマに追加するが、
3238+
number がどの様に認識されるか、boolean 型として認識する為に多
3239+
くの値が追加されたという点で幾らか違いがある。
32543240

3255-
Default schema is `core`.
3241+
デフォルトのスキーマは `core`
32563242

3257-
Note that schemas are not actually limited to plain scalars, but this is the
3258-
only difference between schemas defined in YAML specification and the only
3259-
difference defined in the syntax file.
3243+
実際にはスキーマは、プレーンなスカラーに限定されるものではない、これが YAML 仕
3244+
様の定義に存在する唯一の違いであり、唯一異なるシンタックスが定義されているとい
3245+
う点を注意しておく。
32603246

32613247
==============================================================================
32623248
5. 構文を定義する *:syn-define* *E410*
@@ -3336,29 +3322,26 @@ difference defined in the syntax file.
33363322
SYNTAX ISKEYWORD SETTING *:syn-iskeyword*
33373323

33383324
:sy[ntax] iskeyword [clear | {option}]
3339-
This defines the keyword characters. It's like the 'iskeyword' option
3340-
for but only applies to syntax highlighting.
3325+
キーワード文字を定義する。'iskeyword' オプションに似ているがシン
3326+
タックスハイライトのみに適用される。
33413327

3342-
clear: Syntax specific iskeyword setting is disabled and the
3343-
buffer-local 'iskeyword' setting is used.
3344-
{option} Set the syntax 'iskeyword' option to a new value.
3328+
clear: シンタックス固有の iskeyword の設定を無効にし、
3329+
バッファローカルの 'iskeyword' 設定を有効にする。
3330+
{option} シンタックスの 'iskeyword' オプション値を設定する。
33453331

33463332
Example: >
33473333
:syntax iskeyword @,48-57,192-255,$,_
33483334
<
3349-
This would set the syntax specific iskeyword option to include all
3350-
alphabetic characters, plus the numeric characters, all accented
3351-
characters and also includes the "_" and the "$".
3335+
これは全てのアルファベットと数字、アクセント付き文字、および "_" と
3336+
"$" をシンタック固有の iskeyword オプションに設定する。
33523337

3353-
If no argument is given, the current value will be output.
3338+
引数を指定しない場合は現在の値を表示する。
33543339

3355-
Setting this option influences what |/\k| matches in syntax patterns
3356-
and also determines where |:syn-keyword| will be checked for a new
3357-
match.
3340+
このオプションを設定するとシンタックスパターン内での |/\k| のマッチや
3341+
|:syn-keyword| が新しいマッチをチェックする際のデリミタに影響する。
33583342

3359-
It is recommended when writing syntax files, to use this command
3360-
to the correct value for the specific syntax language and not change
3361-
the 'iskeyword' option.
3343+
シンタックスファイルを書く際はこのコマンドを使って言語固有の文法に対す
3344+
る正しい値を設定し 'iskeyword' を変更しない事が推奨されている。
33623345

33633346
キーワードの定義 *:syn-keyword*
33643347

0 commit comments

Comments
 (0)