jkf 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.envrc +1 -0
- data/.rubocop.yml +10 -0
- data/.yardopts +4 -0
- data/CHANGELOG.md +10 -0
- data/Gemfile +10 -9
- data/README.en.md +26 -21
- data/README.md +29 -20
- data/bench.rb +1 -1
- data/jkf.gemspec +9 -7
- data/lib/jkf/converter/ki2.rb +5 -5
- data/lib/jkf/converter/kif.rb +4 -4
- data/lib/jkf/converter/kifuable.rb +3 -3
- data/lib/jkf/parser/base.rb +1 -1
- data/lib/jkf/parser/csa.rb +1 -1
- data/lib/jkf/version.rb +1 -1
- data/manifest.scm +2 -30
- data/po/all.pot +57 -47
- data/po/en.po +78 -76
- data/po/en.rdoc.po +580 -0
- metadata +16 -9
data/po/all.pot
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
msgid ""
|
8
8
|
msgstr ""
|
9
9
|
"Project-Id-Version: PACKAGE VERSION\n"
|
10
|
-
"POT-Creation-Date: 2023-
|
10
|
+
"POT-Creation-Date: 2023-07-22 08:02+0900\n"
|
11
11
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12
12
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13
13
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -19,11 +19,11 @@ msgstr ""
|
|
19
19
|
#. type: Title #
|
20
20
|
#: README.md:1
|
21
21
|
#, markdown-text, no-wrap
|
22
|
-
msgid "
|
22
|
+
msgid "jkf gem"
|
23
23
|
msgstr ""
|
24
24
|
|
25
25
|
#. type: Plain text
|
26
|
-
#: README.md:
|
26
|
+
#: README.md:4
|
27
27
|
#, markdown-text
|
28
28
|
msgid ""
|
29
29
|
"[![Gem "
|
@@ -34,77 +34,73 @@ msgid ""
|
|
34
34
|
msgstr ""
|
35
35
|
|
36
36
|
#. type: Plain text
|
37
|
-
#: README.md:
|
37
|
+
#: README.md:7
|
38
38
|
#, markdown-text
|
39
39
|
msgid ""
|
40
|
-
"jkfは[JSON棋譜フォーマット (JKF)][jkf]をRubyに移植したものです。 KIF
|
41
|
-
"CSA
|
40
|
+
"jkf gemは[JSON棋譜フォーマット (JKF)][jkf]をRubyに移植したものです。 柿木形式([棋譜ファイル KIF "
|
41
|
+
"形式][kakinoki]、KI2)、[CSA標準棋譜ファイル形式][csa]の構文解析とJKFへの変換、JKFからKIF, KI2, "
|
42
|
+
"CSAへの変換に対応しています。"
|
42
43
|
msgstr ""
|
43
44
|
|
44
45
|
#. type: Plain text
|
45
|
-
#: README.md:
|
46
|
+
#: README.md:11
|
46
47
|
#, markdown-text
|
47
48
|
msgid ""
|
48
|
-
"[jkf]: "
|
49
|
-
"https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-format"
|
49
|
+
"[csa]: http://www2.computer-shogi.org/protocol/record_v22.html [jkf]: "
|
50
|
+
"https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-format "
|
51
|
+
"[kakinoki]: http://kakinoki.o.oo7.jp/kif_format.html"
|
50
52
|
msgstr ""
|
51
53
|
|
52
54
|
#. type: Title ##
|
53
|
-
#: README.md:
|
55
|
+
#: README.md:12
|
54
56
|
#, markdown-text, no-wrap
|
55
|
-
msgid "
|
57
|
+
msgid "インストール"
|
56
58
|
msgstr ""
|
57
59
|
|
58
60
|
#. type: Plain text
|
59
|
-
#: README.md:
|
61
|
+
#: README.md:15
|
60
62
|
#, markdown-text
|
61
|
-
msgid "
|
62
|
-
msgstr ""
|
63
|
-
|
64
|
-
#. type: Fenced code block (ruby)
|
65
|
-
#: README.md:13
|
66
|
-
#, no-wrap
|
67
|
-
msgid "gem 'jkf'\n"
|
63
|
+
msgid "アプリケーションにインストールする場合([Bundler][bundler]を使用する場合)、`Gemfile`に以下のように記述してください。"
|
68
64
|
msgstr ""
|
69
65
|
|
70
66
|
#. type: Plain text
|
71
|
-
#: README.md:
|
67
|
+
#: README.md:17
|
72
68
|
#, markdown-text
|
73
|
-
msgid "
|
69
|
+
msgid "[bundler]: https://bundler.io/"
|
74
70
|
msgstr ""
|
75
71
|
|
76
|
-
#. type:
|
77
|
-
#: README.md:
|
78
|
-
#,
|
79
|
-
msgid "
|
72
|
+
#. type: Fenced code block (ruby)
|
73
|
+
#: README.md:18
|
74
|
+
#, no-wrap
|
75
|
+
msgid "gem 'jkf'\n"
|
80
76
|
msgstr ""
|
81
77
|
|
82
78
|
#. type: Plain text
|
83
|
-
#: README.md:
|
79
|
+
#: README.md:23
|
84
80
|
#, markdown-text
|
85
|
-
msgid "
|
81
|
+
msgid "さらに`bundle`コマンドを実行することでインストールできます。"
|
86
82
|
msgstr ""
|
87
83
|
|
88
84
|
#. type: Plain text
|
89
|
-
#: README.md:
|
90
|
-
#, markdown-text
|
91
|
-
msgid "
|
85
|
+
#: README.md:25
|
86
|
+
#, markdown-text
|
87
|
+
msgid "または、`gem install`コマンドを使って直接インストールもできます。"
|
92
88
|
msgstr ""
|
93
89
|
|
94
90
|
#. type: Title ##
|
95
|
-
#: README.md:
|
91
|
+
#: README.md:26
|
96
92
|
#, markdown-text, no-wrap
|
97
|
-
msgid "
|
93
|
+
msgid "使い方"
|
98
94
|
msgstr ""
|
99
95
|
|
100
96
|
#. type: Plain text
|
101
|
-
#: README.md:
|
97
|
+
#: README.md:29
|
102
98
|
#, markdown-text
|
103
|
-
msgid "KIF, KI2, CSA
|
99
|
+
msgid "KIF, KI2, CSAそれぞれ構文解析器 {Jkf::Parser} と変換器 {Jkf::Converter} が用意してあります。"
|
104
100
|
msgstr ""
|
105
101
|
|
106
102
|
#. type: Fenced code block (ruby)
|
107
|
-
#: README.md:
|
103
|
+
#: README.md:30
|
108
104
|
#, no-wrap
|
109
105
|
msgid ""
|
110
106
|
"kif_parser = Jkf::Parser::Kif.new\n"
|
@@ -113,7 +109,7 @@ msgid ""
|
|
113
109
|
msgstr ""
|
114
110
|
|
115
111
|
#. type: Fenced code block (ruby)
|
116
|
-
#: README.md:
|
112
|
+
#: README.md:36
|
117
113
|
#, no-wrap
|
118
114
|
msgid ""
|
119
115
|
"kif_converter = Jkf::Converter::Kif.new\n"
|
@@ -122,13 +118,15 @@ msgid ""
|
|
122
118
|
msgstr ""
|
123
119
|
|
124
120
|
#. type: Plain text
|
125
|
-
#: README.md:
|
121
|
+
#: README.md:43
|
126
122
|
#, markdown-text
|
127
|
-
msgid "
|
123
|
+
msgid ""
|
124
|
+
"{Jkf::Parser::Base#parse} でJKFへの変換、 {Jkf::Converter::Base#convert} "
|
125
|
+
"でJKFから各形式へ変換できます。"
|
128
126
|
msgstr ""
|
129
127
|
|
130
128
|
#. type: Fenced code block (ruby)
|
131
|
-
#: README.md:
|
129
|
+
#: README.md:44
|
132
130
|
#, no-wrap
|
133
131
|
msgid ""
|
134
132
|
"jkf = kif_parser.parse(kif_str) #=> Hash\n"
|
@@ -137,7 +135,7 @@ msgid ""
|
|
137
135
|
msgstr ""
|
138
136
|
|
139
137
|
#. type: Fenced code block (ruby)
|
140
|
-
#: README.md:
|
138
|
+
#: README.md:50
|
141
139
|
#, no-wrap
|
142
140
|
msgid ""
|
143
141
|
"kif = kif_converter.convert(jkf) #=> String\n"
|
@@ -146,31 +144,43 @@ msgid ""
|
|
146
144
|
msgstr ""
|
147
145
|
|
148
146
|
#. type: Title ##
|
149
|
-
#: README.md:
|
147
|
+
#: README.md:56
|
150
148
|
#, markdown-text, no-wrap
|
151
|
-
msgid "
|
149
|
+
msgid "貢献"
|
152
150
|
msgstr ""
|
153
151
|
|
154
152
|
#. type: Plain text
|
155
153
|
#: README.md:59
|
156
154
|
#, markdown-text
|
157
|
-
msgid "バグレポートやプルリクエストは
|
155
|
+
msgid "バグレポートやプルリクエストは[GitHubのリポジトリ][repo]でよろしくお願いします。"
|
158
156
|
msgstr ""
|
159
157
|
|
160
158
|
#. type: Plain text
|
161
159
|
#: README.md:61
|
162
160
|
#, markdown-text
|
161
|
+
msgid "[repo]: https://github.com/iyuuya/jkf"
|
162
|
+
msgstr ""
|
163
|
+
|
164
|
+
#. type: Plain text
|
165
|
+
#: README.md:63
|
166
|
+
#, markdown-text
|
163
167
|
msgid "Guixで開発されている場合は`guix shell`で`rake test`によるテスト実行ができます。"
|
164
168
|
msgstr ""
|
165
169
|
|
166
170
|
#. type: Title ##
|
167
|
-
#: README.md:
|
171
|
+
#: README.md:64
|
168
172
|
#, markdown-text, no-wrap
|
169
|
-
msgid "
|
173
|
+
msgid "利用許諾"
|
174
|
+
msgstr ""
|
175
|
+
|
176
|
+
#. type: Plain text
|
177
|
+
#: README.md:67
|
178
|
+
#, markdown-text
|
179
|
+
msgid "ライセンスは[MIT License][mit]です。"
|
170
180
|
msgstr ""
|
171
181
|
|
172
182
|
#. type: Plain text
|
173
|
-
#: README.md:
|
183
|
+
#: README.md:68
|
174
184
|
#, markdown-text
|
175
|
-
msgid "
|
185
|
+
msgid "[mit]: http://opensource.org/licenses/MIT"
|
176
186
|
msgstr ""
|
data/po/en.po
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
msgid ""
|
5
5
|
msgstr ""
|
6
6
|
"Project-Id-Version: jkf gem\n"
|
7
|
-
"POT-Creation-Date: 2023-
|
8
|
-
"PO-Revision-Date: 2023-
|
7
|
+
"POT-Creation-Date: 2023-07-22 08:02+0900\n"
|
8
|
+
"PO-Revision-Date: 2023-07-22 08:08+0900\n"
|
9
9
|
"Last-Translator: gemmaro <gemmaro.dev@gmail.com>\n"
|
10
10
|
"Language-Team: none\n"
|
11
11
|
"Language: en\n"
|
@@ -16,97 +16,94 @@ msgstr ""
|
|
16
16
|
#. type: Title #
|
17
17
|
#: README.md:1
|
18
18
|
#, no-wrap
|
19
|
-
msgid "
|
20
|
-
msgstr "
|
19
|
+
msgid "jkf gem"
|
20
|
+
msgstr "jkf gem"
|
21
21
|
|
22
22
|
#. type: Plain text
|
23
|
-
#: README.md:
|
23
|
+
#: README.md:4
|
24
24
|
msgid ""
|
25
25
|
"[![Gem Version](https://badge.fury.io/rb/jkf.svg)](https://badge.fury.io/rb/"
|
26
26
|
"jkf) [![Build Status](https://travis-ci.org/iyuuya/jkf.svg?branch=master)]"
|
27
27
|
"(https://travis-ci.org/iyuuya/jkf) [![CI](https://github.com/iyuuya/jkf/"
|
28
28
|
"actions/workflows/ci.yml/badge.svg)](https://github.com/iyuuya/jkf/actions/"
|
29
29
|
"workflows/ci.yml)"
|
30
|
-
msgstr "
|
30
|
+
msgstr ""
|
31
|
+
"[![Gem Version](https://badge.fury.io/rb/jkf.svg)](https://badge.fury.io/rb/"
|
32
|
+
"jkf) [![Build Status](https://travis-ci.org/iyuuya/jkf.svg?branch=master)]"
|
33
|
+
"(https://travis-ci.org/iyuuya/jkf) [![CI](https://github.com/iyuuya/jkf/"
|
34
|
+
"actions/workflows/ci.yml/badge.svg)](https://github.com/iyuuya/jkf/actions/"
|
35
|
+
"workflows/ci.yml)"
|
31
36
|
|
32
37
|
#. type: Plain text
|
33
|
-
#: README.md:
|
38
|
+
#: README.md:7
|
34
39
|
msgid ""
|
35
|
-
"jkfは[JSON棋譜フォーマット (JKF)][jkf]をRubyに移植したものです。
|
36
|
-
"
|
40
|
+
"jkf gemは[JSON棋譜フォーマット (JKF)][jkf]をRubyに移植したものです。 柿木形式"
|
41
|
+
"([棋譜ファイル KIF 形式][kakinoki]、KI2)、[CSA標準棋譜ファイル形式][csa]の"
|
42
|
+
"構文解析とJKFへの変換、JKFからKIF, KI2, CSAへの変換に対応しています。"
|
37
43
|
msgstr ""
|
38
|
-
"jkf is a Ruby port of [json-kifu-format][jkf].\n"
|
39
|
-
"It supports both of the conversion from KIF, KI2, or CSA to
|
40
|
-
"from jkf to KIF, KI2, or CSA."
|
44
|
+
"The jkf gem is a Ruby port of [json-kifu-format (JKF)][jkf].\n"
|
45
|
+
"It supports both of the conversion from KIF (see [棋譜ファイル KIF 形式][kakinoki]), KI2, or CSA (see [CSA標準棋譜ファイル形式][csa]) to JKF, and the one from JKF to KIF, KI2, or CSA."
|
41
46
|
|
42
|
-
# TODO: insert space after colon; temp po4a limitation
|
43
47
|
#. type: Plain text
|
44
|
-
#: README.md:
|
48
|
+
#: README.md:11
|
45
49
|
msgid ""
|
46
|
-
"[
|
47
|
-
"format"
|
50
|
+
"[csa]: http://www2.computer-shogi.org/protocol/record_v22.html [jkf]: "
|
51
|
+
"https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-format "
|
52
|
+
"[kakinoki]: http://kakinoki.o.oo7.jp/kif_format.html"
|
48
53
|
msgstr ""
|
49
|
-
"[
|
50
|
-
"format"
|
54
|
+
"[csa]: http://www2.computer-shogi.org/protocol/record_v22.html\n"
|
55
|
+
"[jkf]: https://github.com/na2hiro/Kifu-for-JS/tree/master/packages/json-kifu-format\n"
|
56
|
+
"[kakinoki]: http://kakinoki.o.oo7.jp/kif_format.html"
|
51
57
|
|
52
58
|
#. type: Title ##
|
53
|
-
#: README.md:
|
59
|
+
#: README.md:12
|
54
60
|
#, no-wrap
|
55
|
-
msgid "
|
61
|
+
msgid "インストール"
|
56
62
|
msgstr "Installation"
|
57
63
|
|
58
64
|
#. type: Plain text
|
59
|
-
#: README.md:
|
65
|
+
#: README.md:15
|
60
66
|
msgid ""
|
61
|
-
"
|
62
|
-
"
|
63
|
-
msgstr ""
|
64
|
-
|
65
|
-
|
67
|
+
"アプリケーションにインストールする場合([Bundler][bundler]を使用する場合)、"
|
68
|
+
"`Gemfile`に以下のように記述してください。"
|
69
|
+
msgstr "If you install this gem to your application (with [Bundler][bundler]), add this to `Gemfile`."
|
70
|
+
|
71
|
+
#. type: Plain text
|
72
|
+
#: README.md:17
|
73
|
+
msgid "[bundler]: https://bundler.io/"
|
74
|
+
msgstr "[bundler]: https://bundler.io/"
|
66
75
|
|
67
76
|
#. type: Fenced code block (ruby)
|
68
|
-
#: README.md:
|
77
|
+
#: README.md:18
|
69
78
|
#, no-wrap
|
70
79
|
msgid "gem 'jkf'\n"
|
71
80
|
msgstr "gem 'jkf'\n"
|
72
81
|
|
73
82
|
#. type: Plain text
|
74
|
-
#: README.md:
|
75
|
-
msgid "
|
76
|
-
msgstr "Then run bundle to install this gem."
|
77
|
-
|
78
|
-
#. type: Plain text
|
79
|
-
#: README.md:20
|
80
|
-
#, no-wrap
|
81
|
-
msgid " $ bundle\n"
|
82
|
-
msgstr " $ bundle\n"
|
83
|
-
|
84
|
-
#. type: Plain text
|
85
|
-
#: README.md:22
|
86
|
-
msgid "または、gem installコマンドを使って直接インストールすることもできます。"
|
87
|
-
msgstr "Or directly install with gem install command."
|
83
|
+
#: README.md:23
|
84
|
+
msgid "さらに`bundle`コマンドを実行することでインストールできます。"
|
85
|
+
msgstr "Then run `bundle` to install this gem."
|
88
86
|
|
89
87
|
#. type: Plain text
|
90
|
-
#: README.md:
|
91
|
-
|
92
|
-
|
93
|
-
msgstr " $ gem install jkf\n"
|
88
|
+
#: README.md:25
|
89
|
+
msgid "または、`gem install`コマンドを使って直接インストールもできます。"
|
90
|
+
msgstr "Or directly install with `gem install` command."
|
94
91
|
|
95
92
|
#. type: Title ##
|
96
|
-
#: README.md:
|
93
|
+
#: README.md:26
|
97
94
|
#, no-wrap
|
98
|
-
msgid "
|
95
|
+
msgid "使い方"
|
99
96
|
msgstr "Usage"
|
100
97
|
|
101
98
|
#. type: Plain text
|
102
|
-
#: README.md:
|
103
|
-
msgid "
|
104
|
-
|
105
|
-
"
|
106
|
-
"CSA."
|
99
|
+
#: README.md:29
|
100
|
+
msgid ""
|
101
|
+
"KIF, KI2, CSAそれぞれ構文解析器 {Jkf::Parser} と変換器 {Jkf::Converter} が用"
|
102
|
+
"意してあります。"
|
103
|
+
msgstr "This gem has the parser {Jkf::Parser} and the converter {Jkf::Converter} for each formats: KIF, KI2, and CSA."
|
107
104
|
|
108
105
|
#. type: Fenced code block (ruby)
|
109
|
-
#: README.md:
|
106
|
+
#: README.md:30
|
110
107
|
#, no-wrap
|
111
108
|
msgid ""
|
112
109
|
"kif_parser = Jkf::Parser::Kif.new\n"
|
@@ -118,7 +115,7 @@ msgstr ""
|
|
118
115
|
"csa_parser = Jkf::Parser::Csa.new\n"
|
119
116
|
|
120
117
|
#. type: Fenced code block (ruby)
|
121
|
-
#: README.md:
|
118
|
+
#: README.md:36
|
122
119
|
#, no-wrap
|
123
120
|
msgid ""
|
124
121
|
"kif_converter = Jkf::Converter::Kif.new\n"
|
@@ -130,16 +127,16 @@ msgstr ""
|
|
130
127
|
"csa_converter = Jkf::Converter::Csa.new\n"
|
131
128
|
|
132
129
|
#. type: Plain text
|
133
|
-
#: README.md:
|
130
|
+
#: README.md:43
|
134
131
|
msgid ""
|
135
|
-
"
|
136
|
-
"
|
132
|
+
"{Jkf::Parser::Base#parse} でJKFへの変換、 {Jkf::Converter::Base#convert} で"
|
133
|
+
"JKFから各形式へ変換できます。"
|
137
134
|
msgstr ""
|
138
|
-
"
|
139
|
-
"
|
135
|
+
"{Jkf::Parser::Base#parse} to convert into JKF.\n"
|
136
|
+
"{Jkf::Converter::Base#convert} to convert into each formats from JKF."
|
140
137
|
|
141
138
|
#. type: Fenced code block (ruby)
|
142
|
-
#: README.md:
|
139
|
+
#: README.md:44
|
143
140
|
#, no-wrap
|
144
141
|
msgid ""
|
145
142
|
"jkf = kif_parser.parse(kif_str) #=> Hash\n"
|
@@ -151,7 +148,7 @@ msgstr ""
|
|
151
148
|
"jkf = csa_parser.parse(csa_str) #=> Hash\n"
|
152
149
|
|
153
150
|
#. type: Fenced code block (ruby)
|
154
|
-
#: README.md:
|
151
|
+
#: README.md:50
|
155
152
|
#, no-wrap
|
156
153
|
msgid ""
|
157
154
|
"kif = kif_converter.convert(jkf) #=> String\n"
|
@@ -163,37 +160,42 @@ msgstr ""
|
|
163
160
|
"csa = csa_converter.convert(jkf) #=> String\n"
|
164
161
|
|
165
162
|
#. type: Title ##
|
166
|
-
#: README.md:
|
163
|
+
#: README.md:56
|
167
164
|
#, no-wrap
|
168
|
-
msgid "
|
165
|
+
msgid "貢献"
|
169
166
|
msgstr "Contributing"
|
170
167
|
|
171
168
|
#. type: Plain text
|
172
169
|
#: README.md:59
|
173
170
|
msgid ""
|
174
|
-
"バグレポートやプルリクエストは
|
175
|
-
"
|
176
|
-
msgstr ""
|
177
|
-
"Feel free to report bugs or send pull requests at [GitHub](https://github."
|
178
|
-
"com/iyuuya/jkf)."
|
171
|
+
"バグレポートやプルリクエストは[GitHubのリポジトリ][repo]でよろしくお願いしま"
|
172
|
+
"す。"
|
173
|
+
msgstr "Feel free to report bugs or send pull requests at [the GitHub repository][repo]."
|
179
174
|
|
180
175
|
#. type: Plain text
|
181
176
|
#: README.md:61
|
177
|
+
msgid "[repo]: https://github.com/iyuuya/jkf"
|
178
|
+
msgstr "[repo]: https://github.com/iyuuya/jkf"
|
179
|
+
|
180
|
+
#. type: Plain text
|
181
|
+
#: README.md:63
|
182
182
|
msgid ""
|
183
183
|
"Guixで開発されている場合は`guix shell`で`rake test`によるテスト実行ができま"
|
184
184
|
"す。"
|
185
185
|
msgstr "If you work on Guix, run tests by `guix shell`."
|
186
186
|
|
187
187
|
#. type: Title ##
|
188
|
-
#: README.md:
|
188
|
+
#: README.md:64
|
189
189
|
#, no-wrap
|
190
|
-
msgid "
|
190
|
+
msgid "利用許諾"
|
191
191
|
msgstr "License"
|
192
192
|
|
193
193
|
#. type: Plain text
|
194
|
-
#: README.md:
|
195
|
-
msgid ""
|
196
|
-
"
|
197
|
-
|
198
|
-
|
199
|
-
|
194
|
+
#: README.md:67
|
195
|
+
msgid "ライセンスは[MIT License][mit]です。"
|
196
|
+
msgstr "This gem is provided under the [MIT License][mit]."
|
197
|
+
|
198
|
+
#. type: Plain text
|
199
|
+
#: README.md:68
|
200
|
+
msgid "[mit]: http://opensource.org/licenses/MIT"
|
201
|
+
msgstr "[mit]: http://opensource.org/licenses/MIT"
|