-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from gedoor/master
merge
- Loading branch information
Showing
90 changed files
with
2,005 additions
and
1,949 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,98 @@ | ||
[ | ||
{ | ||
"enable": true, | ||
"name": "默认正则1", | ||
"rule": "^(.{0,8})(第)([0-9零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,10})([章节卷集部篇回场])(.{0,30})$", | ||
"serialNumber": 0 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "默认正则2", | ||
"rule": "^([0-9]{1,5})([\\,\\.,-])(.{1,20})$", | ||
"serialNumber": 1 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "默认正则3", | ||
"rule": "^(\\s{0,4})([\\(【《]?(卷)?)([0-9零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,10})([\\.:: \f\t])(.{0,30})$", | ||
"serialNumber": 2 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "默认正则4", | ||
"rule": "^(\\s{0,4})([\\((【《])(.{0,30})([\\))】》])(\\s{0,2})$", | ||
"serialNumber": 3 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "默认正则5", | ||
"rule": "^(\\s{0,4})(正文)(.{0,20})$", | ||
"serialNumber": 4 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "默认正则6", | ||
"rule": "^(.{0,4})(Chapter|chapter)(\\s{0,4})([0-9]{1,4})(.{0,30})$", | ||
"serialNumber": 5 | ||
} | ||
] | ||
{ | ||
"enable": true, | ||
"name": "目录", | ||
"rule": "^[ \\t]{0,4}(?:(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?!分)|篇(?!张))).{0,30}$", | ||
"serialNumber": 0 | ||
}, | ||
{ | ||
"enable": false, | ||
"name": "目录(去空白)", | ||
"rule": "(?<=[ \\s])(?:(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?!分)|篇(?!张))).{0,30}$", | ||
"serialNumber": 1 | ||
}, | ||
{ | ||
"enable": false, | ||
"name": "目录(去简介)", | ||
"rule": "(?<=[ \\s])(?:前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?!分)|回(?![合来事去])|场(?![和合比电是])|篇(?!张))).{0,30}$", | ||
"serialNumber": 2 | ||
}, | ||
{ | ||
"enable": false, | ||
"name": "目录(古典、轻小说备用)", | ||
"rule": "^[ \\t]{0,4}(?:前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外|第?\\s{0,4}[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]+?\\s{0,4}(?:章|节(?!课)|卷|集(?![合和])|部(?!分)|回(?![合来事去])|场(?![和合比电是])|篇(?!张))).{0,30}$", | ||
"serialNumber": 3 | ||
}, | ||
{ | ||
"enable": false, | ||
"name": "数字(纯数字标题)", | ||
"rule": "(?<=[ \\s])\\d+[ \\t]{0,4}$", | ||
"serialNumber": 4 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "数字 分隔符 标题名称", | ||
"rule": "^[ \\t]{0,4}\\d{1,5}[\\,\\., 、\\-].{1,30}$", | ||
"serialNumber": 5 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "正文 标题/序号", | ||
"rule": "^[ \\t]{0,4}正文[ ]{1,4}.{0,20}$", | ||
"serialNumber": 6 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "Chapter/Section/Part/Episode 序号 标题", | ||
"rule": "^[ \\t]{0,4}(?:[Cc]hapter|[Ss]ection|[Pp]art|PART|[Ee]pisode|(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外)\\s{0,4}\\d{1,4}.{0,30}$", | ||
"serialNumber": 7 | ||
}, | ||
{ | ||
"enable": false, | ||
"name": "Chapter(去简介)", | ||
"rule": "^[ \\t]{0,4}(?:[Cc]hapter|[Ss]ection|[Pp]art|PART|[Ee]pisode)\\s{0,4}\\d{1,4}.{0,30}$", | ||
"serialNumber": 8 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "特殊符号 序号 标题", | ||
"rule": "(?<=[\\s ]{0,4}).{1,3}(?:第|卷|[Cc]hapter)[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,10}[章节]?[\\.:: \f\t].{0,20}$", | ||
"serialNumber": 9 | ||
}, | ||
{ | ||
"enable": false, | ||
"name": "特殊符号 标题(成对)", | ||
"rule": "(?<=[\\s ]{0,4})(?:[\\[〈「『〖〔《(【\\(].{1,30}[\\)】)》〕〗』」〉\\]]?|(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外)[ ]{0,4}$", | ||
"serialNumber": 10 | ||
}, | ||
{ | ||
"enable":true, | ||
"name": "特殊符号 标题(单个)", | ||
"rule": "(?<=[\\s ]{0,4})(?:[☆★✦✧].{1,30}|(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外)[ ]{0,4}$", | ||
"serialNumber": 11 | ||
}, | ||
{ | ||
"enable": true, | ||
"name": "章/卷 序号 标题", | ||
"rule": "^[ \\t ]{0,4}(?:(?:内容|文章)?简介|文案|前言|序章|楔子|正文(?!完|结)|终章|后记|尾声|番外|[卷章][\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8})[ ]{0,4}.{0,30}$", | ||
"serialNumber": 12 | ||
}, | ||
{ | ||
"enable":false, | ||
"name": "顶格标题", | ||
"rule": "^\\S.{1,20}$", | ||
"serialNumber": 13 | ||
}, | ||
{ | ||
"enable":false, | ||
"name": "双标题(前向)", | ||
"rule": "(?m)(?<=[ \\t ]{0,4})第[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章.{0,30}$(?=[\\s ]{0,8}第[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章)", | ||
"serialNumber": 14 | ||
}, | ||
{ | ||
"enable":false, | ||
"name": "双标题(后向)", | ||
"rule": "(?m)(?<=[ \\t ]{0,4}第[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章.{0,30}$[\\s ]{0,8})第[\\d零一二两三四五六七八九十百千万壹贰叁肆伍陆柒捌玖拾佰仟]{1,8}章.{0,30}$", | ||
"serialNumber": 15 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.