View Single Post
Old 08-24-2015, 11:36 AM   #174
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by tshering View Post
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 the 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.
surquizu is offline   Reply With Quote