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

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

Offline dip

  • Member
  • *
  • Posts: 111
Re: tagnavi.config v2.0 syntax
« Reply #60 on: February 09, 2007, 08:05:36 AM »
Quote from: bascule on February 09, 2007, 05:01:20 AM
I tried:

%format "fmt_title" "%02d. %s" tracknum title %strip = "3" ? tracknum > "0"

in the simulator and it worked perfectly...
I tried the above  in the simulator(copy and pasted it just to be sure not to miss any character) but it does not remove the leading tracknumber in the title list. Is there any option which must be additionally set?

I amended the format string to be sure that this string is used (included the constant word "test" and the artist tag), rebuilt the database and the word "test" and the artist were shown but still also the leading tracknumber.

Any ideas... ???
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: tagnavi.config v2.0 syntax
« Reply #61 on: February 09, 2007, 09:15:30 AM »
Quote from: dip on February 09, 2007, 08:05:36 AM
Quote from: bascule on February 09, 2007, 05:01:20 AM
I tried:

%format "fmt_title" "%02d. %s" tracknum title %strip = "3" ? tracknum > "0"

in the simulator and it worked perfectly...
I tried the above  in the simulator(copy and pasted it just to be sure not to miss any character) but it does not remove the leading tracknumber in the title list. Is there any option which must be additionally set?

It is a limitation (or bug?) that all conditional format strings with the same name must use the same %strip value. So I assume you have another fmt_title in your tagnavi.config file. The workaround is to use %strip="3" in all your format strings, but have some meaningless dummy characters to help you with the sorting.

For example in a similar situation I use:

%format "fmt_chrono_cond_year" "ZZZZ%02d%s" tracknum title %strip = "6" ? year = "0"
%format "fmt_chrono_cond_year" "%04d%02d%04d %s" year tracknum year title %strip = "6"
« Last Edit: February 09, 2007, 09:17:32 AM by roolku »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #62 on: February 09, 2007, 09:21:21 AM »
There is no other option required.

It's a long shot, but do your actual title tags contain the tracknumber?

Scratch that...

I think the problem may be that the default tagnavi.config file contains more than one 'fmt_title' entry as per this snippet from the Wiki:

Quote
It is possible to use the same fmt_identifier with different definitions. The first line where the condition is true is applied, so it is suggested to use an unconditional line as a "catch all" at the end.

Change the line to:

%format "my_fmt" "%02d. %s" tracknum title %strip = "3" ? tracknum > "0"

and then change the format used in the query:

"All Artists"   -> artist -> album  -> title = "my_fmt"

Bother - roolku beat me to it :P

EDIT: But they are slightly different solutions to the same problem. Who goes? You decide!
« Last Edit: February 09, 2007, 09:24:05 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline dip

  • Member
  • *
  • Posts: 111
Re: tagnavi.config v2.0 syntax
« Reply #63 on: February 09, 2007, 09:43:49 AM »
@roolku and bascule:

I had my own format definitions but I had included the %strip parameter only in one of them. So roolku you are right, as soon as I included the %strip in the other one it works! Thanks a lot, I never had found that.


One further question to the rockbox experts  ;D

When I select the format string is not used for displaying the title. Is that a bug or can I change that?
« Last Edit: February 09, 2007, 10:11:56 AM by dip »
Logged

Offline roolku

  • Developer
  • Member
  • *
  • Posts: 350
Re: tagnavi.config v2.0 syntax
« Reply #64 on: February 09, 2007, 09:56:35 AM »
Quote from: dip on February 09, 2007, 09:43:49 AM
@roolku:
The reason that I use the tracknumber but strip it is that I want have the tracks sorted by tracknumber but no to see the tracknumber.

Yes, I realised that - hence my edit. ;)

Quote from: dip on February 09, 2007, 09:43:49 AM
When I select  < All tracks >  the format string is not used for displaying the title. Is that a bug or can I change that?

I think it is intentional as it often doesn't make sense to use it. (i.e. why would you want to listen to the first tracks of all your albums first then followed by all the second tracks etc. But I agree in some situations it would be nice.
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: tagnavi.config v2.0 syntax
« Reply #65 on: February 09, 2007, 10:05:40 AM »
Quote from: roolku on February 09, 2007, 09:56:35 AM
Quote from: dip on February 09, 2007, 09:43:49 AM
When I select  < All tracks >  the format string is not used for displaying the title. Is that a bug or can I change that?

I think it is intentional as it often doesn't make sense to use it. (i.e. why would you want to listen to the first tracks of all your albums first then followed by all the second tracks etc. But I agree in some situations it would be nice.

Here I forgot the sorting. Of course sorting by tracknumbers would not be senseful in this case. What I wanted was the same kind of formatting of the displayed track title (I always use e.g. "title (artist)") to distinguish between different versions of the same song from different artists. I have a lot of jazz standards everybody is singing. Without the artist name I get a long list of e.g. "Summertime"s without being able to distuinguish between them.

It seems to be a problem that for sorting and formatting the same string is used.
« Last Edit: February 09, 2007, 10:10:55 AM by dip »
Logged

Offline dip

  • Member
  • *
  • Posts: 111
Re: tagnavi.config v2.0 syntax
« Reply #66 on: February 11, 2007, 02:31:55 PM »
Wouldn't it be possible to use the format string ONLY for displaying the track titles but not for sorting them when selecting "All Tracks"? In this way one could on the one hand avoid that e.g. all first tracks of all albums are listed first but on the other hand the displayed track titles still include all information (e.g. the artist in parenthesis) and have the desired format.
Logged

Offline jsn5406

  • Member
  • *
  • Posts: 5
Re: tagnavi.config v2.0 syntax
« Reply #67 on: March 14, 2007, 08:18:55 PM »
Hello..
I would like to know how (if possible) to increase the menu limit to say 20...or even better...30 since
I use many similar submenus but on different (fixed) folders.

Thank you
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #68 on: March 15, 2007, 04:26:28 AM »
I don't understand at all what you mean.

AFAIK there is no limit on the ?number/size? of menus, but I really don't know what you are trying to achieve.

Please give more details.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline jsn5406

  • Member
  • *
  • Posts: 5
Re: tagnavi.config v2.0 syntax
« Reply #69 on: March 15, 2007, 10:59:59 AM »
Okay..

I have 7 music folders...and each of these I wish to create custom menus for

Under these menus I intend to include custom searches (approximately 3 per folder)..

I'm ending up with 20 search routines which are quite long (about 18 of which are custom A-Z artist and album searches) but when I put all of these into a tagnavi_custom file, it sort of crashes when I load the database...i.e. it tends to load the very first menu (at the top) in the tagnavi_custom file.

I tried experimenting by removing search routines..I got it to work nicely with about 8 menus but as soon as I put in another menu, it gives problems again..

I'm running the latest jbuild since I use jblack glass themes.

If you need any more information..please let me know
Logged

Offline xlarge

  • Member
  • *
  • Posts: 191
Re: tagnavi.config v2.0 syntax
« Reply #70 on: March 15, 2007, 11:05:14 AM »
Please attach that whole file so we can have a look at it.
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #71 on: March 15, 2007, 11:27:54 AM »
Ok, well I do know there seems to be limit to the total size of tagnavi information that is loaded and I have also come up against missing menus and strange behaviour because the last few lines of the file have not been loaded. Slasher on the forums would probably know exactly what the limit is...

However, what's more interesting is why you have 7 separate music folders and want separate (but apparently similar) database navigation functionality for each...

I'm sure with a bit of effort (and knowing exactly what differentiation you wish to have between them) that a solution can be found without busting the filesize limit ;)

Quote from: xlarge on March 15, 2007, 11:05:14 AM
Please attach that whole file so we can have a look at it.
Yes, do that, but as an attachment, please, not as text - I don't want the forum to get broken as well :P
« Last Edit: March 15, 2007, 11:31:07 AM by bascule »
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline jsn5406

  • Member
  • *
  • Posts: 5
Re: tagnavi.config v2.0 syntax
« Reply #72 on: March 15, 2007, 12:52:12 PM »
Okay I have included my tagnavi with color codes for easier viewing in wordpad (as an rtf)...since its kind of long...

You will be able to see the 7 folders I have, which are basically named for their genre...but each folder contains alot of songs (singles has over 4000)....perhaps its bad form...i don't know lol...but it seems to work for me

There is a slight problem in that each folder is unique...and in some cases it is simply impractical to do a specific search in a folder due to the mass unavailability of that specific tag. This is why you may find album/artist searches in one folder, and artist/title/year searches in another folder.

Also, I have another folder solely with albums but these are nicely arranged where each album has its own folder...so I prefer to use the file browser on this folder rather than the database. So far this is the only folder I can get to use efficiently with Rockbox.

I did read that, promisingly, there is a way to edit tagtree.h to allow more of tagnavi to load...but I am less that a noob when it comes to coding and compiling...so I should think this is a last resort

Let me know what you think

[attachment deleted by admin, too old]
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: tagnavi.config v2.0 syntax
« Reply #73 on: March 15, 2007, 01:22:45 PM »
That's certainly an interesting file ;D

I would say that your best bet would be to tag your files somehow with the category types that you have currently split out into directories.

The obvious one would be genre, but you may already have genres filled, in which case you could use the newly-available comment field.

Once this is done, then the searches you have could be generic (i.e., only one of each), but pre-filtered by the category or using the category as a conditional.

E.g.,

"Artist by Category" comment -> artist -> title = "blah"

Or, for the more complicated A-Z stuff, a separate menu per category

E.g.,
"Dancehall A-Z" ==> "dancehall"

%menu_start "dancehall" "Dancehall A-Z"
"A"   -> artist ? artist ^ "A" & comment = "dancehall" -> album  -> title = "f_browse"
"B"   -> artist ? artist ^ "B" & comment = "dancehall" -> album  -> title = "f_browse"

Somehow you need to trim down your unfeasibly large tagnavi file and this seems the easiest way.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline jsn5406

  • Member
  • *
  • Posts: 5
Re: tagnavi.config v2.0 syntax
« Reply #74 on: March 15, 2007, 03:08:44 PM »
I understand your suggestion and it is quite useful..

the problem is that I would like all of my searches (artist/title/album) to be alphabetical, and this means i'll still have the long versions of each procedure..

It would have been cool if I could have a line like:

%menu_start "test" "Browse Artists"
"Artist by Directory" -> comment ==> "alpha"

and then this would call a generic alphabetical menu...but for now I shall have to find other ways of condensing the file...

do you suppose referencing a procedure from another with a switch would be implemented any time soon?

alternatively I have found that I can have one generic A-Z menu which will request the comment such as in this line:

"A" -> comment -> artist ? artist ^ "a" -> title =...
"B" -> comment -> artist ? artist ^ "b" -> title =...

but this would mean choosing the comment after every letter selection and this is neither efficient nor aesthetically pleasing...

need another cup of coffee...
Logged

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

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

Page created in 0.146 seconds with 21 queries.