oa_templater 0.5.6 → 0.5.7

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: 79992d00e4aa31df6994d35e5747c8809a1cc65d
4
- data.tar.gz: 7b3b7a07cb514f69b944dc15a724dfb5ac56aab1
3
+ metadata.gz: d0018057588f215b30a8ad02df975c84c1a7b267
4
+ data.tar.gz: 2c88f42dd7172dfabf0347f9482db3d0f61fa533
5
5
  SHA512:
6
- metadata.gz: 0c41ac8240f3effb9a1c80f29983239a7b30cece074e25dc72e180005b8858ea905ffe4e9dd48203101c89b8cbb48b8b1781a317aee5cc5bdad35eed062a658e
7
- data.tar.gz: 47281d71129240bdc906f2f4948c6a235a637d381a40a5b0368b5d38aed04de282b9b9a7a0d4953df173b099b07153eece5b06e6823aa46ae730bf77ae982c46
6
+ metadata.gz: 68f9397a5df5493732ba1dff7c0bf3ef617baa423149feef110828e4f2fccdff5803afabbc3cfea8d09cbbe6a96caa20866421f9dc748eddd349ec8a44c3e823
7
+ data.tar.gz: 2df4c71c679e4bf3f2c828f25c9684acfbbeb3dcdc5fc0f519fe32d4223f1a7464fe9421df18a0d54955a9cf7f3594cf204406c3c4b00ee9eec242c9cdd19b77
@@ -422,14 +422,16 @@ module OaTemplater
422
422
  @cits.each do |_n, a|
423
423
  if m = tex.match(a['japanese'])
424
424
  count = 1 if count == 0
425
+ wellknown_text = tex =~ /(周知技術を示す文献)/ ? ' (Publication showing well-known technology)' : ''
426
+ newlyadd_text = tex =~ /(追加した文献)/ ? ' (Newly added publication)' : ''
425
427
  if /United States/ =~ a['english']
426
428
  # citation is in English (no prime needed)
427
- citation_text += sprintf(CIT_SIMPLE, count, convert_pub_no(m, a['english']))
429
+ citation_text += sprintf(CIT_SIMPLE, count, convert_pub_no(m, a['english']) + newlyadd_text + wellknown_text)
428
430
  else # normal
429
431
  if /Published Japanese Translation No./ =~ a['english']
430
- citation_text += sprintf(CIT_WITH_PRIME_PCT, count, convert_pub_no(m, a['english']), count)
432
+ citation_text += sprintf(CIT_WITH_PRIME_PCT, count, convert_pub_no(m, a['english']) + newlyadd_text + wellknown_text, count)
431
433
  else
432
- citation_text += sprintf(CIT_WITH_PRIME, count, convert_pub_no(m, a['english']), count)
434
+ citation_text += sprintf(CIT_WITH_PRIME, count, convert_pub_no(m, a['english']) + newlyadd_text + wellknown_text, count)
433
435
  end
434
436
  end
435
437
  end
@@ -1,5 +1,5 @@
1
1
  module OaTemplater
2
- R_JPL_DETECT = /理\p{Z}?由.*\p{N}?(?:(|\()[^\))\nに可サ拡引性]*(?:)|\))+?/
2
+ R_JPL_DETECT = /理\p{Z}?由.*\p{N}?(?:(|\()[^\))\nに新可サ拡引性]*(?:)|\))+?/
3
3
  R_HEADER_SEPARATOR_DETECT = /\p{N}(?:(|\()*[^\))\n]*(?:)|\))*(\s*:|\s*:|\s*\/|\s*/|\s*・| | )(?:請求項|引用文献|理由|先願|実施例)/
4
4
  R_ARTICLE_SECTION = /この出願は、次の理由.*?(?:(?:\p{Z}記\p{Z})|備考)/m
5
5
  R_HEADER_SEPARATOR = /\s*:|\s*:|\s*・|\/|/| | /
@@ -1,3 +1,3 @@
1
1
  module OaTemplater
2
- VERSION = '0.5.6'
2
+ VERSION = '0.5.7'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oa_templater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Rubingh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug