Support and General Use > Theming and Appearance Customization
Possible to auto-size viewports for translated words?
iPodFoo:
I'm updating some of my themes to be able to use Text Translation %Sx tags. I have a "Next:" in a viewport, then the track text scrolls after it in a seperate viewport. Like so:
--- Code: ---#
%V|10|98|27|12|3|B8C8E1|-|
%ar%Sx|Next:|
%V|40|98|126|12|3|B8C8E1|-|
%s%?It<%It|%Sx|<No Info>|>
#
--- End code ---
The problem is, the "Next:" is in a static box size and foreign words have more characters and so get clipped.
Is there a way to have viewports auto size to word length? Scrolling it is not really an option as it'll look ugly. It would have to shunt the next viewports left side along too I suppose.
Llorean:
The best you could do, I imagine, is to use two lines rather than one so that space is only limited by the screen or maximum space.
iPodFoo:
--- Quote ---...use two lines rather than one...
--- End quote ---
Sadly, thats not an option as theres no extra space.
I think I might have to turn the word "Next" into an icon, perhaps like the skip track icon on a cd player.
JdGordon:
depends on how much this is wanted I might have a play. viewports need to be statically sized which limits it a bit, but I might be open to putting *in the viewport definition* the %Sx tag or plain text to size it correctly for the font. No rpomises of course
iPodFoo:
--- Quote ---No rpomises of course
--- End quote ---
No pressure ;D
I think a resize option definately makes sense with text to be translated.
Navigation
[0] Message Index
[#] Next page
Go to full version