View Single Post
Old 02-19-2015, 02:23 PM   #2
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
Notes and other patches

Notes:

The following patches are missing from this version:

* Custom header styles
* Book titles font style normal


Improved `KePub zero body margin/padding` patch:

I've updated the `KePub zero body margin/padding` patch with an improved version. (See post #15.) The new patch fixes the problem some kepubs have of text being shifted right and cut off in full-screen mode, but unlike the old patch it doesn't prevent the margins being changed in normal reading mode.


New `Custom reading footer style` patch:

This patch has changed in this firmwre version, see post #12 for infomation.


New `Custom font sizes` patch:

The font sizes are different in this firmware version, they now vary depending on device:
Code:
Device            Unpatched          Patched default
------            ---------          ---------------
Touch/Mini:  12 - 90  (35 sizes)    12 - 80 (48 sizes)
Glo/Aura:    12 - 122 (43 sizes)    12 - 80 (48 sizes)
AuraHD/H2O:  12 - 150 (50 sizes)    12 - 88 (50 sizes)
Alyssum:     14 - 150 (48 sizes)    14 - 88 (48 sizes)

Working around problems with reading kepubs in full-screen mode:

To enable the full-screen reading option, add the following to the device's configuration file ./kobo/Kobo/Kobo eReader.conf using a unix-aware text editor (don't use Windows' Notepad or Wordpad, use an editor such as Notepad++ instead.)
Code:
[FeatureSettings]
FullScreenReading=true
Then it will be possible to switch between normal and full-screen mode by ticking the new "Show header and footer" box in the Reading Settings menu.

Full-screen mode works well with epubs, but there are two problems that affect kepubs:

1. If the book's stylesheet has non-zero margin or padding on the body element, then the text can be shifted to the right resulting in text being cut off at the right hand side.

For sideloaded kepubs this should be able to be fixed by adding the following to the book's stylesheet, or to kobo_extra.css if that option is enabled in Calibre:
Code:
body { margin: 0 0 0 0 !important; padding: 0 0 0 0 !important; }
For kepubs synced from Kobo, enabling the `KePub zero body margin/padding` patch will modify the device's built-in KePub stylesheet instead.


2. For some fonts, characters with a large side-bearing value (such as Georgia f, J, etc.) get cut off if they appear at the end of a line.

For sideloaded kepubs created by recent versions of Calibre's KoboTouchExtended driver, this can be fixed by adding the following to the book's stylesheet or to kobo_extra.css:
Code:
div#book-columns { padding: 0.2em !important; }
For kepubs synced from Kobo or created with older versions of the KoboTouchExtended driver, enabling the `Fix kepub side bearing font cut-off bug` patch will add the appropriate padding to the device's built-in stylesheet instead.


Advanced font options for sideloaded fonts.

The `Freedom to advanced fonts control` patch enables the weight/sharpness adjustment menu for sideloaded fonts. It works for both OTF and TTF fonts in the KePub reader, but usually only for TTF fonts in the epub reader.

To enable kepub kerning for sideloaded fonts, the font must be in TTF format with "Old style kern" tables. You can generate these tables with Fontforge by converting the font to TTF with the "Old style kern" option ticked. See this thread.


More patches:

* keyboard template patch, use this to create your own custom keyboard: post #24

* Turkish keyboard: post #25

`Default ePub monospace font`

`Change dicthtml strings to micthtml` (for use with custom dictionaries)

`Force user line spacing in ePubs` (A stronger replacement for the `Enforce user line spacing in ePubs` patch.)


If you know of any other patches for firmware 3.13.1 post them in this thread and I'll add them to this post.

Last edited by GeoffR; 10-17-2015 at 01:01 AM. Reason: Added link to `Force user line spacing in ePubs` patch.
GeoffR is offline   Reply With Quote