2002-08-22 02:26:08 +00:00
|
|
|
Custom WPS Display
|
2002-09-05 16:52:47 +00:00
|
|
|
File Format Specifications
|
2002-08-22 02:26:08 +00:00
|
|
|
|
2002-08-27 01:05:19 +00:00
|
|
|
Description / General Info
|
|
|
|
--------------------------
|
2002-08-29 05:58:23 +00:00
|
|
|
* The Custom WPS Display is used on both the Rockbox Player and Recorder,
|
|
|
|
as a means to customize the WPS to the user's likings.
|
2002-09-06 23:25:24 +00:00
|
|
|
* After editing the .wps file, "play" it to make it take effect.
|
|
|
|
* The file may be 2 lines long for the Player, and 10 lines for the Recorder.
|
2002-08-29 05:58:23 +00:00
|
|
|
* The line that has the time displayed on it MUST NOT be the line that
|
|
|
|
is scrolled, or the time will not be updated.
|
2002-08-27 01:05:19 +00:00
|
|
|
* All characters not preceded by % are displayed as typed.
|
|
|
|
|
2002-08-22 02:26:08 +00:00
|
|
|
File Location
|
|
|
|
-------------
|
2002-09-05 16:52:47 +00:00
|
|
|
The default configuration file must be located in the /.rockbox folder
|
|
|
|
of the evice and must be named default.wps (lowercase). Any other Custom
|
|
|
|
WPS files may be located anywhere on the drive. The only restriction
|
|
|
|
is that they must end in .wps
|
2002-08-22 02:26:08 +00:00
|
|
|
|
|
|
|
Tags
|
|
|
|
----
|
2002-08-27 01:05:19 +00:00
|
|
|
ID3 Info Tags:
|
|
|
|
%ia : ID3 Artist
|
2002-09-01 20:00:05 +00:00
|
|
|
%it : ID3 Track Title
|
2002-08-27 01:05:19 +00:00
|
|
|
%in : ID3 Track Number
|
2002-09-01 20:00:05 +00:00
|
|
|
%id : ID3 Album Name
|
|
|
|
|
2002-08-27 01:05:19 +00:00
|
|
|
File Info Tags:
|
2002-09-01 20:00:05 +00:00
|
|
|
%fb : File Bitrate (in kbps)
|
|
|
|
%ff : File Frequency (in Hz)
|
2002-08-27 01:05:19 +00:00
|
|
|
%fp : File Path
|
2002-09-01 21:13:07 +00:00
|
|
|
%fn : File Name (without extension)
|
|
|
|
%fm : File Name
|
2002-08-27 01:05:19 +00:00
|
|
|
%fs : File Size (In Kilobytes)
|
2002-09-01 20:00:05 +00:00
|
|
|
%fv : "(vbr)" if variable bit rate or "" if constant bit rate
|
|
|
|
%d1 : First directory from end of file path.
|
|
|
|
%d2 : Second directory from end of file path.
|
2002-09-06 23:57:09 +00:00
|
|
|
%d3 : Third directory from end of file path.
|
2002-09-01 20:00:05 +00:00
|
|
|
|
|
|
|
Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 -
|
|
|
|
747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture.
|
|
|
|
|
2002-08-27 01:05:19 +00:00
|
|
|
Playlist/Song Info Tags:
|
2002-09-06 23:25:24 +00:00
|
|
|
%pb : Progress Bar
|
|
|
|
Player: This will display a 1 character "cup" that empties as the
|
|
|
|
progresses.
|
|
|
|
Recorder: This will replace the entire line with a progress bar.
|
2002-08-27 01:05:19 +00:00
|
|
|
%pp : Playlist Position
|
2002-09-01 20:00:05 +00:00
|
|
|
%pe : Total Number of Playlist Entries
|
2002-08-27 01:05:19 +00:00
|
|
|
%pc : Current Time In Song
|
2002-08-30 03:08:02 +00:00
|
|
|
%pr : Remaining Time In Song
|
2002-08-27 01:05:19 +00:00
|
|
|
%pt : Total Track Time
|
|
|
|
|
2002-09-01 20:00:05 +00:00
|
|
|
Conditional Tags (If/Else block):
|
|
|
|
%?xx<|> : Conditional: if the tag specified by "xx" has a value, the
|
|
|
|
text between the "<" and the "|" is displayed, else the text
|
|
|
|
between the "|" and the ">" is displayed.
|
|
|
|
The else part is optional, so the "|" does not have to be
|
|
|
|
specified if no else part is desired. The conditionals nest,
|
|
|
|
so the text in the if and else part can contain all %
|
|
|
|
commands, including conditionals.
|
2002-08-27 01:05:19 +00:00
|
|
|
|
2002-09-01 20:00:05 +00:00
|
|
|
Other Tags:
|
|
|
|
%% : Display a '%'
|
|
|
|
%< : Display a '<'
|
|
|
|
%| : Display a '|'
|
|
|
|
%> : Display a '>'
|
|
|
|
%s : Indicate that the line should scroll. Can occur anywhere in
|
|
|
|
a line (given that the text is displayed; see conditional
|
|
|
|
below). Only the first line with a %s will actually scroll.
|
|
|
|
%s is ignored if combined with %pb, %pc or %pr on the same
|
|
|
|
line (the result wouldn't be good anyway).
|
2002-08-27 01:05:19 +00:00
|
|
|
|
2002-09-06 06:14:52 +00:00
|
|
|
Example File
|
|
|
|
------------
|
2002-09-01 20:00:05 +00:00
|
|
|
%s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]>
|
|
|
|
%pb%pc/%pt
|
2002-08-22 02:26:08 +00:00
|
|
|
|
2002-09-01 20:00:05 +00:00
|
|
|
That is, "tracknum - title [artist, album]", where most fields are only
|
|
|
|
displayed if available. Could also be rendered as "filename" or
|
|
|
|
"tracknum - title [artist]".
|
2002-09-23 05:19:11 +00:00
|
|
|
|
|
|
|
Default
|
|
|
|
-------
|
|
|
|
If you don't use a default.wps file, you get the hardcoded wps layout.
|
|
|
|
The default WPS screen is for player:
|
|
|
|
|
|
|
|
%s%pp/%pe: %?ia<%ia - >%?it<%it|%fm>
|
|
|
|
%pc/%pt
|
|
|
|
|
|
|
|
and for recorder:
|
|
|
|
|
|
|
|
%s%fp
|
|
|
|
%it
|
|
|
|
%id
|
|
|
|
%ia
|
|
|
|
%fb kbit %fv
|
|
|
|
Time: %pc / %pt
|
|
|
|
%pb
|