View Single Post
Old 08-24-2015, 08:33 AM   #173
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
Modification for Bad Eyes FW 3.17.3

Same rules, limitations ... as in the last versions.


For those who want more control:
Spoiler:
This time I added some files in the folder "plus" in order to help those who want to have more control over the large amount of unclassified patches. In these files I replaced the values for font-size of the "new parts" with symbols. An example:

Code:
<patch>
name=?
enabled=true
action=replace_string
position=B7F508
oldpart=* {\n\ttext-decoration: underline;\n\tfont: 13px Avenir;\n\ttext-transform: uppercase;\n\ttext-decoration: underline;\n\tpadding-left: 2px;\n\tpadding-right: 2px;\n}\n\n
oldpart=*[qApp_deviceIsPhoenix="true"]      { font-size: 16px; }\n
oldpart=*[qApp_deviceIsDragon="true"]       { font-size: 21px; }\n
oldpart=*[qApp_deviceIsAlyssum="true"]      { font-size: 23px; }\n
oldpart=*[qApp_localeName="ja_JP"]   {font-family: Sans-SerifJP; text-transform: none; }
newpart=* {\n\ttext-decoration: underline;\n\tfont: <<13px>> Avenir;\n\ttext-transform: uppercase;\n\ttext-decoration: underline;\n\tpadding-left: 2px;\n\tpadding-right: 2px;\n}\n\n
newpart=*[qApp_deviceIsPhoenix="true"]      { font-size: <<16px>>; }\n
newpart=*[qApp_deviceIsDragon="true"]       { font-size: <<21px>>; }\n
newpart=*[qApp_deviceIsAlyssum="true"]      { font-size: <<23px>>; }\n
newpart=*[qApp_localeName="ja_JP"]   {font-family: Sans-SerifJP; text-transform: none; }
combineparts
</patch>
For only slightly increasing the font-size, you could for instance replace all occurrences of "<<16px>>" by "18px" and so on.

At the top of each file, there is a complete list of the used symbols, for instance:
# symbols: <<17px>>, <<19px>>, <<22px>>, <<23px>>, <<26px>>, <<28px>>, <<29px>>, <<30px>>, <<32px>>, <<36px>>, <<38px>>, <<39px>>, <<56px>>, <<64px>>,

You have to replace ALL symbols by real values!
Especially in the case of zlib compressed strings, you will possibly have to manually modify the strings in order to make the new compressed data smaller than or equal in size to the old data. While preparing, use 3.17.3_checkmode.bat instead of 3.17.3.bat. In check mode, a length error will not stop the processing, but continue and the list of errors will be presented at the end.
Attached Files
File Type: zip KBPatcher12_3.17.3.zip (506.9 KB, 266 views)

Last edited by tshering; 08-29-2015 at 06:33 AM.
tshering is offline   Reply With Quote