cbeta 2.2.18 → 2.2.19

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f85cf331ea14599e3332cb7566f8506738bea357
4
- data.tar.gz: 70cbf2b1c927bac7eeda058ff7bce55658518afb
3
+ metadata.gz: faa3df8de3e44ca675d867433182dcd3217b00bd
4
+ data.tar.gz: 188978d94b5b73dc6c3de80cfdf7a078469f6b14
5
5
  SHA512:
6
- metadata.gz: 3ed793af4833af6b5f65b0d1b385e62a4dae5afd8539fe12d82c47ade2efe1c90f980e67c6b98d685fbc40fbfd391ea96f75d8bdf2272c746dc8d7270870446b
7
- data.tar.gz: b65fb01716e9b2d009b18c655685c3f700c5241e7f1afb9e4548736c96f3726943d610d6e5ceab6693c84978dd66fd2593ac4a6a24bd615eecf1f809e1a46eec
6
+ metadata.gz: e23e54faff632049643ca804774997fbf864a7af0cde52cd44ba7ce1372a665609e5335d5168901558b88070822a88917bc2630d04641a6a6dc715438aabb899
7
+ data.tar.gz: f55e371d66dc7eda4a13a370e2811506d614261ca5a993f6f69e1fa5a6d5d8b947e3268fa3e6634d4995fc535dad471396222cd36f0c73728c9433d1ab5a0596
@@ -72,7 +72,7 @@ class CBETA::P5aToHTMLForEveryEdition
72
72
 
73
73
  def convert_all
74
74
  Dir.entries(@xml_root).sort.each do |c|
75
- next unless c.match(/^[A-Z]$/)
75
+ next unless c.match(/^#{CBETA.CANON}$/)
76
76
  convert_canon(c)
77
77
  end
78
78
  end
@@ -123,7 +123,7 @@ class CBETA::P5aToText
123
123
 
124
124
  def convert_all
125
125
  Dir.entries(@xml_root).sort.each do |c|
126
- next unless c.match(/^[A-Z]$/)
126
+ next unless c.match(/^#{CBETA.CANON}$/)
127
127
  handle_canon(c)
128
128
  end
129
129
  end
@@ -480,11 +480,11 @@ class CBETA::P5aToText
480
480
  def handle_vol(vol)
481
481
  puts "convert volumn: #{vol}"
482
482
 
483
- @orig = @cbeta.get_canon_symbol(vol[0])
483
+ @canon = CBETA.get_canon_from_vol(vol)
484
+ @orig = @cbeta.get_canon_symbol(@canon)
484
485
  abort "未處理底本" if @orig.nil?
485
486
 
486
487
  @vol = vol
487
- @canon = CBETA.get_canon_from_vol(vol)
488
488
  @out_vol = File.join(@output_root, @canon, vol)
489
489
  FileUtils.remove_dir(@out_vol, true)
490
490
  FileUtils.makedirs @out_vol
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.2.18
4
+ version: 2.2.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Chou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2016-11-12 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