cbeta 2.4.11 → 2.4.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/cbeta.rb +7 -7
  3. data/lib/data/canons.csv +2 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23435c290acabced2cf143afdf3b4c957303f3e8457901d7c1e16f640b562bee
4
- data.tar.gz: f1ae7f1c4da38125f2e04622f184c5598447f811991384d59d213764bf82e472
3
+ metadata.gz: 4ef07f4e396859263da35a3688e171a44c9a45e2a79590e83e59204ee798c92f
4
+ data.tar.gz: d3e40d16a1522253595d53cc4b4d8229a87ed1b41a86073fd4fa5a2feb9d437d
5
5
  SHA512:
6
- metadata.gz: 221c3249ef557051101aa152aa22a50d22a7930356ee9f797f1e4ee350e9076610fef39e77a413eb295f10ad9910ddb47b56cde53d6295146351b540aef7c41f
7
- data.tar.gz: adf89369fb6a4ecca7fb5d6c6536f49cba63c8aba3b50b325e0d4cb8ed873b586060bb232122f6c04193db569f59608157aedcebebf5a11b028f9b65c6563423
6
+ metadata.gz: ad131666a64dfa3baa032ee413d72b5c44b0f6f6df8e4e7f14945e0662e29235fb0effa9ebbf026ed5db4c33fb7b31b96bca4e0ea010a18905b987867f8956bd
7
+ data.tar.gz: e2dfaefc90a0e14d26615fd103f3d8c96ce3c9531003cbcaa0eae68ec14ad33cc1a0a7da12e03fd97601b17c5de1d0bf23c176279cd037b5a041fe5ae6e9fe16
@@ -9,7 +9,7 @@ class CBETA
9
9
  CANON = 'DA|GA|GB|ZS|ZW|[A-Z]'
10
10
  SORT_ORDER = %w(T X A K S F C D U P J L G M N ZS I ZW B GA GB)
11
11
  DATA = File.join(File.dirname(__FILE__), 'data')
12
- PUNCS = '.()[] 。,、;?!:「」『』《》<>〈〉〔〕[]【】〖〗…— '
12
+ PUNCS = ',.()[] 。.,、;?!:()「」『』《》<>〈〉〔〕[]【】〖〗…— '
13
13
 
14
14
  # 由 行首資訊 取得 藏經 ID
15
15
  # @param linehead[String] 行首資訊, 例如 "T01n0001_p0001a01" 或 "GA009n0008_p0003a01"
@@ -141,7 +141,7 @@ class CBETA
141
141
  [i].pack("U")
142
142
  end
143
143
 
144
- # 載入藏經資料
144
+ # 載入藏經資料
145
145
  def initialize()
146
146
  fn = File.join(File.dirname(__FILE__), 'data/canons.csv')
147
147
  text = File.read(fn)
@@ -153,7 +153,7 @@ class CBETA
153
153
  @canon_nickname[id] = row['nickname']
154
154
  end
155
155
  next if row['abbreviation'].nil?
156
- next if row['abbreviation'].empty?
156
+ next if row['abbreviation'].empty?
157
157
  @canon_abbr[id] = row['abbreviation']
158
158
  end
159
159
 
@@ -177,10 +177,10 @@ class CBETA
177
177
  # @example
178
178
  # cbeta = CBETA.new
179
179
  # cbeta.get_canon_symbol('T') # return "【大】"
180
- def get_canon_symbol(id)
181
- return nil unless @canon_abbr.key? id
182
- @canon_abbr[id]
183
- end
180
+ def get_canon_symbol(id)
181
+ return nil unless @canon_abbr.key? id
182
+ @canon_abbr[id]
183
+ end
184
184
 
185
185
  # 取得藏經略名
186
186
  #
@@ -5,7 +5,7 @@ C,中華大藏經-中華書局版,Zhonghua Canon - Zhonghua shuju Edition,中華
5
5
  D,國家圖書館善本佛典,Selections from the Taipei National Central Library Buddhist Rare Book Collection,國圖善本,【國圖】,國家圖書館特藏組,台北,
6
6
  F,房山石經,Fangshan shijing,,【房山】,中國佛教圖書文物館,北京: 華夏出版社,2000
7
7
  G,佛教大藏經,Fojiao Canon,,【佛教】,佛教書局,台北: 佛教書局,1978
8
- GA,中國佛寺史志彙刊,Zhongguo Fosi Shizhi Huikan,志彙,【志彙】,杜潔祥,台北:宗青圖書出版公司, 1980-1994
8
+ GA,中國佛寺史志彙刊,Zhongguo Fosi Shizhi Huikan,志彙,【志彙】,杜潔祥,台北:宗青圖書出版公司,1980-1994
9
9
  GB,中國佛寺志叢刊,Zhongguo fosizhi congkan,志叢,【志叢】,白化文、張智,揚州:廣陵書社,2006
10
10
  I,北朝佛教石刻拓片百品,Selections of Buddhist Stone Rubbings from the Northern Dynasties,佛拓,【佛拓】,顏娟英,台北: 中央研究院歷史語言研究所,2008
11
11
  J,嘉興大藏經-新文豐版,Jiaxing Canon - Xinwenfeng Edition,嘉興藏,【嘉興】,,徑山藏版版藏 / 台北: 新文豐,1987
@@ -20,6 +20,7 @@ S,宋藏遺珍-新文豐版,Songzang yizhen - Xinwenfeng Edition,,【宋遺】,
20
20
  T,大正新脩大藏經,Taishō Tripiṭaka,大正藏,【大】,大正新修大藏經刊行會,東京: 大藏出版株式會社,1988
21
21
  U,洪武南藏,Southern Hongwu Edition of the Canon,初刻南藏,【洪武】,,成都: 四川省佛教協會,1999
22
22
  X,卍新纂大日本續藏經,Manji Shinsan Dainihon Zokuzōkyō,新纂卍續藏,【卍續】,河村照孝,東京: 株式會社國書刊行會,1975-1989
23
+ Y,印順法師佛學著作集,Corpus of Venerable Yin Shun's Buddhist Studies,印順全集,【印順】,正聞出版社,台北,2003-2016
23
24
  Z,卍大日本續藏經,Manji Dainihon Zokuzōkyō,,,,京都: 藏經書院,1905-1912
24
25
  ZS,正史佛教資料類編,Passages concerning Buddhism from the Official Histories,正史,【正史】,杜斗城,蘭州: 甘肅文化出版社,2006
25
26
  ZW,藏外佛教文獻,Buddhist Texts not contained in the Tripiṭaka,藏外,【藏外】,方廣錩,北京: 宗教文化出版社,1995-2003
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.11
4
+ version: 2.4.12
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-14 00:00:00.000000000 Z
11
+ date: 2018-03-20 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