diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-26 00:42:53 +1100 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2012-02-26 00:50:14 +1100 |
| commit | 31a05953e142b1ffff631cfb8b817880db7e4c27 (patch) | |
| tree | 499dd370eb2b3b8fad4be38be2ca6bb03bcfdcc8 /manual/appendix | |
| parent | 3cdd50bf41504d783b57502e685de481ac62e2f8 (diff) | |
| download | rockbox-31a05953e142b1ffff631cfb8b817880db7e4c27.zip rockbox-31a05953e142b1ffff631cfb8b817880db7e4c27.tar.gz rockbox-31a05953e142b1ffff631cfb8b817880db7e4c27.tar.bz2 rockbox-31a05953e142b1ffff631cfb8b817880db7e4c27.tar.xz | |
FS#12586 - Modify %ss to be able to use numbers for conditionals
i.e %?ss(1,1,%cM)<|one|two|three|...|> or %xd(numbers, %ss(1,1%cM)
Change-Id: I74ecb3f253f3be1fd270f75c0ef79addd364a7de
Diffstat (limited to 'manual/appendix')
| -rw-r--r-- | manual/appendix/wps_tags.tex | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manual/appendix/wps_tags.tex b/manual/appendix/wps_tags.tex index 0096075..ba4cbd1 100644 --- a/manual/appendix/wps_tags.tex +++ b/manual/appendix/wps_tags.tex @@ -740,6 +740,20 @@ a horizontal progressbar which doesn't fill and draws the image fits inside the specified width and height.} \section{Other Tags} + +\begin{tagmap} + \config{\%ss(start, length, tag [,number]} & Get a substring from another tag.\\ +\end{tagmap} + Use this tag to get a substring from another tag. +\begin{description} + \item[start] -- first character to take (0 being the start of the string) + \item[length] -- length of the substring to return (- for the rest of the string) + \item[tag] -- tag to get + \item[number] -- OPTIONAL. if this is present it will assume the + substring is a number so it can be used with conditionals. (i.e \config{\%cM}). + 0 is the first conditional option +\end{description} + \begin{tagmap} \config{\%(} & The character `('\\ \config{\%)} & The character `)'\\ |