05-28-2020, 07:46 AM | #46 | |
Fear The Turtle!
Posts: 866
Karma: 4035032
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
|
Quote:
For #1, it's not specific to just the Home screen. I'm more interested in changing the font for the menu selected on the Home screen (My Books, My Collections, My Articles, Settings, Activity, etc...). For #2, if enabled, does that remove everything else currently displayed on the Home screen (i.e. current books being read, My Books, last opened collection, Recommendations, etc...)? |
|
05-28-2020, 07:50 AM | #47 |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
|
Advert | |
|
05-28-2020, 08:00 AM | #48 | |
Fear The Turtle!
Posts: 866
Karma: 4035032
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
|
Quote:
|
|
05-28-2020, 08:00 AM | #49 |
Fear The Turtle!
Posts: 866
Karma: 4035032
Join Date: Sep 2009
Location: Margaritaville
Device: KV, Kobo Forma, Kobo A1LE, KO3, K3
|
|
05-28-2020, 05:25 PM | #50 |
Guru
Posts: 833
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
"KePub stylesheet additions"
Hello everyone.
In libnickel.so.1.0.0.yaml, there is this section Code:
KePub stylesheet additions: - Enabled: yes - Description: Makes room to add some additional CSS to the default KePub stylesheet. # See replacement CSS below for examples. - FindBaseAddressString: ".KBHighlighting, .KBSearchResult {" - ReplaceString: {Offset: 0, Find: ".KBHighlighting, .KBSearchResult { background-color: #C6C6C6 !important; } \t", Replace: ".KBHighlighting,.KBSearchResult{background-color:#C6C6C6!important}.KBSearch", MustMatchLength: yes} - ReplaceString: {Offset: 76, Find: ".KBSearchResult, .KBAnnotation, .KBHighlighting { font-size: 100% !important; -webkit-text-combine: inherit !important; } \t", Replace: "Result,.KBAnnotation,.KBHighlighting{font-size:100%!important;-webkit-text-combine:inherit!important}.KBAnnotation[writingM", MustMatchLength: yes} - ReplaceString: {Offset: 199, Find: ".KBAnnotation[writingMode=\"horizontal-tb\"] { border-bottom: 2px solid black !important; } \t", Replace: "ode=\"horizontal-tb\"]{border-bottom:2px solid black!important}.KBAnnotation[writingMode=\"ver", MustMatchLength: yes} - ReplaceString: {Offset: 290, Find: ".KBAnnotation[writingMode=\"vertical-rl\"] { border-right: 2px solid black !important; } \t", Replace: "tical-rl\"]{border-right:2px solid black!important}.KBAnnotation[writingMode=\"vertical-lr", MustMatchLength: yes} - ReplaceString: {Offset: 378, Find: ".KBAnnotation[writingMode=\"vertical-lr\"] { border-left: 2px solid black !important; }", Replace: "\"]{border-left:2px solid black!important}/******************************************/", MustMatchLength: yes} # # Replacement value: CSS string of exactly 44 characters in length: # # Example 1: Make full justification the default: # - FindReplaceString: {Find: "/******************************************/", Replace: "body{text-align:justify }", MustMatchLength: yes} # # Example 2: text-rendering:optimizeSpeed: Disables kerning, but fixes some # rendering problems that affect fully justified text. # - FindReplaceString: {Find: "/******************************************/", Replace: "body{text-rendering:optimizeSpeed }", MustMatchLength: yes} # # Example 3: text-rendering:optimizeLegibility: Enables ligatures, but causes # some additional rendering problems for fully justified text. # - FindReplaceString: {Find: "/******************************************/", Replace: "body{text-rendering:optimizeLegibility }", MustMatchLength: yes} # # Example 4: Make KePub font sizes match ePub font sizes: ePubs render with # 1.5 times the font size of KePubs by default. With this enabled they match. # - FindReplaceString: {Find: "/******************************************/", Replace: "#book-inner{font-size:1.5em }", MustMatchLength: yes} |
Advert | |
|
05-28-2020, 06:16 PM | #51 | |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
05-29-2020, 08:13 AM | #52 | |
Wizard
Posts: 2,018
Karma: 13471689
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
|
Quote:
'Error: could not apply patch "KePub stylesheet additions": line 1207: inst 10: FindReplaceString: FindBaseAddressString: FindBaseAddress: could not find bytes' I'm aware of the spacing issues (old COBOL head here ), but this is something different I think. |
|
05-29-2020, 09:00 AM | #53 | |
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
Quote:
Code:
| FindReplaceString("/******************************************/", "body{text-rendering:optimizeLegibility }") | FindBaseAddressString("/******************************************/") | ReplaceString(0, "/******************************************/", "body{text-rendering:optimizeLegibility }") Lay out this piece of the patch. |
|
06-04-2020, 04:29 AM | #54 | |
Connoisseur
Posts: 95
Karma: 15430
Join Date: Mar 2015
Device: Kobo Forma, Pocketbook Era
|
Quote:
Error: could not apply patch "Never sync dictionaries": line 1543: inst 2: ReplaceBytes: could not find specified bytes at offset EDIT: Nevermind, got it now, using the code from geek1011's site. Last edited by the_Pan; 06-04-2020 at 05:11 AM. |
|
06-29-2020, 10:56 AM | #55 |
Junior Member
Posts: 4
Karma: 10
Join Date: Jun 2020
Device: kobo glo hd
|
Hi, succesfully updated my old Kobo Glo HD firmware version with this new one.
Years ago I patched 3.xx version for screen refresh extension, now I see current new default refresh max 10 but no patch for extension. Some help for this? Hope this is the right place to post, if not please help... sorry for bad english... Thanks in advance |
06-30-2020, 01:19 PM | #56 |
Guru
Posts: 833
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
Enabling which patch(es) gets me the most text in the top and bottom areas when reading? In other words, I want to have text go as high up and as low down of the screen, so that text will be almost "kissing" the black plastic frame.
In libnickel.so, there's -- ePub fixed top/bottom margin -- ePub disabled built-in body padding bottom Another question. in the same file (libnickel.so), there's a pathc called "Force user line spacing in ePubs (part 1 of 2)". The description says that enabling it will "spoil the formatting in some books". What formatting will be spoiled? And what books will be affected? |
06-30-2020, 03:13 PM | #57 | |
Resident Curmudgeon
Posts: 73,983
Karma: 128903378
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
There's also patches for adjusting the spacing/font size of the header/footer and you can recover some space there. |
|
06-30-2020, 03:16 PM | #58 | |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
Quote:
|
|
06-30-2020, 04:25 PM | #59 |
Guru
Posts: 833
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
|
What did I do wrong? Lol.
Error message: Code:
Patching ./usr/local/Kobo/nickel Error: could not apply patches: could not load patch file 'src/nickel.yaml': could not parse patch file: yaml: line 314: mapping values are not allowed in this context Code:
kobopatch 653070c https://github.com/geek1011/kobopatch Loading configuration from kobopatch.yaml Reading input firmware zip Patching ./usr/local/Kobo/libnickel.so.1.0.0 SKIP `Allow USB storage even when device locked` SKIP `Allow rotation on all devices` SKIP `Allow searches on Extra dictionaries` APPLY `Allow showing info panel on random screensaver` APPLY `Always show confirmation dialog before upgrading` SKIP `Block WiFi firmware upgrade` SKIP `Both page turn buttons go next` SKIP `Both page turn sides go next` SKIP `Bulgarian Phonetic Keyboard (GloHD/ClaraHD/AuraOne/H2O2/Forma/Libra)` SKIP `Change Browse Kobo home screen link target - Activity` SKIP `Change Browse Kobo home screen link target - Articles` SKIP `Change Wikipedia search language` SKIP `Custom Sleep/Power-off timeouts` APPLY `Custom font sizes` SKIP `Custom header/footer page number text` APPLY `Custom kepub default margins` SKIP `Custom left & right margins` SKIP `Custom navigation menu page number text` SKIP `Customize ComfortLight settings` SKIP `Cyrillic Keyboard (GloHD/ClaraHD/AuraOne/H2O2)` APPLY `DeveloperSettings - AutoUsbGadget` APPLY `Dictionary text font-family/font-size/line-height` APPLY `Disable all tutorial dialogs` SKIP `Don't grab exclusive access to event0` SKIP `Don't uppercase header/footer text` APPLY `Don't uppercase header/footer text and change page number text` APPLY `Enable advanced settings for all fonts` APPLY `FeatureSettings - BookSpecificStats` APPLY `FeatureSettings - ExportHighlights` SKIP `FeatureSettings - FullScreenBrowser` APPLY `FeatureSettings - MyWords` SKIP `FeatureSettings - ShowFacebookShare` SKIP `Force user font-family in ePubs (Part 1 of 2)` APPLY `Force user line spacing in KePubs` APPLY `Force user line spacing in ePubs (part 1 of 2)` SKIP `Greek Keyboard (GloHD/ClaraHD/AuraOne/H2O2)` SKIP `Hide browser from beta features` SKIP `Hide top-left menu item - Activity` SKIP `Hide top-left menu item - Dropbox` APPLY `Hide top-left menu item - Pocket` APPLY `Hide top-left menu item - Recommended` APPLY `Hide top-left menu item - Store` APPLY `Hide top-left menu item - Wishlist` SKIP `Ignore .otf fonts` SKIP `Increase TOC level indentation` APPLY `Increase TOC level indentation and fix extra indentation bug` SKIP `KePub constant font sharpness` SKIP `KePub stylesheet additions` APPLY `Larger Sleep/Power-off timeouts` APPLY `My 10 line spacing values` SKIP `My 24 line spacing values` APPLY `Never show Kobo Plus, wishlist, and points SmartLinks` SKIP `Only show Pocket SmartLink` SKIP `Only show stats SmartLink` APPLY `PowerSettings - UnlockEnabled` APPLY `Remove beta features not supported text` APPLY `Remove recommendations (row1col2) from home screen` APPLY `Remove title from reading header/footer` SKIP `Rename new home screen footer` SKIP `Replace adobe page numbers toggle with invert screen` SKIP `Set KePub hyphenation` SKIP `Set font scale factor` SKIP `Set visible SmartLink` APPLY `Shorten dictionary entry not found message` SKIP `Swap reading header/footer` SKIP `Un-Force user font-family in KePubs` SKIP `Un-Force user text-align in div,p tags in KePubs` SKIP `Un-force font-family override p tags (std epubs)` APPLY `Un-force link decoration in KePubs` SKIP `ePub constant font sharpness` APPLY `ePub disable built-in body padding-bottom` SKIP `ePub fixed top/bottom margins` SKIP `ePub uniform font scale` Patching ./usr/local/Kobo/nickel Error: could not apply patches: could not load patch file 'src/nickel.yaml': could not parse patch file: yaml: line 314: mapping values are not allowed in this context |
06-30-2020, 05:05 PM | #60 |
Wizard
Posts: 2,735
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
|
|
Tags |
kobopatch, patch, patch32lsb, patches, patching |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.18.0 | GeoffR | Kobo Developer's Corner | 151 | 10-21-2016 06:15 AM |
Instructions for patching firmware 3.17.3 | GeoffR | Kobo Developer's Corner | 60 | 09-17-2015 05:35 PM |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.2.0 | DNSB | Kobo Developer's Corner | 66 | 12-05-2014 07:28 AM |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |