View Single Post
Old 05-27-2018, 03:05 PM   #2
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,736
Karma: 6990705
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
FAQ:

What should the overrides option in kobopatch.yaml look like?
Here is mine as an example:
Spoiler:
Code:
overrides:
  src/nickel.patch:
    Custom synopsis/details line spacing: yes
    Custom Header menubar - reduce height by 33%: yes
    Increase The Cover Size In Library: yes
    Increasing The View Details Container: yes
    Reading stats/Author name cut when the series is showing bug fix: yes
    Increase size of Kepub chapter progress chart: yes
  src/libadobe.so.patch:
    Remove PDF map widget shown during panning: yes
  src/libnickel.so.1.0.0.patch:
    Custom font sizes: yes
    Freedom to advanced fonts control: yes
    Custom Sleep/Power-off timeouts: yes
    Fix three KePub fullScreenReading bugs: yes
    Always display chapter name on navigation menu: yes
    Clock display duration: yes
    New home screen footer rename: yes
  src/librmsdk.so.1.0.0.patch:

Is this stable?
It is. It has many automated tests, both at compile-time and at runtime. I periodically run manual tests comparing the output of all the patches with the existing patching system. I have also used this on my kobos for over 3 months with 4 different firmware versions.

What is YAML?
YAML is a superset of JSON.

Can I use this with old patches?
Yes.

How can I update kobopatch?
Download the latest binaries from the release page and put them in the bin folder.

How does kobopatch convert from the old patch zips?
First, it extracts the zip and copies the patches to a new folder. Second, it processes the patch files and uncomments instructions which are commented but it recognizes (like patch_group). This allows compatibility to be maintained with the original patcher for now. Finally, it puts kobopatch and the default config in the folder and zips it.

When is zlib support coming?
zlib support was implemented on July 9, 2018.

How can I convert the patch32lsb format to the new kobopatch format?
You can use this tool. Note that this tool is still alpha quality and needs manual checking after conversion. It also has issues with binary patches (e.g. the zlib ones). It should be stable by v1.0.0.

For individual patches, you can manually convert according to the samples included in the kobopatch repository. Manually converted patches currently are stable, including the binary ones.

How do I add translation files?
First, put the ts files in the src folder. Second, update kobopatch.yaml to match. If you haven't already done so, install the QT Linguist tools. Finally, run kobopatch normally.

Why does my keyboard have the wrong letters when I enable the "Rename new home screen footer" patch?
This is a side effect of some of the string-related patches (especially the "Rename new home screen footer" patch). Due to the way QT stores strings, sometimes, it will use part of another string to save space, and as a result, another string may change as well (such as the keyboard).

Why does kobopatch say a FindReplaceString with special characters has the wrong replacement length?
QT uses the UTF-8 string encoding, which encodes special unicode characters as two bytes. This means that many special unicode characters (like accents, upside-down chars, fancy arrows, etc) may take up two bytes.

Last edited by geek1011; 08-24-2018 at 03:28 PM.
geek1011 is offline   Reply With Quote