Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 12-20-2018, 03:03 AM   #91
Semwize
Guru
Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.Semwize ought to be getting tired of karma fortunes by now.
 
Posts: 891
Karma: 270670
Join Date: Jun 2016
Device: Kobo
Quote:
Originally Posted by GeoffR View Post
Okay thanks, so @page is working as it did before.

But then I can't explain why the `ePub fixed top/bottom margins` patch doesn't increase the top margin when you changed the value from 00px to 12px.
I put 00px in the patch 'Decrease MediumVertSpacer'
Semwize is offline   Reply With Quote
Old 12-20-2018, 05:04 AM   #92
Vwow
Member
Vwow began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2017
Device: Kobo Aura H2O
Thanks GeoffR,by put 00px in the patch 'Decrease MediumVertSpacer',my h2o v1 can make a fullscreen without title and footer。
Vwow is offline   Reply With Quote
Advert
Old 12-20-2018, 05:13 AM   #93
jcn363
absolute beginner
jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.jcn363 ought to be getting tired of karma fortunes by now.
 
jcn363's Avatar
 
Posts: 323
Karma: 1750999
Join Date: May 2017
Location: Go with the wind (43°19'17.7"N 2°00'19.4"W)
Device: ka1
`Progresive` updated (thanks to GeoffR) to get rid of the header gap.

Good luck.
Attached Thumbnails
Click image for larger version

Name:	pg.png
Views:	456
Size:	308.2 KB
ID:	168505  

Last edited by jcn363; 12-20-2018 at 05:20 AM.
jcn363 is offline   Reply With Quote
Old 12-20-2018, 09:05 AM   #94
ewphoenix123
Addict
ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'ewphoenix123 understands when you whisper 'The dog barks at midnight.'
 
Posts: 201
Karma: 42238
Join Date: Oct 2012
Device: Kobo: Glo, Aura , Aura H2O, Aura ONE, Forma, Elipsa
Thanks GeoffR, the MediumVertSpacer height works great.
ewphoenix123 is offline   Reply With Quote
Old 12-20-2018, 12:56 PM   #95
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,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@GeoffR: Yup, that works for me, too .

At a (very) quick glance, nothing else looks to have suffered from it \o/.

For people also using your adjustable top/bottom margin patch, don't forget to modify the default margin value to match the one you use in the MediumVertSpacer patch .

I'm using 0 in both cases, and am generally running with the margins slider set to 1, meaning 11px margins on the four sides on the H2O .

EDIT: Ah, just noticed one thing: while the top/bottom margins honor the slider in ePub, they do NOT in the kePub reader... (Unless I'm mistaken, they used to with the old fullScreenReading mode).

EDIT²: I *am* using the 'Custom kepub default margins' patch, if that helps...

EDIT³: While a NTH feature, I can definitely live without it. As I said, I usually stay with 11px margins, so I can just patch 'em to 11px instead of 0.

Last edited by NiLuJe; 12-20-2018 at 01:10 PM.
NiLuJe is offline   Reply With Quote
Advert
Old 12-20-2018, 03:20 PM   #96
Martina Schein
eBook-Reader-Fan
Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.Martina Schein ought to be getting tired of karma fortunes by now.
 
Martina Schein's Avatar
 
Posts: 175
Karma: 444178
Join Date: Sep 2012
Location: Saarbruecken / DE
Device: Kobo Aura H2O 2nd Edition
Thanks to everyone (@geek1011, @GeoffR, @jcn363, jackie_w, ...) who always provides us with the great patches.
You guys are absolutely awesome.

The new firmware works very well with the patches on all our readers.
  • Kobo Glo
  • Kobo GloHD
  • Kobo Aura H2O
  • Kobo Aura H2O 2nd Edition
Martina Schein is offline   Reply With Quote
Old 12-20-2018, 06:43 PM   #97
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
@GeoffR: Works well for me too.

I had a look at all the menus and things, and nowhere else seems to use it. I also had a quick look in the disassembly to confirm.

You can put it in the GitHub repo (or I can) when you think it's ready, then I'll do a release.
geek1011 is offline   Reply With Quote
Old 12-21-2018, 02:24 AM   #98
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
Quote:
Originally Posted by geek1011 View Post
You can put it in the GitHub repo (or I can) when you think it's ready, then I'll do a release.
I've added this patch on GitHub, it is exactly the same as the one I posted here but I've added a description and given it a less cryptic name:

Reduce top/bottom page spacer: (nickel.yaml)
Spoiler:
Code:
Reduce top/bottom page spacer:
  - Enabled: no
  - Description: |
      Reduces the blank space that remains at the top / bottom of the page when
      the "Show title" / "Show footer" reading settings options are unticked.
      Spacer height is halved, customise by changing the min-height + max-height
      values in the Replace: lines below. Affects both ePub and KePub books.
  - FindZlib: "* {\n  background-color: white;\n}\nQWidget[smallIconHeight=true][qApp_deviceIsTrilogy=true]"
  - ReplaceZlib:
      Offset: 0  # Touch/Mini: 24px --> 12px
      Find: "MediumVertSpacer[qApp_deviceIsTrilogy=true] {\n  min-height: 24px;\n  max-height: 24px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsTrilogy=true] {\n  min-height: 12px;\n  max-height: 12px;\n}"
  - ReplaceZlib:
      Offset: 0  # Glo/Aura/Aura2ed: 32px --> 16px
      Find: "MediumVertSpacer[qApp_deviceIsPhoenix=true] {\n  min-height: 32px;\n  max-height: 32px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsPhoenix=true] {\n  min-height: 16px;\n  max-height: 16px;\n}"
  - ReplaceZlib:
      Offset: 0  # AuraHD/H2O/GloHD/ClaraHD: 44px --> 22px
      Find: "MediumVertSpacer[qApp_deviceIsDragon=true] {\n  min-height: 44px;\n  max-height: 44px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsDragon=true] {\n  min-height: 22px;\n  max-height: 22px;\n}"
  - ReplaceZlib:
      Offset: 0  # AuraOne/Forma: 56px --> 28px
      Find: "MediumVertSpacer[qApp_deviceIsDaylight=true] {\n  min-height: 56px;\n  max-height: 56px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsDaylight=true] {\n  min-height: 28px;\n  max-height: 28px;\n}"
GeoffR is offline   Reply With Quote
Old 12-21-2018, 02:42 AM   #99
JIPG-reader
Zealot
JIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beauty
 
JIPG-reader's Avatar
 
Posts: 113
Karma: 32126
Join Date: Dec 2017
Location: Madrid (Spain)
Device: Kobo Aura H2O Ed2, Onyx Boox C67ML
Quote:
Originally Posted by davidfor View Post
This isn't the case here. All my devices, including an Aura H2O, have generally worked well in the landscape mode. But, there have been occasional problems like you describe. And once I worked out how to get back to portrait mode, I could restart the device and landscape mode worked correctly the next time I tried it.

And remember, you are using a hack to enable a function only available by turning on a developers option. You shouldn't be to surprised when there are problems.
I was not complaining, just only telling my case to advice others in case they suffer a similar situation.

I have installed not to much patches: epub fixed top/bottom margin, custom left & right margins and 24 line spacing values. I do not know if there is one that can interfere with this patch

Last edited by JIPG-reader; 12-21-2018 at 03:16 PM.
JIPG-reader is offline   Reply With Quote
Old 12-21-2018, 09:50 AM   #100
geek1011
Wizard
geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.geek1011 ought to be getting tired of karma fortunes by now.
 
Posts: 2,792
Karma: 6990707
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Quote:
Originally Posted by GeoffR View Post
I've added this patch on GitHub, it is exactly the same as the one I posted here but I've added a description and given it a less cryptic name:

Reduce top/bottom page spacer: (nickel.yaml)
Spoiler:
Code:
Reduce top/bottom page spacer:
  - Enabled: no
  - Description: |
      Reduces the blank space that remains at the top / bottom of the page when
      the "Show title" / "Show footer" reading settings options are unticked.
      Spacer height is halved, customise by changing the min-height + max-height
      values in the Replace: lines below. Affects both ePub and KePub books.
  - FindZlib: "* {\n  background-color: white;\n}\nQWidget[smallIconHeight=true][qApp_deviceIsTrilogy=true]"
  - ReplaceZlib:
      Offset: 0  # Touch/Mini: 24px --> 12px
      Find: "MediumVertSpacer[qApp_deviceIsTrilogy=true] {\n  min-height: 24px;\n  max-height: 24px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsTrilogy=true] {\n  min-height: 12px;\n  max-height: 12px;\n}"
  - ReplaceZlib:
      Offset: 0  # Glo/Aura/Aura2ed: 32px --> 16px
      Find: "MediumVertSpacer[qApp_deviceIsPhoenix=true] {\n  min-height: 32px;\n  max-height: 32px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsPhoenix=true] {\n  min-height: 16px;\n  max-height: 16px;\n}"
  - ReplaceZlib:
      Offset: 0  # AuraHD/H2O/GloHD/ClaraHD: 44px --> 22px
      Find: "MediumVertSpacer[qApp_deviceIsDragon=true] {\n  min-height: 44px;\n  max-height: 44px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsDragon=true] {\n  min-height: 22px;\n  max-height: 22px;\n}"
  - ReplaceZlib:
      Offset: 0  # AuraOne/Forma: 56px --> 28px
      Find: "MediumVertSpacer[qApp_deviceIsDaylight=true] {\n  min-height: 56px;\n  max-height: 56px;\n}"
      Replace: "MediumVertSpacer[qApp_deviceIsDaylight=true] {\n  min-height: 28px;\n  max-height: 28px;\n}"
Released in v38, and kobopatch request thread updated. Thanks!

Last edited by geek1011; 12-21-2018 at 09:56 AM.
geek1011 is offline   Reply With Quote
Old 12-21-2018, 01:21 PM   #101
JIPG-reader
Zealot
JIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beautyJIPG-reader does all things with Zen-like beauty
 
JIPG-reader's Avatar
 
Posts: 113
Karma: 32126
Join Date: Dec 2017
Location: Madrid (Spain)
Device: Kobo Aura H2O Ed2, Onyx Boox C67ML
Quote:
Originally Posted by geek1011 View Post
Released in v38, and kobopatch request thread updated. Thanks!
Reduce top/bottom page spacer: (nickel.yaml)

Does this patch replace epub fixed top/botton marging patch?

Edit: This patch is only for "full screen mode" (without footer and header), isnt it?, so it should not have any effect on epub margins when not in full screen mode.

I am a little bit lost with how the margins works, sorry

Last edited by JIPG-reader; 12-21-2018 at 01:29 PM.
JIPG-reader is offline   Reply With Quote
Old 12-21-2018, 05:03 PM   #102
Alanon
Connoisseur
Alanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watchAlanon is clearly one to watch
 
Alanon's Avatar
 
Posts: 76
Karma: 10742
Join Date: Jul 2017
Location: Serbia
Device: Kobo Aura One
Quote:
Originally Posted by JIPG-reader View Post
Reduce top/bottom page spacer: (nickel.yaml)

Does this patch replace epub fixed top/botton marging patch?

Edit: This patch is only for "full screen mode" (without footer and header), isnt it?, so it should not have any effect on epub margins when not in full screen mode.

I am a little bit lost with how the margins works, sorry
I've just installed it and tested things out. First, the new margin patch is indeed only for fullscreen, when I switched the header and footer back on, it looked to me like it should, with huge top and bottom margins.

I use the adjustable margin patch, which still works great, but as I understand it, the old fixed margins patch works for margins and styles below this new padding. In other words, I think that you'd need to keep the old patch at zero to override any epub/kepub styling, and also apply the new patch to have even smaller top and bottom margins.
Alanon is offline   Reply With Quote
Old 12-21-2018, 05:12 PM   #103
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,497
Karma: 26047188
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Yup, see me earlier comment:

Quote:
Originally Posted by NiLuJe View Post
For people also using your adjustable top/bottom margin patch, don't forget to modify the default margin value to match the one you use in the MediumVertSpacer patch .
(The 'MediumVertSpacer patch' is now Reduce top/bottom page spacer in v38).

This only makes sense if you actually *always* read without any footer NOR header (àla old fullScreenReading).
If you use the 'Reduce top/bottom page spacer' patch but you still keep ONE of the footer OR header shown, you'll *probably* don't want to tweak the 'adjustable top/bottom margin patch', unless you get how it's going to affect the effect of your margin slider.

The comments around the configurable values in the 'adjustable top/bottom margin patch' should help you understand how those two patches can interact with each other .

EDIT: And as mentioned in the full message I quoted, top/bottom margins are now *fixed* in the kePub reader, so all this interaction talk is fairly moot if you never even read plain ePubs .

Last edited by NiLuJe; 12-21-2018 at 05:19 PM.
NiLuJe is offline   Reply With Quote
Old 12-22-2018, 08:43 AM   #104
makara
Connoisseur
makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'makara knows the difference between 'who' and 'whom'
 
makara's Avatar
 
Posts: 78
Karma: 10000
Join Date: Jul 2012
Location: Israel
Device: KA1, KLH2O, Oasis 3
patch "Enable rotation on all devices" not work

On my Aura One patch "Enable rotation on all devices" not work. The screen rotates into landscape mode and does not return to portrait mode.
makara is offline   Reply With Quote
Old 12-23-2018, 12:58 PM   #105
Mingyar
Connoisseur
Mingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to beholdMingyar is a marvel to behold
 
Posts: 93
Karma: 11824
Join Date: Feb 2013
Device: Kobo Mini/Aura H2O/Aura One LE / Tea Inkpad 3
no problem on my Aura One LE
Mingyar is offline   Reply With Quote
Reply

Tags
kobopatch, patch, patch32lsb, patches, patching


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.13.1 GeoffR Kobo Developer's Corner 56 07-01-2016 10:59 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 04:40 AM
Instructions for patching firmware 3.16.0 GeoffR Kobo Developer's Corner 74 08-12-2015 03:12 PM
Instructions for patching firmware 3.12.1 GeoffR Kobo Developer's Corner 56 03-20-2015 06:14 AM
Instructions for patching firmware 3.12.0 GeoffR Kobo Developer's Corner 165 02-07-2015 10:22 AM


All times are GMT -4. The time now is 04:19 AM.


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