cbeta 2.3.1 → 2.3.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/lib/cbeta/gaiji.rb +1 -1
- data/lib/cbeta/p5a_to_html_for_every_edition.rb +13 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 332a09669b7f48f31c789ad21d8335fe41c1a35f
|
4
|
+
data.tar.gz: 8d1072d6f49fac6ca0460b0dc9a874aab30c508d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb045fc89dffc72c5ef8699bfb6841e8a6f4ca3e8a1a8766ebbba232c408aafad2c9822a1681e99537700468385c5364359c6b3fa2dd11b1943a36ca15eab47a
|
7
|
+
data.tar.gz: c4883678aff3898753b012926da905165e26f5175bde614184f819a25aa5e36fb9865008378b1fdf3ef48615080b3dc30a68a0ecca3aa37d1dd63bfdca51a606
|
data/lib/cbeta/gaiji.rb
CHANGED
@@ -362,8 +362,11 @@ class CBETA::P5aToHTMLForEveryEdition
|
|
362
362
|
end
|
363
363
|
|
364
364
|
def e_lb(e)
|
365
|
-
# 卍續藏有 X 跟 R 兩種 lb
|
366
|
-
|
365
|
+
# 卍續藏有 X 跟 R 兩種 lb
|
366
|
+
if @series=='X' and e['ed'].start_with? 'R'
|
367
|
+
@lb_r = e['ed'] + '.' + e['n']
|
368
|
+
return ''
|
369
|
+
end
|
367
370
|
|
368
371
|
@char_count = 1
|
369
372
|
@lb = e['n']
|
@@ -692,7 +695,14 @@ class CBETA::P5aToHTMLForEveryEdition
|
|
692
695
|
|
693
696
|
# 正文區的文字外面要包 span
|
694
697
|
if @pass.last and mode=='html'
|
695
|
-
|
698
|
+
doc = Nokogiri::XML::Document.new
|
699
|
+
node = doc.create_element('span')
|
700
|
+
node['class'] = 't'
|
701
|
+
node['l'] = @lb
|
702
|
+
node['lr'] = @lb_r if @series=='X'
|
703
|
+
node['w'] = @char_count
|
704
|
+
node.inner_html = r
|
705
|
+
r = to_html(node)
|
696
706
|
@char_count += text_size
|
697
707
|
end
|
698
708
|
r
|
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.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ray Chou
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-29 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
|