View Single Post
Old 03-11-2019, 06:36 AM   #183
GeoffR
Wizard
GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.GeoffR ought to be getting tired of karma fortunes by now.
 
GeoffR's Avatar
 
Posts: 3,821
Karma: 19162882
Join Date: Nov 2012
Location: Te Riu-a-Māui
Device: Kobo Glo
ePub 1/1, 1/2 and 2/3 portrait/landscape columns (testing)

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"}
GeoffR is offline   Reply With Quote