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 01-24-2015, 03:49 AM   #151
sage79
Enthusiast
sage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of it
 
Posts: 46
Karma: 66500
Join Date: Jan 2011
Device: kobo glo
This is my patch file
http://pastebin.com/Lh8fzDDz
It occours with all epubs, i don't use kepub
I use normal mode reading.
Perhaps the problem is that i remove line-height from css by calibre.
sage79 is offline   Reply With Quote
Old 01-24-2015, 04:29 AM   #152
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 sage79 View Post
This is my patch file
http://pastebin.com/Lh8fzDDz
It occours with all epubs, i don't use kepub
I use normal mode reading.
Perhaps the problem is that i remove line-height from css by calibre.
I have tried your patch on my Glo, but I can't reproduce the problem with the few epubs I've tested, including one where I removed all the line-height properties from the stylesheet.
GeoffR is offline   Reply With Quote
Advert
Old 01-24-2015, 05:14 AM   #153
erikssenmar867
Connoisseur
erikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of light
 
Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
Hi Geoffr, I tried to apply the last `Fix kepub side bearing font cut-off bug` patch, but there's an error: error line 983: malformed replace_string (original string)
Am I doing something wrong?
erikssenmar867 is offline   Reply With Quote
Old 01-24-2015, 05:26 AM   #154
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 erikssenmar867 View Post
Hi Geoffr, I tried to apply the last `Fix kepub side bearing font cut-off bug` patch, but there's an error: error line 983: malformed replace_string (original string)
Am I doing something wrong?
Sorry about that, the patch I posted could only be applied with the new patch32lsb v0.10. I've replaced it with one that works with the older version too.
GeoffR is offline   Reply With Quote
Old 01-24-2015, 05:40 AM   #155
erikssenmar867
Connoisseur
erikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of lighterikssenmar867 is a glorious beacon of light
 
Posts: 58
Karma: 12028
Join Date: Nov 2013
Device: Kobo Aura H2O
it was my fault, i did not understand that.
Thank u very much, now it works
erikssenmar867 is offline   Reply With Quote
Advert
Old 01-25-2015, 02:31 AM   #156
sage79
Enthusiast
sage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of itsage79 has read War And Peace ... all of it
 
Posts: 46
Karma: 66500
Join Date: Jan 2011
Device: kobo glo
I do a firmware reset, reinstalled 3.0.12 installed tar patched and noow it seems all ok
sage79 is offline   Reply With Quote
Old 01-25-2015, 05:11 AM   #157
jshzh
Addict
jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.jshzh could sell banana peel slippers to a Deveel.
 
Posts: 320
Karma: 3394
Join Date: Aug 2009
Device: Pocketbook 602 Pro, Kobo Aura HD, LG G Pad III
Quote:
Originally Posted by GeoffR View Post
It is okay to use Notepad to edit the .patch files.

It is just the files that the firmware itself reads, such as "Kobo eReader.conf", that you should avoid using Notepad for.
Thank you.
jshzh is offline   Reply With Quote
Old 01-30-2015, 03:06 AM   #158
truemarine
Member
truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.
 
Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
Quote:
Originally Posted by GeoffR View Post
Here is a patch to make the line spacing and justification settings selected from the reading settings (Aa) menu take effect in some epubs where they wouldn't work before.

It works by changing the built-in epub stylesheet so that the line spacing and justification settings are overridden at body and paragraph <p> level, instead of just body level. This is similar to what the kepub reader does.

Note: It still won't work on those books where the publisher has used <div> instead of <p> for paragraphs.

Also note: This is not the ideal way to get these settings to take effect, as it can result in some line spacing or justification settings in the book being overridden when they really shouldn't be. The only way to get perfect results is to edit the book and fix the problems at source.

See the note in the patch about commenting out a line if you are using the `ePub adjustable top/bottom margins` or `ePub fixed top/bottom margin` patches, as this patch changes the same part of the stylesheet used by those patches.

Spoiler:
Code:
<Patch>
patch_name = `Enforce user line spacing and justification in ePubs`
patch_enable = `yes`
#
# This patch causes the line spacing and justification settings selected from
# the reading settings (Aa) menu to be applied at body and paragraph level,
# instead of just at body level. This will result in the settings taking effect
# for some books where they wouldn't before, but there will still be some books
# where they still won't take effect, and there may also be some books where
# they do take effect when they shouldn't. (The only way to get perfect results
# is to edit the epub and fix the problems at source.)
#
replace_string = C99AD0, `b\x00o\x00d\x00y\x00 \x00{\x00\n\x00`, `b\x00o\x00d\x00y\x00,\x00p\x00{\x00`
#
# Comment out the following line if the `ePub adjustable top/bottom margin` or
# `ePub fixed top/bottom margin` patches are enabled.
#
replace_string = C99B8E, `p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00 \x00%\x001\x00e\x00m\x00 \x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00 \x00b\x00o\x00d\x00y\x00 \x00{\x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00\n\x00`
</Patch>
Thanks for the patch provided. Is is possible to have control over line spacing and justification seperately? I prefer to have control over line spacing only, for example. In case I really need to override the justification setting, most of the time the epub file needs some modification to itself...
truemarine is offline   Reply With Quote
Old 01-30-2015, 09:36 AM   #159
Maillemom
Connoisseur
Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.Maillemom solves Fermat’s last theorem while doing the crossword.
 
Posts: 76
Karma: 28488
Join Date: Sep 2013
Location: Bensalem, PA
Device: Nook Classic, Nook STG, Nook Color, Kindle, Kobo H2O
Good Morning - I hope someone can help. I am trying to patch my new H2o (version 3.12). I keep getting this message:
E:\\tools\pa321sb.exe: line 249 in 'E:\2.12.0_source\libnickel.so.1.0.0 cannot parse line.

I only want to adjust the top margin.

Edit:
I figured out the above problem but now at the end I get the message:
Patching End
The filename, directory name or volume label syntax is incorrect.
No result.

Does that mean that the patch did not work?

Thanks.

Last edited by Maillemom; 01-30-2015 at 11:05 AM.
Maillemom is offline   Reply With Quote
Old 01-31-2015, 04:06 AM   #160
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 truemarine View Post
Thanks for the patch provided. Is is possible to have control over line spacing and justification seperately? I prefer to have control over line spacing only, for example. In case I really need to override the justification setting, most of the time the epub file needs some modification to itself...
I could make a patch that only forces the line spacing and doesn't affect the justification, but I would need to alter some oter patches to get it to fit. Do you use the fixed or adjustable top/bottom margin patches?

Edit: Here is a patch to replace the `Enforce user line spacing and justification in ePubs` patch which only affects line spacing. You will need to disable the `Unitless ePub line height` and any of the fixed/adjustable top/bottom margin patches to use it though.
Spoiler:
Code:
<Patch>
patch_name = `Enforce user line spacing in ePubs (testing)`
patch_enable = `yes`
#
# Disable the `Unitless ePub line height` patch before enabling this patch.
# (This patch includes the effect of the `Unitless ePub line height` patch.)
#
# This patch is incompatible with the `ePub fixed/adjustable top/bottom
# margin` patches, disable them if using this patch.
#
# This patch causes the line spacing setting selected from the reading settings
# (Aa) menu to be applied at body and paragraph level, instead of just at body
# level. This will result in the line spacing setting taking effect for some
# books where it wouldn't before, but there may still be some books where it
# won't take effect (such as those where the publisher has used <div> instead
# of <p> for paragraphs), and there may also be some books where it does take
# effect when it shouldn't (such as those where the publisher has used <p>
# instead of <h1>, <h2>, etc. for headings). The only way to get perfect
# results is to edit the epub and fix the problems at source.
#
replace_string = C99B3C, `\x20\x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00 \x00%\x001\x00e\x00m\x00 \x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00b\x00o\x00d\x00y\x00,\x00p\x00{\x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00%\x001\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00`
#
replace_string = C99B8C, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00 \x00%\x001\x00e\x00m\x00 \x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `t\x00}\x00 \x00b\x00o\x00d\x00y\x00 \x00{\x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00\n\x00`
</Patch>

Last edited by GeoffR; 01-31-2015 at 04:58 AM. Reason: Added `Enforce user line spacing in ePubs (testing)` patch.
GeoffR is offline   Reply With Quote
Old 01-31-2015, 04:16 AM   #161
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 Maillemom View Post
Good Morning - I hope someone can help. I am trying to patch my new H2o (version 3.12). I keep getting this message:
E:\\tools\pa321sb.exe: line 249 in 'E:\2.12.0_source\libnickel.so.1.0.0 cannot parse line.

I only want to adjust the top margin.

Edit:
I figured out the above problem but now at the end I get the message:
Patching End
The filename, directory name or volume label syntax is incorrect.
No result.

Does that mean that the patch did not work?

Thanks.
I don't know what is going on there, but something is messed up. Can you post the whole screen output you get after running 3.12.0.bat?

BTW there is no way to adjust the top margin of kepubs. For epubs you can use the `ePub adjustable top/bottom margin` or `ePub fixed top/bottom margin` patches.

Last edited by GeoffR; 01-31-2015 at 04:58 AM.
GeoffR is offline   Reply With Quote
Old 01-31-2015, 07:01 AM   #162
truemarine
Member
truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.truemarine has a complete set of Star Wars action figures.
 
Posts: 20
Karma: 374
Join Date: Dec 2013
Device: K4B, Kobo Aura H2O
Talking

Quote:
Originally Posted by GeoffR View Post
I could make a patch that only forces the line spacing and doesn't affect the justification, but I would need to alter some oter patches to get it to fit. Do you use the fixed or adjustable top/bottom margin patches?

Edit: Here is a patch to replace the `Enforce user line spacing and justification in ePubs` patch which only affects line spacing. You will need to disable the `Unitless ePub line height` and any of the fixed/adjustable top/bottom margin patches to use it though.
Spoiler:
Code:
<Patch>
patch_name = `Enforce user line spacing in ePubs (testing)`
patch_enable = `yes`
#
# Disable the `Unitless ePub line height` patch before enabling this patch.
# (This patch includes the effect of the `Unitless ePub line height` patch.)
#
# This patch is incompatible with the `ePub fixed/adjustable top/bottom
# margin` patches, disable them if using this patch.
#
# This patch causes the line spacing setting selected from the reading settings
# (Aa) menu to be applied at body and paragraph level, instead of just at body
# level. This will result in the line spacing setting taking effect for some
# books where it wouldn't before, but there may still be some books where it
# won't take effect (such as those where the publisher has used <div> instead
# of <p> for paragraphs), and there may also be some books where it does take
# effect when it shouldn't (such as those where the publisher has used <p>
# instead of <h1>, <h2>, etc. for headings). The only way to get perfect
# results is to edit the epub and fix the problems at source.
#
replace_string = C99B3C, `\x20\x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00 \x00%\x001\x00e\x00m\x00 \x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00b\x00o\x00d\x00y\x00,\x00p\x00{\x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00%\x001\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00`
#
replace_string = C99B8C, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00 \x00%\x001\x00e\x00m\x00 \x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `t\x00}\x00 \x00b\x00o\x00d\x00y\x00 \x00{\x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00 \x00\n\x00`
</Patch>
Thank you so much!
I do not use the fixed or adjustable top/bottom margin patches. So the patch above is exactly what I want.
truemarine is offline   Reply With Quote
Old 02-06-2015, 11:07 PM   #163
karamasova
Member
karamasova began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Oct 2014
Device: h2o
Quote:
Originally Posted by JSWolf View Post
Here is the screen of my H2O using my footer setting in the post at https://www.mobileread.com/forums/sho...5&postcount=37

JSWolf, Could you let me know how you reduced(or hid) the top margin(Title) of page?
Attached Thumbnails
Click image for larger version

Name:	screen_002.jpg
Views:	272
Size:	469.0 KB
ID:	134562  

Last edited by karamasova; 02-06-2015 at 11:17 PM.
karamasova is offline   Reply With Quote
Old 02-06-2015, 11:48 PM   #164
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,528
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by karamasova View Post
JSWolf, Could you let me know how you reduced(or hid) the top margin(Title) of page?
I read using ADE so there is no header.
JSWolf is offline   Reply With Quote
Old 02-07-2015, 08:47 AM   #165
booklover6
Grand Sorcerer
booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.booklover6 ought to be getting tired of karma fortunes by now.
 
booklover6's Avatar
 
Posts: 6,545
Karma: 14008730
Join Date: May 2008
Location: PA (USA)
Device: Kobo Clara, 2E, Libre 1, PW4, PW5, 2022 Kindle, Kobo Libre Colour
Quote:
Originally Posted by karamasova View Post
JSWolf, Could you let me know how you reduced(or hid) the top margin(Title) of page?
To clarify his answer, he is not using KePubs (direct from Kobo, or modified via a plugin), he is using ePubs.
booklover6 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions for patching firmware 3.11.0 GeoffR Kobo Developer's Corner 226 06-01-2015 05:32 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.8.0 GeoffR Kobo Developer's Corner 92 10-22-2014 07:22 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


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


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