HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: regsucksdan on 2012-03-02 02:23:18

Title: Why does $ascii not support German modifiers? Causes me problems
Post by: regsucksdan on 2012-03-02 02:23:18
OK, I'm just curios who was the smart guy who decided to drop German scharfes-s in $ascii()? Is it that hard to cover the common Western EU languages (ISO-8859-1) decently? Scharfes-s goes to ss, Vowel+umlaut goes to Vowel-e (eg ae, oe etc).

50 CDs ruined.
Title: Why does $ascii not support German modifiers? Causes me problems
Post by: ojdo on 2012-03-02 09:07:25
That's the ASCII (http://en.wikipedia.org/wiki/Ascii) standard.

Tagging of 50 CDs should be fairly easy to properly retag with first fixing the album/artist tags by release and then fixing the title tracks by once selecting all tracks and then editing the title tag track by track.
Title: Why does $ascii not support German modifiers? Causes me problems
Post by: foosion on 2012-03-02 11:57:43
The $ascii() function is implemented using a standard Windows function for character set conversion. Note that the function performs a conversion and not a transcription. This means it replaces each Unicode character with its ASCII equivalent if one exists. A transcription would be what you wanted, i.e. replacing each Unicode character with a sequence of ASCII characters to preserve the meaning of the original. In foobar2000 this is best done using the $replace() function instead of the $ascii() function. For example:
Code: [Select]
$replace(%artist%,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss)
Title: Why does $ascii not support German modifiers? Causes me problems
Post by: Sunhillow on 2012-03-02 16:44:38
Not the most polite tone for a first post

... says a german
Title: Why does $ascii not support German modifiers? Causes me problems
Post by: fbuser on 2012-03-02 17:08:46
Code: [Select]
$replace(%artist%,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,ue,ü,ue,ß,ss)
Small correction, Ü should become Ue:
Code: [Select]
$replace(%artist%,Ä,Ae,ä,ae,Ö,Oe,ö,oe,Ü,Ue,ü,ue,ß,ss)

Title: Why does $ascii not support German modifiers? Causes me problems
Post by: foosion on 2012-03-02 17:50:07
Oops, thanks for the correction.