Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 1 | Custom WPS Display |
Justin Heiner | 5268147 | 2002-09-05 16:52:47 +0000 | [diff] [blame] | 2 | File Format Specifications |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 3 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 4 | Description / General Info |
| 5 | -------------------------- |
Justin Heiner | 7189bf2 | 2002-08-29 05:58:23 +0000 | [diff] [blame] | 6 | * 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 Stenberg | 3e92ef4 | 2002-09-06 23:25:24 +0000 | [diff] [blame^] | 8 | * 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 Heiner | 7189bf2 | 2002-08-29 05:58:23 +0000 | [diff] [blame] | 10 | * 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 Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 12 | * All characters not preceded by % are displayed as typed. |
| 13 | |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 14 | File Location |
| 15 | ------------- |
Justin Heiner | 5268147 | 2002-09-05 16:52:47 +0000 | [diff] [blame] | 16 | The default configuration file must be located in the /.rockbox folder |
| 17 | of the evice and must be named default.wps (lowercase). Any other Custom |
| 18 | WPS files may be located anywhere on the drive. The only restriction |
| 19 | is that they must end in .wps |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 20 | |
| 21 | Tags |
| 22 | ---- |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 23 | ID3 Info Tags: |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 24 | %ia : ID3 Artist |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 25 | %it : ID3 Track Title |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 26 | %in : ID3 Track Number |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 27 | %id : ID3 Album Name |
| 28 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 29 | File Info Tags: |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 30 | %fb : File Bitrate (in kbps) |
| 31 | %ff : File Frequency (in Hz) |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 32 | %fp : File Path |
Mats Lidell | 09ae8cb | 2002-09-01 21:13:07 +0000 | [diff] [blame] | 33 | %fn : File Name (without extension) |
| 34 | %fm : File Name |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 35 | %fs : File Size (In Kilobytes) |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 36 | %fv : "(vbr)" if variable bit rate or "" if constant bit rate |
| 37 | %d1 : First directory from end of file path. |
| 38 | %d2 : Second directory from end of file path. |
| 39 | %d2 : Third directory from end of file path. |
| 40 | |
| 41 | Example for the the %dN commands: If the path is "/Rock/Kent/Isola/11 - |
| 42 | 747.mp3", %d1 is "Isola", %d2 is "Kent"... You get the picture. |
| 43 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 44 | Playlist/Song Info Tags: |
Björn Stenberg | 3e92ef4 | 2002-09-06 23:25:24 +0000 | [diff] [blame^] | 45 | %pb : Progress Bar |
| 46 | Player: This will display a 1 character "cup" that empties as the |
| 47 | progresses. |
| 48 | Recorder: This will replace the entire line with a progress bar. |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 49 | %pp : Playlist Position |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 50 | %pe : Total Number of Playlist Entries |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 51 | %pc : Current Time In Song |
Justin Heiner | 87f5324 | 2002-08-30 03:08:02 +0000 | [diff] [blame] | 52 | %pr : Remaining Time In Song |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 53 | %pt : Total Track Time |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 54 | |
| 55 | Conditional Tags (If/Else block): |
| 56 | %?xx<|> : Conditional: if the tag specified by "xx" has a value, the |
| 57 | text between the "<" and the "|" is displayed, else the text |
| 58 | between the "|" and the ">" is displayed. |
| 59 | The else part is optional, so the "|" does not have to be |
| 60 | specified if no else part is desired. The conditionals nest, |
| 61 | so the text in the if and else part can contain all % |
| 62 | commands, including conditionals. |
| 63 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 64 | Other Tags: |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 65 | %% : Display a '%' |
| 66 | %< : Display a '<' |
| 67 | %| : Display a '|' |
| 68 | %> : Display a '>' |
| 69 | %s : Indicate that the line should scroll. Can occur anywhere in |
| 70 | a line (given that the text is displayed; see conditional |
| 71 | below). Only the first line with a %s will actually scroll. |
| 72 | %s is ignored if combined with %pb, %pc or %pr on the same |
| 73 | line (the result wouldn't be good anyway). |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 74 | |
Justin Heiner | eb94e0b | 2002-09-06 06:14:52 +0000 | [diff] [blame] | 75 | Example File |
| 76 | ------------ |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 77 | %s%?in<%in - >%?it<%it|%fn> %?ia<[%ia%?id<, %id>]> |
| 78 | %pb%pc/%pt |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame] | 79 | |
Björn Stenberg | 862813d | 2002-09-01 20:00:05 +0000 | [diff] [blame] | 80 | That is, "tracknum - title [artist, album]", where most fields are only |
| 81 | displayed if available. Could also be rendered as "filename" or |
| 82 | "tracknum - title [artist]". |