oa_templater 0.5.6 → 0.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oa_templater/oa_templater.rb +5 -3
- data/lib/oa_templater/support/oa_regexes.rb +1 -1
- data/lib/version.rb +1 -1
- 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: d0018057588f215b30a8ad02df975c84c1a7b267
|
4
|
+
data.tar.gz: 2c88f42dd7172dfabf0347f9482db3d0f61fa533
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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*・|\/|/| | /
|
data/lib/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|