Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-25-2019, 05:28 PM   #166
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,735
Karma: 6987557
Join Date: May 2016
Location: Ontario, Canada
Device: Kobo Mini, Aura Edition 2 v1, Clara HD
Slightly off topic, but will probably be of interest to people using the patches:

Quote:
Originally Posted by geek1011 View Post
Kepubify v2.4.0 has been released

This release mainly affects seriesmeta and the new covergen tool.

Seriesmeta now works even before books are imported (i.e. you don't have to reconnect to update series metadata for new books), and it now supports EPUB3-style series metadata. macOS is now supported as well.

Covergen (re)generates cover images for nickel, with optional stretching to fit a specific aspect ratio (I use 1.5). It works on both EPUBs and KEPUBs. This speeds up browsing the library, and if stretching is used, will also make it more consistent. In addition, covergen is useful when the automatically generated cover images are not satisfactory (too small, white margins, etc).

In addition, the README has been completely redone.

Code:
Usage: seriesmeta [OPTIONS] [KOBO_PATH]

Options:
  -h, --help         Show this help message
  -p, --no-persist   Don't ensure metadata is always set (this will cause series metadata to be lost if opening a book after an import but before a reboot)
  -n, --no-replace   Don't replace existing series metadata (you probably don't want this option)
  -u, --uninstall    Uninstall seriesmeta table and hooks (imported series metadata will be left untouched)

Arguments:
  KOBO_PATH is the path to the Kobo eReader. If not specified, seriesmeta will
  try to automatically detect the Kobo.
Code:
Usage: covergen [OPTIONS] [KOBO_PATH]

Options:
  -a, --aspect-ratio float   Stretch the covers to fit a specific aspect ratio (for example 1.3, 1.5, 1.6)
  -h, --help                 Show this help message
  -m, --method string        Resize algorithm to use (bilinear, bicubic, lanczos2, lanczos3) (default "lanczos3")
  -r, --regenerate           Re-generate all covers

Arguments:
  KOBO_PATH is the path to the Kobo eReader. If not specified, covergen will try
  to automatically detect the Kobo.
geek1011 is online now   Reply With Quote
Old 11-26-2019, 11:43 AM   #167
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 833
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by geek1011 View Post
I'd need to see the CSS in the book itself. Can you PM it to me?

Quote:
Originally Posted by droopy View Post
PM sent.


Hi Geek1011,
Did you get the book? The link is good for 7 days only.
droopy is offline   Reply With Quote
Advert
Old 10-13-2021, 02:53 AM   #168
Deobulakenyo
Guru
Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.Deobulakenyo ought to be getting tired of karma fortunes by now.
 
Posts: 703
Karma: 2153490
Join Date: Aug 2021
Location: Stupid Philippines
Device: Kobo Libra 2, Boyue Likebook P78
Quote:
Originally Posted by jackie_w View Post
This patch allows you to change font-family and/or font-size in the new header/footer. They will automatically be a matched pair.

It will be of most use to those who read books in languages not officially supported by Kobo (e.g. Russian, Vietnamese) where Kobo's default Avenir font is a poor choice for displaying the necessary unicode characters in Book title and Chapter name.

It can also be used by anyone who wants to change the cosmetic appearance of each book page.

This patch and patch Reduce new header/footer height should cover all the options which used to be available in the old patch Custom reading footer style.

Users who would also like to see their header/footer not forced to UPPERCASE should look for new patch Don't uppercase header/footer text.

Part 1: Customise font-family

Part 2:
  • 2a. Customise font-size (by model)
  • 2b. Fine-tune header/footer vertical positions (all models)
    e.g. to avoid the footer text cutting the bottom progressbar.
    This option is most likely to be needed if you have used patch
    Reduce new header/footer height
    to aggressively reduce header/footer height, see images 3,4 below.

N.B:
  • If you customise any font-family and after install/reboot you still do not see the new font being used in the header/footer, please see help notes at https://www.mobileread.com/forums/sh...90&postcount=2
  • *** This patch is not suitable for Japanese/Chinese locale users ***

In the attached screenshots:
  • Image 1: Shows an unpatched Kobo with an English book.
  • Image 2: Shows the same book after patching with cosmetic customisation.
    - in 1. set font to sideloaded Trebuchet and set text colour to mid-grey so it fades into the background more.
    - in 2a. increase font-size
  • Image 3: Shows the same book patched as in Image 2 but additionally patched with Reduce new header/footer height set to aggressively reduce height by 60%.
    Note how the footer text now cuts the progressbar.
  • Image 4: Shows the same book as Image 3 plus this patch's optional extra
    - in 2b. Fine-tune header/footer vertical positions.
    Note how the footer text no longer cuts the progressbar and how the header has moved slightly away from the top bezel.
  • Image 5: Shows an unpatched Kobo with a book with Book title and Chapter name containing Cyrillic characters.
    Note how poor Avenir and the fallback font are for this Kobo-non-supported language.
  • Image 6: Shows the same book after patching using the same customisation as Image 2.
    Note that customising to use the sideloaded Trebuchet font now displays Cyrillic better.

will this work on fw 4.28.18220?

Edit. tried it and it works. Thanks

Last edited by Deobulakenyo; 10-14-2021 at 01:17 AM.
Deobulakenyo is offline   Reply With Quote
Reply

Tags
kobopatch, patch, patch32lsb, patches, patching


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.13.1 GeoffR Kobo Developer's Corner 56 07-01-2016 09:59 AM
Instructions for patching firmware 3.15.0 GeoffR Kobo Developer's Corner 146 05-24-2016 06:10 AM
Instructions for patching firmware 3.16.10 GeoffR Kobo Developer's Corner 12 08-14-2015 03:40 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.3.x, 3.4.x, 3.5.x GeoffR Kobo Developer's Corner 285 08-27-2014 10:06 AM


All times are GMT -4. The time now is 09:09 PM.


MobileRead.com is a privately owned, operated and funded community.