oa_templater 0.5.17 → 0.5.18
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 +4 -4
- data/lib/oa_templater/oa_templater.rb +3 -3
- data/lib/oa_templater/support/oa_regexes.rb +2 -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: 104350f5e2cba873611c047315bf52898cb8e9b0
|
|
4
|
+
data.tar.gz: 8692d99c46b218c5d1f55cc5887621ab2eb353eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5fbe50023081a1a705b6fee3c1056d948017e8ed48fb7e81440d4988c06194d1646feba18b0f0071496cc546f32e5b240c1625f60dbb114b144716b01837bc7
|
|
7
|
+
data.tar.gz: 6ccbe17c1df6d5d538e0506475f633e15b1ed427fd8317b086ecbb8804e8b70c330bca086b5dbb48b08950080339553a96fe6e71510d97db5f944b8b644626bd
|
|
@@ -399,7 +399,7 @@ module OaTemplater
|
|
|
399
399
|
val = false
|
|
400
400
|
val = true if tex =~ /調査/ || /先行技術文/ =~ tex || /注意/ =~ tex and !(/検討しましたが/ =~ tex)
|
|
401
401
|
val = true if (tex =~ /段/) || (tex =~/段/) || (tex =~ /には/) || (tex =~ /が/)
|
|
402
|
-
val = true if (tex =~ /係る発明/)
|
|
402
|
+
val = true if (tex =~ /係る発明/) || (tex =~/明らか/)
|
|
403
403
|
val
|
|
404
404
|
end
|
|
405
405
|
|
|
@@ -720,7 +720,7 @@ module OaTemplater
|
|
|
720
720
|
tex.gsub!(/請\p{Z}*求\p{Z}*項/, 'Claim')
|
|
721
721
|
tex.gsub!('引用文献', 'Citation')
|
|
722
722
|
tex.gsub!(/引\p{Z}*用\p{Z}*例/, 'Citation')
|
|
723
|
-
tex.gsub!(/実\p{Z}*施\p{Z}*例/, '
|
|
723
|
+
tex.gsub!(/実\p{Z}*施\p{Z}*例/, 'Example')
|
|
724
724
|
tex.gsub!(/理\p{Z}*由/, 'Reason')
|
|
725
725
|
tex.gsub!(/先\p{Z}*願/, 'Prior Application')
|
|
726
726
|
tex.gsub!('-', 'to')
|
|
@@ -773,7 +773,7 @@ module OaTemplater
|
|
|
773
773
|
if (parsed.length > 2) || (/\p{N}to\p{N}/ =~ tex)
|
|
774
774
|
tex.gsub!('Claim', 'Claims')
|
|
775
775
|
tex.gsub!('Citation', 'Citations')
|
|
776
|
-
tex.gsub!('
|
|
776
|
+
tex.gsub!('Example', 'Examples')
|
|
777
777
|
tex.gsub!('Reason', 'Reasons')
|
|
778
778
|
tex.gsub!('invention', 'inventions')
|
|
779
779
|
tex.gsub!('Prior Application', 'Prior Applications')
|
|
@@ -7,7 +7,8 @@ module OaTemplater
|
|
|
7
7
|
R_HEADER_TYPES = /(
|
|
8
8
|
#{R_HEADER_REASONS}
|
|
9
9
|
| (?:^\s*$)
|
|
10
|
-
| (
|
|
10
|
+
| (?:^\p{Z}?(?:\p{N}[-,\p{N},、,~]*)(?:について)*$)
|
|
11
|
+
| (?:^.{0,2}(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)(?:\p{Z}*.*\p{N}\p{Z}*)(?:[-,\p{N},、,~]\r*\n[-,\p{N},、,~].*\p{N})*(?:について)*(?:>|)|]|】)*(?::|:$)*)
|
|
11
12
|
| (?:(?:..)?(?:<|(|[|【)(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)(?:\p{Z}*.*\p{N},*\p{Z}*)+:*(?:(?:について)*>|)|]|】))
|
|
12
13
|
| (?:(?:^.{0,4})((?:<|(|[|【)(?:本願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|備\p{Z}*考|実\p{Z}*施\p{Z}*例)\p{N}.*?(?:について)?(?:)).{0,4}$))
|
|
13
14
|
| (?:^.{0,4}(?:本\p{Z}*願)*(?:請\p{Z}*求\p{Z}*項|引用文献|理\p{Z}*由|実\p{Z}*施\p{Z}*例):*:*.*\p{N}(?:について)*\p{Z}*$)
|
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.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Rubingh
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: byebug
|