B.21.Alignment And Language Direction; B.22.Conditional Tags - Toshiba Gigabeat F Series User Manual

Digital audio players
Table of Contents

Advertisement

Appendix B. Theme Tags
B.21. Alignment and language direction
Tag
%al
%aL
%ac
%ar
%aR
%ax
%Sr
All alignment tags may be present in one line, but they need to be in the order left –
centre – right. If the aligned texts overlap, they are merged.
Example: %ax%V(...)
B.22. Conditional Tags
Tag
%?xx<true|false>
%?xx<alt1|alt2|
alt3|...|else>
%if(tag,
operator,
operand, [option
count])
Examples of the %if tag:
%?if(%pv, >=, 0)<Clipping possible|Volume OK> will display "Clipping possible"
if the volume is higher than or equal to 0 dB, "Volume OK" if it is lower.
%?if(%ia, =, %Ia)<same artist> – this artist and the next artist are the same.
Note: When performing a comparison against a string tag such as %ia, only = and !=
The Rockbox manual
Description
Align the text left
Align the text left, or to the right if RTL language is in use
Centre the text
Align the text right
Align the text right, or to the left if RTL language is in use
The next tag should follow the set language direction. When
prepended to a viewport declaration, the viewport will be hori-
zontally mirrored if the user language is set to a RTL language.
Currently the %Cl, %V and %Vl tags support this.
Use as a conditional to define options for left to right, or right
to left languages. %?Sr<RTL|LTR>
Description
If / Else: Evaluate for true or false case
Enumerations: Evaluate for first / second / third / . . . / last
condition
Allows very simple comparisons with other tags.
tag: the tag to check against.
operator: the comparison to perform - possible options are
=, !=, >, >=, <, <=
operand: either a second tag, a number, or text.
[option count]: optional parameter used to select which pa-
rameter of a tag to use when the tag has multiple options, e.g.
%?pv<a|b|c|d>
Toshiba Gigabeat F and X Series
195
b

Advertisement

Table of Contents
loading

Table of Contents