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
| | |-+  question about wrapping text
« previous next »
  • Print
Pages: [1]

Author Topic: question about wrapping text  (Read 3699 times)

Offline vermillion1

  • Member
  • *
  • Posts: 2
question about wrapping text
« on: October 30, 2006, 12:53:06 PM »
Does anyone know if there is a way to make text wrap instead of scroll for the filename?  I have a number of files with long names and the scrolling that all the themes do makes it way too slow to switch between songs without waiting to hear what they are or for it to scroll, for instance when many filenames have the same prefix in the name that doesn't fit on the screen, so until it scrolls awhile you can't tell what it is at all.

This may not matter to most people but I use my X5 a lot while biking and use the remote, so I use a larger font size than default to make it easy to read, but then not much text fits on the screen before scrolling.  I'd like to make a theme where I can devote maybe 2 or 3 lines on the screen just to the filename so if it has a long name I can see the entire name at once without waiting for the scroll, which can be impractical on a bike since I want to keep my eyes on the road aside from quick glances.

Anyway, does anyone know if this is possible in themes presently?  If there isn't a way to do this in the theme config does anyone think this might be easy to patch into the rockbox code to support?  I may try to do it myself if necessary but I haven't examined the code too closely yet so maybe one of you has an idea where to start with this.

Thanks.
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: question about wrapping text
« Reply #1 on: October 30, 2006, 03:28:46 PM »
Quote from: vermillion1 on October 30, 2006, 12:53:06 PM
Does anyone know if there is a way to make text wrap instead of scroll for the filename?
Currently there is no way that I know of.

Quote
I'd like to make a theme where I can devote maybe 2 or 3 lines on the screen just to the filename so if it has a long name I can see the entire name at once without waiting for the scroll, which can be impractical on a bike since I want to keep my eyes on the road aside from quick glances.
you can filename and the last three parts of the path separately with wps tags. So it should be fairly easy making a wps that shows the filename in one line, the last folder from the path in the next and even two more hierarchies.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: question about wrapping text
« Reply #2 on: October 30, 2006, 04:03:26 PM »
Sadly, the "Right Justify" tag doesn't continue to justify right when the line is longer than the screen is wide.  This:

Code: [Select]
                | <-------- Screen --------->|
Really Long Band|Name - Really Long Song Name|
                | <-------- Screen --------->|

Would be better than this: (What is current)

Code: [Select]
| <------- Screen ------>|
|Really Long Band Name - |Really Long Song Name
| <------- Screen ------>|

Note, if you had your id3 tags set up, you could get the Artist and title tags seperately and put them on their own lines.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline vermillion1

  • Member
  • *
  • Posts: 2
Re: question about wrapping text
« Reply #3 on: October 30, 2006, 07:11:07 PM »
I suspected this would be the case.  Does anyone know where in the rockbox source the parameters used as keywords in the wps files are initialized?  I'd like to try making a patch to support multiple filename keys (fn1,2,3 or fm1,2,3) for a custom wps that has that many lines allocated.  I tried briefly grepping through the source, however I haven't found so far where these parameters are created.  I'll spend some more time looking but does anyone know offhand where in the rockbox source this mechanism is?
Logged

Offline Yotto

  • Artist
  • Member
  • *
  • Posts: 826
  • Every Silver Lining has a Cloud
    • My Blog
Re: question about wrapping text
« Reply #4 on: October 30, 2006, 11:12:34 PM »
(I know nothing about coding Rockbox)

Were I to tackle this, I'd start by looking at one of the patches that modify these tags, like the Album Art or Scrolling Margins patches.  They'll only have the code they need, so you can zero in on the area you're looking for much quicker.
Logged
Pulp Audio Weekly - Where we talk about News, Reviews, and pretty much anything else we feel like discussing.

Offline lowlight

  • Developer
  • Member
  • *
  • Posts: 194
Re: question about wrapping text
« Reply #5 on: October 31, 2006, 03:15:46 AM »
The wps parsing and display code are in apps/gui/gwps*
Logged

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: question about wrapping text
« Reply #6 on: October 31, 2006, 08:36:42 AM »
Wouldn't the better/easier solution be either to (1) rename you files so that the names are not so long or (2) use tag information instead of file name in the WPS?  Either of these is easy to accomplish with any decent tag editing software.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline DetlevSchm

  • Member
  • *
  • Posts: 2
Re: question about wrapping text
« Reply #7 on: November 02, 2006, 03:00:48 AM »
I second the wrapping option.

I do not use any tags because I organize my files in the operating system's file system, where I need to see all information at one glance. All my files look like:

genre - artist - title - comment.ext

this way I am additionally independent of any player's capability to display tag information or not.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: question about wrapping text
« Reply #8 on: November 02, 2006, 03:02:36 AM »
So, you're saying that even when you have better options, you refuse to use them even if it doesn't cost you compatibility with the worse alternatives?
Logged

Offline DetlevSchm

  • Member
  • *
  • Posts: 2
Re: question about wrapping text
« Reply #9 on: November 02, 2006, 03:13:50 AM »
Right. I think it is just a matter of taste.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: question about wrapping text
« Reply #10 on: November 02, 2006, 03:15:12 AM »
Well feel free to code a solution to a problem you're creating for yourself then. :)
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: question about wrapping text
« Reply #11 on: November 02, 2006, 03:29:42 AM »
Quote from: Llorean on November 02, 2006, 03:15:12 AM
Well feel free to code a solution to a problem you're creating for yourself then. :)
LOL ;D

Quote from: DetlevSchm on November 02, 2006, 03:00:48 AM
I do not use any tags because I organize my files in the operating system's file system, where I need to see all information at one glance. All my files look like:

genre - artist - title - comment.ext

this way I am additionally independent of any player's capability to display tag information or not.

But why not tag them as well? MP3Tag could scan your collection, write tags based on your well-defined naming system and then you would have the best of both worlds.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline Febs

  • Member
  • *
  • Posts: 2701
Re: question about wrapping text
« Reply #12 on: November 02, 2006, 08:44:08 AM »
Quote from: DetlevSchm on November 02, 2006, 03:00:48 AM
I second the wrapping option.

I do not use any tags because I organize my files in the operating system's file system, where I need to see all information at one glance.

That's just pure silliness.  Even if you do feel it necessary to have *all* of that information in the filename (rather than organizing your files in some sort of hierarchical structure), nothing prevents you from using tags to display the information on your portable player.
Logged
Rockbox Forum Guidelines
The Rockbox Manual
How to Ask Questions the Smart Way
Please do not send me support questions via PM.

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: question about wrapping text
« Reply #13 on: November 02, 2006, 01:53:30 PM »
Quote from: Febs on November 02, 2006, 08:44:08 AM
That's just pure silliness.  Even if you do feel it necessary to have *all* of that information in the filename (rather than organizing your files in some sort of hierarchical structure), nothing prevents you from using tags to display the information on your portable player.
There is also an additional benefit from using tags: if you happen to loose some file names you can still recover the artist / title information (and a couple more that can get stored in the tags) from the tags. And, something I found to like really much, ReplayGain informations are stored inside of the file's tags. Not to mention the possibility to build up a database like TagCache...

So I don't see any reason why not to use tags.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  question about wrapping text
 

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

Page created in 0.121 seconds with 16 queries.