epub

How to highlight text permanently in WebView in Android?

梦想与她 提交于 2019-12-05 22:35:51
I am developing an ePUB reader for Android phones. I can get text copied to the ClipBoard using WebView & ClipBoardManager. But what I really want to do is highlight the selection permanently. I saw some articles. They suggested to get WebView in selection mode & to use JavaScript. How can I get WebView in selection mode? If I go with JavaScript and get the text modified, can I save those changes applied by the JavaScript permanently in the corresponding ePUB file? If yes then how? 来源: https://stackoverflow.com/questions/8969448/how-to-highlight-text-permanently-in-webview-in-android

Epub.js - Phonegap not working because of blob URI

≡放荡痞女 提交于 2019-12-05 21:21:32
I'm using Epub.js library to render a .epub file in a Phonegap project. The file gets fetched and unzipped correctly, but then the screen is displayed blank if running in WebView (Works perfect in Desktop and in android browser (Chrome app)). Debugging, I see that the iframe where the epub should be loaded doesn't work, as iframe.onload never gets called. The URL he's trying to access is blob:file%3A///85a6ce73-2b5f-430e-a908-26a7d3d830e4 , so I'm guessing that could be the reason... Cordova doesn't accept blob URI schemes. However, I don't know any workaround... I'm completely stuck there. I

FInding out when page is being viewed in EPUB FXL via Javascript

你。 提交于 2019-12-05 18:26:45
Is it possible to find out when a page of an EPUB Fixed Layout is being viewed with Javascript? There is the DOMContentLoaded event, but the adjacent pages also fire this event when they are preloaded in iBooks, causing animations or sounds to start before the page being visible... No, it's not. This is a "feature" of iBooks. It preloads the pages, I suppose to make page turns faster later on. Unfortunately, there is no way to detect that a page is preloading as opposed to being actually viewed. There's only one way to deal with this--force user interaction on each page (tapping something) to

breadcrumb titlebar in Kindle book

喜你入骨 提交于 2019-12-05 12:55:35
Some books or periodicals from Amazon Kindle store have this cool feature that shows a breadcrumb or title bar when you read them. It shows up as the first line of the text. It is not the bar that has the battery and wireless signal icons. It is that first line underneath, right above the content. For example, if you are in the middle of chapter 2 it shows the title of the chapter in that line. It is really cool and I would like to implement that in my books. I have proper TOC, cover and start page. I followed the guidelines in Kindle Publishing Guide . Actually, I am using KindleGen to

Read .epub file in Android [closed]

偶尔善良 提交于 2019-12-05 07:45:29
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am new in Android I want to read Epub file in our android app. Can any one tell me how to? Please post some example. 回答1: FBReader application which reads epub files. here you can find it http://www.fbreader

Creating an Epub file with a Zip library

坚强是说给别人听的谎言 提交于 2019-12-05 02:45:08
HI All, I am trying to zip up an Epub file i have made using c# Things I have tried Dot Net Zip http://dotnetzip.codeplex.com/ - DotNetZip works but epubcheck fails the resulting file (**see edit below) ZipStorer zipstorer.codeplex.com - creates an epub file that passes validation but the file won't open in Adobe Digital Editions 7 zip - I have not tried this using c# but when i zip the file using there interface it tells me that the mimetype file name has a length of 9 and it should be 8 In all cases the mimetype file is the first file added to the archive and is not compressed The Epub

epub reader to handle big html file

柔情痞子 提交于 2019-12-04 17:07:55
I am creating an epub reader on IOS platform. Basically, it uses UIWebview to display epub files, I read the code of open source Aepubreader and find it's very good but not text based. I want to make it text based and page turn like iBooks. So I try to refine the Aepubreader The basic logic flow is unzip the epub file. parse the meta data(opf,toc file). load html files by UIWebView and bind it to UIPageViewController Everything works good except the performance. Supposing the epub has ten html files(file1 - file10). file1 ~ file9 is small size(like 100k), but file 10 is 1MB. when I read to the

.epub on iPhone

对着背影说爱祢 提交于 2019-12-04 15:09:14
Seeking your help to get off .epub(s) sea in iPhone world... I am trying to make an iPhone application which can read .epub(s). So, I'm in search of a good method, API, Webservices, etc. which help me to render .epub(s) on iPhone's screen. Please let me know once you got any information about .epub(s) on iPhone. => My application would be like, Stanza/Calibri, which can read .epub(s). Thanking You... Paresh Thakor EPUB is just XHTML stored in a zipfile with an XML manifest. Get a zip library and you can use a WebView to display the actual content. 来源: https://stackoverflow.com/questions

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

Regex: Find groups of lowercase letters between HTML tag

一个人想着一个人 提交于 2019-12-04 14:22:44
I'm attempting to develop a regular expression that can be run in Sigil , the ePub 2 editor. Small-caps are a well-known problem within the current ePub reader ecosystem. Many readers, such as Adobe Digital Editions, do not support "font-variant: small-caps". After trying several different workarounds, I've settled on creating fake small caps by transforming the text to uppercase and setting the previously lowercase letters to "font-size: 0.75em". This process is extremely tedious, especially when working with books that have lots of endnotes with citations of other books. Say that I have a