Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > KOReader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-27-2018, 08:53 PM   #991
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,333
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
Hi

For me, the quality of the reading experience is the paramount quality of any engine to the point that I sometimes convert to custom PDF my -custom- ePubs to be sure to avoid all glitches.

This explains why I was so thrilled when the muPDF engine was made available in February 2018 as an alternative engine for Koreader users to read ePub I tested it at once, it looked very precise and promising but one key feature was missing: the user could not change the font size.

https://www.mobileread.com/forums/sh...=feature+muPDF

At first I thought that it was a small tune up which would be implemented quickly. For some reason, it did not happen, and we are about to celebrate the first anniversary of this new feature without having been given a chance to even read a single book with it.
roger64 is online now   Reply With Quote
Old 11-28-2018, 02:57 PM   #992
Frenzie
Fanatic
Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.
 
Posts: 568
Karma: 115024
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
I mainly hoped to motivate others to improve upon it. I'm afraid I haven't really had much time to look at it. That was one year ago already? Wow.

As an aside, while really stupid in principle, reflow actually works tremendously well on a MuPDF-rendered EPUBs.

I do apologize for not at least giving you the following information more explicitly, although at the time I hadn't actually tried it like I did now. As a basic workaround you could mod the PdfDocument file yourself like this:
Code:
diff --git a/frontend/document/pdfdocument.lua b/frontend/document/pdfdocument.lua
index 34f072e9..14ae115d 100644
--- a/frontend/document/pdfdocument.lua
+++ b/frontend/document/pdfdocument.lua
@@ -42,6 +42,8 @@ function PdfDocument:init()
     if not ok then
         error(self._document)  -- will contain error message
     end
+    local Screen = Device.screen
+    self._document:layoutDocument(Screen:getWidth(), Screen:getHeight(), 50)
     self.is_open = true
     self.info.has_pages = true
     self.info.configurable = true
In a diff file, + means added lines and - means removed lines.

So basically just add those two lines in that location:
Code:
    local Screen = Device.screen
    self._document:layoutDocument(Screen:getWidth(), Screen:getHeight(), 50)
The "50" here is a font size value that you can play around with.

The problem is integrating it properly into the UI, and even purely code-wise that's a just quick hack instead of proper code that can actually go into the program.

But of course perfection is the enemy of progress. Proper code + configuration first, UI later. I can't promise anything though; my spare time may be limited.
Frenzie is offline   Reply With Quote
Old 11-29-2018, 05:26 AM   #993
roger64
Wizard
roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.roger64 ought to be getting tired of karma fortunes by now.
 
Posts: 2,333
Karma: 2385865
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
@Frenzie

To report success!!

Sorry for knocking insistently at your door.

I tried your patch, inserting manually these two lines with 50 value and it fits exactly. The display is perfect (at least on some pages of the trial ePub) with the same amount of lines per page it is intended to have.

As far as I am concerned, I shall keep it this way until further notice and shall test further this new muPDF ePub renderer. I'll need some days for it and shall report back here asap.
roger64 is online now   Reply With Quote
Old 11-30-2018, 11:51 AM   #994
ottischwenk
Connoisseur
ottischwenk began at the beginning.
 
Posts: 74
Karma: 10
Join Date: Sep 2012
Device: Tolino Vision 3 HD, Tolino Shine 2 HD, Nexus 7 2012, Doogee Turbo F1
Picture of Touch screen functions

Is somewhere a picture of the touch screen Functions, where i can see, what happens when touching ina certain area?
ottischwenk is offline   Reply With Quote
Old 11-30-2018, 08:56 PM   #995
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,327
Karma: 6272771
Join Date: Dec 2009
Location: The Heart of Texas
Device: JetBook Lite (retired), AuraHD, PDA,
Actually, you would need two main pictures and some sub-pictures for them, plus a number to cover the various plugins and the screens they may generate. For most of them you would also need to have a way to show the results for both a tap and a "long press". The various swipe gestures would be needed as well.

Perhaps, someone running the emulator could find a way to run a video capture program like is done for games. Then a video could be produced that would show the effects of the many touchscreen gestures. A "moving finger" cursor might be needed. It could be added in post editing.

Luck;
Ken

Last edited by Ken Maltby; 11-30-2018 at 08:58 PM.
Ken Maltby is offline   Reply With Quote
Old 02-23-2019, 03:54 PM   #996
Frozenium
Junior Member
Frozenium began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2019
Device: Kindle Paperwhite
Hello. I can not download books on opds by addresses.
coollib.com/opds
flibustahezeous3.onion.link/opds

catalog navigation works.
Frozenium is offline   Reply With Quote
Old 02-24-2019, 12:03 PM   #997
Frenzie
Fanatic
Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.
 
Posts: 568
Karma: 115024
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
coollib.com/opds uses HTTPS and redirects

It's a known issue that redirects aren't supported in combination with HTTPS in our current luasec/luasocket backend.

https://github.com/brunoos/luasec/pull/38
https://github.com/diegonehab/luasocket/pull/133

For your particular case, it can be worked around like this:
Code:
diff --git a/frontend/ui/widget/opdsbrowser.lua b/frontend/ui/widget/opdsbrowser.lua
index c854f15d..6da606d4 100644
--- a/frontend/ui/widget/opdsbrowser.lua
+++ b/frontend/ui/widget/opdsbrowser.lua
@@ -497,7 +497,7 @@ function OPDSBrowser:downloadFile(item, format, remote_url)
                 local auth = string.format("%s:%s", item.username, item.password)
                 local hostname = parsed.host
 
-                dummy, c = https.request {
+                dummy, c, h = https.request {
                     url         = remote_url,
                     headers     = { Authorization = "Basic " .. mime.b64(auth), ["Host"] = hostname },
                     sink        = ltn12.sink.file(io.open(local_path, "w")),
@@ -515,6 +515,13 @@ function OPDSBrowser:downloadFile(item, format, remote_url)
                     self.file_downloaded_callback(local_path)
                 end
             else
+if c and c > 299 and c < 400  and h and h["location"] then -- handle 301, 302...
+   local redirected_url = h["location"]
+        dummy, c = https.request {
+            url         = redirected_url,
+            sink        = ltn12.sink.file(io.open(local_path, "w")),
+        }
+end
                 UIManager:show(InfoMessage:new {
                     text = _("Could not save file to:\n") .. local_path,
                     timeout = 3,
Perhaps someone would like to flesh that out a bit more?
Frenzie is offline   Reply With Quote
Old 02-25-2019, 08:17 AM   #998
Frozenium
Junior Member
Frozenium began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2019
Device: Kindle Paperwhite
Thumbs up

Quote:
Originally Posted by Frenzie View Post
For your particular case, it can be worked around like this:
Thank! It really works. In those links where I could not download books, download now takes place.
Although he writes that he could not download the book. But in fact, the book appears in the file manager.

Sorry for my English.
Frozenium is offline   Reply With Quote
Old 02-27-2019, 08:10 AM   #999
Frenzie
Fanatic
Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.Frenzie can see what is invisible to the naked eye.
 
Posts: 568
Karma: 115024
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Yes, it's just a proof of concept hack.
Frenzie is offline   Reply With Quote
Reply

Tags
application, k5 tools, kindle, launcher add-ons, lua, reader, touch

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1122 03-10-2019 06:19 AM
PocketBook-KOReader: a document reader for PDF, DJVU, EPUB, FB2, CBZ, ... (AGPLv3) chrox KOReader 183 02-01-2019 12:49 PM
KPV: a PDF reader for Kindle, based on muPDF, GPLv3 hawhill Kindle Developer's Corner 1056 11-11-2017 03:07 AM
Hacked Up Reader for epub/fb2/txt/rtf/html/pdb/etc bhaak Kindle Developer's Corner 296 10-01-2016 01:11 PM
A real PDF to epub/djvu/rtf/html software?. DsOft ePub 35 01-02-2011 03:57 PM


All times are GMT -4. The time now is 10:04 PM.


MobileRead.com is a privately owned, operated and funded community.