Thread: JBPatch
View Single Post
Old 05-26-2012, 04:12 PM   #123
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
Margins patch

Here's another patch, inspired by popular demand.

This patch allows to change the margins around the book content. For the simplest use case, you can now influence what the Kindle understands as "fewest/fewer/default" words per line. You can also hide the progress bar, if you are so inclined. Finally, this patch also affects the PDF display, so in principle, PDFs can be made to display on the full screen.

I attached a few "before/after" screenshots (see below). The result is largely depending on your individual settings, though.

INSTALLATION: copy the attached file "ixtab_margins-5.1.0.zip" directly to your Kindle's opt/jbpatch folder (do NOT unzip the file!), and add the corresponding entry to CONFIG.TXT.

CONFIGURATION:
With the default configuration, this patch does not change anything at all. To change the behavior, you have to modify the file "ixtab-patch-margins.txt" inside the zipped file. After editing, make sure that you re-zip the patch correctly, then restart your Kindle.

SCREENSHOTS

Before:
Click image for larger version

Name:	standard-doc.gif
Views:	2008
Size:	52.2 KB
ID:	86922 Click image for larger version

Name:	standard-pdf-a4.gif
Views:	1400
Size:	5.4 KB
ID:	86923 Click image for larger version

Name:	standard-pdf-letter.gif
Views:	1291
Size:	5.2 KB
ID:	86924

After:
Click image for larger version

Name:	patched-doc.gif
Views:	2043
Size:	58.5 KB
ID:	86925 Click image for larger version

Name:	patched-pdf-a4.gif
Views:	1511
Size:	5.1 KB
ID:	86926 Click image for larger version

Name:	patched-pdf-letter.gif
Views:	1210
Size:	4.3 KB
ID:	86927

The PDF files are mostly for verification: The central box should always be square, and the borders are a visual indicator of the actual document dimensions.


Update: I attached the actual pdfs, and the code to produce them - maybe they are useful.
Attached Files
File Type: zip sample-pdfs.zip (8.5 KB, 1276 views)

Last edited by ixtab; 07-25-2012 at 08:25 PM.
ixtab is offline   Reply With Quote