|
|
@ -124,11 +124,10 @@ object ChapterProvider { |
|
|
|
var durY = 0f |
|
|
|
var durY = 0f |
|
|
|
textPages.add(TextPage()) |
|
|
|
textPages.add(TextPage()) |
|
|
|
if (ReadBookConfig.titleMode != 2) { |
|
|
|
if (ReadBookConfig.titleMode != 2) { |
|
|
|
|
|
|
|
//标题非隐藏 |
|
|
|
displayTitle.splitNotBlank("\n").forEach { text -> |
|
|
|
displayTitle.splitNotBlank("\n").forEach { text -> |
|
|
|
setTypeText( |
|
|
|
setTypeText( |
|
|
|
book, |
|
|
|
book, absStartX, durY, |
|
|
|
absStartX, |
|
|
|
|
|
|
|
durY, |
|
|
|
|
|
|
|
if (AppConfig.enableReview) text + reviewChar else text, |
|
|
|
if (AppConfig.enableReview) text + reviewChar else text, |
|
|
|
textPages, |
|
|
|
textPages, |
|
|
|
stringBuilder, |
|
|
|
stringBuilder, |
|
|
@ -145,6 +144,7 @@ object ChapterProvider { |
|
|
|
} |
|
|
|
} |
|
|
|
contents.forEach { content -> |
|
|
|
contents.forEach { content -> |
|
|
|
if (book.getImageStyle().equals(Book.imgStyleText, true)) { |
|
|
|
if (book.getImageStyle().equals(Book.imgStyleText, true)) { |
|
|
|
|
|
|
|
//图片样式为文字嵌入类型 |
|
|
|
var text = content.replace(srcReplaceChar, "▣") |
|
|
|
var text = content.replace(srcReplaceChar, "▣") |
|
|
|
val srcList = LinkedList<String>() |
|
|
|
val srcList = LinkedList<String>() |
|
|
|
val sb = StringBuffer() |
|
|
|
val sb = StringBuffer() |
|
|
@ -187,9 +187,7 @@ object ChapterProvider { |
|
|
|
val text = content.substring(start, content.length) |
|
|
|
val text = content.substring(start, content.length) |
|
|
|
if (text.isNotBlank()) { |
|
|
|
if (text.isNotBlank()) { |
|
|
|
setTypeText( |
|
|
|
setTypeText( |
|
|
|
book, |
|
|
|
book, absStartX, durY, |
|
|
|
absStartX, |
|
|
|
|
|
|
|
durY, |
|
|
|
|
|
|
|
if (AppConfig.enableReview) text + reviewChar else text, |
|
|
|
if (AppConfig.enableReview) text + reviewChar else text, |
|
|
|
textPages, |
|
|
|
textPages, |
|
|
|
stringBuilder, |
|
|
|
stringBuilder, |
|
|
|