View Single Post
Old 08-17-2019, 06:19 PM   #100
Maillemom
Connoisseur
Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.
 
Posts: 76
Karma: 28488
Join Date: Sep 2013
Location: Bensalem, PA
Device: Nook Classic, Nook STG, Nook Color, Kindle, Kobo H2O
Fixed it, now have another problem

Hi Jackie - Thanks so much for the reply. You pointed me in the right direction. I did manage to fix that issue but now I seem to have an issue in the Freedom to Advance Controls.

Spoiler:
kobopatch cfae583
https://github.com/geek1011/kobopatch

KoboPatch::LoadConfig
reading config file from *os.File
unmarshaling yaml
| {
| "Version": "4.15.12920",
| "In": "src/kobo-update-4.15.12920.zip",
| "Out": "out/KoboRoot.tgz",
| "Log": "out/log.txt",
| "PatchFormat": "kobopatch",
| "Patches": {
| "src/libadobe.so.yaml": "usr/local/Kobo/libadobe.so",
| "src/libnickel.so.1.0.0.yaml": "usr/local/Kobo/libnickel.so.1.0.0",
| "src/librmsdk.so.1.0.0.yaml": "usr/local/Kobo/librmsdk.so.1.0.0",
| "src/nickel.yaml": "usr/local/Kobo/nickel"
| },
| "Overrides": {
| "src/libadobe.so.yaml": null,
| "src/libnickel.so.1.0.0.yaml": null,
| "src/librmsdk.so.1.0.0.yaml": null,
| "src/nickel.yaml": null
| },
| "Lrelease": "",
| "Translations": null,
| "Files": null
| }


KoboPatch::OutputInit


KoboPatch::ApplyPatches
KoboPatch:penIn
Opening firmware zip 'src/kobo-update-4.15.12920.zip'
Looking for KoboRoot.tgz in zip
--> found KoboRoot.tgz
--> opening KoboRoot.tgz
Opening gzip reader
Creating tar reader
patching entry name:'./usr/local/Kobo/libnickel.so.1.0.0' size:16225956 mode:'509' typeflag:'48' with files: src/libnickel.so.1.0.0.yaml
reading entry contents
loading patch file 'src/libnickel.so.1.0.0.yaml' (detected format kobopatch)
| parsing patch file: unmarshaling to map[string]yaml.Node
--> could not parse patch file: yaml: line 478: could not find expected ':'


This is what that section looks like:

Spoiler:
Freedom to advanced fonts control:
- Enabled: yes
- Description: |
This patch allows the advanced font options (weight/sharpness adjustments)
to work with sideloaded fonts too. (KEPUB: OTF and TTF. EPUB: TTF only.)
Beware unknown side-effects for Japanese or Chinese language books.
#
# The following passes a junk pointer to N3FontTypeUtil::setupDropdown, but it
# seems the pointer is only passed on to ReadingSettings::getDefaultFontFamily
# where the code is patched to avoid dereferencing it, so it should be safe.
# BEWARE: What are the side-effects for Japanese / Chinese language books?
#
N3FontTypeUtil.setupMonotypeDropdown(b,c)
N3FontTypeUtil.setupDropdown(UNDEFINED,b,c)
- ReplaceBytes: {Offset: 0x877760, FindH: 59 46 50 46, ReplaceH: 5A 46 51 46}
- ReplaceBLX: {Offset: 0x877764, Find: 0x428374, Replace: 0x434708}
N3FontTypeController.setupAdvancedOption(...) --> NOP
- ReplaceBytesNOP: {Offset: 0xA32E06, FindBLX: 0x435D9C}
- ReplaceBytesNOP: {Offset: 0xA33D6C, FindBLX: 0x435D9C}
# Ignore volume language (affects language number 25; ja? zh?)
- ReplaceBytesNOP: {Offset: 0x687902, FindBLX: 0x428D0C}
- ReplaceBytesNOP: {Offset: 0x687908, FindBLX: 0x430710}
- ReplaceBytes: {Offset: 0x68790C, FindH: 06 46, ReplaceH: 00 26}
- ReplaceBytesNOP: {Offset: 0x687910, FindBLX: 0x42151C}


Thanks,
Trice

Last edited by Maillemom; 08-17-2019 at 06:24 PM. Reason: fix spoiler
Maillemom is offline   Reply With Quote