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
translations translations
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
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  tagnavi.config v2.0 syntax
« previous next »
  • Print
Pages: 1 2 [3] 4 5 ... 7

Author Topic: tagnavi.config v2.0 syntax  (Read 53705 times)

Offline Adam

  • Developer
  • Member
  • *
  • Posts: 48
    • Halley's Comet Software
Re: tagnavi.config v2.0 syntax
« Reply #30 on: October 31, 2006, 02:41:52 AM »
I've been using exactly the ones posted by roolku in this thread, all of them...
Logged

Offline Slasher

  • Developer
  • Member
  • *
  • Posts: 35
Re: tagnavi.config v2.0 syntax
« Reply #31 on: October 31, 2006, 03:45:52 AM »
For some reason those files have one extra empty line after every real line (maybe some windows issue), so you need to remove those extra empty lines (but be sure not to remove too much).
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 349
Re: tagnavi.config v2.0 syntax
« Reply #32 on: October 31, 2006, 05:44:56 AM »
Quote from: Adam on October 31, 2006, 12:41:54 AM
I must be doing something rather stupid, I can't get any of the tagnavi_custom.config files to work with my bleeding edge build.  I had used one of the earlier ones, around when this thread started, has something broken?
I end up with either the default menu, or no menu (if I run dos2unix on the tagnavi_custom.config).

The syntax has changed several times, so only v0.4 (posting 21) would work. The files do have cr-lf (DOS) linefeeds, but work fine for me regardless. It should simply be a matter of removing the ".txt" from the end of the file and putting it into the .rockbox folder.
Logged

Offline Adam

  • Developer
  • Member
  • *
  • Posts: 48
    • Halley's Comet Software
Re: tagnavi.config v2.0 syntax
« Reply #33 on: October 31, 2006, 11:09:45 AM »
Quote from: Slasher on October 31, 2006, 03:45:52 AM
For some reason those files have one extra empty line after every real line (maybe some windows issue), so you need to remove those extra empty lines (but be sure not to remove too much).
Ah, thank you, that seems to have solved it.  I suppose the problem with this was that a blank line signifies the end of a menu, so all the menus ended immediately.
Logged

Offline lenny

  • Member
  • *
  • Posts: 189
Re: tagnavi.config v2.0 syntax
« Reply #34 on: November 01, 2006, 02:06:02 AM »
Can one have a format tag modify a level that is not the last one? For instance:
Code: [Select]
%format "fmt_strip_trk"        "%02d%s" tracknum title %strip = "2"

%format "fmt_year_album" "%s %s" year album

%menu_start "artist_initial" "artist initial"
"A"   -> artist ? artist ^ "A" -> album = "fmt_year_album"  -> title = "fmt_strip_trk"

etc...
I also tried this:
Code: [Select]
"C"   -> artist ? artist ^ "C" -> year album  -> title = "fmt_strip_trk"when it is all done, the fmt_strip_trk works, but the frmt_year_album has no effect. Is it possible? Am I doing it the right way?
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #35 on: November 01, 2006, 03:35:01 AM »
I don't think this is possible, sadly.

I would like to be able to list all albums in a similar way to yours but, reading the Wiki, it appears that the formatting only applies to the Title attribute and that the Title must be the last level displayed...

Quote from: http://www.rockbox.org/twiki/bin/view/Main/TagCache#tagnavi_config_v2_0_Syntax
Code: [Select]

influences the display of the title list (last level in the browser)

« Last Edit: November 01, 2006, 03:39:35 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 349
Re: tagnavi.config v2.0 syntax
« Reply #36 on: November 01, 2006, 08:10:47 AM »
Quote from: bascule on November 01, 2006, 03:35:01 AM
I don't think this is possible, sadly.

I would like something similar as well, but unfortunately the way you describe has a conceptual problem. You assume that all tracks from the same album have the same year tag, which may not be the case. For maximum flexibility we would really want an equivalent to the SQL 'group by'. But I can't see how this can be implemented efficiently for tagcache.
Logged

Offline athatai

  • Member
  • *
  • Posts: 9
Re: tagnavi.config v2.0 syntax
« Reply #37 on: November 01, 2006, 06:21:40 PM »
Hi all,

Thanks so much for the tagnavi_config file. I find it very useful. I have a question regarding the format of the tag.

 I would like to preserve the order of songs as I listen a lot to live albums. For example, Dave Matthews Live in NY is a 3 CD set. When I choose Dave Matthews and select  the playlist is sorted by "Title".

If  that is not possible,  does " allow customization through tagnavi syntax?  I can then display soemthing like Album-Track Number-Title to preserve the order.

thanks
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 349
Re: tagnavi.config v2.0 syntax
« Reply #38 on: November 02, 2006, 07:54:03 AM »
Quote from: athatai on November 01, 2006, 06:21:40 PM
Thanks so much for the tagnavi_config file. I find it very useful. I have a question regarding the format of the tag.

I am afraid, is always sorted by title.

Not always what one wants, but I can't think of a good solution on how to implement it.

It would be good if auto-change directory worked for the virtual folders in tag cache.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #39 on: November 02, 2006, 08:32:05 AM »
Quote from: athatai on November 01, 2006, 06:21:40 PM
I would like to preserve the order of songs as I listen a lot to live albums. For example, Dave Matthews Live in NY is a 3 CD set. When I choose Dave Matthews and select < All_Tracks >  the playlist is sorted by "Title".

If  that is not possible,  does "< All_Tracks > allow customization through tagnavi syntax?  I can then display soemthing like Album-Track Number-Title to preserve the order.

roolku is correct, the < All Tracks > format is unmodifiable, but you should be able to do this:

%format "fmt_long" "%s-%02d-%-%s" album tracknum title
"Multi-album Artist" -> artist -> title = "fmt_long"

I've tested this on my H120 and it works a treat :)
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline athatai

  • Member
  • *
  • Posts: 9
Re: tagnavi.config v2.0 syntax
« Reply #40 on: November 02, 2006, 10:36:34 AM »
Bascule,

Thanks so much. Just what I wanted.

Logged

Offline evilnick

  • Rockbox Expert
  • Member
  • *
  • Posts: 430
Re: tagnavi.config v2.0 syntax
« Reply #41 on: November 14, 2006, 12:06:23 PM »
Hi All,

Just wondering if there is a way yet of asking tagcache for all the artists either beginning with A or The A... in one line. I've tried:

Code: [Select]
"A"   -> artist ? artist ^ "A" & artist ^ "The A" -> album  -> title = "fmt_strip_trk"
But this means: Artist that begins with "A" AND "The A" so returns no results

and also

Code: [Select]
"A"   -> artist ? artist ^ "A" | artist ^ "The A" -> album  -> title = "fmt_strip_trk"
Which *should* mean: Artist that begins with "A" OR "The A" but this doesn't seem to work properly either.

Any advice?
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 349
Re: tagnavi.config v2.0 syntax
« Reply #42 on: November 14, 2006, 01:22:21 PM »
Quote from: evilnick on November 14, 2006, 12:06:23 PM
Just wondering if there is a way yet of asking tagcache for all the artists either beginning with A or The A... in one line.

Not that I can think of. One could attempt something along the lines of:

"A" -> artist ? artist !^ "B" & artist !^ "C" & artist !^ "D" & artist !^ "E" & .... & artist !^ "The B" & artist !^ "The C" & artist !^ "The D" & artist !^ "The E" & .... -> title

but would run into the limit of 32 fairly quickly.

The following patch modifies the one_of (@) so that it only compares the initial portion of the string, so it would be possible to use something like:

"A" -> artist ?  artist @ "A|The A" -> title = "fmt_the"

But the sorting would be so that all the "The" artists end up at the bottom. Also you would need to take care of the letter T.

"T" -> artist ?  artist ^ "T" & artist !^ "The A" & artist !^ "The B" & artist !^ "The C" -> title = "fmt_the"

All very messy. It really needs a solution outside tag cache that also takes care of the other articles like a, an, der, die, das, le, la, les etc.


[attachment deleted by admin, too old]
Logged

Offline Brownsound

  • Member
  • *
  • Posts: 4
Re: tagnavi.config v2.0 syntax
« Reply #43 on: December 10, 2006, 09:39:17 PM »
Just updated to the bleeding edge build and none of these custom tagnavi's seem to work for me, I tried V0.4 and all I get is a blank screen, any ideas? if I use the one in the first post, i see the menu but only the title selection displays anything. I have a 5G with tonight bleeding edge. Thanks.

Edit:
I just tried the fix to delete some blank lines  ??? it didn't do anything, in all honesty though there's a good chance I did something wrong. I also tried clearing the settings, still no dice.
« Last Edit: December 10, 2006, 09:44:24 PM by Brownsound »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #44 on: December 11, 2006, 03:24:57 AM »
A lot of changes have happened to the syntax since this thread was started. Try the attached one to see if it will work (it should do!).

Download and rename it to exactly tagnavi_custom.config which will require stripping the .txt and maybe any other stuff windows adds to the filename while downloading. Also watch out that Windows does not hide the extension to fool you ;)

Copy the file to your .rockbox folder on your player and reboot.

EDIT: config file re-uploaded as it was broken (BOM removed). Use the second one in the list, as I cannot delete my original attachment :(

[attachment deleted by admin, too old]
« Last Edit: January 25, 2007, 10:07:34 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

  • Print
Pages: 1 2 [3] 4 5 ... 7
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox General
| |-+  Rockbox General Discussion
| | |-+  tagnavi.config v2.0 syntax
 

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

Page created in 0.208 seconds with 20 queries.