15m16 成书中间孤短页合并放宽(上限175/阈值55, 治残句刚好50字合不了致留空)
Auto Release / build (push) Successful in 5m11s

This commit is contained in:
youpaishidifu
2026-11-23 15:03:24 +08:00
parent 749a752a8c
commit 74728865f7
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -120,6 +120,9 @@ test.*
*.py
# 屏蔽其它文件
/*.md
/*.htm
/*.html
/test*.*
# 过滤readme和配置文件
!readme.md
/破甲提示词
@@ -168,5 +171,4 @@ test.*
.gitcommit_msg_*
# 敏感凭证(禁入git)
account.json
account.json
@@ -491,7 +491,8 @@ public class CustomScreenManager implements Listener {
for (int pi = 1; pi + 1 < pages.size(); pi++) {
String cur = pages.get(pi);
String nxt = pages.get(pi + 1);
if (cur.length() < 50 && (cur.length() + nxt.length() + 1) <= 165) {
// 15m16 放宽中间孤短页合并: 上限165→175, 阈值50→55(治"残句刚好50字合不了")
if (cur.length() < 55 && (cur.length() + nxt.length() + 1) <= 175) {
pages.set(pi + 1, cur + "\n" + nxt);
pages.remove(pi);
}