Ah oke, thanks! Will use the upstream version for now, then.
Search Criteria
Package Details: mupdf-patched 0.9-1
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2012-06-26)
| Package Base: | mupdf-patched |
|---|---|
| Description: | mupdf with sane scrolling hack, and a DPI detection hack. |
| Upstream URL: | http://mupdf.com |
| Category: | office |
| Licenses: | |
| Submitter: | karabaja4 |
| Maintainer: | karabaja4 |
| Last Packager: | None |
| Votes: | 6 |
| First Submitted: | 2011-09-11 23:09 |
| Last Updated: | 2012-03-29 17:22 |
Latest Comments
Comment by Unia
Comment by karabaja4
Scrolling hack modifies scroll behaviour so you can scroll through slides with mouse scroll, also changes some small isues, like assuring that the next slide is always viewed from the top. DPI hack detects user DPI and sets the default DPI of the pdfs to that value.
Basically these patches change behaviours I don't like in upstream mupdf.
Comment by Unia
Can you tell me what exactly these patches do?
Comment by karabaja4
Thanks :) I'll update this package when mupdf git hits stable.
Anonymous comment
@karabaja4
Was posting some other stuff on the mupdf-git version page and thought I would give you a heads-up (trying to be nice here :) ). The git version changed a lot of parameters in pdfapp.c so the old scroll_hack.patch won't work any more. I apply that patch to mupdf-git and had to figure out how to fix it. I'm not a coder but I managed to sort the pieces and this seems to be working for me. You can take a look at it for when the new version of mupdf is released. As mentioned this is a patch from a snapshot version and I'm not a programmer so,
A) It might change before the final is released. This applies cleanly to the current git version as of right now.
B) It might need some more tweaking since I'm not a programmer.
As stated it does seem to work though. Hopefully this will save you a bit of a headache that it caused me.
Posting the patch here since it's small and I can't remember my pastebin password! Sorry about that!!
diff -aur mupdf/apps/pdfapp.c mupdf-new/apps/pdfapp.c
--- mupdf/apps/pdfapp.c 2012-03-22 17:37:30.268541849 -0400
+++ mupdf-new/apps/pdfapp.c 2012-03-23 01:55:59.631156908 -0400
@@ -774,11 +774,15 @@
break;
case 'j':
+ if (app->pany + fz_pixmap_height(app->ctx, app->image) <= app->winh)
+ goto pagedown;
app->pany -= fz_pixmap_height(app->ctx, app->image) / 10;
pdfapp_showpage(app, 0, 0, 1);
break;
case 'k':
+ if (app->pany >= 0)
+ goto pageup;
app->pany += fz_pixmap_height(app->ctx, app->image) / 10;
pdfapp_showpage(app, 0, 0, 1);
break;
@@ -842,6 +846,7 @@
*/
case ',':
+ pageup:
panto = PAN_TO_BOTTOM;
if (app->numberlen > 0)
app->pageno -= atoi(app->number);
@@ -850,6 +855,7 @@
break;
case '.':
+ pagedown:
panto = PAN_TO_TOP;
if (app->numberlen > 0)
app->pageno += atoi(app->number);
@@ -1039,6 +1045,11 @@
int isx = (modifiers & (1<<0));
int xstep = isx ? 20 * dir : 0;
int ystep = !isx ? 20 * dir : 0;
+ if (!isx && dir < 0 && app->pany + fz_pixmap_height(app->ctx, app->image) <= app->winh)
+ pdfapp_onkey(app, 'j');
+ else if (!isx && dir > 0 && app->pany >= 0)
+ pdfapp_onkey(app, 'k');
+ else
pdfapp_panview(app, app->panx + xstep, app->pany + ystep);
}
}
Comment by karabaja4
I don't think so. But, they're not rocket science, so if upstream wanted to include changed behavior they would have.
Anonymous comment
Are those patches posted upstream?