Help - Search - Members - Calendar
Full Version: Title formatting
Hydrogenaudio Forums > Hosted Forums > foobar2000 > Support - (fb2k)
Prodoc
I've been playing around with creating my own playlist layout but I came across some stuff I don't understand while looking at some available layouts.
To change the colors you can place a hex value between  characters, why is the following format sometimes used: F9F8EE|F9F8EE, why put in the value twice seperated by | characters?
Also, sometimes multiple  characters are placed behind each other like  what's the point of doing that?

Is there a way to put in a line feed? E.g. if some title names are too long I want to cut of a bit and place the last word on the next line underneath the first part of the title at the same starting location.
What would be a good construction to do this?
I can use $len() to determine the length of the string, use $right() to determine the starting point of the last word and determining the new start position won't a a read problem eighter but I'm stuck with the line feed.

I noticed using the $get() function, if you want to display the value, will create an empty space of one character behind the value of the variable, is this a bug? Is there some way to avoid this?

I also noticed there are fields being used which mentioned in e.g. the help reference like %__codec%, %__referenced_file%, %__bitrate% and %__channels%.
Is there a complete list of fields with description somewhere?
picmixer
QUOTE(Prodoc @ Oct 21 2003, 07:55 PM)
why is the following format sometimes used: F9F8EE|F9F8EE, why put in the value twice seperated by | characters?




The double notation is used to define the colour in both selected and unselected fields. If not used the selected field will have the exact opposite colour as the unselected one (selection frame in playlist). The first value is for unselected text and the second for selected text.

QUOTE
Also, sometimes multiple  characters are placed behind each other like  what's the point of doing that?


, is used to reset the colour back to what is defined in the UI preferences.

QUOTE
Is there a way to put in a line feed? E.g. if some title names are too long I want to cut of a bit and place the last word on the next line underneath the first part of the title at the same starting location.


Not possible do do so.

QUOTE
I noticed using the $get() function, if you want to display the value, will create an empty space of one character behind the value of the variable, is this a bug? Is there some way to avoid this?


Are you sure, this at least never seems to have happend to me before. $get should basically just return whatever you defined in the corresponding $puts.

QUOTE
I also noticed there are fields being used which mentioned in e.g. the help reference like %__codec%, %__referenced_file%, %__bitrate% and %__channels%.
Is there a complete list of fields with description somewhere?


Am afraid the title formatting help is all you got. Am not aware of any other documentations considering those fields.

By the way, first time I've heard of %__referenced_file%. What does it do? Just out of pure personal interest.
Prodoc
QUOTE
QUOTE
I noticed using the $get() function, if you want to display the value, will create an empty space of one character behind the value of the variable, is this a bug? Is there some way to avoid this?


Are you sure, this at least never seems to have happend to me before. $get should basically just return whatever you defined in the corresponding $puts.


Positive, $if(%_isplaying%,$get(playarrows),$get(normarrows)) puts a space behind my values in the playarrows and normarrows variable without them containing spaces.
At first I though it might have something to do with me using a fixed font but that doesn't seem to be the case.

QUOTE
QUOTE
I also noticed there are fields being used which mentioned in e.g. the help reference like %__codec%, %__referenced_file%, %__bitrate% and %__channels%.
Is there a complete list of fields with description somewhere?


By the way, first time I've heard of %__referenced_file%. What does it do? Just out of pure personal interest.


It's by default being used in the Status bar section, I'm not completely sure what it does (I just started playing around with this this) but I think it returns the file currently being played.
picmixer
QUOTE(Prodoc @ Oct 21 2003, 08:53 PM)
QUOTE

QUOTE
I noticed using the $get() function, if you want to display the value, will create an empty space of one character behind the value of the variable, is this a bug? Is there some way to avoid this?


Are you sure, this at least never seems to have happend to me before. $get should basically just return whatever you defined in the corresponding $puts.


Positive, $if(%_isplaying%,$get(playarrows),$get(normarrows)) puts a space behind my values in the playarrows and normarrows variable without them containing spaces.

I just tried that out using the following
CODE
$puts(artist,%artist%)
$puts(title,%title%)

$get(title)$get(artist)


and there are absolutely no spaces that should not be there. Maybe you could post a bit more of your string here. There must be something else causing this.

QUOTE
t's by default being used in the Status bar section, I'm not completely sure what it does


Indeed it's there. Haven't quite found out what it does yet either.
Prodoc
I found the problem, I used the following construction:

CODE
$puts(artistformat, $cut($if2(%artist%,N/A),35)))
$get(artistformat)


I have the habit of adding a space behind a comma if I'm programming or just typing a text. Doing this in foobar isn't a good thing to do ;-)
foosion
QUOTE(picmixer @ Oct 21 2003, 09:07 PM)
QUOTE
t's by default being used in the Status bar section, I'm not completely sure what it does


Indeed it's there. Haven't quite found out what it does yet either.

%__referenced_file% returns the file referenced by a cue sheet. I don't know, if it's used elsewhere.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.