HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: foosion on 2008-07-07 09:30:31

Title: Text Display (foo_textdisplay)
Post by: foosion on 2008-07-07 09:30:31
Test Display is a UI Element for use with the Default User Interface version 0.9.5 or compatible. It displays text that is generated through title formatting from the playing track or the selected track. The component defaults to the font and colors that are configured in the Default User Interface but allows the user to override them when desired.

The number of options has been kept small for several reasons. Most importantly, it makes it easy even for new users to modify the settings, instead of being limited to copying other users' settings without really understanding how they work.

Documentation

Please refer to the help file that is included with the component.

Screenshots

Displaying title, album, and artist:
(http://foosion.foobar2000.org/0.9.5/foo_textdisplay-1.png)

Displaying artist, title, and lyrics:
(http://foosion.foobar2000.org/0.9.5/foo_textdisplay-2.png)

Download

foo_textdisplay can be downloaded from my components page (http://foosion.foobar2000.org/components/).
Title: Text Display (foo_textdisplay)
Post by: dubpistol on 2008-07-07 10:26:04
That's really great. Seems to work perfect.

Thank you foosion.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2008-07-07 12:19:17
It works almost perfect! 

An usability issue: If you use text display for selected track you are not able to click inside of text display without loosing selection (in selection properties the selection is not lost) - so you can't use f.e. the "copy text" function.

Thanks for the component! 


EDIT:


Another issue:

Go to layout tab of settings, check box for custom colour, change the colour: you will see in the UiElement the new custom colour. Then uncheck the box: you will see in UiElement the default colour. So far so good! But if you then check the box again the text display will keep the default colour although in the layout tab the custom color is choosen.
Title: Text Display (foo_textdisplay)
Post by: cartman(2vd) on 2008-07-07 16:54:33
thank you foosion... missing lyrics panel is NO MORE... thanks so much
Title: Text Display (foo_textdisplay)
Post by: smkk on 2008-07-07 17:26:41
Neat, thanks for this. Lyrics finally!

A little bug though, when i disable "Prefer playing track" it would only show "Nothing selected" even if there was actually a track selected. Restarting foobar fixed it though.
Title: Text Display (foo_textdisplay)
Post by: tpijag on 2008-07-07 18:29:54
The number of options has been kept small for several reasons. Most importantly, it makes it easy even for new users to modify the settings, instead of being limited to copying other users' settings without really understanding how they work.


Thank you for this work.  When I first started to attempt to organize my music it was overwhelming - tags here, tags there, where are my tags, why is that in my tag....omg, my tags are missing!!!

This might not of been your reason for development, but I see this as a major assistant to troubleshoot tagging problems. A user can add a "troubleshooting" instance of this component in a tab for example. Then add a list of fields in a definition type of format -  by escaping the field name. A couple of fields all the way to every one.

'%fieldname%' = %fieldname%  produces something like this


%title% = The Race Is On
%artist% = Grateful Dead
%album% = 1973-06-10 R.F.K. Stadium
%venue% = Washington, DC
%DeadBase% = : 021
%length% = 3:12
%path% = F:\@Music\Dead\1973-06-10 R.F.K. Stadium\109-The Race Is On.mp3

Might not be for everyone, but I find it a handy way to see just what values are held in a tag without having to change other portions of my setup that I would prefer not to fool with. It also is an easy way to test in real time titleformating syntax.


ymmv

terry
Title: Text Display (foo_textdisplay)
Post by: grimes on 2008-07-07 18:48:45
Thank you foosion! Very nice plugin. I needed it sooo much.
Small bug detected: Sometimes when I change song in playlist, foo_textdisplay is'nt updated with new song.
Title: Text Display (foo_textdisplay)
Post by: _oao on 2008-07-07 18:58:59
I was missing lyrics in the default UI and this plugin works great with "foo_lyricsgrabber". Thanks!!!

Small bug detected: Sometimes when I change song in playlist, foo_textdisplay is'nt updated with new song.

I also noticed this...
Title: Text Display (foo_textdisplay)
Post by: foosion on 2008-07-07 19:50:06
An usability issue: If you use text display for selected track you are not able to click inside of text display without loosing selection (in selection properties the selection is not lost) - so you can't use f.e. the "copy text" function.
I'll look into it.

Go to layout tab of settings, check box for custom colour, change the colour: you will see in the UiElement the new custom colour. Then uncheck the box: you will see in UiElement the default colour. So far so good! But if you then check the box again the text display will keep the default colour although in the layout tab the custom color is choosen.
Thanks for reporting.

A little bug though, when i disable "Prefer playing track" it would only show "Nothing selected" even if there was actually a track selected. Restarting foobar fixed it though.
Are you sure that this isn't the same thing that g-stankovic reported? Does it display the correct track if you click in the playlist after disabling that option?

Small bug detected: Sometimes when I change song in playlist, foo_textdisplay is'nt updated with new song.
Is the selection properties element updated when that happens? Note that when you select multiple tracks, the text display element will only display the first one, no matter which one has the focus in the playlist.
Title: Text Display (foo_textdisplay)
Post by: grimes on 2008-07-07 19:59:46
Quote
Is the selection properties element updated when that happens? Note that when you select multiple tracks, the text display element will only display the first one, no matter which one has the focus in the playlist.

1.The selection properties element is updated!!
2.Only one track is selected

EDIT: foo_textdisplay is again updated by clicking "prefer playing track" twice.

(http://www.abload.de/thumb/greenshot_2008-07-07opc.jpg) (http://www.abload.de/image.php?img=greenshot_2008-07-07opc.jpg)
Title: Text Display (foo_textdisplay)
Post by: foosion on 2008-07-07 22:20:19
foo_textdisplay 1.0 RC 2

An usability issue: If you use text display for selected track you are not able to click inside of text display without loosing selection (in selection properties the selection is not lost) - so you can't use f.e. the "copy text" function.
It should now behave like the selection properties element with regards to preserving the selection when it gets the focus.

Go to layout tab of settings, check box for custom colour, change the colour: you will see in the UiElement the new custom colour. Then uncheck the box: you will see in UiElement the default colour. So far so good! But if you then check the box again the text display will keep the default colour although in the layout tab the custom color is choosen.
Fixed.


I haven't been able to reproduce the other reported defects so far.
Title: Text Display (foo_textdisplay)
Post by: cartman(2vd) on 2008-07-07 23:32:17
I haven't been able to reproduce the other reported defects so far.


this works for me:
got "prefer playing" checked from foobar start
click song without lyrics: text panel shows corect output
grab lyrcis -> text panel failed to update itself on tag change
and then its just chaotic clicking and hardly getting panel to show the correct output

after foobar restart everything is correct... seems to me like tha update tags during playback somehow did this
Title: Text Display (foo_textdisplay)
Post by: smkk on 2008-07-08 00:15:25
A little bug though, when i disable "Prefer playing track" it would only show "Nothing selected" even if there was actually a track selected. Restarting foobar fixed it though.
Are you sure that this isn't the same thing that g-stankovic reported? Does it display the correct track if you click in the playlist after disabling that option?

It seems to be different from what g-stankovic reported since there is no selection display i could lose to begin with.
I can reproduce it now though. I have textdisplay in a tab in the upper left corner together with album art display.
If i start foobar with the textdisplay tab being selected it will work just fine, but if the album art tab was selected at startup then textdisplay wont display anything except "Nothing selected".
(http://img337.imageshack.us/img337/2367/foo2in9.th.jpg) (http://img337.imageshack.us/my.php?image=foo2in9.jpg)
After enabling "Prefer playing track" it will display the lyrics for the playing track but still not for the selected track if i disable it again. Only restarting foobar seems to fix it.
(http://img233.imageshack.us/img233/9049/foo3io1.th.jpg) (http://img233.imageshack.us/my.php?image=foo3io1.jpg)

btw:
Any chance to make the line distance a bigger or give users control of it? It really is hard to read.
Title: Text Display (foo_textdisplay)
Post by: Olaf on 2008-07-08 07:54:51
Thanks foosion for this great plugin.

Still not tested RC2 (I can't open the archive, downloaded with FF3 and IE7), but with RC1 if you have more than 1 Text Display in your layout, they don't seem to refresh correctly on track change.
Title: Text Display (foo_textdisplay)
Post by: DarKobra on 2008-07-08 14:54:19
Very nice, I am enjoying this a great deal!
Title: Text Display (foo_textdisplay)
Post by: kanak on 2008-07-08 15:05:22
Still not tested RC2 (I can't open the archive, downloaded with FF3 and IE7), but with RC1 if you have more than 1 Text Display in your layout, they don't seem to refresh correctly on track change.


Something is definitely weird with that archive. I managed to open it with Tugzip.
Title: Text Display (foo_textdisplay)
Post by: foosion on 2008-07-08 18:59:58
foo_textdisplay 1.0 RC 3

Fixed a bug where the text display element would get stuck with the selected track - or no track, resulting in it displaying "Nothing selected". The bug was triggered when the element was hidden after it had been shown for the first time.

About the RC 2 Zip archive: I have no problem opening the archive with the Zip viewer in Windows XP, WinRAR or 7-Zip. Also, it was created exactly the same way as the one for RC 1. If you cannot open, please tell me which program you use.
Title: Text Display (foo_textdisplay)
Post by: Mar2zz on 2008-07-08 19:11:11
Thx foosion. Great plugin. I use it for lyrics and it's working great.
Title: Text Display (foo_textdisplay)
Post by: Olaf on 2008-07-08 19:47:59
About the RC 2 Zip archive: I have no problem opening the archive with the Zip viewer in Windows XP, WinRAR or 7-Zip. Also, it was created exactly the same way as the one for RC 1. If you cannot open, please tell me which program you use.

It was with 7-Zip, but the archive was correct after redownloading some hours later. Maybe a temporary server problem.

Anyway, RC3 fix the bug I noticed, so it's all perfect now. Thanks.
Title: Text Display (foo_textdisplay)
Post by: flasken on 2008-07-09 15:52:36
Incredible. Finally makes default ui completely usable.

After years of experimenting with coloumns and panels, i have never loved my ui this much.

(http://img299.imageshack.us/img299/2523/defaultuijz1.th.jpg) (http://img299.imageshack.us/img299/2523/defaultuijz1.jpg)

Moderation: Replaced large image by thumbnail.
Title: Text Display (foo_textdisplay)
Post by: randal1013 on 2008-07-09 17:40:06
thank you for this text display, i have been wishing for something like this for a while now. good work.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2008-07-09 18:20:47
Hello foosion!

All the three selection viewers for the Defaul tUi are using a "fall back": the playing track is displayed if nothing is selected - in trackdisplay's "prefer playing track" mode the selection is displayed if there is no playback. On one side i experienced in the beginning usage of the new Default ui the first type of fallback as confusing and somehow it breaks the logic of showing what is selected as it also can show a non-selected track. On the other side keeping consistent behaviour of the same type of UiElements is a good reason for textdisplay to do the same like albumart viewer and selection Properties.

With this new component as the only one wich uses so far a mode for displaying the playing instead of the selected track the danger of confusion even increases. I mean: I am now experementing with two different layouts to see wich fits at best to my needs. One layout uses a tabstack with two tabs whereby one uses a textdisplay in "prefer playing track" mode in a tab called "now playing" and the other tab called "selection" should display the information/lyrics/whatever about selected track. In the other layout i put one trackdisplay leftscreened and the other one rightscreened. In both cases i can't use the trackdisplay by just trusting my eyes - i always have to keep in mind the existence of the "fall back" logic and also the state of the player (is there playback/is there something selected or not?). In bothmodes(EDIT: If there is playback or not) these two displays can show the same in certain situations.It may seem that i am a little bit pedantic but it is really irritating me sometimes and i can imagine that new users will also be irritated.

The solution i found for me to avoid fall back in the "prefer playing track" mode is to use an if-condition: $if(%isplaying%,<text>,no playback). But if you are a user who likes to use just one textdisplay and who likes to switch between the two modes by context menu (unlike me) but also wishes a clear results (like me) you are forced to use as format: $if(%isplaying%,<text>,<same text again>) wich is unnecessaraly complicated.

Lyx's fear (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=62519&view=findpost&p=558024) that a now playing mode could cause confusion seems to be justified. But i think that it also could be reduced to a minimum by dispensing the fall-back-method or respectively having a special mode for that: If you take a look in musicmusic's implementation of the tracking modes for ColumnsUi's album art viewer and item properties you will find a solution that is able to satisfy all needs of all users with different layouts and wich seems to be more userfriendly: the now playing mode just displays playing track, the selection mode just shows the selection and the automatic mode wich displays playing track/selected track if no playback.

I hope that somedays Peter will introduce also a "now playing" mode for his two selection viewers. I also hope that you will find an agreement with him to let all selection viewer components  act the same way for reasons of consistency/simplicity and at same time to avoid the potential confusion i described above.
Title: Text Display (foo_textdisplay)
Post by: grimes on 2008-07-09 18:51:58
Small bug detected: Sometimes when I change song in playlist, foo_textdisplay is'nt updated with new song.

Bug fixed in RC3. Thanks

EDIT: Scrollbar speed too slow!?
Title: Text Display (foo_textdisplay)
Post by: foosion on 2008-07-09 23:02:22
Scrollbar speed too slow!?
Indeed, clicking the arrows on the scrollbar scrolls only by one pixel. I'll change that to an entire line for the next version.


When I released the component, I was aware that the fallback that is used with "Prefer playing track" was bound to lead to some confusion. Furthermore I decided not to follow the behavior of the existing selection viewers exactly to make it possible to view information about the playing track instead of the selection.

I quite like the idea to use three source modes, so I'll definitely consider that for a future version. It still does not solve the problem completely. It would be good to have a visual indication of the current source that does not require the user to write more title formatting code.* Of course, this would be optional but enabled by default. The big question is then how this indicator should look like. Not only should it be easy to recognize while not distracting the user too much from the actual content, it should also work with all color schemes.

If you have an idea for that, feel free to post it here. Please create a mockup image to demonstrate your idea if possible.

*: Right now, you could use "$if(%isplaying%,Playing track,Selected track)".
Title: Text Display (foo_textdisplay)
Post by: cartman(2vd) on 2008-07-10 17:37:14
When I released the component, I was aware that the fallback that is used with "Prefer playing track" was bound to lead to some confusion


god bless you, your ancestors back to the begining of time and futhermore to its end for this most logic decission :DDD realy realy thank you that i dont have to click like retarded imbecile on playing song to see its lyrics like i have to with album art. GOD BLESS you once more... (or any other supernatural entity you tend to believe in)

thanks for this component... btw bug reported by me seems fixed in rc3
Title: Text Display (foo_textdisplay)
Post by: sylla on 2008-07-10 18:57:38
Sounds wonderful - but I can't seem to download the file? Maybe it's my computer, but could someone test if it should work?
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2008-07-10 18:59:37
When I released the component, I was aware that the fallback that is used with "Prefer playing track" was bound to lead to some confusion. Furthermore I decided not to follow the behavior of the existing selection viewers exactly to make it possible to view information about the playing track instead of the selection.


As the fall back in "prefer playing track" is similar to the automatic mode of columnsUi's viewers the confusion is existent but not so big like the other fall back in selection mode because the first one can offer a desirable behavior whereas the first one just irritates. Especially when using two displays in two different modes that can drive you crazy. Can you estimate how are the chances that Peter will add a "now playing" mode for his viewers and if he then would favorize the three-source-mode as well? In my eyes consistency should be an important aim.


I quite like the idea to use three source modes, so I'll definitely consider that for a future version. It still does not solve the problem completely. It would be good to have a visual indication of the current source that does not require the user to write more title formatting code.* Of course, this would be optional but enabled by default. The big question is then how this indicator should look like. Not only should it be easy to recognize while not distracting the user too much from the actual content, it should also work with all color schemes.


Sorry, i am not sure what you mean! If you mean an indication in display without using conditional syntax (please correct me if that is wrong) the simplest would be an checkbox-option "Show Caption for Source mode". If enabled the first line would show depending of state 1)"Now Playing" or 2)"Selection" or 3)"Automatic (Now playing)" resp. "Automatic (Selection)". Such headings may be helpful for users that likes to use just one display and control the source by context menu. In my case such indications wouldn't be necessary as i like to use more dislays so that would orientate myself on the position or tabs of the textdisplays. But as already said, i am not sure if you really meant that at all.
Title: Text Display (foo_textdisplay)
Post by: tere on 2008-07-10 19:35:52
Whit this plugin there is a way to display what is inside *.nfo also?
Title: Text Display (foo_textdisplay)
Post by: foosion on 2008-07-10 21:59:52
As the fall back in "prefer playing track" is similar to the automatic mode of columnsUi's viewers the confusion is existent but not so big like the other fall back in selection mode because the first one can offer a desirable behavior whereas the first one just irritates. Especially when using two displays in two different modes that can drive you crazy.
You actually have confused me here. Which fallback behavior is the one you find confusing? And what do you mean by "selection mode"?

Can you estimate how are the chances that Peter will add a "now playing" mode for his viewers and if he then would favorize the three-source-mode as well?
Between 0% and 100%, read: I don't know. He is currently focusing on other parts of the player for 0.9.6.

Sorry, i am not sure what you mean! If you mean an indication in display without using conditional syntax (please correct me if that is wrong) the simplest would be an checkbox-option "Show Caption for Source mode". If enabled the first line would show depending of state 1)"Now Playing" or 2)"Selection" or 3)"Automatic (Now playing)" resp. "Automatic (Selection)". Such headings may be helpful for users that likes to use just one display and control the source by context menu. In my case such indications wouldn't be necessary as i like to use more dislays so that would orientate myself on the position or tabs of the textdisplays. But as already said, i am not sure if you really meant that at all.
No, I was actually thinking about a non-textual indicator, which among other things has the disadvantage that it could be scrolled out of view. I was thinking more along the lines of watermark like in the image below. (Disclaimer: The image is purely for demonstration purposes. It is undecided if the watermark feature will be included in a future version of the component or which watermark images would be used.)
(http://img511.imageshack.us/img511/7577/watermarkxb8.png)
The first row shows two indicators that could be used to display that the information is taken from the playing track. The paused indicator on the right might be useful, but I'm not fully convinced about it, since this would mean the watermark would show two different things: the source of the information and the playback state. The second row shows two ideas for a selection indicator (my preference is for the one on the left).

The example uses different colors although it would be hard to chose those automatically to match the users color scheme (read: prevent them from being invisible against the background color). The benefit is that both the text and the watermark are easier to read. Using different colors for different watermarks adds another way to distinguish them except for their shape. This means it is easier to recognize the watermark at a glance. For comparison, here is the same image converted to grayscale:
(http://img410.imageshack.us/img410/8789/watermarkbwjx9.png)

Whit this plugin there is a way to display what is inside *.nfo also?
No, this is not possible.
Title: Text Display (foo_textdisplay)
Post by: Ritsl on 2008-07-10 23:39:03
I'm using this component to show lyrics now. Very nice. One thing that bothers me a bit: when a new song starts playing, the scroll position of the text display stays at whatever it was for the previous song. I'd like it better if the text view scrolls back to top when the contents change.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2008-07-11 13:17:41
You actually have confused me here. Which fallback behavior is the one you find confusing? And what do you mean by "selection mode"?


Sorry for confusion! I find both fallbacks confusing - what i meant was that the fall back in "prefer playing track"  may represent a behavior many users like so that the irritation for them is not so high because they want it that way and they are aware of it. Whereas the fall back in selection mode (i mean: prefer playing track is unchecked, there is nothing selected and there is playback -> playing track is displayed) at least for me doesn't seem to have any senseful usage. Using two trackdisplays, one for playing track and the other one for selected track and both have fallbacks - that is the highest degree of irritation.

No, I was actually think about a non-textual indicator


Now i know what you mean! I think a better idea than using central placed watermarks would a sign/symbol in the upper-left corner. I am not a psychologist of perception but i assume that most people when they start regarding a window they put their focus firstly to the corner on left side of the top - just alone because there the text starts. It would be enough to use visual indications just for "prefer playing track" mode so that the existence of an indicator represents the state as "now playing track". In that case an additional pause-sign would be a good idea as then the both signs represents the playback state.
Title: Text Display (foo_textdisplay)
Post by: labou on 2008-07-15 23:24:07
its not loading im my foobar???

(http://img391.imageshack.us/img391/3903/textnm5.th.png) (http://img391.imageshack.us/my.php?image=textnm5.png)

(http://img185.imageshack.us/img185/3815/whereisitwc8.th.png) (http://img185.imageshack.us/my.php?image=whereisitwc8.png)
Title: Text Display (foo_textdisplay)
Post by: tpijag on 2008-07-15 23:39:32
its not loading im my foobar???

(http://img391.imageshack.us/img391/3903/textnm5.th.png) (http://img391.imageshack.us/my.php?image=textnm5.png)

(http://img185.imageshack.us/img185/3815/whereisitwc8.th.png) (http://img185.imageshack.us/my.php?image=whereisitwc8.png)


Maybe you got a bad download. In case if helps, my file size for component is 235
K

terry
Title: Text Display (foo_textdisplay)
Post by: labou on 2008-07-15 23:48:19
thanks... I reinstalled foobar and its working now
Title: Text Display (foo_textdisplay)
Post by: shakey_snake on 2008-07-16 00:44:32
Wow, look what I missed when on vacation.

Thank you, foosion.
Title: Text Display (foo_textdisplay)
Post by: labou on 2008-07-16 01:44:17
is it possibly 2 make is scroll down by itself; sorda like timestamp?
Title: Text Display (foo_textdisplay)
Post by: acidus on 2008-07-16 13:01:33
great tool foosion!

another question: is it possible to hide the timestamps for displaying lyrics?

e.g.

Quote
[ti:take on me]
[ar:a-ha ]
[al:]
[by:¸è´ÊÎá°®]
[offset:500]
[00:36]We're talking away
[00:39]I don't know what
[00:40]I'm to say I'll say it anyway
[00:44]Today's another day to find you
[00:48]Shying away
[00:51]I'll be coming for your love, OK?
[00:53][01:33][02:52]Take on me
[00:59][01:38][02:57]Take me on
[01:04][01:44][03:03][03:20]I'll be gone
[01:09][01:48]In a day or two
[03:08][03:25]In a day
[01:15]So needless to say
[01:18]I'm odds and ends
[01:20]But I'll be stumbling away
[01:24]Slowly learning that life is OK.
[01:27]Say after me
[01:30]It's no better to be safe than sorry
[02:34]Oh the things that you say
[02:37]Is it live or
[02:39]Just to play my worries away
[02:43]You're all the things I've got to remember
[02:46]You're shying away
[02:49]I'll be coming for you anyway
Title: Text Display (foo_textdisplay)
Post by: start78 on 2008-07-29 22:33:28
Totaly missed that! Thanks so much for this plugin!
Title: Text Display (foo_textdisplay)
Post by: Yod4z on 2008-08-01 09:57:39
Thank you for this plugin. Is it possible to add some space between the informations displayed?

I want to have:
Code: [Select]
%title%$crlf()
[%artist%$crlf()]
[%album%[ '('%date%')']$crlf()]


$if2(%lyrics%,No lyrics available)

but in the view i have no space between the track information and the lyrics

-----------------
Is it possible to add for a futur version possibility to specify different font for the display (like track info in 10 font size and lyrics to 8 font size)?
Title: Text Display (foo_textdisplay)
Post by: AlleyMan on 2008-08-01 10:27:19
but in the view i have no space between the track information and the lyrics


Add $crlf() for each blank line.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2008-08-01 12:56:20
I have one request:

the text display shows the first track of a selection with multiple items. Would love to have the opportunity to display the info of all selected tracks (with usage of %list_index%).
Title: Text Display (foo_textdisplay)
Post by: Yod4z on 2008-08-01 17:42:38
Add $crlf() for each blank line.

Thank you it work great
Title: Text Display (foo_textdisplay)
Post by: dypsis on 2008-08-02 03:35:49
Some of my tracks have year and date metadata in both TYER and TDRC frames. This means that the year is displayed twice.

Is there a way to get it to display Year/Date only once?
Title: Text Display (foo_textdisplay)
Post by: cartman(2vd) on 2008-08-03 16:14:13
Is it possible to add for a futur version possibility to specify different font for the display (like track info in 10 font size and lyrics to 8 font size)?


i doubt it... try to read help included inside the zip file. FAQ part in preference.
Title: Text Display (foo_textdisplay)
Post by: wortels on 2008-10-22 15:16:40
foosion when calculating the center point (horizontally) can you use the whole width of the panel instead of panel - scrollbar width. I think it would look much better IMO. Right now with a scrollbar the alignment looks weird.
Title: Text Display (foo_textdisplay)
Post by: shakey_snake on 2008-10-22 19:39:48
...wouldn't text be covered up by the scroll bar then...
Title: Text Display (foo_textdisplay)
Post by: wortels on 2008-10-23 07:34:18
not if its padded correctly. but that isn't the solution either. I am getting alignment issues whenever the scrollbar shows up
(http://img185.imageshack.us/img185/3971/83596174he6.png)
Title: Text Display (foo_textdisplay)
Post by: Varluche on 2008-11-15 23:34:13
Hi,
I wish to display an information text, such as the info I can get from the Allmusic website for instance, everytime I listen to an album. Can I save a text file in my album folder and display it using this component ? Does it work that way ? Or can you suggest another way ?
Thanks
Title: Text Display (foo_textdisplay)
Post by: threEchelon on 2008-12-17 21:19:37
Edit: Nevermind this. I think the problem is something to do with the toolbar header.

I was previously using foo_textdisplay in the upper left box beneath the element containing the tabs labeled Info, Console, etc. and it was working perfectly fine using a very small height, just over what is big enough to contain two lines of text. Then, I moved the plugin to where it is now and I've encountered a problem: each time I restart foobar, the height changes despite the face that I've locked the height.


Here is a before picture:

(http://img55.imageshack.us/img55/8448/textdisplaybeforecg9.png)


And an after picture:

(http://img512.imageshack.us/img512/9826/textdisplayafterwk6.png)


I can't think of what could cause this. Do you know what might be happening, foosion or anyone else?
Title: Text Display (foo_textdisplay)
Post by: Mar2zz on 2008-12-17 22:19:18
Does it also happen if you lock also the height of the panel beneath the textdisplay? (the playlisttabs-container that is?)
Title: Text Display (foo_textdisplay)
Post by: TsiRoadkill on 2008-12-22 07:08:04
I'm trying to get  proper format string to display something like years, months, days since added to the library. Is this even possible and if so can someone help me out with the formatting? I have a separate %dateadded% tag in the format yyyymmdd in all my files. I would prefer to use that since %added% seems to have a mind of its own on all my old files.
Title: Text Display (foo_textdisplay)
Post by: Mar2zz on 2008-12-22 10:52:59
Not possible. There is no syntax which grabs todays date and/or time. If that was possible, you could create a syntax which calculated the difference between today's date/time and the date_added date/time.

If you want to update it manually everyday, you can create a syntax in which you have to change today's date/time manually everyday again.
Title: Text Display (foo_textdisplay)
Post by: foorious on 2008-12-25 12:13:08
foosion, would it be possible to add an option (just a checkbox in the prefs) that would automatically save the now-playing info to a txt file once per second ?

My goal would be to use foo_textdisplay to display now playing info in a LCD display, and my LCD display driver can read the contents of a txt file.

Unless there's a simpler solution of course, provided it doesn't need to use other too-complicated now-playing plugins : I just need a simple solution to save titleformatted now-playing info to a txt file.

Thank you.
Title: Text Display (foo_textdisplay)
Post by: Yirkha on 2008-12-25 17:57:36
Maybe foo_np_simple (http://www.skipyrich.com/wiki/Foobar2000:Now_Playing_Simple).
Title: Text Display (foo_textdisplay)
Post by: foorious on 2008-12-25 22:32:57
Yirkha, unfortunately I have already tried foo_np_simple. It would be perfect, if only it was able to update the text file once per second, which it does not AFAIK (so when you want to output timing info like %playback_time% it doesn't work since the text file seems to be only updated once at the beginning of the song - I've tried closing and opening the file several times during the song's playback but the timing info is not updated).

And Skipy Rich doesn't seem to answer these days (please see here, last post : http://www.hydrogenaudio.org/forums/index....showtopic=67021 (http://www.hydrogenaudio.org/forums/index.php?showtopic=67021) ).

Of course it would be great if Skipy could improve his little component. But until he does (eventually), I'll have to find another solution, and that's why I've decided to ask foosion.

Last but not least, foosion's component is "official" (made for DUI, reliable for the future), and if foosion could implement this small feature (which means a single checkbox, so no added complexity I guess), then there would be no need for an additional component.

Just my two cents of course.
Title: Text Display (foo_textdisplay)
Post by: lokioki on 2008-12-31 17:40:20
I love this component, just what I have been searching for a while
Title: Text Display (foo_textdisplay)
Post by: TomBarlow on 2008-12-31 21:10:41
I second what aliumalik said about the alignment- when there's a scrollbar the text has more padding on the right than the left, and it looks a bit odd.

Also, would it be possible to wrap long words, instead of having them disappear off the sides of the panel? So when text is centered, long words are left aligned then wrap onto a new line when they reach the other side.

Also also, $rgb() would be really nice

One other thing that might be worth mentioning: when you have a text display panel and a playlist view panel in two different tabs, it is impossible to display track info when no track is playing- %title% returns '?' along with other fields. However, this also happens with the album art display (it says [no selection]) so it might be a problem with DUI.
Title: Text Display (foo_textdisplay)
Post by: neothe0ne on 2009-02-15 01:12:04
1)  Is it possible to have this UI element load the contents of a text file?

2)  Is it possible for this UI element to NOT word wrap?

Title: Text Display (foo_textdisplay)
Post by: ojdo on 2009-02-15 11:58:08
1)  Is it possible to have this UI element load the contents of a text file?
2)  Is it possible for this UI element to NOT word wrap?

Currently (1.0 RC 3), the answer to both questions is no.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2009-02-15 14:38:16
Displaying textfiles is not only a gimmick but an amazing feature if you have collected many information (Album review, Biography and many more) and stored them as textfiles. Storing that information inside tags has three disadvantages: 1. A relative huge text is stored umpteen times, 2. Newly added files has to be tagged again and again and 3. you can't view and edit the text from windows explorer.

I would like to make a suggestion how a senseful and simple implementation could look like:
Title: Text Display (foo_textdisplay)
Post by: ojdo on 2009-02-27 19:37:41
Also also, $rgb() would be really nice


I second this! With only this command added you would provide all the functionality one had in the times of foo_uie_trackinfo (without mod), but with the default UI. What does the developer think?
Title: Text Display (foo_textdisplay)
Post by: damator on 2009-03-07 22:36:13
Hello,

is there any way to show some playlist information in foobar_textdisplay?

I`d like to see a text which shows at what position the currently playing track is in the tracklist.

Title: Text Display (foo_textdisplay)
Post by: M on 2009-03-08 05:25:44
I just found this component tonight, and I am not sure whether anyone else would find these particular settings useful, but I wanted a dynamic display according to whether anything is actually selected, and showing a progress bar with both elapsed and remaining durations. Here is what works for me:
Code: [Select]
$ifgreater(%filesize%,0,
$if2("%title%",'['title unknown']')$char(10)
$if2(%playback_time%,0:00) $progress(%playback_time_seconds%, %length_seconds%, 53,'▪','◦') $if3(-%playback_time_remaining%,-%length%,∞)$char(10)
$if2(%artist%,'['artist unknown']') ◊ $if2(%album%[ ... disc %discnumber%],'['album unknown']'),
◦ f o o b a r 2 0 0 0 ◦
)

    - M.
Title: Text Display (foo_textdisplay)
Post by: ojdo on 2009-04-04 13:24:59
1)  Is it possible to have this UI element load the contents of a text file?


I would like to make a feature proposal: I am reluctant to store album/artist-wide information (biography, album review) to the files' tags just to be able to view them. For such information I would like to be able to display the contents of a text file whose path should be configurable through a line of title formatting like shown in those examples:

Album review:
Code: [Select]
$replace(%path%,%filename_ext%,review.txt)

Artist biography:
Code: [Select]
$replace(%path%,%directory_name%\%filename_ext%,biography.txt)


How are the chances of this getting implemented?
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2009-04-04 15:54:40
I would like to make a feature proposal: I am reluctant to store album/artist-wide information (biography, album review) to the files' tags just to be able to view them. For such information I would like to be able to display the contents of a text file whose path should be configurable through a line of title formatting like


An alternative could also be to use a database instead of textfiles. But however, i agree: tags are the wrong place for some obvious reasons. You can use foo_textfile (http://blog.99ravens.net/index.php?e=282) to display textfiles in textdisplay.


Title: Text Display (foo_textdisplay)
Post by: foolver on 2009-04-04 17:24:39
i use this to read the lyrics from %unsynced lyrics% field... it would be awesome if i could directly edit the lyrics within the text box...

amazing plugin, btw
Title: Text Display (foo_textdisplay)
Post by: lokioki on 2009-04-04 17:52:39
i use this to read the lyrics from %unsynced lyrics% field... it would be awesome if i could directly edit the lyrics within the text box...

amazing plugin, btw



This feature is would rock my world.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2009-04-04 19:32:53
Some thoughts on the requested ability to display text/textfiles:

I said here in the thread some time ago that i would like to see in each selection info viewer the feature to set the source for display: selection or now playing track. Meantime i am rather convinced that how the selection properties or albumart viewer uielement work is perfect - means: no need for an extra tracking mode as a simple doubleclick on status bar brings to your eyes what you want if you like to see info about playing track.

As foo_textdisplay was released two wishes from DefaultUis userbase became fullfilled: 1. display of now playing info in big letters and 2. display of text stored in tags. The current design of textdisplay is perfect to realize the first point. However, i think that the display of text could be offered in a more convenient way that wouldn't require writing Title Formatting anymore: i am thinking about defining textname and its sources (tag, file or database) in preferences and that's all. Then an Uielement could display all the text and by context menu we could choose the sources (either like in album art viewer or in selection properties). Wouldn't that fit better into DefaultUi?

On the other side that part of textdisplay that we know now could be reduced to now playing info, could show album cover and be categorized under "utility" instead of "selection info viewer".
Title: Text Display (foo_textdisplay)
Post by: ojdo on 2009-04-05 00:50:15
You can use foo_textfile (http://blog.99ravens.net/index.php?e=282) to display textfiles in textdisplay.

Just tried it: principally a nice component, but it causes crashes when I use Facets search bar with the component active.
Title: Text Display (foo_textdisplay)
Post by: passerby on 2009-06-12 14:36:43
I don't know what to write to get the lyrics to show, could anyone help me?
Title: Text Display (foo_textdisplay)
Post by: tpijag on 2009-06-12 15:43:18
In what field are your lyrics?

If, field = lyrics,  then [%lyrics%]

terry
Title: Text Display (foo_textdisplay)
Post by: passerby on 2009-06-12 21:58:38
In what field? I don't know. I'm using foo_lyricsdb for the lyrics. I'm really new at this.
Title: Text Display (foo_textdisplay)
Post by: tpijag on 2009-06-12 22:08:58
Well, I do not use foo_lyricsdb and am not going to read discussions or documentation for you.
However, a quick look at this http://www.hydrogenaudio.org/forums/index....showtopic=36598 (http://www.hydrogenaudio.org/forums/index.php?showtopic=36598)
shows that at one time the field name was lyrics.

Why not try %lyrics% and see what happens.

terry
Title: Text Display (foo_textdisplay)
Post by: jeremija on 2009-11-26 10:47:59
is it possible to change the edge type to grey? it seems to me like it is set to sunken...
Title: Text Display (foo_textdisplay)
Post by: stefle on 2010-01-17 20:39:50
Hello,

small request: left/right alignment would look much better, if there were a little space between text and border (configurable or not). I prefer left alignment, but unfortunately the text sticks too much to the left panel side. Or is there any title formatting syntax to solve this problem?
Title: Text Display (foo_textdisplay)
Post by: Hitchhiker427 on 2010-01-21 05:42:54
is it possible to change the edge type to grey? it seems to me like it is set to sunken...


Is there any hope of getting this fixed?  It seems like it would be easy to do.
Title: Text Display (foo_textdisplay)
Post by: nico884 on 2010-01-28 20:22:13
Is it open-sourced? can we get the source somewhere? I'd like to try some implementations...
Title: Text Display (foo_textdisplay)
Post by: jeremija on 2010-01-28 21:07:38
I don't think so, but you could try to contact foosion about it...
Title: Text Display (foo_textdisplay)
Post by: alvaro84 on 2010-01-29 07:32:15
Now that foobar 1 got coloring (ok, highlighting) commands, it would be nice to see them in the text display component too. Just an idea, but it could info displays look nicer
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2010-01-29 16:35:47
If you mean the ">" and "<" coloring then yes: would be nice.

I am wondering if textdisplay will support the global settings for source and if at all then how?
Title: Text Display (foo_textdisplay)
Post by: Yirkha on 2010-02-13 03:00:47
By "source" you mean the "prefer now playing/selection" option?
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2010-02-13 12:23:31
Yes, that's what i mean! Actually it seems clear that textdisplay would respect these global options after an update. But due to its characteristics there is a problem: the playback related stuff like %is_playing%, %time_remaining% and so on. What if you have choosen "selection" as source? You will end with a mess: playback related things and selection related stuff are mixed in one diplay. Maybe it could be a solution to provide two diplays: one selection info viewer and one utility for display of playback information that offers all that playback variables. Just an idea! I was curios to hear what foosion is planning.
Title: Text Display (foo_textdisplay)
Post by: foosion on 2010-02-14 13:37:07
I haven't had time yet to take a closer look at the new APIs relevant for foo_textdisplay, so I can't say anything concrete yet. Just be sure that I understand what you mean: Would you prefer the option to have the Text Display element display either the playing track or selection, without fallback? If I remember correctly, the special playback fields should already be available, if the element displays the playing track. There should be some logic to detect this even when displaying the selection.

With regards to one of the posts above: I'm planning to add configurable margins.

I wanted to make an experiment with a new title formatting function in foo_textdisplay when I released the next version. Seeing as I'm not sure when that will be and as the function is already partially implemented (see below), I'm just going to do it now. So without further ado I present $days_ago():
Code: [Select]
$days_ago(date)
// Returns the number of calendar days since the given date.

I say partially implemented, because the display does not automatically update yet at midnight or when the system time is changed by the user. I know lots of people won't care about this restriction.

Usage examples:
Code: [Select]
[Days since last played: $days_ago(%last_played%)$crlf()]
[Days since added to library: $days_ago(%added%)$crlf()]

Now for the experiment: I'd like to know how people use this function. Is it useful on its own? Is it only used as building block in more complex expressions and should be be replaced/accompanied by higher-level functions? Please post your comments here! If there are a lot of responses I will split them to a separate thread, so it might be helpful to put discussions about $days_ago and other things in separate posts.

That's it for now. Thank you for your attention!
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2010-02-14 20:10:07
Just be sure that I understand what you mean: Would you prefer the option to have the Text Display element display either the playing track or selection, without fallback?

That is the point why i was so curios! Generally i like more the selection source mode more as i also quickly can display playing track by double click in status bar - not to forget the possibility given by "cursor follows playback". So i checked the correspondending option in foobar2000 1.0 and my textdiplays that shows lyrics, other tags and such stuff are in socalled selection mode ("prefer playing track" is unchecked in context menu). A special case is naturally the displays restricted to playing track using all that playback fields: it doesn't make sense to subordinate them under the new global options. In my post above i talked about two ui elements and somehow in the meantime i feel bad about this idea. However, i think somehow a seperation should be achieved if using global options - what now comes to my mind is maybe a check option in context menu in layout editing mode that activates this special purpose. To sum it up: i really would love to see foo_textdiplay using the global options. I can remember that in the early days of the new DUI Lyx said that mixing source modes for selection viewers around the whole layout will end in confusion: wich ui element is displaying what?

Edit:
Concerning the special functions: what do you mean with experiment? I am not sure if you also mean using them outside of textdisplay.
Title: Text Display (foo_textdisplay)
Post by: stefle on 2010-02-15 02:01:01
Hello,

small request: left/right alignment would look much better, if there were a little space between text and border (configurable or not). I prefer left alignment, but unfortunately the text sticks too much to the left panel side. Or is there any title formatting syntax to solve this problem?


Workaround for short lines (e.g. lyrics):

$repeat( ,5)$replace(%lyrics%,$crlf(),$crlf()$repeat( ,5))
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2010-02-15 11:28:17
I haven't had time yet to take a closer look at the new APIs relevant for foo_textdisplay, so I can't say anything concrete yet.


Since the 1.0 final my current layout contains only one textdisplay showing now playing information and a simple progress bar. Now i switched to another layout containing some textdiplays more that don't prefer the playing track. I remarked that they are related to now playing track regardless what option ist checked in context menu of foo_textdisplay. I did a check with a 0.9.6.6 version i found on my disk and here it works fine. Can someone confirm?
Title: Text Display (foo_textdisplay)
Post by: foosion on 2010-02-15 19:54:31
Concerning the special functions: what do you mean with experiment? I am not sure if you also mean using them outside of textdisplay.
No, I don't plan to add $days_ago() to my other components, and it is technically not possible to make it available globally. The experiment is only about evaluating if this function is useful as it is or if it is too low-level.
Title: Text Display (foo_textdisplay)
Post by: 2E7AH on 2010-02-15 20:12:49
I guess it would be useful for auto statistics scripts, like hotness, maybe DAR (I don't know about that) or any title formatting script requiring system date. Many requested it - no one here replies about it, maybe because it's foo_textdisplay thread

If someone is there (at low level), maybe file attribute info can be taken in consideration?
date (modified (exist already), created, accessed) and file attributes

[edit] it seems I misunderstood your saying - you are considering this only in your component and not globally, heh, delete my post
Title: Text Display (foo_textdisplay)
Post by: A16395 on 2010-02-19 22:31:13
Hello,

I love the foo_textdisplay tool - it´s nearly perfect to me. 

I have a question:
Is there a hint or a trick that I can select a single word of the lyrics text with a double mouse
click (similar to notepad)?

Example:
http://img693.imageshack.us/img693/2826/snapl.gif (http://img693.imageshack.us/img693/2826/snapl.gif)

It's only possible to copy the whole text (right mouse key + "Copy text") but I have to select only one
single word to use it in combination with an OCR software Lingopad (http://www.ego4u.de/de/lingopad)
to get a translation of many unknown english words. 

O.K. I am german 

I am looking forward to any reply.

Thx
Title: Text Display (foo_textdisplay)
Post by: tberman333 on 2010-04-17 19:29:43
Now for the experiment: I'd like to know how people use this function. Is it useful on its own? Is it only used as building block in more complex expressions and should be be replaced/accompanied by higher-level functions? Please post your comments here! If there are a lot of responses I will split them to a separate thread, so it might be helpful to put discussions about $days_ago and other things in separate posts.

That's it for now. Thank you for your attention!


I added this to my text display, here is how I set it up

Code: [Select]
$if(%last_played%,
$ifequal($days_ago(%first_played%),0
,This is the first time this track has played
,This track has been played %play_count% times and the last time was $days_ago(%last_played%) days ago)
,This is the first time this track has played)


EDIT - I just started using foo_playback_custom and have it update at the end of the song and this works perfectly for me.
Title: Text Display (foo_textdisplay)
Post by: durch on 2010-05-16 18:03:59
I think this component is a good peace of work, but I also think there really should be an option to choose from grey, sunken and none border style. At least please use grey as default, but not sunken. I mean, how many percent of the users are using ugly sunken (no offense)? 
I know components' functionality is the most important part though.

Edit: I just read something about configurable margins that are planned. Maybe that's what I mean.
Title: Text Display (foo_textdisplay)
Post by: manudevil on 2010-05-23 17:55:05
Excuse me, but how do you display lyrics ? I have installed foo_lyricsdb and foo_textdisplay, I have put this code in it :

%title%$crlf()
[%artist%$crlf()]
[%album%[ '('%date%')']$crlf()]
$crlf()]
$if2(%LYRICS%,No lyrics available)

But nothing is shown...

EDIT : OK, done ! I've found my error : one ]...
Title: Text Display (foo_textdisplay)
Post by: Oooh, shiny on 2010-06-01 18:01:38
All I wanted was to put lyrics in a tab. Here's how I have it set up right now:

Very top, standard controls, buttons/volume/seek/menubar
Below that, to the left and middle, Facets (three-pane, widescreen rocks!)
Below the left-most pane, album art and visualizer toolbars
To the right of that, tabbed the active playlist and EQ (in case I wanna mess with that more)
To the VERY right, tabbed selection properties, playlist manager, and below playlist manager, tabbed console and visualizer (Shpeck).

Where selection properties are, I wanna add tabs, one for selection properties and another for lyrics. Help a n00b please.

And oh, DUI BTW. I wanna see how far I can really pimp it out, since Columns UI sounds like it'd take more of my CPU up.

A question of mathematics.

I am curious if a three-answer status can be made with the following stipulations:

If playback equals playback remaining, show length
If playback is greater than --:--, show playback
If playback equals --:--, show --:--

Can --:-- equal 00:00, or simply, 0? I ask this because I have set up in text display right now playback / remaning (length), and I listen to online radio stations a whole bunch. I think it would be possible if instead of length,--:--, it can be what I stipulated above, so when I listen to online radio, instead of length as total time of playback + remaining, it becomes playback time. So instead of this:
1:00:00 / --:-- (--:--)

It becomes this:
1:00:00 / --:-- (1:00:00)

Then while playing a song I own, it's still this like it is right now:
1:28 / 3:32 (5:00)
------------^^^
No maths involved, just song length

Possible? Or is this kind of stuff way beyond fb2k? I've been racking my head over it for a couple hours now and I cannot seem to get it right.
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2010-06-02 08:20:48
not sure i fully understand what you're asking?? something like this maybe?

%playback_time% / $if2(%playback_time_remaining%,--:--)[ '('%length%')']
Title: Text Display (foo_textdisplay)
Post by: Oooh, shiny on 2010-06-02 08:44:05
Exactly like what i have now.
$if2(%playback_time%,--:--) / $if2(%playback_time_remaning,--:--) %if('('%length%')','('--:--')')

Yielding:
1:00 / 4:00 (5:00)

But where %length% is, I want %length% to become %playback_time% if %playback_time_remaining yields 0... Wait, why didn't I say that before? *facepalm*

I'm tired. All I want to happen is for %length% to become %playback_time% when there is no %playback_time_remaining% for the sake of looks. Just looks better to me if I am using %length% as total time that %length% is %playback_time% just to fill it in.

And oh, if %length non-existant, become "--:--"
Title: Text Display (foo_textdisplay)
Post by: Oooh, shiny on 2010-06-02 09:25:16
Making another reply in case someone is answering the previous post (like hell, lol):

Condition 1: If any song is playing where there is a playback remaining, show song length.
Condition 2: If an online stream is active, which does not show playback remaining, show playback elapsed.
Condition 3: Else, nothing is playing or selected, show --:--

I eventually found it after keeping locked inside my own head. For fuiture reference and the reference of others:
$if($ifequal(%playback_time_remaining%),0,%playback_time%,%length%),--:--)

Used like this:
$if2(%playback_time%,--:--) / $if2(%playback_time_remaining%,--:--) $if2($ifequal(%playback_time_remaining%,0,'('%playback_time%')','('%length%')'),'('--:--')')$crlf()
The result is show song elapsed / song remaining (song length), unless song remaining is 0, else show (stream elapsed), show --:-- / --:-- (--:--) when nothing is selected/playing.
Title: Text Display (foo_textdisplay)
Post by: Cutter on 2010-06-13 14:31:29
foosion, thanks for this great component. Please, could you add color control (using > and <) and text alignment (using $tab())?
Title: Text Display (foo_textdisplay)
Post by: Dark14db on 2010-10-22 19:40:21
Is there any way of displaying the contents of selected album in media library window (in tracks)?
Title: Text Display (foo_textdisplay)
Post by: tpijag on 2010-10-23 00:10:57
I do not know what you mean (in tracks).

Have you checked your general foobar preferences?

Preferences>Display>Selection Viewers>etc.
Title: Text Display (foo_textdisplay)
Post by: Triple Sick on 2011-02-21 00:38:02
So either this entire component and thread is a big joke, or this doesn't work anymore. There's no way to add a "Text Display" panel into foobar, and there's nothing in the Preferences about it. Yet it still shows up on my Installed Components list.
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2011-02-21 00:42:38
are you familiar with layout editing mode?

http://wiki.hydrogenaudio.org/index.php?ti...ut_Editing_Mode (http://wiki.hydrogenaudio.org/index.php?title=Foobar2000:Layout_Editing_Mode)
Title: Text Display (foo_textdisplay)
Post by: Triple Sick on 2011-02-21 00:48:41
Oh nevermind, woops. I'm using Columns UI.

I'm looking for a way to display a song's lyrics from a file tag in foobar.
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2011-02-21 00:51:52
columns UI has an "item details" panel built in. any more questions about that should go in the relevant thread.
Title: Text Display (foo_textdisplay)
Post by: romor on 2011-03-02 23:27:12
This component bursts much resources when scrolling unwrapped text (regular text in tag field without title formatting)
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-05-29 16:54:54
Text Display 1.1 beta 1
(http://foosion.foobar2000.org/help/foo_textdisplay/1.1_beta_1/foo_textdisplay-ui-element.png)
Download foo_textdisplay 1.1 beta 1 (http://foosion.foobar2000.org/components/1.0/foo_textdisplay-1.1_beta_1-20110529.zip)
View online documentation (http://foosion.foobar2000.org/help/foo_textdisplay/1.1_beta_1/)
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-05-29 17:12:34
This component bursts much resources when scrolling unwrapped text (regular text in tag field without title formatting)
Let me ask you a few question so I'm sure what you mean. Do you use a tag with a lot of text in it (something like %biography% or %lyrics%)? Are you referring to CPU usage or some other resource?

If this is only a performance problem, I'll look at it when I rewrite the text rendering routines in version 1.2.
Title: Text Display (foo_textdisplay)
Post by: romor on 2011-05-30 18:51:16
I don't have same PC right now, and IIRC it was like this:
- arbitrary text was in one line (so Text Display has to wrap it)
- whole text displayed was larger then Text Display UI element
- when scrolling with slider CPU peak was quite noticeable (procexp in tray)
Title: Text Display (foo_textdisplay)
Post by: midkay on 2011-06-01 11:14:23
Hi foosion, nice to see more work being done on this excellent component. However there does seem to be one regression in 1.1b1 for me: the way newlines are handled. I use the component to display lyrics embedded in file tags, and many of these lyrics are broken up into paragraphs/sections split up by a blank line. The blank lines are no longer properly displayed. The same issue results in multiple $crlf() lines in the "Format" field being treated as just one. Here is an image (http://dl.dropbox.com/u/3690589/lyrics.png) showing difference between embedded lyrics and displayed ones. Hope to see this fixed, thank you
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-06-01 17:20:13
Thanks for the report! Come to think of it, I noticed this behaviour myself, but didn't realize it was a regression.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2011-06-01 20:18:34
Hello foosion, thanks for the new version! The bug i mentioned in an earlier post disappeared. 

I have two general requests for the component.

1. The first one is actually one i already phrased here in the thread. I have a textdisplay with "prefer playing track" that shows me in big letters infos about the playing track and special dynamic playback fields like remainig time. The other panels with deselected "prefer playing track" i have placed in a tab container with selection info and album art viewer: these ui-elements show me the lyrics or other stuff. I used to switch from time to time in foobar2000 preferences under display the two sources - depending if i am more in a work or in a listen mode. Now i would like that these textdisplay ui-elements as a selection viewer would respect these global options for that type of ui-elements so that all my selection viewers in the tab container show the same source and i don't have to care about textdisplay additionally. 

2. Textdisplay shows the first track of a selection. Therefore it is  missing the intelligence of selection info viewer that is able to show senseful information about multiple selections of more than track. What i would like to do is following for example: when i select in album list an artist then i would like to see f.e. a list with all albums of this artist instead of only the name  of  just the first tracks album. Or when i select a whole album i would like to see all lyrics. Or a list of artists each with a link to google. And so on. That would require the entry of a grouping pattern. For me it would be enough if the group pattern is valid for a whole textdisplay - different groupings inside one textdisplay might be exaggerative and probably needless. I hope that request makes sense for you.
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-06-01 21:09:45
The bug i mentioned in an earlier post disappeared.
Unfortunately I have no idea which bug you mean. I guess I'll have to re-read the thread some time.

1. This sounds like a valid request to me. I've put in unto the to-do list, but I have not yet decided when to implement it.

2. This sounds like a sensible feature to have. At the moment I have no idea how to include it in a way that is both easy to implement and easy to use. It will have to wait until inspiration hits me.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2011-06-01 21:23:41
Nice to hear that! 

Could you give an example for userdefined command ids which are mentioned in the changelog?
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-06-01 21:55:00
You must mean the road map. If it was in the change log, it would have been implemented already.

At the moment you can only use the pre-defined command IDs which are just the standard commands defined in the foobar2000 SDK. Obviously they do not include any menu commands from third-party plugins. The plan is to let the user pick any ID they like, for example:
Code: [Select]
$cmdlink(Run my favourite command,fav-cmd)
The user could then choose a menu command that is associated with the ID "fav-cmd".

I have chosen this way because the display name of a menu command does not need to be unique. It can even change depending on the context where the command is used. On the other hand the unique IDs that are internally assigned to every menu command are definitely not human-readable and I don't want to bother users with them.
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2011-06-01 22:17:14
Oh yes, it was indeed the roadmap. I was confused because of same version number. Sorry!
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2011-06-02 02:22:08
At the moment I have no idea how to include it in a way that is both easy to implement and easy to use. It will have to wait until inspiration hits me.
I can't impossibly say how it is easy to implement, but maybe i can give you an inspiration how it would be easy to use. What do you think about following possible concept?
So lets say we like to show the reviews of all selected albums so these would be the input:
[blockquote]grouping pattern: %album%
text: %album review%
grouping header: %album artist% - %album% ['('%date%')']
[/blockquote]
I also had some other ideas that also would allow more differentiated text layout (f.e. diferent grouping sections inside one textdisplay) but the idea above so far was the only one that seemed to be "easy to use".
Title: Text Display (foo_textdisplay)
Post by: BrassDude on 2011-06-03 03:59:40
Great to see support for links! I was just looking for something like that. Comes in handy for linking booklets in pdf format. Also google search links for artists, composer, work etc. is now possible.

So, I've played around a bit with it and found some strange behaviour (bug?). If I don't have just one link per line [i.e. end the line with $crlf()] the link does not work. For example if I would like to have a line with 2 separate links like:

%album artist% - %album% => e.g. ABBA - Number Ones (as 2 separate links)

So I would write:

$doclink(%album artist%,'http://www.google.com/search?q='$urlencode(%album artist%)) - $doclink(%album%,'http://www.google.com/search?q='$urlencode(%album%))$crlf()

This would result in:

{{doc|ABBA|http://www.google.com/search?q=ABBA}} - {{doc|Number Ones|http://www.google.com/search?q=Number%20Ones}}

in the text field. Only if I do:

$doclink(%album artist%,'http://www.google.com/search?q='$urlencode(%album artist%))$crlf()
$doclink(%album%,'http://www.google.com/search?q='$urlencode(%album%))$crlf()

I'll get

ABBA
Number Ones

as links. From playing around a bit more it seems that immediately before and after $doclink there needs to be a $crlf() function. Is this the correct desired behaviour or am I doing something wrong?

Also is it possible to remove the underline formatting for links? I'm personally not a huge fan of this link format.

Making the Text Display Settings screen resizable would be great - especially having the possibility to make it wider would be great if one has code lines that are a bit lengthy.

I saw that the option to remove the confirmation dialogue is on the roadmap. Would be nice to have .
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-06-03 06:54:09
From playing around a bit more it seems that immediately before and after $doclink there needs to be a $crlf() function. Is this the correct desired behaviour or am I doing something wrong?
You aren't doing anything wrong and it is also not the desired behaviour. It is a restriction of my text rendering routines that I plan to remove in version 1.2. You'll have to live with it for now.

Also is it possible to remove the underline formatting for links? I'm personally not a huge fan of this link format.
I'll consider it.

Making the Text Display Settings screen resizable would be great - especially having the possibility to make it wider would be great if one has code lines that are a bit lengthy.
It's not called out on the road map, but it's on my to-do. Probably for version 1.1.x.

I'll be away for a few days, but don't hesitate to give feedback or report issues!
Title: Text Display (foo_textdisplay)
Post by: q-stankovic on 2011-06-13 14:23:54
It would be nice to use icons for links additional to or instead of text.
Title: Text Display (foo_textdisplay)
Post by: staringfrog on 2011-06-18 12:11:10
Am using Text Display since 0.9.6.8 for what seems like years now (for displaying lyrics, comments, and track info) and certainly consider it a must-have foobar component. Dear foosion, thank you for your plugins, please, keep on doing this great job.

As a fan of digital LED displays and stuff I wonder if you could possibly implement 'marquee' (or what we call 'a running line' in .ru) in Text Display, that is vertical and horizontal text scrolling? First, it somehow fits the laconic (but pleasantly flexible) concept of the component, second, it would provide much more ergonomic (due to small size of marquee) layout solutions, and third, free positioning of scrolling tag info is something foobar & Co(mponents) still lack, as far as I feel.
Title: Text Display (foo_textdisplay)
Post by: Soviet Commissar on 2011-07-21 19:22:20
I'm aware this is only semi-related to the topic, but does anyone know if there's an equivalent "text display" component/panel for Columns UI?  I realize it already has "Item properties" and "Item details".
Title: Text Display (foo_textdisplay)
Post by: staringfrog on 2011-07-22 09:30:11
Could anyone suggest a proper foobar syntax to skip all brackets like these:

[00:07.78]Album: A Saurceful Of Secrets
[00:11.46]Title: Corporal Clegg
[00:13.70]Corporal Clegg had a wooden leg
[00:21.90]He won it in the war, in 1944.
[00:29.55]Corporal Clegg had a medal too
[00:37.08]In orange, red, and blue
[00:41.44]He found it in the zoo.

to display synced lyrics with Text Display without extra time stamps and stuff?

Or could such skipping rules be added to Text Display's own functionality?
Title: Text Display (foo_textdisplay)
Post by: Sixth Street on 2011-08-04 01:29:16
When displaying a tag with multiple paragraphs with line breaks in between paragraphs, the textdisplay panel doesn't render the line break.  Is there something I'm missing?
Title: Text Display (foo_textdisplay)
Post by: tberman333 on 2011-08-05 01:26:02
When displaying a tag with multiple paragraphs with line breaks in between paragraphs, the textdisplay panel doesn't render the line break.  Is there something I'm missing?


Read up about 10 or 15 posts...
Title: Text Display (foo_textdisplay)
Post by: Edgar Grey on 2011-08-24 09:26:48
I want to highlight part of the field. I. e. Warning (Aynsley Dunbar Retaliation cover). So I use the following string:

$replace(%title%,'(',>>>'(',')',<<<')')

But in foo_textdisplay it looks like Warning >>>(Aynsley Dunbar Retaliation cover)<<<.
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-08-24 12:15:02
The current version cannot mix multiple display styles in one paragraph. I already mentioned this when I announced the new version.
Title: Text Display (foo_textdisplay)
Post by: Edgar Grey on 2011-08-24 12:25:49
Thanks.
Title: Text Display (foo_textdisplay)
Post by: Nitrius on 2011-09-07 15:24:38
Is it possible to mix different font sizes in the display? Like i want the artist name bigger than the album name?

Great plugin btw! =)
Title: Text Display (foo_textdisplay)
Post by: foosion on 2011-09-07 16:24:36
No, the plugin only supports a single font size for the whole text.
Title: Text Display (foo_textdisplay)
Post by: Havyn on 2011-09-09 08:01:19
Also color? i could change it in foobar 1.0, for example:

$set_font(Segoe UI,20,bold)[$rgb(234,210,47)%artist%]$crlf()[%title%]$crlf()
$ifequal(%_length%,?,
$set_font(Segoe UI,14,)$rgb(120,241,126)Playtime Radio:
$crlf()$set_font(Segoe UI,22)[%_time_elapsed%],
$set_font(Segoe UI,22,)$rgb(120,241,126)[%_time_elapsed%]
$set_font(Segoe UI,23,bold)$rgb(234,210,47) /
$set_font(Segoe UI,22,)$rgb(241,135,120)%_length%))


know i can only write:

%artist%$crlf()
%title%

. Is there any possibility to get the old one?
Title: Text Display (foo_textdisplay)
Post by: staringfrog on 2011-09-25 18:30:34
foosion, excuse me for asking you about it again, but would you care to consider text scrolling in future versions?
Title: Text Display (foo_textdisplay)
Post by: Sixth Street on 2011-10-12 17:17:19
Does anyone know where I can find a non 1.0 release of the plugin?  All I want is proper line breaks to appear.
Title: Text Display (foo_textdisplay)
Post by: verithin on 2011-10-31 13:27:39
Does anyone know where I can find a non 1.0 release of the plugin?  All I want is proper line breaks to appear.


Hi,
this worked for me:

$replace(%lyrics%,'

',$crlf() $crlf())


Instruction:
At the end of the first line [after: (%lyrics%,'] press ENTER twice.

Comment:
An empty line (= a new paragraph) is usually made by two seriell 'carriage return' commands - hexidecimal: 0D0A0D0A, in foobar: $crlf()$crlf() .
However, for any reason, foo_textdisplay 1.1beta1 does the return command $crlf() only if it finds another character in front of it.
Therefore, a SPACE in front of the second $crlf() will do the job ...
Title: Text Display (foo_textdisplay)
Post by: Sixth Street on 2011-10-31 16:00:25
That worked beautifully!  Thanks!
Title: Text Display (foo_textdisplay)
Post by: pone on 2011-12-05 18:37:27
Is there a way to display the sum of the filesize of all selected tracks?
And maybe also the number of the selected tracks?
(like Total Size and Items Selected in the Properties window)
Title: Text Display (foo_textdisplay)
Post by: pyr0rrzzz on 2011-12-08 21:24:10
Thanks for the workaround for line breaks!
Title: Text Display (foo_textdisplay)
Post by: el-jaguar on 2011-12-08 23:06:34
Thanks a lot for the workaround, verithin! I haven't updated the plugin until now, due to that behaviour.
Title: Text Display (foo_textdisplay)
Post by: muzack on 2012-02-03 08:14:38
Thanks for the workaround!! that was driving me mad...
Title: Text Display (foo_textdisplay)
Post by: Öhr on 2012-03-05 23:01:12
man that ignoring of empty lines drove me mad as well. thanks for your help!

Also, heres my slightly edited version:

Code: [Select]
$if2($replace(%lyrics%,'

',$crlf() $crlf()), No Lyrics Found)
Title: Text Display (foo_textdisplay)
Post by: wuff on 2012-03-09 19:40:01
thanks I just noticed this as well with 1.1b1 on foobar 1.1.11. Did foo_textdisplay update automatically ?! I just noticed it and annoyed the hell out of me as it worked before. I only consciously installed 1.0rc3 and it worked in that version (unless foobar introduced a change which caused this issue?!)

Here's my updated lyrics display code I've been using for a couple of years now updated with the spacing solution if anyone's interested:
Code: [Select]
[%artist% - ][%title%]$crlf()
[%album%[ '('%date%')'][ - '['%tracknumber%[/%totaltracks%]']']$crlf()]
[-----------------------------------------------------$crlf()
$if(%lyrics%,$replace(%lyrics%,'

',$crlf() $crlf()),$if(%unsynced lyrics%,$replace(%unsynced lyrics%,'

',$crlf() $crlf()),'no Lyrics available'))$crlf()]
Title: Text Display (foo_textdisplay)
Post by: Corey on 2012-04-22 16:45:25
How do I add this? I don't have option to add this panel.
Title: Text Display (foo_textdisplay)
Post by: tpijag on 2012-04-22 17:12:51
It installs the same as any panel. Where exactly are you having trouble?

EDIT: As you used the word panel, are you using CUI interface. If so, this thread / component is an element for the default user interface.
Title: Text Display (foo_textdisplay)
Post by: audiofox on 2012-06-04 08:05:20
I am having an odd issue - even with 'Prefer playing track' unseleted, it's showing the current playing track. It wasn't doing this for two days previous. I've tried to delete the panel, make a new tab, etc. It just keeps doing it. I use it as an info browser so it's  if I can't get it fixed. The only thing I did was install the simplaylist component.
Title: Text Display (foo_textdisplay)
Post by: White_Shadow on 2012-06-04 08:54:13
Which track have you selected? Do you ever have a keyboard focus on the item, you want to be displayed by this component? If you don't, foo_textdisplay will always display the tags of the currently played item. With my installation (f2k with textdisplay and simplaylist) it works fine and as expected.
Title: Text Display (foo_textdisplay)
Post by: audiofox on 2012-06-06 00:38:33
Which track have you selected? Do you ever have a keyboard focus on the item, you want to be displayed by this component? If you don't, foo_textdisplay will always display the tags of the currently played item. With my installation (f2k with textdisplay and simplaylist) it works fine and as expected.



It was working as expected for a few days - then yesterday it just quit working like that. I checked and unchecked and checked again the 'prefer selected track'. I would be playing one song, and go browse through my songs and clicking (once) on them (not playing them) would show the file properties of the song I focused on in the list. Now suddenly it won't work. I reinstalled foobar2000 and made a new panel even. I guess I should try to uninstall Simplaylist, but I don't think that did it since I see a lot of people have it and the textdisplay component. I just wanted to see if someone else had the same issue and I wasn't aware of it before messing around with removing components. Hopefully it will keep my configuration settings for Simplaylist if I remove it and reinstall it to test...right now the textdisplay panel shows, if I right click on it, Prefer playing track is unselected. So it should be showing anything I select in the browser (songs I'm not playing but am looking at).

Hmm...removing simplaylist didn't do it, I'm at a loss. I guess I can just try to reinstall everything again and report back.

Edit: Tried that, the only difference now is, it still shows the playing track, but won't show any track length info for it. Here is my display....maybe this has something to do with it?

Code: [Select]
>>Artist: %artist%<<$crlf()
>Title: %title%<$crlf()
>>>Album: %album%<<<$crlf()
>>Rating: %stars%<<$crlf()
>Year: %date%<$crlf()

$crlf()
>$if2(%playback_time%,--:--) / $if2(%length%,--:--) $if2($ifequal(%playback_time_remaining%,0,'('%playback_time%')','('%playback_time_remaining%')'),'('--:--')')<$crlf()
$crlf()
<<Played: %play_count% times>>$crlf()
<<Track: %tracknumber%>>$crlf()
<<Bitrate: %bitrate% kbps>>$crlf()
<<Channels: %channels%>>$crlf()
<<Filesize: %filesize_natural%>>$crlf()
<<Sample Rate: %samplerate% Hz>>$crlf()
<<Codec: %codec%>>$crlf()
$crlf()

<<<Filename: %filename_ext%>>>$crlf()
<<<Directory: %directoryname%>>>$crlf()
<<<Path: %path%>>>$crlf()
Title: Text Display (foo_textdisplay)
Post by: White_Shadow on 2012-06-06 07:49:18
I think, you meant "%rating_stars%", or?

With my installation, it works fine. I've tested it. Even the %playback_time% and %playback_time_remaining%-Fields work fine. Except one problem: Exchange
Code: [Select]
... $if2($ifequal(%playback_time_remaining%,0, ...

with
Code: [Select]
... $if2($ifequal(%playback_time_remaining_seconds%,0,' ...

to prevent f2k to convert to integer numbers.
Title: Text Display (foo_textdisplay)
Post by: audiofox on 2012-06-06 10:25:08
I think, you meant "%rating_stars%", or?

With my installation, it works fine. I've tested it. Even the %playback_time% and %playback_time_remaining%-Fields work fine. Except one problem: Exchange
Code: [Select]
... $if2($ifequal(%playback_time_remaining%,0, ...

with
Code: [Select]
... $if2($ifequal(%playback_time_remaining_seconds%,0,' ...

to prevent f2k to convert to integer numbers.


Oh - the stars, I just made a custom %stars% tag in my files and copied my ratings into that.

It *was* working fine for me for three days the way it should but now...  I'm sure it's something I did wrong. Also - I should have been more clear.

I have two panels. The one I described - was copied from the 'now playing' one I made using the textdisplay, so it had the code for the running time and all. Which yes, works fine, when "prefer playing song" is checked.
The copied panel I described above, is the one I am using for the 'now selected' when I am browsing the library. When I uncheck "prefer playing song", the panel *used* to update with whatever song I was looking at in the library, but stopped working. The only thing that does change, is that it shows dashes for the playback time codes, which is fine, as if it was working, I would just delete that part. It's just really odd that it stopped working randomly and still only shows me the playing song instead of whatever I have highlighted.

Thanks so much for your help.

Today when I got home it worked again briefly before stopping. It updated for each song I highlighted as it should when I selected them (but didn't play them) for about 3 times, then it just showed the playing song again. I've tried restarting foobar and the problem stays, tried reloading themes, nothing. It worked for a long time (3 days) when I first installed foobar and it was one of the first things I installed. I have the following going and have a portable install:

Code: [Select]
foo_abx.dll
foo_albumlist.dll
foo_bitcompare.dll
foo_cdda.dll
foo_converter.dll
foo_DeleteCurrent.dll
foo_dsp_std.dll
foo_facets.dll
foo_fileops.dll
foo_freedb2.dll
foo_input_std.dll
foo_jesus.dll
foo_lock.dll
foo_logitech_lcd.dll
foo_playcount.dll
foo_playlist_attributes.dll
foo_rgscan.dll
foo_tagbox.dll
foo_textdisplay.dll
foo_ui_std.dll
foo_uie_lyrics3.dll
foo_unpack.dll
foo_verifier.dll


Title: Text Display (foo_textdisplay)
Post by: audiofox on 2012-06-06 20:27:52
I see why it worked. It shows the selected songs I click on until I play one, at start up. Then it stops and  is stuck on them despite having "prefer playing track" being unselected. I would have edited my above post but I think too much time elapsed.
Title: Text Display (foo_textdisplay)
Post by: audiofox on 2012-06-09 00:47:11
Well, I did give up on it working, but  have one more question: is there any way to script it so if I have a certain value for a tag, it shows more fields?

I want to have it show my custom tags of Compilation Date for example, if the custom tag Type is Compilation. I tried messing around with the lyrics code and am looking through threads.
Title: Text Display (foo_textdisplay)
Post by: shafff on 2012-12-21 13:03:41
it seems that with newer versions of foobar the plugin reduces multiple newline characters into one. makes lyrics much worse looking (without verse separation)
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2012-12-21 14:35:30
see post #132
Title: Text Display (foo_textdisplay)
Post by: MDMA on 2013-01-15 11:29:29
Great component, just voicing that the option to disable confirmation when clicking links can be disabled.
Title: Text Display (foo_textdisplay)
Post by: amiti on 2013-02-20 16:59:49
Is there a way to set more than one link (using $doclink) per line or must I always use clrf() between them?
Title: Text Display (foo_textdisplay)
Post by: foosion on 2013-02-20 19:43:54
In the current version you must use the $crlf().
Title: Text Display (foo_textdisplay)
Post by: amiti on 2013-02-22 13:48:05
In the current version you must use the $crlf().


Thanks.

Can't this plugin here be used as a much more advanced statusbar? I am using it as such but it overlaps the native statusbar in some aspects of functionality. I read in other threads that an option to hide statusbar is out of the question , but maybe upgrading it to include the options you are offering here and make it much more versatile?
Title: Text Display (foo_textdisplay)
Post by: foosion on 2013-02-22 14:45:38
Technically it would be possible to use a custom, advanced status bar. As far as I know Columns UI does that. Would Peter be willing to do this? I really don't know.
Title: Text Display (foo_textdisplay)
Post by: ekyonn on 2013-05-11 12:15:08
Web services links on playing track

Code: [Select]
$puts(myartist,$if3(%artist%,%album artist%,%BAND%,$directory(%path%,1)))
$puts(myalbums,$if3(%album%,%directoryname%))
$puts(mytitle,$if3(%title%,%filename%))
$puts(myquery,music+$get(myartist)+$get(myalbum)[+%date%]+$get(mytitle))


// Google all
$doclink(Google all,'http://www.google.com/search?ie=utf-8&q='$replace($get(myquery), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// search google for lyrics
$doclink(Google Lyrics,'http://www.google.com/search?ie=utf-8&q=lyrics|parole+'$replace($get(mytitle), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23')+$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Google Lyrics Translate // bug urlencode
//$doclink(FRENCH Lyrics,'http://translate.google.fr/?ie=utf-8&hl=fr#auto/fr/'$replace($if3(%lyrics%,%unsynced lyrics%), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// Wikipedia artist
$doclink(Wikipedia,'http://en.wikipedia.org/wiki/Special:Search?search='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Youtube artist
//$doclink(Youtube,'http://www.youtube.com/results?aq=f&search_query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// Blogspot artist
$doclink(Blogspot,'http://www.google.com/search?sitesearch=blogspot.*&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// MusicBrainz artist
$doclink(MusicBrainz,'http://musicbrainz.org/search/textsearch.html?type=artist&an=1&as=1&aa=1&limit=100&handlearguments=1&query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Discogs artist
$doclink(Discogs,'http://www.discogs.com/search?type=artist&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// LastFM artist
//$doclink(LastFM,'http://www.lastfm.fr/search?q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// myspace artist
$doclink(MySpace,'http://www.myspace.com/search/music?q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23',&,,))
$crlf()

// rateyourmusic artist
$doclink(rateyourmusic,'http://rateyourmusic.com/search?searchtype=a&searchterm='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// greatsong.net
$doclink(greatsong.net,'http://www.greatsong.net/recherche.php?ie=utf-8&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// slothradio
$doclink(sloth cover,'http://www.slothradio.com/covers/?artist='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// allmusic
$doclink(allmusic,'http://www.allmusic.com/search/all/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// internet archive
$doclink(Internet Archive,'http://archive.org/search.php?query='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// filecrop
$doclink(FileCrop,'http://www.filecrop.com/search.php?size_i=0&size_f=100000000&engine_r=1&engine_h=1&engine_m=1&engine_d=1&w='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// jango
$doclink(Jango,'http://www.jango.com/music/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// hypeM
$doclink(HypeM,'http://hypem.com/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// metacrawler
//$doclink(metacrawler,'http://www.metacrawler.com/search/web?fcoid=417&fcop=topnav&fpid=27&ql=&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
//$crlf()

// webcrawler
$doclink(webcrawler,'http://www.webcrawler.com/search/web?fcoid=417&fcop=topnav&fpid=27&ql=&ss=t&q='$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// songstr
$doclink(songstr,'http://www.songstr.com/#!/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// deezer
$doclink(deezer,' http://www.deezer.com/fr/search/'$replace($get(myartist), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()
Title: Text Display (foo_textdisplay)
Post by: carpman on 2013-06-10 07:56:12
Hi foosion,

Just updated to latest version of foo_textdisplay and it seems to ignore (or treat differently): $crlf()

C.

EDIT:
Win7 x64
fb2k v.1.2.6 (portable)
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2013-06-10 08:33:01
http://www.hydrogenaudio.org/forums/index....st&p=774004 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=64478&view=findpost&p=774004)
Title: Text Display (foo_textdisplay)
Post by: carpman on 2013-06-10 09:18:04
Thanks marc2003. Don't quite understand how I was using such an old version?? - only made my DUI setup this year. Very strange.
Anyway, problem solved.

Cheers,

C.
Title: Text Display (foo_textdisplay)
Post by: Edgar Grey on 2013-10-19 09:08:49
Thanks for this plugin. It works great. But there is a problem with new foobar 1.3 beta 1 which described here:

http://www.hydrogenaudio.org/forums/index....mp;#entry840289 (http://www.hydrogenaudio.org/forums/index.php?showtopic=101928&st=0&p=840289&#entry840289)

Will it be fixed?
Title: Text Display (foo_textdisplay)
Post by: nightgaunt on 2014-01-01 05:26:59
On my system my text display element has recently stopped displaying lyrics, showing instead "."  I'm on a Win7 machine, and the problem arose when I upgraded to fb2k v1.3.  I believe this is due to the problem Edgar Grey identified above -- please add my voice to his update request.

Thanks kindly -- I've appreciated this plugin (and your many others) over the years.
Title: Text Display (foo_textdisplay)
Post by: Edgar Grey on 2014-01-01 06:05:28
On my system my text display element has recently stopped displaying lyrics, showing instead "."  I'm on a Win7 machine, and the problem arose when I upgraded to fb2k v1.3.  I believe this is due to the problem Edgar Grey identified above -- please add my voice to his update request.

Thanks kindly -- I've appreciated this plugin (and your many others) over the years.


Could be fixed by editing LargeFieldsConfig.txt in foobar2000 profile folder
Title: Text Display (foo_textdisplay)
Post by: thomian on 2014-01-22 15:48:39
Does anyone know where I can find a non 1.0 release of the plugin?  All I want is proper line breaks to appear.


Any chance that this will be fixed in future versions?
I mean without the workaround from Post #132.
I don't like my scriptings to be messed up with a large number of $replace commands.
Title: Text Display (foo_textdisplay)
Post by: loft on 2014-04-27 17:39:01
Since a few weeks ago (I can't tie it with any update of this plugin or foobar2000) I noticed that this plugin cannot read lyrics from FLAC files. It only displays a dot in the text box. It works just fine with MP3 and MPC files.

Im using fooobar2000 v1.3.2 and Text Display UI Element 1.1 beta 1. Thank you!
Title: Text Display (foo_textdisplay)
Post by: foosion on 2014-04-27 20:50:46
loft: This looks like the same issue as in post #161 (http://www.hydrogenaudio.org/forums/index.php?s=&showtopic=64478&view=findpost&p=854188). I suspect it is just a coincidence that it occurs with FLAC files.
Title: Text Display (foo_textdisplay)
Post by: loft on 2014-04-27 22:15:17
It looks like the same problem... My database is quite big, about 7000 files, mp3's, mpc's and FLAC's. Now why is it only happening with FLAC's... Dunno!
Title: Text Display (foo_textdisplay)
Post by: Coreda on 2014-05-08 09:22:31
Are there any plans to add Bold formatting support? Facets has a nice support for it in the Default UI, and was hoping it could be achieved with Text Display
Title: Text Display (foo_textdisplay)
Post by: Coreda on 2014-05-13 03:37:36
Just added some formatting for podcast details and noticed with certain Comment fields it breaks the Text Display formatting. Perhaps there are some characters that aren't being escaped?

Here is a screenshot of the issue. The first is the normal formatting showing correctly, the second one version of being broken, the last an alternate form of the formatting being broken.

(http://abload.de/img/comments-formatting-b9ofue.png)

Here's my formatting code:

Code: [Select]
[<<<%artist%>>>$crlf()]
%title%$crlf()
$if2(<<<%album% ['['#%track%']'] ['['%date%']']>>>,'('<<<Unknown>>>')')$crlf()
$if(%isplaying%,%playback_time%[ / %length%],%length%)$crlf()
<<∙∙∙∙>>$crlf()
[<<<%comment%>>>$crlf()<<∙∙∙∙>>$crlf()]

$puts(myartist,$if2(%albumartist%,%artist%))
$puts(myalbum,$if3(%album%,%directoryname%))
$puts(mytitle,$if3(%title%,%filename%))
$puts(myquery,$get(myartist) $get(myalbum) $get(mytitle))
$puts(myquery2,$get(myartist) $get(myalbum))

// Wikipedia
$doclink(Search Wikipedia '('album')','http://en.wikipedia.org/wiki/Special:Search?search='$replace($get(myquery2), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Youtube
$doclink(Search Youtube '('track')','http://www.youtube.com/results?aq=f&search_query='$replace($get(myquery), ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()

// Search google for lyrics
$doclink(Search Lyrics,'http://www.google.com/search?ie=utf-8&q='$replace($get(myquery) lyrics, ,'%20','&','%26',/,'%2F',?,'%3F',+,'%2B',=,'%3D','%','%25',#,'%23'))
$crlf()
Title: Text Display (foo_textdisplay)
Post by: foosion on 2014-05-13 11:50:24
I guess there is a line break in some of your comment tags. This breaks the formatting since Text Display can only apply formatting to whole paragraphs. There are two options. Either remove the line breaks in your formatting script using
Code: [Select]
<<<$replace(%comment%,$char(13),,$char(10),)>>>
or break up the comment into multiple, separately highlighted paragraphs with
Code: [Select]
<<<$replace(%comment%,$crlf(),>>>$crlf()<<<)>>>


I'm not sure what goes wrong for the second case but you can try to use Text Display's $urlencode function instead of a $replace which only handles a few special characters, i.e.
Code: [Select]
$doclink(Search Youtube '('track')','http://www.youtube.com/results?aq=f&search_query='$urlencode($get(myquery)))
Title: Text Display (foo_textdisplay)
Post by: Coreda on 2014-05-13 13:21:18
Perfect foosion, just what I needed. 

BTW is there a way to pass the currently playing file to an app? I see the $applink() function but don't see a way to open just a single file.
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2014-05-13 20:21:43
if you want the default application to open the file, just put %path% as the application. or if you want to open a specific app, you can specify %path% as an argument.
Title: Text Display (foo_textdisplay)
Post by: phool on 2015-12-14 17:12:21
I'm having trouble using the highlight function in my config.

(http://i.imgur.com/qDfN9Zv.jpg)

My settings for the above are:

Code: [Select]
$if2(%track%,) [<<<%artist%>>>] - $if2(%title%,)$crlf()

[$if(%ALBUM%,%ALBUM%,$if(%radioshow%, | %radioshow%', episode'
$if2(%RADIOSHOW EPISODE%,), | %liveset%))
[' ('$if(%BROADCAST DATE%,%BROADCAST DATE%,%date%)')']$crlf()]
$crlf()
$if(%play_count%,Played %play_count% times,Not Played)


There is probably something really simple that I'm missing but I can't seem to get it to work.
Title: Text Display (foo_textdisplay)
Post by: Bollerkopp on 2015-12-14 22:08:14
Hi,

this should work:

Quote
$if2(%track%,) <<<[%artist%]>>> - $if2(%title%,)$crlf()


Greets
Title: Text Display (foo_textdisplay)
Post by: foosion on 2015-12-15 07:18:46
This is a known limitation of the current version of the plugin. The highlighting only works if you apply it to the entire line, e.g.
Code: [Select]
<<<[%track%] [%artist%] [%title%]>>>$crlf()
// The rest of your code follows here.
Title: Text Display (foo_textdisplay)
Post by: phool on 2015-12-15 07:41:50
Thanks for the reply foosion. Wasn't aware of that particular limitation. Nevertheless using the code provided results in the following:
(http://i.imgur.com/pl6q389.jpg)
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2015-12-15 08:12:11
Perhaps your component is outdated? The version on the components page is newer than the one available from foosion's home page.

https://www.foobar2000.org/components/view/foo_textdisplay (https://www.foobar2000.org/components/view/foo_textdisplay)
Title: Text Display (foo_textdisplay)
Post by: phool on 2015-12-16 07:39:42
Well that's just embarrassing.  I was indeed using the 1.0 RC3 from foosions website and not the 1.1 Beta from the components page.  Nevertheless I hope that the ability to highlight (as well as dim!) items differently on the same line makes it's way into a new version at some point.
Title: Text Display (foo_textdisplay)
Post by: EpicForever on 2015-12-18 16:09:23
Hi,
Has this plugin a list of intentionally unsupported fields or what? Is "LYRICS" field on that list?
I configured plugin like this:

[Comments:$crlf()%comment%$crlf() $crlf()]
[Tracklist:$crlf()%tracklist%$crlf() $crlf()]
[Lyrics:$crlf()%lyrics%$crlf() $crlf()]

and for "Lyrics:" section I always have simply a dot ( "." ) instead of text. But... If I change the name of the field to "LYRICSX" and change the config to:

[Comments:$crlf()%comment%$crlf() $crlf()]
[Tracklist:$crlf()%tracklist%$crlf() $crlf()]
[Lyrics:$crlf()%lyricsX%$crlf() $crlf()]

I get full contents of "LYRICSX" field, with all line breaks, etc... what is going on?
Title: Text Display (foo_textdisplay)
Post by: marc2003 on 2015-12-18 16:39:03
You should read the changelog for foobar2000 v1.3, specifically this:

Quote
Spurious/oversized metadata such as whole EAC logs entries are now dropped from foobar2000's cache, for better search performance and lower resource usage.

    The feature is now customizable by editing LargeFieldsConfig.txt in foobar2000 profile folder
Title: Text Display (foo_textdisplay)
Post by: EpicForever on 2015-12-19 14:42:09
Hahaha - I've read it something like 2 times but first - it is impossible to remember all its content and second - I would never connect that change with my problem 
Many thanks for this hint - it worked.
Title: Re: Text Display (foo_textdisplay)
Post by: Coreda on 2016-02-06 03:01:53
Padding options would be great to see added to Text Display, since at the moment it wraps text to the very edges of the panel which is harder to read and looks less elegant.

While some requests ask for image support and the like which won't be added this on the other hand I'd like to think would be a worthwhile addition and fit the simplicity of the existing options.

(https://i.imgur.com/uHbhhmc.png)

(A resizable code settings window would also be a quality of life feature I'd love to see added ;))
Title: Re: Text Display (foo_textdisplay)
Post by: Mordi on 2016-02-14 18:01:17
Did foosion ever implement the ability to run foobar commands (those in the keyboard shortcuts) by using $cmdlink()? I can't get it to work. I only get "Sorry, this feature is not yet implemented.". Even when I use the predefined ones from the instructions.

Otherwise, excellent component.
Title: Re: Text Display (foo_textdisplay)
Post by: Just_Addict on 2016-02-17 15:22:27
I've ran into a couple of issues with the Text Display component. It doesn't 'repaint' if the panel size/dimension changes due to a resizing of the Foobar window. 

When text is centered it doesn't recenter, and when text is aligned left or right, word wrapping doesn't rewrap if panel dimension changes.

Another thing I noticed is that if you use it display tag information from mixed sources, say standard tags mixed with Discogs info, it sometimes seems to clear and reload the Discogs parts and repaints those while leaving the standard ones visible.

Lastly, according to the configuration screen, I should be able to give links a different color. So far I've not yet managed to make that happen. URL's either directly typed in the setup screen or those contained in tags, do not get colored any different from the normal text color
Title: Re: Text Display (foo_textdisplay)
Post by: foosion on 2016-02-17 19:24:50
Did foosion ever implement the ability to run foobar commands (those in the keyboard shortcuts) by using $cmdlink()?
This only works for the predefined commands, for example
Code: [Select]
$cmdlink(Properties,context_file_properties)
or
Code: [Select]
$cmdlink(Play,main_play)
Title: Re: Text Display (foo_textdisplay)
Post by: foosion on 2016-02-17 19:46:56
I've ran into a couple of issues with the Text Display component. It doesn't 'repaint' if the panel size/dimension changes due to a resizing of the Foobar window. 

When text is centered it doesn't recenter, and when text is aligned left or right, word wrapping doesn't rewrap if panel dimension changes.
Both of these features work here (Windows 8.1, foobar2000 v1.3.9, Text Display 1.1 beta 1). Which version of Windows do you use? Can you provide a minimal layout (fth file) which reproduces the behaviour?

The component does not have special treatment for non-standard tags. I don't know enough about the Discogs component to tell why they tags might temporarily vanish. Can you observe this effect with any other UI element, e.g. Selection properties, or in the status bar?

The component does not detect URLs and turn them into clickable links. The link color on the settings window refers to the links created by the components $applink, $doclink and $cmdlink functions. You can use the $doclink function to create a clickable link from a URL, for example
Code: [Select]
$doclink(Hydrogenaudio Forum,https://hydrogenaud.io/)$crlf()
$doclink(Artist Homepage,%artist_url%)$crlf()
$doclink(Search for Artist,https://www.google.com/#q=$urlencode(%artist%))$crlf()
Links have to be on a line by their own, just like dimmed and highlighted text.
Title: Re: Text Display (foo_textdisplay)
Post by: Just_Addict on 2016-02-18 00:42:50
I've ran into a couple of issues with the Text Display component. It doesn't 'repaint' if the panel size/dimension changes due to a resizing of the Foobar window. 

When text is centered it doesn't recenter, and when text is aligned left or right, word wrapping doesn't rewrap if panel dimension changes.
Both of these features work here (Windows 8.1, foobar2000 v1.3.9, Text Display 1.1 beta 1). Which version of Windows do you use?
Can you provide a minimal layout (fth file) which reproduces the behaviour?
I'm back on Windows7 but I think I've found what the cause was. I'm using the DUI and what would normally be the application workspace, I have moved into a tab panel, So basically I have a tab panel as the first container between toolbar and statusbar.

The first tab contains my foobar layout while the other tabs have a screensaver component and Spheck.

Funny thing though. I copied the whole layout into a scratchbox to make a minimal version and it centered and wrapped without problems, but as active layout in foobar, it don't.  Only after taking my default layout from my main tab and making that the top container, made it start centering and wrapping again. I've added two fairly minimal layout files, One with the tab panel as main container showing the issue and the other with the same content as in the main tab but without the top tab panel and working as expected.

The component does not have special treatment for non-standard tags. I don't know enough about the Discogs component to tell why they tags might temporarily vanish. Can you observe this effect with any other UI element, e.g. Selection properties, or in the status bar?
To be honest, I haven't tried because the tag frames in question contain multiline data so they're fairly useless to have in a list view, The one or two items I do use in list views (Discogs Release ID and Style) don't seem to be doing the same thing. But given that the other two issues got resolved by removing the outer tab panel, this one probably won't happen again either...

The component does not detect URLs and turn them into clickable links. The link color on the settings window refers to the links created by the components $applink, $doclink and $cmdlink functions. You can use the $doclink function to create a clickable link from a URL, for example
Code: [Select]
$doclink(Hydrogenaudio Forum,https://hydrogenaud.io/)$crlf()
$doclink(Artist Homepage,%artist_url%)$crlf()
$doclink(Search for Artist,https://www.google.com/#q=$urlencode(%artist%))$crlf()
Links have to be on a line by their own, just like dimmed and highlighted text.
The part about the dimming/highlighting I found out after much trying, but the $...link functions I didn't know about, need to see if I can inject one of these in the formatting when extracting the field (multiline data again)

EDIT:
You asked if the same happened in Selection Properties (the Discogs tags). They don't show at all in any of the sections. Is there a way to modify what it shows other than which section?
Title: Re: Text Display (foo_textdisplay)
Post by: Just_Addict on 2016-02-19 16:18:33
I don't suppose there's a way to make it possible to copy text from the panel? I can't seem to find any way to do this.

EDIT: To make it clear, I don't mean the option from the context menu, as this copies the whole lot. Bit overkill if only wanting one data element. I meant a way to 'select' before copying.
Title: Re: Text Display (foo_textdisplay)
Post by: k33 on 2016-04-28 13:36:46
Could $cmdlink run saved script from masstagger?
I'm realize the answer is "No" for now. Maybe in future?
I found context_masstag_edit opens "Manage Scripts" dialog - one step before!
But wouldn't be so convenient to run saved script directly clicking hyperlink?

And also someone please explain what does context_masstag_rename do? - I can't see any changes when using it

Thanks for plugin, love it.
Title: Re: Text Display (foo_textdisplay)
Post by: foosion on 2016-04-28 18:09:53
I don't suppose there's a way to make it possible to copy text from the panel? I can't seem to find any way to do this.
This is indeed not possible. It would also not be easy to implement. Firstly the current text renderer is not able to display different styles within a paragraph but this would be required to highlight the selection. Secondly the text can change at any moment.

Could $cmdlink run saved script from masstagger?
I'm realize the answer is "No" for now. Maybe in future?
Once the component finally has the long-planned ability to run user-selected commands in addition to the predefined commands it should be possible.

And also someone please explain what does context_masstag_rename do? - I can't see any changes when using it
I don't remember what it did but the function is probably no longer part of masstagger.
Title: Re: Text Display (foo_textdisplay)
Post by: EclipseGhost on 2016-10-23 20:30:29
1.1 beta 1 versions seems is not compatible with foobar2000 1.3.13 version. Can't make it work.
Title: Re: Text Display (foo_textdisplay)
Post by: foosion on 2016-10-23 21:46:43
It works here. Did it work for you in previous versions of foobar2000?
Title: Re: Text Display (foo_textdisplay)
Post by: tipar on 2016-12-04 15:42:18
Hi. I have Foobar 1.3.13 and I can not show the lyrics on my mp3 files that are already there.

I wrote $if2(%UNSYNCEDLYRICS%,No lyrics available) and the one on your page but nothing appears on both. Maybe it does not work on latest versions of Foobar?

Regards.

PS: even with this code it does ont show the lyrics, just the other text; I mean artist, album, track number, but NOT the lyrics.

Quote
[%artist% - ][%title%]$crlf()
[%album%[ '('%date%')'][ - '['%tracknumber%[/%totaltracks%]']']$crlf()]
[-----------------------------------------------------$crlf()
$if(%lyrics%,$replace(%lyrics%,'

',$crlf() $crlf()),$if(%unsynced lyrics%,$replace(%unsynced lyrics%,'

',$crlf() $crlf()),'no Lyrics available'))$crlf()]
Title: Re: Text Display (foo_textdisplay)
Post by: wcs13 on 2016-12-08 02:49:57
Unexpected behaviour report (possibly a bug) :
Text Display (latest version) + foobar2000 (1.3.9)

I'm using Text Display to display the current artist name, with the following titleformat : [$meta(artist,0)]
The "Prefer Playing Track" option is enabled.

- When I launch foobar2000 without playing anything, Text Display surprisingly displays the first artist name in my playlist, when it should display nothing.
- When I start playing a song, Text Display displays the current artist name.
- However if I stop playing the song, Text Display displays again the first artist name in my playlist.
- This unattended behaviour goes on until the moment I have "interacted" with Text Display (e.g. right click > Settings). Then this behaviour does no longer happen.
- If I restart foobar2000 everything happens again.

Seems easy to reproduce, 100% of the time.
Could somebody please look into it ? Thanks.
Title: Re: Text Display (foo_textdisplay)
Post by: foosion on 2016-12-08 22:54:07
This behaviour may appear strange but it is working as designed. Although I might design this differently nowadays.

When "Prefer playing track" is off, the behaviour mimics that of the Album Art Viewer UI element. If tracks are selected in the playlist (or in any other UI element which provides a selection) it uses the first of these tracks. If no track is selected it uses the currently playing track. If there is no playing tracks either you get the behaviour where no fields or tags are available.

When "Prefer playing track" is on, the roles of the selection and the playing track are reversed.

When you open the settings of Text Display or click a link in it the playlist or whichever UI element had the focus loses the focus. This effectively clears the selection. Moreover it does not regain the focus when you close the settings window or the confirmation window displayed by Text Display. This is why Text Display then displays nothing unless a track is playing or you click the playlist (or any other UI element which provides a selection).

I'm not sure yet how to fix this. I'll have to figure out whether it is possible to return the focus to the previous UI element. Finding the previously focused UI element should be the easy part. Figuring out the right time will be more challenging.
Title: Re: Text Display (foo_textdisplay)
Post by: simoun333 on 2017-03-19 03:45:40
Hi All,

I stumbled with this text formatting.
One day I came up an idea to display the current "playback order". I search for quite sometimes now but I cannot find the answer so I went here, maybe someone can be the answer to my wish.

What I need to do is : Display the current playback order I current set.
Example:
- When I hit/change the playback order to shuffle (track) [Text display will show "shuffle (track)]

Any help is much appreciated. Thanks!
Title: Re: Text Display (foo_textdisplay)
Post by: marc2003 on 2017-03-19 09:17:59
No such title formatting exists. However, you can add a toolbar which gives you a quick way to view/change the playback order. Just right click the existing toolbars>Playback Order.
Title: Re: Text Display (foo_textdisplay)
Post by: davideleo on 2017-03-19 11:39:38
Hi All,

I stumbled with this text formatting.
One day I came up an idea to display the current "playback order". I search for quite sometimes now but I cannot find the answer so I went here, maybe someone can be the answer to my wish.

What I need to do is : Display the current playback order I current set.
Example:
- When I hit/change the playback order to shuffle (track) [Text display will show "shuffle (track)]

Any help is much appreciated. Thanks!

Not possible with Text Display, however Panel Stack Splitter provides the %ps_playback_order% field.
Title: Re: Text Display (foo_textdisplay)
Post by: simoun333 on 2017-03-20 22:29:02
No such title formatting exists. However, you can add a toolbar which gives you a quick way to view/change the playback order. Just right click the existing toolbars>Playback Order.

I am aware of it, I just want to have something cooler for me to see, like less buttons more text :)

Not possible with Text Display, however Panel Stack Splitter provides the %ps_playback_order% field.

I haven't explore the Panel Stack Splitter yet, but yeah maybe someday I am going to play with it.

Thanks marc2003 and davideleo I really appreciate for looking this up! :)
Title: Re: Text Display (foo_textdisplay)
Post by: thomian on 2017-07-11 10:53:21
is this component still updated...??
the latest version "1.1 beta" is dated 2011.
The problem with this version is, that leading line breaks are ignored.
All previous versions have shown leading line breaks correctly.
This feature is especially useful, if you have two text displays next to each other for comparison.
In the latest version leading linebreakes are automatically truncated.
yours,
Thomian

P.S.
There was a fix for leading and trailing white space with "1.0 beta4", but not for leading and trailing line breaks.
Title: Re: Text Display (foo_textdisplay)
Post by: Coreda on 2017-07-20 10:41:27
There appears to be a maximum character limit to the Comment tag for Mp3 files when displayed in Text Display.

In fb2k's file properties and Mp3Tag the comment shows in full, however in Text Display it's rendered as a single period character (.) when the comment is 3300 characters. If I manually cut some of it out to 1900 characters it's displayed by Text Display.

Is this a Text Display limitation or some setting I can configure in fb2k?

Edit: I notice upon playing the track the full comment tag is displayed, but upon playback stop it returns to the period character. I vaguely remember some advanced fb2k setting related to tag caching or something but can't find it. Guessing it may be related?
Title: Re: Text Display (foo_textdisplay)
Post by: jazzthieve on 2017-07-20 10:56:37
Try changing LargeFieldsConfig.txt and see if that helps.
Title: Re: Text Display (foo_textdisplay)
Post by: Coreda on 2017-07-20 11:08:51
Try changing LargeFieldsConfig.txt and see if that helps.

Ah, that would be the one I'd say, given 1900 characters were displayed while idle but not more (in mine the max is set to '2000'). Had forgotten it was configured in a standalone file.
Title: Re: Text Display (foo_textdisplay)
Post by: smkk on 2018-04-02 08:34:23
I'm having the same issue with a dot being displayed, instead of lyrics in the Text Display panel. I have removed the lyrics and unsynced lyrics entries from the LargeFieldsConfig.txt

Screenshot: https://i.imgur.com/lH2nOmo.jpg

Anything else I could try?
I only recently updated foobar from some pre 1.0 version. I'm on win7x64, foobar 1.4 beta 8.
Title: Re: Text Display (foo_textdisplay)
Post by: smkk on 2018-04-03 06:14:06
Update: I have noticed that if "Prefer playing track" is enabled, the lyrics -do- show. Disabling it again shows the dot again. So it seems like this is a bug within Text Display. Ironically this seems to be rather similar to a bug I reported 10 years ago (https://hydrogenaud.io/index.php/topic,64478.msg575664.html#msg575664) after the initial release. How time flies.

I doubt that this component is still under development though, so I suppose this workaround is as good as it gets.

Cheers
Title: Re: Text Display (foo_textdisplay)
Post by: Lesmo16 on 2018-04-03 09:40:23
IMO, a text display component is absolutely essential and should be part of foobar's native basic installation.
Title: Re: Text Display (foo_textdisplay)
Post by: wcs13 on 2018-04-05 16:15:45
Let's just hope the legendary @foosion gets to see this ! ;)
Title: Re: Text Display (foo_textdisplay)
Post by: yetanotherid on 2018-12-15 01:55:59
Anyone know if there's a solution to this little annoyance? It's easier to explain with screenshots.

The text displayed changes according to whether an item is playing or selected etc, and it works fine when the "prefer playing track" option is checked, but not when it's unchecked.

When a track is playing it looks like the first screenshot.
When there's no track playing or selected and "prefer playing track" is checked, it behaves as I'd hoped. See the second screenshot.
But when there's no track playing or selected and "prefer playing track" is unchecked, it displays as per the third screenshot.

It's only a minor annoyance but I'm still learning when it comes to fb2k's syntax, so I'm wondering if there's a way around it I'm not yet aware of. The syntax for the orange text in the screenshots is below (that's what I'm trying to fix if I can). Is there a better way to do it?

Thanks.

Code: [Select]
>>>$if(%filename%,$if(%isplaying%,Currently Playing Track,Selected Track),No Track Playing Or Selected)<<<
Title: Re: Text Display (foo_textdisplay)
Post by: dypsis on 2019-04-08 06:20:58
Even with Preferred Playing Track unselected, I cannot get lyrics to display.
Title: Re: Text Display (foo_textdisplay)
Post by: dgdsu on 2020-02-24 00:11:57
Sorry for the dumb question but is text_display dead or dying? The release is quite old. What are the alternatives? Seems that $applink or $doclink etc. does not work no more ... The posted examples somewhere from the devloper in the docs just shows a {{app|someapp|link}} result ... not the link
Title: Re: Text Display (foo_textdisplay)
Post by: Tigermess on 2020-05-05 19:54:48
I am also having problems with $doclink. URL is properly created and displayed, after clicking it confirmation dialog appears, but after confirming I want to open give URL nothing happens. Any solutions?

EDIT: Not sure what happened, but after some tweaks and restarts $doclink started to work as intended. My bad.
Title: Re: Text Display (foo_textdisplay)
Post by: Ron_Oliver on 2022-01-05 00:26:48
I don't know if this is at all possible. I wanted to add clickable links on a text box for songs (these links would take me to a specific timestamp IN THAT SONG). Is this possible? Are there other extensions I can use to do this?
Title: Re: Text Display (foo_textdisplay)
Post by: dgdsu on 2022-01-26 13:28:33
I don't know if this is at all possible. I wanted to add clickable links on a text box for songs (these links would take me to a specific timestamp IN THAT SONG). Is this possible? Are there other extensions I can use to do this?

From what I remember searching for such functionality in another context some months ago, a lyrics component for foobar able to timestamp popped up on google accidently. But don't quote me, it's a very loose connection in my memory to this search back then. Try out the lyrics components, maybe it pops up and you find what I was referring to.
Title: Re: Text Display (foo_textdisplay)
Post by: fooball on 2022-08-04 09:26:12
I have found %replaygain_track_gain% is accepted as a tag identifier, but %replaygain_track_peak% is not.
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-08-04 10:05:17
Works for me.

(https://i.imgur.com/5XPELk3.png)

You should check your track properties.

Title: Re: Text Display (foo_textdisplay)
Post by: fooball on 2022-08-04 11:06:51
Works for me.
So it does.  Sorry, I must have had a typo.  Thanks for confirming.
Title: Re: Text Display (foo_textdisplay)
Post by: fooball on 2022-08-07 11:26:50
I see I can text-format date and time using $date and $time, but how do I get the current system date & time into them as a parameter?
Title: Re: Text Display (foo_textdisplay)
Post by: Lesmo16 on 2022-09-06 11:41:15
IMO, a text display component is absolutely essential and should be part of foobar's native basic installation.
... and this is totally up-to-date since foo_textdisplay doesn't work with 64bit foobar.
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-09-06 22:06:44
I'm currently messing around making a cheap knock off for my JScript Panel 3 component which is fb2k v2 / 64bit compliant.

(https://i.imgur.com/M15sPXc.png)

Title: Re: Text Display (foo_textdisplay)
Post by: Paul Eye on 2022-09-07 00:45:30
I'd prefer having a separate component or built-in functionality (for my very probable upcoming switch to 64-bit fb2k) instead of something that relies on JScript (that I have no intention of using, with all due respect).
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-09-07 03:31:04
I can understand wanting to avoid horrible scripting components but rendering a few lines of text isn't that strenuous.
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-09-08 10:05:45
Latest JScript Panel version has full $rgb support.

(https://i.imgur.com/Nyj6KAN.png)

And the use of coloured font symbols* is possible because I use DirectWrite and not the ancient Gdi for rending text.

(https://i.imgur.com/Ylw53xX.png)

*Requires Windows 10/11. Component will run Windows 7+ but won't have that functionality.

Such a shame it's not "native". :P
Title: Re: Text Display (foo_textdisplay)
Post by: ASopH on 2022-09-08 10:08:32
Hi,
thank you!!! It's a nice one  :))
Title: Re: Text Display (foo_textdisplay)
Post by: mjm716 on 2022-09-08 18:36:38
Latest JScript Panel version has full $rgb support.
And the use of coloured font symbols* is possible because I use DirectWrite and not the ancient Gdi for rending text.

Great to finally see something improving upon foo_textdisplay! (even though I haven't fully upgraded yet)

Adding background image support on the roadmap?  :)
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-09-08 19:37:01
I'll think about it. I also think further JSP nonsense should go its own thread. I've trashed this one enough.
Title: Re: Text Display (foo_textdisplay)
Post by: ASopH on 2022-09-09 09:58:00
Hi,

once again  ;)  - any chance to get the doclink-function in your textdisplay?  ::)
that would be wonderful
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-09-09 11:51:41
Haha.... no.

My text rendering function conveniently had support for applying colours to ranges of text in a single call and fb2k handles $rgb natively. I wouldn't know where to begin with that.

Title: Re: Text Display (foo_textdisplay)
Post by: ASopH on 2022-09-10 08:59:29
hi

It's all ok. I use this function to find vinyl realeases. I'm too lazy to type in at discogs etc., it's easyer to click  ;D
thank you for the text-display-function
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2022-09-10 10:04:17
If you want clicky things, use foo_run and add a button to any toolbar.

Or if you tag your files with foo_musicbrainz/picard and have artist MBID tags present, my musicbrainz script has a "links" mode where every item is clickable. YMMV depending on the popularity of the artist. Not all will have discogs entries. It just so happens the example on my docs site does...

https://marc2k3.github.io/jscript-panel/gallery/musicbrainz/

(https://marc2k3.github.io/jscript-panel/images/musicbrainz-links.png)
Title: Re: Text Display (foo_textdisplay)
Post by: ASopH on 2022-09-10 10:48:27
thank you for your proposition, marc  :))
Title: Re: Text Display (foo_textdisplay)
Post by: Lesmo16 on 2022-10-03 16:52:48
I'd prefer having a separate component or built-in functionality (for my very probable upcoming switch to 64-bit fb2k) instead of something that relies on JScript (that I have no intention of using, with all due respect).

Yes, something similar to foo_textdisplay is still missing - even if Marc was so kind to offer a workaround.

May be Peter does not read this section of the forum ... but which section do requests like this belong to?
Title: Re: Text Display (foo_textdisplay)
Post by: incifinci on 2022-10-13 13:20:11
A little bug: if there is too long word in the text, word wrap do not work properly for some previous and next lines, close to the long word. It breaks text into too long lines, the ends are not visible. (FB 1.6.12, DUI)

A typical example is a text, containig long url (like https://soundcloud.com/vanduane/classic-80s-megamix-rick-astley-pet-shop-boys-forrest-kool-the-gang-whitney-houston-madonna-taylor-dayne -black-box (https://soundcloud.com/vanduane/classic-80s-megamix-rick-astley-pet-shop-boys-forrest-kool-the-gang-whitney-houston-madonna-taylor-dayne-black-box)).

Text Display settings:
Spoiler (click to show/hide)
The long url is in the %comment% field.
Title: Re: Text Display (foo_textdisplay)
Post by: yetanotherid on 2023-03-24 11:29:55
Is there a consensus regarding a good replacement for the Text Display component for 64 bit foobar2000?
Title: Re: Text Display (foo_textdisplay)
Post by: grimes on 2023-03-24 11:40:19
My choice is JScript Panel sample script "Text Display".
Title: Re: Text Display (foo_textdisplay)
Post by: yetanotherid on 2023-03-24 22:23:59
Thanks. I'll give it a try.
Title: Re: Text Display (foo_textdisplay)
Post by: yetanotherid on 2023-03-25 03:51:09
My choice is JScript Panel sample script "Text Display".

I've installed it and it looks pretty daunting, although no doubt does more than the Text Display component, but before I clear my calendar for a week to learn how to use it.....

Can JScript Panel do all of the things with fb2k fields etc that Text Tools can? Here's what I'm hoping to duplicate:

(https://i.imgur.com/0KpbS1S.jpg)

I don't want any word wrapping but I also don't want long lines truncated at the end because that's generally where the important stuff is. If you look at the "Location" line in the screenshot above, you'll see it's truncated in the middle (some of the text replaced with "...." to prevent the line exceeding a set number of characters).

And can I use JScript Panel to convert the volume from Track Gain to people-speak volume (ie -18 LUFS) given how mental it is to specify volume as a sound pressure level as ReplayGain does. It's somewhat beyond me why fb2k still uses 89dB as the default target volume in the GUI instead of -18 dB/LUFS like the rest of the world. It's become embarrassing... ;)

Anyway, as long as those two things are do-able I'll try to learn how to use JScript Panel sometime soon.

Cheers.
Title: Re: Text Display (foo_textdisplay)
Post by: frogworth on 2023-07-14 16:01:32
@marc2k3 what do you think it would take to add scrollbars to this JScript3 panel? I know other ones have them, and @etip added them to his foo_plorg replacement pl_organizer when a lot of us asked for them!

Other than that one thing, I love the Text Display sample script! One less thing to worry about if I go 64bit.
Title: Re: Text Display (foo_textdisplay)
Post by: servimo on 2024-02-24 19:07:27
Is there a way to make this component show Artist Info? Like who is he, from what country, if is a saxofonist, bass player, guitarrist, ... ? Like the infos from Music Brainz, or from other source. Or exist other component that can show this infos?
Title: Re: Text Display (foo_textdisplay)
Post by: marc2k3 on 2024-02-24 19:58:03
If you tag your files with musicbrainz picard and enable whatever the settings are for performers/instruments, text display can display the contents of those tags.

Large caveat: fb2k doesn't support the TCMP/IPLS id3 frames Picard writes so if you have lots of mp3 files, you can kind of forget about that.

Online information can be fetched by this script for Spider Monkey Panel.. https://github.com/Wil-B/Biography

It's has zillions of options to play around with.

I have a component (JScript Panel 3 in signature) which is much more threadbare on the option front. But it is available for 64bit for those who are interested in that.

Some example scripts:

https://jscript-panel.github.io/gallery/lastfm-bio/#__tabbed_1_2
https://jscript-panel.github.io/gallery/lastfm-info/
https://jscript-panel.github.io/gallery/musicbrainz/
https://jscript-panel.github.io/gallery/allmusic/#__tabbed_1_2