![]() |
#61 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
|
does Kindle create a crash log?
I had my KDXG restarted while testing one of the previous versions. a bit off topic stating the obvious, the file searcher just written by dave2008 (along with the corresponding lines from mupdf to make it a stand-alone solution) represents a file search system hack, which can be improved 1) by showing the complete name (just like kindle does, if the file name is long) -> also relevant for mupdf 2) by associating files with certain applications (e.g. to open a pdf file with the mupdf or the native pdf viewer) 3) by enabling searching in all files through indexing (in case of pdf files, it may also be relevant for mupdf) |
![]() |
![]() |
![]() |
#62 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
Do you remember which version? Can you reproduce the bug? Well, I do not know where kindle puts the crash log :-( 1) um... What do you mean by complete name? Currently it shows the complete file name. But there is no code to handle long names, so long names are simply displayed out of the display. Do you mean truncate long file names and append with dots? 2) That's a good suggestion! The kindlepdfviewer can then support all the formats the native system supports. But two problems must be solved before implement this feature: 1. When kindlepdfviewer runs, it take full control of the device, i.e. the eink display and key press events. So if we want to use the native viewer, we have to exit kindlepdfviewer first to release the control. 2. I know little about the native system as well as JAVA, thus I have no idea of how to call the native viewer. Maybe we can solve the first problem by temporally release the eink display and input device in kindlepdfviewer before calling the native viewer. But I haven't tested this approach yet, not sure it will work or not. For the second problem, I have no idea. :-( Maybe more experienced hackers know how to achieve it. 3) This can be done, but I need to get familiar with mupdf's API first. I just started reading their source code yesterday. ;-P |
|
![]() |
![]() |
Advert | |
|
![]() |
#63 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
I added a table of content menu to the reader, so now we can jump between chapters by pressing "t" key when viewing pdfs.
download link for the new version: https://github.com/hwhw/kindlepdfviewer/wiki/Download As always, bugs reports are welcome. :-) Last edited by dave2008; 03-03-2012 at 04:25 AM. Reason: update download link |
![]() |
![]() |
![]() |
#64 | |
Member
![]() Posts: 15
Karma: 12
Join Date: Feb 2012
Device: Kindle 3
|
Quote:
I have maybe one little thing - when I exit the kindlepdfviewer the home screen of my Kindle is not visible (even though I can browse it) and there is still kpdfviewer, not navigable though - that means that after quiting kpdfviewer it would be great to implement "refresh page" (or I am not sure how to call it properly - I mean when the screen goes black and everything on the screen is redrawn again). |
|
![]() |
![]() |
![]() |
#65 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 61
Karma: 116628
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
|
Page rotation
Quote:
Rotation code is half-baked: you shouldn't really be able to rotate page out of view (as it is right now). We would need to calculate new bounding boxes for page which takes in account rotation. Unfortunately, I don't have DXG right now (I asked friend to make me serial port so I can update kernel) so I can't really test rotation sensor in DXG. |
|
![]() |
![]() |
Advert | |
|
![]() |
#66 | |||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
|
Quote:
I was just moving "the cursor" around in the mupdf's file manager and then all of a sudden the Kindle restarted itself. Interestingly, nothing happened to the mupdf. I have not been able to reproduce the bug with the latest version ('83fa148'). Quote:
In the mupdf, the long names are cut off. So are they in the kindle bookshelf. But if you move the cursor to the article, the file's name is shown on two lines. If the name is still too long to fit on two lines, then some part of the file name is replaced by dots, but the last 8 characters are still shown, which I consider to be very important. Because sometimes the name is the same but the year could be different (as papers may have several revisions) Quote:
I just made some suggestions, how a work flow could be improved. Thanks for the new version ![]() |
|||
![]() |
![]() |
![]() |
#67 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
|
Quote:
Everything works well, not a glitch. ![]() two suggestions/wishes on how to improve reading experience 1) it would be great if the mupdf would get "memory". Specifically related to the table of contents. If I'm say on page 10, I call the table of contents up, go to another chapter, read a couple of pages. By pressing the backspace, I should return to page 10 (on which I called the TOC up). Likewise, if a function to go to a certain page (by number or bookmark) would be implemented later, pressing the backspace should bring you to the page on which this function has been called. 2) I find it rather appealing how the shortcut system is well thought out in Doukan. Every line both in the file manager and in the TOC overview is 'numbered' by letters, so that pressing a certain letter you can directly start a file or go to some chapter from the TOC without the need to first select that line by joystick. Obviously, it is of great value for non-touch kindles. Last edited by eLiNK; 02-22-2012 at 05:40 AM. |
|
![]() |
![]() |
![]() |
#68 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
Just wanted to add a short note that I'm soooo happy you guys are working on this :-) I'm somewhat buried in other work, and it's a great pleasure to see the "release early" paradigm work out really great in my "absence". You guys rock :-)
|
![]() |
![]() |
![]() |
#69 | |||||||||
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
Quote:
Quote:
Code:
lipc-send-event -r 3 com.lab126.hal orientationRight & Quote:
Quote:
Quote:
Quote:
Quote:
![]() OK, this feature is not difficult to add. Now we have a long TODO list: https://github.com/houqp/kindlepdfviewer/issues Quote:
![]() |
|||||||||
![]() |
![]() |
![]() |
#70 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
|
|
![]() |
![]() |
![]() |
#71 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 344
Karma: 6494
Join Date: Jan 2008
Device: PRS-505, KDXG
|
Quote:
![]() You're welcome. That's the very least I could give you back for all your efforts. Keep on ![]() Last edited by eLiNK; 02-23-2012 at 02:51 AM. |
|
![]() |
![]() |
![]() |
#72 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Quote:
I have fix this in the new version. This version includes the fix for screen refresh after exit. Also the font configuration is unified among all menus and configuration is now automatically saved after exit. download link: https://github.com/hwhw/kindlepdfviewer/wiki/Download Now I can concentrate on the "jump stack" feature. :-) Last edited by dave2008; 03-03-2012 at 04:26 AM. Reason: update links |
|
![]() |
![]() |
![]() |
#73 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 251
Karma: 183457
Join Date: Jan 2012
Device: k3G, KDXG, AuraHD
|
Hey guys,
When I am working on the jump stack feature, I found it not so easy to save the stack into book specific configuration files with current settings module. I think the "jump stack" information is best represented as a nested table, but the setting module only support (key, value) bindings. Thus I cannot find an elegant way to save nested table with the settings module. (I only came up with a some how dirty hack) So I tried the table Serialization approach and did a benchmark between it and the settings module, which uses sqlite3. As first, I thought since the settings module uses sqlite3, it should be faster. But the result turned out that it is not true: Code:
$ ./benchmark_pickle.lua git:master [cb982f5] modified untracked Time for sqlite3 approach: 2.05 Time for pickle approach: 0.19 https://github.com/houqp/kindlepdfvi...ark_pickle.lua So I suggest using Serialization approach in the settings module instead of sqlite3 for four reasons: 1. Serialization approach is faster, as my test shows 2. Serialization approach generates human readable text stream instead of binary data, which is easier to maintain and modify by humans if needed. 3. Serialization approach make the code cleaner, you can dump the whole table with one function call. 4. For small data, Serialization approach dumps smaller setting file (395 bytes vs 3.0K in my test case). Haven't tested with large data tough. I only tested the pickle module, but there are many other implementations which might be even faster: http://lua-users.org/wiki/TableSerialization So, any suggestions or feedbacks for this? Last edited by dave2008; 02-25-2012 at 09:53 PM. |
![]() |
![]() |
![]() |
#74 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
O.T: Lua
The longer you use Lua, the more you will like it (a rare thing these days).
Written by a: Lua lover |
![]() |
![]() |
![]() |
#75 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Some notes (and magic numbers) on how to do that: http://hg.minimodding.com/repos/aufs/auroot.hg/ Also a "known working" copy of luaposix as used in Alpine Linux: http://hg.minimodding.com/repos/lua/luaposix.hg/ |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1289 | 04-07-2025 10:18 AM |
Librerator - multi-format e-reader, fork of KPV | Kai771 | Kindle Developer's Corner | 433 | 05-25-2024 03:34 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 |