Skip to main content

Topic: Why does $ascii not support German modifiers? Causes me problems (Read 1537 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
Why does $ascii not support German modifiers? Causes me problems
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.

  • ojdo
  • [*][*][*][*][*]
Why does $ascii not support German modifiers? Causes me problems
Reply #1
That's the 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.

  • foosion
  • [*][*][*][*][*]
  • Moderator
Why does $ascii not support German modifiers? Causes me problems
Reply #2
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)
  • Last Edit: 02 March, 2012, 12:13:47 PM by db1989
http://foosion.foobar2000.org/ - my components for foobar2000

  • Sunhillow
  • [*][*][*][*]
  • Members (Donating)
Why does $ascii not support German modifiers? Causes me problems
Reply #3
Not the most polite tone for a first post

... says a german

  • fbuser
  • [*][*][*][*][*]
  • Developer
Why does $ascii not support German modifiers? Causes me problems
Reply #4
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)


  • foosion
  • [*][*][*][*][*]
  • Moderator
Why does $ascii not support German modifiers? Causes me problems
Reply #5
Oops, thanks for the correction.
http://foosion.foobar2000.org/ - my components for foobar2000