|
@@ -505,7 +505,7 @@ public class PatentRightService extends ServiceImpl<PatentRightMapper, PatentRig
|
|
contentOut = contentOut.replaceAll(" +", "");
|
|
contentOut = contentOut.replaceAll(" +", "");
|
|
|
|
|
|
//中文专利的权要拆分 ↓
|
|
//中文专利的权要拆分 ↓
|
|
- if (country.equals("CN") || country.equals("JP")) {
|
|
|
|
|
|
+ if (country.equals("CN") || country.equals("JP") || country.equals("KR")) {
|
|
String regex;
|
|
String regex;
|
|
if (content.contains("。2.")) {
|
|
if (content.contains("。2.")) {
|
|
regex = "。[0-9]+\\.";
|
|
regex = "。[0-9]+\\.";
|
|
@@ -515,13 +515,18 @@ public class PatentRightService extends ServiceImpl<PatentRightMapper, PatentRig
|
|
regex = "\\[[0-9]+]";
|
|
regex = "\\[[0-9]+]";
|
|
} else if (content.contains("請求項")) {
|
|
} else if (content.contains("請求項")) {
|
|
regex = "。【請求項[0-9]+】";
|
|
regex = "。【請求項[0-9]+】";
|
|
|
|
+ } else if (content.contains("청구항")) {
|
|
|
|
+ regex = "\\.청구항 [0-9]+";
|
|
} else {
|
|
} else {
|
|
regex = "";
|
|
regex = "";
|
|
}
|
|
}
|
|
Matcher matcher = Pattern.compile(regex).matcher(content);
|
|
Matcher matcher = Pattern.compile(regex).matcher(content);
|
|
Matcher matcherOut = Pattern.compile(regex).matcher(contentOut);
|
|
Matcher matcherOut = Pattern.compile(regex).matcher(contentOut);
|
|
while (matcher.find()) {
|
|
while (matcher.find()) {
|
|
- if (matcher.group().contains(".")) {
|
|
|
|
|
|
+ if (matcher.group().contains("청구항")) {
|
|
|
|
+ String matcherGroup = matcher.group().replace(".", "\\.");
|
|
|
|
+ content = content.replaceFirst(matcherGroup, ".\n" + matcherGroup.substring(matcherGroup.indexOf(".") + 1));
|
|
|
|
+ } else if (matcher.group().contains(".")) {
|
|
String matcherGroup = matcher.group().replace(".", "\\.");
|
|
String matcherGroup = matcher.group().replace(".", "\\.");
|
|
content = content.replaceFirst(matcherGroup, "。\n" + matcherGroup.substring(matcherGroup.indexOf("。") + 1, matcherGroup.indexOf("\\")) + ".");
|
|
content = content.replaceFirst(matcherGroup, "。\n" + matcherGroup.substring(matcherGroup.indexOf("。") + 1, matcherGroup.indexOf("\\")) + ".");
|
|
} else if (matcher.group().contains("、") || matcher.group().contains("請求項")) {
|
|
} else if (matcher.group().contains("、") || matcher.group().contains("請求項")) {
|