Advertisement
Guest User

Untitled

a guest
Oct 29th, 2010
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 3.31 KB | None | 0 0
  1. Index: manual/appendix/wps_tags.tex
  2. ===================================================================
  3. --- manual/appendix/wps_tags.tex    (revision 28374)
  4. +++ manual/appendix/wps_tags.tex    (working copy)
  5. @@ -15,6 +15,23 @@
  6.  These tags override the player setting for the display of the status bar.
  7.  They must be noted on their own line (which will not be shown in the WPS).
  8.  
  9. +\section{Hardware Capabilities}
  10. +\begin{tagmap}
  11. +    \config{\%cc} & Check for presence of a real time clock, returns ``c''
  12. +                   when used unconditionally\\
  13. +    \config{\%tp} & Does this target have a radio?\\
  14. +    \config{\%Tp} & Indicates that the target has a touchscreen.\\
  15. +\end{tagmap}
  16. +With the above tags it is possible to find out about the presence of certain
  17. +hardware and make the theme adapt to it. This can be very useful for designing
  18. +a theme that works on multiple targets with differing hardware capabilities, e.g.
  19. +targets that do and do not have a clock. When used conditionally, the ``true''
  20. +branch is completely ignored if it does not apply.
  21. +
  22. +Example:
  23. +\config{\%?cc<\%cH:\%cM|No clock detected>}
  24. +
  25. +
  26.  \section{Information from the track tags}
  27.    \begin{tagmap}
  28.      \config{\%ia} & Artist\\
  29. @@ -440,9 +457,6 @@
  30.  \opt{radio}{
  31.  \section{FM Radio}
  32.    \begin{tagmap}
  33. -    \config{\%tp} & Does this target have a radio? If it doesn't, the ``true''
  34. -      branch of this conditional is completly ignored so you don't need to
  35. -      worry about tags which are not recognized on non radio targets.\\
  36.      \config{\%tt} & Is the tuner tuned?\\
  37.      \config{\%tm} & Scan or preset mode? Scan is ``true'', preset is ``false''.\\
  38.      \config{\%ts} & Is the station in stereo?\\
  39. @@ -531,10 +545,9 @@
  40.  display cycling round the defined sublines. See
  41.  \reference{ref:AlternatingSublines} for details.
  42.  
  43. -
  44. +\opt{rtc}{
  45.  \section{Time and Date}
  46.      \begin{tagmap}
  47. -    \opt{rtc}{
  48.        \config{\%cd}          & Day of month from 01 to 31\\
  49.        \config{\%ce}          & Zero padded day of month from 1 to 31\\
  50.        \config{\%cf}          & A conditional for 12/24 hour format.\newline
  51. @@ -554,22 +567,9 @@
  52.        \config{\%cb}          & Month name\\
  53.        \config{\%cu}          & Day of week from 1 to 7, 1 is Monday\\
  54.        \config{\%cw}          & Day of week from 0 to 6, 0 is Sunday\\
  55. -    }
  56. -      \config{\%cc}          & Check for presence of the clock hardware\\
  57.      \end{tagmap}
  58. -The \%cc tag returns ``c'' if the necessary hardware is present and can also be
  59. -used as a conditional. This can be very useful for designing a WPS that works on
  60. -multiple targets, some with and some without a clock. By using this tag as a
  61. -conditional it is possible to display current date and time on those targets that
  62. -support this
  63. -\opt{rtc}{ (like the \playertype)},
  64. -or alternate information on those that do not
  65. -\nopt{rtc}{ (like the \playertype)}%
  66. -.
  67. +}
  68.  
  69. -Example:
  70. -\config{\%?cc<\%cH:\%cM|No clock detected>}
  71. -
  72.  \section{Text Translation}
  73.    \begin{tagmap}
  74.      \config{\%Sx(English)}
  75. @@ -586,10 +586,6 @@
  76.  
  77.  
  78.  \opt{touchscreen}{
  79. -  \section{Target Has A Touchscreen?}
  80. -    \begin{tagmap}
  81. -      \config{\%Tp} & Indicates that the target has a touchscreen.\\
  82. -    \end{tagmap}
  83.    \section{Touchscreen Areas}
  84.      \begin{tagmap}
  85.        \config{\%T(x,y,[width],\tabnlindent[height],action)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement