View Single Post
Old 08-14-2012, 07:17 PM   #36
spamcop
Junior Member
spamcop began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2012
Device: kindle touch
how to change margins

OK,

thanks for that info about /var/local/java/prefs/reader.pref file.

If you want to change margins from command line, just change those \x028 bytes with something else using command tr, for example (assuming you are root):

mkdir backup
cp /var/local/java/prefs/reader.pref backup
cat /tmp/root/backup/reader.pref |LC_ALL=C LANG='' tr '\x28' '\x14' > /var/local/java/prefs/reader.pref

You should everything check using (before and after change)
cat /var/local/java/prefs/reader.pref|hexdump -C

Oh, I tried also other utilities (sed, awk), but only tr works on busybox on hexnumbers.
spamcop is offline   Reply With Quote