blob: 6d449aee4ecced0a0420832c8f4240d9ccad37f5 [file] [log] [blame]
Dominik Riebeling36a31332006-04-09 21:22:42 +00001% $Id$ %
2\chapter{\label{ref:wps_tags}WPS Tags}
3\section{Status Bar}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +00004\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +00005\begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +00006\config{\%we} & Status Bar Enabled\\
7\config{\%wd} & Status Bar Disabled\\
Dominik Riebeling36a31332006-04-09 21:22:42 +00008\end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +00009\end{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +000010These tags override the player setting for the display of the status bar.
11They must be noted on their own line.
Martin Arver94c12892006-03-23 14:11:52 +000012
Dominik Riebeling36a31332006-04-09 21:22:42 +000013\section{ID3 Info}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000014\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +000015 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +000016 \config{\%ia} & ID3 Artist\\
17 \config{\%ic} & ID3 Composer\\
18 \config{\%id} & ID3 Album Name\\
19 \config{\%ig} & ID3 Genre Name\\
20 \config{\%in} & ID3 Track Number\\
21 \config{\%it} & ID3 Track Title\\
22 \config{\%iv} & ID3 Version (1.0, 1.1, 2.2, 2.3, 2.4 or empty if no id3 tag)\\
23 \config{\%iy} & ID3 Year\\
Dominik Riebeling36a31332006-04-09 21:22:42 +000024 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000025\end{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +000026Remember that this information is not always available, so use the
27conditionals to show alternate information in preference to assuming.
Martin Arver94c12892006-03-23 14:11:52 +000028
Dominik Riebeling36a31332006-04-09 21:22:42 +000029\section{Power Related Information}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000030\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +000031 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +000032 \config{\%bl} & Show numeric battery level in percent.\\
33 & Can also be used in a conditional:
34 \config{\%?bl{\textless}0{\textbar}1{\textbar}2{\textbar}3{\textbar}4{\textgreater}}\\
35 \config{\%bv} & Show the battery level in volts\\
36 \config{\%bt} & Show estimated battery time left\\
37 \config{\%bp} & ``p'' if the charger is connected \\
38 & (only on targets that can charge batteries)\\
39 \config{\%bc} & ``c'' if the unit is currently charging the battery\\
Martin Arverdf6e4242006-03-28 10:37:03 +000040 & (only on targets that have software charge control or monitoring)\\
Martin Arverf21f9142006-05-08 21:32:44 +000041 \config{\%bs} & Sleep timer. Shows the remaining time if the sleeptimer is set\\
Dominik Riebeling36a31332006-04-09 21:22:42 +000042 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000043\end{table}
Martin Arver94c12892006-03-23 14:11:52 +000044
Dominik Riebeling36a31332006-04-09 21:22:42 +000045\section{File Info}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000046\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +000047 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +000048 \config{\%fb} & File Bitrate (in kbps)\\
49 \config{\%fc} & File Codec (e.g. ``MP3'' or ``FLAC''). %
Dominik Riebelingf0339022006-05-08 19:38:20 +000050 This tag can also be used in a conditional tag, %
Martin Arverf21f9142006-05-08 21:32:44 +000051 \config{\%?fc{\textless}mp1\-{\textbar}mp2\-{\textbar}mp3\-{\textbar}wav\-%
Dominik Riebelingf0339022006-05-08 19:38:20 +000052 {\textbar}vorbis\-{\textbar}flac\-{\textbar}mpc\-{\textbar}a52\-%
53 {\textbar}wavpack\-{\textbar}alac\-{\textbar}aac\-{\textbar}shn\-%
54 {\textbar}aiff\-%
Martin Arverf21f9142006-05-08 21:32:44 +000055 {\textbar}unknown{\textgreater}}. %
Dominik Riebelingf0339022006-05-08 19:38:20 +000056 The codec order is as follows: MP1, MP2, MP3, WAV, Ogg Vorbis (OGG),%
Martin Arverec60a052006-03-29 18:40:42 +000057 FLAC, MPC, AC3, WavPack (WV), ALAC, AAC, Shorten (SHN), AIFF\\
Martin Arverf21f9142006-05-08 21:32:44 +000058 \config{\%ff} & File Frequency (in Hz)\\
59 \config{\%fm} & File Name\\
60 \config{\%fn} & File Name (without extension)\\
61 \config{\%fp} & File Path\\
62 \config{\%fs} & File Size (In Kilobytes)\\
63 \config{\%fv} & ``(avg)'' if variable bit rate or ``'' if constant bit rate\\
64 \config{\%d1} & First directory from end of file path.\\
65 \config{\%d2} & Second directory from end of file path.\\
66 \config{\%d3} & Third directory from end of file path.\\
Dominik Riebeling36a31332006-04-09 21:22:42 +000067 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000068\end{table}
Martin Arverf21f9142006-05-08 21:32:44 +000069Example for the the \config{\%dN} commands: If the path is
70``/Rock/Kent/Isola/11 - 747.mp3'', \config{\%d1} is ``Isola'',
71\config{\%d2} is ``Kent'' \dots
Dominik Riebeling36a31332006-04-09 21:22:42 +000072You get the picture.
Martin Arver94c12892006-03-23 14:11:52 +000073
Dominik Riebeling36a31332006-04-09 21:22:42 +000074\section{Playlist/Song Info}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +000075\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +000076 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +000077 \config{\%pb} & Progress Bar\\
Martin Arver94c12892006-03-23 14:11:52 +000078 \opt{player}{
Dominik Riebeling36a31332006-04-09 21:22:42 +000079 & This will display a 1 character ``cup'' %
Martin Arverec60a052006-03-29 18:40:42 +000080 that empties as the time progresses.}
Martin Arver94c12892006-03-23 14:11:52 +000081 \opt{recorder,recorderv2fm,h1xx,h300,ipodcolor,ipodnano}{
82 & This will replace the entire line with a progress bar. \\
Martin Arverec60a052006-03-29 18:40:42 +000083 & You can set the height, position and width of the progressbar %
Martin Arverf21f9142006-05-08 21:32:44 +000084 (in pixels): \config{\%pb{\textbar}height{\textbar}leftpos%
85 {\textbar}rightpos{\textbar}}} \\
Dominik Riebeling36a31332006-04-09 21:22:42 +000086 \opt{player}{
Martin Arverf21f9142006-05-08 21:32:44 +000087 \config{\%pf} & Full-line progress bar \& time display\\
Dominik Riebeling36a31332006-04-09 21:22:42 +000088 }
Martin Arverf21f9142006-05-08 21:32:44 +000089 \config{\%pc} & Current Time In Song\\
90 \config{\%pe} & Total Number of Playlist Entries\\
91 \config{\%pm} & Peak Meter (Recorder only) The entire line is used as volume peak meter.\\
92 \config{\%pn} & Playlist Name (Without path or extension)\\
93 \config{\%pp} & Playlist Position\\
94 \config{\%pr} & Remaining Time In Song\\
95 \config{\%ps} & Shuffle. Shows 's' if shuffle mode is enabled.\\
96 \config{\%pt} & Total Track Time\\
97 \config{\%pv} & Current volume. Can also be used in a conditional: \\
98 & \config{\%?pv{\textless}0{\textbar}1{\textbar}2{\textbar}3%
Dominik Riebeling36a31332006-04-09 21:22:42 +000099 {\textbar}4{\textbar}5{\textbar}6{\textbar}7{\textbar}8%
Martin Arverf21f9142006-05-08 21:32:44 +0000100 {\textbar}9{\textbar}10{\textgreater}}\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000101 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000102\end{table}
Martin Arver94c12892006-03-23 14:11:52 +0000103
Dominik Riebeling36a31332006-04-09 21:22:42 +0000104\section{Runtime Database}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000105\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000106 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000107 \config{\%rp} & Song playcount\\
108 \config{\%rr} & Song rating (0-10). This tag can also be used in a conditional tag, %
109 \config{\%?rr{\textless}0{\textbar}1{\textbar}2{\textbar}3{\textbar}%
Dominik Riebeling36a31332006-04-09 21:22:42 +0000110 4{\textbar}5{\textbar}6{\textbar}7{\textbar}8{\textbar}9{\textbar}%
Martin Arverf21f9142006-05-08 21:32:44 +0000111 10{\textgreater}}\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000112 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000113\end{table}
Martin Arver94c12892006-03-23 14:11:52 +0000114
Dominik Riebeling9eaa5682006-04-10 17:35:49 +0000115\opt{SWCODEC}{
116\section{Sound (DSP) settings}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000117\begin{table}
Dominik Riebeling9eaa5682006-04-10 17:35:49 +0000118 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000119 \config{\%sp} & display current playback pitch \\
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000120 \opt{SWCODEC}{
121 \config{\%xf} & Crossfade setting, in the order: Off, Shuffle, Skip, Always\\
122 \config{\%rg} & ReplayGain setting, in the order: Off, Track, Album, Shuffle\\
123 \config{\%xd} & Crossfeed setting\\
124 }
Dominik Riebeling9eaa5682006-04-10 17:35:49 +0000125 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000126\end{table}
Dominik Riebeling9eaa5682006-04-10 17:35:49 +0000127}
Martin Arver94c12892006-03-23 14:11:52 +0000128\opt{h1xx,h300}{
Dominik Riebeling36a31332006-04-09 21:22:42 +0000129\section{Hold Switches}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000130\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000131 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000132 \config{\%mh} & ``h'' if the main unit hold switch is on\\
133 \config{\%mr} & ``r'' if the remote hold switch is on\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000134 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000135\end{table}
Martin Arver94c12892006-03-23 14:11:52 +0000136}
137
Dominik Riebeling36a31332006-04-09 21:22:42 +0000138\section{Virtual LED}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000139\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000140 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000141 \config{\%lh} & ``h'' if there is hard disk activity\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000142 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000143\end{table}
Martin Arver94c12892006-03-23 14:11:52 +0000144
Dominik Riebeling36a31332006-04-09 21:22:42 +0000145\section{Repeat Mode}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000146\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000147 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000148 \config{\%mm} & Repeat mode, 0-4, in the order: Off, All, One, Shuffle
Dominik Riebeling36a31332006-04-09 21:22:42 +0000149 \opt{player,recorder,recorderv2fm}{, A-B}\\
150 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000151\end{table}
Martin Arverf21f9142006-05-08 21:32:44 +0000152Example: \config{\%?mm{\textless}Off{\textbar}All{\textbar}One{\textbar}Shuffle%
153{\textbar}A-B{\textgreater}}
Martin Arver94c12892006-03-23 14:11:52 +0000154
Dominik Riebeling36a31332006-04-09 21:22:42 +0000155\section{Playback Mode Tags}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000156\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000157 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000158 \config{\%mp} & Play status, 0-4, in the order: Stop, Play, Pause,
Dominik Riebeling36a31332006-04-09 21:22:42 +0000159 Fast forward, Rewind\\
160 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000161\end{table}
Martin Arverf21f9142006-05-08 21:32:44 +0000162Example: \config{\%?mp{\textless}Stop{\textbar}Play{\textbar}Pause{\textbar}%
163Ffwd{\textbar}Rew{\textgreater}}
Martin Arver94c12892006-03-23 14:11:52 +0000164
Dominik Riebeling36a31332006-04-09 21:22:42 +0000165\section{Images}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000166\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000167 \begin{tagmap}{}{}
168 \opt{h300,x5,ipodcolor,ipodvideo}{
Martin Arverf21f9142006-05-08 21:32:44 +0000169 \config{\%X{\textbar}filename.bmp{\textbar}}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000170 & Load and set a backdrop image for the WPS. %
171 This image must be exactly the same size as your LCD.\\
172 }
Martin Arverf21f9142006-05-08 21:32:44 +0000173 \config{\%P{\textbar}filename.bmp{\textbar}}
174 & Load a Progress bar image for the WPS. Use \config{\%pb} tag to show the
Dominik Riebeling36a31332006-04-09 21:22:42 +0000175 progress bar\\
Martin Arverf21f9142006-05-08 21:32:44 +0000176 \config{\%x{\textbar}n{\textbar}filename{\textbar}x{\textbar}y{\textbar}}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000177 & Load and display an image\\
Martin Arverf21f9142006-05-08 21:32:44 +0000178 & \config{n}: image ID (a-z and A-Z)\\
179 & \config{filename}: filename relative to \fname{/.rockbox/} and including .bmp\\
180 & \config{x}: x coordinate\\
181 & \config{y}: y coordinate.\\
182 \config{\%xl{\textbar}n{\textbar}filename{\textbar}x{\textbar}y{\textbar}}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000183 & Preload an image for later display\\
Martin Arverf21f9142006-05-08 21:32:44 +0000184 & \config{n}: image ID (a-z and A-Z)\\
185 & \config{filename}: filename relative to \fname{/.rockbox/} and including .bmp\\
186 & \config{x}: x coordinate\\
187 & \config{y}: y coordinate.\\
188 \config{\%xdn} & Display a preloaded image\\
189 & \config{n}: image ID (a-z and A-Z)\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000190 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000191\end{table}
Martin Arver94c12892006-03-23 14:11:52 +0000192
Dominik Riebeling36a31332006-04-09 21:22:42 +0000193Example: image \fname{/.rockbox/bg.bmp} with ID ``a'' at 37, 109 would be:\\
Martin Arverf21f9142006-05-08 21:32:44 +0000194\config{\%x{\textbar}a{\textbar}bg.bmp{\textbar}37{\textbar}109{\textbar}}
Martin Arver94c12892006-03-23 14:11:52 +0000195
Dominik Riebeling18f319c2006-04-01 17:00:04 +0000196\note{
197 \begin{itemize}
198 \item The images must be in a rockbox compatible format (1 bit per pixel BMP)
199 \item The image tag must be on its own line
200 \item The ID is case sensitive, giving 52 different ID's
201 \item The size of the LCD screen for each player varies. See table below
202 for appropriate sizes of each device. The x and y coordinates must
203 repect each of the players' limits.
204 \end{itemize}
205}
Martin Arver94c12892006-03-23 14:11:52 +0000206
Dominik Riebeling36a31332006-04-09 21:22:42 +0000207\section{Alignment}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000208\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000209 \begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000210 \config{\%al} & Text is left aligned\\
211 \config{\%ac} & Text is center aligned\\
212 \config{\%ar} & Text is right aligned\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000213 \end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000214\end{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000215All alignment tags may be present in one line, but they need to be in the
216order left -- center -- right. If the aligned texts overlap, they are merged.
Martin Arver94c12892006-03-23 14:11:52 +0000217
Dominik Riebeling36a31332006-04-09 21:22:42 +0000218\section{Conditional Tags}
Martin Arver94c12892006-03-23 14:11:52 +0000219
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000220\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000221\begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000222\config{\%?xx{\textless}true{\textbar}false{\textgreater}}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000223 & If / Else: Evaluate for true or false case \\
Martin Arverf21f9142006-05-08 21:32:44 +0000224\config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}alt3{\textbar}\dots{\textbar}else{\textgreater}}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000225 & Enumerations: Evaluate for first / second / third / \dots / last condition \\
226\end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000227\end{table}
Martin Arver94c12892006-03-23 14:11:52 +0000228
Dominik Riebeling36a31332006-04-09 21:22:42 +0000229\section{Other Tags}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000230\begin{table}
Dominik Riebeling36a31332006-04-09 21:22:42 +0000231\begin{tagmap}{}{}
Martin Arverf21f9142006-05-08 21:32:44 +0000232 \config{\%\%} & Display a `\%'\\
233 \config{\%{\textless}} & Display a `{\textless}'\\
234 \config{\%{\textbar}} & Display a `{\textbar}'\\
235 \config{\%{\textgreater}} & Display a `{\textgreater}'\\
236 \config{\%;} & Display a `;'\\
237 \config{\%s} & Indicate that the line should scroll. Can occur
238 anywhere in a line (given that the text is
239 displayed; see conditionals above). You can specify
240 up to 10 scrolling lines. Scrolling lines can not
241 contain dynamic content such as timers, peak meters
242 or progress bars.\\
Dominik Riebeling36a31332006-04-09 21:22:42 +0000243\end{tagmap}
Dominik Riebelingda1e28c2006-08-03 18:32:41 +0000244\end{table}
245