|  |  |  | @ -13,11 +13,11 @@ import me.ag2s.epublib.domain.EpubBook | 
			
		
	
		
			
				
					|  |  |  |  | import me.ag2s.epublib.domain.Resource | 
			
		
	
		
			
				
					|  |  |  |  | import me.ag2s.epublib.domain.TOCReference | 
			
		
	
		
			
				
					|  |  |  |  | import me.ag2s.epublib.epub.EpubReader | 
			
		
	
		
			
				
					|  |  |  |  | import me.ag2s.epublib.util.StringUtil | 
			
		
	
		
			
				
					|  |  |  |  | import me.ag2s.epublib.util.zip.AndroidZipFile | 
			
		
	
		
			
				
					|  |  |  |  | import org.jsoup.Jsoup | 
			
		
	
		
			
				
					|  |  |  |  | import org.jsoup.nodes.Element | 
			
		
	
		
			
				
					|  |  |  |  | import org.jsoup.select.Elements | 
			
		
	
		
			
				
					|  |  |  |  | import splitties.init.appCtx | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.File | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.FileOutputStream | 
			
		
	
		
			
				
					|  |  |  |  | import java.io.IOException | 
			
		
	
	
		
			
				
					|  |  |  | @ -173,6 +173,12 @@ class EpubFile(var book: Book) { | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             //title标签中的内容不需要显示在正文中,去除 | 
			
		
	
		
			
				
					|  |  |  |  |             elements.select("title").remove() | 
			
		
	
		
			
				
					|  |  |  |  |             elements.select("img").forEach { | 
			
		
	
		
			
				
					|  |  |  |  |                 val src = it.attr("src") | 
			
		
	
		
			
				
					|  |  |  |  |                 val path = chapter.url.substringBeforeLast("/") + "/" | 
			
		
	
		
			
				
					|  |  |  |  |                 val absSrc = StringUtil.collapsePathDots(path + src) | 
			
		
	
		
			
				
					|  |  |  |  |                 it.attr("src", absSrc) | 
			
		
	
		
			
				
					|  |  |  |  |             } | 
			
		
	
		
			
				
					|  |  |  |  |             var html = elements.outerHtml() | 
			
		
	
		
			
				
					|  |  |  |  |             val tag = Book.rubyTag | 
			
		
	
		
			
				
					|  |  |  |  |             if (book.getDelTag(tag)) { | 
			
		
	
	
		
			
				
					|  |  |  | 
 |