blob: 8aadcb401cac570b9e13c9f29eaf897f635cb6ef [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
Björn Stenberg80dbb872003-02-09 11:19:07 +000019folder, it'll be remembered and used for subsequent restarts. Filenames in the
20/.rockbox folder must be no more than 24 characters long.
Justin Heiner43e7cb82002-08-22 02:26:08 +000021
22Tags
23----
Björn Stenberg954c0ce2002-12-20 12:18:16 +000024(Options marked (*) have been added after the last official release, and are
25thus only available in daily builds.)
26
Justin Heinera7a46c72002-08-27 01:05:19 +000027ID3 Info Tags:
Justin Heinera7a46c72002-08-27 01:05:19 +000028 %ia : ID3 Artist
Björn Stenberg862813d2002-09-01 20:00:05 +000029 %id : ID3 Album Name
Björn Stenberg954c0ce2002-12-20 12:18:16 +000030 %ig : ID3 Genre Name (*)
Daniel Stenberg938d3b42002-12-05 18:38:01 +000031 %in : ID3 Track Number
32 %it : ID3 Track Title
33 %iy : ID3 Year
Björn Stenbergaf70b2f2002-12-20 12:39:23 +000034 %iv : ID3 Version (1.0, 1.1, 2.2, 2.3, 2.4 or empty if no id3 tag) (*)
Daniel Stenberg938d3b42002-12-05 18:38:01 +000035
36
37Battery Info:
Björn Stenberg954c0ce2002-12-20 12:18:16 +000038 %bl : Show numeric battery level in percent (*)
39 %bt : Show estimated battery time left (*)
Björn Stenberg862813d2002-09-01 20:00:05 +000040
Justin Heinera7a46c72002-08-27 01:05:19 +000041File Info Tags:
Björn Stenberg862813d2002-09-01 20:00:05 +000042 %fb : File Bitrate (in kbps)
43 %ff : File Frequency (in Hz)
Mats Lidell09ae8cb2002-09-01 21:13:07 +000044 %fm : File Name
Daniel Stenberg938d3b42002-12-05 18:38:01 +000045 %fn : File Name (without extension)
46 %fp : File Path
Justin Heinera7a46c72002-08-27 01:05:19 +000047 %fs : File Size (In Kilobytes)
Björn Stenberg862813d2002-09-01 20:00:05 +000048 %fv : "(vbr)" if variable bit rate or "" if constant bit rate
49 %d1 : First directory from end of file path.
50 %d2 : Second directory from end of file path.
Björn Stenbergef413702002-09-06 23:57:09 +000051 %d3 : Third directory from end of file path.
Björn Stenberg862813d2002-09-01 20:00:05 +000052
53Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 -
54747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture.
55
Justin Heinera7a46c72002-08-27 01:05:19 +000056Playlist/Song Info Tags:
Björn Stenberg3e92ef42002-09-06 23:25:24 +000057 %pb : Progress Bar
58 Player: This will display a 1 character "cup" that empties as the
59 progresses.
60 Recorder: This will replace the entire line with a progress bar.
Björn Stenberg42f261e2003-03-11 12:49:36 +000061 %pf : Player: Full-line progress bar + time display
Daniel Stenberg938d3b42002-12-05 18:38:01 +000062 %pc : Current Time In Song
63 %pe : Total Number of Playlist Entries
Linus Nielsen Feltzingbb572c42002-09-27 09:31:31 +000064 %pm : Peak Meter (Recorder only)
65 The entire line is used as volume peak meter.
Robert Hak52f1bca2002-10-15 11:52:50 +000066 %pn : Playlist Name (Without path or extension)
Justin Heinera7a46c72002-08-27 01:05:19 +000067 %pp : Playlist Position
Justin Heiner87f53242002-08-30 03:08:02 +000068 %pr : Remaining Time In Song
Daniel Stenberg938d3b42002-12-05 18:38:01 +000069 %ps : Shuffle. Shows 's' if shuffle mode is enabled.
Justin Heinera7a46c72002-08-27 01:05:19 +000070 %pt : Total Track Time
Björn Stenberg42f261e2003-03-11 12:49:36 +000071 %pv : Current volume
Björn Stenberg862813d2002-09-01 20:00:05 +000072
73Conditional Tags (If/Else block):
74 %?xx<|> : Conditional: if the tag specified by "xx" has a value, the
75 text between the "<" and the "|" is displayed, else the text
76 between the "|" and the ">" is displayed.
77 The else part is optional, so the "|" does not have to be
78 specified if no else part is desired. The conditionals nest,
79 so the text in the if and else part can contain all %
80 commands, including conditionals.
81
Justin Heinera7a46c72002-08-27 01:05:19 +000082Other Tags:
Björn Stenberg862813d2002-09-01 20:00:05 +000083 %% : Display a '%'
84 %< : Display a '<'
85 %| : Display a '|'
86 %> : Display a '>'
87 %s : Indicate that the line should scroll. Can occur anywhere in
Björn Stenberg954c0ce2002-12-20 12:18:16 +000088 a line (given that the text is displayed; see conditionals
89 above). You can specify up to 10 scrolling lines (*).
Björn Stenberg862813d2002-09-01 20:00:05 +000090 %s is ignored if combined with %pb, %pc or %pr on the same
91 line (the result wouldn't be good anyway).
Justin Heiner43e7cb82002-08-22 02:26:08 +000092
Justin Heinereb94e0b2002-09-06 06:14:52 +000093Example File
94------------
Björn Stenberg862813d2002-09-01 20:00:05 +000095%s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
96%pb%pc/%pt
Justin Heinera7a46c72002-08-27 01:05:19 +000097
Björn Stenberg862813d2002-09-01 20:00:05 +000098That is, "tracknum - title [artist, album]", where most fields are only
99displayed if available. Could also be rendered as "filename" or
100"tracknum - title [artist]".
Björn Stenberg2042c502002-09-23 05:19:11 +0000101
102Default
103-------
Daniel Stenberg0cf21742002-10-10 14:44:39 +0000104If you haven't selected a .wps file in the .rockbox directory, you get the
105hardcoded wps layout. The default WPS screen is for player:
Björn Stenberg2042c502002-09-23 05:19:11 +0000106
107%s%pp/%pe: %?ia<%ia - >%?it<%it|%fm>
Björn Stenberg3a44d4d2002-10-11 12:15:49 +0000108%pc%pb%pt
Björn Stenberg2042c502002-09-23 05:19:11 +0000109
110and for recorder:
111
112%s%fp
113%it
114%id
115%ia
116%fb kbit %fv
117Time: %pc / %pt
118%pb
Björn Stenberg3a44d4d2002-10-11 12:15:49 +0000119%pm