D.23.Alignment And Language Direction; D.24.Conditional Tags - Samsung YH-920 Manual

Rockbox firmware manual
Hide thumbs Also See for YH-920:
Table of Contents

Advertisement

Appendix D. Theme Tags
D.23. 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(...)
D.24. Conditional Tags
Tag
%?xx<true|false>
%?xx<alt1|alt2|
alt3|...|else>
%if(tag,
operator,
operand, [option
count])
%and(tag1, tag2,
..., tagN)
%or(tag1, tag2,
..., tagN)
Examples of the %if tag:
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
horizontally 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>
Logical "and" operator. Will be evaluate to true if all the tag
parameters are true.
Logical "or" operator. Will be evaluate to true if any of the
tag parameters are true.
(version 3.14)
201
Samsung YH-920

Advertisement

Table of Contents
loading

Table of Contents