summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-03-23 21:46:49 +0000
committerAlexander Levin <al.le@rockbox.org>2009-03-23 21:46:49 +0000
commit0a24140f59499b73376890fcbeff02aa1b2c1d30 (patch)
tree9c383e88a3f6b135487a05fafcc510f449c899db
parentdecc59b3f7c9eb1d5a60743d6d53203bd0e45419 (diff)
downloadrockbox-0a24140f59499b73376890fcbeff02aa1b2c1d30.tar.gz
rockbox-0a24140f59499b73376890fcbeff02aa1b2c1d30.zip
Unify description of WPS tags (reworked FS#9618), correct and complete some descriptions
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20502 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--manual/appendix/wps_tags.tex147
1 files changed, 81 insertions, 66 deletions
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex
index 5753b1c89f..2a9333d9fd 100644
--- a/manual/appendix/wps_tags.tex
+++ b/manual/appendix/wps_tags.tex
@@ -3,83 +3,91 @@
3\section{Status Bar} 3\section{Status Bar}
4\begin{table} 4\begin{table}
5\begin{tagmap}{}{} 5\begin{tagmap}{}{}
6\config{\%we} & Status Bar Enabled\\ 6\config{\%we} & Display Status Bar\\
7\config{\%wd} & Status Bar Disabled\\ 7\config{\%wd} & Hide Status Bar\\
8\end{tagmap} 8\end{tagmap}
9\end{table} 9\end{table}
10These tags override the player setting for the display of the status bar. 10These tags override the player setting for the display of the status bar.
11They must be noted on their own line. 11They must be noted on their own line (which will not be shown in the WPS).
12 12
13\section{ID3 Info} 13\section{Information from the track tags}
14\begin{table} 14\begin{table}
15 \begin{tagmap}{}{} 15 \begin{tagmap}{}{}
16 \config{\%ia} & ID3 Artist\\ 16 \config{\%ia} & Artist\\
17 \config{\%ic} & ID3 Composer\\ 17 \config{\%ic} & Composer\\
18 \config{\%id} & ID3 Album Name\\ 18 \config{\%id} & Album Name\\
19 \config{\%ig} & ID3 Genre Name\\ 19 \config{\%ig} & Genre Name\\
20 \config{\%in} & ID3 Track Number\\ 20 \config{\%in} & Track Number\\
21 \config{\%it} & ID3 Track Title\\ 21 \config{\%it} & Track Title\\
22 \config{\%iv} & ID3 Version (1.0, 1.1, 2.2, 2.3, 2.4 or empty if no id3 tag)\\ 22 \config{\%iv} & ID3 version (1.0, 1.1, 2.2, 2.3, 2.4, or empty if not an ID3 tag)\\
23 \config{\%iy} & ID3 Year\\ 23 \config{\%iy} & Year\\
24 \end{tagmap} 24 \end{tagmap}
25\end{table} 25\end{table}
26Remember that this information is not always available, so use the 26Remember that this information is not always available, so use the
27conditionals to show alternate information in preference to assuming. 27conditionals to show alternate information in preference to assuming.
28 28
29These tags, when written with a capital ``I'' (e.g. \config{\%Ia} or \config{\%Ic}),
30produce the information for the next song to be played.
31
29\section{Power Related Information} 32\section{Power Related Information}
30\begin{table} 33\begin{table}
31 \begin{tagmap}{}{} 34 \begin{tagmap}{}{}
32 \config{\%bl} & Show numeric battery level in percent.\\ 35 \config{\%bl} & Numeric battery level in percents\\
33 & Can also be used in a conditional: 36 & Can also be used in a conditional:
34 \config{\%?bl{\textless}-1{\textbar}0{\textbar}1{\textbar}% 37 \config{\%?bl{\textless}-1{\textbar}0{\textbar}1{\textbar}%
35 2{\textbar}\ldots{\textbar}N{\textgreater}}\\ 38 2{\textbar}\ldots{\textbar}N{\textgreater}},
36 & Where the -1 value is used when the battery level isn't 39 where the value $-1$ is used when the battery level isn't
37 known (it usually is).\\ 40 known (it usually is)\\
38 \config{\%bv} & Show the battery level in volts\\ 41 \config{\%bv} & The battery level in volts\\
39 \config{\%bt} & Show estimated battery time left\\ 42 \config{\%bt} & Estimated battery time left\\
40 \config{\%bp} & ``p'' if the charger is connected \\ 43 \config{\%bp} & ``p'' if the charger is connected (only on targets
41 & (only on targets that can charge batteries)\\ 44 that can charge batteries)\\
42 \config{\%bc} & ``c'' if the unit is currently charging the battery\\ 45 \config{\%bc} & ``c'' if the unit is currently charging the battery (only on
43 & (only on targets that have software charge control or monitoring)\\ 46 targets that have software charge control or monitoring)\\
44 \config{\%bs} & Sleep timer. Shows the remaining time if the sleeptimer is set\\ 47 \config{\%bs} & Remaining time of the sleep timer (if it is set)\\
45 \end{tagmap} 48 \end{tagmap}
46\end{table} 49\end{table}
47 50
48\section{File Info} 51\section{Information about the file}
49\begin{table} 52\begin{table}
50 \begin{tagmap}{}{} 53 \begin{tagmap}{}{}
51 \config{\%fb} & File Bitrate (in kbps)\\ 54 \config{\%fb} & File Bitrate (in kbps)\\
52 \config{\%fc} & File Codec (e.g. ``MP3'' or ``FLAC''). % 55 \config{\%fc} & File Codec (e.g. ``MP3'' or ``FLAC''). %
53 This tag can also be used in a conditional tag, % 56 This tag can also be used in a conditional tag, %
54 \config{\%?fc{\textless}mp1\-{\textbar}mp2\-{\textbar}mp3\-% 57 \config{\%?fc{\textless}mp1\-{\textbar}mp2\-{\textbar}mp3\-%
55 {\textbar}aiff\-{\textbar}wav\-{\textbar}vorbis\-{\textbar}flac\-% 58 {\textbar}aiff\-{\textbar}wav\-{\textbar}ogg\-{\textbar}flac\-%
56 {\textbar}mpc\-{\textbar}a52\-{\textbar}wavpack\-{\textbar}alac\-% 59 {\textbar}mpc\-{\textbar}a52\-{\textbar}wavpack\-{\textbar}alac\-%
57 {\textbar}aac\-{\textbar}shn\-{\textbar}sid\-{\textbar}adx\-% 60 {\textbar}aac\-{\textbar}shn\-{\textbar}sid\-{\textbar}adx\-%
61 {\textbar}nsf\-{\textbar}speex\-{\textbar}spc\-{\textbar}ape\-%
62 {\textbar}wma\-{\textbar}mod\-{\textbar}sap%
58 {\textbar}unknown{\textgreater}}.\\ 63 {\textbar}unknown{\textgreater}}.\\
59 & The codec order is as follows: MP1, MP2, MP3, AIFF, WAV,% 64 & The codec order is as follows: MP1, MP2, MP3, AIFF, WAV,
60 Ogg Vorbis (OGG), FLAC, MPC, AC3, WavPack (WV), ALAC, AAC,% 65 Ogg Vorbis (OGG), FLAC, MPC, AC3, WavPack (WV), ALAC, AAC,
61 Shorten (SHN), SID, ADX, NSF, Speex, SPC, APE.\\ 66 Shorten (SHN), SID, ADX, NSF, Speex, SPC, APE, WMA, MOD, SAP.\\
62 \config{\%ff} & File Frequency (in Hz)\\ 67 \config{\%ff} & File Frequency (in Hz)\\
63 \config{\%fm} & File Name\\ 68 \config{\%fm} & File Name\\
64 \config{\%fn} & File Name (without extension)\\ 69 \config{\%fn} & File Name (without extension)\\
65 \config{\%fp} & File Path\\ 70 \config{\%fp} & File Path\\
66 \config{\%fs} & File Size (In Kilobytes)\\ 71 \config{\%fs} & File Size (in Kilobytes)\\
67 \config{\%fv} & ``(avg)'' if variable bit rate or ``'' if constant bit rate\\ 72 \config{\%fv} & ``(avg)'' if variable bit rate or empty string if constant bit rate\\
68 \config{\%d1} & First directory from end of file path.\\ 73 \config{\%d1} & First directory from the end of the file path\\
69 \config{\%d2} & Second directory from end of file path.\\ 74 \config{\%d2} & Second directory from the end of the file path\\
70 \config{\%d3} & Third directory from end of file path.\\ 75 \config{\%d3} & Third directory from the end of the file path\\
71 \end{tagmap} 76 \end{tagmap}
72\end{table} 77\end{table}
73Example for the \config{\%dN} commands: If the path is 78Example for the \config{\%dN} commands: If the path is
74``/Rock/Kent/Isola/11 - 747.mp3'', \config{\%d1} is ``Isola'', 79``/Rock/Kent/Isola/11 - 747.mp3'', \config{\%d1} is ``Isola'',
75\config{\%d2} is ``Kent'' \dots{} You get the picture. 80\config{\%d2} is ``Kent'' and \config{\%d3} is ``Rock''.
81
82These tags, when written with the first letter capitalized (e.g. \config{\%Fn} or \config{\%D2}),
83produce the information for the next file to be played.
76 84
77\section{Playlist/Song Info} 85\section{Playlist/Song Info}
78\begin{table} 86\begin{table}
79 \begin{tagmap}{}{} 87 \begin{tagmap}{}{}
80 \config{\%pb} & Progress Bar\\ 88 \config{\%pb} & Progress Bar\\
81 \opt{player}{ 89 \opt{player}{
82 & This will display a 1 character ``cup'' % 90 & This will display a one character ``cup''
83 that empties as the time progresses.} 91 that empties as the time progresses.}
84 \opt{lcd_bitmap}{ 92 \opt{lcd_bitmap}{
85 & This will replace the entire line with a progress bar. \\ 93 & This will replace the entire line with a progress bar. \\
@@ -96,14 +104,15 @@ Example for the \config{\%dN} commands: If the path is
96 \config{\%pm} & Peak Meter. The entire line is used as % 104 \config{\%pm} & Peak Meter. The entire line is used as %
97 volume peak meter.\\% 105 volume peak meter.\\%
98 }% 106 }%
99 \config{\%pn} & Playlist Name (Without path or extension)\\ 107 \config{\%pn} & Playlist Name (without path or extension)\\
100 \config{\%pp} & Playlist Position\\ 108 \config{\%pp} & Playlist Position\\
101 \config{\%pr} & Remaining Time In Song\\ 109 \config{\%pr} & Remaining Time In Song\\
102 \config{\%ps} & Shuffle. Shows 's' if shuffle mode is enabled.\\ 110 \config{\%ps} & ``s'' if shuffle mode is enabled\\
103 \config{\%pt} & Total Track Time\\ 111 \config{\%pt} & Total Track Time\\
104 \config{\%pv} & Current volume (x dB). Can also be used in a conditional: \\ 112 \config{\%pv} & Current volume (in dB). Can also be used in a conditional: \\
105 & \config{\%?pv{\textless}0{\textbar}1{\textbar}2{\textbar}\ldots% 113 & \config{\%?pv{\textless}0{\textbar}1{\textbar}2{\textbar}\ldots%
106 {\textbar}N{\textgreater}}\\ 114 {\textbar}N{\textgreater}}\\
115 & 0 is used for mute, the last option is used for values greater than zero.\\
107 \end{tagmap} 116 \end{tagmap}
108\end{table} 117\end{table}
109 118
@@ -111,7 +120,7 @@ Example for the \config{\%dN} commands: If the path is
111\begin{table} 120\begin{table}
112 \begin{tagmap}{}{} 121 \begin{tagmap}{}{}
113 \config{\%rp} & Song playcount\\ 122 \config{\%rp} & Song playcount\\
114 \config{\%rr} & Song rating (0-10). This tag can also be used in a conditional tag, % 123 \config{\%rr} & Song rating (0-10). This tag can also be used in a conditional tag: %
115 \config{\%?rr{\textless}0{\textbar}1{\textbar}2{\textbar}3{\textbar}% 124 \config{\%?rr{\textless}0{\textbar}1{\textbar}2{\textbar}3{\textbar}%
116 4{\textbar}5{\textbar}6{\textbar}7{\textbar}8{\textbar}9{\textbar}% 125 4{\textbar}5{\textbar}6{\textbar}7{\textbar}8{\textbar}9{\textbar}%
117 10{\textgreater}}\\ 126 10{\textgreater}}\\
@@ -122,7 +131,7 @@ Example for the \config{\%dN} commands: If the path is
122\section{Sound (DSP) settings} 131\section{Sound (DSP) settings}
123\begin{table} 132\begin{table}
124 \begin{tagmap}{}{} 133 \begin{tagmap}{}{}
125 \config{\%Sp} & Display current playback pitch \\ 134 \config{\%Sp} & Current playback pitch \\
126 \opt{swcodec}{ 135 \opt{swcodec}{
127 \config{\%xf} & Crossfade setting, in the order: Off, Shuffle, Skip, Always\\ 136 \config{\%xf} & Crossfade setting, in the order: Off, Shuffle, Skip, Always\\
128 \config{\%rg} & ReplayGain value in use (x.y dB). If used as a conditional, 137 \config{\%rg} & ReplayGain value in use (x.y dB). If used as a conditional,
@@ -164,7 +173,7 @@ Example: \config{\%?mm{\textless}Off{\textbar}All{\textbar}One{\textbar}Shuffle%
164\begin{table} 173\begin{table}
165 \begin{tagmap}{}{} 174 \begin{tagmap}{}{}
166 \config{\%mp} & Play status, 0-4, in the order: Stop, Play, Pause, 175 \config{\%mp} & Play status, 0-4, in the order: Stop, Play, Pause,
167 Fast forward, Rewind\\ 176 Fast Forward, Rewind\\
168 \end{tagmap} 177 \end{tagmap}
169\end{table} 178\end{table}
170Example: \config{\%?mp{\textless}Stop{\textbar}Play{\textbar}Pause{\textbar}% 179Example: \config{\%?mp{\textless}Stop{\textbar}Play{\textbar}Pause{\textbar}%
@@ -179,8 +188,8 @@ Ffwd{\textbar}Rew{\textgreater}}
179 188
180The tag produces the letter ``v'' while the volume is being changed and some 189The tag produces the letter ``v'' while the volume is being changed and some
181amount of time after that, i.e. after the volume button has been released. The 190amount of time after that, i.e. after the volume button has been released. The
182optional parameter \config{t} specifies that amout of time. If it is not 191optional parameter \config{t} specifies that amount of time, in seconds. If it
183specified, 1 sec is assumed. 192is not specified, 1 second is assumed.
184 193
185The tag can be used as the switch in a conditional tag to display different things 194The tag can be used as the switch in a conditional tag to display different things
186depending on whether the volume is being changed. It can produce neat effects 195depending on whether the volume is being changed. It can produce neat effects
@@ -195,11 +204,18 @@ that, it will display the volume value.
195\section{Settings} 204\section{Settings}
196\begin{table} 205\begin{table}
197 \begin{tagmap}{}{} 206 \begin{tagmap}{}{}
198 \config{\%St{\textbar}<setting name>{\textbar}} & Display the value of any Rockbox setting\\ 207 \config{\%St{\textbar}<setting name>{\textbar}} & The value of the Rockbox
208 setting with the specified name. See \reference{ref:config_file_options}
209 for the list of the available settings.\\
199 \end{tagmap} 210 \end{tagmap}
200\end{table} 211\end{table}
201Example: Can be used as a simple tag \config{\%St{\textbar}skip length{\textbar}} or with conditionals 212
202\config{\%?St{\textbar}eq enabled{\textbar}{\textless}Equalizer is enabled{\textbar}Equalizer is disabled{\textgreater}}. 213Examples:
214\begin{enumerate}
215\item As a simple tag: \config{\%St{\textbar}skip length{\textbar}}
216\item As a conditional: \config{\%?St{\textbar}eq enabled{\textbar}{\textless}Eq is enabled{\textbar}Eq is disabled{\textgreater}}
217\end{enumerate}
218
203 219
204\opt{lcd_bitmap}{ 220\opt{lcd_bitmap}{
205\section{Images} 221\section{Images}
@@ -211,20 +227,20 @@ Example: Can be used as a simple tag \config{\%St{\textbar}skip length{\textbar}
211 This image must be exactly the same size as your LCD.\\ 227 This image must be exactly the same size as your LCD.\\
212 }% 228 }%
213 \config{\%P{\textbar}filename.bmp{\textbar}} 229 \config{\%P{\textbar}filename.bmp{\textbar}}
214 & Load a Progress bar image for the WPS. Use \config{\%pb} tag to show the 230 & Load a Progress Bar image for the WPS. Use \config{\%pb} tag to show the
215 progress bar\\ 231 progress bar\\
216 \config{\%x{\textbar}n{\textbar}filename{\textbar}x{\textbar}y{\textbar}} 232 \config{\%x{\textbar}n{\textbar}filename{\textbar}x{\textbar}y{\textbar}}
217 & Load and display an image\\ 233 & Load and display an image\\
218 & \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\\ 234 & \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\\
219 & \config{filename}: filename relative to \fname{/.rockbox/} and including .bmp\\ 235 & \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\\
220 & \config{x}: x coordinate\\ 236 & \config{x}: x coordinate\\
221 & \config{y}: y coordinate.\\ 237 & \config{y}: y coordinate.\\
222 \config{\%xl{\textbar}n{\textbar}filename{\textbar}x{\textbar}y{\textbar}[nimages{\textbar}]} 238 \config{\%xl{\textbar}n{\textbar}filename{\textbar}x{\textbar}y{\textbar}[nimages{\textbar}]}
223 & Preload an image for later display (useful for when your images are displayed conditionally)\\ 239 & Preload an image for later display (useful for when your images are displayed conditionally)\\
224 & \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\\ 240 & \config{n}: image ID (a-z and A-Z) for later referencing in \config{\%xd}\\
225 & \config{filename}: filename relative to \fname{/.rockbox/} and including .bmp\\ 241 & \config{filename}: file name relative to \fname{/.rockbox/} and including ``.bmp''\\
226 & \config{x}: x coordinate\\ 242 & \config{x}: x coordinate\\
227 & \config{y}: y coordinate.\\ 243 & \config{y}: y coordinate\\
228 & \config{nimages}: (optional) number of sub-images (tiled vertically, of the same height) 244 & \config{nimages}: (optional) number of sub-images (tiled vertically, of the same height)
229 contained in the bitmap. Default is 1.\\ 245 contained in the bitmap. Default is 1.\\
230 \config{\%xdn[i]} & Display a preloaded image\\ 246 \config{\%xdn[i]} & Display a preloaded image\\
@@ -266,8 +282,8 @@ with image ID ``M'', and then reference the individual sub-images in a condition
266 & Define the settings for albumart\\ 282 & Define the settings for albumart\\
267 & \config{x}: x coordinate\\ 283 & \config{x}: x coordinate\\
268 & \config{y}: y coordinate\\ 284 & \config{y}: y coordinate\\
269 & \config{maxwidth}: Maximum height.\\ 285 & \config{maxwidth}: Maximum height\\
270 & \config{maxheight}: Maximum width.\\ 286 & \config{maxheight}: Maximum width\\
271 \config{\%C} & Display the album art as configured. This tag can also be used as a conditional.\\ 287 \config{\%C} & Display the album art as configured. This tag can also be used as a conditional.\\
272 \end{tagmap} 288 \end{tagmap}
273\end{table} 289\end{table}
@@ -305,9 +321,9 @@ Examples:
305\section{Alignment} 321\section{Alignment}
306\begin{table} 322\begin{table}
307 \begin{tagmap}{}{} 323 \begin{tagmap}{}{}
308 \config{\%al} & Text is left aligned\\ 324 \config{\%al} & Align the text left\\
309 \config{\%ac} & Text is center aligned\\ 325 \config{\%ac} & Center the text\\
310 \config{\%ar} & Text is right aligned\\ 326 \config{\%ar} & Align the text right\\
311 \end{tagmap} 327 \end{tagmap}
312\end{table} 328\end{table}
313All alignment tags may be present in one line, but they need to be in the 329All alignment tags may be present in one line, but they need to be in the
@@ -330,10 +346,10 @@ order left -- center -- right. If the aligned texts overlap, they are merged.
330 \begin{tagmap}{}{} 346 \begin{tagmap}{}{}
331 \config{\%cd} & Day of month\\ 347 \config{\%cd} & Day of month\\
332 \config{\%ce} & Zero padded day of month\\ 348 \config{\%ce} & Zero padded day of month\\
333 \config{\%cH} & Zero padded hour from 00 to 24\\ 349 \config{\%cH} & Zero padded hour from 00 to 23 (24 hour format)\\
334 \config{\%ck} & Hour from 0 to 24\\ 350 \config{\%ck} & Hour from 0 to 23 (24 hour format)\\
335 \config{\%cI} & Zero padded hour from 12 to 12\\ 351 \config{\%cI} & Zero padded hour from 12 to 12 (am/pm format)\\
336 \config{\%cl} & Hour from 12 to 12\\ 352 \config{\%cl} & Hour from 12 to 12 (am/pm format)\\
337 \config{\%cm} & Month\\ 353 \config{\%cm} & Month\\
338 \config{\%cM} & Minutes\\ 354 \config{\%cM} & Minutes\\
339 \config{\%cS} & Seconds\\ 355 \config{\%cS} & Seconds\\
@@ -352,17 +368,16 @@ order left -- center -- right. If the aligned texts overlap, they are merged.
352\section{Other Tags} 368\section{Other Tags}
353\begin{table} 369\begin{table}
354\begin{tagmap}{}{} 370\begin{tagmap}{}{}
355 \config{\%\%} & Display a `\%'\\ 371 \config{\%\%} & The character `\%'\\
356 \config{\%{\textless}} & Display a `{\textless}'\\ 372 \config{\%{\textless}} & The character `{\textless}'\\
357 \config{\%{\textbar}} & Display a `{\textbar}'\\ 373 \config{\%{\textbar}} & The character `{\textbar}'\\
358 \config{\%{\textgreater}} & Display a `{\textgreater}'\\ 374 \config{\%{\textgreater}} & The character `{\textgreater}'\\
359 \config{\%;} & Display a `;'\\ 375 \config{\%;} & The character `;'\\
360 \config{\%s} & Indicate that the line should scroll. Can occur 376 \config{\%s} & Indicate that the line should scroll. Can occur
361 anywhere in a line (given that the text is 377 anywhere in a line (given that the text is
362 displayed; see conditionals above). You can specify 378 displayed; see conditionals above). You can specify
363 up to 10 scrolling lines. Scrolling lines can not 379 up to ten scrolling lines. Scrolling lines can not
364 contain dynamic content such as timers, peak meters 380 contain dynamic content such as timers, peak meters
365 or progress bars.\\ 381 or progress bars.\\
366\end{tagmap} 382\end{tagmap}
367\end{table} 383\end{table}
368