Guest User

Untitled

a guest
Jan 24th, 2015
2,912
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.10 KB | None | 0 0
  1. # libnickel.so.1.0.0 in firmware 3.12.0 (563a2baefd)
  2.  
  3. #
  4. # The following four patches are alternatives, don't enable more than one.
  5. #
  6.  
  7. <Patch>
  8. patch_name = `Disable reading footer (all devices)`
  9. patch_enable = `no`
  10. replace_string = E359A4, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 170;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `* {\n\theight: 5px;\n\tfont-size: 1px;\n\tcolor: transparent;\n}\n\n`
  11. </Patch>
  12.  
  13.  
  14. <Patch>
  15. patch_name = `Custom reading footer style (Touch/Mini)`
  16. patch_enable = `no`
  17. replace_string = E359A4, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 170;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\n* {\n\tfont-size: 16px;\n\tpadding-bottom: 0px;\n\tmargin-top: 0px;\n\t/*font-family:none;*/\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
  18. #
  19. # Uncomment the three replace_string lines of one of the examples below,
  20. # comment out the rest. If you choose to make further changes to the examples,
  21. # BE CAREFUL NOT TO ALTER THE LENGTH OF THE REPLACEMENT STRINGS! (Add or remove
  22. # spaces if necessary to keep the total length the same.)
  23. #
  24. # Examples 1 or 4 are recommended for use with the adjustable/fixed top/bottom
  25. # margin patches when configured to set both top and bottom margins.
  26. #
  27. # Examples 4, 5 or 6 are recommended if you also read kepubs, because the space
  28. # between bezel and footer matches the space between bezel and kepub header.
  29. #
  30. #
  31. # Example 1: Small footer, close to bezel
  32. #replace_string = E359B5, `min-height: 70px;`, `min-height: 24px;`
  33. #replace_string = E359C8, `max-height: 70px;`, `max-height: 24px;`
  34. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 4px;`
  35. #
  36. # Example 2: Medium footer, close to bezel
  37. replace_string = E359B5, `min-height: 70px;`, `min-height: 32px;`
  38. replace_string = E359C8, `max-height: 70px;`, `max-height: 32px;`
  39. replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 4px;`
  40. #
  41. # Example 3: Large footer, close to bezel
  42. #replace_string = E359B5, `min-height: 70px;`, `min-height: 48px;`
  43. #replace_string = E359C8, `max-height: 70px;`, `max-height: 48px;`
  44. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 0px;`
  45. #
  46. # Example 4: Small footer, away from bezel
  47. #replace_string = E359B5, `min-height: 70px;`, `min-height: 24px;`
  48. #replace_string = E359C8, `max-height: 70px;`, `max-height: 24px;`
  49. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:20px;`
  50. #
  51. # Example 5: Medium footer, away from bezel
  52. #replace_string = E359B5, `min-height: 70px;`, `min-height: 32px;`
  53. #replace_string = E359C8, `max-height: 70px;`, `max-height: 32px;`
  54. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:16px;`
  55. #
  56. # Example 6: Large footer, away from bezel
  57. #replace_string = E359B5, `min-height: 70px;`, `min-height: 48px;`
  58. #replace_string = E359C8, `max-height: 70px;`, `max-height: 48px;`
  59. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 8px;`
  60. #
  61. #
  62. # Uncomment the following line to reduce the footer font size:
  63. #replace_string = E35A00, `font-size: 16px;`, `font-size: 14px;`
  64. #
  65. # Uncomment the following line to further reduce the space above the footer:
  66. #replace_string = E35A28, `margin-top: 0px;`, `margin-top:-4px;`
  67. #
  68. # Uncomment one of the following lines to use a fixed font style. This is
  69. # recommended if you have chosen examples 1 or 4 above, because some other
  70. # fonts sit too low in the footer and get cut off at the bottom.
  71. # Also enable one of the Custom header style patches below with the same font
  72. # style if you read kepubs.
  73. #
  74. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Amasis;`
  75. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Avenir;`
  76. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Georgia;`
  77. #
  78. </Patch>
  79.  
  80.  
  81. <Patch>
  82. patch_name = `Custom reading footer style (Glo/Aura)`
  83. patch_enable = `yes`
  84. replace_string = E359A4, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 170;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height: 82px;\n\tmax-height: 82px;\n\tqproperty-footerMargin: 105;\n}\n\n* {\n\tfont-size: 20px;\n\tpadding-bottom: 0px;\n\tmargin-top: 0px;\n\t/*font-family:none;*/\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
  85. #
  86. # Uncomment the three replace_string lines of one of the examples below,
  87. # comment out the rest. If you choose to make further changes to the examples,
  88. # BE CAREFUL NOT TO ALTER THE LENGTH OF THE REPLACEMENT STRINGS! (Add or remove
  89. # spaces if necessary to keep the total length the same.)
  90. #
  91. # Examples 1 or 4 are recommended for use with the adjustable/fixed top/bottom
  92. # margin patches when configured to set both top and bottom margins.
  93. #
  94. # Examples 4, 5 or 6 are recommended if you also read kepubs, because the space
  95. # between bezel and footer matches the space between bezel and kepub header.
  96. #
  97. #
  98. # Example 1: Small footer, close to bezel
  99. #replace_string = E359B5, `min-height: 82px;`, `min-height: 30px;`
  100. #replace_string = E359C8, `max-height: 82px;`, `max-height: 30px;`
  101. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 5px;`
  102. #
  103. # Example 2: Medium footer, close to bezel
  104. replace_string = E359B5, `min-height: 82px;`, `min-height: 25px;`
  105. replace_string = E359C8, `max-height: 82px;`, `max-height: 25px;`
  106. replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 5px;`
  107. #
  108. # Example 3: Large footer, close to bezel
  109. #replace_string = E359B5, `min-height: 82px;`, `min-height: 60px;`
  110. #replace_string = E359C8, `max-height: 82px;`, `max-height: 60px;`
  111. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 0px;`
  112. #
  113. # Example 4: Small footer, away from bezel
  114. #replace_string = E359B5, `min-height: 82px;`, `min-height: 30px;`
  115. #replace_string = E359C8, `max-height: 82px;`, `max-height: 30px;`
  116. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:25px;`
  117. #
  118. # Example 5: Medium footer, away from bezel
  119. #replace_string = E359B5, `min-height: 82px;`, `min-height: 40px;`
  120. #replace_string = E359C8, `max-height: 82px;`, `max-height: 40px;`
  121. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:20px;`
  122. #
  123. # Example 6: Large footer, away from bezel
  124. #replace_string = E359B5, `min-height: 82px;`, `min-height: 60px;`
  125. #replace_string = E359C8, `max-height: 82px;`, `max-height: 60px;`
  126. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:10px;`
  127. #
  128. #
  129. # Uncomment the following line to reduce the footer font size:
  130. #replace_string = E35A00, `font-size: 20px;`, `font-size: 18px;`
  131. #
  132. # Uncomment the following line to further reduce the space above the footer:
  133. #replace_string = E35A28, `margin-top: 0px;`, `margin-top:-5px;`
  134. #
  135. # Uncomment one of the following lines to use a fixed font style. This is
  136. # recommended if you have chosen examples 1 or 4 above, because some other
  137. # fonts sit too low in the footer and get cut off at the bottom.
  138. # Also enable one of the Custom header style patches below with the same font
  139. # style if you read kepubs.
  140. #
  141. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Amasis;`
  142. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Avenir;`
  143. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Georgia;`
  144. #
  145. </Patch>
  146.  
  147.  
  148. <Patch>
  149. patch_name = `Custom reading footer style (Aura HD/H2O)`
  150. patch_enable = `no`
  151. replace_string = E359A4, `ReadingFooter {\n\tmin-height: 70px;\n\tmax-height: 70px;\n\tqproperty-footerMargin: 105;\n}\n\nReadingFooter[qApp_deviceCodeName="phoenix"] {\n\tmin-height: 82px;\n\tmax-height: 82px;\n}\n\nReadingFooter[qApp_deviceCodeName="dragon"] {\n\tmin-height: 120px;\n\tmax-height: 120px;\n\tqproperty-footerMargin: 170;\n}\n\n* {\n\tfont-size: 16px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 20px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `ReadingFooter {\n\tmin-height:120px;\n\tmax-height:120px;\n\tqproperty-footerMargin: 170;\n}\n\n* {\n\tfont-size: 26px;\n\tpadding-bottom: 0px;\n\tmargin-top: 0px;\n\t/*font-family:none;*/\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n}`
  152. #
  153. # Uncomment the three replace_string lines of one of the examples below,
  154. # comment out the rest. If you choose to make further changes to the examples,
  155. # BE CAREFUL NOT TO ALTER THE LENGTH OF THE REPLACEMENT STRINGS! (Add or remove
  156. # spaces if necessary to keep the total length the same.)
  157. #
  158. # Examples 1 or 4 are recommended for use with the adjustable/fixed top/bottom
  159. # margin patches when configured to set both top and bottom margins.
  160. #
  161. # Examples 4, 5 or 6 are recommended if you also read kepubs, because the space
  162. # between bezel and footer matches the space between bezel and kepub header.
  163. #
  164. #
  165. # Example 1: Small footer, close to bezel
  166. #replace_string = E359B5, `min-height:120px;`, `min-height: 40px;`
  167. #replace_string = E359C8, `max-height:120px;`, `max-height: 40px;`
  168. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 7px;`
  169. #
  170. # Example 2: Medium footer, close to bezel
  171. replace_string = E359B5, `min-height:120px;`, `min-height: 52px;`
  172. replace_string = E359C8, `max-height:120px;`, `max-height: 52px;`
  173. replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 7px;`
  174. #
  175. # Example 3: Large footer, close to bezel
  176. #replace_string = E359B5, `min-height:120px;`, `min-height: 80px;`
  177. #replace_string = E359C8, `max-height:120px;`, `max-height: 80px;`
  178. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom: 0px;`
  179. #
  180. # Example 4: Small footer, away from bezel
  181. #replace_string = E359B5, `min-height:120px;`, `min-height: 40px;`
  182. #replace_string = E359C8, `max-height:120px;`, `max-height: 40px;`
  183. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:36px;`
  184. #
  185. # Example 5: Medium footer, away from bezel
  186. #replace_string = E359B5, `min-height:120px;`, `min-height: 52px;`
  187. #replace_string = E359C8, `max-height:120px;`, `max-height: 52px;`
  188. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:30px;`
  189. #
  190. # Example 6: Large footer, away from bezel
  191. #replace_string = E359B5, `min-height:120px;`, `min-height: 80px;`
  192. #replace_string = E359C8, `max-height:120px;`, `max-height: 80px;`
  193. #replace_string = E35A12, `padding-bottom: 0px;`, `padding-bottom:16px;`
  194. #
  195. #
  196. # Uncomment the following line to reduce the footer font size:
  197. #replace_string = E35A00, `font-size: 26px;`, `font-size: 23px;`
  198. #
  199. # Uncomment the following line to further reduce the space above the footer:
  200. #replace_string = E35A28, `margin-top: 0px;`, `margin-top:-7px;`
  201. #
  202. # Uncomment one of the following lines to use a fixed font style. This is
  203. # recommended if you have chosen examples 1 or 4 above, because some other
  204. # fonts sit too low in the footer and get cut off at the bottom.
  205. # Also enable one of the Custom header style patches below with the same font
  206. # style if you read kepubs.
  207. #
  208. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Amasis;`
  209. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Avenir;`
  210. #replace_string = E35A3A, `/*font-family:none;*/`, `font-family: Georgia;`
  211. #
  212. </Patch>
  213.  
  214.  
  215. <Patch>
  216. patch_name = `Custom header style for Touch`
  217. patch_enable = `no`
  218. replace_string = E15E10, `* {\nfont-size: 16px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\nqproperty-leading: 0;\n}`, `* {\nfont-size: 16px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}`
  219. #
  220. # BE CAREFUL NOT TO ALTER THE LENGTH OF THE FOLLOWING REPLACEMENT STRINGS!
  221. # (Add or remove spaces if necessary to keep the total length the same.)
  222. #
  223. replace_string = E15E14, `font-size: 16px;`, `font-size: 16px;`
  224. #
  225. #replace_string = E15E25, `font-family: Avenir;`, `font-family: Amasis;`
  226. replace_string = E15E25, `font-family: Avenir;`, `font-family: Avenir;`
  227. #replace_string = E15E25, `font-family: Avenir;`, `font-family: Georgia;`
  228. #
  229. </Patch>
  230.  
  231.  
  232. <Patch>
  233. patch_name = `Custom header style for Mini`
  234. patch_enable = `no`
  235. replace_string = E168F4, `* {\nfont-size: 20px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}\n\n[qApp_deviceCodeName="pixie"] {\nfont-size: 18px;\n}\n\n[qApp_deviceCodeName="dragon"] {\nfont-family: Georgia;\nfont-size: 26px;\n}\n\n[qApp_localeName="ja_JP"] {\nfont-family: A-OTF Gothic MB101 Pr6N;\n}`, `* {\nfont-size: 20px;\nfont-family: Avenir;\nbackground-color: transparent;\npadding-top:3px;\n}`
  236. #
  237. # BE CAREFUL NOT TO ALTER THE LENGTH OF THE FOLLOWING REPLACEMENT STRINGS!
  238. # (Add or remove spaces if necessary to keep the total length the same.)
  239. #
  240. replace_string = E168F8, `font-size: 20px;`, `font-size: 18px;`
  241. #
  242. #replace_string = E16909, `font-family: Avenir;`, `font-family: Amasis;`
  243. replace_string = E16909, `font-family: Avenir;`, `font-family: Avenir;`
  244. #replace_string = E16909, `font-family: Avenir;`, `font-family: Georgia;`
  245. #
  246. </Patch>
  247.  
  248.  
  249. <Patch>
  250. patch_name = `Custom header style for Glo/Aura/AuraHD/H2O`
  251. patch_enable = `yes`
  252. replace_string = E14BA0, `* {\n\tbackground-color: transparent;\n\tpadding-top:3px;\n}\n\n[qApp_deviceCodeName="dragon"] {\n\tfont-size: 26px;\n}\n\n[qApp_deviceCodeName="phoenix"] {\n\tfont-size: 21px;\n}\n\n[qApp_localeName="ja_JP"] {\n\tfont-family: A-OTF Gothic MB101 Pr6N;\n\tqproperty-leading: 0;\n}`, `* {\n\tbackground-color: transparent;\n\tpadding-top:3px;\n\t/*font-family:none;*/\n\tfont-size: 21px;\n}`
  253. #
  254. # BE CAREFUL NOT TO ALTER THE LENGTH OF THE FOLLOWING REPLACEMENT STRINGS!
  255. # (Add or remove spaces if necessary to keep the total length the same.)
  256. #
  257. # Font size for Glo/Aura
  258. replace_string = E14BEE, `font-size: 21px;`, `font-size: 21px;`
  259. #
  260. # Font size for AuraHD/H2O
  261. #replace_string = E14BEE, `font-size: 21px;`, `font-size: 26px;`
  262. #
  263. # Font family for Glo/Aura/AuraHD/H2O
  264. #replace_string = E14BD7, `/*font-family:none;*/`, `font-family: Amasis;`
  265. replace_string = E14BD7, `/*font-family:none;*/`, `font-family: Avenir;`
  266. #replace_string = E14BD7, `/*font-family:none;*/`, `font-family: Georgia;`
  267. </Patch>
  268.  
  269.  
  270. #
  271. # The following two patches are alternatives, don't enable both at once.
  272. #
  273. <Patch>
  274. patch_name = `My 10 line spacing values`
  275. patch_enable = `no`
  276. replace_bytes = 6C3AD4, 8D F5 8A ED, 00 46 00 46
  277. replace_bytes = 6C3B2A, 8D F5 60 ED, 00 46 00 46
  278. replace_bytes = 6C3B54, 8D F5 4A ED, 00 46 00 46
  279. replace_bytes = 6C3B90, 8D F5 2C ED, 00 46 00 46
  280. replace_bytes = 6C3BF6, 8D F5 FA EC, 00 46 00 46
  281. #
  282. # 10 values for replacement
  283. replace_float = 6C3C88, 1.05, 0.75
  284. replace_float = 6C3C90, 1.07, 0.8
  285. replace_float = 6C3C98, 1.1, 0.84
  286. replace_float = 6C3CA0, 1.35, 0.86
  287. replace_float = 6C3CA8, 1.7, 0.88
  288. replace_float = 6C3CB0, 1.8, 0.9
  289. replace_float = 6C3CB8, 2.2, 0.92
  290. replace_float = 6C3CC0, 2.4, 0.94
  291. replace_float = 6C3CC8, 2.6, 0.96
  292. replace_float = 6C3CD0, 2.8, 1.0
  293. </Patch>
  294.  
  295.  
  296. <Patch>
  297. patch_name = `My 15 line spacing values`
  298. patch_enable = `yes`
  299. # load val1 from new table
  300. replace_bytes = 6C3ABC, 00 23 00 22 C3 F6 F0 73, 00 46 40 A3 D3 E9 00 23
  301. # load val5 from new table
  302. replace_bytes = 6C3B14, 43 F2 33 33 4F F0 33 32, 2C A3 D3 E9 00 23 00 46
  303. replace_bytes = 6C3B1C, C3 F6 F3 73, 00 46 00 46
  304. # load val7 from new table
  305. replace_bytes = 6C3B42, 00 23 00 22 C3 F6 F8 73, 00 46 22 A3 D3 E9 00 23
  306. # load val10 from new table
  307. replace_bytes = 6C3B80, 00 22 4F F0 80 43, 15 A3 D3 E9 00 23
  308. # load val11-val14 from old table in a loop to make room for new table
  309. replace_bytes = 6C3B94, 48 A3 D3 E9 00 23 07 F1, 48 A7 00 26 D7 E9 00 23
  310. replace_bytes = 6C3B9C, 80 01 20 46 61 E9 0A 23, 20 A9 31 44 61 E9 0A 23
  311. replace_bytes = 6C3BA4, 8D F5 22 ED 45 A3 D3 E9, 20 46 8D F5 22 ED 08 36
  312. replace_bytes = 6C3BAC, 00 23 07 F1 80 01 20 46, 08 37 20 2E F2 D1 00 AF
  313. # load val15 from new table, jump over new table
  314. replace_bytes = 6C3BB4, 61 E9 08 23 8D F5 18 ED, 0A A3 D3 E9 00 23 17 E0
  315. # new table, inial values 1.0, 1.2, 1.5, 2.0, 3.0
  316. replace_bytes = 6C3BC0, 00 23 07 F1 80 01 20 46, 00 00 00 00 00 00 F0 3F
  317. replace_bytes = 6C3BC8, 61 E9 06 23 8D F5 0E ED, 33 33 33 33 33 33 F3 3F
  318. replace_bytes = 6C3BD0, 3F A3 D3 E9 00 23 07 F1, 00 00 00 00 00 00 F8 3F
  319. replace_bytes = 6C3BD8, 80 01 20 46 61 E9 04 23, 00 00 00 00 00 00 00 40
  320. replace_bytes = 6C3BE0, 8D F5 04 ED 00 23 00 22, 00 00 00 00 00 00 08 40
  321. #
  322. # 15 values for replacement
  323. replace_float = 6C3BC0, 1.0, 0.7
  324. replace_float = 6C3C88, 1.05, 0.75
  325. replace_float = 6C3C90, 1.07, 0.8
  326. replace_float = 6C3C98, 1.1, 0.82
  327. replace_float = 6C3BC8, 1.2, 0.84
  328. replace_float = 6C3CA0, 1.35, 0.86
  329. replace_float = 6C3BD0, 1.5, 0.88
  330. replace_float = 6C3CA8, 1.7, 0.9
  331. replace_float = 6C3CB0, 1.8, 0.92
  332. replace_float = 6C3BD8, 2.0, 0.94
  333. replace_float = 6C3CB8, 2.2, 0.96
  334. replace_float = 6C3CC0, 2.4, 0.98
  335. replace_float = 6C3CC8, 2.6, 1.0
  336. replace_float = 6C3CD0, 2.8, 1.05
  337. replace_float = 6C3BE0, 3.0, 1.1
  338. </Patch>
  339.  
  340.  
  341. <Patch>
  342. patch_name = `Custom fonts sizes`
  343. patch_enable = `yes`
  344. # 40 values for replacement
  345. replace_int = D94248, 12, 16
  346. replace_int = D9424C, 14, 18
  347. replace_int = D94250, 16, 20
  348. replace_int = D94254, 17, 21
  349. replace_int = D94258, 18, 22
  350. replace_int = D9425C, 19, 23
  351. replace_int = D94260, 20, 24
  352. replace_int = D94264, 21, 25
  353. replace_int = D94268, 22, 26
  354. replace_int = D9426C, 24, 27
  355. replace_int = D94270, 25, 28
  356. replace_int = D94274, 26, 29
  357. replace_int = D94278, 28, 30
  358. replace_int = D9427C, 32, 31
  359. replace_int = D94280, 36, 32
  360. replace_int = D94284, 40, 33
  361. replace_int = D94288, 44, 34
  362. replace_int = D9428C, 46, 35
  363. replace_int = D94290, 48, 36
  364. replace_int = D94294, 50, 37
  365. replace_int = D94298, 52, 38
  366. replace_int = D9429C, 54, 39
  367. replace_int = D942A0, 56, 40
  368. replace_int = D942A4, 58, 41
  369. replace_int = D942A8, 60, 42
  370. replace_int = D942AC, 62, 43
  371. replace_int = D942B0, 64, 44
  372. replace_int = D942B4, 66, 45
  373. replace_int = D942B8, 68, 46
  374. replace_int = D942BC, 70, 47
  375. replace_int = D942C0, 72, 48
  376. replace_int = D942C4, 74, 49
  377. replace_int = D942C8, 76, 50
  378. replace_int = D942CC, 78, 52
  379. replace_int = D942D0, 80, 54
  380. replace_int = D942D4, 82, 56
  381. replace_int = D942D8, 84, 58
  382. replace_int = D942DC, 86, 60
  383. replace_int = D942E0, 88, 62
  384. replace_int = D942E4, 90, 64
  385. </Patch>
  386.  
  387.  
  388. <Patch>
  389. patch_name = `Custom left & right margins`
  390. patch_enable = `yes`
  391. # Values for replace
  392. replace_int = 1081174, 00, 00
  393. replace_int = 1081178, 02, 01
  394. replace_int = 108117C, 04, 02
  395. replace_int = 1081180, 06, 03
  396. replace_int = 1081184, 08, 04
  397. replace_int = 1081188, 10, 05
  398. replace_int = 108118C, 12, 06
  399. replace_int = 1081190, 14, 07
  400. replace_int = 1081194, 16, 08
  401. </Patch>
  402.  
  403.  
  404. <Patch>
  405. patch_name = `Brightness fine control`
  406. patch_enable = `yes`
  407. replace_int = 975B4A, 10, 01
  408. replace_int = 975B7A, 10, 01
  409. </Patch>
  410.  
  411.  
  412. <Patch>
  413. patch_name = `Search in Library by default`
  414. patch_enable = `yes`
  415. replace_bytes = A32CD8, 00 21, 01 21
  416. </Patch>
  417.  
  418.  
  419. <Patch>
  420. patch_name = `Unitless ePub line height`
  421. patch_enable = `yes`
  422. #
  423. # See http://www.mobileread.com/forums/showpost.php?p=2812097&postcount=31
  424. # for a description of the problem fixed by this patch.
  425. #
  426. replace_bytes = C99B5C, 65 00 6D 00, 20 00 20 00
  427. </Patch>
  428.  
  429.  
  430. <Patch>
  431. patch_name = `Freedom to advanced fonts control`
  432. patch_enable = `yes`
  433. #
  434. # This patch allows the advanced font options (weight/sharpness adjustments)
  435. # to be used with sideloaded fonts too.
  436. #
  437. # WARNING: IT IS NOT SAFE TO ENABLE THIS PATCH IF YOUR DEVICE IS SET TO A
  438. # JAPANESE LOCALE OR JAPANESE BOOKS ARE OPENED.
  439. #
  440. # VolumeManager.isJapanese() --> False
  441. replace_bytes = 6C1184, 81 F5 48 EC, 00 20 00 20
  442. # N3FontTypeUtil.setupMonotypeDropdown(a,b)
  443. # --> N3FontTypeUtil.setupDropdown(UNDEFINED,a,b)
  444. replace_bytes = 83DB32, 58 46 51 46, 59 46 52 46
  445. replace_bytes = 83DB36, FC F7 BC E5, 13 F4 F8 EC
  446. # N3FontTypeController.setupAdvancedOption --> NOP
  447. replace_bytes = 99F552, C6 F6 BC E5, 00 46 00 46
  448. replace_bytes = 9A15F8, C4 F6 68 E5, 00 46 00 46
  449. </Patch>
  450.  
  451.  
  452. <Patch>
  453. patch_name = `Allow download all in Browser`
  454. patch_enable = `yes`
  455. replace_bytes = 86E720, F5 F7 44 E3, 01 20 01 20
  456. </Patch>
  457.  
  458. #
  459. # The following two patches are alternatives, don't enable both at once.
  460. #
  461.  
  462. <Patch>
  463. patch_name = `ePub adjustable top/bottom margin`
  464. patch_enable = `yes`
  465. #
  466. # If enabled, this patch causes the margin adjustment slider to
  467. # adjust the top/bottom margins along with the left/right margins in epubs.
  468. # Note that it has the side-effect of overriding any existing margins set in
  469. # the book by the @page rule and removing the pre-existing padding-bottom
  470. # from the built-in stylesheet's body rule.
  471. #
  472. # getReadingLineHeight(...) --> getReadingLeftMargin(...)
  473. replace_bytes = 51EBC0, 4A F7 EC E8, 2C F7 F4 ED
  474. # QString.arg(double, ...) --> QString.arg(int64, ...)
  475. replace_bytes = 51EBC4, 20 22 4F F0 FF 33, 20 21 01 22 0A 23
  476. replace_bytes = 51EBCE, AD F8 04 20 00 93, 02 91 42 43 01 93
  477. replace_bytes = 51EBD8, 00 22 67 23 37 F7 EA EC, 00 23 00 93 2C F7 94 E9
  478. #
  479. # Alternative 1: Adjustable top, zero bottom margin: @page {margin:%1px 0 0 0}
  480. #replace_string = C99B8C, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00\x20\x00%\x001\x00e\x00m\x00\x20\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00\n\x00@\x00p\x00a\x00g\x00e\x00\x20\x00{\x00m\x00a\x00r\x00g\x00i\x00n\x00:\x00%\x001\x00p\x00x\x00\x20\x000\x00\x20\x000\x00\x20\x000\x00}\x00\n\x00b\x00o\x00d\x00y\x00\x20\x00{\x00`
  481. #
  482. # Alternative 2: Adjustable top and bottom margin: @page {margin:%1px 0}
  483. replace_string = C99B8C, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00\x20\x00%\x001\x00e\x00m\x00\x20\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00\n\x00@\x00p\x00a\x00g\x00e\x00\x20\x00{\x00m\x00a\x00r\x00g\x00i\x00n\x00:\x00%\x001\x00p\x00x\x00\x20\x000\x00}\x00\n\x00b\x00o\x00d\x00y\x00\x20\x00{\x00\x20\x00\x20\x00\x20\x00\x20\x00`
  484. #
  485. # Set the value of the top/bottom margin to a multiple of readingLeftMargin,
  486. # in pixels. Suggested values:
  487. # Normal reading mode: 5px (Touch/Mini), 6px (Glo/Aura), 8px (AuraHD/H2O)
  488. # Full-screen reading mode: 6px (Touch/Mini), 7px (Glo/Aura), 10px (AuraHD/H2O)
  489. replace_int = 51EBC6, 1, 6
  490. #
  491. </Patch>
  492.  
  493.  
  494. <Patch>
  495. patch_name = `ePub fixed top/bottom margin`
  496. patch_enable = `no`
  497. #
  498. # If enabled, this patch sets the top/bottom page margins for ePubs to a fixed
  499. # value by adding a line @page {margin:10px 0 0 0} or @page {margin:10px 0}
  500. # to the built-in stylesheet.
  501. # Note that it has the side-effect of overriding any existing @page margins
  502. # set in the book's stylesheet and removing the pre-existing padding-bottom
  503. # from the built-in stylesheet's body rule.
  504. #
  505. # Alternative 1: Custom top, zero bottom margin: @page {margin:10px 0 0 0}
  506. replace_string = C99B8C, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00\x20\x00%\x001\x00e\x00m\x00\x20\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00\n\x00@\x00p\x00a\x00g\x00e\x00\x20\x00{\x00m\x00a\x00r\x00g\x00i\x00n\x00:\x001\x000\x00p\x00x\x00\x20\x000\x00\x20\x000\x00\x20\x000\x00}\x00\n\x00b\x00o\x00d\x00y\x00\x20\x00{\x00`
  507. #
  508. # Alternative 2: Custom top and equal bottom margin: @page {margin:10px 0}
  509. #replace_string = C99B8C, `\x20\x00p\x00a\x00d\x00d\x00i\x00n\x00g\x00-\x00b\x00o\x00t\x00t\x00o\x00m\x00:\x00\x20\x00%\x001\x00e\x00m\x00\x20\x00!\x00i\x00m\x00p\x00o\x00r\x00t\x00a\x00n\x00t\x00;\x00\n\x00`, `}\x00\n\x00@\x00p\x00a\x00g\x00e\x00\x20\x00{\x00m\x00a\x00r\x00g\x00i\x00n\x00:\x001\x000\x00p\x00x\x00\x20\x000\x00\x20\x00\x20\x00\x20\x00\x20\x00}\x00\n\x00b\x00o\x00d\x00y\x00\x20\x00{\x00`
  510. #
  511. # Replacement value: a 2-digit number (margin size in pixels) seperated by \x00
  512. # E.g. 25 = 2\x005, 30 = 3\x000, etc.
  513. replace_string = C99BAC, `1\x000`, `2\x005`
  514. </Patch>
  515.  
  516.  
  517. <Patch>
  518. patch_name = `Custom page refresh options`
  519. patch_enable = `no`
  520. # cmp r5, #7; bne.n; --> cmp r5, #6; bls.n;
  521. replace_bytes = 844134, 07 2D 9A D1, 06 2D 9A D9
  522. #
  523. # Values for replacement: (Alternative 1, arithmetic sequence e.g. 1,2,3,...,12)
  524. # Base (use this value for the first menu option):
  525. replace_int = 844064, 1, 1
  526. # Increment (add this value to get each successive menu option):
  527. replace_int = 844132, 1, 1
  528. # Maxmium (stop adding options when this value is exceeded):
  529. replace_int = 844134, 6, 12
  530. #
  531. # Values for replacement: (Alternative 2, geometric sequence 1,2,4,8,16,32,64)
  532. # Base (use this value for the first menu option):
  533. #replace_int = 844064, 1, 1
  534. # Double to get each successive menu option:
  535. #replace_bytes = 844132, 01 35, 6D 00
  536. # Maxmium (stop adding options when this value is exceeded):
  537. #replace_int = 844134, 6, 64
  538. </Patch>
  539.  
  540.  
  541. <Patch>
  542. patch_name = `Remove system fonts in Reader list`
  543. patch_enable = `no`
  544. #
  545. # Removes Amasis, Avenir, Caecilia, Georgia, Gill Sans, Kobo Nickel, Malabar.
  546. # BEWARE: Also removes sideloaded Delima, Felbridge, Rockwell, Times New Roman.
  547. #
  548. replace_bytes = 9A366C, A1 F6 90 E2, 00 46 00 46
  549. </Patch>
  550.  
  551.  
  552. <Patch>
  553. patch_name = `Remove non-system fonts in Reader list`
  554. patch_enable = `no`
  555. #
  556. # Removes Gothic, Ryumin, OpenDyslexic.
  557. # BEWARE: Also removes most other sideloaded fonts.
  558. #
  559. replace_bytes = 9A369A, A1 F6 7A E2, 00 46 00 46
  560. </Patch>
  561.  
  562.  
  563. <Patch>
  564. patch_name = `Cyrillic keyboard`
  565. patch_enable = `no`
  566. # Enable uppercase for sharp-s key
  567. replace_bytes = 90723C, 00 24, 01 24
  568. # Replace layout sign
  569. replace_bytes = D6BF78, C3 89 C3 80 C3 87, D0 B0 D0 B1 D0 B2
  570. # Change keyboard layout
  571. replace_bytes = D6BE98, C3 A6, D0 B9
  572. #
  573. replace_bytes = D6BE9C, C3 A0, D1 86
  574. replace_bytes = D6BEA0, C3 A8, D1 83
  575. replace_bytes = D6BEA4, C3 AC, D0 BA
  576. replace_bytes = D6BEA8, C3 B2, D0 B5
  577. replace_bytes = D6BEAC, C3 B9, D0 BD
  578. replace_bytes = D6BEB0, C3 A1, D0 B3
  579. replace_bytes = D6BEB4, C3 A9, D1 88
  580. replace_bytes = D6BEB8, C3 AD, D1 89
  581. replace_bytes = D6BEBC, C3 B3, D0 B7
  582. replace_bytes = D6BEC0, C3 BA, D1 85
  583. replace_bytes = D6BEC4, C3 BD, D1 8A
  584. #
  585. replace_bytes = D6BEC8, C5 93, D1 84
  586. #
  587. replace_bytes = D6BECC, C3 A2, D1 8B
  588. replace_bytes = D6BED0, C3 AA, D0 B2
  589. replace_bytes = D6BED4, C3 AE, D0 B0
  590. replace_bytes = D6BED8, C3 B4, D0 BF
  591. replace_bytes = D6BEDC, C3 BB, D1 80
  592. replace_bytes = D6BEE0, C3 A4, D0 BE
  593. replace_bytes = D6BEE4, C3 AB, D0 BB
  594. replace_bytes = D6BEE8, C3 AF, D0 B4
  595. replace_bytes = D6BEEC, C3 B6, D0 B6
  596. replace_bytes = D6BEF0, C3 BC, D1 8D
  597. replace_bytes = D6BEF4, C3 BF, D1 91
  598. #
  599. replace_bytes = D6BEF8, C3 A3, D1 8F
  600. replace_bytes = D6BEFC, C3 B1, D1 87
  601. replace_bytes = D6BF00, C3 B5, D1 81
  602. replace_bytes = D6BF04, C3 A5, D0 BC
  603. #
  604. replace_bytes = D6BF08, C3 9F, D0 B8
  605. #
  606. replace_bytes = D6BF0C, C3 A7, D1 82
  607. replace_bytes = D6BF10, C4 91, D1 8C
  608. replace_bytes = D6BF14, C3 B8, D0 B1
  609. replace_bytes = D6BF18, C4 B3, D1 8E
  610. #
  611. replace_bytes = D6BF1C, C5 82, 2E 00
  612. </Patch>
  613.  
  614.  
  615. <Patch>
  616. patch_name = `Force user line spacing in KePubs`
  617. patch_enable = `no`
  618. #
  619. # This patch will allow the line spacing set by the slider to take effect
  620. # in some problem KePub books with fixed linespacing (ones where the publisher
  621. # has used <div> instead of <p> for pararaphs.) However it might also override
  622. # some line spacing that would better be left fixed.
  623. #
  624. # body, p { line-height: %1 ... } --> body,div,p{line-height:%1 ... }
  625. replace_string = DB3F5C, `b\x00o\x00d\x00y\x00,\x00 \x00p\x00 \x00{\x00 \x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00 \x00%`, `b\x00o\x00d\x00y\x00,\x00d\x00i\x00v\x00,\x00p\x00{\x00l\x00i\x00n\x00e\x00-\x00h\x00e\x00i\x00g\x00h\x00t\x00:\x00%`
  626. </Patch>
  627.  
  628.  
  629. <Patch>
  630. patch_name = `Customise PinchGestureRecognizer`
  631. patch_enable = `no`
  632. # PinchGestureRecognizer::StationaryTolerance
  633. replace_float = CFDBF0, 5.0, 5.0
  634. # PinchGestureRecognizer::UpdateTolerance
  635. replace_float = CFDBF8, 10.0, 10.0
  636. # PinchGestureRecognizer::TriggerTolerance
  637. replace_float = CFDC00, 30.0, 30.0
  638. </Patch>
  639.  
  640.  
  641. <Patch>
  642. patch_name = `Wi-Fi insomnia`
  643. patch_enable = `no`
  644. #
  645. # Do not enable this patch unless you're sure you need it.
  646. # It prevents the wifi turning off, which may drain the device's battery.
  647. #
  648. replace_bytes = 624F5C, 29 B9, 00 46
  649. </Patch>
  650.  
  651.  
  652. <Patch>
  653. patch_name = `Margins fine tuning`
  654. patch_enable = `no`
  655. #
  656. # Do not enable this patch unless you're sure you need it.
  657. # It may cause the screen to be off-centre.
  658. #
  659. # Initial replaces
  660. replace_bytes = 9FC5FC, 19 46, 00 21
  661. replace_bytes = 9FC600, 1A 46, 00 22
  662. # Values for replace
  663. # Left margin
  664. replace_int = 9FC5FC, 0, 10
  665. # Top margin
  666. replace_int = 9FC600, 0, 10
  667. </Patch>
  668.  
  669.  
  670. <Patch>
  671. patch_name = `Custom kepub default margins`
  672. patch_enable = `no`
  673. # Device = Glo/Aura, Type = pocket article or non-Japanese kepub
  674. replace_int = 6601B6, 25, 5
  675. # Device = Glo/Aura, Type = Japanese kepub
  676. replace_int = 6601B8, 45, 5
  677. # Device = Other, Type = Any
  678. replace_int = 6601C6, 20, 5
  679. </Patch>
  680.  
  681.  
  682. <Patch>
  683. patch_name = `Block WiFi firmware upgrade`
  684. patch_enable = `no`
  685. #
  686. # This patch is untested. If it works then the firmware will not be upgraded
  687. # during a WiFi sync, but you can still upgrade manually or by syncing with
  688. # the Kobo desktop.
  689. #
  690. replace_string = CF086A, `%\x003\x00/\x00%\x004\x00/\x00%\x005\x00`, `k\x00/\x009\x009\x00.\x009\x00/\x005\x00`
  691. </Patch>
  692.  
  693.  
  694. <Patch>
  695. patch_name = `Custom footer`
  696. patch_enable = `yes`
  697. #
  698. # Changes the footer text with something shorter
  699. # (not sure how it affects translations)
  700. #
  701. replace_string = D1BCE8, `Page %1 <i>of</i> %2`, `%1 / %2`
  702. </Patch>
  703.  
  704. <Patch>
  705. patch_name = `Remove white borders from homescreen tile book covers`
  706. patch_enable = `yes`
  707. #PhoenixSmallRecentBookTile
  708. replace_string = D59063, `coverBorder:4;`, `coverBorder:0;`
  709. replace_string = D59134, `coverBorder:4;`, `coverBorder:0;`
  710. #PocketRecentlyReadTile
  711. replace_string = D5A02E, `coverBorder: 6;`, `coverBorder: 0;`
  712. replace_string = D5A0F3, `coverBorder: 4;`, `coverBorder: 0;`
  713. #RecentBookTile
  714. replace_string = D5C4C8, `coverBorder:6;`, `coverBorder:0;`
  715. replace_string = D5C580, `coverBorder:4;`, `coverBorder:0;`
  716. replace_string = D5C667, `coverBorder:4;`, `coverBorder:0;`
  717. #SmallRecentBookTile
  718. replace_string = D5EDCE, `coverBorder:6;`, `coverBorder:0;`
  719. </Patch>
  720.  
  721. <Patch>
  722. patch_name = `Compact homepage layout (Glo)`
  723. patch_enable = `yes`
  724. #DragonHomePageView (Search bar height)
  725. replace_string = D51AE8, `min-height:100px;`, `min-height:090px;`
  726. replace_string = D51AFB, `max-height:100px;`, `max-height:090px;`
  727. #QWidget (Space below search bar)
  728. replace_string = D51C81, `min-height:40px;`, `min-height:08px;`
  729. replace_string = D51C93, `max-height:40px;`, `max-height:08px;`
  730. #MultiColumnTileView (Space between tiles)
  731. replace_string = D51E31, `horizontalSpacing:10;`, `horizontalSpacing:04;`
  732. replace_string = D51E52, `verticalSpacing:10;`, `verticalSpacing:04;`
  733. #footer (Footer menu bar height)
  734. replace_string = D5227E, `min-height:95px;`, `min-height:68px;`
  735. replace_string = D52290, `max-height:95px;`, `max-height:68px;`
  736. #PhoenixSmallRecentBookTile
  737. replace_string = D59024, `percentFontSize:28;`, `percentFontSize:22;`
  738. replace_string = D59043, `progressFontSize:22;`, `progressFontSize:22;`
  739. #RecentBookTile
  740. replace_string = D5C51B, `percentFontSize:28;`, `percentFontSize:22;`
  741. replace_string = D5C540, `progressFontSize:22;`, `progressFontSize:22;`
  742. </Patch>
Advertisement
Add Comment
Please, Sign In to add comment