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 06-01-2016, 05:40 AM   #226
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by pipcat View Post
Tshering, did you write patchit.exe ?
I did.
Quote:
Originally Posted by pipcat View Post
When replacing a compressed stream inside nickel, if length is longer it is not allowed. But if length is shorter, is it ok to fill with \x00 until same length ?
This is at least what patchit.exe does, and until now I did not see any negative effects. Strictly speaking, I do not think the zeros are necessary (or have any effect at all) in this case. By the way, if the new compressed stream turns out to be longer than the original stream, patchit.exe tries again with compression level set to maximal.
tshering is offline   Reply With Quote
Old 06-01-2016, 06:00 AM   #227
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by pipcat View Post
I didn't tried it and I don't know if it could solve, but in compressed css from nickel there is a body { text-align:center; }. Maybe adding a margin-top: 50px; could do something !?
I do not have a kobo with me. If anybody wants to do some experiments along that lines:
Spoiler:
Code:
<patch>
name=49FBF7(3.19.5761)
enabled=true
action=replace_zlib
position=autodetect
oldpart=* { margin: 0px; padding: 0px; }\n\n
oldpart=/* --- */\n\nbody\n{\n    text-align: center;\n}\n\n
oldpart=/* --- */\n\n.clear\n{\n    clear: both;\n}\n\n
oldpart=#content .wrapper.active\n{\n    display: block;\n}\n\n
oldpart=.reader_head {\n\ttext-align: left !important;\n\tword-wrap: break-word;\n}\n\n
oldpart=.reader_head h1 {\n\ttext-align: left !important;\n\t-webkit-hyphens: none !important;\n}\n\n
oldpart=.reader_head.dragon h1 {\n\tfont-size: 36px !important;\n\tpadding-bottom: 30px;\n}\n\n
oldpart=.reader_head.dragon hr {\n\tborder-bottom: 50px;\n}\n\n
oldpart=.reader_head.phoenix hr {\n\tborder-bottom: 35px;\n}\n\n
oldpart=.reader_head.dragon .article_metadata {\n\tpadding-bottom: 30px;\n}\n\n
oldpart=.reader_head.phoenix .article_metadata {\n\tpadding-bottom: 20px;\n}\n\n
oldpart=.reader_head.phoenix h1 {\n\tfont-size: 28px !important;\n\tpadding-bottom: 20px;\n}\n\n
oldpart=.reader_head.trilogy hr {\n\tborder-bottom: 30px;\n}\n\n
oldpart=.reader_head.trilogy .article_metadata {\n\tpadding-bottom: 15px;\n}\n\n
oldpart=.reader_head.trilogy h1 {\n\tfont-size: 23px !important;\n\tpadding-top: 10px;\n\tpadding-bottom: 15px;\n}\n\n
oldpart=.reader_head h1 {\n\tline-height: 1.2em;\n\tfont-weight: normal;\n}\n\n
oldpart=.reader_head {\n\t-webkit-text-size-adjust:none !important;\n}\n\n
oldpart=/* -- Body Headers -- */\n\n.text_body h1,\n.text_body h2,\n.text_body h3,\n.text_body h4,\n.text_body h5,\n.text_body h6,\n.text_body h7\n{\n\tcolor: black;\n\tfont-weight:  normal;\n}\n\n
oldpart=.text_body h1,\n.text_body h2\n{\n\tline-height: 1.3em;\n\tfont-size: 1.5em;\n\tmargin: 2.5em 0px 1em 0px;\n}\n
oldpart=.text_body h3\n{\n\tline-height: 1.5em;\n\tfont-size: 1.3em;\t\n\tmargin: 2.5em 0px 0.5em 0px;\n}\n
oldpart=.text_body h4 \n{\n\tline-height: 1.5em;\n\tfont-size: 1.2em;\n\tmargin: 2em 0px 0.5em 0px;\n}\t\n.text_body h5,\n.text_body h6,\n.text_body h7 \n{\n\tfont-size: 1em;\n\tfont-weight: bold;\n\tmargin: 2em 0px 0 0px;\n}\n\n\n
oldpart=/* -- Body Text -- */\n\n.reader_content\n{\n\tcolor: black;\n}\n\n
oldpart=.text_body\n{\n\ttext-align: justify;\n\t-webkit-hyphens: auto;\n}\n\n
oldpart=.text_body p\n{\n\tmargin-top: 0.8em;\n}\n\n
oldpart=/* -- Elements -- */\n\n.text_body ul, \n.text_body ol \n{\n\tmargin: 1.5em 0px 2em 2em;\n}\n
oldpart=.text_body li \n{\n\tmargin: 0px 0px 0.25em 0px;\n}\n
oldpart=.text_body ul ul,\n.text_body ol ol \n{\n\tmargin: 0.75em 0 1em 2em;\n\tmin-width: 250px;\n}\n\n
oldpart=.text_body pre,\n.text_body blockquote \n{\n\tdisplay: block;\n\tmargin: 2.5em 7% 3em 7%;\t\n\twhite-space: pre-wrap; /* css-3 */\n\twhite-space: -pre-wrap; /* Opera 4-6 */\n\twhite-space: -o-pre-wrap; /* Opera 7 */\n\tword-wrap: break-word; /* Internet Explorer 5.5+ and Firefox 3.5+ */\n}\n
oldpart=.text_body blockquote { font-style: italic; }\n\n
oldpart=.text_body header { font-style: italic; }\n\n
oldpart=.text_body a \n{\n\tcolor: #6a6a6a;\n}\n\n
oldpart=.text_body \n{ \n\tclear: both;\n}\n\n
oldpart=/* --- */\n\n.text_body table \n{\n\tborder-collapse: collapse;\n\twidth: 100%;\n\tmargin: 20px 0px 20px 0px;\t\n}\n
oldpart=.text_body table td,\n.text_body table td \n{\n\twidth: auto;\n\ttext-align: left;\n\tpadding: 0px;\n\tbackground: none;\t\n\tborder: 0px;\n}\n\n
oldpart=.ril_dataTable td,\n.ril_dataTable th \n{\n\ttext-align: center;\n\tpadding: 4px;\n\tborder: 1px solid #999999;\n}\n
oldpart=.ril_dataTable th { font-weight: bold; }\n\n
oldpart=.ril_layoutTable td,\n.ril_layoutTable tr,\n.ril_layoutTable th \n{\n\tdisplay: block;\n}\n\n
oldpart=/* --- */\n\n.RIL_IMG\n{\n\tdisplay: block;\n\ttext-align: center;\n\tmargin: 18px auto 18px auto;\n}\n
oldpart=.RIL_IMG.hasCaption\n{\n\tborder: 1px solid #CCCCCC;\n}\n\n
oldpart=.RIL_IMG img\n{\n\tborder: 0px !important;\n\ttext-decoration: none !important;\t\n}\n\n
oldpart=.RIL_IMG caption,\n.RIL_IMG cite\n{\n\tdisplay: none;\n}\n
oldpart=.RIL_IMG.hasCaption caption,\n.RIL_IMG.hasCaption cite\n{\n\tdisplay: block;\n}\n
oldpart=.RIL_IMG caption,\na .RIL_IMG caption\n{\n\tpadding: 9px 9px 9px 9px;\n\tcolor: #6d6c6c !important;\n\tfont-size: 0.9em;\n\tline-height: 1.3em;\n\ttext-align: left;\n\ttext-decoration: none !important;\n}\n\n
oldpart=.source\n{\n\tfont-style: italic;\n}\n\n
oldpart=.caption\n{\n\ttext-align: left;\n\tfont-size: 80%;\n}\n\n
oldpart=.caption.dragon\n{\n\tpadding: 20px;\n}\n\n
oldpart=.caption.phoenix,\n.caption.trilogy\n{\n\tpadding: 15px;\n}\n\n
oldpart=/* --- */\n\n.text_note \n{\n\tclear: both;\n\tcolor: #666666;\n\tpadding: 10px;\n\tbackground: #EEEEEE;\n\tmargin-bottom: 15px;\n}\n
newpart=* { margin: 0px; padding: 0px; }\n\n
newpart=/* --- */\n\nbody\n{\n    text-align: center;\n}\n\n
newpart=/* --- */\n\n.clear\n{\n    clear: both;\n}\n\n
newpart=#content .wrapper.active\n{\n    display: block;\n}\n\n
newpart=.reader_head {\n\ttext-align: left !important;\n\tword-wrap: break-word;\n}\n\n
newpart=.reader_head h1 {\n\ttext-align: left !important;\n\t-webkit-hyphens: none !important;\n}\n\n
newpart=.reader_head.dragon h1 {\n\tfont-size: 36px !important;\n\tpadding-bottom: 30px;\n}\n\n
newpart=.reader_head.dragon hr {\n\tborder-bottom: 50px;\n}\n\n
newpart=.reader_head.phoenix hr {\n\tborder-bottom: 35px;\n}\n\n
newpart=.reader_head.dragon .article_metadata {\n\tpadding-bottom: 30px;\n}\n\n
newpart=.reader_head.phoenix .article_metadata {\n\tpadding-bottom: 20px;\n}\n\n
newpart=.reader_head.phoenix h1 {\n\tfont-size: 28px !important;\n\tpadding-bottom: 20px;\n}\n\n
newpart=.reader_head.trilogy hr {\n\tborder-bottom: 30px;\n}\n\n
newpart=.reader_head.trilogy .article_metadata {\n\tpadding-bottom: 15px;\n}\n\n
newpart=.reader_head.trilogy h1 {\n\tfont-size: 23px !important;\n\tpadding-top: 10px;\n\tpadding-bottom: 15px;\n}\n\n
newpart=.reader_head h1 {\n\tline-height: 1.2em;\n\tfont-weight: normal;\n}\n\n
newpart=.reader_head {\n\t-webkit-text-size-adjust:none !important;\n}\n\n
newpart=/* -- Body Headers -- */\n\n.text_body h1,\n.text_body h2,\n.text_body h3,\n.text_body h4,\n.text_body h5,\n.text_body h6,\n.text_body h7\n{\n\tcolor: black;\n\tfont-weight:  normal;\n}\n\n
newpart=.text_body h1,\n.text_body h2\n{\n\tline-height: 1.3em;\n\tfont-size: 1.5em;\n\tmargin: 2.5em 0px 1em 0px;\n}\n
newpart=.text_body h3\n{\n\tline-height: 1.5em;\n\tfont-size: 1.3em;\t\n\tmargin: 2.5em 0px 0.5em 0px;\n}\n
newpart=.text_body h4 \n{\n\tline-height: 1.5em;\n\tfont-size: 1.2em;\n\tmargin: 2em 0px 0.5em 0px;\n}\t\n.text_body h5,\n.text_body h6,\n.text_body h7 \n{\n\tfont-size: 1em;\n\tfont-weight: bold;\n\tmargin: 2em 0px 0 0px;\n}\n\n\n
newpart=/* -- Body Text -- */\n\n.reader_content\n{\n\tcolor: black;\n}\n\n
newpart=.text_body\n{\n\ttext-align: justify;\n\t-webkit-hyphens: auto;\n}\n\n
newpart=.text_body p\n{\n\tmargin-top: 0.8em;\n}\n\n
newpart=/* -- Elements -- */\n\n.text_body ul, \n.text_body ol \n{\n\tmargin: 1.5em 0px 2em 2em;\n}\n
newpart=.text_body li \n{\n\tmargin: 0px 0px 0.25em 0px;\n}\n
newpart=.text_body ul ul,\n.text_body ol ol \n{\n\tmargin: 0.75em 0 1em 2em;\n\tmin-width: 250px;\n}\n\n
newpart=.text_body pre,\n.text_body blockquote \n{\n\tdisplay: block;\n\tmargin: 2.5em 7% 3em 7%;\t\n\twhite-space: pre-wrap; /* css-3 */\n\twhite-space: -pre-wrap; /* Opera 4-6 */\n\twhite-space: -o-pre-wrap; /* Opera 7 */\n\tword-wrap: break-word; /* Internet Explorer 5.5+ and Firefox 3.5+ */\n}\n
newpart=.text_body blockquote { font-style: italic; }\n\n
newpart=.text_body header { font-style: italic; }\n\n
newpart=.text_body a \n{\n\tcolor: #6a6a6a;\n}\n\n
newpart=.text_body \n{ \n\tclear: both;\n}\n\n
newpart=/* --- */\n\n.text_body table \n{\n\tborder-collapse: collapse;\n\twidth: 100%;\n\tmargin: 20px 0px 20px 0px;\t\n}\n
newpart=.text_body table td,\n.text_body table td \n{\n\twidth: auto;\n\ttext-align: left;\n\tpadding: 0px;\n\tbackground: none;\t\n\tborder: 0px;\n}\n\n
newpart=.ril_dataTable td,\n.ril_dataTable th \n{\n\ttext-align: center;\n\tpadding: 4px;\n\tborder: 1px solid #999999;\n}\n
newpart=.ril_dataTable th { font-weight: bold; }\n\n
newpart=.ril_layoutTable td,\n.ril_layoutTable tr,\n.ril_layoutTable th \n{\n\tdisplay: block;\n}\n\n
newpart=/* --- */\n\n.RIL_IMG\n{\n\tdisplay: block;\n\ttext-align: center;\n\tmargin: 18px auto 18px auto;\n}\n
newpart=.RIL_IMG.hasCaption\n{\n\tborder: 1px solid #CCCCCC;\n}\n\n
newpart=.RIL_IMG img\n{\n\tborder: 0px !important;\n\ttext-decoration: none !important;\t\n}\n\n
newpart=.RIL_IMG caption,\n.RIL_IMG cite\n{\n\tdisplay: none;\n}\n
newpart=.RIL_IMG.hasCaption caption,\n.RIL_IMG.hasCaption cite\n{\n\tdisplay: block;\n}\n
newpart=.RIL_IMG caption,\na .RIL_IMG caption\n{\n\tpadding: 9px 9px 9px 9px;\n\tcolor: #6d6c6c !important;\n\tfont-size: 0.9em;\n\tline-height: 1.3em;\n\ttext-align: left;\n\ttext-decoration: none !important;\n}\n\n
newpart=.source\n{\n\tfont-style: italic;\n}\n\n
newpart=.caption\n{\n\ttext-align: left;\n\tfont-size: 80%;\n}\n\n
newpart=.caption.dragon\n{\n\tpadding: 20px;\n}\n\n
newpart=.caption.phoenix,\n.caption.trilogy\n{\n\tpadding: 15px;\n}\n\n
newpart=/* --- */\n\n.text_note \n{\n\tclear: both;\n\tcolor: #666666;\n\tpadding: 10px;\n\tbackground: #EEEEEE;\n\tmargin-bottom: 15px;\n}\n
combineparts
</patch>


For testing purposes, I would remove in the newpart section, lines that refer to devices other than the one you will test with, in order to make sure the resulting zlib stream is not longer than the original one.
tshering is offline   Reply With Quote
Advert
Old 06-01-2016, 06:56 AM   #228
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
Thx for \x00 info ;-) I updated my python script to patch nickel and tested margin-top:100px in body but seems doesn't affect.
Attached Files
File Type: zip patch-nickel.py.zip (1.4 KB, 166 views)
pipcat is offline   Reply With Quote
Old 06-01-2016, 02:17 PM   #229
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
If bigbless or someone else wants to try css changes in nickel, the attached python scripts could be useful.

Tool to patch compressed streams inside nickel.
- Copy your nickel file from your firmware to this folder.
- Execute python extract.py to extract all compressed streams.
- Browse extracted/ folder and view .css files to find out what you want to change.
- Copy files you want to change to folder modified/ and change what you want.
Note that resulting file after compression could not be larger than original one.
Remove comments or code related to other devices if you need to shorten.
- Execute python patch.py to create a nickel-modif with your patches.
Check messages to verify modifications are well done.
- Execute ./publish.sh to create KoboRoot.tgz and copy to folder .kobo/ in your device.
Attached Files
File Type: zip patch-nickel-zlib.zip (3.9 KB, 168 views)

Last edited by pipcat; 06-02-2016 at 02:08 AM. Reason: Updated zip to include empty folder extracted (needed for windows users)
pipcat is offline   Reply With Quote
Old 06-01-2016, 03:54 PM   #230
bigbless
Junior Member
bigbless began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2016
Device: Kobo Aura HD
Quote:
Originally Posted by pipcat View Post
If bigbless or someone else wants to try css changes in nickel, the attached python scripts could be useful.

Tool to patch compressed streams inside nickel.
- Copy your nickel file from your firmware to this folder.
- Execute python extract.py to extract all compressed streams.
- Browse extracted/ folder and view .css files to find out what you want to change.
- Copy files you want to change to folder modified/ and change what you want.
Note that resulting file after compression could not be larger than original one.
Remove comments or code related to other devices if you need to shorten.
- Execute python patch.py to create a nickel-modif with your patches.
Check messages to verify modifications are well done.
- Execute ./publish.sh to create KoboRoot.tgz and copy to folder .kobo/ in your device.
Ok thank you for the help, I would like to try both options but I'm a total noob and don't know what to do for starters is there a tutorial on how to backup everything in case I mess something up and clone the sd card or something else?

I'm willing to do this and in case it doesn't work I don't mind changing epubs so that the top margin allows me to read them on the ebook.

Thanks
bigbless is offline   Reply With Quote
Advert
Old 06-01-2016, 04:55 PM   #231
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by bigbless View Post
Ok thank you for the help, I would like to try both options but I'm a total noob and don't know what to do for starters is there a tutorial on how to backup everything in case I mess something up and clone the sd card or something else?

I'm willing to do this and in case it doesn't work I don't mind changing epubs so that the top margin allows me to read them on the ebook.

Thanks
As for backup, you can simply make a copy of the user partition (this is what you see when you connect via usb to the pc). As for the other partitions (which you cannot see) it is highly unlikely that you mess something so up that resetting the device cannot help you.

As for the larger top margin in epubs, you can try it without any danger. Have a look at Instructions for patching firmware 3.19.5761. Read the instructions in order to get a general understanding of how it works. Then open libnickel.so.1.0.0.patch. You are interested in `ePub fixed/adjustable top/bottom margins`. Find it and enable it (patch_enable = `yes`). Then find the line
Code:
#replace_string = B8A1A4, `%\01`, `2\05`
uncomment the line (by removing the #) and choose a greater value. I tried for instance
Code:
replace_string = B8A1A4, `%\01`, `4\05`
This gives a pretty large top margin, but maybe it is still to small for you. Maybe you start experimenting with `6\05`.

Last edited by tshering; 06-01-2016 at 05:05 PM.
tshering is offline   Reply With Quote
Old 06-02-2016, 06:14 PM   #232
bigbless
Junior Member
bigbless began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2016
Device: Kobo Aura HD
Quote:
Originally Posted by tshering View Post
As for backup, you can simply make a copy of the user partition (this is what you see when you connect via usb to the pc). As for the other partitions (which you cannot see) it is highly unlikely that you mess something so up that resetting the device cannot help you.

As for the larger top margin in epubs, you can try it without any danger. Have a look at Instructions for patching firmware 3.19.5761. Read the instructions in order to get a general understanding of how it works. Then open libnickel.so.1.0.0.patch. You are interested in `ePub fixed/adjustable top/bottom margins`. Find it and enable it (patch_enable = `yes`). Then find the line
Code:
#replace_string = B8A1A4, `%\01`, `2\05`
uncomment the line (by removing the #) and choose a greater value. I tried for instance
Code:
replace_string = B8A1A4, `%\01`, `4\05`
This gives a pretty large top margin, but maybe it is still to small for you. Maybe you start experimenting with `6\05`.
Hello I've tried with :

Code:
replace_string = B8A1A4, `%\01`, `9\05`
but there is still 1 and half line that cannot be seen the problem is when I try to test with values of 2 digits like this:

Code:
replace_string = B8A1A4, `%\01`, `10\05`
it gives and error:

Code:
Extracting files to patch from 3.19.5761_source/kobo-update-3.19.5761.zip ...
x ./usr/local/Kobo/libnickel.so.1.0.0
x ./usr/local/Kobo/librmsdk.so.1.0.0
x ./usr/local/Kobo/libadobe.so
Read 263288 bytes from input file '/var/folders/pd/qytr69n55dv31rrxd252b8s00000gn/T/patch32lsb_XXXXXXXX.5YOJJPfn/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 263288 bytes to output file '/var/folders/pd/qytr69n55dv31rrxd252b8s00000gn/T/patch32lsb_XXXXXXXX.5YOJJPfn/patched/./usr/local/Kobo/libadobe.so'
Read 14928256 bytes from input file '/var/folders/pd/qytr69n55dv31rrxd252b8s00000gn/T/patch32lsb_XXXXXXXX.5YOJJPfn/original/./usr/local/Kobo/libnickel.so.1.0.0'
Ignoring disabled patch `Disable reading footer`
Ignoring disabled patch `Custom reading footer style`
Applied patch `My 15 line spacing values`
find_base_address: unique string at 00BF97E4
Applied 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`
tools/patch32lsb-Darwin: line 357 in '3.19.5761_source/libnickel.so.1.0.0.patch': replace_string replacement too long.
Cleaning up /var/folders/pd/qytr69n55dv31rrxd252b8s00000gn/T/patch32lsb_XXXXXXXX.5YOJJPfn
Is there a way to do with 2 digits replacements so that I can get the KoboRoot.tgz file?

Last edited by bigbless; 06-02-2016 at 08:34 PM.
bigbless is offline   Reply With Quote
Old 06-03-2016, 02:32 AM   #233
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
Quote:
Originally Posted by bigbless View Post
Is there a way to do with 2 digits replacements so that I can get the KoboRoot.tgz file?
If you don't need to replace left/right margin in this same patch, you can get one more digit. Example with 150px:
Code:
replace_string = B8A1A4, `%\01\0p\0x\0 \00`, `1\05\00\0p\0x\0 `
Css code: @page{margin:%1px 00px %1px}body{ will change to: @page{margin:150px 0px %1px}body{

Last edited by pipcat; 06-03-2016 at 02:44 AM. Reason: address in replace string is B8A1A4
pipcat is offline   Reply With Quote
Old 06-03-2016, 05:11 AM   #234
bigbless
Junior Member
bigbless began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2016
Device: Kobo Aura HD
Quote:
Originally Posted by pipcat View Post
If you don't need to replace left/right margin in this same patch, you can get one more digit. Example with 150px:
Code:
replace_string = B8A1A4, `%\01\0p\0x\0 \00`, `1\05\00\0p\0x\0 `
Css code: @page{margin:%1px 00px %1px}body{ will change to: @page{margin:150px 0px %1px}body{


Thanks a lot it worked and now it transitions correctly, there is one last thing that I wanted to know if possible also to edit by patching lines it is the definition as you can see it popups most of the time at the top, and I can't see the full translation.

Is there a way to patch that so that it appears at the bottom?

I've included photos in attachment
Attached Thumbnails
Click image for larger version

Name:	IMG_20160603_094052.jpg
Views:	240
Size:	415.5 KB
ID:	149150   Click image for larger version

Name:	IMG_20160603_094141.jpg
Views:	269
Size:	480.1 KB
ID:	149151  
bigbless is offline   Reply With Quote
Old 06-03-2016, 05:31 AM   #235
pipcat
Connoisseur
pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.pipcat ought to be getting tired of karma fortunes by now.
 
Posts: 65
Karma: 200153
Join Date: Apr 2016
Device: Kobo Glo Hd
Quote:
Originally Posted by bigbless View Post
Is there a way to patch that so that it appears at the bottom?
There is a patch to change dictionary frame size. Maybe you can customize it to your needs.
https://www.mobileread.com/forums/sho...0#post=3221040
pipcat is offline   Reply With Quote
Old 06-03-2016, 06:33 AM   #236
oren64
I need a chapter break
oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.oren64 ought to be getting tired of karma fortunes by now.
 
oren64's Avatar
 
Posts: 4,042
Karma: 56058267
Join Date: Mar 2015
Location: Israel
Device: Kobo Glo
Quote:
Originally Posted by bigbless View Post


Thanks a lot it worked and now it transitions correctly, there is one last thing that I wanted to know if possible also to edit by patching lines it is the definition as you can see it popups most of the time at the top, and I can't see the full translation.

Is there a way to patch that so that it appears at the bottom?

I've included photos in attachment
Quote:
Originally Posted by pipcat View Post
There is a patch to change dictionary frame size. Maybe you can customize it to your needs.
https://www.mobileread.com/forums/sho...0#post=3221040
See this thread i add margin-top to the patch.
oren64 is offline   Reply With Quote
Old 06-04-2016, 06:11 AM   #237
huuduc1kk2
Enthusiast
huuduc1kk2 began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2015
Device: Kobo glo, LifeBook plus
Hi, I'm update my kobo Glo to 3.19.5761 FW
I had been patch, and replace font to Arial.
The problem : In Dictionary view is not Arial.
How i can change the font in "Dictionary view"?
Thanks all!
huuduc1kk2 is offline   Reply With Quote
Old 06-04-2016, 08:42 AM   #238
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by huuduc1kk2 View Post
Hi, I'm update my kobo Glo to 3.19.5761 FW
I had been patch, and replace font to Arial.
The problem : In Dictionary view is not Arial.
How i can change the font in "Dictionary view"?
Thanks all!
In libnickel.so.1.0.0.txt there is an example, look for "name=Dictionary (Georgia)." Instead of Georgia you can take any font name. Do not forget to enable this patch (enabled=false), and disable the patch named "Dictionary (font chosen by software)."
tshering is offline   Reply With Quote
Old 06-04-2016, 11:02 AM   #239
huuduc1kk2
Enthusiast
huuduc1kk2 began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Apr 2015
Device: Kobo glo, LifeBook plus
Thanks "tshering" for quick reply!
I got it!
Now with this file you can change to a Unicode Font: Arial.
Attached Files
File Type: txt libnickel.so.1.0.0.txt (79.4 KB, 192 views)
File Type: txt nickel.txt (205.7 KB, 188 views)
huuduc1kk2 is offline   Reply With Quote
Old 06-07-2016, 03:47 AM   #240
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Since there seems to be a certain interest in investigating the css blocks of nickel and libnickel.so.1.0.0 (cf. this thread), I publish those css blocks that I could easily find (that means: I do not claim that all css blocks are included).
Attached Files
File Type: zip css_nickel_libnickel_3.19.5761.zip (56.7 KB, 207 views)

Last edited by tshering; 06-07-2016 at 04:36 AM.
tshering is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Ebook reader is easiest on the eyes? i.e doesn't strain your eyes when reading Berabouman Which one should I buy? 2 02-08-2013 09:07 AM
Glo Is the screen of my Glo bad or is it my eyes? Polly7 Kobo Reader 5 01-29-2013 03:56 AM
help with some modifications moller Kindle Developer's Corner 3 10-12-2012 02:31 PM
Eyes of Silver, Eyes of Gold, historical romance ellenoc Self-Promotions by Authors and Publishers 18 08-22-2011 02:34 PM
iLiad Registry modifications Martijn iRex Developer's Corner 7 03-27-2008 05:37 PM


All times are GMT -4. The time now is 07:27 AM.


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