Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to replace ö ä ü etc. (Read 2524 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to replace ö ä ü etc.

Hiho,
i ve been using foobar2k for a long time now, most of the time with the standart intercafe.

Butwhen i reinstalled my Pc last time i made a desicion to get a bit of a theme and it works great out of the box.

Just now i started to custumice the theme and changed a bit in the settings code.

Last thing I did was changing the Standard font for my "artist" panels in playlist view, and it works just as I want it to.

The problem is that i ve got a couple of Bands in my list with ä ü ö etc in their names and the font i chose does not support these letters.

Now i want to know if there is a chance to replace ä ö ü with ae oe ue, which would be fine for me.
i tried:

$replace(,ä,ae) but it did not work.

So can someone explain me how to solve my problem?


EDIT: just saw that the font does not support digits to, is there a way to get extra settings for noumbers? Don't think so but foobar keeps impressing me, so i ask;)

Gretings Ephoras


How to replace ö ä ü etc.

Reply #2
jeah, that was the thing i tried too.

Seems lik it ain't a problem of the code rather then where i place it.

I m using ELPlaylist.

Atm i tried to place it under Settings->Group Header
But that does not work....

someone here who can tell me where my fault is? And probably explain it to me;)

Code: [Select]
$puts(title_text_color,30-30-30)
$puts(art_margin_left,$if(%el_isplaying%,24,12))

$drawrect(0,0,%el_width%,%el_height%,230-230-230,)
$gradientrect(0,$sub(%el_height%,10),%el_width%,10,230-230-230,210-210-210,verticle)
$drawrect(0,$sub(%el_height%,1),%el_width%,1,180-180-180,180-180-180)
$drawrect(0,0,%el_width%,1,255-255-255,255-255-255)

//--------------album art
$if(%el_isplaying%,
$puts(mid_y,$div(%el_height%,2))
$puts(indi_x,6)
$drawtriangle($get(indi_x),$add($get(mid_y),8),$get(indi_x),$sub($get(mid_y),8),$add($get(indi_x),12),$get(mid_y),$get(title_text_color),,aa)
,)

$puts(art_size,$sub(%el_height%,20))
$drawblurrect($get(art_margin_left),10,$get(art_size),$add($get(art_size),1),$get(title_text_color),1)
$drawstring(n/a,$get(art_margin_left),10,$get(art_size),$get(art_size),255-255-255,hcenter vcenter nowrap)
$imageabs($get(art_margin_left),10,$get(art_size),$get(art_size),%path%,artreader nokeepaspect)
$drawrect($get(art_margin_left),10,$get(art_size),$get(art_size),,255-255-255)

//---------------title format
$puts(title_margin_left,$add($add($get(art_margin_left),$get(art_size)),18))

$font(,30,)
$replace(%artist%,ä,ae,ü,ue,ö,oe)
$drawtext(%artist%,$get(title_margin_left),0,$sub(%el_width%,150),$sub(%el_height%,16),$get(title_text_color),vcenter end_ellipsis)
$font(,10,)

$font(Tahoma,8,)
$puts(count_text_width,$add($gettextwidth(%el_direct_item_count%),12))
$puts(count_text_x,$sub($sub(%el_width%,$get(count_text_width)),15))
$drawroundrect($get(count_text_x),$div($sub(%el_height%,20),2),$get(count_text_width),17,3,3,$get(title_text_color),,)
$drawtext(%el_direct_item_count%,$add($get(count_text_x),1),-2,$get(count_text_width),%el_height%,255-255-255,hcenter vcenter)

How to replace ö ä ü etc.

Reply #3
I don't use ELPlaylist but my guess would be these two lines as you don't do anything with the %artist% where you replaced the umlaute!

Code: [Select]
$replace(%artist%,ä,ae,ü,ue,ö,oe)
$drawtext(%artist%,$get(title_margin_left),0,$sub(%el_width%,150),$sub(%el_height%,16),$get(title_text_color),vcenter end_ellipsis)

replace them with

Code: [Select]
$drawtext($replace(%artist%,ä,ae,ü,ue,ö,oe),$get(title_margin_left),0,$sub(%el_width%,150),$sub(%el_height%,16),$get(title_text_color),vcenter end_ellipsis)



How to replace ö ä ü etc.

Reply #4
jeah worked

thx....

for the noumbers i think i have to make my own;)

Edit:
ok, extendet you code so that i replace noumbers with writain noumbers;)

looks wierd but works great;)
Code: [Select]
$drawtext($replace(%artist%,ä,ae,ü,ue,ö,oe,4,vier,9,neun ,&,und,Ä,Ae,Ü,Ue,Ö,Oe,56,Fiftysix,5000,Fuenftausend,69,Sixtynine,ñ,n),$get(title_margin_left),0,$sub(%el_width%,150),$sub(%el_height%,16),$get(title_text_color),vcenter end_ellipsis)