View Single Post
Old 03-22-2015, 09:49 PM   #299
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 3,055
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Okay, I've uploaded a new version with changes suggested by recent posts:

1) I've added support for 7z archives (*.7z or *.cb7). For this to work, you have to go to http://www3.telus.net/rkomar/pbimageviewer/ and download the proper 7z.so-*.zip file, unzip it, and copy the 7z.so file to /system/bin/ on the device. I didn't upload those files to MobileRead because they are fairly large. If you don't want to view 7z archives, then you do not need to install the 7z.so file; the application will still work for CBZ and CBR files without it. The 7z.so library is also used for TAR files, so you should install it if you view those types of archives. The following lines need to be added to extensions.cfg:

Code:
7z:@RAR_file:1:pbimageviewer.app:ICON_JPG
cb7:@RAR_file:1:pbimageviewer.app:ICON_JPG
The handling of 7z files is _very_ slow, so I don't recommend using it. It would be better to convert 7z files to zip files instead, as those are handled much more quickly. The handling of TAR files (CBT) is very fast, though, so it may be worth installing for that.

The 7z.so file only needs to be installed once. I don't think it will need to be updated after that.

2) It's now possible to use pbimageviewer.app as the viewer for the Photo application. You need to add the various image types to the extensions.cfg file for this to work:

Code:
jpg:@JPEG_image:2:pbimageviewer.app,picviewer.app:ICON_JPG
jpeg:@JPEG_image:2:pbimageviewer.app,picviewer.app:ICON_JPG
png:@PNG_image:2:pbimageviewer.app,picviewer.app:ICON_PNG
bmp:@BMP_image:2:pbimageviewer.app,picviewer.app:ICON_BMP
tif:@TIFF_image:2:pbimageviewer.app,picviewer.app:ICON_TIFF
tiff:@TIFF_image:2:pbimageviewer.app,picviewer.app:ICON_TIFF
3) I got the multi-touch events working on the latest devices (firmware 5.4 and above). It should now be possible to zoom and change screen orientation with two-fingered gestures on those devices.

4) Long presses on the Left/Right buttons (or Prev/Next on devices without a D-pad) now sets the reading direction rather than just the panel direction. The reading direction is used to sort panels, and also to change the start position and step direction of images.

5) The two-fingered tap gesture now "unzooms" the image (rather than bringing up the second menu). When zooming by pinching, it's difficult to go back to the original zoom by pinching again. So, the two-fingered tap is used for that. The second menu can still be got by tapping at the upper right of the screen, or via the main menu.

I haven't had the Help instruction translations updated yet. I'll release a new version when I've got those from the various translators.
rkomar is offline   Reply With Quote