View Single Post
Old 03-11-2019, 11:10 AM   #184
codychan
Groupie
codychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud ofcodychan has much to be proud of
 
codychan's Avatar
 
Posts: 153
Karma: 27950
Join Date: Nov 2018
Device: Kobo Aura One, Kobo Forma
Quote:
Originally Posted by GeoffR View Post
Variations on the previous patch: instead of choosing the number of columns based on font size, these patches will use a fixed number of columns regardless of fonts size, depending only on whether the screen orientation is portrait or landscape.

1P/1L = single column in either orientation.
1P/2L = 1 column portrait, 2 columns landscape
2P/3L = 2 columns portrait, 3 columns landscape

I haven't tested these, maybe someone with a Forma or other landscape-enabled device could try them out. Paste the patch for your device into librmdsk.so.1.0.0.yaml, and test on an ePub book that doesn't have an embedded XPGT stylesheet.

1P/1L, All devices:
Spoiler:
Code:
ePub default 1P/1L columns [All]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "9999px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "6666px"}


1P/2L, 2P/3L, Daylight devices (Forma, AuraOne):
Spoiler:
Code:
ePub default 1P/2L columns [Daylight]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "1921px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "1441px"}

ePub default 2P/3L columns [Daylight]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "1441px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "961px"}


1P/2L, 2P/3L, Dragon devices (Clara, H2O, GloHD, AuraHD)
Spoiler:
Code:
ePub default 1P/2L columns [Dragon]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "1449px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "1081px"}

ePub default 2P/3L columns [Dragon]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "1081px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "725px"}


1P/2L, 2P/3L, Phoenix devices (Glo, Aura, Aura2)
Spoiler:
Code:
ePub default 1P/2L columns [Phoenix]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "1025px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "769px"}

ePub default 2P/3L columns [Phoenix]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "769px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "513px"}


1P/2L, 2P/3L, Trilogy devices (Mini, Touch, Touch2)
Spoiler:
Code:
ePub default 1P/2L columns [Trilogy]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "801px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "601px"}

ePub default 2P/3L columns [Trilogy]:
  - Enabled: no
  - PatchGroup: ePub multi-column alternatives
  - FindReplaceString: {Find: "93em\0\0", Replace: "601px"}
  - FindReplaceString: {Find: "61.5em",   Replace: "401px"}
I tried each patch on my kobo forma, neither of them works. The latest version of firmware here.

And I did try to search XPGT keyword in my epub file using Calibre's editing feature, and I'm sure the file contains no XPGT stylesheet.

Last edited by codychan; 03-11-2019 at 11:14 AM.
codychan is offline   Reply With Quote