View Single Post
Old 08-11-2020, 09:21 AM   #4
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
IIRC, margins were stored in a device-independent manner, which meant the scale was DPI-based, and I never actually groked the formula.

You can look at the (old, old) margin tweaking hack for Kindle, and then dig into the highly obfuscated bytecode to see if you can fish something useful out of that.

Or, you can simply take a snapshot, then pull out the ruler tool in any image editing software, and you'll have a pixel value for your device, which you can then translate to a KOReader value (the scaling formula: https://github.com/koreader/koreader....lua#L278-L300)

(The margins recap popup also translates that to px for you).
NiLuJe is offline   Reply With Quote