![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
continuous mode and column view in ipdf
I propose a new way to implement column view. Here it goes...
Continuous mode is flawed In its current implementation, it moves the view port (the screen) downwards (or upwards if prevpage) by one screen height, and often creates a view of 2 pages next to each other vertically, and hence the illusion of "continuous". But this is useless because 1. The top/bottom page margin takes up a big chunk of the screen; 2. Putting 2 pages vertically makes little sense. So a modified continuous mode is to always stay within a single page until it reaches the border. In other words, it's like fitting multiple screens onto a page when page height is greater than screen height, where muliple screens may overlap. Column view is a natural extension So continuous mode is about fitting screens vertically on a page, and column view is about fitting screens first vertically and then horizontally. So a user can easily do column views by first zooming into one part of the column and then switching to continuous mode. I believe this could be the simplest modification to implement column view with no extra button or icon added. My earlier 2-column patch only works with 2 columns, and WPD's column patch only works with text PDFs but not image PDFs, and poppler has to be patched too. Download I'm attaching the modified ipdf binary (to install, just copy it to override the system /usr/bin/ipdf binary, back up first if you are worried), as well as the patch. Continuous mode now works differently: 1. it will skip if the next or previous screen to the edge of the page is less than 1/3 screen. (This is mostly to skip margin, but since it can't tell whether it's really margin or text, so you may need to adjust the position by panning. It rarely happens though) 2. if you start from a page top position, it'll always start from the same position when it comes to the next or previous page; 3. to do column view, switch to continuous mode, zoom to the top left column, and now flip the bar to follow columns. Sometimes you'll also need to pan to adjust position to suit your need. Last edited by alanine; 01-28-2008 at 07:28 AM. Reason: fix the download |
![]() |
![]() |
![]() |
#2 | |
Junior Member
![]() ![]() ![]() Posts: 7
Karma: 221
Join Date: Oct 2007
Device: iliad/nokia9500
|
Quote:
See http://forum.irexnet.com/viewtopic.php?t=1707 for more info + the link to my patch. When time permits I would like to extend my current column patch in the following way:
![]() (posted publicly to hopefully draw more ppl in to either code or comment) Last edited by wpd; 01-27-2008 at 08:52 AM. Reason: grokked alanine's remark about continuous mode after I posted the first time round. |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() ![]() ![]() ![]() Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
Quote:
I honestly believe your column auto-detection patch is a better approach technically, but I'm worried that from a practical point of view, simpler operations brings better user experience. Gesture is good stuff, but I'm not a big fan of gestures without visual cue. |
|
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 43
Karma: 10
Join Date: Jun 2007
Device: Iliad
|
Maybe will be useful to read comics if first horizontally and then vertically(XY mode?). I don't know if that is posible.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
![]() Posts: 4
Karma: 10
Join Date: Feb 2008
Device: Iliad
|
How do i install this (i'm new to this?)
[QUOTE=alanine;143475]Download
I'm attaching the modified ipdf binary (to install, just copy it to override the system /usr/bin/ipdf binary, back up first if you are worried), as well as the patch. [QUOTE] How do i install this binary? When connecting the iliad to my computer i do not see the directory /usr/bin/ipdf binary ![]() |
![]() |
![]() |
Advert | |
|
![]() |
#7 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2008
Device: iLiad v.2
|
A few glitches
Hi Alanine,
I'm very happy with your effort to introduce column view in the iLiad. I used daudi's bundle to install your ipdf-version, and played around with it for a while, but I experienced some glitches: - After selecting continuous mode, and zooming in on the left column, the flip bar takes me suddenly from page 1 to page 3. - Sometimes a part of the page is skipped. When going back and forth the reader "picks" up the correct sequence. - Sometimes the flip bar doesn't react. (Or am I impatient?) I don't know what the cause is. Are there perhaps any restrictions on the way to zoom in? Apart from this, I find you solution very elegant. It is intuitive, and should work with pdf, and images as well. Great work! Regards, Lodewijk |
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2008
Device: iLiad v.2
|
An update to my previous post:
In normal full page mode (non-continuous) I also sometimes experience problems with this version of ipdf. When flipping the page, the reader moves 5 pages ahead, as if a long click has been given. It does not seem to occur on the same page (number) each time. Is this a known problem? |
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() ![]() ![]() ![]() Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
Iowie, thanks for the feedback and I'm glad you find it useful! Indeed I've noticed the short flip mistakenly treated as long flip problem too, but not very often so I thought maybe it was a mistake of my hand. But since you are reporting this problem too, I'll try to see if it's really a bug.
As for the skipping over problem, I intend the algorithm to skip margins only. For example when you are already reading a page portion just above the bottom margin and hit the flipbar, it should go to the next page (or column) instead of showing the margin. But there is no way to know the width or height of the margin for a PDF file, so I arbitarily set a rule it will skip if the next or previous screen to the edge of the page is less than 1/3 screen. You may need to re-adjust when you find it skipped real text that shouldn't be skipped. |
![]() |
![]() |
![]() |
#10 | ||
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2008
Device: iLiad v.2
|
Alanine:
Quote:
- I've noticed the described behaviour with the normal page mode as well. Have you changed any code that is used in this normal mode? - In the normal page node, I've noticed that flipping forward from say page n, it brings me to n+5. Going back and trying again (with a short flip), the same happens. I have also waited for a while, but again it goes to n+5. If I exit the document, go back to page n, flip the page, it goes to n+1! Very strange. - It seems that this behaviour occurs more frequently if I flip pages fast. If I wait a while on each page it seems to occur less frequent. Also very weird. Makes me think I should go to bed more early! Anyway, I want to complement you again, because reading scientific articles was almost impossible. Quote:
|
||
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() ![]() ![]() ![]() Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
lowie:
Since the patch didn't change anything other than in the continuous viewing mode, I believe the problem is very likely not related to this patch. Maybe I'll try to use the original ipdf binary to see if the problem exists there. As for the margin problem, actually if there is not enough space, it's probably a margin and should be skipped. Current threshold is 1/3 of the screen to detect this. If its not skipped, the display is not aligned to the edge of the page, but instead it follows previous display area. Indeed my first solution was to align to the edge, but then I often found myself losing track of the text I was reading because the new content doesn't start from screen top. Ideally one should clip out old content (or gray them) and center new content that is displayed. But I didn't see a quick way to do the clipping. (maybe I'll figure it out if trying harder :-) |
![]() |
![]() |
![]() |
#12 | |||
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2008
Device: iLiad v.2
|
Alanine:
Quote:
Quote:
Quote:
By the way, how could I create and compile my own patch? How do you do that? Is there a way to test a patch before installing the new binary on the iLiad? Thanks in advance! |
|||
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() ![]() ![]() ![]() Posts: 54
Karma: 399
Join Date: Sep 2007
Device: iLiad v2
|
lowie:
I can confirm that the flipping problem is a hardware issue, as using the original ipdf binary from iRex still exhibit this problem. My flipbar actually got worse, now it won't even respond to forward flips sometimes! So I've updated my patch to help people who have similar problems with their flipbars: 1. both long and short flips only flip a single page now; 2. up and down arrows are now mapped to long flips. Further more, I've also updated the continuous mode to display and center only new contents from the same page. It's only for vertical viewing, and the margin problem is also adjusted. Hopefully it'll work better now. You can give it a try. I'm only attaching the new binary here as I've mistakenly overwritten the source code by an old copy and consequently lost the new modifications ![]() PS: To compile from source on your own linux PC you need to setup the toolchain for cross-compilation. I won't go into the details as there are already documentations that can be found on iRex site as well as this forum. Last edited by alanine; 05-19-2008 at 07:25 PM. |
![]() |
![]() |
![]() |
#14 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2008
Device: iLiad v.2
|
Hi Alanine,
Sorry for the very late reply... Thanks for the ipdf update. I've tested it, and it works like a charm! Sometimes I have to shift the page a little, but that is very intuitive. It is a bummer that the flipping problem appears to be hardware related. Has this been reported back to Irex? Regards, Lodewijk |
![]() |
![]() |
![]() |
#15 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2008
Device: iLiad v.2
|
page offset patch
Hi Alanine,
I managed to compile ipdf myself and made an adjustment for educational purposes. I have implemented a feature that is (already) available when viewing html files: the page offset. It shows you how far you are on the current page in the pdf file. I find it useful when using your column mode: now it is easy to see where on the page you are. The offset is a percentage: the ratio of the viewed page area and the total page area. I have included two patch files: one from the stock ipdf and one from your ipdf version. It only works in continuous mode by the way. I also include the binary. Your other changes are not included, as I do not have a patch for your later adjustments. Do you perhaps remember what you have adjusted? Regards, Lodewijk PS: I only implemented this for Portrait view mode, if it works (and it is useful) it is trivial to implement it for Landscape view as well. Last edited by lowie; 09-03-2008 at 02:47 PM. Reason: added postscript |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks Kindle 3 two-column view? | alexp2010 | Amazon Kindle | 2 | 09-24-2010 09:40 AM |
DR800 I ENABLED CONTINUOUS PAGE MODE ON DR 800 | repods | iRex | 103 | 08-03-2010 12:06 PM |
DR800 "page view continuous" mode disabled | CoolDragon | iRex | 50 | 06-13-2010 04:22 AM |
Column view and fullscreen iPDF | boolda | iRex | 1 | 05-16-2008 05:47 PM |
iLiad iRex Fullscreen mode iPDF | realityloop | iRex Developer's Corner | 4 | 07-12-2007 08:52 AM |