epublib

Android EPUBLIB read/load content

巧了我就是萌 提交于 2020-01-10 08:28:06
问题 I'm playing with http://www.siegmann.nl/epublib on Android. Can someone please explain the right way to read epub HTML content, how to show this on Android (using WebView?), how to split content into pages and how to search the content. Thx 10x. 回答1: Answers #2: Extract epub on file system /mnt/sdcard/epub/ Loading values in webview protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.epub_reader); webView = (WebView) findViewById(R.id.webview); Book book = (new

Failed to resolve: com.osbcp.cssparser:cssparser:1.5 HtmlSpanner-NightWhistler

两盒软妹~` 提交于 2019-12-25 09:15:00
问题 I integrated HtmlSpanner into my Android application. I'm getting the following error: Failed to resolve: com.osbcp.cssparser:cssparser:1.5. How do I solve this error? Thanks for help 回答1: This library is not in the standard Maven repository, that Gradle uses to resolve dependencies. You should add the following repository address to your build.gradle file: repositories { mavenCentral() maven { url "http://repo.pageturner-reader.org" } } 来源: https://stackoverflow.com/questions/38970863/failed

epublib android

房东的猫 提交于 2019-12-08 13:39:30
问题 I see the Link http://www.siegmann.nl/epublib/android But I can't download epub-core lib.jar and in this link Under Getting Start they mention to compile using the "mvn package" what that means? 回答1: Github cloud does seem to run into some or the other trouble with the way in which the URL is encoded. Your issue might also be related to that. You'd be better off posting to github's support forum - they're usually quick with their responses. As for Maven package - well, you'll need to download

How to render a epub file in a native android app?

ぃ、小莉子 提交于 2019-12-04 14:39:10
问题 I am trying to make a android app that would render a .epub file and display its content in an android layout. I did a similar app for displaying pdf's using pdfRenderer which displayed the pdf pages using bitmaps. How can I achieve something similar using a epub file in android? I am using Epublib but I am unable to find any good tutorials for it. I also tried skyepub but it seems quite outdated. Can anyone help me with a example for epublib this is my code for epublib: package org

How to read EPUB book using EPUBLIB?

别说谁变了你拦得住时间么 提交于 2019-12-04 12:27:00
问题 I found a solution for reading epub books in android using epublib. I am able to read the subtitles of the book. But I didn't find a way to read the line by line of the content. How can I acheive this? Sample code for getting titles of the book is private void logTableOfContents(List<TOCReference> tocReferences, int depth) { if (tocReferences == null) { return; } for (TOCReference tocReference : tocReferences) { StringBuilder tocString = new StringBuilder(); StringBuilder tocHref=new

How to render a epub file in a native android app?

五迷三道 提交于 2019-12-03 10:08:07
I am trying to make a android app that would render a .epub file and display its content in an android layout. I did a similar app for displaying pdf's using pdfRenderer which displayed the pdf pages using bitmaps. How can I achieve something similar using a epub file in android? I am using Epublib but I am unable to find any good tutorials for it. I also tried skyepub but it seems quite outdated. Can anyone help me with a example for epublib this is my code for epublib: package org.inevitablesol.com.epubdemo; import android.content.res.AssetManager; import android.graphics.Bitmap; import

Use Horizontal Scroll in Android WebView

你。 提交于 2019-12-02 08:10:49
问题 I am currently using epublib-core to read epubs and display them in Android WebView with the following code - webView.loadDataWithBaseURL(baseURL, new String(spineReferences.get(chapter/* <- int*/).getResource().getData()), "text/html", "utf-8", null); But it's using Vertical Scroll whereas I want a HorizontalScroll. After searching the web, I found Monocle, but I don't know how to integrate Monocle with epublib and WebView . Any idea on how to use horizontal scroll? 回答1: Atlast, I could

Use Horizontal Scroll in Android WebView

那年仲夏 提交于 2019-12-02 07:28:25
I am currently using epublib-core to read epubs and display them in Android WebView with the following code - webView.loadDataWithBaseURL(baseURL, new String(spineReferences.get(chapter/* <- int*/).getResource().getData()), "text/html", "utf-8", null); But it's using Vertical Scroll whereas I want a HorizontalScroll. After searching the web, I found Monocle , but I don't know how to integrate Monocle with epublib and WebView . Any idea on how to use horizontal scroll? Atlast, I could enable Horizontal Scroll in the app (without any Page Transitions). Use this code to scroll horizontally -

Android EPUBLIB read/load content

孤人 提交于 2019-11-30 04:01:04
I'm playing with http://www.siegmann.nl/epublib on Android. Can someone please explain the right way to read epub HTML content, how to show this on Android (using WebView?), how to split content into pages and how to search the content. Thx 10x. Jega Answers #2: Extract epub on file system /mnt/sdcard/epub/ Loading values in webview protected void onCreate(Bundle savedInstanceState) { setContentView(R.layout.epub_reader); webView = (WebView) findViewById(R.id.webview); Book book = (new EpubReader()).readEpub(new FileInputStream(filename); String baseUrl="file://mnt/sdcard/epub/OEBPS/" String

ePub library for java or android

柔情痞子 提交于 2019-11-26 22:35:33
问题 Is there any library to read ePub format? I found ePublib in http://github.com/psiegman/epublib. I'm still learning how to use it. Is there ePub jar which works for Android? 回答1: I am the author of epublib. It now runs on Android. See http://www.siegmann.nl/epublib/android 回答2: You can use Folio Reader for this purpose. To use , add this to gradle: compile 'com.folioreader:folioreader:0.2.5' And if you have the .epub file in assets folder, you can load the file as : Intent intent = new Intent