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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Text formatting tags revamp?
« previous next »
  • Print
Pages: [1]

Author Topic: Text formatting tags revamp?  (Read 2064 times)

Offline niloc

  • Member
  • *
  • Posts: 2
Text formatting tags revamp?
« on: July 02, 2007, 03:27:31 AM »
Well, I went on a foray into the world of WPS creation, and I was wondering of the plausibility of one of the ideas I had, text load tags, similar to image load tags.  It would turn text from being randomly spaced around a file into a more programing "const string" of sorts in the format of %tl|text id|Text|x|y to be rendered with %tdn where n is the text id.
For example:
Code: [Select]
%tl|a|"Next Song:"|10|150
%?fm<%tda|>
would show "Next Song:" at (10,150) if there's still a song coming up next or
Code: [Select]
%tl|b|%cH:%cM:%cS
%tlb #display on line
%tlb|10|170 #display in specific pixel
could shorten WPS length if certain text was reused often, in this example, a specific formating of text.  It would be a bit confusing with %t1 and such but the %t space isn't very cluttered.
Edit: I didn't know brackets would be edited off.
« Last Edit: July 02, 2007, 08:06:56 PM by niloc »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Text formatting tags revamp?
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.064 seconds with 21 queries.