Skip to content

Commit 52cea98

Browse files
authored
Merge pull request #165 from vim-jp/update-for-9.1.0831
Update for 9.1.0831
2 parents 0201b14 + 0b49fa5 commit 52cea98

File tree

13 files changed

+739
-209
lines changed

13 files changed

+739
-209
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import-en-files:
2323
"$(VIM_SRC_DIR)"/runtime/doc/vimtutor.1 \
2424
"$(VIM_SRC_DIR)"/runtime/doc/xxd.1 \
2525
runtime/doc/
26-
cp "$(VIM_SRC_DIR)"/runtime/tutor/tutor runtime/tutor/
26+
cp "$(VIM_SRC_DIR)"/runtime/tutor/tutor1 runtime/tutor/
27+
cp "$(VIM_SRC_DIR)"/runtime/tutor/tutor2 runtime/tutor/
2728
cp "$(VIM_SRC_DIR)"/nsis/lang/english.nsi nsis/lang/
2829

2930
# Update Vim source directory.
@@ -69,7 +70,7 @@ install: test
6970
cp src/po/ja.sjis.mo $(INSTALL_DIR)/lang/ja.sjis/LC_MESSAGES/vim.mo
7071
cp runtime/lang/menu_ja*.vim $(INSTALL_DIR)/lang
7172
cp runtime/doc/*.UTF-8.1 $(INSTALL_DIR)/doc
72-
cp runtime/tutor/tutor.ja.* $(INSTALL_DIR)/tutor
73+
cp runtime/tutor/tutor*.ja.* $(INSTALL_DIR)/tutor
7374

7475
clean:
7576
rm -rf $(ARCHIVE_DIR) $(ARCHIVE_FILE)
@@ -102,7 +103,7 @@ $(ARCHIVE_DIR):
102103
cp src/po/*.po $@/src/po
103104
cp runtime/lang/menu_ja*.vim $@/runtime/lang
104105
cp runtime/doc/*.UTF-8.1 $@/runtime/doc
105-
cp runtime/tutor/tutor.ja.* $@/runtime/tutor
106+
cp runtime/tutor/tutor*.ja.* $@/runtime/tutor
106107
cp nsis/lang/japanese.nsi $@/nsis/lang
107108

108109
$(ARCHIVE).tar.gz: $(ARCHIVE_DIR)

runtime/doc/vim-ja.UTF-8.1

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -229,16 +229,16 @@ Note: それらのオプションを設定すれば変更できるようにな
229229
":set uc=0" と設定しても同じです。
230230
戻すには ":set uc=200" と設定してください。
231231
.TP
232-
\-nb
233-
NetBeans と接続し、エディタサーバーになります。
234-
詳しくはヘルプを参照してください。
235-
.TP
236232
\-N
237233
非互換モード。'compatible' オプションがオフになります。
238234
.vimrc ファイルの有無に関わらず、
239235
.B Vim
240236
の改良された機能が有効になります。Vi との互換性が少し失われます。
241237
.TP
238+
\-nb
239+
NetBeans と接続し、エディタサーバーになります。
240+
詳しくはヘルプを参照してください。
241+
.TP
242242
\-o[N]
243243
N 個のウィンドウを水平分割で開きます。
244244
N を省略した場合は、引数のファイルを個別のウィンドウで開きます。
@@ -374,7 +374,7 @@ X サーバーと通信しません。端末での起動時間を短くできま
374374
\-\-echo\-wid
375375
GTK GUI のみ: Window ID を標準出力に出力します。
376376
.TP
377-
\-\-gui-dialog-file {name}
377+
\-\-gui-\dialog\-file {name}
378378
GUI の使用時、ダイアログを表示する代わりとして、ファイル {name} へダイアログのタイトルとメッセージを書き込みます。
379379
ファイルは作成されるか追記されます。
380380
テストにみ有用で、見ることができないダイアログによってテストが中断されるのを防ぎます。
@@ -396,12 +396,14 @@ Unix のように、シェルがワイルドカードを展開する場合は機
396396
を呼び出すのと同様な動作です。
397397
.TP
398398
\-\-nofork
399-
フォアグラウンド。GUI バージョンで、プロセスをフォークしなくなります。
399+
フォアグラウンド。GUI バージョンで、
400+
.B Vim
401+
はプロセスをフォークしなくなり、開始したシェルからデタッチされます。
400402
.TP
401403
\-\-noplugin
402404
プラグインをロードしません。\-u NONE はこの動作を含んでいます。
403405
.TP
404-
\-\-not-a-term
406+
\-\-not\-a\-term
405407
入力と出力(もしくはどちらか一方)が端末に接続されていないことを、ユーザーが把握しているということを
406408
.B Vim
407409
に伝えます。

runtime/doc/vimtutor-ja.UTF-8.1

Lines changed: 74 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,99 @@
1-
.TH VIMTUTOR 1 "2024 August 12"
1+
.TH VIMTUTOR 1 "2024 December 03"
22
.SH 名前
33
vimtutor \- Vim チュートリアル
44
.SH 書式
55
.br
6-
.B vimtutor [\-g] [language]
6+
.B vimtutor [\-l | \-\-language ISO639] [\-c | \-\-chapter NUMBER] [\-g | \-\-gui] [ISO639]
7+
.br
8+
.B vimtutor [\-h | \-\-help]
9+
.br
10+
.B vimtutor [\-\-list]
711
.SH 説明
812
.B Vim
913
のチュートリアルを起動します。
10-
演習ファイルのコピーを使って実施するので、オリジナルの演習ファイルを壊してしまう心配はありません。
1114
.PP
1215
.B Vim
1316
を初めて学ぶ人向けのチュートリアルです。
17+
省略可能な [ISO639] 引数は "ja" や "es" のような 2 または 3 文字の言語名です。
1418
.PP
15-
引数に \-g を指定すると GUI 版の Vim が利用可能であれば vim ではなく gvim
16-
を使って vimtutor が開始します。gvim が見つからないときは vim が使用されます。
17-
.PP
18-
[language] 引数は "ja" や "es" などの二文字の言語名です。
19-
[language] 引数を省略した場合はロケールの言語が使われます。
20-
翻訳された演習ファイルがある場合は、そのファイルが使われます。
21-
ない場合は英語のファイルが使われます。
19+
.B vimtutor
20+
は演習ファイルの一時的なコピーを開くので、オリジナルの演習ファイルを上書きしてしまう心配はありません。
2221
.PP
2322
.B Vim
24-
は Vi 互換モードで起動されます。
23+
は常に
24+
.B Vi
25+
互換モードで起動されます。
26+
.SH オプション
27+
.TP
28+
.BR \-l ", " \-\-language\ \fIISO639\fR
29+
2 または 3 文字の言語コードを設定します。
30+
例: 'ja', 'es', 'bar'
31+
ロケールの言語が使用可能であればそれが使われ、なければ英語がデフォルトとして使われます。
32+
.TP
33+
.BR \-c ", " \-\-chapter\ \fINUMBER\fR
34+
章番号を設定します。
35+
デフォルトは第 1 章です。
36+
.TP
37+
.BR \-g ", " \-\-gui
38+
使用可能であれば
39+
.B vimtutor
40+
を GUI 版の vim を使って開始します。そうでなければコンソール版の vim を使用します。
41+
.TP
42+
.BR \-h ", " \-\-help
43+
使い方を表示します。
44+
.TP
45+
.BR \-\-list
46+
章と言語の一覧を表示します。
47+
.SH
48+
.B vimtutor
49+
をドイツ語の第 1 章で開始するには:
50+
.PP
51+
.nf
52+
.RS
53+
vimtutor de
54+
.RE
55+
.fi
56+
.PP
57+
英語の第 2 章の場合は:
58+
.PP
59+
.nf
60+
.RS
61+
vimtutor -c2
62+
.RE
63+
.fi
64+
.PP
65+
GUI でバイエルン語の第 1 章を開始する際の長い形式のコマンドは:
66+
.PP
67+
.nf
68+
.RS
69+
vimtutor --language bar --chapter 1 --gui
70+
.RE
71+
.fi
2572
.SH ファイル
2673
.TP 15
27-
/usr/local/share/vim/vim??/tutor/tutor[.language]
74+
/usr/local/share/vim/vim??/tutor/tutor1[.language]
2875
.B Vimtutor
29-
の演習ファイル
30-
.I vim??
31-
は短いバージョン番号で
32-
.B Vim 9.1
33-
では vim91 です
76+
の第 1 章の演習ファイル
77+
.TP 15
78+
/usr/local/share/vim/vim??/tutor/tutor2[.language]
79+
.B Vimtutor
80+
の第 2 章の演習ファイル
3481
.TP 15
3582
/usr/local/share/vim/vim??/tutor/tutor.vim
36-
演習ファイルをコピーするための Vim スクリプト。
37-
.SH 著者
3883
.B Vimtutor
39-
は、Colorado State University の Charles Smith のアイデアを基に、
84+
の演習ファイルをコピーするための
85+
.B Vim
86+
スクリプト。
87+
.SH 著者
88+
.B The Vi Tutorial
89+
は、元々 Colorado State University の Charles Smith のアイデアを基に、
4090
Colorado School of Mines の Michael C. Pierce と Robert K. Ware
41-
の両名によって Vi 向けに作成されたものを基にしています
42-
E-mail: [email protected] (現在は無効).
43-
.br
91+
の両名によって Vi 向けに作成されました
92+
.B E-mail: [email protected] (現在は無効).
93+
.PP
4494
.B Vim
4595
に合わせて Bram Moolenaar が変更を加えました。
96+
.PP
4697
翻訳者の名前は演習ファイルを参照してください。
4798
.SH 関連項目
4899
vim(1)

runtime/doc/vimtutor.1

Lines changed: 77 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,108 @@
1-
.TH VIMTUTOR 1 "2024 August 12"
1+
.TH VIMTUTOR 1 "2024 December 03"
22
.SH NAME
33
vimtutor \- the Vim tutor
44
.SH SYNOPSIS
55
.br
6-
.B vimtutor [\-g] [language]
6+
.B vimtutor [\-l | \-\-language ISO639] [\-c | \-\-chapter NUMBER] [\-g | \-\-gui] [ISO639]
7+
.br
8+
.B vimtutor [\-h | \-\-help]
9+
.br
10+
.B vimtutor [\-\-list]
711
.SH DESCRIPTION
812
.B Vimtutor
913
starts the
1014
.B Vim
1115
tutor.
12-
It copies the tutor file first, so that it can be modified without changing
13-
the original file.
1416
.PP
1517
The
1618
.B Vimtutor
1719
is useful for people that want to learn their first
1820
.B Vim
1921
commands.
22+
The optional [ISO639] argument is the two or three letter name of a language,
23+
like "it" or "es".
2024
.PP
21-
The optional argument \-g starts vimtutor with gvim rather than vim, if the
22-
GUI version of Vim is available, or falls back to vim if gvim is not found.
23-
.PP
24-
The optional [language] argument is the two-letter name of a language, like
25-
"it" or "es".
26-
If the [language] argument is missing, the language of the current locale will
27-
be used.
28-
If a tutor in this language is available, it will be used.
29-
Otherwise the English version will be used.
25+
.B Vimtutor
26+
only opens temporary copies of the original tutor files, there is no danger
27+
of overwriting the lessons.
3028
.PP
3129
.B Vim
32-
is always started in Vi compatible mode.
30+
is always started in
31+
.B Vi
32+
compatible mode.
33+
.SH OPTIONS
34+
.TP
35+
.BR \-l ", " \-\-language\ \fIISO639\fR
36+
Set the two or three letter language code. E.g. 'it', 'es', 'bar'.
37+
Defaults to language of locale if available, else to English.
38+
.TP
39+
.BR \-c ", " \-\-chapter\ \fINUMBER\fR
40+
Set the chapter number. Defaults to chapter one.
41+
.TP
42+
.BR \-g ", " \-\-gui
43+
Start
44+
.B vimtutor
45+
in the GUI version of vim if available, otherwise fallback to console vim.
46+
.TP
47+
.BR \-h ", " \-\-help
48+
Display usage information.
49+
.TP
50+
.BR \-\-list
51+
Display chapters and languages.
52+
.SH EXAMPLES
53+
To start
54+
.B vimtutor
55+
in German on chapter one:
56+
.PP
57+
.nf
58+
.RS
59+
vimtutor de
60+
.RE
61+
.fi
62+
.PP
63+
In English on chapter two:
64+
.PP
65+
.nf
66+
.RS
67+
vimtutor -c2
68+
.RE
69+
.fi
70+
.PP
71+
Longform command for Bavarian in the GUI on chapter one:
72+
.PP
73+
.nf
74+
.RS
75+
vimtutor --language bar --chapter 1 --gui
76+
.RE
77+
.fi
3378
.SH FILES
3479
.TP 15
35-
/usr/local/share/vim/vim??/tutor/tutor[.language]
80+
/usr/local/share/vim/vim??/tutor/tutor1[.language]
3681
The
3782
.B Vimtutor
38-
text file(s).
39-
.br
40-
.I vim??
41-
is short version number, like vim91 for
42-
.B Vim 9.1
83+
chapter one text file(s).
84+
.TP 15
85+
/usr/local/share/vim/vim??/tutor/tutor2[.language]
86+
The
87+
.B Vimtutor
88+
chapter two text file(s).
4389
.TP 15
4490
/usr/local/share/vim/vim??/tutor/tutor.vim
45-
The Vim script used to copy the
91+
The
92+
.B Vim
93+
script used to copy the
4694
.B Vimtutor
4795
text file.
4896
.SH AUTHOR
49-
The
50-
.B Vimtutor
51-
was originally written for Vi by Michael C. Pierce and Robert K. Ware,
52-
Colorado School of Mines using ideas supplied by Charles Smith,
53-
Colorado State University.
54-
E-mail: [email protected] (now invalid).
55-
.br
56-
It was modified for
97+
.B The Vi Tutorial
98+
was originally written for Vi by Michael C. Pierce and Robert K. Ware, Colorado
99+
School of Mines using ideas supplied by Charles Smith, Colorado State University.
100+
.B E-mail: [email protected] (now invalid).
101+
.PP
102+
Modified for
57103
.B Vim
58104
by Bram Moolenaar.
59-
For the names of the translators see the tutor files.
105+
.PP
106+
Translation contributors are listed in the tutor files.
60107
.SH SEE ALSO
61108
vim(1)

runtime/doc/xxd-ja.UTF-8.1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
1 オクテットが "1" と "0" の 8 文字で出力されます。
5959
各行の行頭には 16 進数の行番号が表示されます。
6060
行末には ASCII (または EBCDIC) で表した場合の文字が表示されます。
61-
このモードでは \-p、\-i は機能しません。
61+
このモードでは \-p は機能しません。
62+
\-i と組み合わせることができます。
6263
.TP
6364
.IR \-e
6465
リトルエンディアンの 16 進ダンプに切り替える。
@@ -106,6 +107,7 @@
106107
C インクルードファイル形式で出力する。
107108
入力ファイルの名前が付けられた静的配列の定義が出力されます。
108109
標準入力の場合は定義の中身だけ出力されます。
110+
\-b と組み合わせることができます。
109111
.TP
110112
.IR "\-l len " | " \-len len"
111113
.RI < len >

runtime/doc/xxd.1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ Toggle autoskip: A single '*' replaces NUL-lines. Default off.
6363
Switch to bits (binary digits) dump, rather than hex dump.
6464
This option writes octets as eight digits "1"s and "0"s instead of a normal
6565
hexadecimal dump. Each line is preceded by a line number in hexadecimal and
66-
followed by an ASCII (or EBCDIC) representation. The command line switches
67-
\-p, \-i do not work with this mode.
66+
followed by an ASCII (or EBCDIC) representation. The command line switch
67+
\-p does not work with this mode. Can be combined with \-i.
6868
.TP
6969
.IR "\-c cols " | " \-cols cols"
7070
Format
@@ -109,7 +109,8 @@ Print a summary of available commands and exit. No hex dumping is performed.
109109
.TP
110110
.IR \-i " | " \-include
111111
Output in C include file style. A complete static array definition is written
112-
(named after the input file), unless xxd reads from stdin.
112+
(named after the input file), unless xxd reads from stdin. Can be combined
113+
with \-b.
113114
.TP
114115
.IR "\-l len " | " \-len len"
115116
Stop after writing

runtime/tutor/.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
/tutor.ja.sjis
2-
/tutor.ja.euc
1+
/tutor?.ja.sjis
2+
/tutor?.ja.euc

0 commit comments

Comments
 (0)