View Single Post
Old 03-05-2012, 04:56 PM   #119
dpavlin
Connoisseur
dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.dpavlin can really shake a tail feather.
 
dpavlin's Avatar
 
Posts: 61
Karma: 116628
Join Date: May 2011
Location: Zagreb, Croatia
Device: Kindle K3G and DXG
Quote:
Originally Posted by vmonkey View Post
I also find two-column mode very, very useful. But also have some feedback:
1) When entered two-column mode, is there any way to quit it directly? What I mean it would be great to quit it by pressing f again.
You can just press a,s or d (with or without shift) to go into any other zoom mode. Is that good enough?

Quote:
Originally Posted by vmonkey View Post
2) Second thing - when navigating in two-column mode and going to next physical page (like shown in the above mentioned video) it is sometimes needed to press f again to fit page to the screen. Could this be done automatically? -> and therefore f could be used to quit two column mode.
This is needed only if first page on which you pressed f has vastly different layout than next one(s). In example video, it's 2nd page, but it might be some other (try to read FreeBSD mag for example ;-)

I have also noticed that bounding boxes on which this feature is based are often wrong if page includes bitmap graphics, so it makes sense not to re-zoom page on every page change because that really kills flow of reading when you stumble upon page which zooms differently. So, I prefer manual interaction as it is now.

You can, however, change your local copy by inserting following line:

Code:
self:setglobalzoommode(self.ZOOM_FIT_TO_CONTENT_HALF_WIDTH)
in unireader.lua (or pdfreader.lua, depending on which version are you using) after

Code:
self:goto(self.pageno + 1)
below KEY_FW_RIGHT. Below is diff against current master:

Code:
diff --git a/unireader.lua b/unireader.lua
index bda0a93..fe4915a 100644
--- a/unireader.lua
+++ b/unireader.lua
@@ -613,6 +613,7 @@ function UniReader:inputloop()
                                                        self.offset_x = self.pan_x
                                                        self.offset_y = self.pan_y
                                                        self:goto(self.pageno + 1)
+                                                       self:setglobalzoommode(self.ZOOM_FIT_TO_CONTENT_HALF_WIDTH)
                                                else
                                                        self.offset_y = self.pan_y
                                                end
dpavlin is offline   Reply With Quote