Grand Sorcerer
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
|
Kobopatch updates for fw 4.41.23145
Quote:
Originally Posted by hatuluang
As mentioned in the title, some patches from firmware 4.40.23081 don't work in firmware 4.41.23145
|
I made some nickel.yaml & librmsdk.so.1.0.0.yaml GitHub commits back in April for fw 4.39.22801. @geek1011 hasn't made a full patch release since so I'm posting the patch updates here.
Patch updates for src/nickel.yaml These 4 patch updates should work OK in all of fw 4.41.xxxxx, 4.40.xxxxx, 4.39.xxxxx - Custom header/footer captions:
Spoiler:
Code:
Custom header/footer captions:
- Enabled: no
- Description: |
This patch allows you to change various header/footer caption attributes:
- font-family (Part 1)
- font-size & vertical position fine-tuning (Part 2)
- width (Part 3)
Header & footer will automatically be a matched pair.
Parts 1 & 2: Full details & screenshots at
https://www.mobileread.com/forums/showpost.php?p=3897175&postcount=4
Part 3: Before/after screenshots at
https://www.mobileread.com/forums/showpost.php?p=4069495&postcount=18
#
N.B: This patch is not suitable for Japanese/Chinese locale users
fw 4.23.15505 No longer possible to customise font-size for GloHD/ClaraHD
separately from AuraHD/H2O.
fw 4.29.18730 No longer possible to style header/footer separately.
fw 4.32.19501 Kobo's major changes to font handling mean that ability to customise
font-family in a kobopatch is now very limited.
- FindZlib: "ReadingFooter" # qss/ReadingFooter.qss
- ReplaceZlibGroup:
Replacements:
# Part 1: Customise font-family
# #caption
# The only custom font-family values now likely to have any effect are Georgia, Avenir
# and possibly(?) some of the built-in CJK fonts
# Un-comment and customise ONLY ONE of the following to change header/footer font-family
#- {Find: "font-family: DefaultSansSerif;", Replace: "font-family:DefaultSansSerif;"}
#- {Find: "font-family: DefaultSansSerif;", Replace: "font-family:DefaultSansSerif; background:transparent;"}
#
# Hint:
# Even if you don't need to change font-family you might want to un-comment the 2nd Find/Replace above.
# Setting the caption's background to transparent instead of the default, opaque white,
# should avoid the potential "dogear bookmark problem" outlined below in Part 3 of this patch.
# Part 2:
# 2a. Change font-size (header & footer simultaneously)
# Separate values for GloHD & ClaraHD (Alyssum & Nova) removed in 4.23.15505
#
# 2b.(optional): Fine-tune footer position by adjusting value of margin-top.
# A negative margin-top (e.g. -10px) moves the footer text
# slightly upwards, further away from the bottom bezel/progressbar,
# closer to the page content.
# N.B. A non-zero margin-top also automatically shifts the header text
# vertically by the same amount and in the same direction
# as the footer text.
# #caption
# Touch/Mini
- Find: "[qApp_deviceIsTrilogy=true] {\n font-size: 14px;\n}"
Replace: "[qApp_deviceIsTrilogy=true] {\n font-size: 14px; margin-top: 0px;\n}"
# Glo/Aura/Aura2/Nia
- Find: "[qApp_deviceIsPhoenix=true] {\n font-size: 17px;\n}"
Replace: "[qApp_deviceIsPhoenix=true] {\n font-size: 17px; margin-top: 0px;\n}"
# AuraHD/AuraH2O/AuraH202/GloHD/ClaraHD/Clara2E
- Find: "[qApp_deviceIsDragon=true] {\n font-size: 25px;\n}"
Replace: "[qApp_deviceIsDragon=true] {\n font-size: 25px; margin-top: 0px;\n}"
# LibraH2O/Libra2
- Find: "[qApp_deviceIsStorm=true] {\n font-size: 29px;\n}"
Replace: "[qApp_deviceIsStorm=true] {\n font-size: 29px; margin-top: 0px;\n}"
# AuraOne/Forma/Sage/Elipsa/Elipsa2E
- Find: "[qApp_deviceIsDaylight=true] {\n font-size: 32px;\n}"
Replace: "[qApp_deviceIsDaylight=true] {\n font-size: 32px; margin-top: 0px;\n}"
# Part 3: Increase the width of header/footer captions by reducing the width
# of the pageturn tap zones in the footer's left/right corners
# N.B:
# The default Replace values below have been set larger than you might prefer.
# This is to avoid the possibility of the "dogear" bookmark icon
# in the top right corner being partially obscured by the header caption's white background.
# See screenshot at following link for an example of what can happen
# if the new Replace value is too small.
# https://www.mobileread.com/forums/showpost.php?p=4069755&postcount=34
# Feel free to reduce your custom Replace values if a wider caption area
# is more important to you than "dogear" aesthetics.
# Alternatively, look at the Hint in Part 1 of this patch for a way to avoid
# the "dogear" problem.
#
# Customise one or more of the 3 Replace values below as required
# Touch/Mini/Touch2/Glo/Aura/Aura2/Nia
# N.B. Touch/Mini/Touch2 could be reduced to 57 with no ill effects
- {Find: "footerMargin: 105;", Replace: "footerMargin:64;"}
# AuraHD/AuraH2O/AuraH2O2/GloHD/ClaraHD/Clara2E/LibraH2O/Libra2
# N.B. AuraH2O/AuraH2O2/GloHD/ClaraHD/Clara2E could be reduced to 102 with no ill effects
- {Find: "footerMargin: 170;", Replace: "footerMargin:116;"}
# AuraOne/Forma/Sage/Elipsa/Elipsa2E
- {Find: "footerMargin: 221;", Replace: "footerMargin:133;"}
# Don't change anything below. It exists to free up some space for
# your changes above by removing Japanese/Chinese-specific CSS code blocks
# so that kobopatch will run without giving some kind of 'too long' error message.
- {Find: "#caption[localeName=\"ja\"] {\n font-family: Sans-SerifJP, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "#caption[localeName=\"zh\"] {\n font-family: Sans-SerifZH-Simplified, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "#caption[localeName=\"zh-HK\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"}
- {Find: "#caption[localeName=\"zh-TW\"] {\n font-family: Sans-SerifZH-Traditional, sans-serif;\n font-style: normal;\n}\n", Replace: "\n"
- Customise Header back button:
- Custom page navigation scrubber:
- Custom collection/author header title font:
These 2 patch updates are for fw 4.41.23145 only. - Increase size of kepub chapter progress chart:
Change the BaseAddress offset line to
Code:
- BaseAddress: 0x1C7A18C # qss/ReadingMenuStatsView.qss
- Remove forgot pin button from lock screen:
The BaseAddress offset line needs to be changed to one of the following. I'm sorry I can't be more specific. Someone needs to test which one is correct and report back. There's no need to worry if you pick the wrong one, it will have removed the unwanted "forgot PIN" message from the Parental Control PIN screen instead.
Code:
- BaseAddress: 0x1C70CE6 # qss/PinCodeInputDialog.qss
or
Code:
- BaseAddress: 0x1C64C69 # qss/PinCodeInputDialog.qss
Patch updates for src/librmsdk.so.1.0.0.yaml These 2 updates should work OK in all of fw 4.41.xxxxx, 4.40.xxxxx, 4.39.xxxxx - Default ePub serif font (Amasis): renamed to Default ePub serif font:
- Default ePub sans-serif font (Gill Sans): renamed to Default ePub sans-serif font:
|