Diacritics.NET icon indicating copy to clipboard operation
Diacritics.NET copied to clipboard

Document DiacriticsOptions.Decompose on README.md

Open moon6969 opened this issue 2 years ago • 3 comments

I couldn't figure out why ß wasn't being removed until I poked through the source.

Might be nice to give a Decompose example in the README.md.

moon6969 avatar Mar 19 '22 13:03 moon6969

Oh, yes. I’m going to add something to the readme. However, I’m pretty stuffed with other tasks; it might take some time. But thanks!

thomasgalliker avatar Mar 20 '22 11:03 thomasgalliker

"Buchenstraße".RemoveDiacritics() // this doesn't work, output is the same

string sample = "Buchenstraße"; DiacriticsOptions options = new DiacriticsOptions(); options.Decompose = true; Console.WriteLine(DiacriticsMapper.Current.RemoveDiacritics("ß", options)); // output: empty Console.WriteLine(DiacriticsMapper.Current.RemoveDiacritics(sample, options)); // output: Buchenstrasse

I hope you update the README.md

brian-tumibay avatar Oct 19 '23 14:10 brian-tumibay

@brian-tumibay thanks for the hint. Pull requests are welcome, also for documentation related stuff.

thomasgalliker avatar Oct 19 '23 15:10 thomasgalliker