cbeta 2.5.2 → 2.5.4

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: dc20cbb09d4047f0b3c7da48478a6ffbdbef5b179eeb3f491805b7f2485fbedb
4
- data.tar.gz: f56ab3270a638c8041116486c45eefd6c9751b5181bde7d7dacf492d99870996
3
+ metadata.gz: ac4d37e07a06f46dec31623caf5213215937a4212c735ea7e6559b9e2847c3d5
4
+ data.tar.gz: 07525ba09529524a7931acb1e7452ebd4387ad926ceaad66d8bf5050f0b84826
5
5
  SHA512:
6
- metadata.gz: d2c71fcca220602fcb9f5ac69689da4a1293d9a7f345febf60ee8dcfdbff1a157d65729f00239fafd1f47713b9446a35ff423bea6fd1c50cb813c8134dfb7687
7
- data.tar.gz: 2517569bc615739f88e6b712b3d6509463384f88152d4ce0201120767c1eae7fb6d65d51b395963a459deaaf2172df9f08b97ac883369aebcbaefe958bc2a698
6
+ metadata.gz: 1bb673ee7aecdbdf2f3b59814e8d70d4ea7d5e1e2a5c72d57891a06d98e33d8ddf5f777e78831ce3bdcb4f522ef1f308e853bdec3d5fa4117ca869c8c7b5498d
7
+ data.tar.gz: f46affe67fa4e9bbcd9680c2cb7abfcf08eee545eed7f354b808a72f46e52158d86473dd7d5166e276ddb9c34aaffde03006f35676f717355f95b0c6180cffd9
@@ -295,6 +295,8 @@ class CBETA::P5aToHTML
295
295
  end
296
296
 
297
297
  def e_lb(e)
298
+ return '' if e['type']=='old'
299
+
298
300
  # 卍續藏有 X 跟 R 兩種 lb, 只處理 X
299
301
  return '' if e['ed'] != @series
300
302
 
@@ -362,6 +362,8 @@ class CBETA::P5aToHTMLForEveryEdition
362
362
  end
363
363
 
364
364
  def e_lb(e)
365
+ return '' if e['type']=='old'
366
+
365
367
  # 卍續藏有 X 跟 R 兩種 lb
366
368
  if @series=='X' and e['ed'].start_with? 'R'
367
369
  @lb_r = e['ed'] + '.' + e['n']
@@ -353,6 +353,8 @@ class CBETA::P5aToHTMLForPDF
353
353
  end
354
354
 
355
355
  def handle_lb(e)
356
+ return '' if e['type']=='old'
357
+
356
358
  # 卍續藏有 X 跟 R 兩種 lb, 只處理 X
357
359
  return '' if e['ed'] != @series
358
360
 
@@ -148,6 +148,7 @@ class CBETA::P5aToSimpleHTML
148
148
  end
149
149
 
150
150
  def handle_lb(e)
151
+ return '' if e['type']=='old'
151
152
  @lb = e['n']
152
153
  r = %(<a id="lb#{@lb}"></a>)
153
154
  unless @next_line_buf.empty?
@@ -262,6 +262,7 @@ class CBETA::P5aToText
262
262
  end
263
263
 
264
264
  def e_lb(e)
265
+ return '' if e['type']=='old'
265
266
  r = ''
266
267
  if @settings[:format] == 'app'
267
268
  r += "\n#{e['n']}║"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cbeta
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Chou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-04 00:00:00.000000000 Z
11
+ date: 2018-04-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Ruby gem for use Chinese Buddhist Text resources made by CBETA (http://www.cbeta.org).
14
14
  email: zhoubx@gmail.com