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.tar.gz rockbox-31a05953e142b1ffff631cfb8b817880db7e4c27.zip |
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 0096075695..ba4cbd16ee 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 | |||
740 | fits inside the specified width and height.} | 740 | fits inside the specified width and height.} |
741 | 741 | ||
742 | \section{Other Tags} | 742 | \section{Other Tags} |
743 | |||
744 | \begin{tagmap} | ||
745 | \config{\%ss(start, length, tag [,number]} & Get a substring from another tag.\\ | ||
746 | \end{tagmap} | ||
747 | Use this tag to get a substring from another tag. | ||
748 | \begin{description} | ||
749 | \item[start] -- first character to take (0 being the start of the string) | ||
750 | \item[length] -- length of the substring to return (- for the rest of the string) | ||
751 | \item[tag] -- tag to get | ||
752 | \item[number] -- OPTIONAL. if this is present it will assume the | ||
753 | substring is a number so it can be used with conditionals. (i.e \config{\%cM}). | ||
754 | 0 is the first conditional option | ||
755 | \end{description} | ||
756 | |||
743 | \begin{tagmap} | 757 | \begin{tagmap} |
744 | \config{\%(} & The character `('\\ | 758 | \config{\%(} & The character `('\\ |
745 | \config{\%)} & The character `)'\\ | 759 | \config{\%)} & The character `)'\\ |