oa_templater 0.5.17 → 0.5.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5465982ff931e5588ee83526e94ab734660f8743
4
- data.tar.gz: 4168339f47078a306a6a33beb3119d267cf6c238
3
+ metadata.gz: 104350f5e2cba873611c047315bf52898cb8e9b0
4
+ data.tar.gz: 8692d99c46b218c5d1f55cc5887621ab2eb353eb
5
5
  SHA512:
6
- metadata.gz: 8d74a2a3947b731531b671500a44ce71f856ff0101a10127deee7ba6e2aedc75b62f5fd90ab3e1243896bddee7ba60cc6acf1125955b951e2161bfbf4dd815df
7
- data.tar.gz: a0a5b0457a148f375e1229e442fb813a36d1508399fb79a287386fb5cc1e68cf237914b48499758634f0d1ea7224b1334d1adfb6b9be340a375a2ffa83ff9cf1
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}*例/, 'Embodiment')
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!('Embodiment', 'Embodiments')
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
- | (?:^.{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})*(?:について)*(?:>|)|]|】)*(?::|:$)*)
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}*$)
@@ -1,3 +1,3 @@
1
1
  module OaTemplater
2
- VERSION = '0.5.17'
2
+ VERSION = '0.5.18'
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.17
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-02 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: byebug