Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 1 | Custom WPS Display |
| 2 | wps.config File Format Specifications |
| 3 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame^] | 4 | |
| 5 | Description / 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 Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 21 | |
| 22 | File Location |
| 23 | ------------- |
| 24 | The configuration file must be located in the root folder of the |
| 25 | device and must be named wps.config (lowercase) |
| 26 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame^] | 27 | |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 28 | Tags |
| 29 | ---- |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame^] | 30 | ID3 Info Tags: |
| 31 | %it : ID3 Title |
| 32 | %ia : ID3 Artist |
| 33 | %in : ID3 Track Number |
| 34 | %id : ID3 Album |
| 35 | File 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) |
| 47 | Playlist/Song Info Tags: |
| 48 | %pp : Playlist Position |
| 49 | %pe : Playlist Total Entries |
| 50 | %pc : Current Time In Song |
| 51 | %pt : Total Track Time |
| 52 | Other Tags: |
| 53 | %% : Displays a % |
| 54 | Conditional 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 Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 70 | |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame^] | 71 | |
| 72 | Example wps.config File (Without If/Else) |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 73 | ----------------------- |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame^] | 74 | %pp/%pe: %fc * %fsKB |
| 75 | |
Justin Heiner | 43e7cb8 | 2002-08-22 02:26:08 +0000 | [diff] [blame] | 76 | |
| 77 | Example Output |
| 78 | -------------- |
| 79 | ID3 Title: None |
| 80 | ID3 Artist: None |
| 81 | Playlist Position: 5 |
| 82 | Playlist Total Entries: 10 |
| 83 | Filename: My Song.mp3 |
| 84 | File Size: 3500 |
| 85 | Elapsed Track Time: 2:23 |
| 86 | Total Track Time: 3:01 |
| 87 | The output of this on the player would be: |
Justin Heiner | a7a46c7 | 2002-08-27 01:05:19 +0000 | [diff] [blame^] | 88 | --------------------------- |
| 89 | | 5/10: My Song.mp3 * 3500KB| |
| 90 | | 2:23/3:01 | |
| 91 | --------------------------- |
| 92 | Of course, the whole first line wouldn't fit, so it scrolls it. |