07-03-2012, 05:56 PM | #571 | |
Enthusiast
Posts: 25
Karma: 10358
Join Date: Jul 2012
Location: Turkey (Türkiye)
Device: Kindle Touch 5.1.2
|
Quote:
This is important progress for Kindle Touch. Most probably yours pdf viewer project will revolution for KT. i and my KT user friends continue to wait. More power to you and other developer friends Don't mention it, please. You are right dear friend. No problem |
|
07-04-2012, 09:23 AM | #572 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
A "quick and dirty" (script compatible) way to read touch gestures is by tailing the Xorg log file. It works surprisingly well. Purists can look elsewhere. The problem is that it stops logging when you pause the framework, and if you leave the framework active but capture the touchscreen device in your native mode app the gesture engine gets locked out. So you end up doing your own native mode gesture recognition (which is not all that hard).
|
Advert | |
|
07-04-2012, 01:06 PM | #573 |
Wizard
Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
Last edited by thomass; 07-04-2012 at 02:15 PM. |
07-05-2012, 03:00 AM | #574 |
Connoisseur
Posts: 58
Karma: 31942
Join Date: Feb 2012
Device: Kindle 3, Tolino Shine, Kobo Glo
|
ATM, I'm trying to add the bmp-header to raw-screenshots. In order to solve this task for all supported Kindle models, I need real screenshots made in kindlepdfviewer by pressing Shift-P (Alternatively, you may just run a command "dd if=/dev/fb0 of=/mnt/us/anyname.raw"). I've already successfully converted raw-shots to bmps on K2 and K3, so any help with KDX(G) (and K4, K5???) will be appreciated.
1. Open kindlepdfviewer (filemanager or any reader), press Shift-P 2. Copy /mnt/us/kindlepdfviewer/screenshots/YYYYMMDDHHMMSS.raw to your PC, pack it with any suitable archiver, upload it somewhere (for examlpe, here) & send me a link. Thanks a lot. [EDIT] I've already obtained the requested raw-screenshot made with KDX. So, I do not need another one. The fb2bmp-conversion works properly and consumes reasonable CPU-time (~0.4s). Last edited by NuPogodi; 07-05-2012 at 01:11 PM. |
07-05-2012, 04:12 AM | #575 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
NuPogodi, good idea, however, I think it could save screenshots as PNG if I added an interface to an already existing function in muPDF (I could also add an interface to libpng, which is compiled in, too, but libpng's API is somewhat over-abstracted). Or you might.
Anyways, the standalone tool you're heading at (a general framebuffer dump to recognized image format converter) is usable in more context, so I encourage you to go on! |
Advert | |
|
07-05-2012, 04:39 AM | #576 |
Connoisseur
Posts: 58
Karma: 31942
Join Date: Feb 2012
Device: Kindle 3, Tolino Shine, Kobo Glo
|
Well, i've selected bmp since it requires nearly no processing time (one has just to add a header and to inverse the raws order) and, hence, relatively fast (~0.15-0.17s @ K2 and K3). The bmp-size is certainly too large, but one may compress it by gzip- or bzip2-compressors available in any Linux.
My first attempts to convert 4bpp to common 8bpp for 600x800 pixels took muuuch more CPU-time (~2.5s @ K3). I suspect that png-compression would continue even longer (especially for 824x1200 KDX). But png-output test is nevertheless "versuchswert" |
07-05-2012, 01:09 PM | #577 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jul 2012
Device: K3
|
I've installed Kite and followed this installation steps:https://github.com/hwhw/kindlepdfvie...allation-Guide
This is how my kindle looks: The problem is that when I press over KPDFViewer File Manager nothing happends, any idea? Thanks!!! |
07-05-2012, 01:56 PM | #578 | |
Connoisseur
Posts: 58
Karma: 31942
Join Date: Feb 2012
Device: Kindle 3, Tolino Shine, Kobo Glo
|
Quote:
@dev: If my guess was correct, it is probably better in future to move kpdf.sh to /mnt/us/kindlepdfviewer/ and respectively edit the path in scripts - both for kite and for launchpad |
|
07-05-2012, 04:16 PM | #579 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Yep, I agree. Or get rid of the shell script all together. Feel free to file a bug.
|
07-06-2012, 11:42 AM | #580 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Thank you for this MOST EXCELLENT software!
I have noticed only one bug so far: the gamma correction for DjVu files doesn't work (but works fine for PDF files). When you fix this I will be able to delete all those massive PDF files from my Kindle and replace them with equivalent DjVu files (about 10x smaller in size, pixel-by-pixel identical to PDF). The test files showing the bug are here: http://www.bibles.org.uk/testfile.zip The pdf file works fine, but the djvu file ignores the setting of gamma. Actually, there seems to be no page redraw after pressing +/- keys for djvu (but there is for pdf). I would say this is the second most-important program ever written for Kindle (the first one is CoolReader and the third one is Kindle Chess, of course). ------- Ok, the above "gamma doesn't work" is a red herring. The real bug lies elsewhere and I think we have tracked it down, thanks to NuPogodi's excellent analysis of the real cause (on the "Russian forum", the-ebook.org)! Namely, the problem is probably due to the hardcoded rendering mode of DDJVU_RENDER_COLOR in djvu.c:handle(): ddjvu_page_render(page->page_ref, DDJVU_RENDER_COLOR, &pagerect, &renderrect, pixelformat, bb->w, imagebuffer); In a DjVu viewer for Hanlin V3 (Lbook V3) called libdjvu I set the rendering mode depending on whether the djvu file is bitonal or not: if (page_type == DDJVU_PAGETYPE_BITONAL) djvu_render_mode = DDJVU_RENDER_MASKONLY; else djvu_render_mode = DDJVU_RENDER_COLOR; Please consider this. I don't have the environment (arm gcc, etc.) to test this at the moment. But if there are clear instructions on building kindlepdfviewer (I'll check the README) then perhaps I will try. Anyway, if you (hawhill, the Author) have a spare minute to try and compile the above fix (page_type is returned by ddjvu_page_get_type(djvu_page)) and see if it fixes the problem (the testfile.zip contains everything necessary to test) it would be great. Last edited by tigran; 07-06-2012 at 03:59 PM. Reason: suggested bugfix |
07-06-2012, 04:15 PM | #581 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
I left a comment in github as there is an existing issue about this:
https://github.com/hwhw/kindlepdfviewer/issues/217 |
07-20-2012, 10:57 AM | #582 |
Enthusiast
Posts: 25
Karma: 10
Join Date: Apr 2012
Device: Kindle DX Graphite
|
so whens the new release?
|
07-20-2012, 11:21 AM | #583 |
Zealot
Posts: 140
Karma: 23528
Join Date: Nov 2009
Location: London
Device: Kobo Aura One,HD,H2O,Touch,Mini,Kindle 3+DXG,Nook Simple Touch
|
Here are the improvements to the djvu support (thanks to NuPogodi for the idea of contrast change and the lua-based implementation which I simply converted to djvu code):
http://www.bibles.org.uk/kpdfviewer-...ncements.patch There are three main changes (affecting only djvu files): 1. Added code to wait for djvulibre acknowledgement of completion of page rendering before manipulating the buffer. (i.e. safer handling of djvu files) 2. Added code to increase contrast for djvu files, linked to the same Volume +/- key as before, it is just for the majority of djvu files pressing Vol +/- would make no difference without this enhancement. 3. Allow the user to toggle the rendering mode between colour and b&w by pressing 'R' key. (currently requires re-opening the file) |
07-22-2012, 09:20 AM | #584 | |||
Junior Member
Posts: 1
Karma: 10
Join Date: Jul 2012
Device: Kindle 3 Wifi
|
I hope somebody can help me with installation, as I am little bit confused...
"You need to jailbreak and install launchpad first" sounded difficult, as I have no idea what jailbreak means and what launchpad is. So I would like to choose the other method with kite which seems to be easier. Unfortunatley I found different instructions. The first message in this thread says Quote:
But on 12-08-2011 hawhill writes: Quote:
Quote:
Should there be a kindlepdfviewer folder in the root directory? Or in /documents/test? Or in /customupdates? Or should I put the 17 files (which are in the kindlepdfviewer folder of the zip file) directly in any of the mentioned folders? |
|||
07-22-2012, 02:01 PM | #585 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
@aliabbasjp: sorry, the developer team is small and I've been literally buried in work the last weeks (and even this weekend). I know that others from the team are also a bit on/off the job as we all do this in our spare time, which might sometimes be a bit scarce. That said: Hopefully soon!
@tigran: thank you, will review ASAP. @Dr.Seltsam: that 2011 stuff is quite outdated. You can ignore it. Then there are different possible ways to install it. In all cases, the folders from the ZIP end up in the document partition of the kindle (in the root of the exported volume, _not_ the "documents" folder beneath it). I'm not so sure about that guide in the wiki. The "customupdates" approach only works with launchpad. Installing with kite is unfortunately still a bit broken, see https://www.mobileread.com/forums/sho...&postcount=577 |
|
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 | 1268 | 02-27-2024 11:49 AM |
Librerator - multi-format e-reader, fork of KPV | Kai771 | Kindle Developer's Corner | 432 | 10-06-2017 12:20 PM |
Yet another PDF viewer (muPDF based) | melihron | PocketBook | 66 | 09-02-2014 03:03 AM |
Text-based PDF to Mobi, etc./Kindle 3 | kidblue | Calibre | 41 | 07-20-2012 03:19 PM |
muPDF on Kindle DX!! | DairyKnight | Kindle Developer's Corner | 8 | 03-21-2010 03:39 AM |