blob: da818565998a6daf868acbeb842aa420dd5b457a [file] [log] [blame]
Justin Heiner43e7cb82002-08-22 02:26:08 +00001Custom WPS Display
Justin Heiner52681472002-09-05 16:52:47 +00002File Format Specifications
Justin Heiner43e7cb82002-08-22 02:26:08 +00003
Justin Heinera7a46c72002-08-27 01:05:19 +00004Description / General Info
5--------------------------
Justin Heiner7189bf22002-08-29 05:58:23 +00006* The Custom WPS Display is used on both the Rockbox Player and Recorder,
7 as a means to customize the WPS to the user's likings.
Björn Stenberg3e92ef42002-09-06 23:25:24 +00008* After editing the .wps file, "play" it to make it take effect.
9* The file may be 2 lines long for the Player, and 10 lines for the Recorder.
Justin Heiner7189bf22002-08-29 05:58:23 +000010* The line that has the time displayed on it MUST NOT be the line that
11 is scrolled, or the time will not be updated.
Justin Heinera7a46c72002-08-27 01:05:19 +000012* All characters not preceded by % are displayed as typed.
13
Justin Heiner43e7cb82002-08-22 02:26:08 +000014File Location
15-------------
Daniel Stenberg0cf21742002-10-10 14:44:39 +000016Custom WPS files may be located anywhere on the drive. The only restriction is
17that they must end in .wps. When you PLAY a .wps file, it'll be used for the
18future WPS screens. If the "played" wps file is located in the /.rockbox
19folder, it'll be remembered and used for subsequent restarts.
Justin Heiner43e7cb82002-08-22 02:26:08 +000020
21Tags
22----
Justin Heinera7a46c72002-08-27 01:05:19 +000023ID3 Info Tags:
Justin Heinera7a46c72002-08-27 01:05:19 +000024 %ia : ID3 Artist
Björn Stenberg862813d2002-09-01 20:00:05 +000025 %id : ID3 Album Name
Daniel Stenberg938d3b42002-12-05 18:38:01 +000026 %ig : ID3 Genre Name
27 %in : ID3 Track Number
28 %it : ID3 Track Title
29 %iy : ID3 Year
30
31
32Battery Info:
33 %bl : Show numeric battery level
34 %bt : Show estimated battery time left
Björn Stenberg862813d2002-09-01 20:00:05 +000035
Justin Heinera7a46c72002-08-27 01:05:19 +000036File Info Tags:
Björn Stenberg862813d2002-09-01 20:00:05 +000037 %fb : File Bitrate (in kbps)
38 %ff : File Frequency (in Hz)
Mats Lidell09ae8cb2002-09-01 21:13:07 +000039 %fm : File Name
Daniel Stenberg938d3b42002-12-05 18:38:01 +000040 %fn : File Name (without extension)
41 %fp : File Path
Justin Heinera7a46c72002-08-27 01:05:19 +000042 %fs : File Size (In Kilobytes)
Björn Stenberg862813d2002-09-01 20:00:05 +000043 %fv : "(vbr)" if variable bit rate or "" if constant bit rate
44 %d1 : First directory from end of file path.
45 %d2 : Second directory from end of file path.
Björn Stenbergef413702002-09-06 23:57:09 +000046 %d3 : Third directory from end of file path.
Björn Stenberg862813d2002-09-01 20:00:05 +000047
48Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 -
49747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture.
50
Justin Heinera7a46c72002-08-27 01:05:19 +000051Playlist/Song Info Tags:
Björn Stenberg3e92ef42002-09-06 23:25:24 +000052 %pb : Progress Bar
53 Player: This will display a 1 character "cup" that empties as the
54 progresses.
55 Recorder: This will replace the entire line with a progress bar.
Daniel Stenberg938d3b42002-12-05 18:38:01 +000056 %pc : Current Time In Song
57 %pe : Total Number of Playlist Entries
Linus Nielsen Feltzingbb572c42002-09-27 09:31:31 +000058 %pm : Peak Meter (Recorder only)
59 The entire line is used as volume peak meter.
Robert Hak52f1bca2002-10-15 11:52:50 +000060 %pn : Playlist Name (Without path or extension)
Justin Heinera7a46c72002-08-27 01:05:19 +000061 %pp : Playlist Position
Justin Heiner87f53242002-08-30 03:08:02 +000062 %pr : Remaining Time In Song
Daniel Stenberg938d3b42002-12-05 18:38:01 +000063 %ps : Shuffle. Shows 's' if shuffle mode is enabled.
Justin Heinera7a46c72002-08-27 01:05:19 +000064 %pt : Total Track Time
Björn Stenberg862813d2002-09-01 20:00:05 +000065
66Conditional Tags (If/Else block):
67 %?xx<|> : Conditional: if the tag specified by "xx" has a value, the
68 text between the "<" and the "|" is displayed, else the text
69 between the "|" and the ">" is displayed.
70 The else part is optional, so the "|" does not have to be
71 specified if no else part is desired. The conditionals nest,
72 so the text in the if and else part can contain all %
73 commands, including conditionals.
74
Justin Heinera7a46c72002-08-27 01:05:19 +000075Other Tags:
Björn Stenberg862813d2002-09-01 20:00:05 +000076 %% : Display a '%'
77 %< : Display a '<'
78 %| : Display a '|'
79 %> : Display a '>'
80 %s : Indicate that the line should scroll. Can occur anywhere in
81 a line (given that the text is displayed; see conditional
Markus Braunbc254fe2002-10-21 13:14:25 +000082 below). You can specify up to 10 scrolling lines.
Björn Stenberg862813d2002-09-01 20:00:05 +000083 %s is ignored if combined with %pb, %pc or %pr on the same
84 line (the result wouldn't be good anyway).
Justin Heiner43e7cb82002-08-22 02:26:08 +000085
Justin Heinereb94e0b2002-09-06 06:14:52 +000086Example File
87------------
Björn Stenberg862813d2002-09-01 20:00:05 +000088%s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
89%pb%pc/%pt
Justin Heinera7a46c72002-08-27 01:05:19 +000090
Björn Stenberg862813d2002-09-01 20:00:05 +000091That is, "tracknum - title [artist, album]", where most fields are only
92displayed if available. Could also be rendered as "filename" or
93"tracknum - title [artist]".
Björn Stenberg2042c502002-09-23 05:19:11 +000094
95Default
96-------
Daniel Stenberg0cf21742002-10-10 14:44:39 +000097If you haven't selected a .wps file in the .rockbox directory, you get the
98hardcoded wps layout. The default WPS screen is for player:
Björn Stenberg2042c502002-09-23 05:19:11 +000099
100%s%pp/%pe: %?ia<%ia - >%?it<%it|%fm>
Björn Stenberg3a44d4d2002-10-11 12:15:49 +0000101%pc%pb%pt
Björn Stenberg2042c502002-09-23 05:19:11 +0000102
103and for recorder:
104
105%s%fp
106%it
107%id
108%ia
109%fb kbit %fv
110Time: %pc / %pt
111%pb
Björn Stenberg3a44d4d2002-10-11 12:15:49 +0000112%pm