blob: 916c9887b1b3063c774fa01ae38aa2a1c808d012 [file] [log] [blame]
Justin Heiner43e7cb82002-08-22 02:26:08 +00001Custom WPS Display
2wps.config File Format Specifications
3
Justin Heinera7a46c72002-08-27 01:05:19 +00004
5Description / General Info
6--------------------------
7* The Custom WPS Display is used on the Rockbox Player ONLY, as a means
8 to customize the WPS to the user's likings.
9* Plans to implement this feature into the recorder are in progress.
10* The first line of the 2 line display is the customized line (scrolling).
11* The second line is always the time display. (Elapsed & Total Time).
12* The second line is not able to be customized.
13* Any CR's, LF's, or CR/LF's (Commonly known as Newline/Return/Enter) in
14 the wps.config file will be treated as spaces. IE: Don't use them.
15* After editing the wps.config file, you may need to reboot your Rockbox.
16* All tags except for %%, %?, and %: contain 3 characters (%xx). Remember
17 to type the tags correctly, or you will get unexpected output, or even
18 possibly no output at all.
19* All characters not preceded by % are displayed as typed.
20
Justin Heiner43e7cb82002-08-22 02:26:08 +000021
22File Location
23-------------
24The configuration file must be located in the root folder of the
25device and must be named wps.config (lowercase)
26
Justin Heinera7a46c72002-08-27 01:05:19 +000027
Justin Heiner43e7cb82002-08-22 02:26:08 +000028Tags
29----
Justin Heinera7a46c72002-08-27 01:05:19 +000030ID3 Info Tags:
31 %it : ID3 Title
32 %ia : ID3 Artist
33 %in : ID3 Track Number
34 %id : ID3 Album
35File Info Tags:
36 %fc : Conditional Title/Filename
37 Displays "Artist - Title" *or*
38 Displays Filename if no ID3 Artist/Title
39 %fd : Conditional Title/Filename
40 Displays "Title - Artist" *or*
41 Displays Filename if no ID3 Artist/Title
42 %fb : File Bitrate
43 %ff : File Frequency
44 %fp : File Path
45 %fn : File Name
46 %fs : File Size (In Kilobytes)
47Playlist/Song Info Tags:
48 %pp : Playlist Position
49 %pe : Playlist Total Entries
50 %pc : Current Time In Song
51 %pt : Total Track Time
52Other Tags:
53 %% : Displays a %
54Conditional ID3/File Tags (If/Else block):
55 The following two tags are completely optional, and meant only for those
56 that wish to go crazy with customization. It lets you specify what to
57 do when it finds an ID3 tag, and also when it doesn't find one. It can
58 be placed anywhere within the wps.config file.
59 The first condition of the If/Else block is what to do when it DOES find
60 valid ID3 tags. The second condition is what to do when there are no
61 valid ID3 tags available.
62 %? : Start/End an If/Else block
63 %: : Seperator between If and Else
64 Example:
65 To display "Title - Artist" if there is ID3 available, or "Filename"
66 if there is no ID3, the following string would be used:
67 %?%it - %ia%:%fn%?
68 Yes, you are not going crazy (although I may be)... This *IS* more
69 confusing then Perl :-)
Justin Heiner43e7cb82002-08-22 02:26:08 +000070
Justin Heinera7a46c72002-08-27 01:05:19 +000071
72Example wps.config File (Without If/Else)
Justin Heiner43e7cb82002-08-22 02:26:08 +000073-----------------------
Justin Heinera7a46c72002-08-27 01:05:19 +000074%pp/%pe: %fc * %fsKB
75
Justin Heiner43e7cb82002-08-22 02:26:08 +000076
77Example Output
78--------------
79ID3 Title: None
80ID3 Artist: None
81Playlist Position: 5
82Playlist Total Entries: 10
83Filename: My Song.mp3
84File Size: 3500
85Elapsed Track Time: 2:23
86Total Track Time: 3:01
87The output of this on the player would be:
Justin Heinera7a46c72002-08-27 01:05:19 +000088 ---------------------------
89| 5/10: My Song.mp3 * 3500KB|
90| 2:23/3:01 |
91 ---------------------------
92Of course, the whole first line wouldn't fit, so it scrolls it.