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-01-2015, 10:58 PM   #106
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
Quote:
Originally Posted by Nick_1964 View Post
Later I found out that there is also an page-template.xpgt
So I guess everything patched in the reader, every extra rule with !important added to css will be overruled by the settings in misc: page-template.xpgt ??
Nick, could you send me a copy of the page-template.xpgt file that caused the problem? I have tried a number of the ones from book I have, but I can't find one that has any effect on the @page margins: they only seem to affect the body margins, so the `ePub fixed/adjustable top/bottom margins` patch still works.

Edit: Don't worry, I see the margins from the XPGT file are added to, rather than overriding, the @page margin from the CSS stylesheet, it is just that the ones I had tried all had very small margins set in the XPGT file so I didn't notice.

Last edited by GeoffR; 11-01-2015 at 11:26 PM.
GeoffR is offline   Reply With Quote
Old 11-02-2015, 07:02 AM   #107
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
This .xpgt file is a terrible one.. puts almost a cm margins on all sides..
Even with @page { margin: 0.00em 0.00em 0.00em 0.00em!important; } in the normal .css it just overrides it..

Spoiler:

<ade:template xmlns="http://www.w3.org/1999/xhtml" xmlns:ade="http://ns.adobe.com/2006/ade"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<fo:layout-master-set>

<fo:simple-page-master master-name="single_column">
<fo:region-body margin-bottom="1.5em" margin-top="1.5em" margin-left="1.5em" margin-right="1.5em"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="two_column"
margin-bottom="1em" margin-top="1em" margin-left="1em" margin-right="1em">
<fo:region-body column-count="2" column-gap="10pt"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="two_column_head"
margin-bottom="1em" margin-top="1em" margin-left="1em" margin-right="1em">
<fo:region-before extent="8.3em"/>
<fo:region-body column-count="2" column-gap="10pt"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="three_column"
margin-bottom="0.5em" margin-top="0.5em" margin-left="0.5em" margin-right="0.5em">
<fo:region-body column-count="3" column-gap="10pt"/>
</fo:simple-page-master>

<fo:simple-page-master master-name="three_column_head"
margin-bottom="0.5em" margin-top="0.5em" margin-left="0.5em" margin-right="0.5em">
<fo:region-before extent="8.3em"/>
<fo:region-body column-count="3" column-gap="10pt"/>
</fo:simple-page-master>

<foage-sequence-master>
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="three_column_head" page-position="first" ade:min-page-width="80em"/>
<fo:conditional-page-master-reference master-reference="three_column" ade:min-page-width="80em"/>
<fo:conditional-page-master-reference master-reference="two_column_head" page-position="first" ade:min-page-width="50em"/>
<fo:conditional-page-master-reference master-reference="two_column" ade:min-page-width="50em"/>
<fo:conditional-page-master-reference master-reference="single_column"/>
</fo:repeatable-page-master-alternatives>
</foage-sequence-master>

</fo:layout-master-set>

<ade:style>
<ade:styling-rule selector=".title_box" display="adobe-other-region" adobe-region="xsl-region-before"/>
</ade:style>

</ade:template>

I have asked the maker from the KoboTouchExtended driver if he can make something to remove them while transferring a book,but that only works when sideloading.. i am in the hospital for 4 days a week, 8 hours a day so I buy many books... it isn't that simple to edit books in the hospital as i am limited to about 2 meters from the machine,when a patient is there that is wireless monitored there are no laptops allowed at all.
So if it could be patched,it is great..because a very big part of all other epub related patches simply don't work when the xpgt file is present... (as in,when there are different margins set in it)
In practice, almost 60% of Dutch ebooks are made by the same firm..who just put the file in it, the epub is made with workflow generated from word documents.. paragraps are like P1, p2, p3 so a .css file is very large because all margins are there for every p1,p2 etc... so if it is possible to patch it on the reader..

Last edited by Nick_1964; 11-02-2015 at 10:55 AM.
Nick_1964 is offline   Reply With Quote
Advert
Old 11-09-2015, 06:06 AM   #108
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
`Ignore ePub Adobe XPGT stylesheet (page-template.xpgt)`

Here is a patch to make the ePub reader ignore any Adobe XPGT stylesheets.

These stylesheets are commonly named page-template.xpgt and often contain page margins. The problem with them is that their margins are added to the @page margins set in the CSS stylsheet, but some readers ignore the XPGT stylesheet, so readers which notice the XPGT stylesheet will end up with larger margins than readers which don't.

I can't find a clean way to prevent the XPGT stylesheet file being loaded, so this patch tries instead to prevent the contents from being recognised. A better approach would be to remove the XPGT stylesheet altogether before sideloading the ePub, which can be done easily using the Modify ePub plugin in Calibre, but the patch has the advantage that it should work with DRM ePubs too.

Edit: But the Modify ePub plugin can also remove the margins from the XPGT stylesheet without removing the stylesheet altogether.

I haven't tested this patch much, but it seems to work as I expect. It is a multi-version patch and should word with firmware 3.3.0 to 3.18.0, and maybe future firmware versions too.

Paste into librmsdk.so.1.0.0.patch
Spoiler:
Code:
<Patch>
patch_name = `Ignore ePub Adobe XPGT stylesheet (page-template.xpgt)`
patch_enable = `yes`
# Multi-version patch: 3.3.0 - 3.18.0+
find_base_address = `\0template\0`
replace_string = 0001, `t`, `_`
</Patch>

Last edited by GeoffR; 11-10-2015 at 12:28 AM. Reason: But the Modify ePub plugin ...
GeoffR is offline   Reply With Quote
Old 11-09-2015, 06:07 AM   #109
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by GeoffR View Post
Here is a patch to make the ePub reader ignore any Adobe XPGT stylesheets.

These stylesheets are commonly named page-template.xpgt and often contain page margins. The problem with them is that their margins are added to the @page margins set in the CSS stylsheet, but some readers ignore the XPGT stylesheet, so readers which notice the XPGT stylesheet will end up with larger margins than readers which don't.

I can't find a clean way to prevent the XPGT stylesheet file being loaded, so this patch tries instead to prevent the contents from being recognised. A better approach would be to remove the XPGT stylesheet altogether before sideloading the ePub, which can be done easily using the Modify ePub plugin in Calibre, but the patch has the advantage that it should work with DRM ePubs too.

I haven't tested this patch much, but it seems to work as I expect. It is a multi-version patch and should word with firmware 3.3.0 to 3.18.0, and maybe future firmware versions too.

Paste into librmsdk.so.1.0.0.patch
Spoiler:
Code:
<Patch>
patch_name = `Ignore ePub Adobe XPGT stylesheet (page-template.xpgt)`
patch_enable = `yes`
# Multi-version patch: 3.3.0 - 3.18.0+
find_base_address = `\0template\0`
replace_string = 0001, `t`, `_`
</Patch>
Thank you so much !!
Nick_1964 is offline   Reply With Quote
Old 11-10-2015, 06:51 AM   #110
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
New `ePub fixed/adjustable top/bottom margins` patch

Here is a new `ePub fixed/adjustable top/bottom margins` patch if you want to try it out. The changes only affect the adjustable margins.

* The adjustable margin size is now calculated to quarter-pixel accuracy. This allows a closer match between the size of the adjustable top/bottom margins and the left/right margins set by the slider on the Glo/Aura and AuraHD/H2O/GloHD devices. (e.g. 30 quarter-pixels = 7.5px is a better approximation for 1% of the Glo's 758px screen width than 7px or 8px which could be set in the old patch.)

* Option to subtract a fixed number of pixels from the adjustable top/bottom margin to compensate for the built-in top margin that can't be removed from normal reading mode (fullScreenReading=false)

The old patch calculated the top/bottom margin as A * B where A is the size (in % of screen width) of the left/right margin set by the slider; and B the number of pixels (step-size) set in the patch.

The new patch calculates the top/bottom margin as A * B / 4 - C (rounded towards zero, or set to zero if the result is negative) where A and B are as before but B in quarter-pixels; and C is the size of the device's built-in top margin (use zero for full-screen mode) set in the patch.

As before, the final margins can be affected by the book's stylesheet. You might want to remove the body left/right margins set in the book's CSS stylesheet and any page margins set in the book's Adobe XPGT stylesheet.

Firmware 3.18.0 only, paste into libnickel.so.1.0.0.patch:
Spoiler:
Code:
<Patch>
patch_name = `ePub fixed/adjustable top/bottom margins`
patch_enable = `yes`
#
# This patch sets the @page margin sizes in epubs, overriding any @page margin
# set in the book's CSS stylesheet (but not in the XPGT stylesheet, see below).
#
# By default the top and bottom margins are set to be adjustable, their size
# similar to the left/right margin size set by the adjustment slider. There
# are options to set the top and/or bottom margin to a fixed size instead.
#
# Note that @page margins are seperate from (and overlap) both the body margins
# set in the book and the left/right margins set from the adjustment slider,
# and are added to any page margins set in the Adobe XPGT stylesheet if the
# book has one (e.g. page-template.xpgt). For this reason you might want to
# consider using the Modify ePub Calibre plugin to remove any body margins and
# XPGT stylesheet margins before sideloading the book, or perhaps enabling the
# `Ignore ePub Adobe XPGT stylesheet (page-template.xpgt)` patch.
#
# Also note that a side-effect of this patch is that the body padding-bottom is
# removed from the built-in stylesheet, which means that there will no longer
# be a blank line added automatically at the end of chapters.
#
# See at the bottom of the patch for replacement values that can be used to
# tune the size of the margins to suit different devices and reading modes.
#
#
# Push an extra 8 bytes of scratch space onto the stack
replace_bytes = 45EAD2, BD B0, BF B0
replace_bytes = 45EAD8, 02 AF, 04 AF
# Save this value for the third stack argument of our later function call
replace_bytes = 45EE3A, AD F8 04 20, 02 92 01 92
# getReadingLineHeight(...) --> getReadingLeftMargin(...)
replace_bytes = 45EE88, B6 F7 A8 EA, 9A F7 62 E8 
# QString.arg(double, ...) --> QString.arg(int64, ...)
replace_bytes = 45EE8C, 20 22 4F F0 FF 33, 00 23 01 22 0A 21
replace_bytes = 45EE92, 07 F1 50 0A, 00 93 01 91
replace_bytes = 45EE96, AD F8 04 20 00 93, 42 43 92 08 01 3A
replace_bytes = 45EE9C, 50 46 29 46, B8 BF 00 22
replace_bytes = 45EEA0, 00 22 67 23, 18 A8 29 46
replace_bytes = 45EEA4, A4 F7 66 EC, 99 F7 1C EC
# mov r1,sl; --> adds r1,sp,#96
replace_bytes = 45EEAA, 51 46, 18 A9
# (Remember to pop scratch space if necessary)
#
#      padding-bottom: %1em !important;\n
# --> }@page{margin:%1px 00px %1px}body{
replace_string = B4FDC0, `\x20\0p\0a\0d\0d\0i\0n\0g\0-\0b\0o\0t\0t\0o\0m\0:\0 \0%\01\0e\0m\0 \0!\0i\0m\0p\0o\0r\0t\0a\0n\0t\0;\0\n\0`, `}\0@\0p\0a\0g\0e\0{\0m\0a\0r\0g\0i\0n\0:\0%\01\0p\0x\0 \00\00\0p\0x\0 \0%\01\0p\0x\0}\0b\0o\0d\0y\0{\0`
#
#
# *** Replacement values start here, don't change anything above ***
#
# Optional replacement value: Uncomment for a FIXED TOP MARGIN size in px,
# default 25px. Replacement value is margin size, two digits separated by \0
# (Leave commented out for an adjustable top margin.)
#replace_string = B4FDDC, `%\01`, `2\05`
#
# Optional replacement value: Uncomment for a FIXED BOTTOM MARGIN size in px,
# default 00px. Replacement value is margin size, two digits separated by \0
# (Leave commented out for an adjustable bottom margin.)
#replace_string = B4FDF0, `%\01`, `0\00`
#
# Optional replacement value: Uncomment to set the minimum LEFT/RIGHT MARGIN
# size in px, default 15px. (This margin will overlap the left/right margin
# set with the adjustment slider, not add to it.) Replacement value is margin
# size, two digits separated by \0
#replace_string = B4FDE6, `0\00`, `1\05`
#
# Replacement value: Sets the step-size of the ADJUSTABLE top/bottom margin
# (if any) in quarter-pixels. These suggested values should be very close to
# the 1% step size of the left/right margins set by the slider. Larger values
# will make the top/bottom margins larger than the left/right margins.
# Suggested values: 24 (Touch/Mini), 30 (Glo/Aura), 43 (AuraHD/H2O/GloHD)
replace_int = 45EE8E, 1, 30
#
# Replacement value: Set this to the size of the device's built-in top margin,
# in pixels. This value is subtracted from the adjustable top/bottom margin
# (if any) to compensate for any unremovable built-in top margin.
# Suggested values are:
#   0 For full-screen reading mode (fullScreenReading=true, all devices)
#  15 for normal reading mode (Glo/GloHD, not sure for other devices)
replace_int = 45EE9A, 1, 0
</Patch>

Last edited by GeoffR; 11-10-2015 at 06:55 AM. Reason: corrected patch comments
GeoffR is offline   Reply With Quote
Advert
Old 11-15-2015, 02:11 PM   #111
Jukets
Member
Jukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to behold
 
Posts: 15
Karma: 11514
Join Date: Jul 2013
Device: Kobo glo
Hi, guys. What should I do if I forgot to upgrade glo to 3.18 and patched it? Glo stucks at five black squares running around. PC not responding device/
Jukets is offline   Reply With Quote
Old 11-15-2015, 02:25 PM   #112
Jukets
Member
Jukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to beholdJukets is a marvel to behold
 
Posts: 15
Karma: 11514
Join Date: Jul 2013
Device: Kobo glo
question is closed, I found how to hard reset (push light and power buttons together)
Jukets is offline   Reply With Quote
Old 11-17-2015, 09:22 AM   #113
AMF
Enthusiast
AMF began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Jan 2015
Device: Kobo Glo
Thanks!

I love my Kobo Glo, but detested the fact that searches default to the Bookstore!
AMF is offline   Reply With Quote
Old 11-17-2015, 09:51 AM   #114
Nick_1964
Bookworm
Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.Nick_1964 ought to be getting tired of karma fortunes by now.
 
Nick_1964's Avatar
 
Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
Quote:
Originally Posted by AMF View Post
I love my Kobo Glo, but detested the fact that searches default to the Bookstore!
There is a patch of that for ages !! (search in library by default patch)
Nick_1964 is offline   Reply With Quote
Old 11-18-2015, 02:10 AM   #115
meeera
Grand Sorcerer
meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.meeera ought to be getting tired of karma fortunes by now.
 
meeera's Avatar
 
Posts: 5,817
Karma: 68407974
Join Date: Dec 2011
Location: Australia
Device: Kobo Libra 2, iPadMini4, iPad4, MBP; support other Kobo/Kindles
Quote:
Originally Posted by AMF View Post
I love my Kobo Glo, but detested the fact that searches default to the Bookstore!
Only if you're searching from the home page. If you search from the Library, it defaults to searching your library; and if you search from inside a book, it defaults to searching that book.
meeera is offline   Reply With Quote
Old 11-19-2015, 08:19 PM   #116
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
`ePub disable built-in body padding-bottom`

The built-in ePub stylesheet has the following line:
Code:
body { padding-bottom: %1em !important; }
where %1 is the currently selected line height calculated from the position of the line spacing slider.

This has the effect of adding a blank line to the end of the chapter (assuming the book has been created in the normal way with files split at chapter boundaries), and if the last line of text in the chapter would have fallen on the last line of the page then it gets pushed to the next page. More than one line might get pushed to the next page if the book has widows/orphans set higher than 1, or perhaps in some other situations such as if the body font-size is larger than the paragraph font-size.

The `ePub fixed/adjustable top/bottom margins` and `Enforce user line spacing and justification in ePubs` patches remove this line from the built-in stylesheet to make room for other things, but if you don't use those patches and want to prevent the last line of the chapter being pushed to the next page, then the following patch can be used to disable it:

Multi-version patch, paste into libnickel.so.1.0.0.patch:
Spoiler:
Code:
<Patch>
patch_name = `ePub disable built-in body padding-bottom`  
patch_enable = `yes`
# Multi-version patch: 3.3.0 - 3.18.0+
#
# The built-in ePub stylesheet adds a line of padding at the bottom of the
# body element, to prevent the chapter ending on the last line of a page.
# This patch disables that stylesheet entry.
#
# This patch is not compatible with `ePub fixed/adjustable top/bottom margins`
# or `Enforce user line spacing and justification in ePubs` patches, which
# already remove this stylesheet entry to make room for other things.
#
#      padding-bottom: %1em !important;\n
# -->  _adding-bottom: %1em !important;\n
#
find_base_address = `\x20\0p\0a\0d\0d\0i\0n\0g\0-\0b\0o\0t\0t\0o\0m\0:\0 \0%\01\0e\0m\0`
replace_string = 0002, `p`, `_`
</Patch>


Edit: These screenshots show the last page(s) of an ePub chapter (with orphans:1;widows:1;) settings are unchanged except for the above patch:

Unpatched:
Click image for larger version

Name:	unpatched1.png
Views:	517
Size:	128.2 KB
ID:	143919 Click image for larger version

Name:	unpatched2.png
Views:	530
Size:	6.2 KB
ID:	143920

Patched:
Click image for larger version

Name:	patched1.png
Views:	523
Size:	129.7 KB
ID:	143921

Last edited by GeoffR; 11-20-2015 at 12:42 AM. Reason: Added screenshots
GeoffR is offline   Reply With Quote
Old 11-20-2015, 06:06 AM   #117
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,771
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Because of the padding patch, doesn't that cause the entire CSS to be ignored since it's now an error? Would it not be better to patch out the %1em to 0em and remove !important instead?
JSWolf is offline   Reply With Quote
Old 11-20-2015, 06:37 AM   #118
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by JSWolf View Post
Because of the padding patch, doesn't that cause the entire CSS to be ignored since it's now an error? Would it not be better to patch out the %1em to 0em and remove !important instead?
No, the errors that cause problems are in structure. Adding an unknown attribute shouldn't cause a problem. Plus, the way firmware will apply this CSS is different to the in-book stylesheets, so errors in either are unlikely to cause a problem in the other. And finally, by renaming the attribute, the "!important" will mean any padding-bottom in the book won't be overridden.
davidfor is offline   Reply With Quote
Old 11-20-2015, 09:26 AM   #119
AMF
Enthusiast
AMF began at the beginning.
 
Posts: 42
Karma: 10
Join Date: Jan 2015
Device: Kobo Glo
Quote:
Originally Posted by Nick_1964 View Post
There is a patch of that for ages !! (search in library by default patch)
That's why I love this Forum!!!
AMF is offline   Reply With Quote
Old 11-21-2015, 04:03 PM   #120
mortimer7
Connoisseur
mortimer7 has learned how to read e-booksmortimer7 has learned how to read e-booksmortimer7 has learned how to read e-booksmortimer7 has learned how to read e-booksmortimer7 has learned how to read e-booksmortimer7 has learned how to read e-booksmortimer7 has learned how to read e-books
 
Posts: 70
Karma: 798
Join Date: Apr 2012
Device: iLiad, Kobo Aura 6"
i have enabled the "Custom page refresh options (1,2,4,8,16,32,64)" but it doesn't work on my Aura 3.18. it still has only "1,5,10,Chapter"

Code:
$ ./3.18.0.sh 
Extracting files to patch from 3.18.0_source/kobo-update-3.18.0.zip ...
./usr/local/Kobo/libnickel.so.1.0.0
./usr/local/Kobo/librmsdk.so.1.0.0
./usr/local/Kobo/libadobe.so
Read 14739440 bytes from input file '/tmp/patch32lsb_UjxSGdxq/original/./usr/local/Kobo/libnickel.so.1.0.0'
Ignoring disabled patch `Disable reading footer`
find_base_address: unique string at 00C2E1D0
find_base_address: unique string at 00C2E2F4
Applied patch `Custom reading footer style`
Ignoring disabled patch `My 10 line spacing values`
Ignoring disabled patch `My 15 line spacing values`
Ignoring disabled patch `Custom left & right margins`
Ignoring disabled patch `Custom font sizes`
Applied 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 `Custom page refresh options (1,2,3,...,12)`
Applied patch `Custom page refresh options (1,2,4,8,16,32,64)`
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`
Ignoring disabled patch `Compact homepage layout (Glo only)`
Ignoring disabled patch `Compact homepage layout (Aura only)`
Ignoring disabled patch `Remove white borders from homescreen tile book covers`
find_base_address: unique string at 00B86534
Applied patch `Custom footer`
Ignoring disabled patch `Custom Sleep/Power-off timeouts`
Ignoring disabled patch `Set kepub hyphenation`
Ignoring disabled patch `Fix kepub side bearing font cut-off bug`
Ignoring disabled patch `KePub zero body margin/padding`
Ignoring disabled patch `Force user line spacing in KePubs`
Ignoring disabled patch `Enforce user line spacing and justification in ePubs`
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 `Disable pinch-to-zoom font resizing`
Applied patch `Always display chapter name on navigation menu`
Ignoring disabled patch `Change dicthtml strings to micthtml`
Wrote 14739440 bytes to output file '/tmp/patch32lsb_UjxSGdxq/patched/./usr/local/Kobo/libnickel.so.1.0.0'
Read 258304 bytes from input file '/tmp/patch32lsb_UjxSGdxq/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 258304 bytes to output file '/tmp/patch32lsb_UjxSGdxq/patched/./usr/local/Kobo/libadobe.so'
Read 7437684 bytes from input file '/tmp/patch32lsb_UjxSGdxq/original/./usr/local/Kobo/librmsdk.so.1.0.0'
Applied 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 book internal CSS stylesheet`
Ignoring disabled patch `Ignore book TOC navpoints`
Wrote 7437684 bytes to output file '/tmp/patch32lsb_UjxSGdxq/patched/./usr/local/Kobo/librmsdk.so.1.0.0'
Creating KoboRoot.tgz ...
./usr/local/Kobo/libnickel.so.1.0.0
./usr/local/Kobo/libadobe.so
./usr/local/Kobo/librmsdk.so.1.0.0
Cleaning up /tmp/patch32lsb_UjxSGdxq
mortimer7 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.15.0 GeoffR Kobo Developer's Corner 146 05-24-2016 06:10 AM
Instructions for patching firmware 3.17.3 GeoffR Kobo Developer's Corner 60 09-17-2015 05:35 PM
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.10 GeoffR Kobo Developer's Corner 12 08-14-2015 03:40 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 02:38 AM.


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