Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2020, 05:49 PM   #1
Ico
Enthusiast
Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'
 
Posts: 27
Karma: 10000
Join Date: Jan 2019
Device: Kindle PW4
Default margins on the PW4

Hi,

I tried searching for the answer myself, but could not find it even browsing the Mobileread Wiki.

I really like Koreader and especially the user self controlled contrast function on EPUBs. I thought extra real-estate without the margins would benefit me, but sadly it does not since I'm used to PW default margins it seems. I tried setting them up just like a Kindle in Koreader but I only have one so I can't really compare side to side.
Are there official values of the default margins posted somewhere.

Thank You.
Ico is offline   Reply With Quote
Old 08-09-2020, 06:47 PM   #2
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,712
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
You've been ruined by some pretty poor forced choices by Amazon.
JSWolf is offline   Reply With Quote
Advert
Old 08-10-2020, 06:20 AM   #3
Ico
Enthusiast
Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'Ico knows the difference between 'who' and 'whom'
 
Posts: 27
Karma: 10000
Join Date: Jan 2019
Device: Kindle PW4
Quote:
Originally Posted by JSWolf View Post
You've been ruined by some pretty poor forced choices by Amazon.
True, why use the potentially largest R&D budget on the planet when you can incrementally stagnate. But for some reason I am moving fastest on those margins with highest comprehension and right now I am not reading for pleasure. I used to read on largest margins with highest comprehension but that felt like work all the time. Kindle default margins without hyphenation are best for me, kfx formatting is nice eg ligatures and kerning but I can't concentrate on a slab of pure justification with hyphenation. Ragged left is okay but mostly it's ragged left justification.
What I would like is kerning ligatures no hyphenation minimal justification and koreader word expansion values I could save to a text file as a style and apply that style in koreader which I think is now possible.
I know it can be done and that there are default kindle values specified somewhere since I am now JB but I would rather not mess sth up being given root.
I of course don't expect anyone to do the work for me just guide me to the information if it is public and if not then advise me where are the files located.
I would have posted in koreader sub but I don't know how kindle demographic is there.
Sorry for the long post, don't know how to make it shorter.

Last edited by Ico; 08-10-2020 at 06:23 AM.
Ico is offline   Reply With Quote
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
Old 08-11-2020, 09:36 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,712
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Ico View Post
True, why use the potentially largest R&D budget on the planet when you can incrementally stagnate. But for some reason I am moving fastest on those margins with highest comprehension and right now I am not reading for pleasure. I used to read on largest margins with highest comprehension but that felt like work all the time. Kindle default margins without hyphenation are best for me, kfx formatting is nice eg ligatures and kerning but I can't concentrate on a slab of pure justification with hyphenation. Ragged left is okay but mostly it's ragged left justification.
What I would like is kerning ligatures no hyphenation minimal justification and koreader word expansion values I could save to a text file as a style and apply that style in koreader which I think is now possible.
I know it can be done and that there are default kindle values specified somewhere since I am now JB but I would rather not mess sth up being given root.
I of course don't expect anyone to do the work for me just guide me to the information if it is public and if not then advise me where are the files located.
I would have posted in koreader sub but I don't know how kindle demographic is there.
Sorry for the long post, don't know how to make it shorter.
How are Kindle margins good for you? What's the different between smaller margins and Kindle margins other then wasted screen space? I know some like some margin between the text and the bezel, but I cannot see why the Kindle has margins as wide as it does.

You say you don't like hyphens, but do you like gaps more then you don't like hyphens?

KFX is the only way to get kerning and ligatures. KF8 does not do either. But with KFX, I don't know if you can turn off hyphenation.

On a 300DPI 6" screen, I think the Kindle L/R margins may be 50px. If it's not 50px, it's close as it's more then 45px and it won't be more then 50px.
JSWolf is offline   Reply With Quote
Advert
Old 08-14-2020, 08:32 AM   #6
trcm
Connoisseur
trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!trcm rocks like Gibraltar!
 
Posts: 96
Karma: 100000
Join Date: Dec 2018
Location: London
Device: Kobo Libra H2O
Quote:
Originally Posted by Ico View Post
Hi,
Are there official values of the default margins posted somewhere.
Presented from my notes without explanation....

ReaderSDK-impl.jar - MOBI / KF8 / PDF / (KFX?) format
5747 : font.size.mapping (7.81, 8.49, 9.17, 10.53, 11.545, 12.56, 14.03, 15.5, 19.0, 22.0, 25.0, 29.2)
5817 : font.wordsperline.margin.list (50.94, 33.96, 16.98)
5846 : font.wordsperline.margin.list.pdf (16.9811, 11.8868, 6.7925)
trcm is offline   Reply With Quote
Old 08-18-2020, 08:46 AM   #7
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
Is there a way to make the side margins smaller on my PW4? I'd like to have more text on the screen if possible. Also, does KOreader work on PW4?
Waylander is offline   Reply With Quote
Old 08-18-2020, 09:37 AM   #8
hius07
Wizard
hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.hius07 ought to be getting tired of karma fortunes by now.
 
Posts: 1,179
Karma: 3592925
Join Date: Sep 2014
Location: Ukraine
Device: Kindle
Quote:
Originally Posted by Waylander View Post
Also, does KOreader work on PW4?
Yes, perfectly.
hius07 is offline   Reply With Quote
Old 08-18-2020, 09:51 AM   #9
Waylander
Guru
Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.Waylander ought to be getting tired of karma fortunes by now.
 
Posts: 662
Karma: 2905052
Join Date: Oct 2013
Device: Kindle Paperwhite 5 16GB, Kindle Paperwhite 6, Kobo Clara,
Thankyou
Waylander is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Default TTL on PW4 permanenty? | OR where sysctl.conf pavel-s Kindle Developer's Corner 3 12-11-2019 02:56 AM
Changing default margins on Kindle Paperwhite Indigo121 Kindle Developer's Corner 22 05-14-2018 12:08 PM
Convert EPUB to DOCX [Change Default Margins] Lassox Conversion 3 04-12-2017 10:03 PM
Any way to set just default PDF margins? phossler Conversion 3 04-04-2017 02:17 PM
Change default margins on Kindle PW2 meloni Kindle Developer's Corner 3 05-28-2014 08:23 AM


All times are GMT -4. The time now is 01:41 AM.


MobileRead.com is a privately owned, operated and funded community.