08-26-2013, 05:16 PM | #91 |
Bibliophagist
Posts: 35,401
Karma: 145435140
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
08-26-2013, 06:07 PM | #92 |
Evangelist
Posts: 467
Karma: 369018
Join Date: Nov 2010
Device: BL Alita/Mimas/Ares, OB Note2/Note, KA One/H2O/HD, S PRS T2/T1, PB 902
|
|
Advert | |
|
08-26-2013, 06:13 PM | #93 |
Evangelist
Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
|
08-26-2013, 09:52 PM | #94 |
Addict
Posts: 255
Karma: 1151364
Join Date: Aug 2009
Device: Aura HD and H2O
|
As Anak commented, I'm not clear on what the "Margins fine tuning" values represent. Does anyone know what these do?
Code:
# Left margin replace_int = 848E86, 0, 10 # Top margin replace_int = 848E88, 0, 10 |
08-26-2013, 09:57 PM | #95 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
I haven't tried but I have a hunch it set's the "origin" for the top left corner of the screen.
|
Advert | |
|
08-26-2013, 10:00 PM | #96 |
Enthusiast
Posts: 35
Karma: 4244
Join Date: Aug 2011
Location: USA
Device: Kobo Aura HD, Kobo Touch
|
Running version 7 of the patcher. I get the following error for either line 10 or 12 of the conf file.
-------------------------------- Kobo Patch Generator ver. 1.0 (c) 2013 MZ Loading config file ... OK Checking config syntax ... Syntax error in config at line 12 ---------------------------------- line 12 is (only removed '#' from downloaded version): replace_zlib = 1205FF4, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 40;\n}\n\nReadingFooter[deviceCodeName="kraken"], \nReadingFooter[deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 110;\n}\n\nReadingFooter[deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 20;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[deviceCodeName="kraken"], \n[deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `* {\n\theight: 30px;\n\tfont-size: 25px;\n}\n\n` line 10 was only modified to put the comment on the front but it has same error message if not commented out. What is going wrong here? |
08-26-2013, 10:24 PM | #97 |
Grand Sorcerer
Posts: 12,166
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
|
You need the CURRENT version of kpg; you are using 1.0; the 07 patch includes version 1.3.
|
08-27-2013, 05:28 AM | #98 |
Traumatized
Posts: 68
Karma: 175722
Join Date: Oct 2009
Device: paper, Kobo Glue
|
Does anyone know how to contact the patcher's author? (I dont speak russian so hard for me to register on his board)
I'd like to sent to him some requests like to start new ebooks always from page 1 (regardless TOCs), to force style like custom fonts and line spacing, to unlock restricted dictionaries, ect... Last edited by byblo; 08-27-2013 at 05:30 AM. |
08-27-2013, 09:46 AM | #99 |
Watching the Sky
Posts: 234
Karma: 634112
Join Date: Sep 2012
Location: Winnipeg, MB
Device: Kobo Aura
|
On my Kobo Glo, the new footer modifications were causing all sorts of problems in .kepubs. Some books loaded fine but wouldn't display the chapter titles at the bottom, other books would hang the device as they tried to load and wouldn't display until I slept the Glo and woke it back up.
I've disabled the footer modifications for now. I also noticed that there's two methods to fix the page break issues. Does anyone know what the difference is between them? Both work conditionally for me, one with some of my fonts, some with the other one, and yet some more of my fonts will only break on paragraphs no matter what. Very confusing. I also found good results keeping the top margin at 10 and eliminating the left margin. |
08-28-2013, 06:13 AM | #100 | ||
Fanatic
Posts: 598
Karma: 641742
Join Date: Mar 2012
Location: DE
Device: Kobo Glo
|
Quote:
Quote:
For regular epub de default viewport staring point (x,y) is (0,n) where n = default height top margin. I don't now the exact number but on a Touch my guess is about 10 to 20px. There is no need to change the left margin as the viewport already starts at the first pixel: utilizing the full width (resolution) of the screen. This is not so for the vertical height of the screen. This n-height top margin can not be reduced this way. Code:
<Patch> patch_name = `Margins fine tuning` patch_enable = `yes` # Initial replaces replace_bytes = 848E86, 19 46, 00 21 replace_bytes = 848E88, 1A 46, 00 22 # Values for replace # Left margin replace_int = 848E86, 0, 44 # Top margin replace_int = 848E88, 0, 40 </Patch> Code:
<Patch> patch_name = `Margins fine tuning` patch_enable = `yes` # Initial replaces replace_bytes = 848E86, 19 46, 00 21 replace_bytes = 848E88, 1A 46, 00 22 # Values for replace # Left margin replace_int = 848E86, 0, 00 # Top margin replace_int = 848E88, 0, 00 </Patch> Code:
@page {margin:0;} body {margin:0;} p {margin:0;padding:0;} See attached images. An increased left margin shifts all text to the right and "pushes" part of the text that is located originally on the right hand side of the screen outside the screen demensions. Some words or part of words are not readable any more. Which can be seen in the attached images. I don't now if it is possible to adjust the size viewport too when adjusting the start coordinate of the viewport. Touch: screen resolution is 800×600 px Default viewport width: 600 px (uses full screen width; no left or right margins) Default viewport heigth: 800 px -/- n height of the top margin (hard coded top margin) Assumption here: n height = 10 px That makes the default viewport is 790 (800-/-10) × 600 px When adjusting the start coordinate of the viewport to, lets say left: 20 top: 30 The viewport size should be adjusted to 760 × 580 px (height: 790-/-30;width: 600 -/-20) to keep all text on the screen. But this creates uneven left and right page margins (only shifts the viewport). To create even left and right margins the viewport width should be adjusted 2*left margin settings (here: 2*20=40px) to 560 px. But what I would like is to reduce the hard coded top margin completly. So I can read books full screen (for Touch: 800×600) and when I do need/like some page margins I can adjust them in the book CSS itself (where it should be). Last edited by Anak; 08-28-2013 at 06:54 AM. |
||
08-29-2013, 06:16 PM | #101 |
Fanatic
Posts: 516
Karma: 4442943
Join Date: May 2009
Location: Portugal
Device: Kobo Glo, kindle
|
After reading the tread and seeing the photos posted I decided to try the patcher, the first time didn’t worked so I gave up, but with the new version I decided to try again and this time it worked, just not the way I wanted.
I saw several photos with the page numbers in the footer in a smaller font, but I couldn’t make mine like that, I have no footer, I have a glo and after trying several combinations I ended up with 60/60/10 that seems to be used by several people, I also tried changing the font size in the footer, but it didn’t work. Can somenome tell me how to make the footer apear in small letters? Thank’s in advance. |
08-29-2013, 06:51 PM | #102 |
Evangelist
Posts: 490
Karma: 1665031
Join Date: Nov 2010
Location: Vancouver Island, Nanaimo
Device: K2 (retired), Kobo Touch (passed to the wife), KGlo, Galaxy TabPro
|
comment out the first line and uncomment the 2nd:
Original: Code:
# Disable footer example
replace_zlib = 1205FF4, `ReadingFooter...
# Decrease footer example
#replace_zlib = 1205FF4, `ReadingFooter...
Code:
# Disable footer example
#replace_zlib = 1205FF4, `ReadingFooter...
# Decrease footer example
replace_zlib = 1205FF4, `ReadingFooter...
Code:
...\n\theight: 30px;\n\tfont-size: 25px;\n}
|
08-30-2013, 02:49 AM | #103 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
In version 0.7 there's no part
Code:
<Patch> patch_name = `Disable reading footer style` patch_enable = `no` replace_bytes = 9B9444, 0E F7 22 E4, 00 46 00 46 </Patch> Does it mean, one should not use that config code? Or, more specific: What is the best way to disable the footer completly? (I'm not sure, if I will keep such a radical configuration, but I like to try it some days/weeks to be sure, if I miss the page numbers really.) Another detail: Does Kobo Patcher affects only *.epub or even *.kepub? I ask, because I like the option in KEPUBs to apply userstyles in a more easy and centralized way than for EPUBs. But on the other hand, I dislike the header in KEBUBs. I there's no way to shut them off, I would not use KEBUBs. Thanks. |
08-30-2013, 02:58 AM | #104 | |
Unicycle Daredevil
Posts: 13,923
Karma: 185041098
Join Date: Jan 2011
Location: Planet of the Pudding Brains
Device: Aura HD (R.I.P. After six years the USB socket died.) tolino shine 3
|
Quote:
|
|
08-31-2013, 06:58 AM | #105 | ||
Fanatic
Posts: 516
Karma: 4442943
Join Date: May 2009
Location: Portugal
Device: Kobo Glo, kindle
|
Quote:
Quote:
Spoiler:
and this is the error I get when running kpg Spoiler:
Thank you for your help, I realize that probably this is quite simple to fix if you know what you are doing, which is not my case, I try to understand and learn what I can, but sometimes I get stucked and have to ask for help or give up on trying to change things |
||
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo How to import reading Life Statistics from Kobo Touch to Kobo Glo? | the_m | Kobo Reader | 5 | 12-13-2012 03:40 PM |
$25 gift card w. purchase of Kobo Touch or Kobo Vox at Frys | sufue | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-15-2012 10:39 AM |
Touch Kobo Touch defective after 3 months and Kobo Customer Support useless | shaf | Kobo Reader | 5 | 12-04-2011 05:10 PM |
Touch Kobo Touch not ejecting cleanly with Calibre OR Kobo Desktop - Windows 7 | JBlyth | Kobo Reader | 11 | 08-03-2011 05:38 PM |
Kobo Touch not disconnecting properly from Calibre OR Kobo Desktop - Windows 7 | JBlyth | Devices | 1 | 08-03-2011 06:50 AM |