wwwjdic 14.0.0 → 15.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +19 -0
- data/Gemfile +5 -1
- data/README.md +461 -192
- data/Rakefile +7 -2
- data/copyright.md +17 -29
- data/examples/basics.rb +51 -45
- data/examples/translate.rb +135 -86
- data/examples/uri.rb +34 -78
- data/html/CHANGELOG.html +48 -31
- data/html/COPYING_md.html +31 -35
- data/html/Gemfile.html +28 -32
- data/html/Object.html +71 -71
- data/html/README_md.html +326 -159
- data/html/Rakefile.html +29 -33
- data/html/WWWJDic.html +137 -98
- data/html/WWWJDic/ParsableDuckType.html +55 -55
- data/html/WWWJDic/Parser.html +88 -88
- data/html/WWWJDic/Parsers.html +33 -33
- data/html/WWWJDic/Parsers/Dict.html +71 -73
- data/html/WWWJDic/Parsers/Display.html +66 -66
- data/html/WWWJDic/Parsers/Key.html +67 -67
- data/html/WWWJDic/Parsers/Search.html +59 -58
- data/html/WWWJDic/Parsers/Server.html +66 -66
- data/html/WWWJDic/Splitter.html +173 -172
- data/html/WWWJDic/Utils.html +34 -34
- data/html/WWWJDic/Utils/Downloader.html +33 -33
- data/html/WWWJDic/Utils/Downloader/Downloader.html +91 -89
- data/html/WWWJDic/Utils/Raisers.html +95 -95
- data/html/WWWJDic/WWWJDic.html +343 -345
- data/html/copyright_md.html +37 -51
- data/html/created.rid +55 -57
- data/html/index.html +334 -164
- data/html/js/darkfish.js +84 -84
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +110 -110
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +229 -229
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +44 -75
- data/lib/wwwjdic.rb +7 -11
- data/lib/wwwjdic/application.rb +13 -7
- data/lib/wwwjdic/constants.rb +16 -8
- data/lib/wwwjdic/locales/de.yml +5 -4
- data/lib/wwwjdic/locales/en.yml +5 -4
- data/lib/wwwjdic/locales/es.yml +5 -4
- data/lib/wwwjdic/locales/fr.yml +6 -4
- data/lib/wwwjdic/locales/hu.yml +6 -4
- data/lib/wwwjdic/locales/it.yml +6 -4
- data/lib/wwwjdic/locales/ja.yml +8 -4
- data/lib/wwwjdic/locales/nl.yml +5 -4
- data/lib/wwwjdic/locales/ru.yml +5 -4
- data/lib/wwwjdic/locales/sl.yml +5 -4
- data/lib/wwwjdic/locales/sv.yml +5 -4
- data/lib/wwwjdic/parser.rb +8 -4
- data/lib/wwwjdic/parsers/dict.rb +9 -7
- data/lib/wwwjdic/parsers/display.rb +6 -2
- data/lib/wwwjdic/parsers/key.rb +8 -3
- data/lib/wwwjdic/parsers/search.rb +8 -3
- data/lib/wwwjdic/parsers/server.rb +6 -2
- data/lib/wwwjdic/utils/downloader.rb +21 -23
- data/lib/wwwjdic/utils/raisers.rb +7 -3
- data/lib/wwwjdic/utils/splitter.rb +20 -14
- data/lib/wwwjdic/version.rb +2 -6
- data/test/test_helper.rb +5 -1
- data/test/test_wwwjdic.rb +6 -2
- data/test/wwwjdic/locales/de.yml +7 -1
- data/test/wwwjdic/locales/en.yml +7 -1
- data/test/wwwjdic/locales/es.yml +7 -1
- data/test/wwwjdic/locales/fr.yml +7 -1
- data/test/wwwjdic/locales/hu.yml +7 -1
- data/test/wwwjdic/locales/it.yml +10 -3
- data/test/wwwjdic/locales/ja.yml +9 -2
- data/test/wwwjdic/locales/nl.yml +7 -1
- data/test/wwwjdic/locales/ru.yml +7 -1
- data/test/wwwjdic/locales/sl.yml +7 -1
- data/test/wwwjdic/locales/sv.yml +7 -1
- data/test/wwwjdic/locales/test_locales.rb +12 -9
- data/test/wwwjdic/parsers/test_dict.rb +6 -2
- data/test/wwwjdic/parsers/test_display.rb +6 -2
- data/test/wwwjdic/parsers/test_key.rb +6 -2
- data/test/wwwjdic/parsers/test_server.rb +6 -2
- data/test/wwwjdic/test_application.rb +12 -8
- data/test/wwwjdic/test_parsable_duck_type.rb +6 -2
- data/test/wwwjdic/utils/test_downloader.rb +5 -1
- data/test/wwwjdic/utils/test_raisers.rb +10 -6
- data/wwwjdic.gemspec +30 -14
- metadata +50 -22
- data/acknowledgements.md +0 -55
- data/authors.md +0 -67
- data/html/acknowledgements_md.html +0 -150
- data/html/authors_md.html +0 -182
data/html/js/searcher.js.gz
CHANGED
Binary file
|
data/html/table_of_contents.html
CHANGED
@@ -4,18 +4,18 @@
|
|
4
4
|
<head>
|
5
5
|
<meta charset="UTF-8">
|
6
6
|
|
7
|
-
<title>Table of Contents - wwwjdic
|
7
|
+
<title>Table of Contents - wwwjdic 15.0.0</title>
|
8
8
|
|
9
9
|
<script type="text/javascript">
|
10
10
|
var rdoc_rel_prefix = "./";
|
11
11
|
var index_rel_prefix = "./";
|
12
12
|
</script>
|
13
13
|
|
14
|
-
<script src="./js/navigation.js"
|
15
|
-
<script src="./js/search.js"
|
16
|
-
<script src="./js/search_index.js"
|
17
|
-
<script src="./js/searcher.js"
|
18
|
-
<script src="./js/darkfish.js"
|
14
|
+
<script defer src="./js/navigation.js"></script>
|
15
|
+
<script defer src="./js/search.js"></script>
|
16
|
+
<script defer src="./js/search_index.js"></script>
|
17
|
+
<script defer src="./js/searcher.js"></script>
|
18
|
+
<script defer src="./js/darkfish.js"></script>
|
19
19
|
|
20
20
|
<link href="./css/fonts.css" rel="stylesheet">
|
21
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
@@ -23,9 +23,9 @@
|
|
23
23
|
|
24
24
|
|
25
25
|
|
26
|
-
<body
|
26
|
+
<body class="table-of-contents" id="top">
|
27
27
|
<main role="main">
|
28
|
-
<h1 class="class">Table of Contents - wwwjdic
|
28
|
+
<h1 class="class">Table of Contents - wwwjdic 15.0.0</h1>
|
29
29
|
|
30
30
|
|
31
31
|
|
@@ -37,6 +37,8 @@
|
|
37
37
|
|
38
38
|
<ul>
|
39
39
|
|
40
|
+
<li><a href="CHANGELOG.html#label-Version+15.0.0">Version 15.0.0</a>
|
41
|
+
|
40
42
|
<li><a href="CHANGELOG.html#label-Version+14.0.0">Version 14.0.0</a>
|
41
43
|
|
42
44
|
<li><a href="CHANGELOG.html#label-Version+13.0.1">Version 13.0.1</a>
|
@@ -124,7 +126,7 @@
|
|
124
126
|
</ul>
|
125
127
|
|
126
128
|
</li>
|
127
|
-
|
129
|
+
|
128
130
|
<li class="file">
|
129
131
|
<a href="COPYING_md.html">COPYING</a>
|
130
132
|
|
@@ -177,12 +179,12 @@
|
|
177
179
|
</ul>
|
178
180
|
|
179
181
|
</li>
|
180
|
-
|
182
|
+
|
181
183
|
<li class="file">
|
182
184
|
<a href="Gemfile.html">Gemfile</a>
|
183
185
|
|
184
186
|
</li>
|
185
|
-
|
187
|
+
|
186
188
|
<li class="file">
|
187
189
|
<a href="README_md.html">README</a>
|
188
190
|
|
@@ -190,69 +192,35 @@
|
|
190
192
|
|
191
193
|
<li><a href="README_md.html#label-WWWJDic">WWWJDic</a>
|
192
194
|
|
193
|
-
<li><a href="README_md.html#label-
|
194
|
-
|
195
|
-
<li><a href="README_md.html#label-Documentation">Documentation</a>
|
196
|
-
|
197
|
-
<li><a href="README_md.html#label-Installing+WWWJDic">Installing WWWJDic</a>
|
198
|
-
|
199
|
-
<li><a href="README_md.html#label-Supported+Ruby+Versions+and+Implementations">Supported Ruby Versions and Implementations</a>
|
200
|
-
|
201
|
-
<li><a href="README_md.html#label-Support">Support</a>
|
202
|
-
|
203
|
-
<li><a href="README_md.html#label-Contributing">Contributing</a>
|
195
|
+
<li><a href="README_md.html#label-Table+of+Contents">Table of Contents</a>
|
204
196
|
|
205
|
-
<li><a href="README_md.html#label-
|
197
|
+
<li><a href="README_md.html#label-Background">Background</a>
|
206
198
|
|
207
|
-
<li><a href="README_md.html#label-
|
199
|
+
<li><a href="README_md.html#label-Install">Install</a>
|
208
200
|
|
209
201
|
<li><a href="README_md.html#label-Savannah">Savannah</a>
|
210
202
|
|
211
203
|
<li><a href="README_md.html#label-RubyGems">RubyGems</a>
|
212
204
|
|
213
|
-
<li><a href="README_md.html#label-
|
205
|
+
<li><a href="README_md.html#label-Usage">Usage</a>
|
214
206
|
|
215
|
-
<li><a href="README_md.html#label-
|
207
|
+
<li><a href="README_md.html#label-Maintainers">Maintainers</a>
|
216
208
|
|
217
|
-
<li><a href="README_md.html#label-
|
209
|
+
<li><a href="README_md.html#label-Thanks">Thanks</a>
|
218
210
|
|
219
|
-
|
220
|
-
|
221
|
-
</li>
|
222
|
-
|
223
|
-
<li class="file">
|
224
|
-
<a href="Rakefile.html">Rakefile</a>
|
225
|
-
|
226
|
-
</li>
|
227
|
-
|
228
|
-
<li class="file">
|
229
|
-
<a href="acknowledgements_md.html">acknowledgements</a>
|
230
|
-
|
231
|
-
<ul>
|
232
|
-
|
233
|
-
<li><a href="acknowledgements_md.html#label-Acknowledgements">Acknowledgements</a>
|
211
|
+
<li><a href="README_md.html#label-Contributing">Contributing</a>
|
234
212
|
|
235
|
-
<li><a href="
|
213
|
+
<li><a href="README_md.html#label-License">License</a>
|
236
214
|
|
237
215
|
</ul>
|
238
216
|
|
239
217
|
</li>
|
240
|
-
|
241
|
-
<li class="file">
|
242
|
-
<a href="authors_md.html">authors</a>
|
243
|
-
|
244
|
-
<ul>
|
245
218
|
|
246
|
-
|
247
|
-
|
248
|
-
<li><a href="authors_md.html#label-Authors+list+-28in+appearing+order-29">Authors list (in appearing order)</a>
|
249
|
-
|
250
|
-
<li><a href="authors_md.html#label-Translations+Authors+-28in+appearing+order-29">Translations Authors (in appearing order)</a>
|
251
|
-
|
252
|
-
</ul>
|
219
|
+
<li class="file">
|
220
|
+
<a href="Rakefile.html">Rakefile</a>
|
253
221
|
|
254
222
|
</li>
|
255
|
-
|
223
|
+
|
256
224
|
<li class="file">
|
257
225
|
<a href="copyright_md.html">copyright</a>
|
258
226
|
|
@@ -270,16 +238,12 @@
|
|
270
238
|
|
271
239
|
<li><a href="copyright_md.html#label-Silk+Icons">Silk Icons</a>
|
272
240
|
|
273
|
-
<li><a href="copyright_md.html#label-jquery.js">jquery.js</a>
|
274
|
-
|
275
|
-
<li><a href="copyright_md.html#label-Sizzle.js">Sizzle.js</a>
|
276
|
-
|
277
241
|
<li><a href="copyright_md.html#label-JsonIndex+generator+-28navigation.js+-26+search.js+-26+search_index.js+-26+searcher.js-29">JsonIndex generator (navigation.js & search.js & search_index.js & searcher.js)</a>
|
278
242
|
|
279
243
|
</ul>
|
280
244
|
|
281
245
|
</li>
|
282
|
-
|
246
|
+
|
283
247
|
</ul>
|
284
248
|
|
285
249
|
|
@@ -382,9 +346,9 @@
|
|
382
346
|
<span class="container">WWWJDic::Utils::Downloader::Downloader</span>
|
383
347
|
|
384
348
|
<li class="method">
|
385
|
-
<a href="WWWJDic/
|
349
|
+
<a href="WWWJDic/Parser.html#method-c-new">::new</a>
|
386
350
|
—
|
387
|
-
<span class="container">WWWJDic::
|
351
|
+
<span class="container">WWWJDic::Parser</span>
|
388
352
|
|
389
353
|
<li class="method">
|
390
354
|
<a href="WWWJDic/Splitter.html#method-c-new">::new</a>
|
@@ -392,9 +356,14 @@
|
|
392
356
|
<span class="container">WWWJDic::Splitter</span>
|
393
357
|
|
394
358
|
<li class="method">
|
395
|
-
<a href="WWWJDic/
|
359
|
+
<a href="WWWJDic/WWWJDic.html#method-c-new">::new</a>
|
396
360
|
—
|
397
|
-
<span class="container">WWWJDic::
|
361
|
+
<span class="container">WWWJDic::WWWJDic</span>
|
362
|
+
|
363
|
+
<li class="method">
|
364
|
+
<a href="WWWJDic.html#method-c-parser">::parser</a>
|
365
|
+
—
|
366
|
+
<span class="container">WWWJDic</span>
|
398
367
|
|
399
368
|
<li class="method">
|
400
369
|
<a href="WWWJDic/Splitter.html#method-i-content">#content</a>
|
@@ -441,16 +410,6 @@
|
|
441
410
|
—
|
442
411
|
<span class="container">WWWJDic::Parser</span>
|
443
412
|
|
444
|
-
<li class="method">
|
445
|
-
<a href="WWWJDic/Parsers/Dict.html#method-i-parse">#parse</a>
|
446
|
-
—
|
447
|
-
<span class="container">WWWJDic::Parsers::Dict</span>
|
448
|
-
|
449
|
-
<li class="method">
|
450
|
-
<a href="WWWJDic/Parsers/Display.html#method-i-parse">#parse</a>
|
451
|
-
—
|
452
|
-
<span class="container">WWWJDic::Parsers::Display</span>
|
453
|
-
|
454
413
|
<li class="method">
|
455
414
|
<a href="WWWJDic/Parsers/Key.html#method-i-parse">#parse</a>
|
456
415
|
—
|
@@ -466,6 +425,16 @@
|
|
466
425
|
—
|
467
426
|
<span class="container">WWWJDic::Parsers::Server</span>
|
468
427
|
|
428
|
+
<li class="method">
|
429
|
+
<a href="WWWJDic/Parsers/Display.html#method-i-parse">#parse</a>
|
430
|
+
—
|
431
|
+
<span class="container">WWWJDic::Parsers::Display</span>
|
432
|
+
|
433
|
+
<li class="method">
|
434
|
+
<a href="WWWJDic/Parsers/Dict.html#method-i-parse">#parse</a>
|
435
|
+
—
|
436
|
+
<span class="container">WWWJDic::Parsers::Dict</span>
|
437
|
+
|
469
438
|
<li class="method">
|
470
439
|
<a href="WWWJDic/Utils/Raisers.html#method-i-raiser_array">#raiser_array</a>
|
471
440
|
—
|
data/lib/wwwjdic.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,12 +16,12 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
|
-
require 'digest/md5'
|
22
|
-
require 'i18n'
|
23
|
-
require 'uri'
|
24
|
-
|
25
25
|
require_relative 'wwwjdic/application'
|
26
26
|
require_relative 'wwwjdic/parser'
|
27
27
|
require_relative 'wwwjdic/parsers/dict'
|
@@ -31,7 +31,7 @@ require_relative 'wwwjdic/parsers/search'
|
|
31
31
|
require_relative 'wwwjdic/parsers/server'
|
32
32
|
|
33
33
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
34
|
-
# Copyright::
|
34
|
+
# Copyright:: (C) 2014 Marco Bresciani
|
35
35
|
# License:: GNU General Public License version 3
|
36
36
|
module WWWJDic
|
37
37
|
|
@@ -44,11 +44,7 @@ module WWWJDic
|
|
44
44
|
WWWJDic.new(parser)
|
45
45
|
end
|
46
46
|
|
47
|
-
#
|
48
|
-
|
49
|
-
private
|
50
|
-
|
51
|
-
# Provides the parameters' parsers object.
|
47
|
+
# Provides the parameters' parsers object.
|
52
48
|
def self.parser
|
53
49
|
parsers = {dict: Parsers::Dict.new, display: Parsers::Display.new,
|
54
50
|
key: Parsers::Key.new, search: Parsers::Search.new,
|
data/lib/wwwjdic/application.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
require 'i18n'
|
@@ -29,7 +33,7 @@ module WWWJDic
|
|
29
33
|
# This class is a simple API to interact with WWWJDic Backboor
|
30
34
|
# Entry/API.
|
31
35
|
# Author:: {Marco Bresciani}[mailto:marcobresciani_1974@libero.it]
|
32
|
-
# Copyright::
|
36
|
+
# Copyright:: (C) 2014 Marco Bresciani
|
33
37
|
# License:: GNU General Public License version 3
|
34
38
|
class WWWJDic
|
35
39
|
|
@@ -106,14 +110,16 @@ module WWWJDic
|
|
106
110
|
end
|
107
111
|
|
108
112
|
# Save a file, with specified +filename+, that contains the current
|
109
|
-
# wwwjdic configuration, in JSON format.
|
110
|
-
# retrieve data from the URI.
|
111
|
-
# extension.
|
113
|
+
# wwwjdic configuration, in JSON format.
|
114
|
+
# Uses the internal state to retrieve data from the URI.
|
115
|
+
# Defaults to 'wwwjdic' with no specific extension.
|
112
116
|
#
|
113
117
|
# Usage::
|
114
118
|
# - <tt>a_string = new_wwwjdic.json_translate filename</tt>
|
115
|
-
#
|
116
|
-
#
|
119
|
+
# @param word [String] the word to translate
|
120
|
+
# @param args [Hash] the customization arguments
|
121
|
+
# @param filename [String] the name of the file where to save JSON
|
122
|
+
# @return [Object]
|
117
123
|
def json_translate(word = nil, args = {}, filename = nil)
|
118
124
|
translation = translate(word, args)
|
119
125
|
|
data/lib/wwwjdic/constants.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -20,13 +20,13 @@
|
|
20
20
|
|
21
21
|
module WWWJDic
|
22
22
|
# Allowed parameters for configuration
|
23
|
-
ALLOWED_PARAMS = [
|
23
|
+
ALLOWED_PARAMS = %i[dict display key server].freeze
|
24
24
|
|
25
25
|
# All parameters for configuration
|
26
26
|
ALL_PARAMS = ALLOWED_PARAMS + [:search]
|
27
27
|
|
28
28
|
# Numeric codes for language-specific dictionaries
|
29
|
-
AVAIL_LANGS = {en: '1', de: 'G', fr: 'H', ru: 'I', sv: 'J', hu: 'K', es: 'L', nl: 'M', sl: 'N', it: 'O'}.freeze
|
29
|
+
AVAIL_LANGS = { en: '1', de: 'G', fr: 'H', ru: 'I', sv: 'J', hu: 'K', es: 'L', nl: 'M', sl: 'N', it: 'O' }.freeze
|
30
30
|
|
31
31
|
# Numeric codes for dictionaries usage
|
32
32
|
DICTIONARY_CODES = [('1'..'9').to_a, ('A'..'R').to_a].flatten
|
@@ -41,7 +41,7 @@ module WWWJDic
|
|
41
41
|
DICTS_BY_NAMES = Hash[DICTIONARY_NAMES.zip(DICTIONARY_CODES)]
|
42
42
|
|
43
43
|
# Display modes
|
44
|
-
DISPLAY = {regular: 'M', raw: 'Z'}.freeze
|
44
|
+
DISPLAY = { regular: 'M', raw: 'Z' }.freeze
|
45
45
|
|
46
46
|
# k is the key type:
|
47
47
|
#
|
@@ -72,7 +72,10 @@ module WWWJDic
|
|
72
72
|
# for EUC, ISO-2022-JP or UCS, S for Shift_JIS and U for UTF-8,
|
73
73
|
# followed by the search string. Up to 99 example sentences may be
|
74
74
|
# displayed.
|
75
|
-
KEYS = {english: 'E', common: 'P', exact: 'Q', both: 'R',
|
75
|
+
KEYS = { english: 'E', common: 'P', exact: 'Q', both: 'R',
|
76
|
+
japanese: 'J', start_kanji: 'K', any_kanji: 'L', kanji: 'M',
|
77
|
+
glossing: 'G', no_repeated: 'H', jis_kanji: 'H',
|
78
|
+
multi_radical: 'X' }.freeze
|
76
79
|
|
77
80
|
# KANJIDIC letter codes (see
|
78
81
|
# http://www.edrdg.org/kanjidic/kanjidic.html)
|
@@ -100,14 +103,19 @@ module WWWJDic
|
|
100
103
|
# [E] the index in Henshall (A Guide To Remembering Japanese
|
101
104
|
# Characters);
|
102
105
|
# [Y] the PinYin (Chinese) pronunciation(s) of the kanji;
|
103
|
-
KANJIDIC_CODES = {unicode: 'U', nelson: 'N', radical: 'B',
|
106
|
+
KANJIDIC_CODES = { unicode: 'U', nelson: 'N', radical: 'B',
|
107
|
+
classical: 'C', stroke: 'S', grade: 'G',
|
108
|
+
halpern: 'H', frequency: 'F', skip: 'P',
|
109
|
+
gakken: 'K', heisig: 'L', spahn: 'I', corner: 'Q',
|
110
|
+
morohashi_index: 'MN', morohashi_page: 'MP',
|
111
|
+
henshall: 'E', pinyin: 'Y' }.freeze
|
104
112
|
|
105
113
|
# Reference URI for Backdoor Entry/API
|
106
114
|
URI_DEFAULT = 'http://www.edrdg.org/cgi-bin/wwwjdic/wwwjdic.cgi?'.freeze
|
107
115
|
|
108
116
|
# Monash URI for Backdoor Entry/API
|
109
|
-
URI_OLD = 'http://
|
117
|
+
URI_OLD = 'http://nihongo.monash.edu/cgi-bin/wwwjdic?'.freeze
|
110
118
|
|
111
119
|
# URIs for Backdoor Entry/API
|
112
|
-
URIS = {edrdg: URI_DEFAULT, monash: URI_OLD}.freeze
|
120
|
+
URIS = { edrdg: URI_DEFAULT, monash: URI_OLD }.freeze
|
113
121
|
end
|
data/lib/wwwjdic/locales/de.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
de:
|
@@ -26,6 +30,3 @@ de:
|
|
26
30
|
value: "Der Wert %{value} ist nicht im zulässigen Bereich."
|
27
31
|
warn:
|
28
32
|
deprecated: Diese Methode ist veraltet.
|
29
|
-
test:
|
30
|
-
kotoba: Sprache
|
31
|
-
test: test data
|
data/lib/wwwjdic/locales/en.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
en:
|
@@ -26,6 +30,3 @@ en:
|
|
26
30
|
value: "Value %{value} is not in allowed range."
|
27
31
|
warn:
|
28
32
|
deprecated: This method has been deprecated.
|
29
|
-
test:
|
30
|
-
kotoba: word
|
31
|
-
test: test data
|
data/lib/wwwjdic/locales/es.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#--
|
2
2
|
# wwwjdic
|
3
|
-
#
|
3
|
+
# © 2014 Marco Bresciani
|
4
4
|
#
|
5
5
|
# This file is part of wwwjdic.
|
6
6
|
#
|
@@ -16,6 +16,10 @@
|
|
16
16
|
#
|
17
17
|
# You should have received a copy of the GNU General Public License
|
18
18
|
# along with wwwjdic. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
#
|
20
|
+
# SPDX-FileCopyrightText: 2014 Marco Bresciani
|
21
|
+
#
|
22
|
+
# SPDX-License-Identifier: GPL-3.0-or-later
|
19
23
|
#++
|
20
24
|
|
21
25
|
es:
|
@@ -26,6 +30,3 @@ es:
|
|
26
30
|
value: "Valor %{value} no está dentro del rango permitido."
|
27
31
|
warn:
|
28
32
|
deprecated: Este método ha quedado obsoleto.
|
29
|
-
test:
|
30
|
-
kotoba: palabra
|
31
|
-
test: test data
|