-
Notifications
You must be signed in to change notification settings - Fork 65
Update syntax.{txt,jax} #1215
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
Update syntax.{txt,jax} #1215
Conversation
これは今回の更新で変更された場所ではない。 以前から未翻訳だった。
修正前の文章は,原文と意味が異なってしまっている(直訳してもおかしい)。 (La)TeX における事情を踏まえたうえで,原文の意味を保つことを最優先にして翻訳しなおした。 また,念の為訳注を付してこの設定の意図するところを分かりやすくした。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ひと通りレビューしました。
@@ -500,7 +500,7 @@ Force to omit the line numbers: > | |||
Go back to the default to use 'number' by deleting the variable: > | |||
:unlet g:html_number_lines | |||
< | |||
*g:html_line_ids* | |||
*g:html_line_ids* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらの変更を syntax.jax へ反映お願いします。
@@ -1810,6 +1827,17 @@ htmlプロセッサー言語は複数ある。html.vimはインクルードし | |||
そしてプリプロセッサー言語を含むすべての領域をクラスタhtmlPreprocに加えればよ | |||
い。 | |||
|
|||
*html-folding* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
空白部分、原文まま(タブ7つ)でお願いします。
@@ -2932,30 +2958,30 @@ Default folding is rather detailed, i.e., small syntax units like "if", "do", | |||
|
|||
You can set "ruby_foldable_groups" to restrict which groups are foldable: > | |||
|
|||
:let ruby_foldable_groups = 'if case %' | |||
:let ruby_foldable_groups = 'if case %' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらの変更を .jax へ反映お願いします。
< | ||
The value is a space-separated list of keywords: | ||
|
||
keyword meaning ~ | ||
-------- ------------------------------------- ~ | ||
ALL Most block syntax (default) | ||
NONE Nothing | ||
if "if" or "unless" block | ||
if "if" or "unless" block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上。
def "def" block | ||
class "class" block | ||
module "module" block | ||
do "do" block | ||
do "do" block |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上。
{訳注: この挙動は、おもに LaTeX において、「@ を含むコマンドは開発用途として | ||
使う」という取り決めがあることに由来する(と思われる)。ちょうど、一般のプログ | ||
ラミング言語における隠蔽変数のようなものである。「普通の」TeX ファイルを編集 | ||
するさいには、そのようなコマンドを扱うことはないから、@ を含んだコマンドが | ||
「エラー」になるのはある意味で正しい挙動と言える。} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
L2957 辺りのコメントに書きましたが、この注釈が無いと分かり辛いと感じたのでしたら、原文(syntax.txt)に説明を追加する事を検討ください。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
コメントが1つ反映されていなかったので追加。
"\makeatletter" を用いれば、*.tex ファイルのなかで "@" という文字を含むコマンド | ||
を利用できる。しかしながら、拡張子が sty cls clo dtx ltx のどれでもない場合、@ | ||
を含むコマンドはエラーとして表示される。これを解決するには: > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
suffices
はsuffixes
のtypoですね。typo報告スレに差分張りました。
(extensions
が妥当な気がする)
ところで、clo
だけ filetype.vim に見つからないですね。これもtypoなんでしょうか? -
直訳に寄せました。いかがでしょうか?
"\makeatletter" を用いれば、*.tex ファイルのなかで "@" という文字を含むコマンド | |
を利用できる。しかしながら、拡張子が sty cls clo dtx ltx のどれでもない場合、@ | |
を含むコマンドはエラーとして表示される。これを解決するには: > | |
*.tex ファイルで "\makeatletter" を使用すると、"@" を含むコマンドを使用できる | |
ようになる。しかしながら、*.tex ファイルは sty cls clo dtx ltx のいずれかの接 | |
尾辞ではないため、構文の強調表示によって @ の使用箇所がエラーとして表示される。 | |
これを解決するには: > |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここのsuffixはファイル拡張子のことを表していると思うのですが、「接尾辞」と訳すべきでしょうか。
参考
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今はsuffixes
になっているので、「接尾辞」でお願いします。
私がtypoのコメントで「(extensions
が妥当な気がする)」と言っているのでそちらに反応して欲しかったです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ところで、
clo
だけ filetype.vim に見つからないですね。これもtypoなんでしょうか?
syntax/tex.vim には含まれているので typo ではなさそうです。
参考 https://github.com/vim-jp/vimdoc-ja-working/pull/1215/files#r1083396653 Co-authored-by: h_east <[email protected]>
参考 https://github.com/vim-jp/vimdoc-ja-working/pull/1215/files#r1083405210 Co-authored-by: h_east <[email protected]>
参考 https://github.com/vim-jp/vimdoc-ja-working/pull/1215/files#r1083398156 Co-authored-by: h_east <[email protected]>
参考 https://github.com/vim-jp/vimdoc-ja-working/pull/1215/files#r1083399969 Co-authored-by: h_east <[email protected]>
参考 https://github.com/vim-jp/vimdoc-ja-working/pull/1215/files#r1083403339 Co-authored-by: h_east <[email protected]>
反映されていない部分を対応したものをPRさせていただきました。 #1222 |
翻訳しました。よろしくおねがいします。
4d32d3b における翻訳修正について
vimdoc-ja-working/doc/syntax.jax
Lines 3310 to 3311 in ecba90e
私のコミットメッセージでは原文と意味が違うとかなんとかぬかしてますが,すいません,意味は合ってました。
ただし,やはりすこし不自然に感じます (Vimの内部実装によりすぎ?) ので,原文に忠実であることを前提として,(La)TeX における事情を踏まえた翻訳にしました。また,訳注を付すことによってもこの設定の意図するところを分かりやすしました……そのつもりです。