blob: cd5b0f017e539f62037d1136988167cac0924442 [file] [log] [blame]
Dominik Riebeling36a31332006-04-09 21:22:42 +00001% $Id$ %
Alex Parker40782d52010-05-13 08:13:31 +00002\chapter{\label{ref:wps_tags}Theme Tags}
3Themeing is discussed in detail in section \reference{ref:ConfiguringtheWPS},
4what follows is a list of the available tags.
5
Alex Parker15258e02010-09-17 19:13:20 +00006\note{The ``bar-type tags'' (such as \%pb, \%pv, \%bl etc.) can be further
7 themed -- see \reference{ref:bar_tags}.}
8
Dominik Riebeling36a31332006-04-09 21:22:42 +00009\section{Status Bar}
Michael Chicoine65dc4f22010-03-23 12:02:20 +000010\begin{tagmap}
Alex Parker0c1f3e62010-03-21 10:20:19 +000011 \config{\%we} & Display Status Bar\\
12 \config{\%wd} & Hide Status Bar\\
13 \config{\%wi} & Display the inbuilt Status Bar in the current viewport\\
Dominik Riebeling36a31332006-04-09 21:22:42 +000014\end{tagmap}
15These tags override the player setting for the display of the status bar.
Alexander Levin0a241402009-03-23 21:46:49 +000016They must be noted on their own line (which will not be shown in the WPS).
Martin Arver94c12892006-03-23 14:11:52 +000017
Marianne Arnoldfa632112010-10-29 17:52:20 +000018\section{Hardware Capabilities}
19\begin{tagmap}
20 \config{\%cc} & Check for presence of a real time clock, returns ``c''
21 when used unconditionally\\
22 \config{\%tp} & Does this target have a radio?\\
23 \config{\%Tp} & Indicates that the target has a touchscreen\\
24\end{tagmap}
25With the above tags it is possible to find out about the presence of certain
26hardware and make the theme adapt to it. This can be very useful for designing
27a theme that works on multiple targets with differing hardware capabilities, e.g.
28targets that do and do not have a clock. When used conditionally, the ``true''
29branch is completely ignored if it does not apply.
30
31Example:
32\config{\%?cc<\%cH:\%cM|No clock detected>}
33
34
Alexander Levin0a241402009-03-23 21:46:49 +000035\section{Information from the track tags}
Michael Chicoine65dc4f22010-03-23 12:02:20 +000036 \begin{tagmap}
Alexander Levin0a241402009-03-23 21:46:49 +000037 \config{\%ia} & Artist\\
38 \config{\%ic} & Composer\\
Tomer Shalev13ef6772010-01-08 14:03:43 +000039 \config{\%iA} & Album Artist\\
Alexander Levin0a241402009-03-23 21:46:49 +000040 \config{\%id} & Album Name\\
Tomer Shalev13ef6772010-01-08 14:03:43 +000041 \config{\%iG} & Grouping\\
Alexander Levin0a241402009-03-23 21:46:49 +000042 \config{\%ig} & Genre Name\\
43 \config{\%in} & Track Number\\
44 \config{\%it} & Track Title\\
Tomer Shalev13ef6772010-01-08 14:03:43 +000045 \config{\%iC} & Comment\\
Alexander Levin0a241402009-03-23 21:46:49 +000046 \config{\%iv} & ID3 version (1.0, 1.1, 2.2, 2.3, 2.4, or empty if not an ID3 tag)\\
47 \config{\%iy} & Year\\
Tomer Shalev13ef6772010-01-08 14:03:43 +000048 \config{\%ik} & Disc Number\\
Dominik Riebeling36a31332006-04-09 21:22:42 +000049 \end{tagmap}
50Remember that this information is not always available, so use the
51conditionals to show alternate information in preference to assuming.
Martin Arver94c12892006-03-23 14:11:52 +000052
Alexander Levin0a241402009-03-23 21:46:49 +000053These tags, when written with a capital ``I'' (e.g. \config{\%Ia} or \config{\%Ic}),
Alex Parkerab563da2009-09-20 16:48:45 +000054show the information for the next song to be played.
55
56\nopt{lcd_charcell}{
57 \section{Viewports}
Michael Chicoine65dc4f22010-03-23 12:02:20 +000058 \begin{tagmap}
59 \nopt{lcd_non-mono}{%
Alexander Levin67f25a42010-07-02 18:54:09 +000060 \config{\%V(x,y,[width],\tabnlindent[height],[font])}
Alexander Levin6d4637c2010-03-27 15:52:27 +000061 & See section \ref{ref:Viewports}\\}
Alex Parkerab563da2009-09-20 16:48:45 +000062
63 \nopt{lcd_color}{\opt{lcd_non-mono}{%
Alexander Levin67f25a42010-07-02 18:54:09 +000064 \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline
65 \config{\%Vf([fgshade])}\newline
66 \config{\%Vb([bgshade])}
Alexander Levin6d4637c2010-03-27 15:52:27 +000067 & See section \ref{ref:Viewports}\\}}
Alex Parkerab563da2009-09-20 16:48:45 +000068
69 \opt{lcd_color}{%
Alexander Levin67f25a42010-07-02 18:54:09 +000070 \config{\%V(x,y,[width],\tabnlindent[height],[font])}\newline
71 \config{\%Vf([fgcolour])}\newline
Alex Parker77a78ee2011-08-19 11:43:51 +000072 \config{\%Vb([bgcolour])}\newline
73 \config{\%Vg(start,end \tabnlindent[,text])}
Alexander Levin6d4637c2010-03-27 15:52:27 +000074 & See section \ref{ref:Viewports}\\}
Alex Parker77a78ee2011-08-19 11:43:51 +000075
76 \opt{lcd_non-mono}{%
77 \config{\%Vs(mode[,param])}
78 & See section \ref{ref:Viewports}\\}
79
Alex Parkerecb21112010-08-02 21:21:33 +000080 \config{\%Vl('identifier',\newline\dots)} & Preloads a viewport for later
81 display. `identifier' is a single lowercase letter (a-z) and the `\dots'
82 parameters use the same logic as the \%V tag explained above.\\
Alex Parkerab563da2009-09-20 16:48:45 +000083
Alex Parker64d4ddf2010-06-20 12:58:41 +000084 \config{\%Vd('identifier')} & Display the `identifier' viewport. E.g.
Alexander Levin15d0ac02010-07-02 19:55:47 +000085 \config{\%?C<\%Vd(a)|\%Vd(b)>}
Alexander Levinac00d262010-03-26 22:12:39 +000086 will show viewport `a' if album art is found, and `b' if it isn't.\\
Alex Parker6d549df2010-05-13 08:13:37 +000087
Alex Parker49f2fce2010-06-20 16:27:41 +000088 \config{\%Vi('label',\dots)} &
Alexander Levin9f95a0b2010-05-13 08:41:01 +000089 Declare a Custom UI Viewport. The `\dots' parameters use the same logic as
Alex Parker6d549df2010-05-13 08:13:37 +000090 the \config{\%V} tag explained above. See section \ref{ref:Viewports}.\\
91
Alex Parker49f2fce2010-06-20 16:27:41 +000092 \config{\%VI('label')} & Set the Info Viewport to use the viewport called
Alex Parker6d549df2010-05-13 08:13:37 +000093 label, as declared with the previous tag.\\
Alex Parkerab563da2009-09-20 16:48:45 +000094 \end{tagmap}
Alex Parker1b0c77f2010-06-20 12:58:09 +000095
96 \section{Additional Fonts}
97 \begin{tagmap}
Alex Parker49f2fce2010-06-20 16:27:41 +000098 \config{\%Fl('id',filename)} & See section \ref{ref:multifont}.\\
Alex Parker1b0c77f2010-06-20 12:58:09 +000099 \end{tagmap}
100
Alex Parkerab563da2009-09-20 16:48:45 +0000101}
Alexander Levin0a241402009-03-23 21:46:49 +0000102
Dominik Riebeling36a31332006-04-09 21:22:42 +0000103\section{Power Related Information}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000104 \begin{tagmap}
Alexander Levin12427102010-07-02 19:32:48 +0000105 \config{\%bl} & Numeric battery level in percents.
106 Can also be used in a conditional:
Alexander Levin15d0ac02010-07-02 19:55:47 +0000107 \config{\%?bl<-1|0|1|2|\ldots|N>},
Alexander Levin0a241402009-03-23 21:46:49 +0000108 where the value $-1$ is used when the battery level isn't
Magnus Holmgren0b921582010-08-12 09:50:29 +0000109 known (it usually is). The value $N$ is only used when the
110 battery level is exactly 100 percent.
Alexander Levin12427102010-07-02 19:32:48 +0000111 An image can also be used, the proportion of the image
Magnus Holmgren0b921582010-08-12 09:50:29 +0000112 shown corresponds to the battery level:
Alex Parker64d4ddf2010-06-20 12:58:41 +0000113 \config{\%bl(x,y,[width],[height],image.bmp)}\\
Alexander Levin0a241402009-03-23 21:46:49 +0000114 \config{\%bv} & The battery level in volts\\
115 \config{\%bt} & Estimated battery time left\\
116 \config{\%bp} & ``p'' if the charger is connected (only on targets
117 that can charge batteries)\\
118 \config{\%bc} & ``c'' if the unit is currently charging the battery (only on
119 targets that have software charge control or monitoring)\\
120 \config{\%bs} & Remaining time of the sleep timer (if it is set)\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000121 \end{tagmap}
Martin Arver94c12892006-03-23 14:11:52 +0000122
Alexander Levin0a241402009-03-23 21:46:49 +0000123\section{Information about the file}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000124 \begin{tagmap}
Martin Arverf21f9142006-05-08 21:32:44 +0000125 \config{\%fb} & File Bitrate (in kbps)\\
Alexander Levin15d0ac02010-07-02 19:55:47 +0000126 \config{\%fc} & File Codec (e.g. ``MP3'' or ``FLAC'').
127 This tag can also be used in a conditional tag:
128 \config{\%?fc<mp1|mp2|mp3|aiff|wav|ogg|\newline
Andree Buschmanna884ec22011-11-28 18:45:33 +0000129 flac|mpcsv7|a52|wavpack|alac|aac|shn|sid|adx|nsf|\newline
130 speex|spc|ape|wma|wmpapro|mod|sap|realaudiocook|\newline
131 realaudioaac|realaudioac3|realaudioatrac3|cmc|\newline
132 cm3|cmr|cms|dmc|dlt|mpt|mpd|rmt|tmc|tm8|tm2|\newline
133 omaatrac3|smaf|au|vox|wave64|tta|wmavoice|mpcsv8|\newline
134 aache|ay|gbs|hes|sgc|vgm|kss|unknown>}.
135 The codec order is as shown above.\\
Martin Arverf21f9142006-05-08 21:32:44 +0000136 \config{\%ff} & File Frequency (in Hz)\\
Andree Buschmann53cf63f2010-04-14 19:44:07 +0000137 \config{\%fk} & File Frequency (in kHz)\\
Martin Arverf21f9142006-05-08 21:32:44 +0000138 \config{\%fm} & File Name\\
139 \config{\%fn} & File Name (without extension)\\
140 \config{\%fp} & File Path\\
Alexander Levin0a241402009-03-23 21:46:49 +0000141 \config{\%fs} & File Size (in Kilobytes)\\
142 \config{\%fv} & ``(avg)'' if variable bit rate or empty string if constant bit rate\\
Alexander Levina43fbbb2010-07-01 18:55:43 +0000143 \config{\%d(N)} & N-th segment from the end of the file's directory
144 (N can be 1, 2, 3, \dots)\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000145 \end{tagmap}
Alexander Levina43fbbb2010-07-01 18:55:43 +0000146Example for the \config{\%d(N)} commands: If the file is
Alex Parker64d4ddf2010-06-20 12:58:41 +0000147``/Rock/Kent/Isola/11 - 747.mp3'', \config{\%d(1)} is ``Isola'',
148\config{\%d(2)} is ``Kent'' and \config{\%d(3)} is ``Rock''.
Alexander Levin0a241402009-03-23 21:46:49 +0000149
Alex Parker64d4ddf2010-06-20 12:58:41 +0000150These tags, when written with the first letter capitalized (e.g. \config{\%Fn}
151or \config{\%D(2)}), produce the information for the next file to be played.
Martin Arver94c12892006-03-23 14:11:52 +0000152
Dominik Riebeling36a31332006-04-09 21:22:42 +0000153\section{Playlist/Song Info}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000154 \begin{tagmap}
Alexander Levin12427102010-07-02 19:32:48 +0000155 \config{\%pb} & Progress Bar.
Martin Arver94c12892006-03-23 14:11:52 +0000156 \opt{player}{
Alexander Levin12427102010-07-02 19:32:48 +0000157 This will display a one character ``cup''
Martin Arverec60a052006-03-29 18:40:42 +0000158 that empties as the time progresses.}
Nils Wallménius12eb0582008-03-23 22:07:09 +0000159 \opt{lcd_bitmap}{
Alexander Levin12427102010-07-02 19:32:48 +0000160 This will replace the entire line with a progress bar.
161 You can set the position, width and height of the progressbar
162 (in pixels) and load a custom image for it:
Alex Parker64d4ddf2010-06-20 12:58:41 +0000163 \config{\%pb(x,y,[width],[height],image.bmp)}} \\
Dominik Riebelingeef96942007-04-07 22:48:11 +0000164 \opt{player}{%
Martin Arverf21f9142006-05-08 21:32:44 +0000165 \config{\%pf} & Full-line progress bar \& time display\\
Dominik Riebelingeef96942007-04-07 22:48:11 +0000166 }%
Alexander Levind8f5f512010-07-02 18:57:57 +0000167 \config{\%px} & Percentage played in song\\
168 \config{\%pc} & Current time in song\\
169 \config{\%pe} & Total number of playlist entries\\
Dominik Riebelingeef96942007-04-07 22:48:11 +0000170 \nopt{player}{%
171 \config{\%pm} & Peak Meter. The entire line is used as %
172 volume peak meter.\\%
Alex Parkerc16deb32011-01-13 18:09:46 +0000173 \config{\%pL} & Peak meter for the left channel. Can be used as a value, %
174 a conditional tag or a bar tag.\\
175 \config{\%pR} & Peak meter for the right channel. Can be used as a value, %
176 a conditional tag or a bar tag.\\
Dominik Riebelingeef96942007-04-07 22:48:11 +0000177 }%
Alexander Levind8f5f512010-07-02 18:57:57 +0000178 \config{\%pn} & Playlist name (without path or extension)\\
179 \config{\%pp} & Playlist position\\
180 \config{\%pr} & Remaining time in song\\
Alexander Levin0a241402009-03-23 21:46:49 +0000181 \config{\%ps} & ``s'' if shuffle mode is enabled\\
Alexander Levind8f5f512010-07-02 18:57:57 +0000182 \config{\%pt} & Total track time\\
Alexander Levin12427102010-07-02 19:32:48 +0000183 \config{\%pv} & Current volume (in dB). Can also be used in a conditional:
Alexander Levin15d0ac02010-07-02 19:55:47 +0000184 \config{\%?pv<0|1|2|\ldots|N>}\newline
Alexander Levin12427102010-07-02 19:32:48 +0000185 0 is used for mute, the last option is used for values greater than zero.
186 \opt{lcd_bitmap}{This can also be used like \%pb to provide a continuous scale:
Alex Parker64d4ddf2010-06-20 12:58:41 +0000187 \config{\%pv(x,y,[width],[height],image.bmp)}} \\
Alex Parkerbbb2dd52010-03-21 10:20:09 +0000188 \config{\%pS} & Track is starting. An optional number gives how many seconds
189 the tag remains true for after the start of the track. The default is
Alexander Levin12427102010-07-02 19:32:48 +0000190 10 seconds if no number is specified.
Alexander Levin11e792b2010-09-24 19:07:42 +0000191 \config{\%?pS(7)<in the first 7 seconds of track|in
Alexander Levin15d0ac02010-07-02 19:55:47 +0000192 the rest of the track>}\\
Alex Parkerbbb2dd52010-03-21 10:20:09 +0000193 \config{\%pE} & Track is ending. An optional number gives how many seconds
Alex Parker7e84cca2010-03-22 20:41:14 +0000194 before the end of the track the tag becomes true. The default is
Alexander Levin12427102010-07-02 19:32:48 +0000195 10 seconds if no number is specified.
Alexander Levin11e792b2010-09-24 19:07:42 +0000196 \config{\%?pE(7)<in the last 7 seconds of track|in
Alexander Levin15d0ac02010-07-02 19:55:47 +0000197 the rest of the track>}\\
Alexander Levin12427102010-07-02 19:32:48 +0000198 \config{\%Sp} & Current playback pitch\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000199 \end{tagmap}
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000200
201\section{Playlist Viewer}
202 \begin{tagmap}
Jonathan Gordond23d7a12010-08-14 15:27:46 +0000203 \config{\%Vp(start,code to render)} & Display the playlist viewer in
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000204 the current viewport.\\
205 \end{tagmap}
206
207 \begin{itemize}
208 \item `start' is the offset relative to the currently playing track for the
209 playlist to display from (0 the current track, 1 is the next track, etc.).
Jonathan Gordond23d7a12010-08-14 15:27:46 +0000210 \item `code to render' is a line of skin code which will be displayed for
Alex Parker964a5e62011-08-09 14:39:32 +0000211 each line in the viewer. All text tags are supported (including conditionals
Jonathan Gordond23d7a12010-08-14 15:27:46 +0000212 and sublines)
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000213 \end{itemize}
214
215 The entire viewport will be used, so don't expect other tags in the same
216 viewport to work well. Supported tags are \%pp, all tags starting with \%i,
217 most tags starting with \%f, \%pt and \%s.\\
218
219 Example: \config{\%Vp(1,\%pp - \%it,\%pp - \%fn)} -- Display the playlist
220 position, then either the track title (from the tags) or
221 the filename. The viewer will display as many tracks as will fit in the
222 viewport.
Martin Arver94c12892006-03-23 14:11:52 +0000223
Dominik Riebeling36a31332006-04-09 21:22:42 +0000224\section{Runtime Database}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000225 \begin{tagmap}
Martin Arverf21f9142006-05-08 21:32:44 +0000226 \config{\%rp} & Song playcount\\
Alexander Levin0a241402009-03-23 21:46:49 +0000227 \config{\%rr} & Song rating (0-10). This tag can also be used in a conditional tag: %
Alexander Levin15d0ac02010-07-02 19:55:47 +0000228 \config{\%?rr<0|1|2|3|4|5|6|7|8|9|10>}\\
Tomer Shalev13ef6772010-01-08 14:03:43 +0000229 \config{\%ra} & Autoscore for the song\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000230 \end{tagmap}
Martin Arver94c12892006-03-23 14:11:52 +0000231
Nils Wallménius12eb0582008-03-23 22:07:09 +0000232\opt{swcodec}{
Dominik Riebeling9eaa5682006-04-10 17:35:49 +0000233\section{Sound (DSP) settings}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000234 \begin{tagmap}
Alexander Levin0a241402009-03-23 21:46:49 +0000235 \config{\%Sp} & Current playback pitch \\
Nils Wallménius12eb0582008-03-23 22:07:09 +0000236 \opt{swcodec}{
Jeffrey Goode0212de42009-11-11 17:38:00 +0000237 \config{\%xf} & Crossfade setting, in the order: Off, Auto Skip, Man Skip,
238 Shuffle, Shuffle and Man Skip, Always\\
Andree Buschmann1248e9c2010-04-14 20:38:21 +0000239 \config{\%rg} & ReplayGain value in use (x.y~dB). If used as a conditional,
Alexander Levin15d0ac02010-07-02 19:55:47 +0000240 Replaygain type in use: \config{\%?rg<Off|Track%
241 |Album|TrackShuffle|AlbumShuffle%
242 |No tag>}\\
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000243 }
Dominik Riebeling9eaa5682006-04-10 17:35:49 +0000244 \end{tagmap}
245}
Nils Wallméniusaf689872009-08-24 15:19:14 +0000246
Marianne Arnoldb013fb72010-07-01 21:02:12 +0000247\section{Hold}
248 \begin{tagmap}
249 \config{\%mh} & ``h'' if the main unit keys are locked\\
250 \opt{remote_button_hold}{%
251 \config{\%mr} & ``r'' if the remote keys are locked\\
252 }
253 \end{tagmap}
Martin Arver94c12892006-03-23 14:11:52 +0000254
Dominik Riebeling36a31332006-04-09 21:22:42 +0000255\section{Virtual LED}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000256 \begin{tagmap}
Marianne Arnolda352c622007-05-19 19:03:39 +0000257 \config{\%lh} & ``h'' if the \disk\ is accessed\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000258 \end{tagmap}
Martin Arver94c12892006-03-23 14:11:52 +0000259
Dominik Riebeling36a31332006-04-09 21:22:42 +0000260\section{Repeat Mode}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000261 \begin{tagmap}
Marianne Arnoldc9532a22010-04-04 13:58:52 +0000262 \config{\%mm} & Repeat mode, 0-4, in the order: Off, All, One, Shuffle, A-B\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000263 \end{tagmap}
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000264Example: \config{\%?mm<Off|All|One|Shuffle|A-B>}
Martin Arver94c12892006-03-23 14:11:52 +0000265
Alexander Levin0bfef1c2010-02-26 19:57:51 +0000266\section{Playback Mode}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000267 \begin{tagmap}
Martin Arverf21f9142006-05-08 21:32:44 +0000268 \config{\%mp} & Play status, 0-4, in the order: Stop, Play, Pause,
Frank Gevaerts629bf3e2010-04-11 11:44:18 +0000269 Fast Forward, Rewind, Recording, Recording paused, FM Radio playing,
270 FM Radio muted\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000271 \end{tagmap}
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000272Example: \config{\%?mp<Stop|Play|Pause|Ffwd|Rew|Rec|Rec pause|FM|FM pause>}
Martin Arver94c12892006-03-23 14:11:52 +0000273
Alexander Levin5ff8a5a2010-02-26 19:53:06 +0000274\section{Current Screen}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000275 \begin{tagmap}
Alex Parker60136142011-08-09 13:53:26 +0000276 \config{\%cs} & The current screen, 1-18, in the order shown below\\
Alexander Levin5ff8a5a2010-02-26 19:53:06 +0000277 \end{tagmap}
Alexander Levin5ff8a5a2010-02-26 19:53:06 +0000278
Alex Parker60136142011-08-09 13:53:26 +0000279\begin{table}
280 \begin{rbtabular}{.75\textwidth}{lX}%
281 {\textbf{Number} & \textbf{Screen}}{}{}
282 1 & Menus \\
283 2 & WPS \\
284 3 & Recording screen \\
285 4 & FM Radio screen \\
286 5 & Current Playlist screen \\
287 6 & Settings menus \\
288 7 & File browser \\
289 8 & Database browser \\
290 9 & Plugin browser \\
291 10 & Quickscreen \\
292 11 & Pitchscreen \\
293 12 & Setting chooser \\
294 13 & Playlist Catalogue Viewer \\
295 14 & Plugin \\
296 15 & Context menu \\
297 16 & System Info screen \\
298 17 & Time and Date Screen \\
299 18 & Bookmark browser \\
300 \end{rbtabular}
301\end{table}
302
303The tag can also be used as the switch in a conditional tag. For players without
304certain capabilities (e.g. no FM radio) some values will never be returned.
305
306Examples:
307
308\config{You are in the \%?cs<Main menu|WPS|Recording screen|FM Radio screen>}
309
310\config{\%?if(\%cs, =, 2)<This is the WPS>}
Alexander Levin5ff8a5a2010-02-26 19:53:06 +0000311
Alex Parker165709b2010-03-21 10:20:24 +0000312\section{List Title (\fname{.sbs} only)}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000313 \begin{tagmap}
Alex Parker165709b2010-03-21 10:20:24 +0000314 \config{\%Lt} & Title text. Should be used in a conditional so that non-list
315 screens don't show a title when they shouldn't\\
316 \config{\%Li} & Title icon. This uses the same order as custom icons (see
317 \wikilink{CustomIcons} in the wiki) except that here \config{0} is ``no
318 icon''\\
319 \end{tagmap}
320
321 This tag can be used to give custom formatting to list titles.
322 Define a viewport with the font and formatting desired, and then use
Alexander Levin15d0ac02010-07-02 19:55:47 +0000323 \config{\%?Lt<\%Lt>} to display the title within the
Alex Parker165709b2010-03-21 10:20:24 +0000324 viewport. If \config{\%Lt} is present anywhere in the \fname{.sbs}, then the
325 \config{\%Vi} viewport will not show the title.
326
Dominik Riebeling71c1e2a2008-10-12 10:48:06 +0000327\section{Changing Volume}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000328 \begin{tagmap}
Alex Parker64d4ddf2010-06-20 12:58:41 +0000329 \config{\%mv(t)} & ``v'' if the volume is being changed\\
Dominik Riebeling71c1e2a2008-10-12 10:48:06 +0000330 \end{tagmap}
Dominik Riebeling71c1e2a2008-10-12 10:48:06 +0000331
332The tag produces the letter ``v'' while the volume is being changed and some
333amount of time after that, i.e. after the volume button has been released. The
Alexander Levin0a241402009-03-23 21:46:49 +0000334optional parameter \config{t} specifies that amount of time, in seconds. If it
335is not specified, 1 second is assumed.
Dominik Riebeling71c1e2a2008-10-12 10:48:06 +0000336
337The tag can be used as the switch in a conditional tag to display different things
338depending on whether the volume is being changed. It can produce neat effects
339when used with conditional viewports.
340
Alexander Levin15d0ac02010-07-02 19:55:47 +0000341Example: \config{\%?mv(2.5)<Volume changing|\%pv>}
Dominik Riebeling71c1e2a2008-10-12 10:48:06 +0000342
343The example above will display the text ``Volume changing'' if the volume is
Andree Buschmann1248e9c2010-04-14 20:38:21 +0000344being changed and 2.5 seconds after the volume button has been released. After
Dominik Riebeling71c1e2a2008-10-12 10:48:06 +0000345that, it will display the volume value.
346
Antoine Cellerier8289b962008-12-07 16:20:35 +0000347\section{Settings}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000348 \begin{tagmap}
Alexander Levin67f25a42010-07-02 18:54:09 +0000349 \config{\%St(<setting\tabnlindent{}name>)} & The value of the Rockbox
Alexander Levin0a241402009-03-23 21:46:49 +0000350 setting with the specified name. See \reference{ref:config_file_options}
351 for the list of the available settings.\\
Antoine Cellerier8289b962008-12-07 16:20:35 +0000352 \end{tagmap}
Alexander Levin0a241402009-03-23 21:46:49 +0000353
354Examples:
355\begin{enumerate}
Alex Parker64d4ddf2010-06-20 12:58:41 +0000356\item As a simple tag: \config{\%St(skip length)}
Alexander Levin15d0ac02010-07-02 19:55:47 +0000357\item As a conditional: \config{\%?St(eq enabled)<Eq is enabled|Eq is disabled>}
Alexander Levin0a241402009-03-23 21:46:49 +0000358\end{enumerate}
359
Antoine Cellerier8289b962008-12-07 16:20:35 +0000360
Jonas Häggqvist410cbd12009-02-20 18:37:57 +0000361\opt{lcd_bitmap}{
Alex Parkerab563da2009-09-20 16:48:45 +0000362\section{\label{ref:wps_images}Images}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000363 \begin{tagmap}
Nils Wallméniusda555882006-11-13 15:14:28 +0000364 \nopt{archos}{%
Alex Parker64d4ddf2010-06-20 12:58:41 +0000365 \config{\%X(filename.bmp)}
Dominik Riebeling2ce440d2008-03-26 19:35:39 +0000366 & Load and set a backdrop image for the WPS.
Dominik Riebeling36a31332006-04-09 21:22:42 +0000367 This image must be exactly the same size as your LCD.\\
Nils Wallméniusda555882006-11-13 15:14:28 +0000368 }%
Alex Parker64d4ddf2010-06-20 12:58:41 +0000369 \config{\%x(n,filename,x,y)}
Alexander Levin12427102010-07-02 19:32:48 +0000370 & Load and display an image\newline
371 \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\newline
372 \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\newline
373 \config{x}: x coordinate\newline
374 \config{y}: y coordinate.\\
Alexander Levin67f25a42010-07-02 18:54:09 +0000375 \config{\%xl(n,filename,x,y,\tabnlindent[nimages])}
Alexander Levin12427102010-07-02 19:32:48 +0000376 & Preload an image for later display (useful for when your images are displayed conditionally).\newline
377 \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\newline
378 \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\newline
Marianne Arnoldf67dfd92010-08-13 21:36:44 +0000379 If the filename is ``\_\_list\_icons\_\_'' the list icon bitmap will be used instead\newline
Alexander Levin12427102010-07-02 19:32:48 +0000380 \config{x}: x coordinate\newline
381 \config{y}: y coordinate\newline
382 \config{nimages}: (optional) number of sub-images (tiled vertically, of the same height)
Dominik Riebeling2ce440d2008-03-26 19:35:39 +0000383 contained in the bitmap. Default is 1.\\
Jonathan Gordon3f8e7fc2010-08-05 11:28:48 +0000384 \config{\%xd(n[i] [,tag] [,offset])} & Display a preloaded image.
Alexander Levin12427102010-07-02 19:32:48 +0000385 \config{n}: image ID (a-z and A-Z) as it was specified in \config{\%x} or \config{\%xl}\newline
Jonathan Gordon3f8e7fc2010-08-05 11:28:48 +0000386 \config{i}: (optional) number of the sub-image to display (a-z for 1-26 and A-Z for 27-52).
387 (ignored when \config{tag} is used)
388 By default the first (i.e. top most) sub-image will be used.\newline
389 \config{tag}: (optional) Another tag to calculate the subimage from e.g \config{\%xd(A, \%mh)} would
390 use the first subimage when \config{\%mh} is on and the second when it is off\newline
Marianne Arnolde6cb22e2010-08-07 08:27:24 +0000391 \config{offset}: (optional) Add this number to the value from the \config{tag} when
Jonathan Gordon3f8e7fc2010-08-05 11:28:48 +0000392 chosing the subimage (may be negative)\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000393 \end{tagmap}
Martin Arver94c12892006-03-23 14:11:52 +0000394
Dominik Riebeling8f44dd22008-03-28 21:49:41 +0000395Examples:
396\begin{enumerate}
397\item Load and display the image \fname{/.rockbox/bg.bmp} with ID ``a'' at 37, 109:\\
Alex Parker64d4ddf2010-06-20 12:58:41 +0000398\config{\%x(a,bg.bmp,37,109)}
Dominik Riebeling8f44dd22008-03-28 21:49:41 +0000399\item Load a bitmap strip containing 5 volume icon images (all the same size)
400with image ID ``M'', and then reference the individual sub-images in a conditional:\\
Alex Parker64d4ddf2010-06-20 12:58:41 +0000401\config{\%xl(M,volume.bmp,134,153,5)}\\
Alexander Levin15d0ac02010-07-02 19:55:47 +0000402\config{\%?pv<\%xd(Ma)|\%xd(Mb)|\%xd(Mc)|%
403\%xd(Md)|\%xd(Me)>}
Dominik Riebeling8f44dd22008-03-28 21:49:41 +0000404\end{enumerate}
Dominik Riebeling2ce440d2008-03-26 19:35:39 +0000405
406
Dominik Riebeling18f319c2006-04-01 17:00:04 +0000407\note{
408 \begin{itemize}
Alexander Levin3adb8212009-03-24 21:39:48 +0000409 \item The images must be in BMP format
Dominik Riebeling18f319c2006-04-01 17:00:04 +0000410 \item The image tag must be on its own line
411 \item The ID is case sensitive, giving 52 different ID's
Marianne Arnoldc4bdf202010-08-14 10:30:42 +0000412 \item The size of the LCD screen for each \dap{} varies. See table below
Dominik Riebeling18f319c2006-04-01 17:00:04 +0000413 for appropriate sizes of each device. The x and y coordinates must
Marianne Arnoldc4bdf202010-08-14 10:30:42 +0000414 respect each of the \daps{} limits.
Dominik Riebeling18f319c2006-04-01 17:00:04 +0000415 \end{itemize}
416}
Jonas Häggqvist410cbd12009-02-20 18:37:57 +0000417}
418
419\opt{albumart}{
Alex Parker018133e2010-05-29 19:02:25 +0000420\section{\label{ref:album_art}Album Art}
421Rockbox allows you to put the album art, or another image related to the music
422on your \dap{} to display it in the PictureFlow plugin\opt{albumart}{ or in the
423theme}. For this feature to work, there are a few requirements.
424
425\subsection{Limitations}
426
Frank Gevaertsfc81af92011-11-26 22:51:19 +0000427Rockbox supports embedded album art only for some specific formats, see
428\reference{ref:featureset_for_generic_metadata_tags} for full details. It additionally supports
429loading images located on the \disk{}.
Alex Parker40531592011-02-09 22:12:37 +0000430The image files must be in either BMP or JPEG format, while embedded album art
431is currently limited to JPEG. Rockbox does not support
Alex Parker018133e2010-05-29 19:02:25 +0000432RLE-compressed BMP files, nor does it support progressive and multi-scan
Alex Parker40531592011-02-09 22:12:37 +0000433JPEG files. Embedded JPEG images must not be unsynchronized.
434JPEG files must consist of a single scan with interleaved components,
Alex Parker018133e2010-05-29 19:02:25 +0000435as progessive and multi-scan images require much more memory to decode.
Alex Parker40531592011-02-09 22:12:37 +0000436Pictureflow does not currently support embedded album art.
Alex Parker018133e2010-05-29 19:02:25 +0000437
438\subsection{Where to put album art}
439
440The pictures can be named a number of different ways, and placed to a number of
441different locations. You can have pictures specific to the file or the album
442or use a generic picture. You can place the picture in the same directory
443as the file, in the parent directory or in a fixed directory named
444\fname{/.rockbox/albumart/}. The order Rockbox uses when looking for a picture
445is as follows (a list in braces means that those file extensions are tried in
446that order):
447
448\begin{enumerate}
Michael Giacomelli302c0b72011-07-11 20:25:58 +0000449\item embedded (JPEG images in ID3v2 or MP4 tags only)
Alex Parker018133e2010-05-29 19:02:25 +0000450\item \fname{./filename.\{jpeg,jpg,bmp\}}
451\item \fname{./albumtitle.\{jpeg,jpg,bmp\}}
452\item \fname{./cover.\{jpeg,jpg,bmp\}}
453\item \fname{./folder.jpg}
Jonas Häggqvist22b28752010-07-01 12:30:18 +0000454\item \fname{/.rockbox/albumart/albumartist-albumtitle.\{jpeg,jpg,bmp\}}
Alex Parker018133e2010-05-29 19:02:25 +0000455\item \fname{../albumtitle.\{jpeg,jpg,bmp\}}
456\item \fname{../cover.\{jpeg,jpg,bmp\}}
457\end{enumerate}
458
459The following characters will be replaced with an underscore (\_) when looking
Alexander Levin15d0ac02010-07-02 19:55:47 +0000460for albumtitle.bmp or albumartist-albumtitle.bmp: \textbackslash{} / : <
461> ? * |. Doublequotes will be replaced by single quotes.
Jonas Häggqvist22b28752010-07-01 12:30:18 +0000462If no album artist is set, artist will be used instead. See \wikilink{AlbumArt}
463in the wiki for programs that will help you automate the process of putting
464album art on your \dap{}.
Alex Parker018133e2010-05-29 19:02:25 +0000465
466\subsection{How to display the album art}
467
468Once the album art files are present on your \dap, they can be displayed as
469follows.
470
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000471 \begin{tagmap}
Alexander Levin67f25a42010-07-02 18:54:09 +0000472 \config{\%Cl(x,y,[maxwidth],\tabnlindent[maxheight],\tabnlindent{}hor\_align,\tabnlindent{}vert\_align)}
Alexander Levin12427102010-07-02 19:32:48 +0000473 & Define the settings for album art\newline
474 \config{x}: x coordinate\newline
475 \config{y}: y coordinate\newline
476 \config{maxwidth}: Maximum height\newline
477 \config{maxheight}: Maximum width\newline
478 \config{hor\_align}: Horizontal alignment, enter as `l', `c' or `r' for
479 left, centre or right. Centre is default\newline
480 \config{vert\_align}: Vertical alignment, enter as `t', `c' or `b' for
Alex Parker64d4ddf2010-06-20 12:58:41 +0000481 top, centre or bottom. Centre is default\\
Jonathan Gordon50356d82010-06-08 15:09:32 +0000482 \config{\%Cd} & Display the album art as configured. \\
Alex Parker64d4ddf2010-06-20 12:58:41 +0000483 \config{\%C} & Use in a conditional to determine if an image is available. \\
Jonas Häggqvist410cbd12009-02-20 18:37:57 +0000484 \end{tagmap}
Jonas Häggqvist410cbd12009-02-20 18:37:57 +0000485
486The picture will be rescaled, preserving aspect ratio to fit the given
487\config{maxwidth} and \config{maxheight}. If the aspect ratio doesn't match the
Alex Parker64d4ddf2010-06-20 12:58:41 +0000488configured values, the picture will be placed according to the alignment flags.
Jonas Häggqvist00215342009-02-20 19:08:18 +0000489
490Examples:
491\begin{enumerate}
492 \item Load albumart at position 20,40 and display it without resizing:\\
Alex Parker64d4ddf2010-06-20 12:58:41 +0000493 \config{\%Cl(20,40,,)}
Alexander Levin87b2ad142010-05-20 16:20:58 +0000494 \item Load albumart at position 0,20 and resize it to be at most 100$\times$100
Jonas Häggqvist00215342009-02-20 19:08:18 +0000495 pixels. If the image isn't square, align it to the bottom-right
496 corner:\\
Alex Parker64d4ddf2010-06-20 12:58:41 +0000497 \config{\%Cl(0,20,100,100,r,b)}
Jonas Häggqvist00215342009-02-20 19:08:18 +0000498\end{enumerate}
Jonas Häggqvist410cbd12009-02-20 18:37:57 +0000499}
Martin Arver94c12892006-03-23 14:11:52 +0000500
Alex Parkercaa68b52010-05-29 19:02:19 +0000501\opt{radio}{
Alex Parker0926e3e2010-05-13 08:13:42 +0000502\section{FM Radio}
503 \begin{tagmap}
Alex Parker0926e3e2010-05-13 08:13:42 +0000504 \config{\%tt} & Is the tuner tuned?\\
Alexander Levin1940a0b2010-05-13 08:45:22 +0000505 \config{\%tm} & Scan or preset mode? Scan is ``true'', preset is ``false''.\\
Alex Parker0926e3e2010-05-13 08:13:42 +0000506 \config{\%ts} & Is the station in stereo?\\
Alexander Levinedb6bed2010-05-15 21:47:30 +0000507 \config{\%ta} & Minimum frequency (region specific) in MHz.\\
508 \config{\%tb} & Maximum frequency (region specific) in MHz.\\
509 \config{\%tf} & Current frequency in MHz.\\
Alex Parker0926e3e2010-05-13 08:13:42 +0000510 \config{\%Ti} & Current preset id, i.e. 1-based number of the preset
511 within the presets list (usable in playlist viewer).\\
512 \config{\%Tn} & Current preset name (usable in playlist viewer).\\
513 \config{\%Tf} & Current preset frequency (usable in playlist viewer).\\
514 \config{\%Tc} & Preset count, i.e. the number of stations in the current
515 preset list.\\
516 \config{\%tx} & Is RDS available?\\
517 \config{\%ty} & RDS name.\\
518 \config{\%tz} & RDS text.\\
Alex Parkera43fc842010-12-21 10:14:40 +0000519 \config{\%tr} & Signal strength (RSSI). Can be used in a conditional or as
520 a bar.\\
Alex Parker0926e3e2010-05-13 08:13:42 +0000521 \end{tagmap}
522
Alex Parker4b360632010-05-29 19:02:10 +0000523It is also possible to show ``Radio Art'' which can be used to display images
524associated with presets. The tags are exactly the same as for album art,
525described above. Images need to be placed in \fname{/.rockbox/fmpresets/},
526and must have the same name as the preset. They need to be in either
527\fname{.bmp} or \fname{.jpg} format, and the radio must be in preset mode
528and tuned to a preset (and not recording) in order for them to be shown.
Alex Parkercaa68b52010-05-29 19:02:19 +0000529}
Alex Parker4b360632010-05-29 19:02:10 +0000530
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000531\section{Alignment and language direction}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000532 \begin{tagmap}
Alexander Levin0a241402009-03-23 21:46:49 +0000533 \config{\%al} & Align the text left\\
Tomer Shalev13ef6772010-01-08 14:03:43 +0000534 \config{\%aL} & Align the text left, or to the right if RTL language is in use\\
Alex Parkerc4b6c052009-11-22 11:24:49 +0000535 \config{\%ac} & Centre the text\\
Alexander Levin0a241402009-03-23 21:46:49 +0000536 \config{\%ar} & Align the text right\\
Tomer Shalev13ef6772010-01-08 14:03:43 +0000537 \config{\%aR} & Align the text right, or to the left if RTL language is in use\\
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000538 \config{\%ax} & The next tag should follow the set language direction. When
539 prepended to a viewport declaration, the viewport will
540 be horizontally mirrored if the user language is set to
541 a RTL language. Currently the \%Cl, \%V and \%Vl tags
542 support this.\\
543 \config{\%Sr} & Use as a conditional to define options for left to right, or
544 right to left languages. \%?Sr<RTL|LTR>\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000545 \end{tagmap}
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000546
Dominik Riebeling36a31332006-04-09 21:22:42 +0000547All alignment tags may be present in one line, but they need to be in the
Alex Parkerc4b6c052009-11-22 11:24:49 +0000548order left -- centre -- right. If the aligned texts overlap, they are merged.
Martin Arver94c12892006-03-23 14:11:52 +0000549
Alex Parkerd7cb3b12010-07-31 12:47:12 +0000550Example: \config{\%ax\%V(\dots)}
551
Dominik Riebeling36a31332006-04-09 21:22:42 +0000552\section{Conditional Tags}
Martin Arver94c12892006-03-23 14:11:52 +0000553
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000554\begin{tagmap}
Alexander Levin15d0ac02010-07-02 19:55:47 +0000555\config{\%?xx<true|false>}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000556 & If / Else: Evaluate for true or false case \\
Alexander Levin15d0ac02010-07-02 19:55:47 +0000557\config{\%?xx<alt1|alt2|\tabnlindent{}alt3|\dots|else>}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000558 & Enumerations: Evaluate for first / second / third / \dots / last condition \\
Alex Parker779f1db2010-09-17 19:13:14 +0000559\config{\%if(tag, operator, operand, [option count])}
560 & Allows very simple comparisons with other tags.\newline
561 \config{tag}: the tag to check against.\newline
562 \config{operator}: the comparison to perform - possible options are =, !=,
563 >, >=, <, <=\newline
564 \config{operand}: either a second tag, a number, or text.\newline
565 \config{[option count]}: optional parameter used to select which parameter
566 of a tag to use when the tag has multiple options, e.g. \%?pv<a|b|c|d>\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000567\end{tagmap}
Martin Arver94c12892006-03-23 14:11:52 +0000568
Alex Parker779f1db2010-09-17 19:13:14 +0000569Examples of the \%if tag:\\
570
571\config{\%?if(\%pv, >=, 0)<Clipping possible|Volume OK>} will display ``Clipping
572 possible'' if the volume is higher than or equal to 0 dB, ``Volume OK'' if it
573 is lower.\\
574
575\config{\%?if(\%ia, =, \%Ia)<same artist>} -- this artist and the next artist
576 are the same.\\
577
578\note{When performing a comparison against a string tag such as \%ia, only = and
579 != work, and the comparison is not case sensitive.}
580
Alex Parkere56030a2009-05-15 21:17:21 +0000581\section{Subline Tags}
582
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000583\begin{tagmap}
Alexander Levin67f25a42010-07-02 18:54:09 +0000584\config{\%t(time)}
Alex Parker64d4ddf2010-06-20 12:58:41 +0000585 & Set the subline display cycle time (\%t(5) or \%t(3.4) formats) \\
Alex Parkere56030a2009-05-15 21:17:21 +0000586\config{;}
587 & Split items on a line into separate sublines \\
588\end{tagmap}
Alex Parkere56030a2009-05-15 21:17:21 +0000589
590Allows grouping of several items (sublines) onto one line, with the
591display cycling round the defined sublines. See
592\reference{ref:AlternatingSublines} for details.
593
Marianne Arnoldfa632112010-10-29 17:52:20 +0000594\opt{rtc}{
Marianne Arnolde435e4d2009-05-16 11:22:41 +0000595\section{Time and Date}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000596 \begin{tagmap}
Tomer Shalev13ef6772010-01-08 14:03:43 +0000597 \config{\%cd} & Day of month from 01 to 31\\
598 \config{\%ce} & Zero padded day of month from 1 to 31\\
Alexander Levin12427102010-07-02 19:32:48 +0000599 \config{\%cf} & A conditional for 12/24 hour format.\newline
600 \config{\%?cf<24 hour stuff|12 hour stuff>}\\
Alexander Levin0a241402009-03-23 21:46:49 +0000601 \config{\%cH} & Zero padded hour from 00 to 23 (24 hour format)\\
602 \config{\%ck} & Hour from 0 to 23 (24 hour format)\\
Tomer Shalev13ef6772010-01-08 14:03:43 +0000603 \config{\%cI} & Zero padded hour from 01 to 12 (am/pm format)\\
604 \config{\%cl} & Hour from 1 to 12 (am/pm format)\\
605 \config{\%cm} & Month from 01 to 12\\
Dominik Riebelingf177af42007-04-10 17:38:40 +0000606 \config{\%cM} & Minutes\\
607 \config{\%cS} & Seconds\\
Marianne Arnolde435e4d2009-05-16 11:22:41 +0000608 \config{\%cy} & 2-digit year\\
Dominik Riebelingf177af42007-04-10 17:38:40 +0000609 \config{\%cY} & 4-digit year\\
610 \config{\%cP} & Capital AM/PM\\
611 \config{\%cp} & Lowercase am/pm\\
612 \config{\%ca} & Weekday name\\
613 \config{\%cb} & Month name\\
614 \config{\%cu} & Day of week from 1 to 7, 1 is Monday\\
615 \config{\%cw} & Day of week from 0 to 6, 0 is Sunday\\
616 \end{tagmap}
Marianne Arnoldfa632112010-10-29 17:52:20 +0000617}
Marianne Arnolde435e4d2009-05-16 11:22:41 +0000618
Alex Parker55c8b2b2010-03-21 10:20:14 +0000619\section{Text Translation}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000620 \begin{tagmap}
Alex Parker64d4ddf2010-06-20 12:58:41 +0000621 \config{\%Sx(English)}
Alex Parker55c8b2b2010-03-21 10:20:14 +0000622 & Display the translation of ``English'' in the current language\\
623 \end{tagmap}
624
625 \begin{itemize}
626 \item ``English'' must be a phrase used in the language file.
627 \item It should match the \config{Source:} line in the language file.
628 \end{itemize}
629
630 \note{checkwps cannot verify that the string is correct, so please check on
631 either the simulator or on target.}
632
633
Alex Parkerf7a397b2010-02-28 11:50:11 +0000634\opt{touchscreen}{
Jonathan Gordond7bb5802010-10-28 11:11:01 +0000635 \section{Touchscreen Areas}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000636 \begin{tagmap}
Jonathan Gordon969903b2011-07-28 12:53:22 +0000637 \config{\%T(x,y,width,\tabnlindent{}height, action, [options])}
Alexander Levin4c105b62010-03-07 22:12:16 +0000638 & Invoke the action specified when the user presses in the defined
639 touchscreen area.\\
640 \end{tagmap}
Jonathan Gordon969903b2011-07-28 12:53:22 +0000641
Jonathan Gordon443b1342011-03-27 07:23:38 +0000642 Possible actions are:
Alex Parkerf7a397b2010-02-28 11:50:11 +0000643
644 \begin{description}
645 \item[play] -- Play/pause playback.
646 \item[stop] -- Stop playback and exit the WPS.
Jonathan Gordon98881fd2011-03-22 09:31:45 +0000647 \item[prev] -- Previous track/item.
648 \item[next] -- Next track/item.
Marianne Arnolda0f34622011-05-22 12:54:52 +0000649 \item[wps\_prev] -- Previous track.
650 \item[wps\_next] -- Next track.
Alex Parkerf7a397b2010-02-28 11:50:11 +0000651 \item[ffwd] -- Seek forwards in the track.
652 \item[rwd] -- Seek backwards in the track.
653 \item[menu] -- Go to the main menu.
654 \item[browse] -- Go back to the file browser or database.
655 \item[shuffle] -- Toggle shuffle mode.
656 \item[repmode] -- Cycle through the repeat modes.
657 \item[quickscreen] -- Go to the quickscreen.
658 \item[contextmenu] -- Open the context menu.
659 \item[playlist] -- Go to the playlist viewer.
660 \item[progressbar] -- Seek to the appropriate position in the track based on the touch.
661 \item[volume] -- Set the volume to the appropriate level based on the touch.
662 \item[pitch] -- Open the pitchscreen.
663 \item[voldown] -- Decrease the volume by one step.
664 \item[volup] -- Increase the volume by one step.
Jonathan Gordon605e2d02011-01-13 10:56:23 +0000665 \item[mute] -- Un/Mute playback.
Alex Parkerb33a2d82011-01-13 18:09:36 +0000666 \item[setting\_inc] -- Increment the subsequently specified setting (e.g
667 \config{\%T(0,0, setting\_inc, volume)} increases the volume by one step).
668 \item[setting\_dec] -- Decrement the subsequently specified setting (e.g
669 \config{\%T(0,0, setting\_dec, volume)} decreases the volume by one step).
Alex Parkerf7a397b2010-02-28 11:50:11 +0000670 \end{description}
Jonathan Gordon969903b2011-07-28 12:53:22 +0000671 Any (or muliple) of the following options can be used after the action is specified
672 \subsection{Options}
673 \begin{description}
674 \item[repeat_press] -- This region will trigger mulitple times when held (i.e for seeking)
675 \item[long_press] -- This region will trigger once after it is held for a long press
676 \item[reverse_bar] -- Reverse the bars touch direction (i.e seek right to left)
677 \item[allow_while_locked] -- Allows the region to be pressable when the
678 skin is locked by the lock touch action
679 \end{description}
Alex Parkerf7a397b2010-02-28 11:50:11 +0000680
Jonathan Gordond7bb5802010-10-28 11:11:01 +0000681 \section{Last Touchscreen Press}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000682 \begin{tagmap}
Alexander Levin4c105b62010-03-07 22:12:16 +0000683 \config{\%Tl} & Indicates that the touchscreen is pressed.\\
684 \end{tagmap}
Alex Parkerf7a397b2010-02-28 11:50:11 +0000685 This tag can be used to display text or images or a viewport when the
686 touchscreen is pressed (like an On Screen Display). If you put a number
687 straight after \%Tl it will be used as a timeout in seconds
Alex Parker64d4ddf2010-06-20 12:58:41 +0000688 (e.g \%Tl(2.5) will give a 2.5 second timeout) between the touchscreen press
Alex Parkerf7a397b2010-02-28 11:50:11 +0000689 being released and the tag going false. If no number is specified it will
690 use a 1 second timeout. It can also be used as a conditional, and can be
691 used with conditional viewports.
692}
Dominik Riebelingf177af42007-04-10 17:38:40 +0000693
Alex Parker15258e02010-09-17 19:13:20 +0000694\section{\label{ref:bar_tags}Bar Tags}
695 Some tags can be used to display a bar which draws according to the value of
696 the tag. To use these tags like a bar you need to use the following parameters
697 (\%XX should be replaced with the actual tag).
698
699\begin{tagmap}
Jonathan Gordon9acd2422010-10-12 12:46:57 +0000700 \config{\%XX(x, y, width, height, [options])}
Alex Parker15258e02010-09-17 19:13:20 +0000701 & Draw the specified tag as a bar\newline
702 \config{x}: x co-ordinate at which to start drawing the bar.\newline
703 \config{y}: y co-ordinate at which to start drawing the bar.\newline
704 \config{width}: width of the bar (- for the full viewport width).\newline
705 \config{height}: height of the bar (- to set to the font height for
706 horizontal bars and to the viewport height for vertical bars).\newline
707 \config{options}: any of the options set out below.\\
708\end{tagmap}
709
710\subsection{Options}
711\begin{description}
Jonathan Gordon9acd2422010-10-12 12:46:57 +0000712 \item[image] -- the next option is either the filename or image label to
713 use for the fill image.
Alex Parker15258e02010-09-17 19:13:20 +0000714 \item[horizontal] -- force the bar to be drawn horizontally.
715 \item[vertical] -- force the bar to be drawn vertically.
716 \item[invert] -- invert the draw direction (i.e. right to left, or top to
717 bottom).
Jonathan Gordonf06f6852011-01-24 09:04:28 +0000718 \item[slider] -- draw a preloaded image over the top of the bar so that
Alex Parkerf70ec762010-10-12 19:34:47 +0000719 the centre of the image matches the current position. This must be
Alex Parker15258e02010-09-17 19:13:20 +0000720 followed by the label of the desired image.
Jonathan Gordonf06f6852011-01-24 09:04:28 +0000721 \item[backdrop] -- draw a preloaded image under the bar. The full
722 image will be displayed and must be the same size as the bar.
723 This must be followed by the label of the desired image.
Alex Parkerf70ec762010-10-12 19:34:47 +0000724 \item[nofill] -- don't draw the bar, only its frame (for use with the
725 ``slider'' option).
726 \item[nobar] -- don't draw the bar or its frame (for use with the
727 ``slider'' option).
Alex Parker15258e02010-09-17 19:13:20 +0000728\end{description}
729
730Example: \config{\%pb(0,0,-,-,-,nofill, slider, slider\_image, invert)} -- draw
731a horizontal progressbar which doesn't fill and draws the image
732``slider\_image'' which moves right to left.
733
Alex Parkerf70ec762010-10-12 19:34:47 +0000734\note{If the slider option is used, the bar will be shrunk so that the slider
735 fits inside the specified width and height.}
Teruaki Kawashima3eb58262010-10-12 12:17:39 +0000736
Dominik Riebeling36a31332006-04-09 21:22:42 +0000737\section{Other Tags}
Michael Chicoine65dc4f22010-03-23 12:02:20 +0000738\begin{tagmap}
Alex Parker64d4ddf2010-06-20 12:58:41 +0000739 \config{\%(} & The character `('\\
740 \config{\%)} & The character `)'\\
741 \config{\%,} & The character `,'\\
Alexander Levin0a241402009-03-23 21:46:49 +0000742 \config{\%\%} & The character `\%'\\
Alexander Levin15d0ac02010-07-02 19:55:47 +0000743 \config{\%<} & The character `<'\\
744 \config{\%|} & The character `|'\\
745 \config{\%>} & The character `>'\\
Alexander Levin0a241402009-03-23 21:46:49 +0000746 \config{\%;} & The character `;'\\
Marianne Arnold498f66f2010-10-12 19:13:24 +0000747 \config{\%\#} & The character `\#'\\
Martin Arverf21f9142006-05-08 21:32:44 +0000748 \config{\%s} & Indicate that the line should scroll. Can occur
749 anywhere in a line (given that the text is
750 displayed; see conditionals above). You can specify
Alexander Levin0a241402009-03-23 21:46:49 +0000751 up to ten scrolling lines. Scrolling lines can not
Martin Arverf21f9142006-05-08 21:32:44 +0000752 contain dynamic content such as timers, peak meters
753 or progress bars.\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000754\end{tagmap}
Alexander Levin4c105b62010-03-07 22:12:16 +0000755