02-22-2018, 02:55 AM | #1 | |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Open with... (testing a new feature)
Hi
Thank you for your tireless efforts to improve Koreader. According to the github site a new and amazing feature "open with" has just been added (highlighting is mine). I would be very keen to test it. Quote:
MuPDF can open PDF, XPS, CBZ, and EPUB documents. Command Line Options Code:
-p password The password needed to open a password protected PDF file. -r resolution Set the initial zoom level, specified as DPI. The default value is 72. -W width Set the page width in points for EPUB layout. -H height Set the page height in points for EPUB layout. -S size Set the default font size in points for EPUB layout. -U stylesheet Specify a CSS file containing user styles to load for EPUB layout. Last edited by roger64; 02-22-2018 at 03:49 AM. |
|
02-22-2018, 05:10 AM | #2 |
Wizard
Posts: 1,665
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
There's no direct relation between the MuPDF app you can download and KOReader. Basically they're both applications that use the MuPDF library to display PDFs (and other supported file formats).
All you need to do is long-press on a file. Edit: I just realized that "MuPDF is still experimental" could be misconstrued although I think it should be clear in context. It refers to using MuPDF to open EPUB (and FB2) only. The MuPDF library has always been responsible for the PDF rendering part of kindlepdfviewer. Last edited by Frenzie; 02-22-2018 at 05:16 AM. |
Advert | |
|
02-22-2018, 07:32 AM | #3 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thank you for the long press tip. Somebody has to ask for it... I have been using MuPDF to read custom PDF with Koreader for quite a long time. It's an excellent reader, much better than the standard one on Kindle. The ePub reader with MuPDF shares most of the good features of the PDF reader and displays precisely the text and the fonts. Links to endnotes are working very well. Image display is OK. However there is a stumbling block: it is absolutely necessary to allow the user to select the font-size without "reformating". I could hardly read the text and really needed a magnifying glass. If I "reformat", I find the new display ugly. Two other things I noticed: 1. - hyphenation is missing 2. - linebreaks are way too big and must be corrected. So, quite a promising start for an experimental feature. Thanks for giving us a choice of rendering engines. Last edited by roger64; 02-22-2018 at 07:46 AM. |
02-24-2018, 07:29 PM | #4 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
I am a bit surprised nobody seems to pick up this thread. Is not the introduction of a second rendering engine for ePub a significant milestone for Koreader?
I just wanted to explain why I did not want to use the "reformat" option in its today form. For what I saw, when you select it, you can tweak your ePub in many ways (fonts, margins, etc.) but I really disliked the scrolling: somewhat the lowest line is half eaten, sometimes the upper line is too low or repeat the last preceding line, to sum it up, the display is not clear cut and this I find particularly disturbing. On the other hand, the direct display (without "reformating") is tantalizingly close to a perfect rendering. I wish some solution could be provided to the font-size problem. I noticed in the first post that the original MuPDF ePub rendering application allows some tweaking commands, among them to set up a default font-size value. Could this be backported to the Koreader version of this application? |
02-25-2018, 02:41 AM | #5 |
Evangelist
Posts: 484
Karma: 5277078
Join Date: Oct 2009
Location: UK
Device: Kobo Clara HD, Boox Poke 2, PocketBook Verse Pro (634)
|
I did try the MuPDF function on my Pocketbook.
As you say, without reflow, the reader is quick to open a book but virtually illegible because of the small font. With reflow, I found it unusable - top and bottom text lines missing, different font sizes on different pages, an inability to handle images on a page. |
Advert | |
|
02-25-2018, 03:10 AM | #6 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
@church mouse
Thanks for the confirmation on another platform. Now wait and see... |
02-25-2018, 03:42 AM | #7 | |
Wizard
Posts: 1,665
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
Quote:
The EPUB support you see right now is almost accidental. MuPDF added some initial EPUB rendering and I added a way to play around with it that doesn't require editing any source files when I noticed how nicely it was already working. But as you can see the GUI for it assumes we're dealing with a PDF because we're in MuPDF. The font size should be relatively simple. It's already there in base: https://github.com/koreader/koreader....lua#L170-L175 But not five minutes simple, I don't think. |
|
02-25-2018, 05:27 AM | #8 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
Thanks for the explanations. Well, some "accidents" as you say make people happy.
|
02-25-2018, 11:38 PM | #9 |
Wizard
Posts: 1,763
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Koreader crashed for me when I tried opening an epub in MuPdf on my android based eink reader. I didn't try it again with another epub though so not sure it was because of that particular epub or just a problem with MuPdf.
|
02-26-2018, 02:52 AM | #10 |
Wizard
Posts: 1,665
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
The error message from crash.log could be helpful.
|
02-26-2018, 09:03 AM | #11 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
You'll get mine too.
It's coming from MuPDF when, while reading a PDF, I leave my finger too long on the right side of the screen (I am sleeping actually), Koreader crashes and I am back to Kindle. I reproduced it leaving my finger put about 15 seconds nearly immediately after opening the book (darkened in the code). As soon as I take out my finger, Koreader crashes. It happens regularly and I have better take care not to fall asleep Spoiler:
Last edited by roger64; 02-26-2018 at 09:08 AM. |
02-26-2018, 09:18 AM | #12 |
Wizard
Posts: 1,665
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
I can reproduce that. Curious. If you hold for 3 seconds or less it selects a word, but if you hold for more than 4 seconds before releasing it crashes. It happens in DjVu and all MuPDF file formats, not just EPUB. I guess it's some edge case that never showed up because normally you're either going to be selecting more words or you'll already have let go.
Tracked in #3696. |
02-26-2018, 09:31 AM | #13 |
Wizard
Posts: 2,608
Karma: 3000161
Join Date: Jan 2009
Device: Kindle PW3 (wifi)
|
If the readers sleep, the developpers don't. The bug has been reportedly quashed and the fix "merged" which means it's already in the main version.
Users will get it at next update. Long life Koreader!! Last edited by roger64; 02-26-2018 at 10:50 PM. |
02-26-2018, 10:35 PM | #14 |
Wizard
Posts: 1,763
Karma: 30063305
Join Date: Dec 2006
Location: Singapore
Device: Boyue
|
Sadly I can't recall which book it was as I was just trying the open with feature when I read about in this thread so just tried to open a book. With other books I tried it to get the crash log it didn't crash so now I am not sure if that was the actual problem .
Anyway after trying both I prefer the original crengine renderer. I was wondering if it will be possible to add mupdf render as an option in android directly as I prefer calibre companion app for browsing my files so would like to have the option to open in crengine or mupdf option in that rather than from inside koreader. |
02-27-2018, 06:30 AM | #15 |
Wizard
Posts: 1,665
Karma: 730583
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
|
That's an interesting thought, but not easily. It'd require a fair bit of work on the Android side in particular.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre cannot open ebook reader, edit books, or re-open once closed | baggins41 | Calibre | 15 | 04-22-2021 07:54 AM |
Can't open books, suspect xdg-open | Eoaka | Devices | 5 | 05-11-2016 10:47 AM |
On the Mac, how do you make it so that the table of contents are open, when you open | automa | Sigil | 8 | 01-07-2014 05:22 PM |
overdrive open epub / open pdf? | Joykins | General Discussions | 4 | 01-31-2013 05:05 PM |
Touch Touch bug - open document with page arrow open | Sooty | Kobo Reader | 3 | 06-11-2011 09:25 PM |