09-03-2012, 03:14 PM | #616 |
Member
Posts: 16
Karma: 10
Join Date: Sep 2012
Device: Kindle 4 NT
|
|
09-03-2012, 03:15 PM | #617 |
Member
Posts: 16
Karma: 10
Join Date: Sep 2012
Device: Kindle 4 NT
|
|
09-08-2012, 07:39 PM | #618 |
Just a Noob
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
|
Hi,
I've been using KindlePDFViewr 2012.05 202b6fc (latest official release) for a couple of weeks now, and I'm really impressed. Thanks a lot to everyone who worked on this project. However, there were a few things that I didn't like: 1. I've got a Kindle 3 wifi, and when reading pdfs I almost always use Fit to Content Width, and never Fit to Page Width because the screen is too small. Therefore, I wanted key bindings for Zoom to Fit to Content to be without Shift, and Zoom to Fit to Page to be with Shift - making frequently used features more accessible. 2. I didn't like dimming of the overlaping content when panning. I understand that it's there to help you find next line to read, but I still didn't like it. 3. When reading pdfs in Fit to Content Width mode, a page usually takes 2 screens to display. 1st screen is fully filled with content of the page, with top of the page lined up with the top of the screen, and when you press PG_FW, on the 2nd screen you get only the part of the page that wasn't shown on 1st screen and the rest is gray. I wanted 2nd screen to be also fully filled with the content of the page, with bottom of the page lined up with the bottom of the screen. This way of displaying pages is especially useful for pages with graphics and pictures. So, here are my hacks for these "problems". There are probably more elegant solutions, but these work for me. I doubt that any of it will end up in one of the next releases because they're all rather trivial, which means that developers most likely prefered it the way it was released, but I'm publishing them in case someone finds them useful. All of the hacks require editing of UniReader.lua file. 1. Changing key bindings for Zoom to Fit to Content etc. -------------------------------------------------------- Spoiler:
2. Removing dimming of overlapping content ------------------------------------------ Spoiler:
3. Always fill screen with content of the page ---------------------------------------------- Spoiler:
I attached unireader.lua file with all above stated changes (along with some comments) in case someone needs it. Just unpack it and copy it over unireader.lua on your Kindle. |
09-08-2012, 07:47 PM | #619 |
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
|
Kai771,
Thank you, but the current development version has a separate menu for selecting zoom modes, so those key bindings are no longer relevant (and may even disappear I have added multi-level hierarchical Table of Contents support (i.e. expandable/collapsable like in Adobe Acrobat Reader) just now. I will probably build a binary distribution tomorrow which everyone can try. It will be available at: https://github.com/tigran123/kindlepdfviewer/downloads Update: it is now available, the file is called kindlepdfviewer-27340db.zip Last edited by tigran; 09-08-2012 at 08:27 PM. |
09-08-2012, 08:59 PM | #620 |
Just a Noob
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
|
Ah, collapsable TOC - finally! The thing I really missed. Helps tremendously when your TOC is 24 pages/screens! Thanks a lot!
On the other hand, the things I said that I disliked are still present, but fortunately my hacks still work. The new menu for zoom modes is ok (especially for possible K4 port) but it takes more keypresses - that's the whole reason I changed keybindings. I hope you don't remove them - I don't see any harm in having both - but if you do, I guess I can put them back on my kindle... or stay with this version. I'm attaching a new modified unireader.lua that contains my hacks discussed in my previous post, but modified from tigrans 27340db 2012.09.09 source and intended to work with that binary distribution, in case someone needs it. (probably unlikely, but... just in case ) Once again, collapsable TOC is AWESOME! Regards, Kai Last edited by Kai771; 09-08-2012 at 09:00 PM. Reason: oops, forgot attachment :) |
09-09-2012, 10:37 AM | #621 | |
Connoisseur
Posts: 61
Karma: 116628
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
|
Quote:
If anything, I would love to simplify keyboard shortcuts a bit, but with a goal of pressing fewer of them, not more. There is somewhat related issue about it https://github.com/hwhw/kindlepdfviewer/issues/248 and your feedback is wery welcomed. |
|
09-09-2012, 02:15 PM | #622 |
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
|
Kay771,
Unfortunately, in the version you downloaded there was a slight bug (on files with no TOC it would crash which has been fixed a couple of hours ago, so I suggest you download the latest build from: https://github.com/tigran123/kindlep.../wiki/Download As a bonus you get a new feature: now you can not only add bookmarks, but also delete them! |
09-09-2012, 04:59 PM | #623 | ||
Just a Noob
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
|
Quote:
Quote:
|
||
09-09-2012, 05:02 PM | #624 | ||
Just a Noob
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
|
Quote:
Quote:
|
||
09-10-2012, 03:32 PM | #625 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2012
Device: dxg
|
Thanks a lot for increse/decrese panning steps, I was waiting for this function for a long time. One thing thou is needed, when page is readed by few panning steps, the next page should start from the top, not bottom. Is very helpful in landscape mode. Please fix this.
|
09-12-2012, 07:08 PM | #626 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2012
Device: dxg
|
I forgot how to change refresh rate per page count, can someone help me please. Thx.
|
09-13-2012, 11:13 AM | #627 |
Connoisseur
Posts: 56
Karma: 66
Join Date: Jan 2012
Location: Italy
Device: Kindle Keyboard, Paperwhite 4
|
Sorry, but I dont understand the dowload page, there is before a "Download as zip" (537k) and then the last "Download package" (5.139k):
https://github.com/dpavlin/kindlepdfviewer/downloads ??? |
09-13-2012, 11:34 AM | #628 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
"Download as zip" (and the "Download as tar.gz") refer to grabbing copies of the entire repository. That is part of the repository interface, not part of the project.
Phooey, ruined my nice post number - guess I need to make 17 more answers today. |
09-15-2012, 08:28 PM | #629 |
Just a Noob
Posts: 145
Karma: 162610
Join Date: Aug 2011
Device: Kindle 3
|
Hi,
I tried to compile KPDFViewer, but I was unsuccessful. I'm a total noob with this, so don't be surprised if you read something stupid. This is what I did: I have a Windows 7 64-bit box, so I made a Virtual machine using VirtualBox and installed Ubuntu 12.04 Desktop 32-bit, with default settings. (It shouldn't matter that I'm using a virtual machine, but I'm stating it for completeness sake). In my previous attempts I realised that default installation lacked some packets, so this time I added them first: Code:
$ sudo apt-get install git $ sudo apt-get install g++ $ sudo apt-get install lua5.1 $ sudo apt-get install cmake $ sudo apt-get install libsdl1.2-all $ sudo apt-get install libsdl1.2-dev $ sudo apt-get install gcc-arm-linux-gnueabi $ sudo apt-get install g++-arm-linux-gnueabi Then, I cloned the repository (I hope this is the correct terminology... I never used git before): Code:
$ git clone https://github.com/hwhw/kindlepdfviewer.git Code:
$ cd kindlepdfviewer Code:
HOST:=arm-none-linux-gnueabi Code:
HOST:=arm-linux-gnueabi Code:
$ make fetchthirdparty A - Make for ARM ----------------- Code:
$ make thirdparty Code:
[ 96%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/chmfmt.cpp.o [ 97%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/epubfmt.cpp.o [ 98%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/pdbfmt.cpp.o [100%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/wordfmt.cpp.o Linking CXX static library libcrengine.a make[3]: Leaving directory `/home/kai771/kindlepdfviewer/kpvcrlib' [100%] Built target crengine make[2]: Leaving directory `/home/kai771/kindlepdfviewer/kpvcrlib' make[1]: Leaving directory `/home/kai771/kindlepdfviewer/kpvcrlib' Code:
$ make kpdfview Code:
crtxtenc.cpp:(.text._ZN16CDoubleCharStat25CloseEv[CDoubleCharStat2::Close()]+0x10): undefined reference to `operator delete[](void*)' crtxtenc.cpp:(.text._ZN16CDoubleCharStat25CloseEv[CDoubleCharStat2::Close()]+0x20): undefined reference to `operator delete[](void*)' kpvcrlib/crengine/crengine/libcrengine.a(crtxtenc.cpp.o):(.rodata._ZTI16CDoubleCharStat2[typeinfo for CDoubleCharStat2]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' kpvcrlib/crengine/thirdparty/libpng/libpng.a(pngrtran.c.o): In function `png_build_gamma_table': pngrtran.c:(.text+0x35a4): undefined reference to `pow' pngrtran.c:(.text+0x36d8): undefined reference to `pow' pngrtran.c:(.text+0x380a): undefined reference to `pow' pngrtran.c:(.text+0x3914): undefined reference to `pow' pngrtran.c:(.text+0x39d8): undefined reference to `pow' kpvcrlib/crengine/thirdparty/libpng/libpng.a(pngrtran.c.o):pngrtran.c:(.text+0x3a70): more undefined references to `pow' follow collect2: ld returned 1 exit status make: *** [kpdfview] Error 1 B - Make for Emulation ----------------------- Unrelated to the A above, I did this for emulation: Code:
$ EMULATE_READER_W=600 EMULATE_READER_H=800 EMULATE_READER=1 make thirdparty Code:
[ 96%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/chmfmt.cpp.o [ 97%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/epubfmt.cpp.o [ 98%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/pdbfmt.cpp.o [100%] Building CXX object crengine/crengine/CMakeFiles/crengine.dir/src/wordfmt.cpp.o Linking CXX static library libcrengine.a make[3]: Leaving directory `/home/kai771/kindlepdfviewer/kpvcrlib' [100%] Built target crengine make[2]: Leaving directory `/home/kai771/kindlepdfviewer/kpvcrlib' make[1]: Leaving directory `/home/kai771/kindlepdfviewer/kpvcrlib' Code:
$ EMULATE_READER_W=600 EMULATE_READER_H=800 EMULATE_READER=1 make kpdfview Code:
kpvcrlib/crengine/crengine/libcrengine.a(crtxtenc.cpp.o):(.rodata._ZTI16CDoubleCharStat2[typeinfo for CDoubleCharStat2]+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info' kpvcrlib/crengine/crengine/libcrengine.a(crtxtenc.cpp.o):(.eh_frame+0xdb): undefined reference to `__gxx_personality_v0' kpvcrlib/crengine/thirdparty/libpng/libpng.a(pngrtran.c.o): In function `png_build_gamma_table': /home/kai771/kindlepdfviewer/kpvcrlib/crengine/thirdparty/libpng/pngrtran.c:4041: undefined reference to `pow' /home/kai771/kindlepdfviewer/kpvcrlib/crengine/thirdparty/libpng/pngrtran.c:4171: undefined reference to `pow' /home/kai771/kindlepdfviewer/kpvcrlib/crengine/thirdparty/libpng/pngrtran.c:4143: undefined reference to `pow' /home/kai771/kindlepdfviewer/kpvcrlib/crengine/thirdparty/libpng/pngrtran.c:4197: undefined reference to `pow' /home/kai771/kindlepdfviewer/kpvcrlib/crengine/thirdparty/libpng/pngrtran.c:4220: undefined reference to `pow' kpvcrlib/crengine/thirdparty/libpng/libpng.a(pngrtran.c.o):/home/kai771/kindlepdfviewer/kpvcrlib/crengine/thirdparty/libpng/pngrtran.c:4057: more undefined references to `pow' follow collect2: ld returned 1 exit status make: *** [kpdfview] Error 1 Thanks for your patience. |
09-15-2012, 09:06 PM | #630 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Apparently you need to link to the math library with -lm. I wonder why it is dependent on the power function.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Librerator - multi-format e-reader, fork of KPV | Kai771 | Kindle Developer's Corner | 433 | 05-25-2024 03:34 AM |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1268 | 02-27-2024 11:49 AM |
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 |