Support and General Use > Theming and Appearance Customization

Again! The new wps grammar is weird, need hlep! THanks

(1/2) > >>

yzflcyq:
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.

AsusFreak:
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: ---%Fl(12-Espy asian.fnt,2)
%Fl(12-hwxh.fnt,3)
--- End code ---

goes to


--- Code: ---%Fl(2,12-Adobe-Helvetica.fnt)
%Fl(3,12-Nimbus.fnt)
--- End code ---

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


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


--- Code: ---%?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)>
--- End code ---

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

yzflcyq:
Thanks.
But after I correct the wps, it can work but most of information cannot display.
Help!

Bieber:

--- 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.

--- End quote ---

# 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: ---%#
--- End code ---

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

yzflcyq:
Till now I almost handle it.
But have a question, how should I use Playlist Viewer correctly?

Navigation

[0] Message Index

[#] Next page

Go to full version