91
Audio Playback, Database and Playlists / Re: %strip doesn't do anything in my tagnavi format declaration
« Last post by bahus on July 01, 2025, 04:30:54 AM »Wouldn't it make more sense if both were 10 or both were 13 (or any number that is the same for both)?
It depends on what you want to strip.
I've just added 3 addtional chars to strip to remove separator " • " after album name. Just as example to your original string. But yeah it can be simplified to use the same number by removing separator:
Code: [Select]
%format "fmt_title2" "%-10s%02d.%s - %02d:%02d" album tracknum title Lm Ls %strip = "10"
And if you want to strip also track number (so removing "%-10s%02d.") it's again different numbers:
Code: [Select]
%format "fmt_title2" "%-10s%02d.%s - %02d:%02d" album tracknum title Lm Ls %strip = "13"
92
Audio Playback, Database and Playlists / Re: %strip doesn't do anything in my tagnavi format declaration
« Last post by iPodVT on July 01, 2025, 03:52:58 AM »First and foremost, thank you very much for your reply. I really appreciate it.
Yes, I saw that, but I don't believe that those limitations apply in my situation because I have only one declaration named "fmt_title2" and there are no conditionals in that declaration (or at least nothing that I recognize as a conditional). In any case, with my declaration as it stands, $strip does nothing. But if I reduce the number of tags to four or fewer, %strip works. [edit: additional] So I will live without including Lm and Ls (mins:secs).
This is the magic that I've been looking for - I'm now able to make my modified Title search work exactly the way I'd originally hoped. Thank you, thank you, thank you!
But did you mean to combine %-10s with %strip = "13"? Wouldn't it make more sense if both were 10 or both were 13 (or any number that is the same for both)?
In any case, I apologize for not finding this all in the documentation and figuring it out for myself.
I've already explained limitations of strip here:
https://forums.rockbox.org/index.php/topic,54799.msg255841.html#msg255841
Yes, I saw that, but I don't believe that those limitations apply in my situation because I have only one declaration named "fmt_title2" and there are no conditionals in that declaration (or at least nothing that I recognize as a conditional). In any case, with my declaration as it stands, $strip does nothing. But if I reduce the number of tags to four or fewer, %strip works. [edit: additional] So I will live without including Lm and Ls (mins:secs).
And regarding album name length. You can make it fixed length string. For example, %-10s limits string to 10 chars, padding with spaces on the right if needed:Code: [Select]%format "fmt_title2" "%-10s • %02d.%s - %02d:%02d" album tracknum title Lm Ls %strip = "13"
This is the magic that I've been looking for - I'm now able to make my modified Title search work exactly the way I'd originally hoped. Thank you, thank you, thank you!
But did you mean to combine %-10s with %strip = "13"? Wouldn't it make more sense if both were 10 or both were 13 (or any number that is the same for both)?
In any case, I apologize for not finding this all in the documentation and figuring it out for myself.
93
Audio Playback, Database and Playlists / Re: %strip doesn't do anything in my tagnavi format declaration
« Last post by bahus on July 01, 2025, 02:11:18 AM »I've already explained limitations of strip here maybe it's something related:
https://forums.rockbox.org/index.php/topic,54799.msg255841.html#msg255841
And regarding album name length. You can make it fixed length string. For example, %-10s limits string to 10 chars, padding with spaces on the right if needed:
https://forums.rockbox.org/index.php/topic,54799.msg255841.html#msg255841
And regarding album name length. You can make it fixed length string. For example, %-10s limits string to 10 chars, padding with spaces on the right if needed:
Code: [Select]
%format "fmt_title2" "%-10s • %02d.%s - %02d:%02d" album tracknum title Lm Ls %strip = "13"
94
Audio Playback, Database and Playlists / Re: %strip doesn't do anything in my tagnavi format declaration
« Last post by iPodVT on June 30, 2025, 07:51:05 PM »I found an old forum post from 2008 [https://forums.rockbox.org/index.php/topic,10771.msg139789.html#msg139789] that states that there might be a constant MAX_TAGS in the code that limits a declaration to having a maximum of five tags. My declaration has five tags and they all get displayed properly without %strip, so it should be okay. But I removed the last tag (:%02d and Ls) and now %strip is working, so four tags seems to be the limit for %strip (and also %sort and %limit) to work.
I can live without the Lm:Ls at the end of each line in the list of hits. But what I really want now is to know if/how I can feed the length of the album string to %strip - that would make my life complete (for the rest of today, at least...).
Thanks.
I can live without the Lm:Ls at the end of each line in the list of hits. But what I really want now is to know if/how I can feed the length of the album string to %strip - that would make my life complete (for the rest of today, at least...).
Thanks.
95
Audio Playback, Database and Playlists / %strip doesn't do anything in my tagnavi format declaration
« Last post by iPodVT on June 30, 2025, 07:06:34 PM »As part of my effort to tweak and refine my Database->Search->Title mod, I tried applying %strip to my tagnavi format declaration to see if/how I might be able to use it, with the hope that ultimately I might somehow be able to feed it the length of the album string. But it doesn't seem to have any effect at all in the following declaration:
%format "fmt_title2" "%s • %02d.%s - %02d:%02d" album tracknum title Lm Ls %strip = "6"
Am I doing something incorrectly?
Thanks.
%format "fmt_title2" "%s • %02d.%s - %02d:%02d" album tracknum title Lm Ls %strip = "6"
Am I doing something incorrectly?
Thanks.
96
Audio Playback, Database and Playlists / Re: Alternate sort for the list of hits from Database->Search->Title?
« Last post by iPodVT on June 30, 2025, 09:40:00 AM »I'm still curious to know whether or not it's possible (and if so, how?) to code the format string to do the primary sort on album without having the albums included in the displayed list of hits.
Thanks.
Thanks.
97
Starting Development and Compiling / Re: iRiver H120 firmware with RTC for SD card
« Last post by bahus on June 30, 2025, 05:58:17 AM »I've compiled iriver h120 rtc mod
https://mega.nz/file/ZTBGVQxZ#ZXD57H9vbEywaVIfdIvw7Hj3cyLPb7LNEukfFN9mjhw
Code: [Select]
../tools/configure --target=10 --type=AR
based on current master:https://mega.nz/file/ZTBGVQxZ#ZXD57H9vbEywaVIfdIvw7Hj3cyLPb7LNEukfFN9mjhw
98
Plugins/Viewers / Searching for companions: Running llama.c on Ipod Classic tinystories260k.bin
« Last post by gum1 on June 30, 2025, 04:23:23 AM »Hey searching for a companion to get https://github.com/karpathy/llama2.c running on the Ipod classic. DM me if your interested in hacking around.
99
Audio Playback, Database and Playlists / Re: Alternate sort for the list of hits from Database->Search->Title?
« Last post by iPodVT on June 29, 2025, 11:51:58 PM »I figured out a near solution that I think is actually probably better than what I was trying to accomplish.
The new item in my Search menu is tentatively named "Title (album • title)", with the code
"Title (album • title)" -> title = "fmt_title2" ? title ~ ""
It's the same code as the original Rockbox "Title" item except for the new name and the reference to the new formatting string.
The new formatting string (which does the new magic that I need) is
%format "fmt_title2" "%s • %02d.%s" album tracknum title
which produces a list of albums and titles with tracknums, primarily sorted by album and secondarily sorted by tracknum. By including the album name it is less ambiguous than what I was originally shooting for, and for my purposes the sorting is more logical and useful than the original Rockbox Title search. I will use it when searching for things like an Op. (Opus) number or K (Köchel) number that will produce a number of hits - typically 3 or 4 per album in the list - that would be more logically ordered by album first and then tracknum rather than solely by track number (which is what the original Rockbox Title search does).
(As usual, I made a misstatement in my original post where I said I was looking for primary sorting by album and secondary sorting by title. It should have been secondary sorting by tracknum.)
The new item in my Search menu is tentatively named "Title (album • title)", with the code
"Title (album • title)" -> title = "fmt_title2" ? title ~ ""
It's the same code as the original Rockbox "Title" item except for the new name and the reference to the new formatting string.
The new formatting string (which does the new magic that I need) is
%format "fmt_title2" "%s • %02d.%s" album tracknum title
which produces a list of albums and titles with tracknums, primarily sorted by album and secondarily sorted by tracknum. By including the album name it is less ambiguous than what I was originally shooting for, and for my purposes the sorting is more logical and useful than the original Rockbox Title search. I will use it when searching for things like an Op. (Opus) number or K (Köchel) number that will produce a number of hits - typically 3 or 4 per album in the list - that would be more logically ordered by album first and then tracknum rather than solely by track number (which is what the original Rockbox Title search does).
(As usual, I made a misstatement in my original post where I said I was looking for primary sorting by album and secondary sorting by title. It should have been secondary sorting by tracknum.)
100
Starting Development and Compiling / Re: How to modify rockbox version displayed during boot / in menu?
« Last post by speachy on June 29, 2025, 10:05:55 PM »I tried with a step by step help by chatGPT.
Don't. Just... don't.