bible_ref 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2eea226f102d44c7b14f79bc667d0618da40de07c71c110ae0c41d8677e9683d
4
- data.tar.gz: 6116fe530e9a2f38ff4dc5441fca6ca7d2b0c3968e2c7bc5dc2d333845b5b6a8
3
+ metadata.gz: 94f082914e94ccc545237ab180482839f16d2f3e3a41ce235563127ce2f1799d
4
+ data.tar.gz: '00453549f20461b499f1c0e5ab043113b8b8138aaf5fc953905724f580d44e67'
5
5
  SHA512:
6
- metadata.gz: f2f5194a238d50834122de3360613dc76488f6fe5ac5b347e50ca8c3377f44024642c1b9d4359347cdb03aa98418441797e7399571a16349e74e47b5047df3f8
7
- data.tar.gz: 456a718b4f62ea241b4ac1cd1bf4f4f335260eee91c30fb41c30cdd583396a5eb66ee92afce6ac27288926080bc1fcfb25a9eefbcd97dbadfbb065902b130c33
6
+ metadata.gz: f85e99f90eb8e29e4fe132c55bc3d1548eac9c3b3cfd8933698ca224e33a8380e6902678ceef5390a9301d4d43216627e44838324facc9d30d1bcef769959ab8
7
+ data.tar.gz: 274d08d88609bd3ae2c62361559d4645c6364b98b9c49e18685b59547bf7ebb3c0a71b24f752fa33db8546208cdbbb6d7ba194bd16f25927d3b9bf3bf2f7f62a
@@ -0,0 +1,86 @@
1
+ # -*- coding: utf-8 -*-
2
+ require_relative 'base'
3
+
4
+ module BibleRef
5
+ module Languages
6
+ class Chinese < Base
7
+
8
+ # Is it a single chapter book?
9
+ def has_single_chapter?(reference)
10
+ matches = [/^俄/, /^腓利門/, /^約翰貳/, /^約翰參/, /^猶/]
11
+ return Regexp.union(matches).match?(reference)
12
+ end
13
+
14
+ def books
15
+ {
16
+ 'GEN' => { match: /^創/, name: '創世紀'},
17
+ 'EXO' => { match: /^出/, name: '出埃及記'},
18
+ 'LEV' => { match: /^利/, name: '利未記'},
19
+ 'NUM' => { match: /^民/, name: '民數記'},
20
+ 'DEU' => { match: /^申/, name: '申命記'},
21
+ 'JOS' => { match: /^約書/, name: '約書亞記'},
22
+ 'JDG' => { match: /^士/, name: '士師記'},
23
+ 'RUT' => { match: /^路得/, name: '路得記'},
24
+ '1SA' => { match: /記上$/, name: '撒母耳記上'},
25
+ '2SA' => { match: /記下$/, name: '撒母耳記下'},
26
+ '1KI' => { match: /紀上$/, name: '列王紀上'},
27
+ '2KI' => { match: /紀下$/, name: '列王紀下'},
28
+ '1CH' => { match: /志上$/, name: '歷代志上'},
29
+ '2CH' => { match: /志下$/, name: '歷代志下'},
30
+ 'EZR' => { match: /^以斯/, name: '以斯拉記'},
31
+ 'NEH' => { match: /^尼/, name: '尼希米記'},
32
+ 'EST' => { match: /帖記$/, name: '以斯帖記'},
33
+ 'JOB' => { match: /^約伯/, name: '約伯記'},
34
+ 'PSA' => { match: /^詩/, name: '詩篇'},
35
+ 'PRO' => { match: /^箴/, name: '箴言'},
36
+ 'ECC' => { match: /^傳/, name: '傳道書'},
37
+ 'SNG' => { match: /^雅歌/, name: '雅歌'},
38
+ 'ISA' => { match: /^以賽/, name: '以賽亞書'},
39
+ 'JER' => { match: /米書$/, name: '耶利米書'},
40
+ 'LAM' => { match: /哀歌$/, name: '耶利米哀歌'},
41
+ 'EZK' => { match: /^以西/, name: '以西結書'},
42
+ 'DAN' => { match: /^但/, name: '但以理書'},
43
+ 'HOS' => { match: /^何/, name: '何西阿書'},
44
+ 'JOL' => { match: /^約珥/, name: '約珥書'},
45
+ 'AMO' => { match: /^阿/, name: '阿摩司書'},
46
+ 'OBA' => { match: /^俄/, name: '俄巴底亞書'},
47
+ 'JON' => { match: /^約拿/, name: '約拿書'},
48
+ 'MIC' => { match: /^彌/, name: '彌迦書'},
49
+ 'NAM' => { match: /^那/, name: '那鴻書'},
50
+ 'HAB' => { match: /^哈巴/, name: '哈巴谷書'},
51
+ 'ZEP' => { match: /^西/, name: '西番雅書'},
52
+ 'HAG' => { match: /^哈該/, name: '哈該書'},
53
+ 'ZEC' => { match: /^撒迦/, name: '撒迦利亞書'},
54
+ 'MAL' => { match: /^瑪/, name: '瑪拉基書'},
55
+ 'MAT' => { match: /^馬太/, name: '馬太福音'},
56
+ 'MRK' => { match: /^馬可/, name: '馬可福音'},
57
+ 'LUK' => { match: /^路加/, name: '路加福音'},
58
+ 'JHN' => { match: /^約翰福/, name: '約翰福音'},
59
+ 'ACT' => { match: /^使/, name: '使徒行傳'},
60
+ 'ROM' => { match: /^羅/, name: '羅馬書'},
61
+ '1CO' => { match: /多前書$/, name: '哥林多前書'},
62
+ '2CO' => { match: /多後書$/, name: '哥林多後書'},
63
+ 'GAL' => { match: /^加/, name: '加拉太書'},
64
+ 'EPH' => { match: /^以弗/, name: '以弗所書'},
65
+ 'PHP' => { match: /比書$/, name: '腓利比書'},
66
+ 'COL' => { match: /^歌/, name: '歌羅西書'},
67
+ '1TH' => { match: /迦前書$/, name: '帖撒羅尼迦前書'},
68
+ '2TH' => { match: /迦後書$/, name: '帖撒羅尼迦後書'},
69
+ '1TI' => { match: /太前書$/, name: '提摩太前書'},
70
+ '2TI' => { match: /太後書$/, name: '提摩太後書'},
71
+ 'TIT' => { match: /^提多/, name: '提多書'},
72
+ 'PHM' => { match: /門書$/, name: '腓利門書'},
73
+ 'HEB' => { match: /^希/, name: '希伯來書'},
74
+ 'JAS' => { match: /^雅各/, name: '雅各書'},
75
+ '1PE' => { match: /^彼得前/, name: '彼得前書'},
76
+ '2PE' => { match: /^彼得後/, name: '彼得前書'},
77
+ '1JN' => { match: /壹書$/, name: '約翰壹書'},
78
+ '2JH' => { match: /貳書$/, name: '約翰貳書'},
79
+ '3JH' => { match: /參書$/, name: '約翰參書'},
80
+ 'JUD' => { match: /^猶/, name: '猶大書'},
81
+ 'REV' => { match: /^啟/, name: '啟示錄'}
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end
@@ -1,4 +1,5 @@
1
1
  require_relative 'languages/cherokee'
2
+ require_relative 'languages/chinese'
2
3
  require_relative 'languages/czech'
3
4
  require_relative 'languages/english'
4
5
  require_relative 'languages/latin'
@@ -9,6 +10,7 @@ require_relative 'languages/russian'
9
10
  module BibleRef
10
11
  LANGUAGES = {
11
12
  'chr' => Languages::Cherokee,
13
+ 'zh-tw' => Languages::Chinese,
12
14
  'cze' => Languages::Czech,
13
15
  'eng' => Languages::English,
14
16
  'lat' => Languages::Latin,
@@ -16,4 +18,4 @@ module BibleRef
16
18
  'ron' => Languages::Romanian,
17
19
  'rus' => Languages::Russian
18
20
  }.freeze
19
- end
21
+ end
@@ -1,3 +1,3 @@
1
1
  module BibleRef
2
- VERSION = '1.7.0'
2
+ VERSION = '1.8.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bible_ref
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Morgan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-09 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parslet
@@ -67,6 +67,7 @@ files:
67
67
  - lib/bible_ref/languages.rb
68
68
  - lib/bible_ref/languages/base.rb
69
69
  - lib/bible_ref/languages/cherokee.rb
70
+ - lib/bible_ref/languages/chinese.rb
70
71
  - lib/bible_ref/languages/czech.rb
71
72
  - lib/bible_ref/languages/english.rb
72
73
  - lib/bible_ref/languages/latin.rb