![]() |
#31 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
Edit: Also check that you have set patch_enabled = `yes`. This patch is not enabled by default, since the font size choices in the unpatched firmware are now much better than they used to be. Last edited by GeoffR; 06-17-2015 at 02:03 AM. Reason: ... check patch_enabled = `yes` |
|
![]() |
![]() |
![]() |
#32 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 82624
Join Date: May 2013
Device: Kobo Forma, Kobo Aura One, Kobo Aura HD, Kindle, Amazon Fire HD
|
Thanks mate!
|
![]() |
![]() |
![]() |
#33 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Could someone with a Mac help me with this?
In Linux I can set the permissions of NEWFILE to be the same as the permissions of OLDFILE with the command: Code:
chmod --reference=OLDFILE NEWFILE |
![]() |
![]() |
![]() |
#34 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047190
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@GeoffR:
OS X's chmod version doesn't seem to support the reference flag, so I'd go with a stat+chmod combo, something like: Code:
chmod $(stat -f %Lp OLDFILE) NEWFILE Last edited by NiLuJe; 06-18-2015 at 02:29 PM. Reason: %a doesn't include the sticky bits, so kill the %Mp from the OS X example to make them match |
![]() |
![]() |
![]() |
#35 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
|
![]() |
![]() |
![]() |
#36 |
Connoisseur
![]() Posts: 50
Karma: 10
Join Date: Jun 2015
Location: Turin, Italy
Device: Kindle Oasis 2, Kindle Voyage 3G, Kobo Aura H2O, iPad Mini Retina
|
Thanks to all who help me upgrading my Aura H2O
I've installed the 3.16 Mark4 and then patched it Work perfectly! But now is off, i use always the Glo HD... is so perfect for me ![]() |
![]() |
![]() |
![]() |
#37 | |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 197
Karma: 82624
Join Date: May 2013
Device: Kobo Forma, Kobo Aura One, Kobo Aura HD, Kindle, Amazon Fire HD
|
Quote:
Last edited by forster01; 06-19-2015 at 04:48 PM. |
|
![]() |
![]() |
![]() |
#38 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Quote:
But if that is not what you mean then I don't know what is happening, it works on my Glo and from what I can tell in the code the AuraHD should start at the same size as the Glo, but I have no way to test on any device other than a Glo. To test if the patch is active you can try counting the number of positions on the slider, i.e. start at the smallest size and press + until you reach the end. If the patch has been applied with the size starting at 18 then there should be 44 positions on the AuraHD, or 50 if the patch hasn't been applied. Edit: Another possibility is that the The AuraHD and H2O are using the GloHD settings, if that was the case then the slider would have 48 positions, starting at size 14. Edit2: Also the best way to check for sure what font size has been set by the slider is to look at the value of readingFontSize that gets saved in the device's configuration file, as the publisher can change the base font size for the book. Edit3: After looking at what you wrote again, it might just be that the patch doesn't do what you think it does. All this patch does is change the font sizes that can be selected from the slider. The font size you select from the slider is not necessarily the size that appears on the screen, as that depends on the book's stylesheet. So if you select a font size of 18px, one book might display it as 18px, another might display it as 24px, another as 15px, depending on what base size the publisher has used for the book. If you are trying to get the fonts to be the same size in all your books then you can't do that with a patch, you would need to edit each book and make the base font size to the same value. Last edited by GeoffR; 06-20-2015 at 10:40 AM. Reason: ... it might just be that the patch doesn't do what you think it does ... |
|
![]() |
![]() |
![]() |
#39 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
`Enforce user line spacing in ePubs` patch
I've updated the attachment to post #1 to include the `Enforce user line spacing in ePubs` patch, however this patch can no longer be used together with the `ePub fixed/adjustable top/bottom margins` patch, because I couldn't fit both patches in the available space for the EPUB stylesheet.
I've attached a copy of the patch here for those who want to paste it into their existing libnickel.so.1.0.0.patch file instead of downloading the zip attached to post #1: Spoiler:
(I don't know if this patch is really very useful, because the way the stylesheet cascade works in the EPUB reader means the line spacing set in th book's stylesheet by the publisher will still have priority in most cases. The way that Calibre 'flattens' the stylesheet during conversion can also result in the line spacing becoming fixed so that this patch can't override it, even if the original book didn't have the problem.) Last edited by GeoffR; 06-26-2015 at 01:52 PM. Reason: The way that Calibre 'flattens' the stylesheet ... |
![]() |
![]() |
![]() |
#40 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
Patched Dutch hyphenation dictionary
The Dutch hyphenation dictionary hyph_nl.dic that comes with the firmware contains two faults:
1. Although marked as UTF-8, hyph_nl.dic is actually encoded as ISO8859-1. I am not sure if this creates an actual problem in practice, but my guess is it could cause problems for words which contain non-ascii characters. The hyphenation dictionaries for all other languages are correctly encoded as UTF-8. 2. The LEFTHYPHENMIN and RIGHTHYPHENMIN settings are missing from hyph_nl.dic. This probably means that these settings default to 2, which results in extremely aggressive hyphenation, and is more likely to expose any faults in the dictionary or hyphenation algorithms. Most other languages have them set to 5. AFAIK these faults have been present in the hyph_nl.dic in all firmware versions, but with the changes to the KEPUB hyphenation in firmware 3.16.0 they may have become more noticable. I've attached a copy of a patched hyph_nl.dic which fixes these two problems. Because the hyph_nl.dic that comes with the Kobo firmware is identical (apart from being incorrectly marked as UTF-8) to the one available from OpenTaal.org I think it is okay to distribute a modified version from OpenTaal.org here. I have included the licence in Dutch and English. The only modifications I have made to hyph_nl.dic are to encode it as UTF-8 using iconv, and to add LEFTHYPHENMIN 5 and RIGHTHYPHENMIN 5 lines. All you need to do to replace the hyph_nl.dic on your device with the patched one is to extract the attached ZIP file and copy the KoboRoot.tgz it contains into the.kobo directiory of your device and safely eject. It is safe to use this file on older firmware versions too. Edit: Note that updating the firmware replaces this dictionary with the original faulty one, so if you want to continue using this dictionary then you'll need to re-install it after each firmware update. Last edited by GeoffR; 08-26-2015 at 09:43 PM. Reason: ... need to re-install it after each firmware update. |
![]() |
![]() |
![]() |
#41 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,958
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#42 |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Something strange, in kepub, font Amasis, when I put the linehight to low or to high, the latest line of txt is not displayed well, it looks like the footer is shifting over it.
I do use the showPageHeader=false line in the conf. file. Is it because I made the page xx of xx a little bit larger ? When I set the linehight a bit by the slider you can see -------- at the bottom line, these are the top of the letters of the next line that is displayed on the next page, when I set the slider totally to the left, about 75% of the last line is visible, like a half s, a half e. The new page shows the first line, and what is partially displayed on the end of the previous page,is cut off the first line. If don't place the lineheight exact right,this is on every book. I use all the default values in the patch for footer height, only the line for the txt height is changed, that code is: # Replacement caption font size value for GloHD: replace_string = 00C5, `font-size: 30px;`, `font-size: 33px;` picture 1 shows part of the txt of the next page at the bottom, picture 2 shows the cut of first line. Last edited by Nick_1964; 07-03-2015 at 08:03 AM. |
![]() |
![]() |
![]() |
#43 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
|
This looks to me like the KEPUB page break bug that happens when the line spacing is too narrow. I think the only solution is to increase the line spacing, or use a different font, or use the EPUB reader instead.
|
![]() |
![]() |
![]() |
#44 | |
Bookworm
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 975
Karma: 768585
Join Date: Aug 2010
Location: Netherlands
Device: Sony prs-650, Kobo Glo HD (2x), Kobo Glo
|
Quote:
The fact is that the epub reader is so much slower then kepub. I try if I can find options in the KoboTouchExtended driver to add it ( if that helps) There is no way of fixing this bug ?? I can also look it up in the config file to see what linehight is the best. Because when I change font, to lets say Malabar, the linehight used with amasis isn't correct to. So switching fonts does not much, I only have to adapt the lineheight again,it seems not font related. |
|
![]() |
![]() |
![]() |
#45 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
I get this problem too, if I start fiddling with line spacing or font size. I am using side loaded kepubs with Charlis SIL modified larger. (With header and footer intact). If I lessen the line spacing I normally use, the bottom cut off happens. So I generally just leave it alone.
|
![]() |
![]() |
![]() |
|
![]() |
||||
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.11.0 | GeoffR | Kobo Developer's Corner | 226 | 06-01-2015 05:32 AM |
Instructions for patching firmware 3.12.1 | GeoffR | Kobo Developer's Corner | 56 | 03-20-2015 05:14 AM |
Instructions for patching firmware 3.12.0 | GeoffR | Kobo Developer's Corner | 165 | 02-07-2015 09:22 AM |