1
0
Fork 0
forked from len0rd/rockbox

No need to use textless, textgreater and textbar where <, > and | can be used

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27249 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Alexander Levin 2010-07-02 19:55:47 +00:00
parent 12427106d2
commit 15d0ac0134

View file

@ -53,7 +53,7 @@ show the information for the next song to be played.
& See section \ref{ref:Viewports}\\} & See section \ref{ref:Viewports}\\}
\config{\%Vd('identifier')} & Display the `identifier' viewport. E.g. \config{\%Vd('identifier')} & Display the `identifier' viewport. E.g.
\config{\%?C{\textless}\%Vd(a){\textbar}\%Vd(b){\textgreater}} \config{\%?C<\%Vd(a)|\%Vd(b)>}
will show viewport `a' if album art is found, and `b' if it isn't.\\ will show viewport `a' if album art is found, and `b' if it isn't.\\
\config{\%Vi('label',\dots)} & \config{\%Vi('label',\dots)} &
@ -75,8 +75,7 @@ show the information for the next song to be played.
\begin{tagmap} \begin{tagmap}
\config{\%bl} & Numeric battery level in percents. \config{\%bl} & Numeric battery level in percents.
Can also be used in a conditional: Can also be used in a conditional:
\config{\%?bl{\textless}-1{\textbar}0{\textbar}1{\textbar}% \config{\%?bl<-1|0|1|2|\ldots|N>},
2{\textbar}\ldots{\textbar}N{\textgreater}},
where the value $-1$ is used when the battery level isn't where the value $-1$ is used when the battery level isn't
known (it usually is). known (it usually is).
An image can also be used, the proportion of the image An image can also be used, the proportion of the image
@ -94,15 +93,11 @@ show the information for the next song to be played.
\section{Information about the file} \section{Information about the file}
\begin{tagmap} \begin{tagmap}
\config{\%fb} & File Bitrate (in kbps)\\ \config{\%fb} & File Bitrate (in kbps)\\
\config{\%fc} & File Codec (e.g. ``MP3'' or ``FLAC''). % \config{\%fc} & File Codec (e.g. ``MP3'' or ``FLAC'').
This tag can also be used in a conditional tag, % This tag can also be used in a conditional tag:
\config{\%?fc{\textless}mp1\-{\textbar}mp2\-{\textbar}mp3\-% \config{\%?fc<mp1|mp2|mp3|aiff|wav|ogg|\newline
{\textbar}aiff\-{\textbar}wav\-{\textbar}ogg\-{\textbar}flac\-% flac|mpc|a52|wavpack|alac|aac|shn|sid|adx|nsf|\newline
{\textbar}mpc\-{\textbar}a52\-{\textbar}wavpack\-{\textbar}alac\-% speex|spc|ape|wma|mod|sap|unknown>}.
{\textbar}aac\-{\textbar}shn\-{\textbar}sid\-{\textbar}adx\-%
{\textbar}nsf\-{\textbar}speex\-{\textbar}spc\-{\textbar}ape\-%
{\textbar}wma\-{\textbar}mod\-{\textbar}sap%
{\textbar}unknown{\textgreater}}.
The codec order is as follows: MP1, MP2, MP3, AIFF, WAV, The codec order is as follows: MP1, MP2, MP3, AIFF, WAV,
Ogg Vorbis (OGG), FLAC, MPC, AC3, WavPack (WV), ALAC, AAC, Ogg Vorbis (OGG), FLAC, MPC, AC3, WavPack (WV), ALAC, AAC,
Shorten (SHN), SID, ADX, NSF, Speex, SPC, APE, WMA, MOD, SAP.\\ Shorten (SHN), SID, ADX, NSF, Speex, SPC, APE, WMA, MOD, SAP.\\
@ -150,21 +145,20 @@ or \config{\%D(2)}), produce the information for the next file to be played.
\config{\%ps} & ``s'' if shuffle mode is enabled\\ \config{\%ps} & ``s'' if shuffle mode is enabled\\
\config{\%pt} & Total track time\\ \config{\%pt} & Total track time\\
\config{\%pv} & Current volume (in dB). Can also be used in a conditional: \config{\%pv} & Current volume (in dB). Can also be used in a conditional:
\config{\%?pv{\textless}0{\textbar}1{\textbar}2{\textbar}\ldots% \config{\%?pv<0|1|2|\ldots|N>}\newline
{\textbar}N{\textgreater}}\newline
0 is used for mute, the last option is used for values greater than zero. 0 is used for mute, the last option is used for values greater than zero.
\opt{lcd_bitmap}{This can also be used like \%pb to provide a continuous scale: \opt{lcd_bitmap}{This can also be used like \%pb to provide a continuous scale:
\config{\%pv(x,y,[width],[height],image.bmp)}} \\ \config{\%pv(x,y,[width],[height],image.bmp)}} \\
\config{\%pS} & Track is starting. An optional number gives how many seconds \config{\%pS} & Track is starting. An optional number gives how many seconds
the tag remains true for after the start of the track. The default is the tag remains true for after the start of the track. The default is
10 seconds if no number is specified. 10 seconds if no number is specified.
\config{\%pS(7){\textless}in the first 7 seconds of track{\textbar}in \config{\%pS(7)<in the first 7 seconds of track|in
the rest of the track{\textgreater}}\\ the rest of the track>}\\
\config{\%pE} & Track is ending. An optional number gives how many seconds \config{\%pE} & Track is ending. An optional number gives how many seconds
before the end of the track the tag becomes true. The default is before the end of the track the tag becomes true. The default is
10 seconds if no number is specified. 10 seconds if no number is specified.
\config{\%pE(7){\textless}in the last 7 seconds of track{\textbar}in \config{\%pE(7)<in the last 7 seconds of track|in
the rest of the track{\textgreater}}\\ the rest of the track>}\\
\config{\%Sp} & Current playback pitch\\ \config{\%Sp} & Current playback pitch\\
\end{tagmap} \end{tagmap}
@ -172,9 +166,7 @@ or \config{\%D(2)}), produce the information for the next file to be played.
\begin{tagmap} \begin{tagmap}
\config{\%rp} & Song playcount\\ \config{\%rp} & Song playcount\\
\config{\%rr} & Song rating (0-10). This tag can also be used in a conditional tag: % \config{\%rr} & Song rating (0-10). This tag can also be used in a conditional tag: %
\config{\%?rr{\textless}0{\textbar}1{\textbar}2{\textbar}3{\textbar}% \config{\%?rr<0|1|2|3|4|5|6|7|8|9|10>}\\
4{\textbar}5{\textbar}6{\textbar}7{\textbar}8{\textbar}9{\textbar}%
10{\textgreater}}\\
\config{\%ra} & Autoscore for the song\\ \config{\%ra} & Autoscore for the song\\
\end{tagmap} \end{tagmap}
@ -186,9 +178,9 @@ or \config{\%D(2)}), produce the information for the next file to be played.
\config{\%xf} & Crossfade setting, in the order: Off, Auto Skip, Man Skip, \config{\%xf} & Crossfade setting, in the order: Off, Auto Skip, Man Skip,
Shuffle, Shuffle and Man Skip, Always\\ Shuffle, Shuffle and Man Skip, Always\\
\config{\%rg} & ReplayGain value in use (x.y~dB). If used as a conditional, \config{\%rg} & ReplayGain value in use (x.y~dB). If used as a conditional,
Replaygain type in use: \config{\%?rg{\textless}Off{\textbar}Track% Replaygain type in use: \config{\%?rg<Off|Track%
{\textbar}Album{\textbar}TrackShuffle{\textbar}AlbumShuffle% |Album|TrackShuffle|AlbumShuffle%
{\textbar}No tag{\textgreater}}\\ |No tag>}\\
} }
\end{tagmap} \end{tagmap}
} }
@ -210,8 +202,8 @@ or \config{\%D(2)}), produce the information for the next file to be played.
\begin{tagmap} \begin{tagmap}
\config{\%mm} & Repeat mode, 0-4, in the order: Off, All, One, Shuffle, A-B\\ \config{\%mm} & Repeat mode, 0-4, in the order: Off, All, One, Shuffle, A-B\\
\end{tagmap} \end{tagmap}
Example: \config{\%?mm{\textless}Off{\textbar}All{\textbar}One{\textbar}Shuffle% Example: \config{\%?mm<Off|All|One|Shuffle%
{\textbar}A-B{\textgreater}} |A-B>}
\section{Playback Mode} \section{Playback Mode}
\begin{tagmap} \begin{tagmap}
@ -219,9 +211,9 @@ Example: \config{\%?mm{\textless}Off{\textbar}All{\textbar}One{\textbar}Shuffle%
Fast Forward, Rewind, Recording, Recording paused, FM Radio playing, Fast Forward, Rewind, Recording, Recording paused, FM Radio playing,
FM Radio muted\\ FM Radio muted\\
\end{tagmap} \end{tagmap}
Example: \config{\%?mp{\textless}Stop{\textbar}Play{\textbar}Pause{\textbar}% Example: \config{\%?mp<Stop|Play|Pause|%
Ffwd{\textbar}Rew{\textbar}Rec{\textbar}Rec pause{\textbar}FM{\textbar}% Ffwd|Rew|Rec|Rec pause|FM|%
FM pause{\textgreater}} FM pause>}
\section{Current Screen} \section{Current Screen}
\begin{tagmap} \begin{tagmap}
@ -231,8 +223,8 @@ FM pause{\textgreater}}
The tag can also be used as the switch in a conditional tag. For players without The tag can also be used as the switch in a conditional tag. For players without
some capabilities (e.g. having no FM radio) some values will be never yielded. some capabilities (e.g. having no FM radio) some values will be never yielded.
Example: \config{You are in the \%?cs{\textless}Main menu{\textbar}WPS{\textbar}% Example: \config{You are in the \%?cs<Main menu|WPS|%
Recording screen{\textbar}FM Radio screen{\textgreater}} Recording screen|FM Radio screen>}
\section{List Title (\fname{.sbs} only)} \section{List Title (\fname{.sbs} only)}
\begin{tagmap} \begin{tagmap}
@ -245,7 +237,7 @@ Recording screen{\textbar}FM Radio screen{\textgreater}}
This tag can be used to give custom formatting to list titles. This tag can be used to give custom formatting to list titles.
Define a viewport with the font and formatting desired, and then use Define a viewport with the font and formatting desired, and then use
\config{\%?Lt{\textless}\%Lt{\textgreater}} to display the title within the \config{\%?Lt<\%Lt>} to display the title within the
viewport. If \config{\%Lt} is present anywhere in the \fname{.sbs}, then the viewport. If \config{\%Lt} is present anywhere in the \fname{.sbs}, then the
\config{\%Vi} viewport will not show the title. \config{\%Vi} viewport will not show the title.
@ -263,7 +255,7 @@ The tag can be used as the switch in a conditional tag to display different thin
depending on whether the volume is being changed. It can produce neat effects depending on whether the volume is being changed. It can produce neat effects
when used with conditional viewports. when used with conditional viewports.
Example: \config{\%?mv(2.5){\textless}Volume changing{\textbar}\%pv{\textgreater}} Example: \config{\%?mv(2.5)<Volume changing|\%pv>}
The example above will display the text ``Volume changing'' if the volume is The example above will display the text ``Volume changing'' if the volume is
being changed and 2.5 seconds after the volume button has been released. After being changed and 2.5 seconds after the volume button has been released. After
@ -279,7 +271,7 @@ that, it will display the volume value.
Examples: Examples:
\begin{enumerate} \begin{enumerate}
\item As a simple tag: \config{\%St(skip length)} \item As a simple tag: \config{\%St(skip length)}
\item As a conditional: \config{\%?St(eq enabled){\textless}Eq is enabled{\textbar}Eq is disabled{\textgreater}} \item As a conditional: \config{\%?St(eq enabled)<Eq is enabled|Eq is disabled>}
\end{enumerate} \end{enumerate}
@ -318,8 +310,8 @@ Examples:
\item Load a bitmap strip containing 5 volume icon images (all the same size) \item Load a bitmap strip containing 5 volume icon images (all the same size)
with image ID ``M'', and then reference the individual sub-images in a conditional:\\ with image ID ``M'', and then reference the individual sub-images in a conditional:\\
\config{\%xl(M,volume.bmp,134,153,5)}\\ \config{\%xl(M,volume.bmp,134,153,5)}\\
\config{\%?pv<\%xd(Ma){\textbar}\%xd(Mb){\textbar}\%xd(Mc){\textbar}% \config{\%?pv<\%xd(Ma)|\%xd(Mb)|\%xd(Mc)|%
\%xd(Md){\textbar}\%xd(Me)>} \%xd(Md)|\%xd(Me)>}
\end{enumerate} \end{enumerate}
@ -371,8 +363,8 @@ that order):
\end{enumerate} \end{enumerate}
The following characters will be replaced with an underscore (\_) when looking The following characters will be replaced with an underscore (\_) when looking
for albumtitle.bmp or albumartist-albumtitle.bmp: \textbackslash{} / : \textless{} for albumtitle.bmp or albumartist-albumtitle.bmp: \textbackslash{} / : <
\textgreater{} ? * \textbar{}. Doublequotes will be replaced by single quotes. > ? * |. Doublequotes will be replaced by single quotes.
If no album artist is set, artist will be used instead. See \wikilink{AlbumArt} If no album artist is set, artist will be used instead. See \wikilink{AlbumArt}
in the wiki for programs that will help you automate the process of putting in the wiki for programs that will help you automate the process of putting
album art on your \dap{}. album art on your \dap{}.
@ -457,9 +449,9 @@ order left -- centre -- right. If the aligned texts overlap, they are merged.
\section{Conditional Tags} \section{Conditional Tags}
\begin{tagmap} \begin{tagmap}
\config{\%?xx{\textless}true{\textbar}false{\textgreater}} \config{\%?xx<true|false>}
& If / Else: Evaluate for true or false case \\ & If / Else: Evaluate for true or false case \\
\config{\%?xx{\textless}alt1{\textbar}alt2{\textbar}\tabnlindent{}alt3{\textbar}\dots{\textbar}else{\textgreater}} \config{\%?xx<alt1|alt2|\tabnlindent{}alt3|\dots|else>}
& Enumerations: Evaluate for first / second / third / \dots / last condition \\ & Enumerations: Evaluate for first / second / third / \dots / last condition \\
\end{tagmap} \end{tagmap}
@ -513,7 +505,7 @@ or alternate information on those that do not
. .
Example: Example:
\config{\%?cc{\textless}\%cH:\%cM{\textbar}No clock detected{\textgreater}} \config{\%?cc<\%cH:\%cM|No clock detected>}
\section{Text Translation} \section{Text Translation}
\begin{tagmap} \begin{tagmap}
@ -579,11 +571,11 @@ Example:
\config{\%)} & The character `)'\\ \config{\%)} & The character `)'\\
\config{\%,} & The character `,'\\ \config{\%,} & The character `,'\\
\config{\%\%} & The character `\%'\\ \config{\%\%} & The character `\%'\\
\config{\%{\textless}} & The character `{\textless}'\\ \config{\%<} & The character `<'\\
\config{\%{\textbar}} & The character `{\textbar}'\\ \config{\%|} & The character `|'\\
\config{\%{\textgreater}} & The character `{\textgreater}'\\ \config{\%>} & The character `>'\\
\config{\%;} & The character `;'\\ \config{\%;} & The character `;'\\
\config{\#} & The character `\#'\\ \config{\#} & The character `\#'\\
\config{\%s} & Indicate that the line should scroll. Can occur \config{\%s} & Indicate that the line should scroll. Can occur
anywhere in a line (given that the text is anywhere in a line (given that the text is
displayed; see conditionals above). You can specify displayed; see conditionals above). You can specify