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:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Again! The new wps grammar is weird, need hlep! THanks
« previous next »
  • Print
Pages: [1]

Author Topic: Again! The new wps grammar is weird, need hlep! THanks  (Read 2514 times)

Offline yzflcyq

  • Member
  • *
  • Posts: 28
  • Purling.Nayuki.Misuzu
Again! The new wps grammar is weird, need hlep! THanks
« on: July 07, 2010, 12:46:16 AM »
I changed this wps from the old grammar into the new grammar, it works, however it doesn't work correctly. Most of texts and informathion cannot display correctly.

Anyone can help me? I found the new grammar weired.

A lot of thanks.
* TheDream.wps (6.77 kB - downloaded 101 times.)
« Last Edit: July 07, 2010, 05:26:54 AM by yzflcyq »
Logged

Offline AsusFreak

  • Member
  • *
  • Posts: 64
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #1 on: July 07, 2010, 02:35:04 AM »
Hi.

Try to use the new theme editor, all parsing errors are shown in red:
http://www.rockbox.org/wiki/ThemeEditor

If I do so, I see an error in your font definition and later on with your equalizer conditional.

Code: [Select]
%Fl(12-Espy asian.fnt,2)
%Fl(12-hwxh.fnt,3)

goes to

Code: [Select]
%Fl(2,12-Adobe-Helvetica.fnt)
%Fl(3,12-Nimbus.fnt)

(I changed the fonts because I did not find them.)


And in lines 69, 73, 77, 81, 85 you have something like this:

Code: [Select]
%?St(eq band 0 gain)<%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)
|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ej)
|%xd(ej)|%xd(ej)|%xd(ej)|%xd(ei)|%xd(ei)|%xd(ei)|%xd(eh)|%xd(eh)|%xd(eh)|%xd(eg)|%xd(eg)|%xd(eg)|%xd(ef)|%xd(ef)|%xd(ef)|%xd(ef)|%xd(ee)|%xd(ee)|%xd(ee)
|%xd(ed)|%xd(ed)|%xd(ed)|%xd(ed)|%xd(ec)|%xd(ec)|%xd(ec)|%xd(ec)|%xd(ec)|%xd(eb)|%xd(eb)|%xd(eb)|%xd(eb)|%xd(eb)|%xd(eb)|%xd(eb)|%xd(eb)|%xd(ea>#)|%xd(ea)
|%xd(ea)|%xd(ea)|%xd(ea)|%xd(ea)|%xd(ea)|%xd(ea)>

There's something wrong with : |%xd(ea>#)|

If you drop ">#" you won't get any parsing errors. Nevertheless I don't know if you will be satisfied with the result - the skin preview is kind of curious.


edit by mc2739: break up long code line
« Last Edit: July 11, 2010, 09:22:49 AM by mc2739 »
Logged

Offline yzflcyq

  • Member
  • *
  • Posts: 28
  • Purling.Nayuki.Misuzu
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #2 on: July 07, 2010, 05:28:01 AM »
Thanks.
But after I correct the wps, it can work but most of information cannot display.
Help!
Logged

Offline Bieber

  • Member
  • *
  • Posts: 12
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #3 on: July 07, 2010, 04:39:54 PM »
Quote from: AsusFreak on July 07, 2010, 02:35:04 AM

There's something wrong with : |%xd(ea>#)|

If you drop ">#" you won't get any parsing errors. Nevertheless I don't know if you will be satisfied with the result - the skin preview is kind of curious.

# starts a comment, which will screw up your line.  If you want to actually insert the character '#' in a theme, escape it like this
Code: [Select]
%#

Oh, and I just noticed that that whole thing is inside an image display tag.  That's probably a mistake on the part of the skin updater
Logged

Offline yzflcyq

  • Member
  • *
  • Posts: 28
  • Purling.Nayuki.Misuzu
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #4 on: July 09, 2010, 04:04:53 AM »
Till now I almost handle it.
But have a question, how should I use Playlist Viewer correctly?
* TheDream.wps (6.79 kB - downloaded 104 times.)
Logged

Offline [Saint]

  • Rockbox Expert
  • Member
  • *
  • Posts: 1662
  • Hayden Pearce
    • Google+
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #5 on: July 11, 2010, 02:25:42 AM »
Quote from: yzflcyq on July 09, 2010, 04:04:53 AM
But have a question, how should I use Playlist Viewer correctly?

It's not in the manual for some reason, http://www.rockbox.org/wiki/CustomWPS describes it.


[St.]
Logged
Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #6 on: July 11, 2010, 08:33:21 AM »
It isn't in the manual as the person that implemented it didn't add it, and those of us that do do manual stuff don't notice everything.  Please open a bug report saying it is missing (same as for any other tags) and I'll get round to it.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline yzflcyq

  • Member
  • *
  • Posts: 28
  • Purling.Nayuki.Misuzu
Re: Again! The new wps grammar is weird, need hlep! THanks
« Reply #7 on: July 11, 2010, 10:51:58 AM »
Well, I've handled it.

To use Playlist Viewer, you must write:
Code: [Select]
%Vp(start,...,...)
but not:
Code: [Select]
%Vp|start|...|...|
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Again! The new wps grammar is weird, need hlep! THanks
 

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

Page created in 0.6 seconds with 14 queries.