Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help BruceHP update his WPS.
« previous next »
  • Print
Pages: [1]

Author Topic: Help BruceHP update his WPS.  (Read 5205 times)

Offline BruceHP

  • Member
  • *
  • Posts: 133
Help BruceHP update his WPS.
« on: October 09, 2008, 08:48:49 PM »
I'm hoping someone will help a nearly blind guy.

Back when I could see much better that today I made this WPS file:

%wd
%al%bt%ar%cl:%cM%cP
%ac%pp of %pe 
%pm
%s%ac%?it<%it|%fn>
%s%ac%?ia<%ia|%?d2<%d2|(Artist

Unknown)>>
%al%pc%ar-%pr
%pb|34|

%al%fbk%ac%pvdb%ar%fc

it made it possible for me to see something on the screen, now it isn't working.  I'm sure it will just take a little tweak which I can no longer do.

If you can help, just post it back here, as I can C&P.

If this violates any rules, Thanks anyways and I will revert to an older version of RockBox.  Thanks Again
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: Help BruceHP update his WPS.
« Reply #1 on: October 09, 2008, 09:17:30 PM »
The syntax for the %pb tag changed.  You can find a description of the changes in this post: http://forums.rockbox.org/index.php?topic=17507.0

Your %pb tag only has one parameter.  So, I'm not too sure if it's supposed to be the x position or the width.  Hopefully, that's enough information for you to be able to fix the theme.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Help BruceHP update his WPS.
« Reply #2 on: October 09, 2008, 11:28:21 PM »
It's a little bit of a guess here because I never used the %pb like that, but I checked on an old simulator and apparently your %pb|34| sets a complete progress bar using all the screen horizontally, with a 34 pixel height, that is placed vertically after displaying the preceding lines in the  WPS (right after " %al%pc%ar-%pr "). So to use the new syntax, it would have to be:

%pb|-|-|y|-|34|

where "y" has to be replaced with the vertical position (in pixels) where you want the progress bar to start. If you would have trouble calculating that position, please specify which font you are using (or post the .cfg file, and also  specify which player you use just in case)
« Last Edit: October 09, 2008, 11:47:53 PM by akahhannah »
Logged

Offline BruceHP

  • Member
  • *
  • Posts: 133
Re: Help BruceHP update his WPS.
« Reply #3 on: October 09, 2008, 11:50:15 PM »
Thanks so much for all of your help.  I have it running and can tune it from here.

For anyone who wants what I call See22.wps here it is:

%wd
%al%bt%ar%cl:%cM%cP
%ac%pp of %pe 
%pm
%s%ac%?it<%it|%fn>
%s%ac%?ia<%ia|%?d2<%d2|(Artist

Unknown)>>
%al%pc%ar-%pr

%pb|-|-|-|-|34|

%al%fbk%ac%pvdb%ar%fc

BTW, I am using Profont22.

Thanks again, BruceHP
« Last Edit: October 10, 2008, 12:00:18 AM by BruceHP »
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Help BruceHP update his WPS.
« Reply #4 on: October 10, 2008, 01:23:24 AM »
Quote from: BruceHP on October 09, 2008, 11:50:15 PM
For anyone who wants what I call See22.wps here it is:

You might consider uploading your theme to the appropiate model theme gallery here http://www.rockbox.org/twiki/bin/view/Main/WpsGallery#WPS_Galleries_model_specific; your theme could be a ready-to-use solution for other people ;)

If you decide to do so, check http://forums.rockbox.org/index.php?topic=18001.0 and http://www.rockbox.org/twiki/bin/view/Main/WpsGallery#WPS_Upload_Guide
Logged

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Help BruceHP update his WPS.
« Reply #5 on: October 11, 2008, 06:39:51 AM »
Quote from: akahhannah on October 09, 2008, 11:28:21 PM
%pb|-|-|y|-|34|
where "y" has to be replaced with the vertical position (in pixels) where you want the progress bar to start.

Just want to state it here as I saw this quite a few times already: you can also replace the "y" with a "-" which then means "display the progress bar on this line, center adjusted vertically", line on the screen corresponding to the line in the WPS in the same way as for text. If the %pb tag was used without specifying a y-position, like here, before this should simply work if you don't move the tag around in your .wps file. Finally, you can also still use a plain "%pb" tag without any specifications. This will display a 6 pixels high, drawn progress bar, going fully from left to right, center aligned on the line the tag is on - as it was before (see the DancePuffDuo.wps in SVN which is included on targets with 160x128 big displays, for the curious). This does not apply here though because the height should be differently.

BruceHP seems to have found out himself, good work. :)
Logged

Offline audio-i

  • Artist
  • Member
  • *
  • Posts: 266
Re: Help BruceHP update his WPS.
« Reply #6 on: October 11, 2008, 12:05:24 PM »
@pixelma, yes I also found out what you explained through BruceHP's solution ;) I had never used a default or "semi-default" progress bar before. I changed the text in the CustomWPS wiki to try and make it a little bit more explicit, from

"%pb|filename.bmp|x|y|width|height| ... This will replace the entire line with a progress bar if no bitmap is defined. Optionally, you can set the image to use as well as its position and size. Any parameter can be set to the default by using a dash (-)."

to

"This will replace the current entire line with a 6 pixel high progress bar if no bitmap and other parameters are defined. Optionally, you can set the image to use, as well as its position and size. Any parameter can be set to the default by using a dash (-)."
Logged

Offline BruceHP

  • Member
  • *
  • Posts: 133
Re: Help BruceHP update his WPS.
« Reply #7 on: October 12, 2008, 06:40:15 PM »
Thanks again for all the help.  I would post this .wps if I had the ability.

If anyone would ike to do so, you are welcome.

I wrote this, See22.wps for the Sansa e200 using ProFont22.

The revised version is:

%wd
%al%bt%ar%cl:%cM%cP
%ac%pp of %pe 
%pm
%s%ac%?it<%it|%fn>
%s%ac%?ia<%ia|%?d2<%d2|(Artist Unknown)>>

%al%pc%ar-%pr
%pb|-|-|160|-|34|

%al%fbk%ac%pvdb%ar%fc

Hopefully it will be useful to some other Legally Blind RockBox user.

I need no credit for this wps.

The new Utility is great and does work with my TTS Zoom Text software.  ZT has much better voices.


Keep Shooting!
BruceHP
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Help BruceHP update his WPS.
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.083 seconds with 14 queries.