View Single Post
Old 01-27-2020, 06:39 AM   #237
jackie_w
Grand Sorcerer
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 6,252
Karma: 16544692
Join Date: Sep 2009
Location: UK
Device: ClaraHD, Forma, Libra2, Clara2E, LibraCol, PBTouchHD3
Quote:
Originally Posted by Hendo View Post
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 View Post
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.
jackie_w is offline   Reply With Quote