Rockbox General > Rockbox General Discussion
tagnavi logical OR?
lexicon:
Hi All-
Does tagnavi.config support an OR operator?
Building on this great tagnavi_custom.config that you can see here:
#! rockbox/tagbrowser/2.0
# by bascule from roolku v.0.1
#from http://forums.rockbox.org/index.php?topic=6661.30
I want to be able to do this:
"A" -> artist ? artist ^ "A" OR artist ^ "The A" -> album -> title = "f_browse"
...B OR The B
...C OR The C
etc.
so that "The" is effectively ignored and grouped accordingly.
i.e.
Artist Menu, Choose "C", and be presented with:
Cardigans
The Clash
Corb Lund
There is an & operator, but I don't see an OR. If not, I believe it would be a valid (and easy) feature request - any comments?
There used to be an "ignore the" patch, but I can't find it, and I assume it would be way out of sync with all the recent upadtes these last few months.
Thanks.
roolku:
--- Quote from: lexicon on December 21, 2006, 07:26:37 PM ---Does tagnavi.config support an OR operator?
--- End quote ---
No.
--- Quote ---There is an & operator, but I don't see an OR. If not, I believe it would be a valid (and easy) feature request - any comments?
--- End quote ---
With the way the engine is written (incrementally reducing the result set) it is very difficult to add an OR operator. However it is a very resource efficient implementation, so I don't think it is likely to be changed.
lexicon:
ok, thanks for the answer. too bad, but I understand.
p.s. Thanks for the great config file, too!
bascule:
--- Quote from: lexicon on December 21, 2006, 08:42:40 PM ---p.s. Thanks for the great config file, too!
--- End quote ---
No problem ;D
I wrote the config file that way specifically because there is no OR operator. The only way is my (very slightly clunky) grouping of all 'The...' artists together. It works for me, though, and I'm glad it mostly works for you.
lexicon:
I have an idea... roolku ;) ...
I see you made a patch that got accepted @ (one_of).
What about a new operator "begins_with_one_of"?
"A" -> artist ? artist $ "A|The A" -> album -> title = "f_browse"
Then tagnavi could easily handle the "The " issue, or "A ", or similar for any other language, too (provided the first-level A,B,C...menus were used like you guys did).
Thoughts?
Navigation
[0] Message Index
[#] Next page
Go to full version