cbeta 2.4.10 → 2.4.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cbeta.rb +6 -3
- data/lib/cbeta/gaiji.rb +1 -1
- data/lib/cbeta/p5a_to_text.rb +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23435c290acabced2cf143afdf3b4c957303f3e8457901d7c1e16f640b562bee
|
4
|
+
data.tar.gz: f1ae7f1c4da38125f2e04622f184c5598447f811991384d59d213764bf82e472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 221c3249ef557051101aa152aa22a50d22a7930356ee9f797f1e4ee350e9076610fef39e77a413eb295f10ad9910ddb47b56cde53d6295146351b540aef7c41f
|
7
|
+
data.tar.gz: adf89369fb6a4ecca7fb5d6c6536f49cba63c8aba3b50b325e0d4cb8ed873b586060bb232122f6c04193db569f59608157aedcebebf5a11b028f9b65c6563423
|
data/lib/cbeta.rb
CHANGED
@@ -36,9 +36,12 @@ class CBETA
|
|
36
36
|
# @param lb[String] 例如 "0001a01" 或 "0757b29"
|
37
37
|
# @return [String] CBETA 行首資訊,例如 "T01n0001_p0001a01" 或 "T25n1510ap0757b29"
|
38
38
|
def self.get_linehead(file_basename, lb)
|
39
|
-
|
40
|
-
|
41
|
-
|
39
|
+
if file_basename.match(/^(T\d\dn0220)/)
|
40
|
+
r = $1
|
41
|
+
else
|
42
|
+
r = file_basename
|
43
|
+
end
|
44
|
+
r += '_' if r.match(/\d$/)
|
42
45
|
r += 'p' + lb
|
43
46
|
r
|
44
47
|
end
|
data/lib/cbeta/gaiji.rb
CHANGED
data/lib/cbeta/p5a_to_text.rb
CHANGED
@@ -422,7 +422,6 @@ class CBETA::P5aToText
|
|
422
422
|
end
|
423
423
|
|
424
424
|
def handle_sutra(xml_fn)
|
425
|
-
puts "convert sutra #{xml_fn}"
|
426
425
|
@dila_note = 0
|
427
426
|
@div_count = 0
|
428
427
|
#@editions = Set.new [@orig, "【CBETA】"] # 至少有底本跟CBETA兩種版本
|
@@ -481,7 +480,7 @@ class CBETA::P5aToText
|
|
481
480
|
end
|
482
481
|
|
483
482
|
def handle_vol(vol)
|
484
|
-
|
483
|
+
print vol + ' '
|
485
484
|
|
486
485
|
@canon = CBETA.get_canon_from_vol(vol)
|
487
486
|
@orig = @cbeta.get_canon_symbol(@canon)
|
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.4.
|
4
|
+
version: 2.4.11
|
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-01-
|
11
|
+
date: 2018-01-14 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
|