Support and General Use > Theming and Appearance Customization
Wrapping a long title
Dook:
--- Quote from: chronicallyoffline on April 27, 2025, 12:56:29 PM ---
--- Quote from: iPodVT on April 23, 2025, 12:13:31 PM ---
--- Quote from: mango on April 23, 2025, 03:42:35 AM ---With a monospaced font I could calculate the number of characters on a line...
--- End quote ---
How would you do that?
--- End quote ---
From the CustomWPS page
%?if(%ss(0, 20, %it), =, %it)<track title length is 20 characters or less|track title length is over 20 characters>
I've attempted it, but the issue is there's no way to guarantee a break on a space unless there's some additional conditional wizardry we can do.
--- End quote ---
I've made a way recently to achieve this, but it's not foolproof since it relies on Bilgus' new file reading tag. There's no way within the theme spec to obtain a whitespace character for comparisons to make a conditional algorithm for breaking on space.
iPodVT:
--- Quote from: chronicallyoffline on April 27, 2025, 12:56:29 PM ---From the CustomWPS page
%?if(%ss(0, 20, %it), =, %it)<track title length is 20 characters or less|track title length is over 20 characters>
I've attempted it, but the issue is there's no way to guarantee a break on a space unless there's some additional conditional wizardry we can do.
--- End quote ---
Thanks. So you are hardcoding a specific mono spaced font which allows you to pre know exactly how many chars you can fit in the horizontal space?
iPodVT:
--- Quote from: Dook on April 28, 2025, 06:17:56 AM ---I've made a way recently to achieve this, but it's not foolproof since it relies on Bilgus' new file reading tag. There's no way within the theme spec to obtain a whitespace character for comparisons to make a conditional algorithm for breaking on space.
--- End quote ---
Thanks. And what if the second line of text doesn't fit within the horizontal space - does it scroll or wrap again or just get clipped/truncated? The Title, Artist, Album, etc ID3 tags for Classical Music can sometimes be extremely verbose.
Do you ever notice any processing time lags in your WPS?
I will have to try out these various themes and also look at their code.
Navigation
[0] Message Index
[*] Previous page
Go to full version