andrewrk / node-diacritics

remove diacritics from strings ("ascii folding") - Node.js module
MIT License
263 stars 32 forks source link

`ß` should be `ss` not `s` #6

Closed Prinzhorn closed 11 years ago

Prinzhorn commented 11 years ago

In German a ß should be replaced by ss. See http://www.duden.de/sprachwissen/rechtschreibregeln/doppel-s-und-scharfes-s

Regel 160:

  1. Fehlt das ß auf der Tastatur eines Computers oder einer Schreibmaschine, schreibt man dafür ss. In der Schweiz kann das ß generell durch ss ersetzt werden <§ 25 E2>.

Rule 160:

  1. In case the ß is missing on the keyboard, ss can be used instead. In Switzerland ß can be replaced by ss in general.

I'm a native German speaker and I can confirm that Fußball and Weißbier should become Fussball and Weissbier.

andrewrk commented 11 years ago

Thanks, really appreciate it. Is there a capital version? For example a character that transforms into "SS" ?

andrewrk commented 11 years ago

Does this one translate into "SS"? http://www.fileformat.info/info/unicode/char/1e9e/index.htm

Prinzhorn commented 11 years ago

Nope, there's no capital version of ß in German. In case someone upper cases Fußball the rule is to turn it into "SS" resulting in FUSSBALL. FUßBALL does not exist.