View Single Post
Old 06-07-2016, 03:22 PM   #16
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 updated extract script to create also all the streams in bad-eyes format. I attach them. Tshering, is it ok ? If so, I will add the same in patch process, generating newpart with customized values.
There is happened something. In each patch at the very end of the source text (oldpart) a new line is missing. For instance
Spoiler:
Code:
<patch>
name=4A002B (found 3, zlib)
enabled=true
action=replace_zlib
position=autodetect
oldpart=N3ButtonLabel[qApp_deviceIsAlyssum="true"] { font-size: 34px; }
...
oldpart=\n\nMetaDataElidedLabel[qApp_deviceIsAlyssum="true"],\nMetaDataLabel[qApp_deviceIsAlyssum="true"]\t\t{ font-size: 23px; }
...
should be
Code:
<patch>
name=4A002B (found 3, zlib)
enabled=true
action=replace_zlib
position=autodetect
oldpart=N3ButtonLabel[qApp_deviceIsAlyssum="true"] { font-size: 34px; }
...
oldpart=\n\nMetaDataElidedLabel[qApp_deviceIsAlyssum="true"],\nMetaDataLabel[qApp_deviceIsAlyssum="true"]\t\t{ font-size: 23px; }\n
...
or rather to your style
Code:
<patch>
name=4A002B (found 3, zlib)
enabled=true
action=replace_zlib
position=autodetect
oldpart=N3ButtonLabel[qApp_deviceIsAlyssum="true"] { font-size: 34px; }
...
oldpart=\n\nMetaDataElidedLabel[qApp_deviceIsAlyssum="true"],\nMetaDataLabel[qApp_deviceIsAlyssum="true"]\t\t{ font-size: 23px; }
oldpart=\n
...



Quote:
Originally Posted by pipcat View Post
Two questions about your patchit.exe :
Is it ok if newpart is shorter than oldpart ? (if you change four byte size value when non-compressed values, it should be ok).
If newpart (= the concatenated string of all newparts) is shorter then oldpart (= the concatenated string of all newparts), the difference will be filled up with zero bytes.
Quote:
Originally Posted by pipcat View Post
If there are 5 oldpart in a patch, is it ok if only 3 newpart ? (or we need 5 newpart lines, last two emptys ?)
This is ok.

Last edited by tshering; 06-07-2016 at 03:24 PM.
tshering is offline   Reply With Quote