Quote:
Originally Posted by Hendo
I also have a question for jackie_w, when using part #2 of your scrubber text properties patch for the Page X of Y label. I cannot get it to capitalize the word 'page'. I can lowercase it all, uppcase it all but that's all. I have seen your screenshot displaying the text how I would like it. (#2 in this post) https://www.mobileread.com/forums/sh...74&postcount=3 But have no iodea how you managed it. Maybe the latest firmware defaults to all caps?
|
Patch
Custom page navigation scrubber in nickel.yaml has a section 2b. which is commented out by default.
Code:
# 2b. Customise other font properties of 'Page x of y' label (all models)
# e.g. text-transform (uppercase or none)
# font-family, font-weight, font-style, etc.
# Un-comment next 2 lines and change Replace CSS as desired
#- Find: "#page {\n padding-left: 0px;\n}"
# Replace: "#page {padding-left: 0px; font-family:Georgia; text-transform:none;}"
Un-comment the last 2 lines and use the 2nd to change styling as required, specifically the text-transform style.
It works in tandem with patch
Custom navigation menu page number text in libnickel.so.1.0.0.yaml which can be used to adjust the 'Page x of y' text in the scrubber only.
Quote:
Originally Posted by Hendo
Update: for clarification, this is when trying to use the below patch:
I would like to have [Replace: "Page %1 of %2"]
|
You probably need geek1011 to explain this better than I can but there are limitations on freedom to patch libnickel.so.1.0.0 because there are always code length considerations. Usually you can make patched text strings shorter (and add padding) but you can't make them longer than the original.
Patches in nickel.yaml have more freedom to expand/contract the original.