12-14-2015, 03:26 AM | #61 |
Wizard
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
|
12-15-2015, 12:21 PM | #62 |
Member
Posts: 20
Karma: 10000
Join Date: Sep 2014
Device: Kobo Glo
|
Thank you for the batch file in post 53.
It works! |
Advert | |
|
12-22-2015, 02:29 AM | #63 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Custom settings for the `Custom reading footer style` patch
As often happens, the details of this patch has had to change to adapt to changes in the firmware. I'll try to summarise here how to customise the patch settings.
As in previous versions, there are four variables that can be changed: 1. Total height of footer (in pixels) 2. Font size used for the progress indicator 3. Position of progress indicator within footer 4. Font face used for the progress indicator When changing the first three settings in the patch it is important not to change the total length of the replacement string. e.g. change `-10px;` to `-05px;` so that the number of characters remains the same. 1. To set the total height of the footer, change the min-height and max-height replacement values (right-most values) in this section: Code:
# Example replacement footer height values: Glo/Aura replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;` replace_string = 002D, `min-height: 70px;`, `min-height: 40px;` replace_string = 003F, `max-height: 70px;`, `max-height: 40px;` Code:
# Example replacement footer height values: Glo/Aura replace_string = 001A, `footerMargin: 105;`, `footerMargin: 105;` replace_string = 002D, `min-height: 70px;`, `min-height: 30px;` replace_string = 003F, `max-height: 70px;`, `max-height: 30px;` 2. If you reduce the total height of the footer, you might also need to reduce the font-size used for the progress indicator so that it will still fit in the footer. To set the font size, change the replacement value for the appropriate device in the section below: Code:
# Replacement caption font size value for Touch/Mini: replace_string = 000A, `font-size: 16px;`, `font-size: 16px;` # Replacement caption font size value for Glo/Aura: replace_string = 0054, `font-size: 20px;`, `font-size: 20px;` # Replacement caption font size value for AuraHD/H2O: replace_string = 008C, `font-size: 26px;`, `font-size: 26px;` # Replacement caption font size value for GloHD: replace_string = 00C5, `font-size: 30px;`, `font-size: 30px;` Code:
# Replacement caption font size value for GloHD: replace_string = 00C5, `font-size: 30px;`, `font-size: 24px;` 3. The progress indicator will normally be displayed centred vertically in the footer, but by default the patch will move it a bit further upwards (if there is room in the footer). To set the position, change the replacement value in the following section of the patch: a larger (more negative) value moves the progress indicator further upwards, but only within the limits of the total footer height. A zero value (or commenting out the replace_string line) leaves the progress indicator cenred vertically: Code:
# Replacement caption top margin value for all devices: # (A negative top margin moves the caption text upwards, # further from the bezel and closer to the page content.) replace_string = 001A, `margin-top: 00px;`, `margin-top:-10px;` 4. In this firmware version, the font used for the progress indicator is normally set to whatever font is selected from the Aa menu, or Georgia if "Publisher default" is selected. This can be a problem because some fonts do not sit centred vertically within the line, which can result in the progress indicator test being clipped, especially if a very small footer height is used. You can change the font used for the progress indicator by uncommenting the replace_string line in the following section of the patch and changing the font name: Code:
# Uncomment to use a fixed replacement caption font family, for all devices: # (You can change Avenir to another font name of your choice, but Avenir or # Georgia are recommended because other fonts may not be loaded when the book # is first opened and so might cause problems. Unlike other strings it is OK # if this replacement string is a bit longer or shorter than the original.) #replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Georgia;} Code:
# Uncomment to use a fixed replacement caption font family, for all devices: # (You can change Avenir to another font name of your choice, but Avenir or # Georgia are recommended because other fonts may not be loaded when the book # is first opened and so might cause problems. Unlike other strings it is OK # if this replacement string is a bit longer or shorter than the original.) replace_string = 00D7, `#caption[qApp_localeName="ja_JP"] {font-family: Sans-SerifJP;}`, `#caption {font-family: Avenir;} |
12-26-2015, 11:28 PM | #64 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2015
Device: Kobo Glo HD
|
find_base_address string not found
Quote:
I am trying on an Ubuntu 14.04 LTS x86_64 for a Kobo Glo HD and get this error when trying to run the .sh (see attachment for the log): "tools/patch32lsb-x86_64-Linux: line 58 in '3.19.5613_source/libnickel.so.1.0.0.patch': find_base_address string not found." Please see the attachments for the details of the error. I checked that line and is exactly the same for the path in the patch before, so not sure what the problem is... Thanks. |
|
12-26-2015, 11:32 PM | #65 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Code:
# # The following two patches are alternatives, don't enable both at once. # # `Disable reading footer` # `Custom reading footer style` # |
|
Advert | |
|
12-27-2015, 06:10 AM | #66 | |
Junior Member
Posts: 2
Karma: 10
Join Date: Dec 2015
Device: Kobo Glo HD
|
Quote:
Noob mistake, now is working (Kobo Glo HD). For the record, that patch file for *nickel* has several more errors (Initially I replaced all enable='no', for enable='yes', I know... ): This among them: Code:
tools/patch32lsb-x86_64-Linux: line 1191 in '3.19.5613_source/libnickel.so.1.0.0.patch': replace_bytes mismatched data. |
|
12-28-2015, 06:06 AM | #67 |
Connoisseur
Posts: 70
Karma: 798
Join Date: Apr 2012
Device: iLiad, Kobo Aura 6"
|
thanks for patch!
Are you able to edit `Custom reading footer style` to align page numbers on the right side of the screen? (like a real book). |
12-28-2015, 06:21 AM | #68 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
12-28-2015, 07:03 AM | #69 |
Connoisseur
Posts: 70
Karma: 798
Join Date: Apr 2012
Device: iLiad, Kobo Aura 6"
|
p.s.
i have a problem with `Custom page refresh options (Aura only)`: i have used this settings: Code:
<Patch> patch_name = `Custom page refresh options (Aura only)` patch_enable = `yes` # # The other two `Custom page refresh options` patches don't have any effect on # the Aura, which uses a different menu: # # 1,5,10,Chapter # --> 1,8,64,Chapter # replace_int = 79B996, 5, 32 replace_int = 79BB80, 5, 32 replace_int = 79BBEE, 5, 32 replace_string = BC8088, `5 pages`, `32 page` # replace_int = 79BA32, 10, 99 replace_int = 79BD1E, 10, 99 replace_int = 79BD7A, 10, 99 replace_string = BC8090, `10 pages`, `99 page` </Patch> Code:
$ ./3.19.5613.sh Extracting files to patch from 3.19.5613_source/kobo-update-3.19.5613.zip ... ./usr/local/Kobo/libnickel.so.1.0.0 ./usr/local/Kobo/librmsdk.so.1.0.0 ./usr/local/Kobo/libadobe.so Read 266532 bytes from input file '/tmp/patch32lsb_MiOcSmAZ/original/./usr/local/Kobo/libadobe.so' Ignoring disabled patch `Remove PDF map widget shown during panning` Ignoring disabled patch `Preserve PDF pan position across page turns` Ignoring disabled patch `Remove PDF page turn arrows at left and right edges of page` Wrote 266532 bytes to output file '/tmp/patch32lsb_MiOcSmAZ/patched/./usr/local/Kobo/libadobe.so' Read 14921492 bytes from input file '/tmp/patch32lsb_MiOcSmAZ/original/./usr/local/Kobo/libnickel.so.1.0.0' Ignoring disabled patch `Disable reading footer` find_base_address: unique string at 00C547EC find_base_address: unique string at 00C5486C Applied patch `Custom reading footer style` Ignoring disabled patch `My 15 line spacing values` Ignoring disabled patch `Custom left & right margins` Ignoring disabled patch `Custom font sizes` Ignoring disabled patch `Brightness fine control` Applied patch `Search in Library by default` Ignoring disabled patch `Freedom to advanced fonts control` Ignoring disabled patch `Allow download all in Browser` Ignoring disabled patch `ePub fixed/adjustable top/bottom margins` Ignoring disabled patch `ePub disable built-in body padding-bottom` Ignoring disabled patch `Custom page refresh options (1,2,3,...,12)` Ignoring disabled patch `Custom page refresh options (1,2,4,8,16,32,64,128)` Applied patch `Custom page refresh options (Aura only)` Ignoring disabled patch `Remove system fonts in Reader list` Ignoring disabled patch `Remove non-system fonts in Reader list` Ignoring disabled patch `Cyrillic keyboard` Ignoring disabled patch `Arabic keyboard` Ignoring disabled patch `Hebrew keyboard` Ignoring disabled patch `Turkish keyboard` Ignoring disabled patch `Customise PinchGestureRecognizer` Ignoring disabled patch `Margins fine tuning` Ignoring disabled patch `Custom kepub default margins` Ignoring disabled patch `Block WiFi firmware upgrade` find_base_address: unique string at 00BBFEE8 Applied patch `Custom footer` Ignoring disabled patch `Custom Sleep/Power-off timeouts` Ignoring disabled patch `Set kepub hyphenation` find_base_address: unique string at 00C08F47 Applied patch `Fix three KePub fullScreenReading bugs` Ignoring disabled patch `Force user line spacing in KePubs` Ignoring disabled patch `Force user line spacing in ePubs (part 1 of 2)` Ignoring disabled patch `ePub fixed font sharpness` Ignoring disabled patch `KePub fixed font sharpness` Ignoring disabled patch `Un-force font-family override p tags (std epubs)` Ignoring disabled patch `Un-Force user text-align in div,p tags in KePubs` Applied patch `Always display chapter name on navigation menu` Ignoring disabled patch `Change dicthtml strings to micthtml` Ignoring disabled patch `Un-Force user font-family in KePubs` Ignoring disabled patch `KePub full justification default` Wrote 14921492 bytes to output file '/tmp/patch32lsb_MiOcSmAZ/patched/./usr/local/Kobo/libnickel.so.1.0.0' Read 7437684 bytes from input file '/tmp/patch32lsb_MiOcSmAZ/original/./usr/local/Kobo/librmsdk.so.1.0.0' Ignoring disabled patch `Fix page breaks bug` Ignoring disabled patch `Default ePub monospace font (Courier)` Ignoring disabled patch `Default ePub sans-serif font (Gill Sans)` Ignoring disabled patch `Force user line spacing in ePubs (Part 2 of 2)` Ignoring disabled patch `Ignore ePub book Adobe XPGT stylesheet (page-template.xpgt)` Ignoring disabled patch `Ignore ePub book CSS and Adobe XPGT stylesheets` Ignoring disabled patch `Ignore ePub TOC navpoints` Wrote 7437684 bytes to output file '/tmp/patch32lsb_MiOcSmAZ/patched/./usr/local/Kobo/librmsdk.so.1.0.0' Creating KoboRoot.tgz ... ./usr/local/Kobo/libadobe.so ./usr/local/Kobo/libnickel.so.1.0.0 ./usr/local/Kobo/librmsdk.so.1.0.0 Cleaning up /tmp/patch32lsb_MiOcSmAZ |
12-28-2015, 07:46 PM | #70 | ||
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
FWIW most of my paper books have the page number bottom centre, and the rest have it top right/left. I can't find any that have it bottom right/left. Quote:
Could you try this new patch and see if it works properly? Firmware 3.19.5613, libnickel.so.1.0.0.patch: Spoiler:
|
||
12-29-2015, 03:46 AM | #71 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I've opened 4 random paper books. The first had them bottom center, the second top left/right, the third top center, the fourth bottom left/right.
|
12-29-2015, 08:20 AM | #72 |
Connoisseur
Posts: 52
Karma: 10
Join Date: Jan 2011
Device: Kobo GLO HD, KOBO AURA ONE
|
Hello!
I'm sorry, guys, is there a way to reduce the space between the top of the text and the title of the book? Thank you! Last edited by The_Immortal; 12-29-2015 at 09:10 AM. |
12-29-2015, 09:52 AM | #73 |
Connoisseur
Posts: 70
Karma: 798
Join Date: Apr 2012
Device: iLiad, Kobo Aura 6"
|
|
12-29-2015, 09:57 PM | #74 |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
12-29-2015, 10:07 PM | #75 | |
Wizard
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
* load the book as an ePub instead (the ePub reader doesn't have a header), or * use full-screen reading mode (see this post) If you read the book as an ePub then the `ePub fixed/adjustable top/bottom margins` patch can be used to control the size of the top and/or bottom margins, in both full-screen and normal reading modes. If you read KePubs in full-screen mode then the top/bottom margins are adjustable, and the `KePub default margins` patch can be use to reduce their minimum size (to zero if desired.) Last edited by GeoffR; 12-29-2015 at 10:11 PM. Reason: ... (to zero if desired.) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Instructions for patching firmware 3.17.0 | GeoffR | Kobo Developer's Corner | 49 | 08-16-2015 05:20 AM |
Instructions for patching firmware 3.16.0 | GeoffR | Kobo Developer's Corner | 74 | 08-12-2015 02:12 PM |
Instructions for patching firmware 3.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 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 |
Instructions for patching firmware 3.1.1 | GeoffR | Kobo Developer's Corner | 64 | 04-18-2014 01:23 PM |