jkf 0.5.1 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.envrc +1 -0
- data/.yardopts +4 -0
- data/CHANGELOG.md +14 -0
- data/Gemfile +3 -12
- data/LICENSE.txt +1 -0
- data/README.en.md +26 -21
- data/README.md +34 -21
- data/bench.rb +1 -1
- data/jkf.gemspec +12 -8
- data/lib/jkf/converter/base.rb +1 -1
- data/lib/jkf/converter/csa.rb +4 -7
- data/lib/jkf/converter/ki2.rb +5 -5
- data/lib/jkf/converter/kif.rb +9 -14
- data/lib/jkf/converter/kifuable.rb +6 -6
- data/lib/jkf/parser/base.rb +2 -2
- data/lib/jkf/parser/csa.rb +282 -287
- data/lib/jkf/parser/ki2.rb +3 -2
- data/lib/jkf/parser/kif.rb +3 -6
- data/lib/jkf/parser/kifuable.rb +2 -2
- data/lib/jkf/version.rb +1 -1
- data/lib/jkf.rb +1 -0
- data/manifest.scm +4 -130
- data/po/all.pot +57 -47
- data/po/en.po +78 -76
- data/po/en.rdoc.po +580 -0
- metadata +32 -18
- data/.github/workflows/ci.yml +0 -16
- data/.hound.yml +0 -3
- data/.rubocop.yml +0 -65
- data/.rubocop_todo.yml +0 -7
- data/Guardfile +0 -27
- data/bin/console +0 -15
- data/bin/setup +0 -8
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
|
"[](https://badge.fury.io/rb/"
|
26
26
|
"jkf) []"
|
27
27
|
"(https://travis-ci.org/iyuuya/jkf) [](https://github.com/iyuuya/jkf/actions/"
|
29
29
|
"workflows/ci.yml)"
|
30
|
-
msgstr "
|
30
|
+
msgstr ""
|
31
|
+
"[](https://badge.fury.io/rb/"
|
32
|
+
"jkf) []"
|
33
|
+
"(https://travis-ci.org/iyuuya/jkf) [](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"
|